linkat, renameat: Update dependencies.
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2             Eric Blake  <eblake@redhat.com>
3
4         linkat, renameat: Update dependencies.
5         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7         symlinkat.
8
9 2011-05-23  Jim Meyering  <meyering@redhat.com>
10
11         maint.mk: more tight_scope improvements
12         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13         (_gl_TS_headers): Define only in if-0'd block.
14         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15         sometimes we must *not* use it.  Adjust uses accordingly.
16         (sc_tight_scope): Use much simpler grep-based test to determine
17         whether we skip this rule.
18
19         maint.mk: generalize/improve the tight-scope rule
20         * top/maint.mk: Emit a warning when the test is skipped.
21         (_gl_TS_dir): Add $(srcdir)/ prefix.
22         (_gl_TS_function_match): Simplify, rather than trying
23         to enumerate common types.  Otherwise, it would fail to match an
24         "extern unsigned char const *" declaration in idutils.
25         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
26         a way to support use of that type of macro.
27         (_gl_TS_var_match): Simplify regexp.
28         (_gl_TS_obj_files): New configurable variable.
29         (_gl_TS_headers): Likewise.
30
31 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32
33         verify: fix bug when gnulib <assert.h> is also included
34         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
35         is defined, not if _GL_STATIC_ASSERT_H is not defined.
36         Perhaps there's a better way, but this fixes the immediate problem.
37         Problem reported by Bruno Haible in
38         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
39
40 2011-05-22  Bruno Haible  <bruno@clisp.org>
41
42         xgetcwd: Simplify autoconf macro.
43         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
44
45 2011-05-22  Bruno Haible  <bruno@clisp.org>
46
47         New module 'mktime-internal'.
48         * modules/mktime-internal: New file.
49         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
50         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51         mktime_internal as a C macro if libc has __mktime_internal.
52         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
53         conditions.
54         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55
56 2011-05-22  Bruno Haible  <bruno@clisp.org>
57
58         timegm: Correct mktime replacement statements.
59         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
60         defining mktime as a C macro. This completes a 2009-07-28 commit.
61
62 2011-05-22  Bruno Haible  <bruno@clisp.org>
63
64         timegm: Simplify autoconf macro.
65         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
66
67 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
68
69         clock-time: change to LGPLv2+.
70         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
71         BSD-like but we have no mark for that; this is good enough for now.
72
73 2011-05-21  Bruno Haible  <bruno@clisp.org>
74
75         strerror_r: Fix comments.
76         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
77
78 2011-05-21  Bruno Haible  <bruno@clisp.org>
79
80         relocatable-prog-wrapper: Fix possible link error.
81         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
82         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
83         (gl_FUNC_SETENV): ... to here.
84         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
85         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
86
87 2011-05-21  Bruno Haible  <bruno@clisp.org>
88
89         relocatable-prog-wrapper: Assume strerror() exists.
90         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
91         m4/strerror.m4.
92         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
93         * lib/relocwrapper.c: Remove mention of strerror module.
94         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
95         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
96         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
97         C macro.
98
99 2011-05-21  Bruno Haible  <bruno@clisp.org>
100
101         select: Simplify replacement idiom.
102         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
103         Win32 platforms.
104         * lib/sys_select.in.h (select): Simplify accordingly.
105         * modules/select (Depends-on): Likewise.
106
107 2011-05-21  Bruno Haible  <bruno@clisp.org>
108
109         mkdir-p: Simplify autoconf macro.
110         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
111         gl_FUNC_LCHOWN.
112
113 2011-05-21  Eric Blake  <eblake@redhat.com>
114
115         strerror_r: avoid clobbering strerror on cygwin
116         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
117         fall back instead to sys_errlist.
118         * modules/strerror (configure.ac): Add witness.
119         * tests/test-strerror_r.c (main): Enhance test.
120         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
121         * tests/test-perror2.c (main): Free memory before exit.
122
123 2011-05-21  Bruno Haible  <bruno@clisp.org>
124
125         mkdtemp: Use gnulib naming conventions.
126         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
127         * modules/mkdtemp (configure.ac): Update.
128
129 2011-05-20  Eric Blake  <eblake@redhat.com>
130
131         strerror_r: avoid corrupting errno on Solaris
132         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
133         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
134
135         strerror_r: avoid compiler warning
136         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
137
138         strerror_r: simplify AIX code
139         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
140
141         test-perror: avoid spurious failure on FreeBSD
142         * modules/perror-tests (Depends-on): Add strerror, now that
143         strerror_r no longer pulls it in.
144
145 2011-05-20  Bruno Haible  <bruno@clisp.org>
146
147         strerror_r-posix: Remove unused dependencies.
148         * modules/strerror_r-posix (Depends-on): Remove strerror.
149         Reported by Eric Blake.
150
151 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
152
153         intprops: remove assumption about A|B representation
154         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
155         is a valid integer if both A and B are.  Although this is true for
156         all known practical hosts, the C standard doesn't guarantee it,
157         and the code need not assume it.  Also, this change may work around
158         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
160
161 2011-05-20  Eric Blake  <eblake@redhat.com>
162
163         perror: work around FreeBSD bug
164         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
165         is broken.  Move AC_LIBOBJ...
166         * modules/perror (configure.ac): Here.
167         * doc/posix-functions/perror.texi (perror): Document this.
168         * tests/test-perror2.c (main): Enhance test.
169
170         test-perror: check for strerror interactions
171         * tests/macros.h (STREQ): Add macro.
172         * modules/perror-tests (Files): Add second test.
173         * tests/test-perror2.c (main): New file.
174         * doc/posix-functions/perror.texi (perror): Document glibc bug.
175
176         test-perror: rewrite to use init script
177         * modules/perror-tests (Files): Add init.sh.
178         * tests/test-perror.sh: Use temporary directory.
179
180 2011-05-20  Jim Meyering  <meyering@redhat.com>
181
182         maint: replace misused "a" with "an"
183         * doc/intprops.texi: "a integer"
184         * doc/regex.texi: "a explanation"
185         * lib/alignof.h: "a object"
186         * lib/argmatch.h: "a explanation"
187         * lib/argp-help.c: "a option" and "a OPTION_DOC"
188         * lib/stdint.in.h: "a integer"
189         * lib/userspec.c: "a owner"
190         * doc/gnulib.texi: Fix "a idea", and reword.
191
192 2011-05-19  Jim Meyering  <meyering@redhat.com>
193
194         maint: correct misuse of "a" and "an"
195         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
196         * lib/argp-help.c: "an docum...": s/an/a/
197         * lib/argp-parse.c: "An vector": s/An/A/
198         * lib/execute.c: "an native": s/an/a/
199         * lib/spawn-pipe.c: Likewise.
200         * lib/gc.h: "an Gc_rc": s/an/a/
201         * lib/unigbrk.in.h: "an grapheme": s/an/a/
202         * lib/fts.c: "an stat.st_dev": s/an/a/
203
204 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
205
206         intprops-tests: work around HP-UX 11.23 cc bug with constants
207         * tests/test-intprops.c (VERIFY): New macro.
208         (main): Use it, instead of verify, to work around the compiler bug; see
209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
210
211         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
212         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
213         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
214         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
215         (_GL_REMAINDER_OVERFLOW): Use it.
216
217         intprops-tests: revert unsigned part of previous change
218         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
219         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
220         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
222
223 2011-05-19  Bruno Haible  <bruno@clisp.org>
224
225         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
226         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
227         strerror_r() returned without filling the buffer.
228         Reported by Eric Blake.
229
230 2011-05-19  Eric Blake  <eblake@redhat.com>
231
232         strerror_r: guarantee unchanged errno
233         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
234         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
235         failure.
236         * tests/test-strerror_r.c (main): Enhance test.
237
238 2011-05-19  Bruno Haible  <bruno@clisp.org>
239
240         strerror_r: Reorder #if blocks.
241         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
242         for consistency with the previous commit.
243
244 2011-05-19  Bruno Haible  <bruno@clisp.org>
245
246         perror: Avoid clobbering the strerror buffer when possible.
247         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
248         * lib/strerror.c: Include it.
249         * modules/strerror (Files): Add lib/strerror-impl.h.
250         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
251         (my_strerror): New function, defined through lib/strerror-impl.h.
252         (perror): Use it instead of strerror.
253         * modules/perror (Files): Add lib/strerror-impl.h.
254         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
255
256 2011-05-19  Eric Blake  <eblake@redhat.com>
257
258         strerror_r: fix on newer cygwin
259         * lib/strerror_r.c (strerror_r): Cygwin now has
260         __xpg_strerror_r, use it.
261
262 2011-05-19  Bruno Haible  <bruno@clisp.org>
263
264         strerror_r: Avoid clobbering the strerror buffer when possible.
265         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
266         (sys_nerr, sys_errlist): New declarations.
267         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
268         HP-UX, native Win32, IRIX, and 32-bit Solaris.
269         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
270
271 2011-05-19  Bruno Haible  <bruno@clisp.org>
272
273         strerror_r: Fix test failure on mingw.
274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
275         EXTEND_STRERROR_R.
276         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
277         macros from errno.in.h instead.
278
279 2011-05-19  Eric Blake  <eblake@redhat.com>
280
281         strerror: relax test for Solaris
282         * tests/test-strerror.c (main): Permit Solaris behavior.
283         * tests/test-strerror_r.c (main): Likewise.
284
285         strerror: enforce POSIX ruling on strerror(0)
286         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
287         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
288         * lib/strerror_r.c (rpl_strerror_r): Work around it.
289         * doc/posix-functions/strerror.texi (strerror): Document it.
290         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
291         * tests/test-strerror.c (main): Strengthen test.
292         * tests/test-strerror_r.c (main): Likewise.
293
294 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
295
296         intprop-tests: port to older and more-pedantic compilers
297         * modules/intprops-tests (Files): Add tests/macros.h.
298         * tests/test-intprops.c: Include macros.h.
299         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
300         it's no longer documented to expand to an integer constant expression.
301         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
302         argument is floating point, as it's no longer documented to expand
303         to an integer constant expression in that case.
304         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
305         compiler bugs reported by Bruno Haible.  See
306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
307         (U0, U1): New constants, to work around the same bugs.  Also,
308         in tests, use e.g., "(unsigned int) 39" rather than "39u".
309
310         intprops: work around C compiler bugs
311         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
312         bug in Sun C 5.11 2010/08/13 and other compilers; see
313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
314
315         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
316         * doc/intprops.texi (Integer Type Determination): Fix
317         documentation for TYPE_IS_INTEGER: it returns an constant
318         expression, not an integer constant expression.  Fix doc for
319         TYPE_SIGNED: it returns an integer constant expression only if its
320         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
321         hardly worth documented that way....)
322
323 2011-05-18  Bruno Haible  <bruno@clisp.org>
324
325         strerror_r: Avoid clobbering the strerror buffer when possible.
326         * lib/strerror_r.c (strerror_r): Merge the three implementations.
327         Handle gnulib defined errno values here. When strerror() returns NULL
328         or an empty string, return EINVAL.
329         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
330         gnulib defined errno values here.
331         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
332
333 2011-05-18  Eric Blake  <eblake@redhat.com>
334
335         fnmatch: avoid compiler warning
336         * lib/fnmatch_loop.c (FCT): Use correct type.
337         Reported by Matthias Bolte.
338
339 2011-05-13  Jim Meyering  <meyering@redhat.com>
340
341         maint.mk: three new prohibit_<HDR>_without_use rules
342         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
343         (sc_prohibit_stdio-safer_without_use): Likewise.
344         (sc_prohibit_xfreopen_without_use): Likewise.
345
346 2011-05-17  Jim Meyering  <meyering@redhat.com>
347
348         announce-gen: fail if the NEWS delta is empty
349         If there's nothing noteworthy in NEWS, then either you forgot
350         or you shouldn't be releasing.
351         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
352
353 2011-05-17  Pádraig Brady <P@draigBrady.com>
354
355         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
356         reserved symbols starting with double underscore from the check.
357
358 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
359
360         intprops: add doc
361         * doc/intprops.texi: New file, documenting intprops.
362         * doc/gnulib.texi (Particular Modules): Include it.
363
364         verify: add doc to gnulib manual and fix example
365         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
366         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
367         (Compile-time Assertions): Fix example so it can't overflow.
368
369 2011-05-17  Jim Meyering  <meyering@redhat.com>
370
371         warnings.m4: don't usurp save_CPPFLAGS variable name
372         * m4/warnings.m4: Prefix local temporary variable name with gl_.
373
374         doc: fix typo
375         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
376
377 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
378             Bruno Haible  <bruno@clisp.org>
379
380         doc: Tweak recent change.
381         * README (Portability guidelines): Tweak new text.
382         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
383         Interix 6.1.
384
385 2011-05-16  Eric Blake  <eblake@redhat.com>
386
387         inttypes: avoid autoconf warning
388         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
389         * m4/stdint.m4 (gl_STDINT_H): Likewise.
390
391 2011-05-16  Sam Steingold <sds@gnu.org>
392         and Eric Blake  <eblake@redhat.com>
393
394         vc-list-files: accept multiple directory operands
395         * build-aux/vc-list-files: Iterate over all remaining operands.
396
397 2011-05-16  Bruno Haible  <bruno@clisp.org>
398
399         Fix confusion regarding deprecated modules.
400         * modules/calloc (Status, Notice): Mark module as deprecated, not
401         obsolete.
402         * modules/fnmatch-posix (Status, Notice): Likewise.
403         * modules/getdate (Status, Notice): Likewise.
404         * modules/getopt (Status, Notice): Likewise.
405         * modules/malloc (Status, Notice): Likewise.
406         * modules/pipe (Status, Notice): Likewise.
407         * modules/realloc (Status, Notice): Likewise.
408         * modules/rename-dest-slash (Status, Notice): Likewise.
409         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
410         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
411         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
412         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
413         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
414
415 2011-05-16  Bruno Haible  <bruno@clisp.org>
416
417         doc: List the target platforms.
418         * doc/gnulib-intro.texi (Target Platforms): New section.
419         * doc/gnulib.texi (Introduction): Update menu.
420         * README (Portability guidelines): Refer to the new section. Update
421         statement about oldest supported environment. Remove rationale why
422         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
423         unportable C89 function.
424         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
425         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
426
427 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
428
429         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
430
431 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
432
433         intprops-tests: new module
434         * modules/intprops-tests, tests/test-intprops.c: New files.
435
436         intprops: add safe, portable integer overflow checking
437         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
438         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
439         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
440         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
441         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
442         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
443         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
444         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
445         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
446         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
447         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
448
449 2011-05-12  James Youngman  <jay@gnu.org>
450
451         Add a test for glibc's Bugzilla bug #12378.
452         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
453         doesn't allow the literal matching of a lone "[" (which is
454         required by POSIX).
455         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
456
457 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
458
459         Sync glibc change fixing Bugzilla bug #12378.
460         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
461         beginning and fall back to matching as normal character if the
462         string ends before the matching ']' is found.  This is what POSIX
463         requires.
464
465 2011-05-13  Eric Blake  <eblake@redhat.com>
466
467         getcwd-lgpl: relax test for FreeBSD
468         * doc/posix-functions/getcwd.texi (getcwd): Document portability
469         issue.
470         * tests/test-getcwd-lgpl.c (main): Relax test.
471         Reported by Matthias Bolte.
472
473 2011-05-11  Eric Blake  <eblake@redhat.com>
474
475         test-fflush: silence compiler warning
476         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
477
478 2011-05-11  Bruno Haible  <bruno@clisp.org>
479
480         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
481         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
482         * modules/canonicalize (Depends-on): Add 'nocrash'.
483         * modules/canonicalize-lgpl (Depends-on): Likewise.
484         * doc/posix-functions/realpath.texi: Update platforms list.
485         Reported by Ryan Schmidt <ryandesign@macports.org>.
486
487 2011-05-11  Bruno Haible  <bruno@clisp.org>
488
489         group-member: Declare function in <unistd.h>.
490         * lib/unistd.in.h (group_member): New declaration.
491         * lib/group-member.h: Remove file.
492         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
493         * tests/test-unistd-c++.cc: Check signature of group_member.
494         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
495         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
496         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
497         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
498         HAVE_GROUP_MEMBER.
499         * modules/group-member (Files): Remove lib/group-member.h.
500         (Depends-on): Add unistd. Specify conditions.
501         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
502         (Include): Change to <unistd.h>.
503         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
504         HAVE_GROUP_MEMBER.
505         * NEWS: Mention the change.
506         * lib/euidaccess.c: Don't include group-member.h.
507
508 2011-05-11  Bruno Haible  <bruno@clisp.org>
509
510         group-member: Document module.
511         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
512         module.
513
514 2011-05-11  Bruno Haible  <bruno@clisp.org>
515
516         fclose: Fix mistake earlier today.
517         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
518
519 2011-05-11  Eric Blake  <eblake@redhat.com>
520
521         fclose: preserve fflush errors
522         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
523         Reported by Jim Meyering.
524
525         bootstrap: support a prereq of 'rpcgen -' on RHEL5
526         * build-aux/bootstrap (check_versions): When no specific version
527         is required, merely check that the app produces an exit status
528         that indicates its existence.
529
530         maint.mk: drop redundant check
531         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
532         the same but better.
533
534 2011-05-11  Bruno Haible  <bruno@clisp.org>
535
536         fclose: Fix possible link error.
537         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
538         unregister_shadow_fd. Improve comments.
539         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
540         Eric Blake.
541
542 2011-05-11  Jim Meyering  <meyering@redhat.com>
543
544         maint.mk: improve "can not" detection and generalize rule name
545         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
546         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
547         Use the same technique as in sc_prohibit_doubled_word, so that
548         we recognize "can not" also when the words are separated by a newline.
549         Suggested by Eric Blake.
550         (perl_filename_lineno_text_): Define.  Factored out of...
551         (prohibit_doubled_word_): ...here.  Use the new definition.
552         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
553         (prohibit_undesirable_word_seq_RE_): New overridable variable.
554         (ignore_undesirable_word_sequence_RE_): New overridable variable.
555
556 2011-05-10  Eric Blake  <eblake@redhat.com>
557
558         fclose: avoid double close race when possible
559         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
560         all but WINDOWS_SOCKETS.
561
562 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
563
564         openat: correct new comment
565         * lib/openat-proc.c (openat_proc_name): Correct the comment.
566
567 2011-05-10  Jim Meyering  <meyering@redhat.com>
568
569         openat: add comments
570         * lib/openat-proc.c (openat_proc_name): Add comments,
571         mostly from Eric Blake.
572
573 2011-05-09  Eric Blake  <eblake@redhat.com>
574
575         openat: reduce syscalls in first probe of /proc
576         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
577         be a directory.  Simplify the probe for .. bugs.
578         * modules/openat (Depends-on): Drop same-inode.
579         Reported by Bastien ROUCARIES.
580
581 2011-05-09  Jim Meyering  <meyering@redhat.com>
582
583         maint.mk: change semantics/name of tight_scope variables
584         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
585         Rename variables to align with semantics that make them more useful.
586
587         maint.mk: tweak new rule's name not to impinge
588         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
589         (sc_tight_scope): Use new rule name rather than $@-0.
590
591         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
592         * top/maint.mk (sc_tight_scope): New rule.
593         (sc_tight_scope-0): New rule, ifdef'd out.
594         (_gl_TS_dir): Default.
595         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
596         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
597
598 2011-05-09  Simon Josefsson  <simon@josefsson.org>
599
600         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
601         Haible <bruno@clisp.org>.
602
603 2011-05-08  Bruno Haible  <bruno@clisp.org>
604
605         Comments.
606         * m4/isnanf.m4: Add comment.
607         * m4/isnanl.m4: Likewise.
608
609 2011-05-08  Bruno Haible  <bruno@clisp.org>
610
611         glob: Remove obsolete macro.
612         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
613
614 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
615
616         intprops: Sun C 5.11 supports __typeof__
617         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
618         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
619         which is new.
620         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
621
622         intprops: switch to usual gnulib indenting and naming
623         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
624         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
625
626         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
627
628 2011-05-08  Jim Meyering  <meyering@redhat.com>
629
630         maint.mk: suppress "Entering/Leaving directory" diag in announcement
631         * top/maint.mk (release-prep): Use make's --no-print-directory
632         option when generating the announcement.  This eliminates the
633         pesky "make[2]: Entering/Leaving directory" diagnostics in the
634         generated announcement template.
635
636 2011-05-08  Bruno Haible  <bruno@clisp.org>
637
638         tzset: Fix gettimeofday wrapper on Solaris 2.6.
639         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
640         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
641
642 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
643
644         ignore-value, verify: Omit include files from lib_SOURCES.
645         * modules/ignore-value, modules/verify (Makefile.am):
646         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
647         that leads Automake to duplicate use of am__objects_... variables
648         in Makefile.in.  See
649         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
650
651 2011-05-07  Bruno Haible  <bruno@clisp.org>
652
653         fclose: Simplify autoconf macro.
654         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
655         defined.
656
657 2011-05-07  Bruno Haible  <bruno@clisp.org>
658
659         canonicalize-lgpl: Fix autoconf macro ordering bug.
660         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
661         gl_STDLIB_H_DEFAULTS.
662
663 2011-05-06  Eric Blake  <eblake@redhat.com>
664
665         maintainer-makefile: make sc_po_check easier to tune
666         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
667         to probe for strings, such as an alternate location for gnulib.
668
669         fclose: guarantee behavior on seekable stdin
670         * modules/fclose (Depends-on): Add fflush.
671         * doc/posix-functions/fclose.texi (fclose): Document this.
672         * tests/test-fclose.c (main): Make test for this unconditional.
673
674 2011-05-06  Bruno Haible  <bruno@clisp.org>
675
676         fflush, fpurge: Relicense under LGPLv2+.
677         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
678         * modules/fpurge (License): Likewise.
679         With permission from Eric Blake and Jim Meyering.
680         Suggested by Eric Blake.
681
682 2011-05-06  Karl Berry  <karl@gnu.org>
683
684         * MODULES.html.sh (func_all_modules): remove exit.
685
686 2011-05-06  Jim Meyering  <meyering@redhat.com>
687
688         maint.mk: use info-gnu@ as the default only for a stable release
689         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
690         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
691         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
693
694 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
695
696         assert-h: new module, which supports C1X-style static_assert
697         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
698         * lib/verify.h: Revamp so that this can be copied into assert.h,
699         while retaining the ability to use it standalone as before.
700         Rename private identifiers so as not to encroach on the
701         standard C namespace, since this is now used by assert.h.
702         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
703         the old verify_true.
704         (_GL_VERIFY_TRUE): New macro, with much of the contents of
705         the old verify_true.  Use _GL_VERIFY_TYPE.
706         (_GL_VERIFY): New macro, with much of the contents of the old verify.
707         (static_assert): New macro, if _GL_STATIC_ASSERT_H
708         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
709         defined when this file is copied into the replacement assert.h.
710         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
711         and _Static_assert is not built in.
712         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
713         defined, and use the new macros mentioned above.
714         * doc/posix-headers/assert.texi: Document this.
715
716 2011-05-05  Bruno Haible  <bruno@clisp.org>
717
718         fclose, fflush: Respect rules for use of AC_LIBOBJ.
719         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
720         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
721         gl_REPLACE_FCLOSE here.
722         * modules/fflush (Depends-on): Remove fclose.
723         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
724         combination with module 'fclose'.
725
726 2011-05-05  Bruno Haible  <bruno@clisp.org>
727
728         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
729         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
730         gl_FUNC_FFLUSH.
731         (gl_FUNC_FFLUSH): Use it.
732         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
734         gl_REPLACE_FSEEKO here.
735
736 2011-05-05  Bruno Haible  <bruno@clisp.org>
737
738         tzset: Relicense under LGPL.
739         * modules/tzset (License): Change to LGPL.
740         No agreement needed; it's a no-op.
741
742         strtoimax, strtoumax: Relicense under LGPL.
743         * modules/strtoimax (License): Change to LGPL.
744         * modules/strtoumax (License): Likewise.
745         With permission from Jim Meyering, Paul Eggert:
746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
748
749         getgroups: Relicense under LGPL.
750         * modules/getgroups (License): Change to LGPL.
751         With permission from Jim Meyering, Paul Eggert, Eric Blake:
752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
755
756         nanosleep: Relicense under LGPL.
757         * modules/nanosleep (License): Change to LGPL.
758         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
759         Haible:
760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
764
765         futimens: Relicense under LGPL.
766         * modules/futimens (License): Change to LGPL.
767         With permission from Eric Blake:
768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
769
770         fflush: Relicense under LGPL.
771         * modules/fflush (License): Change to LGPL.
772         With permission from Eric Blake, Bruno Haible, Jim Meyering:
773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
776
777         tmpfile: Relicense under LGPL.
778         * modules/tmpfile (License): Change to LGPL.
779         With permission from Ben Pfaff:
780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
781
782         isfinite: Relicense under LGPL.
783         * modules/isfinite (License): Change to LGPL.
784         With permission from Ben Pfaff, Bruno Haible:
785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
787
788         acosl..tanl: Relicense under LGPL.
789         * modules/acosl (License): Change to LGPL.
790         * modules/asinl (License): Likewise.
791         * modules/atanl (License): Likewise.
792         * modules/cosl (License): Likewise.
793         * modules/expl (License): Likewise.
794         * modules/logl (License): Likewise.
795         * modules/sinl (License): Likewise.
796         * modules/sqrtl (License): Likewise.
797         * modules/tanl (License): Likewise.
798         Source code originally from glibc and Paolo Bonzini. Agreements:
799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
801
802 2011-05-05  Bruno Haible  <bruno@clisp.org>
803
804         signal: Define sighandler_t.
805         * lib/signal.in.h (sighandler_t): New type.
806         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
807         whether sighandler_t is defined.
808         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
809         * modules/signal (Depends-on): Add extensions.
810         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
811         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
812         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
813
814 2011-05-05  Eric Blake  <eblake@redhat.com>
815
816         maint: remove useless REPLACE_*_H macros
817         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
818         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
819         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
820         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
821         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
822         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
823         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
824         * m4/btowc.m4: Update callers.
825         * m4/dirfd.m4: Likewise.
826         * m4/duplocale.m4: Likewise.
827         * m4/fchdir.m4: Likewise.
828         * m4/fdopendir.m4: Likewise.
829         * m4/inet_ntop.m4: Likewise.
830         * m4/inet_pton.m4: Likewise.
831         * m4/ioctl.m4: Likewise.
832         * m4/mbrlen.m4: Likewise.
833         * m4/mbrtowc.m4: Likewise.
834         * m4/mbsinit.m4: Likewise.
835         * m4/mbsnrtowcs.m4: Likewise.
836         * m4/mbsrtowcs.m4: Likewise.
837         * m4/poll.m4: Likewise.
838         * m4/setlocale.m4: Likewise.
839         * m4/wcrtomb.m4: Likewise.
840         * m4/wcsnrtombs.m4: Likewise.
841         * m4/wcsrtombs.m4: Likewise.
842         * m4/wctob.m4: Likewise.
843         * m4/wcwidth.m4: Likewise.
844         * modules/posix_spawn: Likewise.
845         * modules/posix_spawn_file_actions_addclose: Likewise.
846         * modules/posix_spawn_file_actions_adddup2: Likewise.
847         * modules/posix_spawn_file_actions_addopen: Likewise.
848         * modules/posix_spawn_file_actions_destroy: Likewise.
849         * modules/posix_spawn_file_actions_init: Likewise.
850         * modules/posix_spawnattr_destroy: Likewise.
851         * modules/posix_spawnattr_getflags: Likewise.
852         * modules/posix_spawnattr_getpgroup: Likewise.
853         * modules/posix_spawnattr_getschedparam: Likewise.
854         * modules/posix_spawnattr_getschedpolicy: Likewise.
855         * modules/posix_spawnattr_getsigdefault: Likewise.
856         * modules/posix_spawnattr_getsigmask: Likewise.
857         * modules/posix_spawnattr_init: Likewise.
858         * modules/posix_spawnattr_setflags: Likewise.
859         * modules/posix_spawnattr_setpgroup: Likewise.
860         * modules/posix_spawnattr_setschedparam: Likewise.
861         * modules/posix_spawnattr_setschedpolicy: Likewise.
862         * modules/posix_spawnattr_setsigdefault: Likewise.
863         * modules/posix_spawnattr_setsigmask: Likewise.
864         * modules/posix_spawnp: Likewise.
865
866 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
867
868         Add option to do-release-commit-and-tag to specify branch.
869         * build-aux/do-release-commit-and-tag: Add --branch.
870
871 2011-05-03  Bruno Haible  <bruno@clisp.org>
872
873         Avoid unnecessary compilation units, through conditional dependencies.
874         * modules/accept (Depends-on): Add conditions to the dependencies.
875         * modules/acosl (Depends-on): Likewise.
876         * modules/argz (Depends-on): Likewise.
877         * modules/asinl (Depends-on): Likewise.
878         * modules/atanl (Depends-on): Likewise.
879         * modules/atoll (Depends-on): Likewise.
880         * modules/bind (Depends-on): Likewise.
881         * modules/btowc (Depends-on): Likewise.
882         * modules/canonicalize-lgpl (Depends-on): Likewise.
883         * modules/ceil (Depends-on): Likewise.
884         * modules/ceilf (Depends-on): Likewise.
885         * modules/ceill (Depends-on): Likewise.
886         * modules/chdir-long (Depends-on): Likewise.
887         * modules/chown (Depends-on): Likewise.
888         * modules/close (Depends-on): Likewise.
889         * modules/connect (Depends-on): Likewise.
890         * modules/cosl (Depends-on): Likewise.
891         * modules/dirfd (Depends-on): Likewise.
892         * modules/dprintf (Depends-on): Likewise.
893         * modules/dprintf-posix (Depends-on): Likewise.
894         * modules/error (Depends-on): Likewise.
895         * modules/euidaccess (Depends-on): Likewise.
896         * modules/expl (Depends-on): Likewise.
897         * modules/faccessat (Depends-on): Likewise.
898         * modules/fchdir (Depends-on): Likewise.
899         * modules/fclose (Depends-on): Likewise.
900         * modules/fcntl (Depends-on): Likewise.
901         * modules/fdopendir (Depends-on): Likewise.
902         * modules/fflush (Depends-on): Likewise.
903         * modules/floor (Depends-on): Likewise.
904         * modules/floorf (Depends-on): Likewise.
905         * modules/floorl (Depends-on): Likewise.
906         * modules/fnmatch (Depends-on): Likewise.
907         * modules/fopen (Depends-on): Likewise.
908         * modules/fprintf-posix (Depends-on): Likewise.
909         * modules/frexp (Depends-on): Likewise.
910         * modules/frexp-nolibm (Depends-on): Likewise.
911         * modules/frexpl (Depends-on): Likewise.
912         * modules/frexpl-nolibm (Depends-on): Likewise.
913         * modules/fseek (Depends-on): Likewise.
914         * modules/fsusage (Depends-on): Likewise.
915         * modules/ftell (Depends-on): Likewise.
916         * modules/ftello (Depends-on): Likewise.
917         * modules/futimens (Depends-on): Likewise.
918         * modules/getcwd (Depends-on): Likewise.
919         * modules/getcwd-lgpl (Depends-on): Likewise.
920         * modules/getdelim (Depends-on): Likewise.
921         * modules/getdomainname (Depends-on): Likewise.
922         * modules/getgroups (Depends-on): Likewise.
923         * modules/gethostname (Depends-on): Likewise.
924         * modules/getline (Depends-on): Likewise.
925         * modules/getlogin_r (Depends-on): Likewise.
926         * modules/getopt-posix (Depends-on): Likewise.
927         * modules/getpeername (Depends-on): Likewise.
928         * modules/getsockname (Depends-on): Likewise.
929         * modules/getsockopt (Depends-on): Likewise.
930         * modules/getsubopt (Depends-on): Likewise.
931         * modules/getusershell (Depends-on): Likewise.
932         * modules/glob (Depends-on): Likewise.
933         * modules/grantpt (Depends-on): Likewise.
934         * modules/iconv_open (Depends-on): Likewise.
935         * modules/iconv_open-utf (Depends-on): Likewise.
936         * modules/inet_ntop (Depends-on): Likewise.
937         * modules/inet_pton (Depends-on): Likewise.
938         * modules/ioctl (Depends-on): Likewise.
939         * modules/isapipe (Depends-on): Likewise.
940         * modules/isfinite (Depends-on): Likewise.
941         * modules/isinf (Depends-on): Likewise.
942         * modules/lchown (Depends-on): Likewise.
943         * modules/ldexpl (Depends-on): Likewise.
944         * modules/link (Depends-on): Likewise.
945         * modules/linkat (Depends-on): Likewise.
946         * modules/listen (Depends-on): Likewise.
947         * modules/logl (Depends-on): Likewise.
948         * modules/lstat (Depends-on): Likewise.
949         * modules/mbrlen (Depends-on): Likewise.
950         * modules/mbrtowc (Depends-on): Likewise.
951         * modules/mbsinit (Depends-on): Likewise.
952         * modules/mbsnrtowcs (Depends-on): Likewise.
953         * modules/mbsrtowcs (Depends-on): Likewise.
954         * modules/mbtowc (Depends-on): Likewise.
955         * modules/memcmp (Depends-on): Likewise.
956         * modules/mkdir (Depends-on): Likewise.
957         * modules/mkdtemp (Depends-on): Likewise.
958         * modules/mkfifo (Depends-on): Likewise.
959         * modules/mkfifoat (Depends-on): Likewise.
960         * modules/mknod (Depends-on): Likewise.
961         * modules/mkostemp (Depends-on): Likewise.
962         * modules/mkostemps (Depends-on): Likewise.
963         * modules/mkstemp (Depends-on): Likewise.
964         * modules/mkstemps (Depends-on): Likewise.
965         * modules/mktime (Depends-on): Likewise.
966         * modules/nanosleep (Depends-on): Likewise.
967         * modules/open (Depends-on): Likewise.
968         * modules/openat (Depends-on): Likewise.
969         * modules/perror (Depends-on): Likewise.
970         * modules/poll (Depends-on): Likewise.
971         * modules/popen (Depends-on): Likewise.
972         * modules/posix_spawn (Depends-on): Likewise.
973         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
974         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
975         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
976         * modules/posix_spawnp (Depends-on): Likewise.
977         * modules/pread (Depends-on): Likewise.
978         * modules/printf-posix (Depends-on): Likewise.
979         * modules/ptsname (Depends-on): Likewise.
980         * modules/putenv (Depends-on): Likewise.
981         * modules/pwrite (Depends-on): Likewise.
982         * modules/readline (Depends-on): Likewise.
983         * modules/readlink (Depends-on): Likewise.
984         * modules/readlinkat (Depends-on): Likewise.
985         * modules/recv (Depends-on): Likewise.
986         * modules/recvfrom (Depends-on): Likewise.
987         * modules/regex (Depends-on): Likewise.
988         * modules/remove (Depends-on): Likewise.
989         * modules/rename (Depends-on): Likewise.
990         * modules/renameat (Depends-on): Likewise.
991         * modules/rmdir (Depends-on): Likewise.
992         * modules/round (Depends-on): Likewise.
993         * modules/roundf (Depends-on): Likewise.
994         * modules/roundl (Depends-on): Likewise.
995         * modules/rpmatch (Depends-on): Likewise.
996         * modules/select (Depends-on): Likewise.
997         * modules/send (Depends-on): Likewise.
998         * modules/sendto (Depends-on): Likewise.
999         * modules/setenv (Depends-on): Likewise.
1000         * modules/setlocale (Depends-on): Likewise.
1001         * modules/setsockopt (Depends-on): Likewise.
1002         * modules/shutdown (Depends-on): Likewise.
1003         * modules/sigaction (Depends-on): Likewise.
1004         * modules/signbit (Depends-on): Likewise.
1005         * modules/sigprocmask (Depends-on): Likewise.
1006         * modules/sinl (Depends-on): Likewise.
1007         * modules/sleep (Depends-on): Likewise.
1008         * modules/snprintf (Depends-on): Likewise.
1009         * modules/snprintf-posix (Depends-on): Likewise.
1010         * modules/socket (Depends-on): Likewise.
1011         * modules/sprintf-posix (Depends-on): Likewise.
1012         * modules/sqrtl (Depends-on): Likewise.
1013         * modules/stat (Depends-on): Likewise.
1014         * modules/strchrnul (Depends-on): Likewise.
1015         * modules/strdup-posix (Depends-on): Likewise.
1016         * modules/strerror (Depends-on): Likewise.
1017         * modules/strerror_r-posix (Depends-on): Likewise.
1018         * modules/strndup (Depends-on): Likewise.
1019         * modules/strnlen (Depends-on): Likewise.
1020         * modules/strptime (Depends-on): Likewise.
1021         * modules/strsep (Depends-on): Likewise.
1022         * modules/strsignal (Depends-on): Likewise.
1023         * modules/strstr-simple (Depends-on): Likewise.
1024         * modules/strtod (Depends-on): Likewise.
1025         * modules/strtoimax (Depends-on): Likewise.
1026         * modules/strtok_r (Depends-on): Likewise.
1027         * modules/strtoumax (Depends-on): Likewise.
1028         * modules/symlink (Depends-on): Likewise.
1029         * modules/symlinkat (Depends-on): Likewise.
1030         * modules/tanl (Depends-on): Likewise.
1031         * modules/tcgetsid (Depends-on): Likewise.
1032         * modules/tmpfile (Depends-on): Likewise.
1033         * modules/trunc (Depends-on): Likewise.
1034         * modules/truncf (Depends-on): Likewise.
1035         * modules/truncl (Depends-on): Likewise.
1036         * modules/uname (Depends-on): Likewise.
1037         * modules/unlink (Depends-on): Likewise.
1038         * modules/unlockpt (Depends-on): Likewise.
1039         * modules/unsetenv (Depends-on): Likewise.
1040         * modules/usleep (Depends-on): Likewise.
1041         * modules/utimensat (Depends-on): Likewise.
1042         * modules/vasprintf (Depends-on): Likewise.
1043         * modules/vdprintf (Depends-on): Likewise.
1044         * modules/vdprintf-posix (Depends-on): Likewise.
1045         * modules/vfprintf-posix (Depends-on): Likewise.
1046         * modules/vprintf-posix (Depends-on): Likewise.
1047         * modules/vsnprintf (Depends-on): Likewise.
1048         * modules/vsnprintf-posix (Depends-on): Likewise.
1049         * modules/vsprintf-posix (Depends-on): Likewise.
1050         * modules/wcrtomb (Depends-on): Likewise.
1051         * modules/wcscasecmp (Depends-on): Likewise.
1052         * modules/wcscspn (Depends-on): Likewise.
1053         * modules/wcsdup (Depends-on): Likewise.
1054         * modules/wcsncasecmp (Depends-on): Likewise.
1055         * modules/wcsnrtombs (Depends-on): Likewise.
1056         * modules/wcspbrk (Depends-on): Likewise.
1057         * modules/wcsrtombs (Depends-on): Likewise.
1058         * modules/wcsspn (Depends-on): Likewise.
1059         * modules/wcsstr (Depends-on): Likewise.
1060         * modules/wcstok (Depends-on): Likewise.
1061         * modules/wcswidth (Depends-on): Likewise.
1062         * modules/wctob (Depends-on): Likewise.
1063         * modules/wctomb (Depends-on): Likewise.
1064         * modules/wctype (Depends-on): Likewise.
1065         * modules/wcwidth (Depends-on): Likewise.
1066         * modules/write (Depends-on): Likewise.
1067
1068 2011-05-03  Bruno Haible  <bruno@clisp.org>
1069
1070         Support for conditional dependencies.
1071         * doc/gnulib.texi (Module description): Document the syntax of
1072         conditional dependencies.
1073         * gnulib-tool: New option --conditional-dependencies.
1074         (func_usage): Document it.
1075         (cond_dependencies): New variable.
1076         (func_get_automake_snippet_conditional,
1077         func_get_automake_snippet_unconditional): New functions, extracted from
1078         func_get_automake_snippet.
1079         (func_get_automake_snippet): Use them.
1080         (sed_first_32_chars): New variable.
1081         (func_module_shellfunc_name): New function.
1082         (func_module_shellvar_name): New function.
1083         (func_module_conditional_name): New function.
1084         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1085         func_cond_module_condition): New functions.
1086         (func_modules_transitive_closure): Add support for conditional
1087         dependencies.
1088         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1089         conditional automake snippet in an automake conditional.
1090         (func_emit_autoconf_snippets): Emit shell functions that contain the
1091         code for conditional modules.
1092         (func_import, func_create_testdir): Update specification.
1093
1094 2011-05-03  Eric Blake  <eblake@redhat.com>
1095
1096         test-getaddrinfo: report error information
1097         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1098
1099 2011-05-03  Jim Meyering  <meyering@redhat.com>
1100
1101         bootstrap: avoid build failure when $GZIP is set
1102         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1103         program name.  If defined at all, it is supposed to list gzip options.
1104         Reported by Alan Curry in http://debbugs.gnu.org/8609
1105
1106 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1107
1108         readme-release: new module with release instructions
1109         * modules/readme-release: New module.
1110         * top/README-release: New file, from coreutils, grep, diffutils.
1111         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1112
1113 2011-05-02  Eric Blake  <eblake@redhat.com>
1114
1115         fflush: also replace fclose when fixing fflush
1116         * modules/fflush (Depends-on): Add fclose.
1117         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1118         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1119         memstreams with no backing fd.
1120         * doc/posix-functions/fclose.texi (fclose): Document the use of
1121         fflush module to fix the bug.
1122         * tests/test-fclose.c (main): Relax test when fclose is used in
1123         isolation.
1124
1125         fclose: add some tests
1126         * modules/fclose-tests: New test module.
1127         * tests/test-fclose.c: New file.
1128         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1129
1130         fclose: reduced dependencies
1131         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1132         simpler lseek.
1133         * lib/fclose.c (rpl_fclose): Likewise.
1134         Reported by Simon Josefsson.
1135
1136         exit: drop remaining clients
1137         * modules/argmatch (Depends-on): Replace exit with stdlib.
1138         * modules/copy-file (Depends-on): Likewise.
1139         * modules/execute (Depends-on): Likewise.
1140         * modules/exitfail (Depends-on): Likewise.
1141         * modules/obstack (Depends-on): Likewise.
1142         * modules/pagealign_alloc (Depends-on): Likewise.
1143         * modules/pipe-filter-gi (Depends-on): Likewise.
1144         * modules/pipe-filter-ii (Depends-on): Likewise.
1145         * modules/savewd (Depends-on): Likewise.
1146         * modules/spawn-pipe (Depends-on): Likewise.
1147         * modules/wait-process (Depends-on): Likewise.
1148         * modules/xsetenv (Depends-on): Likewise.
1149         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1150         * modules/git-merge-changelog (Depends-on): Likewise.
1151         * modules/long-options (Depends-on): Likewise.
1152         * modules/pt_chown (Depends-on): Likewise.
1153         * modules/sysexits (Depends-on): Likewise.
1154
1155         freading: relax license from LGPLv3+ to LGPLv2+
1156         * modules/freading (License): Relax LGPL version.
1157
1158 2011-05-02  Bruno Haible  <bruno@clisp.org>
1159
1160         fchdir: Remove unused dependencies.
1161         * modules/fchdir (Depends-on): Remove include_next.
1162
1163 2011-05-02  Bruno Haible  <bruno@clisp.org>
1164
1165         gnulib-tool: Refactor.
1166         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1167         from func_emit_autoconf_snippets.
1168         (func_emit_autoconf_snippets): Use it.
1169
1170 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1171
1172         * NEWS: Document removal of 'exit'.
1173         * modules/exit: Remove file.
1174
1175 2011-05-01  Bruno Haible  <bruno@clisp.org>
1176
1177         Update DEPENDENCIES.
1178         * DEPENDENCIES (gettext): Recommend the newest release.
1179         Reported by Simon Josefsson.
1180
1181 2011-05-01  Bruno Haible  <bruno@clisp.org>
1182
1183         gnulib-tool: Reduce code duplication.
1184         * gnulib-tool (func_emit_autoconf_snippets): New function.
1185         (func_import, func_create_testdir): Use it.
1186
1187 2011-04-30  Eric Blake  <eblake@redhat.com>
1188
1189         fclose: don't fail on non-seekable input stream
1190         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1191         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1192         since fflush is allowed to fail in that case.
1193
1194 2011-04-30  Bruno Haible  <bruno@clisp.org>
1195
1196         dup3: cleanup
1197         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1198
1199 2011-04-30  Bruno Haible  <bruno@clisp.org>
1200
1201         netdb: Make it work in C++ mode.
1202         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1203         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1204         module.
1205         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1206         gl_MODULE_INDICATOR_FOR_TESTS.
1207         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1208         * modules/netdb-c++-tests: New file.
1209         * tests/test-netdb-c++.cc: New file.
1210
1211 2011-04-30  Bruno Haible  <bruno@clisp.org>
1212
1213         New modules 'vfscanf', 'vscanf'.
1214         * modules/vfscanf: New file.
1215         * modules/vscanf: New file.
1216         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1217         here.
1218         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1219         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1220
1221 2011-04-30  Bruno Haible  <bruno@clisp.org>
1222
1223         passfd: Add comments.
1224         * lib/passfd.c: Add comments about platforms.
1225
1226 2011-04-30  Bruno Haible  <bruno@clisp.org>
1227
1228         sys_uio: Make <sys/uio.h> self-contained.
1229         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1230         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1231
1232 2011-04-30  Bruno Haible  <bruno@clisp.org>
1233
1234         sys_socket: Ensure 'struct iovec' definition.
1235         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1236         <sys/socket.h>.
1237         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1238
1239 2011-04-30  Bruno Haible  <bruno@clisp.org>
1240
1241         sys_uio: Protect definition of 'struct iovec'.
1242         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1243         it as a C struct.
1244
1245 2011-04-30  Bruno Haible  <bruno@clisp.org>
1246
1247         manywarnings: fix indentation
1248         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1249
1250 2011-04-30  Pádraig Brady <P@draigBrady.com>
1251
1252         manywarnings: add -Wno-missing-field-initializers if needed.
1253         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1254         option if it's needed to allow initialization with { 0, }
1255
1256 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1257
1258         announce-gen: cosmetic improvement
1259         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1260
1261 2011-04-29  Jim Meyering  <meyering@redhat.com>
1262
1263         vc-list-files: indent with spaces, not TABs
1264         * build-aux/vc-list-files: Convert leading TABs to spaces,
1265         to match the style of most other files in gnulib.
1266
1267         announce-gen: indent with spaces, not TABs
1268         * build-aux/announce-gen: Convert all TABs to spaces, to match
1269         the style of most other files in gnulib.
1270
1271 2011-04-29  Eric Blake  <eblake@redhat.com>
1272
1273         quotearg: avoid uninitialized variable use
1274         * lib/quotearg.c (quoting_options_from_style): Initialize
1275         remaining fields, and ensure that custom styles are only used via
1276         quoting_options rather than quoting_style.
1277
1278 2011-04-29  Jim Meyering  <meyering@redhat.com>
1279
1280         maint.mk: remove unused VC-tag variable
1281         * top/maint.mk (VC-tag): Remove unused variable.
1282
1283 2011-04-29  Bruno Haible  <bruno@clisp.org>
1284
1285         netdb: fix gai_strerror replacements
1286         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1287         * modules/netdb: Substitute it.
1288
1289 2011-04-29  Jim Meyering  <meyering@redhat.com>
1290
1291         test-getcwd.c: avoid new set-but-not-used warning
1292         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1293         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1294         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1295         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1296
1297         test-hash.c: avoid a new shadowing warning
1298         * tests/test-hash.c (main): Don't shadow "dup".
1299
1300 2011-04-28  Eric Blake  <eblake@redhat.com>
1301
1302         getaddrinfo: fix gai_strerror signature
1303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1304         and work around mingw with UNICODE defined.
1305         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1306         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1307         * modules/netdb (Makefile.am): Substitute it.
1308         * lib/netdb.in.h (gai_strerror): Declare replacement.
1309         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1310         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1311         the fix.
1312
1313         getsockopt: avoid compiler warning
1314         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1315         Reported by Matthias Bolte.
1316
1317         tests: drop unused link dependency
1318         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1319         * modules/dirent-safer-tests (Makefile.am): Likewise.
1320         * modules/fdopendir-tests (Makefile.am): Likewise.
1321         * modules/mkfifoat-tests (Makefile.am): Likewise.
1322         * modules/openat-safer-tests (Makefile.am): Likewise.
1323         * modules/openat-tests (Makefile.am): Likewise.
1324         * modules/readlinkat-tests (Makefile.am): Likewise.
1325         * modules/symlinkat-tests (Makefile.am): Likewise.
1326         * modules/linkat-tests (Makefile.am): Likewise.
1327         (Depends-on): Switch to filenamecat-lgpl.
1328         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1329         LIBINTL.
1330         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1331         * tests/test-linkat.c (main): Don't require xalloc.
1332
1333         hash, mgetgroups: drop xalloc dependency
1334         * lib/hash.c (includes): Adjust includes.
1335         * lib/mgetgroups.c (includes): Likewise.
1336         (xgetgroups): Move...
1337         * lib/xgetgroups.c: ...to new file.
1338         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1339         * modules/xgetgroups: New file, split from...
1340         * modules/mgetgroups: ...here.
1341         (Depends-on): Add xalloc-oversized.
1342         * modules/hash (Depends-on): Likewise.
1343         * modules/hash-tests (Depends-on): Drop xalloc.
1344         (test_hash_LDADD): Drop unused library.
1345         * tests/test-hash.c (main): Break xalloc dependency.
1346         (includes): Drop unused include.
1347
1348         xalloc-oversized: new module
1349         * modules/xalloc-oversized: New module.
1350         * modules/xalloc (Depends-on): Add it.
1351         * lib/xalloc.h (xalloc_oversized): Move...
1352         * lib/xalloc-oversized.h: ...into new file.
1353
1354         utimecmp: drop dependency on xmalloc
1355         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1356         due to memory pressure.
1357         * modules/utimecmp (Depends-on): Drop xalloc.
1358
1359 2011-04-27  Eric Blake  <eblake@redhat.com>
1360
1361         getcwd: fix mingw bugs
1362         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1363         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1364         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1365
1366 2011-04-27  Bruno Haible  <bruno@clisp.org>
1367
1368         mkstemps: Ensure declaration on MacOS X 10.5.
1369         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1370         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1371         MacOS X.
1372
1373 2011-04-27  Bruno Haible  <bruno@clisp.org>
1374
1375         mkstemp: More documentation.
1376         * doc/posix-functions/mkstemp.texi: Document header file problem on
1377         MacOS X.
1378
1379 2011-04-27  Bruno Haible  <bruno@clisp.org>
1380
1381         mkstemp: Tweak configure message when cross-compiling.
1382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1383         result as a guess.
1384
1385 2011-04-27  Bruno Haible  <bruno@clisp.org>
1386
1387         clean-temp: Clarify what it does.
1388         * lib/clean-temp.h: Add more comments.
1389         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1390         module.
1391         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1392         * doc/glibc-functions/mkstemps.texi: Likewise.
1393         * doc/glibc-functions/mkostemps.texi: Likewise.
1394
1395 2011-04-27  Eric Blake  <eblake@redhat.com>
1396
1397         fchdir: avoid extra chdir and fix test
1398         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1399         getcwd-lgpl.
1400         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1401         have to be canonical.
1402         (canonicalize_file_name): Drop unused macro.
1403         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1404
1405         filenamecat-lgpl: fix licence
1406         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1407         when it was first created.
1408
1409         linkat, renameat: add missing dependency
1410         * modules/linkat (Depends-on): Require getcwd-lgpl.
1411         * modules/renameat (Depends-on): Likewise.
1412
1413         tests: reduce dependencies
1414         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1415         * tests/test-renameat.c (main): Likewise.
1416         * modules/linkat-tests (Depends-on): Relax dependency.
1417         * modules/renameat-tests (Depends-on): Likewise.
1418         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1419         dependency explicit.
1420
1421         save-cwd: reduce default dependency
1422         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1423         * lib/save-cwd.c: Update comments.
1424         * NEWS: Document the semantic change.
1425
1426         getcwd: enhance tests
1427         * tests/test-getcwd-lgpl.c: New file, taken from...
1428         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1429         repeat long path stress tests from m4 probe.
1430         * modules/getcwd-lgpl-tests: New module.
1431         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1432         * m4/getcwd-abort-bug.m4: Update comment.
1433         * m4/getcwd-path-max.m4: Likewise.
1434
1435         getcwd-lgpl: new module
1436         * modules/getcwd-lgpl: New module.
1437         * lib/getcwd-lgpl.c: New file.
1438         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1439         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1440         * modules/getcwd (configure.ac): Set C witness.
1441         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1442
1443         getcwd: tweak comments
1444         * m4/getcwd-abort-bug.m4: Fix comments.
1445         * m4/getcwd-path-max.m4: Likewise.
1446         * m4/getcwd.m4: Likewise.
1447
1448 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1449         and Eric Blake  <eblake@redhat.com>
1450
1451         mkstemp: replace if system version uses wrong permissions
1452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1453         read/write mode bits set in file created by mkstemp.
1454         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1455
1456 2011-04-27  Eric Blake  <eblake@redhat.com>
1457
1458         passfd: avoid compiler warning
1459         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1460         Reported by Laine Stump.
1461
1462 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1463
1464         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1465         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1466
1467 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1468         and Eric Blake  <eblake@redhat.com>
1469
1470         mkstemp: mention clean-temp module
1471         * lib/mkstemp.c: Add comment.
1472         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1473
1474 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1475
1476         inttypes: also provide default values for 32-bit tests
1477         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1478         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1479
1480 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1481
1482         strtoumax: remove dependency on strtoimax
1483         This is like the strtoull change of yesterday.
1484         * modules/strtoumax (Files): Add lib/strtoimax.c.
1485         (Depends-on): Remove strtoimax and add verify.
1486
1487         inttypes-incomplete: new module
1488         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1489         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1490         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1491         of gl_INTTYPES_H.
1492         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1493         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1494         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1495         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1496         * modules/strtoumax, modules/xstrtol (Depends-on):
1497         Depend on inttypes-incomplete, not inttypes.
1498         * modules/inttypes-incomplete: New module, containing the contents
1499         of the old modules/inttypes module, except that the Files: section
1500         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1501         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1502         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1503         (Depends-on): Depend only on inttypes-incomplete.
1504         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1505
1506         inttypes: omit now-redundant strtoimax and strtoumax work
1507         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1508         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1509
1510         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1511         This supports apps that need pointers to strtoimax and strtoumax,
1512         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1513         nonexistent functions.  See
1514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1515         et seq.
1516         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1517         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1518         a macro.
1519         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1520
1521 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1522
1523         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1524
1525 2011-04-25  Bruno Haible  <bruno@clisp.org>
1526
1527         strtol, strtoul: Mark modules as obsolete.
1528         * modules/strtol (Status, Notice): New sections.
1529         * modules/strtoul (Status, Notice): New sections.
1530
1531 2011-04-25  Bruno Haible  <bruno@clisp.org>
1532
1533         strtod: Remove check for strtod, unless supporting old platforms.
1534         * modules/strtod-obsolete: New file.
1535         * m4/strtod-obsolete.m4: New file.
1536         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1537         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1538         * modules/strtod (Depends-on): Add strtod-obsolete.
1539         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1540
1541 2011-04-25  Bruno Haible  <bruno@clisp.org>
1542
1543         strcase: Make module obsolete.
1544         * modules/strcase (Status, Notice): New sections.
1545
1546 2011-04-25  Bruno Haible  <bruno@clisp.org>
1547
1548         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1549         * modules/dup2-obsolete: New file.
1550         * m4/dup2-obsolete.m4: New file.
1551         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1552         gl_FUNC_DUP2_OBSOLETE is not also defined.
1553         * modules/dup2 (Depends-on): Add dup2-obsolete.
1554         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1555
1556 2011-04-25  Bruno Haible  <bruno@clisp.org>
1557
1558         strnlen: Avoid memchr related link error on old obsolete platforms.
1559         * modules/memchr-obsolete: New file.
1560         * m4/memchr-obsolete.m4: New file.
1561         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1562         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1563         * modules/memchr (Depends-on): Add memchr-obsolete.
1564         * modules/strnlen (Depends-on): Likewise.
1565         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1566
1567 2011-04-25  Jim Meyering  <meyering@redhat.com>
1568
1569         maint.mk: makefile_at_at_check extend and clean up
1570         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1571         in addition to */Makefile.am.
1572         Exempt legitimate uses of @VAR@ notation, e.g.,
1573         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1574         Remove obsolete coreutils-specific comment.
1575         Prompted by discussion here:
1576         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1577
1578 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1579
1580         strtoul: remove dependency on strtol
1581         This is so that 'configure' need not check for strtol merely because
1582         the application needs strtoul.
1583         * modules/strtoul (Files): Add lib/strtol.c.
1584         (Depends-on): Remove strtol.
1585
1586         strtoull: remove dependency on strtoul
1587         This is like the strtoll change.
1588         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1589         (Depends-on): Remove strtoul.
1590
1591         strtoll: remove dependency on strtol
1592         This is so that 'configure' need not check for strtol merely because
1593         the application needs strtoll.
1594         * modules/strtoll (Files): Add lib/strtol.c.
1595         (Depends-on): Remove strtol.
1596
1597 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1598
1599         inttypes: Move some configure check to module 'imaxdiv'.
1600         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1601         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1602         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1603
1604 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1605
1606         inttypes: Move some configure check to module 'imaxabs'.
1607         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1608         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1609         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1610
1611 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         inttypes: Remove configure tests that are not needed since 2009-12-31.
1614         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1615         gl_cv_header_working_inttypes_h.
1616
1617 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         * modules/strnlen (Depends-on): Remove memchr.
1620         The strnlen implementation doesn't need the memchr module's fixes; see
1621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1622
1623         strtol: remove dependency on wchar
1624         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1625         * modules/strtol (Depends-on): Remove wchar.
1626
1627 2011-04-21  Eric Blake  <eblake@redhat.com>
1628
1629         passfd: fix test regression on Linux
1630         * modules/passfd-tests (configure.ac): Correct socketpair check.
1631
1632         passfd: speed up configure and drop unused code
1633         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1634         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1635         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1636         Instead of probing at configure for unix_scm_rights_bsd44_way,
1637         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1638         check to a struct member probe.
1639         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1640         (sendfd, recvfd): Update preprocessor checks.
1641         * modules/passfd (Files): Reflect rename, and drop unused file.
1642         (Depends-on): Drop unused dependency.
1643
1644         passfd: allow compilation on mingw
1645         * modules/sys_socket (Depends-on): Add sys_uio.
1646         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1647         iovec and a minimal struct msghdr.
1648         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1649         * tests/test-sys_socket.c (main): Enhance test.
1650         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1651         guaranteed to provide what we need.
1652         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1653         * modules/passfd-tests (Depends-on): Add sys_wait.
1654         * tests/test-passfd.c (main): Skip test on mingw, for now.
1655         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1656         partial 'struct msghdr' implementation.
1657
1658         sys_uio: new module
1659         * modules/sys_uio: New module.
1660         * modules/sys_uio-tests: Likewise.
1661         * lib/sys_uio.in.h: New file.
1662         * m4/sys_uio_h.m4: Likewise.
1663         * tests/test-sys_uio.c: Likewise.
1664         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1665         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1666
1667 2011-04-20  Jim Meyering  <meyering@redhat.com>
1668
1669         useless-if-before-free: avoid false-positive
1670         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1671         disjunct so that it too requires a terminating ";".  Without that,
1672         this script would identify as useless one statement from gcc that
1673         was not:
1674           if (aligned_ptr)
1675             free (((void **) aligned_ptr) [-1]);
1676
1677 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1678
1679         doc: update users.txt.
1680         * users.txt: Add barcode.
1681
1682 2011-04-19  Bruno Haible  <bruno@clisp.org>
1683
1684         ioctl: Remove link dependency on native Windows.
1685         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1686         (gl_close_fn, gl_ioctl_fn): New types.
1687         (struct fd_hook): Renamed from struct close_hook. Change type of
1688         private_close_fn field. Add private_ioctl_fn field.
1689         (close_hook_fn): Add parameter for primary close method.
1690         (execute_close_hooks, execute_all_close_hooks): Likewise.
1691         (ioctl_hook_fn): New type.
1692         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1693         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1694         argument.
1695         (unregister_fd_hook): Renamed from unregister_close_hook.
1696         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1697         Don't include <unistd.h>.
1698         (close): Remove undef.
1699         (anchor): Update.
1700         (execute_close_hooks): Add argument for primary close method.
1701         (execute_all_close_hooks): Likewise.
1702         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1703         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1704         argument. Allow each argument to be NULL.
1705         (unregister_fd_hook): Renamed from unregister_close_hook.
1706         * lib/close.c (rpl_close): Pass 'close' function pointer to
1707         execute_all_close_hooks.
1708         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1709         (primary_ioctl): New function.
1710         (ioctl): Don't call ioctlsocket here. Instead, call
1711         execute_all_ioctl_hooks.
1712         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1713         close method.
1714         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1715         (fd_sockets_hook): Renamed from close_sockets_hook.
1716         (gl_sockets_startup, gl_sockets_cleanup): Update.
1717         * modules/fd-hook: Renamed from modules/close-hook. Update.
1718         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1719         * modules/sockets (Depends-on): Likewise.
1720         * modules/ioctl (Depends-on): Add fd-hook.
1721         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1722         GNULIB_SOCKET.
1723
1724 2011-04-19  Bruno Haible  <bruno@clisp.org>
1725
1726         Move the support of O_NONBLOCK in open() to the 'open' module.
1727         * modules/nonblocking (Depends-on): Remove 'open'.
1728         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1729         gl_cv_have_open_O_NONBLOCK.
1730         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1731         O_NONBLOCK support.
1732         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1733
1734 2011-04-17  Bruno Haible  <bruno@clisp.org>
1735
1736         pipe2: Simplify code.
1737         * lib/pipe2.c (pipe2): Reduce code duplication.
1738
1739 2011-04-17  Bruno Haible  <bruno@clisp.org>
1740
1741         nonblocking: Add comment.
1742         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1743
1744 2011-04-17  Bruno Haible  <bruno@clisp.org>
1745
1746         nonblocking: Add tests for sockets.
1747         * tests/test-nonblocking-socket.sh: New file.
1748         * tests/test-nonblocking-socket-main.c: New file.
1749         * tests/test-nonblocking-socket-child.c: New file.
1750         * tests/test-nonblocking-socket.h: New file.
1751         * tests/socket-server.h: New file.
1752         * tests/socket-client.h: New file.
1753         * modules/nonblocking-socket-tests: New file.
1754         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1755
1756 2011-04-17  Bruno Haible  <bruno@clisp.org>
1757
1758         nonblocking: Add tests for pipes.
1759         * tests/test-nonblocking-pipe.sh: New file.
1760         * tests/test-nonblocking-pipe-main.c: New file.
1761         * tests/test-nonblocking-pipe-child.c: New file.
1762         * tests/test-nonblocking-pipe.h: New file.
1763         * tests/test-nonblocking-writer.h: New file.
1764         * tests/test-nonblocking-reader.h: New file.
1765         * tests/test-nonblocking-misc.h: New file.
1766         * modules/nonblocking-pipe-tests: New file.
1767         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1768
1769 2011-04-16  Bruno Haible  <bruno@clisp.org>
1770
1771         gettext: Clarify the needed programmer actions.
1772         * modules/gettext (Notice): New field.
1773         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1774
1775 2011-04-16  Bruno Haible  <bruno@clisp.org>
1776
1777         strchrnul: Tweak last commit.
1778         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1779         bug.
1780         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1781         as in _GL_FUNCDECL_SYS.
1782         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1783         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1784
1785 2011-04-15  Eric Blake  <eblake@redhat.com>
1786
1787         strchrnul: work around cygwin bug
1788         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1789         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1791         * modules/string (Makefile.am): Substitute it.
1792         * lib/string.in.h (strchrnul): Use it.
1793
1794 2011-04-15  Bruno Haible  <bruno@clisp.org>
1795
1796         Don't require lib/stdio-write.c when only module 'stdio' is used.
1797         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1798         invocation.
1799         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1800
1801 2011-04-14  Bruno Haible  <bruno@clisp.org>
1802
1803         Support non-blocking pipe I/O in read() on native Windows.
1804         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1805         (read): New declaration.
1806         * lib/read.c: New file.
1807         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1808         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1809         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1810         vscanf): New declarations.
1811         * lib/stdio-read.c: New file.
1812         * m4/read.m4: New file.
1813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1814         REPLACE_READ.
1815         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1816         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1817         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1818         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1819         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1820         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1821         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1822         * modules/read: New file.
1823         * modules/nonblocking (Files): Add lib/stdio-read.c.
1824         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1825         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1826         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1827         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1828         * modules/pread (Depends-on): Add read.
1829         * modules/safe-read (Depends-on): Likewise.
1830         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1831         gets, scanf, vfscanf, vscanf): Verify signatures.
1832         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1833         problem with non-blocking pipes.
1834         * doc/posix-functions/fgetc.texi: Likewise.
1835         * doc/posix-functions/fgets.texi: Likewise.
1836         * doc/posix-functions/fread.texi: Likewise.
1837         * doc/posix-functions/fscanf.texi: Likewise.
1838         * doc/posix-functions/getc.texi: Likewise.
1839         * doc/posix-functions/getchar.texi: Likewise.
1840         * doc/posix-functions/gets.texi: Likewise.
1841         * doc/posix-functions/scanf.texi: Likewise.
1842         * doc/posix-functions/vfscanf.texi: Likewise.
1843         * doc/posix-functions/vscanf.texi: Likewise.
1844
1845 2011-04-14  Bruno Haible  <bruno@clisp.org>
1846
1847         Support non-blocking pipe I/O in write() on native Windows.
1848         * lib/write.c (rpl_write): Split a write request that failed merely
1849         because the byte count was larger than the pipe buffer's size.
1850         * doc/posix-functions/write.texi: Mention the problem with large byte
1851         counts.
1852
1853 2011-04-14  Bruno Haible  <bruno@clisp.org>
1854
1855         wchar: Ensure that wchar_t gets defined on uClibc.
1856         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1857         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1858
1859 2011-04-13  Bruno Haible  <bruno@clisp.org>
1860
1861         safe-write, full-read: Avoid unnecessary compilation units.
1862         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1863         (Depends-on): Remove safe-read. Add ssize_t.
1864         * modules/full-read (Files): Add lib/full-write.c.
1865         (Depends-on): Add full-write.
1866
1867 2011-04-13  Bruno Haible  <bruno@clisp.org>
1868
1869         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1870         * modules/pwrite (Depends-on): Add 'write'.
1871
1872 2011-04-13  Bruno Haible  <bruno@clisp.org>
1873
1874         Support non-blocking pipe I/O in write() on native Windows.
1875         * lib/unistd.in.h (write): Enable replacement also if
1876         GNULIB_UNISTD_H_NONBLOCKING is 1.
1877         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1878         (rpl_write): When failing to write on a non-blocking pipe, change
1879         errno from ENOSPC to EAGAIN.
1880         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1881         putchar, puts, vfprintf, vprintf): Enable replacement also if
1882         GNULIB_STDIO_H_NONBLOCKING is 1.
1883         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1884         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1885         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1886         CALL_WITH_SIGPIPE_EMULATION.
1887         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1888         * m4/nonblocking.m4: New file.
1889         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1890         for non-blocking I/O support.
1891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1892         GNULIB_UNISTD_H_NONBLOCKING.
1893         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1894         required for non-blocking I/O support.
1895         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1896         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1897         lib/stdio-write.c, m4/asm-underscore.m4.
1898         (Depends-on): Add stdio, unistd.
1899         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1900         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1901         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1902         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1903         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1904         problem with non-blocking pipes.
1905         * doc/posix-functions/fputc.texi: Likewise.
1906         * doc/posix-functions/fputs.texi: Likewise.
1907         * doc/posix-functions/fwrite.texi: Likewise.
1908         * doc/posix-functions/printf.texi: Likewise.
1909         * doc/posix-functions/putc.texi: Likewise.
1910         * doc/posix-functions/putchar.texi: Likewise.
1911         * doc/posix-functions/puts.texi: Likewise.
1912         * doc/posix-functions/vfprintf.texi: Likewise.
1913         * doc/posix-functions/vprintf.texi: Likewise.
1914         * doc/posix-functions/write.texi: Likewise.
1915
1916 2011-04-10  Jim Meyering  <meyering@redhat.com>
1917
1918         maint.mk: prohibit doubled words
1919         Detect them also when they're separated by a newline.
1920         There are 3 ways to customize it:
1921           - disable the test on a per file basis, as usual with rules using
1922             $(VC_LIST_EXCEPT)
1923           - replace the default doubled-word-selecting regexp (affects all files)
1924           - ignore a particular file-vs-doubled-word match
1925         I nearly used that last one to ignore the "is is" match in
1926         coreutils' NEWS file, since the text was "ls -is is ..."
1927         To do that, I would have added this line to cfg.mk:
1928           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1929         but it would have ignored any "is is" match in NEWS.
1930         Low probability, but still...
1931         Instead, I changed the text, slightly:
1932           -  ls -is is now consistent with ls -lis in ignoring values returned
1933           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1934         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1935         (prohibit_doubled_word_): Define.
1936         (sc_prohibit_doubled_word): New rule.
1937         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1938
1939 2011-04-10  Jim Meyering  <meyering@redhat.com>
1940
1941         maint: fix doubled-word typo in comment
1942         * m4/gethostname.m4: s/is is/it is/
1943         * m4/getdomainname.m4: Likewise.
1944
1945 2011-04-10  Jim Meyering  <meyering@redhat.com>
1946
1947         maint: remove doubled word: s/it it/it/
1948         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1949
1950 2011-04-10  Jim Meyering  <meyering@redhat.com>
1951
1952         maint.mk: remove useless semicolon and backslash
1953         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1954         semicolon and backslash.
1955
1956 2011-04-10  Bruno Haible  <bruno@clisp.org>
1957
1958         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1959         * modules/stdint-tests (Depends-on): Add wchar.
1960
1961 2011-04-10  Jim Meyering  <meyering@redhat.com>
1962
1963         maint: remove doubled words in comments, e.g., s/a a/a/
1964         * lib/strptime.c (day_of_the_week): s/the the/the/
1965         * tests/test-chown.h (test_chown): s/a a/a/
1966
1967         test-chown.h: correct a cast
1968         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1969         when the destination is a stat.st_gid.
1970
1971 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1972
1973         getaddrinfo: Fix test for sa_len member.
1974         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1975         include <sys/types.h> before <sys/socket.h>.
1976
1977 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         maint: change "can not" to "cannot"
1980         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1981         boundaries.
1982
1983 2011-04-09  Jim Meyering  <meyering@redhat.com>
1984
1985         maint: change "a a" to "a"
1986         * tests/test-lchown.h (test_lchown): s/a a/a/
1987
1988         maint.mk: prohibit \<the the\>
1989         * top/maint.mk (sc_prohibit_the_the): New rule.
1990
1991         maint: fix "the the" in comment
1992         * lib/count-one-bits.h: s/the the/the/
1993
1994         maint: change "can not" to "cannot"
1995         But do not change the occurrences in maintain.texi or in
1996         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1997         * doc/gnulib-tool.texi: s/can not/cannot/
1998         * doc/posix-functions/accept.texi (accept): Likewise.
1999         * doc/posix-functions/socket.texi (socket): Likewise.
2000         * lib/mbrtowc.c: Likewise.
2001
2002         maint.mk: prohibit use of "can not"
2003         * top/maint.mk (sc_prohibit_can_not): New rule.
2004         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2005
2006 2011-04-09  Bruno Haible  <bruno@clisp.org>
2007
2008         careadlinkat: Guard against misuse of careadlinkatcwd.
2009         * lib/careadlinkat.c: Include <stdlib.h>.
2010         (careadlinkatcwd): Check that the fd argument is as expected.
2011
2012 2011-04-09  Bruno Haible  <bruno@clisp.org>
2013
2014         careadlinkat: Use common coding style.
2015         * lib/careadlinkat.c: Move gnulib includes after system includes.
2016
2017 2011-04-09  Bruno Haible  <bruno@clisp.org>
2018
2019         careadlinkat: Clarify specification.
2020         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2021         (careadlinkatcwd): Add comment.
2022         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2023
2024 2011-04-09  Bruno Haible  <bruno@clisp.org>
2025
2026         areadlinkat: Avoid link error on many platforms.
2027         * modules/areadlinkat (Depends-on): Add areadlink.
2028
2029 2011-04-09  Bruno Haible  <bruno@clisp.org>
2030
2031         allocator, careadlinkat: Fix double-inclusion guard.
2032         * lib/allocator.h: Fix double-inclusion guard.
2033         * lib/careadlinkat.h: Likewise.
2034
2035 2011-04-09  Bruno Haible  <bruno@clisp.org>
2036
2037         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2038         * lib/relocwrapper.c: Update dependencies hierarchy.
2039         * build-aux/install-reloc: Update list of files to be compiled.
2040         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2041         lib/allocator.[hc].
2042
2043 2011-04-08  Eric Blake  <eblake@redhat.com>
2044
2045         strftime: silence gnulib-tool warning
2046         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2047
2048 2011-04-08  Bruno Haible  <bruno@clisp.org>
2049
2050         verify: Fix syntax error with GCC 4.6 in C++ mode.
2051         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2052         (HAVE_STATIC_ASSERT): New macro.
2053         (verify_true, verify): Use 'static_assert' if it is supported and
2054         '_Static_assert' is not supported.
2055
2056 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         allocator: New module.
2059         * modules/allocator, lib/allocator.c: New files.
2060         * lib/allocator.h (stdlib_allocator): New decl.
2061         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2062         Remove.  Do not include <stdlib.h>.
2063         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2064         * modules/careadlinkat (Files): Remove lib/allocator.h.
2065         (Depends-on): Add allocator.
2066
2067         stdlib: let modules use system malloc, realloc
2068         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2069         if !_GL_USE_STDLIB_ALLOC.
2070         (malloc, realloc): Limit this change to a smaller scope.
2071
2072         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2073         (malloc, realloc): Don't #undef; no longer needed.
2074         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2075         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2076         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2077         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2078         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2079         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2080         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2081         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2082
2083         careadlinkat: rename members to avoid problem
2084         * lib/allocator.h (struct allocator): Rename members from
2085         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2086         and realloc are #define'd.  Reported by Eric Blake in
2087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2088         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2089
2090 2011-04-08  Eric Blake  <eblake@redhat.com>
2091
2092         nonblocking: reduce dependency
2093         * tests/test-nonblocking.c: Only test sockets when in use.
2094         * modules/nonblocking-tests (Depends-on): Drop socket.
2095         (Makefile.am): Link even if sockets are not present.
2096         * modules/pipe2-tests (Makefile.am): Likewise.
2097         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2098
2099         pipe2: fix O_NONBLOCK support on mingw
2100         * modules/pipe2 (Depends-on): Add nonblocking.
2101         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2102         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2103         * tests/test-nonblocking.c (main): Likewise.
2104         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2105
2106         fcntl-h: fix O_ACCMODE on cygwin
2107         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2108         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2109
2110         pipe-filter: drop O_NONBLOCK workarounds
2111         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2112         * modules/pipe-filter-ii (Depends-on): Likewise.
2113         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2114
2115         nonblocking: provide O_NONBLOCK for mingw
2116         * modules/nonblocking (Depends-on): Add open.
2117         (configure.ac): Set new witness macro.
2118         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2119         * modules/fcntl-h (Makefile.am): Substitute it.
2120         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2121         nonblocking module is in use.
2122         * lib/nonblocking.c: Adjust portability test.
2123         * lib/open.c (open): Don't let native open see gnulib flag.
2124         * tests/test-fcntl-h.c (main): Enhance test.
2125         * tests/test-open.h (test_open): Likewise.
2126         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2127
2128         careadlinkat: fix compilation error on mingw
2129         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2130         within struct allocator.
2131
2132 2011-04-06  Eric Blake  <eblake@redhat.com>
2133
2134         binary-io: relicense under LGPLv2+
2135         * modules/binary-io (License): Relax to LGPLv2+.
2136         Requested for libvirt, and required by pipe2.
2137
2138 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2139
2140         verify: use _Static_assert if available
2141         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2142         (verify_true, verify): Use it if available.  This generates better
2143         diagnostics with GCC 4.6.0 and later.
2144
2145 2011-04-05  Bruno Haible  <bruno@clisp.org>
2146
2147         Remove leftover generated .h files after config.status changed.
2148
2149         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2150         GL_GENERATE_ALLOCA_H.
2151         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2152         GL_GENERATE_ALLOCA_H evaluates to false.
2153
2154         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2155         GL_GENERATE_ARGZ_H.
2156         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2157         evaluates to false.
2158
2159         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2160         GL_GENERATE_BYTESWAP_H.
2161         * modules/byteswap (Makefile.am): Remove byteswap.h if
2162         GL_GENERATE_BYTESWAP_H evaluates to false.
2163
2164         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2165         GL_GENERATE_ERRNO_H.
2166         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2167         evaluates to false.
2168
2169         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2170         GL_GENERATE_FLOAT_H.
2171         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2172         evaluates to false.
2173
2174         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2175         GL_GENERATE_FNMATCH_H.
2176         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2177         GL_GENERATE_FNMATCH_H evaluates to false.
2178
2179         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2180         GL_GENERATE_GLOB_H.
2181         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2182         evaluates to false.
2183
2184         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2185         automake conditional GL_GENERATE_ICONV_H.
2186         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2187         evaluates to false.
2188
2189         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2190         GL_GENERATE_NETINET_IN_H.
2191         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2192         GL_GENERATE_NETINET_IN_H evaluates to false.
2193
2194         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2195         conditional GL_GENERATE_PTHREAD_H.
2196         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2197         * modules/pthread (Makefile.am): Remove pthread.h if
2198         GL_GENERATE_PTHREAD_H evaluates to false.
2199
2200         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2201         GL_GENERATE_SCHED_H.
2202         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2203         evaluates to false.
2204
2205         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2206         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2207         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2208         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2209
2210         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2211         GL_GENERATE_STDARG_H.
2212         * modules/stdarg (Makefile.am): Remove stdarg.h if
2213         GL_GENERATE_STDARG_H evaluates to false.
2214
2215         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2216         GL_GENERATE_STDBOOL_H.
2217         * modules/stdbool (Makefile.am): Remove stdbool.h if
2218         GL_GENERATE_STDBOOL_H evaluates to false.
2219
2220         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2221         conditional GL_GENERATE_STDDEF_H.
2222         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2223         * modules/stddef (Makefile.am): Remove stddef.h if
2224         GL_GENERATE_STDDEF_H evaluates to false.
2225
2226         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2227         GL_GENERATE_STDINT_H.
2228         * modules/stdint (Makefile.am): Remove stdint.h if
2229         GL_GENERATE_STDINT_H evaluates to false.
2230
2231         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2232         GL_GENERATE_SYSEXITS_H.
2233         * modules/sysexits (Makefile.am): Remove sysexits.h if
2234         GL_GENERATE_SYSEXITS_H evaluates to false.
2235
2236         Reported by Karl Berry and Ralf Wildenhues.
2237
2238 2011-04-05  Bruno Haible  <bruno@clisp.org>
2239
2240         Ensure to rebuild generated .h files when config.status has changed.
2241         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2242         config.status.
2243         * modules/ctype (Makefile.am): Likewise.
2244         * modules/dirent (Makefile.am): Likewise.
2245         * modules/errno (Makefile.am): Likewise.
2246         * modules/fcntl-h (Makefile.am): Likewise.
2247         * modules/float (Makefile.am): Likewise.
2248         * modules/getopt-posix (Makefile.am): Likewise.
2249         * modules/glob (Makefile.am): Likewise.
2250         * modules/iconv-h (Makefile.am): Likewise.
2251         * modules/inttypes (Makefile.am): Likewise.
2252         * modules/langinfo (Makefile.am): Likewise.
2253         * modules/locale (Makefile.am): Likewise.
2254         * modules/math (Makefile.am): Likewise.
2255         * modules/netdb (Makefile.am): Likewise.
2256         * modules/netinet_in (Makefile.am): Likewise.
2257         * modules/poll-h (Makefile.am): Likewise.
2258         * modules/pthread (Makefile.am): Likewise.
2259         * modules/pty (Makefile.am): Likewise.
2260         * modules/sched (Makefile.am): Likewise.
2261         * modules/search (Makefile.am): Likewise.
2262         * modules/selinux-h (Makefile.am): Likewise.
2263         * modules/signal (Makefile.am): Likewise.
2264         * modules/spawn (Makefile.am): Likewise.
2265         * modules/stdarg (Makefile.am): Likewise.
2266         * modules/stdbool (Makefile.am): Likewise.
2267         * modules/stddef (Makefile.am): Likewise.
2268         * modules/stdint (Makefile.am): Likewise.
2269         * modules/stdio (Makefile.am): Likewise.
2270         * modules/stdlib (Makefile.am): Likewise.
2271         * modules/string (Makefile.am): Likewise.
2272         * modules/strings (Makefile.am): Likewise.
2273         * modules/sys_file (Makefile.am): Likewise.
2274         * modules/sys_ioctl (Makefile.am): Likewise.
2275         * modules/sys_select (Makefile.am): Likewise.
2276         * modules/sys_socket (Makefile.am): Likewise.
2277         * modules/sys_stat (Makefile.am): Likewise.
2278         * modules/sys_time (Makefile.am): Likewise.
2279         * modules/sys_times (Makefile.am): Likewise.
2280         * modules/sys_utsname (Makefile.am): Likewise.
2281         * modules/sys_wait (Makefile.am): Likewise.
2282         * modules/sysexits (Makefile.am): Likewise.
2283         * modules/termios (Makefile.am): Likewise.
2284         * modules/time (Makefile.am): Likewise.
2285         * modules/unistd (Makefile.am): Likewise.
2286         * modules/wchar (Makefile.am): Likewise.
2287         * modules/wctype-h (Makefile.am): Likewise.
2288         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2289
2290 2011-04-05  Bruno Haible  <bruno@clisp.org>
2291
2292         pipe2: Relicense under LGPLv2+.
2293         * modules/pipe2 (License): Change to LGPLv2+.
2294         Requested by Eric Blake, for libvirt.
2295
2296 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2297
2298         bootstrap: compute gnulib_extra_files after updating build_aux
2299         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2300         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2301
2302 2011-04-05  Eric Blake  <eblake@redhat.com>
2303
2304         bootstrap: preserve git whitelist item sorting
2305         * build-aux/bootstrap (sort_patterns): New function.
2306         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2307
2308 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2309
2310         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2311         sc_space_tab check.
2312
2313 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2314
2315         areadlink, areadlinkat: rewrite in terms of careadlinkat
2316         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2317         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2318         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2319         (malloc, realloc): Remove #undefs.
2320         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2321         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2322         readlink, ssize_t, stdint, unistd.
2323         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2324         areadlink, stdint.
2325
2326         careadlinkat: new module
2327         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2328         * modules/careadlinkat: New files, written by me with
2329         a review and feedback from Ben Pfaff in
2330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2331
2332 2011-04-01  Bruno Haible  <bruno@clisp.org>
2333
2334         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2335         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2336         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2337         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2338         Reported by Bruce Korb <bruce.korb@gmail.com>.
2339
2340 2011-04-01  Bruno Haible  <bruno@clisp.org>
2341
2342         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2343         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2344         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2345         * modules/wcpcpy (Depends-on): Add extensions.
2346         * modules/wcpncpy (Depends-on): Likewise.
2347         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2348         systems.
2349         * doc/posix-functions/wcpncpy.texi: Likewise.
2350         * doc/posix-functions/wcwidth.texi: Likewise.
2351
2352 2011-03-31  Eric Blake  <eblake@redhat.com>
2353
2354         nonblocking: fix mingw test failures
2355         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2356         non-blocking flag on regular file.
2357         (get_nonblocking_flag): Set errno on invalid fd.
2358         * tests/test-nonblocking.c (main): Avoid test failure on
2359         directories if fchdir is not active.
2360         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2361
2362 2011-03-31  Bruno Haible  <bruno@clisp.org>
2363
2364         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2365         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2366         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2367         Reported by Simon Josefsson <simon@josefsson.org>.
2368
2369 2011-03-31  Bruno Haible  <bruno@clisp.org>
2370         and Eric Blake  <eblake@redhat.com>
2371
2372         nonblocking: new module
2373         * modules/nonblocking: New module.
2374         * modules/nonblocking-tests: Likewise.
2375         * lib/nonblocking.h: New file.
2376         * lib/nonblocking.c: Likewise.
2377         * tests/test-nonblocking.c: New test.
2378         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2379
2380 2011-03-30  Bruno Haible  <bruno@clisp.org>
2381
2382         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2383         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2384         instead of 'printf' format for GCC >= 4.4.
2385         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2386         (fprintf, printf, vfprintf, vprintf): Declare with
2387         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2388         the system's vfprintf() function.
2389         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2390
2391 2011-03-30  Eric Blake  <eblake@redhat.com>
2392
2393         passfd: fix scoping bug
2394         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2395         before sendmsg/recvmsg.
2396
2397         passfd: standardize coding conventions
2398         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2399         can be learned at compile time.
2400         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2401         ifdefs.
2402         (sendfd, recvfd): Follow gnulib code conventions.
2403
2404         passfd: fix incorrect sendmsg arguments
2405         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2406         incorrect msg_controllen value.
2407         * modules/passfd-tests (Depends-on): Check for alarm.
2408         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2409         Reported by Bastien ROUCARIES.
2410
2411 2011-03-30  Bruno Haible  <bruno@clisp.org>
2412
2413         c-strcasestr: Relicense under LGPLv2+.
2414         * modules/c-strcasestr (License): Change to LGPLv2+.
2415         Requested by Eric Blake, for libvirt.
2416
2417 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2418
2419         * users.txt: Add libidn2.  Fix libtasn1 link.
2420
2421 2011-03-30  Jim Meyering  <meyering@redhat.com>
2422
2423         tests: readlink* ("",... fails with EINVAL on newer kernels
2424         readlink and readlinkat have typically failed with ENOENT for
2425         the invalid, empty file name,  "".  However, with the advent
2426         of linux-2.6.39, they fail with EINVAL.
2427         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2428         when operating on the empty file name.
2429         * tests/test-readlink.h (test_readlink): Likewise.
2430
2431 2011-03-29  Bruno Haible  <bruno@clisp.org>
2432
2433         Relicense some modules under LGPLv2+, for libidn2.
2434         * modules/array-mergesort (License): Change to LGPLv2+.
2435         * modules/c-strcaseeq (License): Likewise.
2436         * modules/striconveh (License): Likewise.
2437         * modules/striconveha (License): Likewise.
2438         * modules/uniconv/base (License): Likewise.
2439         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2440         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2441         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2442         * modules/unictype/base (License): Likewise.
2443         * modules/unictype/bidiclass-of (License): Likewise.
2444         * modules/unictype/category-M (License): Likewise.
2445         * modules/unictype/category-none (License): Likewise.
2446         * modules/unictype/category-of (License): Likewise.
2447         * modules/unictype/category-test (License): Likewise.
2448         * modules/unictype/category-test-withtable (License): Likewise.
2449         * modules/unictype/combining-class (License): Likewise.
2450         * modules/unictype/joiningtype-of (License): Likewise.
2451         * modules/unictype/scripts (License): Likewise.
2452         * modules/uninorm/base (License): Likewise.
2453         * modules/uninorm/canonical-decomposition (License): Likewise.
2454         * modules/uninorm/composition (License): Likewise.
2455         * modules/uninorm/decompose-internal (License): Likewise.
2456         * modules/uninorm/decomposition-table (License): Likewise.
2457         * modules/uninorm/nfc (License): Likewise.
2458         * modules/uninorm/nfd (License): Likewise.
2459         * modules/uninorm/u32-normalize (License): Likewise.
2460         * modules/unistr/base (License): Likewise.
2461         * modules/unistr/u32-cpy (License): Likewise.
2462         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2463         * modules/unistr/u32-to-u8 (License): Likewise.
2464         * modules/unistr/u32-uctomb (License): Likewise.
2465         * modules/unistr/u8-check (License): Likewise.
2466         * modules/unistr/u8-mblen (License): Likewise.
2467         * modules/unistr/u8-mbtouc (License): Likewise.
2468         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2469         * modules/unistr/u8-mbtoucr (License): Likewise.
2470         * modules/unistr/u8-prev (License): Likewise.
2471         * modules/unistr/u8-strlen (License): Likewise.
2472         * modules/unistr/u8-to-u32 (License): Likewise.
2473         * modules/unistr/u8-uctomb (License): Likewise.
2474         * modules/unitypes (License): Likewise.
2475         Requested by Simon Josefsson.
2476
2477 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2478
2479         lib-symbol-visibility: Add a notice.
2480         * modules/lib-symbol-visibility (Notice): New field.
2481
2482 2011-03-29  Bruno Haible  <bruno@clisp.org>
2483
2484         getaddrinfo: Doc fix.
2485         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2486         section "fixed in Gnulib".
2487
2488 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2489
2490         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2491         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2492
2493 2011-03-26  Bruno Haible  <bruno@clisp.org>
2494
2495         unictype/property-byname: Reduce the number of load-time relocations.
2496         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2497         (UC_PROPERTY_INDEX_*): New enumeration values.
2498         (uc_property_byname): Convert an index from the lookup table to an
2499         uc_property_t.
2500         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2501         values.
2502
2503 2011-03-26  Bruno Haible  <bruno@clisp.org>
2504
2505         unictype/property-byname: Allow omitted word separators and aliases.
2506         * lib/unictype/pr_byname.gperf: Add property names without word
2507         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2508         for 'space'.
2509
2510 2011-03-26  Bruno Haible  <bruno@clisp.org>
2511
2512         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2513         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2514         also hyphens to space.
2515         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2516         without spaces.
2517         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2518
2519 2011-03-26  Bruno Haible  <bruno@clisp.org>
2520
2521         unictype/joiningtype-byname: Recognize long names as well.
2522         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2523         a long name.
2524         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2525         unictype/joiningtype_byname.h.
2526         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2527         * lib/unictype/joiningtype_byname.gperf: New file.
2528         * modules/unictype/joiningtype-byname (Files): Add
2529         lib/unictype/joiningtype_byname.gperf.
2530         (Depends-on): Add gperf.
2531         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2532         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2533         long names.
2534
2535         Tests for module 'unictype/joiningtype-longname'.
2536         * modules/unictype/joiningtype-longname-tests: New file.
2537         * tests/unictype/test-joiningtype_longname.c: New file.
2538
2539         New module 'unictype/joiningtype-longname'.
2540         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2541         * lib/unictype/joiningtype_longname.c: New file.
2542         * modules/unictype/joiningtype-longname: New file.
2543         * modules/unictype/joiningtype-all (Depends-on): Add
2544         unictype/joiningtype-longname.
2545
2546 2011-03-26  Bruno Haible  <bruno@clisp.org>
2547
2548         unictype/bidiclass-byname: Recognize long names as well.
2549         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2550         name.
2551         * lib/unictype/bidi_byname.c: Include <string.h>,
2552         unictype/bidi_byname.h.
2553         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2554         * lib/unictype/bidi_byname.gperf: New file.
2555         * modules/unictype/bidiclass-byname (Files): Add
2556         lib/unictype/bidi_byname.gperf.
2557         (Depends-on): Add gperf.
2558         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2559         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2560         long names.
2561
2562         Tests for module 'unictype/bidiclass-longname'.
2563         * modules/unictype/bidiclass-longname-tests: New file.
2564         * tests/unictype/test-bidi_longname.c: New file.
2565
2566         New module 'unictype/bidiclass-longname'.
2567         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2568         * lib/unictype/bidi_longname.c: New file.
2569         * modules/unictype/bidiclass-longname: New file.
2570         * modules/unictype/bidiclass-all (Depends-on): Add
2571         unictype/bidiclass-longname.
2572
2573 2011-03-26  Bruno Haible  <bruno@clisp.org>
2574
2575         unictype/bidi*: Rename modules.
2576         * modules/unictype/bidiclass-all: Renamed from
2577         modules/unictype/bidicategory-all.
2578         * modules/unictype/bidiclass-name: Renamed from
2579         modules/unictype/bidiclass-name.
2580         (Description): Update.
2581         * modules/unictype/bidiclass-name-tests: Renamed from
2582         modules/unictype/bidicategory-name-tests.
2583         * modules/unictype/bidiclass-byname: Renamed from
2584         modules/unictype/bidicategory-byname.
2585         (Description): Update.
2586         * modules/unictype/bidiclass-byname-tests: Renamed from
2587         modules/unictype/bidicategory-byname-tests.
2588         * modules/unictype/bidiclass-of: Renamed from
2589         modules/unictype/bidicategory-of.
2590         (Description): Update.
2591         * modules/unictype/bidiclass-of-tests: Renamed from
2592         modules/unictype/bidicategory-of-tests.
2593         * modules/unictype/bidiclass-test: Renamed from
2594         modules/unictype/bidicategory-test.
2595         (Description): Update.
2596         * modules/unictype/bidiclass-test-tests: Renamed from
2597         modules/unictype/bidicategory-test-tests.
2598         * modules/unictype/bidicategory-all: New file, a simple redirection.
2599         * modules/unictype/bidicategory-name: Likewise.
2600         * modules/unictype/bidicategory-byname: Likewise.
2601         * modules/unictype/bidicategory-of: Likewise.
2602         * modules/unictype/bidicategory-test: Likewise.
2603         * modules/unictype/property-bidi-* (Dependencies): Update.
2604         * lib/unictype/bidi_*.c: Update comment.
2605
2606 2011-03-26  Bruno Haible  <bruno@clisp.org>
2607
2608         unictype/bidi*: Rename functions, part 2.
2609         * modules/unictype/bidicategory-name (configure.ac): Update required
2610         libunistring version.
2611         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2612
2613 2011-03-25  Bruno Haible  <bruno@clisp.org>
2614
2615         New module 'unictype/combining-class-all'.
2616         * modules/unictype/combining-class-all: New file.
2617
2618         Tests for module 'unictype/combining-class-byname'.
2619         * modules/unictype/combining-class-byname-tests: New file.
2620         * tests/unictype/test-combiningclass_byname.c: New file.
2621
2622         New module 'unictype/combining-class-byname'.
2623         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2624         * lib/unictype/combiningclass_byname.c: New file.
2625         * lib/unictype/combiningclass_byname.gperf: New file.
2626         * modules/unictype/combining-class-byname: New file.
2627
2628         Tests for module 'unictype/combining-class-longname'.
2629         * modules/unictype/combining-class-longname-tests: New file.
2630         * tests/unictype/test-combiningclass_longname.c: New file.
2631
2632         New module 'unictype/combining-class-longname'.
2633         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2634         * lib/unictype/combiningclass_longname.c: New file.
2635         * modules/unictype/combining-class-longname: New file.
2636
2637         Tests for module 'unictype/combining-class-name'.
2638         * modules/unictype/combining-class-name-tests: New file.
2639         * tests/unictype/test-combiningclass_name.c: New file.
2640
2641         New module 'unictype/combining-class-name'.
2642         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2643         * lib/unictype/combiningclass_name.c: New file.
2644         * modules/unictype/combining-class-name: New file.
2645
2646 2011-03-25  Bruno Haible  <bruno@clisp.org>
2647
2648         unictype/combining-class: Rename source files.
2649         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2650         of unictype/combining.h.
2651         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2652         Update.
2653         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2654         * modules/unictype/combining-class (Description): Fix.
2655         (Files, Makefile.am): Update.
2656         * tests/unictype/test-combiningclass.c: Renamed from
2657         tests/unictype/test-combining.c.
2658         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2659
2660 2011-03-25  Bruno Haible  <bruno@clisp.org>
2661
2662         unictype: Update list of canonical combining classes.
2663         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2664
2665 2011-03-25  Bruno Haible  <bruno@clisp.org>
2666
2667         unictype/category-byname: Recognize long names as well.
2668         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2669         a long name.
2670         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2671         unictype/categ_byname.h.
2672         (UC_CATEGORY_INDEX_*): New enumeration values.
2673         (uc_general_category_byname): Use uc_general_category_lookup and
2674         convert from index to value.
2675         * lib/unictype/categ_byname.gperf: New file.
2676         * modules/unictype/category-byname (Files): Add
2677         lib/unictype/categ_byname.gperf.
2678         (Depends-on): Add gperf.
2679         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2680         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2681         long names.
2682
2683         Tests for module 'unictype/category-longname'.
2684         * modules/unictype/category-longname-tests: New file.
2685         * tests/unictype/test-categ_longname.c: New file.
2686
2687         New module 'unictype/category-longname'.
2688         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2689         * lib/unictype/categ_longname.c: New file.
2690         * modules/unictype/category-longname: New file.
2691         * modules/unictype/category-all (Depends-on): Add it.
2692
2693 2011-03-25  Bruno Haible  <bruno@clisp.org>
2694
2695         Tests for module 'unictype/category-LC'.
2696         * modules/unictype/category-LC-tests: New file.
2697         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2698
2699         New module 'unictype/category-LC'.
2700         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2701         (UC_CATEGORY_LC): New declaration.
2702         (UC_CASED_LETTER): New macro.
2703         * lib/gen-uni-tables.c (is_category_LC): New function.
2704         (output_categories): Also handle category LC.
2705         (UC_CATEGORY_MASK_LC): New enumeration value.
2706         (general_category_byname): Also handle category LC.
2707         * lib/unictype/categ_LC.c: New file.
2708         * lib/unictype/categ_LC.h: New file, automatically generated.
2709         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2710         category LC.
2711         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2712         * modules/unictype/category-LC: New file.
2713         * modules/unictype/category-byname (Depends-on): Add
2714         unictype/category-LC.
2715         * modules/unictype/category-all (Depends-on): Likewise.
2716
2717 2011-03-25  Eric Blake  <eblake@redhat.com>
2718
2719         xmalloc: revert yesterday's regression
2720         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2721         realloc's underlying behavior (allowing allocation of zero-size
2722         objects, especially if malloc-gnu is also in use).
2723
2724 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2725
2726         maint.mk: add missing version to VC-tag
2727         * top/maint.mk: git tag was missing actual tag name; add it.
2728
2729         valgrind: do leak checking, and exit with code 1 on error (not 0)
2730         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2731         to VALGRIND.
2732
2733 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2734
2735         posix-modules: say what it does.
2736         * posix-modules: Add a line to the --help output saying what it does.
2737
2738 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2739
2740         xmalloc: Do not leak if underlying realloc is C99 compatible.
2741         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2742         This avoids a leak on C99-based systems.  See
2743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2744
2745 2011-03-24  Eric Blake  <eblake@redhat.com>
2746
2747         realloc: document portability problem
2748         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2749         passing 0 size to realloc.
2750
2751 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2752
2753         doc: update users.txt
2754         * users.txt: Add cvsps, tmpwatch
2755
2756 2011-03-23  Matt Rice  <ratmice@gmail.com>
2757
2758         doc: update users.txt
2759         * users.txt: Add gdb.
2760
2761 2011-03-23  Jim Meyering  <meyering@redhat.com>
2762
2763         doc: update users.txt
2764         Looking through matches up to the following URL (there are still
2765         several more pages), I found several projects that use gnulib:
2766         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2767         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2768         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2769
2770 2011-03-22  Bruno Haible  <bruno@clisp.org>
2771
2772         unictype/bidi*: Rename functions.
2773         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2774         uc_bidi_class, uc_is_bidi_class): New declarations.
2775         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2776         uc_bidi_category_byname.
2777         (uc_bidi_category_byname): New function.
2778         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2779         u_bidi_category_name.
2780         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2781         (uc_bidi_category_name): New function.
2782         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2783         uc_bidi_category.
2784         (uc_bidi_category): New function.
2785         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2786         uc_is_bidi_category. Invoke uc_bidi_class.
2787         (uc_is_bidi_category): New function.
2788         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2789         instead of uc_bidi_category_byname.
2790         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2791         instead of uc_bidi_category_name.
2792         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2793         uc_bidi_category.
2794         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2795         instead of uc_is_bidi_category.
2796
2797 2011-03-21  Bruno Haible  <bruno@clisp.org>
2798
2799         New module 'unictype/joininggroup-all'.
2800         * modules/unictype/joininggroup-all: New file.
2801
2802         Tests for module 'unictype/joininggroup-of'.
2803         * modules/unictype/joininggroup-of-tests: New file.
2804         * tests/unictype/test-joininggroup_of.c: New file.
2805         * tests/unictype/test-joininggroup_of.h: New file, automatically
2806         generated by gen-uni-tables.
2807
2808         New module 'unictype/joininggroup-of'.
2809         * modules/unictype/joininggroup-of: New file.
2810         * lib/unictype/joininggroup_of.c: New file.
2811         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2812         gen-uni-tables.
2813
2814         Tests for module 'unictype/joininggroup-byname'.
2815         * modules/unictype/joininggroup-byname-tests: New file.
2816         * tests/unictype/test-joininggroup_byname.c: New file.
2817
2818         New module 'unictype/joininggroup-byname'.
2819         * modules/unictype/joininggroup-byname: New file.
2820         * lib/unictype/joininggroup_byname.c: New file.
2821         * lib/unictype/joininggroup_byname.gperf: New file.
2822
2823         Tests for module 'unictype/joininggroup-name'.
2824         * modules/unictype/joininggroup-name-tests: New file.
2825         * tests/unictype/test-joininggroup_name.c: New file.
2826
2827         New module 'unictype/joininggroup-name'.
2828         * modules/unictype/joininggroup-name: New file.
2829         * lib/unictype/joininggroup_name.c: New file.
2830         * lib/unictype/joininggroup_name.h: New file.
2831
2832         New module 'unictype/joiningtype-all'.
2833         * modules/unictype/joiningtype-all: New file.
2834
2835         Tests for module 'unictype/joiningtype-of'.
2836         * modules/unictype/joiningtype-of-tests: New file.
2837         * tests/unictype/test-joiningtype_of.c: New file.
2838         * tests/unictype/test-joiningtype_of.h: New file, automatically
2839         generated by gen-uni-tables.
2840
2841         New module 'unictype/joiningtype-of'.
2842         * modules/unictype/joiningtype-of: New file.
2843         * lib/unictype/joiningtype_of.c: New file.
2844         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2845         gen-uni-tables.
2846
2847         Tests for module 'unictype/joiningtype-byname'.
2848         * modules/unictype/joiningtype-byname-tests: New file.
2849         * tests/unictype/test-joiningtype_byname.c: New file.
2850
2851         New module 'unictype/joiningtype-byname'.
2852         * modules/unictype/joiningtype-byname: New file.
2853         * lib/unictype/joiningtype_byname.c: New file.
2854
2855         Tests for module 'unictype/joiningtype-name'.
2856         * modules/unictype/joiningtype-name-tests: New file.
2857         * tests/unictype/test-joiningtype_name.c: New file.
2858
2859         New module 'unictype/joiningtype-name'.
2860         * modules/unictype/joiningtype-name: New file.
2861         * lib/unictype/joiningtype_name.c: New file.
2862
2863         unictype: Add support for Arabic shaping properties.
2864         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2865         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2866         declarations.
2867         (UC_JOINING_GROUP_*): New enumeration values.
2868         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2869         declarations.
2870         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2871         (unicode_joining_type): New variable.
2872         (UC_JOINING_GROUP_*): New enumeration values.
2873         (unicode_joining_group): New variable.
2874         (fill_arabicshaping, joining_type_as_c_identifier,
2875         output_joining_type_test, output_joining_type,
2876         joining_group_as_c_identifier, output_joining_group_test,
2877         output_joining_group): New functions.
2878         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2879         fill_arabicshaping and output_joining_type_test, output_joining_type,
2880         output_joining_group_test, output_joining_group.
2881         Reported by Simon Josefsson.
2882
2883 2011-03-21  Jim Meyering  <meyering@redhat.com>
2884
2885         strftime: fix a bug in yesterday's change
2886         * lib/strftime.c (add): Accommodate width's initial value of -1.
2887         Otherwise, nstrftime would copy uninitialized data into
2888         the result buffer.
2889
2890 2011-03-21  Jim Meyering  <meyering@redhat.com>
2891
2892         tests: add strftime-tests module
2893         * tests/test-strftime.c: New file.
2894         * modules/strftime-tests: New module.
2895
2896 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2897
2898         strftime: don't assume a byte count fits in 'int'
2899         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2900         found this problem by static analysis, using gcc -Wstrict-overflow
2901         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2902         on an integer overflow having undefined behavior, but it turns out
2903         that the argument is a size, which might not fit in 'int' anyway,
2904
2905 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2906
2907         stdio: don't require ignore_value around fwrite
2908
2909         This patch works around libc bug 11959
2910         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2911         Without this patch, applications must often write
2912         ignore_value (fwrite (...)) even though the ignore_value is
2913         not helpful here.  It's common to write many objects, using
2914         fwrite/printf/etc., and then use ferror to detect output error.
2915
2916         I considered making this patch optional, but decided against it,
2917         because libc is obviously being inconsistent here: there is no
2918         reason libc should insist that user code must inspect fwrite
2919         return's value without also insisting that it inspect printf's,
2920         putchar's, etc.  If user code wants to have a strict style where
2921         all these functions' values are checked (so that ferror need not
2922         be checked), we could add support for that style in a new gnulib
2923         module, but in the meantime it's better to be consistent and to
2924         support common usage.
2925
2926         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2927         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2928         that we are compiling in checking mode, and if not C++, and
2929         if not already wrapping fwrite for some other reason.
2930         (fwrite): #define to rpl_fwrite if the latter is defined.
2931
2932 2011-03-20  Bruno Haible  <bruno@clisp.org>
2933
2934         verror: Fix compilation error introduced on 2011-02-13.
2935         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2936         instead of __attribute__.
2937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2938
2939 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2940             Bruno Haible  <bruno@clisp.org>
2941
2942         socklen: do not depend on sys_socket
2943         While trying to modify Emacs to use gnulib's socklen module,
2944         I discovered a circular dependency: socklen depends on sys_socket
2945         and vice versa.  Emacs can use socklen, but it does not need
2946         sys_socket because it has its own substitute for sys/socket.h.
2947         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2948         gl_TYPE_SOCKLEN_T.
2949         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2950         gl_PREREQ_SYS_H_SOCKET.
2951         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2952         gl_PREREQ_SYS_H_SOCKET.
2953         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2954         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2955         * modules/socklen (Depends-on): Do not depend on sys_socket.
2956         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2957
2958 2011-03-20  Jim Meyering  <meyering@redhat.com>
2959
2960         maint.mk: sort file names *after* new transformation
2961         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2962         prefix would have led to an unwarranted failure in GNU parted.
2963         Sort after that transformation.
2964
2965 2011-03-19  Jim Meyering  <meyering@redhat.com>
2966
2967         maint.mk: fix po-file syntax-check rule
2968         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2969         Patch by Bruno Haible.
2970
2971 2011-03-19  Bruno Haible  <bruno@clisp.org>
2972
2973         socklen: Update comment.
2974         * m4/socklen.m4: Update comment about platforms.
2975
2976 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2977             Bruno Haible  <bruno@clisp.org>
2978
2979         inet_ntop, inet_pton: Simplify.
2980         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2981         documented to provide socklen_t and we already depend on sys_socket.
2982         * modules/inet_pton (Depends-on): Likewise.
2983         * lib/arpa_inet.in.h: Adjust comment.
2984
2985 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2986             Bruno Haible  <bruno@clisp.org>
2987
2988         netdb: Simplify.
2989         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2990         documented to provide socklen_t and we already depend on sys_socket.
2991         * lib/netdb.in.h: Adjust comment.
2992
2993 2011-03-19  Bruno Haible  <bruno@clisp.org>
2994
2995         sys_socket, netdb: Document problem with socklen_t.
2996         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2997         platforms.
2998         * doc/posix-headers/netdb.texi: Likewise.
2999
3000 2011-03-18  Eric Blake  <eblake@redhat.com>
3001
3002         maint.mk: let po check work in VPATH build
3003         * top/maint.mk (po_file): Allow cfg.mk override.
3004         (sc_po_check): Allow VPATH use.
3005         Reported by Jiri Denemark.
3006
3007 2011-03-16  Jim Meyering  <meyering@redhat.com>
3008
3009         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3010         Before, you would have had to create one .x-sc_ file per rule in order
3011         to exempt offending files.  Now, you may instead use a Make variable --
3012         usually defined in cfg.mk -- whose name identifies the affected rule.
3013         * top/maint.mk (_sc_excl): Define.
3014         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3015         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3016
3017 2011-03-13  Bruno Haible  <bruno@clisp.org>
3018
3019         ignore-value tests: Avoid warnings.
3020         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3021         empty for gcc < 3.4.
3022
3023 2011-03-13  Bruno Haible  <bruno@clisp.org>
3024
3025         passfd: Fix link error on Solaris.
3026         * modules/passfd (Description): Correct.
3027         (Depends-on): Add socketlib.
3028         (Link): New section.
3029         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3030
3031 2011-03-13  Bruno Haible  <bruno@clisp.org>
3032
3033         passfd: Fix link error on AIX 5.2.
3034         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3035
3036 2011-03-13  Bruno Haible  <bruno@clisp.org>
3037
3038         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3039         * lib/sys_socket.in.h: Include <stddef.h>.
3040         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3041         CMSG_FIRSTHDR. Remove unused variable.
3042
3043 2011-03-13  Bruno Haible  <bruno@clisp.org>
3044
3045         passfd: Fix compilation error on OpenBSD.
3046         * lib/passfd.c: Include <sys/uio.h>.
3047
3048 2011-03-13  Bruno Haible  <bruno@clisp.org>
3049
3050         passfd test: Fix warnings.
3051         * tests/test-passfd.c: Include <sys/wait.h>.
3052         (main): Fix typo.
3053
3054 2011-03-13  Bruno Haible  <bruno@clisp.org>
3055
3056         passfd module, part 4, tweaks.
3057         * tests/test-passfd.c: Reorder includes.
3058         (main): Fix perror and printf calls.
3059
3060 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3061
3062         passfd module, part 4.
3063         * modules/passfd-tests: New file.
3064         * tests/test-passfd.c: New file.
3065
3066 2011-03-13  Jim Meyering  <meyering@redhat.com>
3067
3068         Makefile: rely on GNU make; derive syntax-check rule names
3069         Rather than requiring that each sc_ rule be listed as a dependent
3070         of "check", use features of GNU make to derive the list.
3071         * Makefile (syntax-check-rules): Define.
3072         (check): Depend on the new variable, not the hard-coded list.
3073
3074 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3075             Bruno Haible  <bruno@clisp.org>
3076
3077         passfd module, part 3.
3078         * lib/passfd.h (recvfd): Add a flags argument.
3079         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3080         (recvfd): Add a flags argument.
3081         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3082         exists.
3083         * modules/passfd (Depends-on): Add cloexec.
3084         Suggested by Eric Blake.
3085
3086 2011-03-13  Bruno Haible  <bruno@clisp.org>
3087
3088         passfd module, part 2, tweaks.
3089         * modules/passfd (Files): Reorder.
3090         (Depends-on): Remove errno.
3091         (Include): Remove <sys/socket.h>, <sys/un.h>.
3092         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3093         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3094         specification header. Include <sys/socket.h> always. Don't include
3095         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3096         (sendfd): Clarify that it sets errno when it fails.
3097         (recvfd): Fix specification.
3098
3099 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3100
3101         passfd module, part 2.
3102         * modules/passfd: New file.
3103         * lib/passfd.h: New file.
3104         * lib/passfd.c: New file.
3105
3106 2011-03-12  Bruno Haible  <bruno@clisp.org>
3107
3108         wcswidth, mbswidth: Avoid integer overflow.
3109         * lib/wcswidth.c: Include <limits.h>.
3110         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3111         * lib/mbswidth.c: Include <limits.h>.
3112         (mbsnwidth): Avoid 'int' overflow.
3113         Reported by Jim Meyering.
3114
3115 2011-03-12  Bruno Haible  <bruno@clisp.org>
3116
3117         futimens, utimensat: Avoid endless recursion on Solaris 10.
3118         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3119         Solaris.
3120         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3121         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3122
3123 2011-03-11  Jim Meyering  <meyering@redhat.com>
3124
3125         maint.mk: relax a regexp to accommodate other formatting styles
3126         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3127         between "ngettext" and the following "(".
3128
3129 2011-03-11  Pádraig Brady <P@draigBrady.com>
3130
3131         maint.mk: suppress a false positive warning
3132         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3133         diagnostics are marked with ngettext.
3134
3135 2011-03-10  Eric Blake  <eblake@redhat.com>
3136
3137         wchar: add explicit dependencies, for Tru64
3138         * modules/mbmemcasecoll (Depends-on): Add wchar.
3139         * modules/mbtowc (Depends-on): Likewise.
3140         * modules/vasnprintf (Depends-on): Likewise.
3141         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3142         * modules/wctomb (Depends-on): Likewise.
3143         Reported by Peter O'Gorman.
3144
3145 2011-03-08  Bruno Haible  <bruno@clisp.org>
3146
3147         passfd module, part 1, tweaks.
3148         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3149         Improve indentation. Improve AC_MSG_CHECKING messages.
3150         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3151         gl_SOCKET_FAMILIES.
3152
3153 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3154
3155         passfd module, part 1.
3156         * m4/afunix.m4: New file.
3157         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3158         sockets.
3159
3160 2011-03-08  Bruno Haible  <bruno@clisp.org>
3161
3162         regex-quote: New API.
3163         * lib/regex-quote.h: Include <stdbool.h>.
3164         (struct regex_quote_spec): New type.
3165         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3166         New declarations.
3167         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3168         'const struct regex_quote_spec *' argument.
3169         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3170         (pcre_special): New constant.
3171         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3172         New functions.
3173         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3174         'const struct regex_quote_spec *' argument.
3175         * modules/regex-quote (Depends-on): Add stdbool.
3176         * tests/test-regex-quote.c (check): Update for new API. Add test for
3177         anchored results.
3178         * NEWS: Mention the API change.
3179         Reported by Reuben Thomas and Eric Blake.
3180
3181 2011-03-06  Bruno Haible  <bruno@clisp.org>
3182
3183         regex-quote: Fix creation of POSIX extended regular expressions.
3184         * lib/regex-quote.c (ere_special): Add grouping and alternation
3185         operators.
3186
3187 2011-03-05  Bruno Haible  <bruno@clisp.org>
3188
3189         doc: Improve doc regarding autopoint vs. gnulib.
3190         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3191         disable autopoint while running autoreconf.
3192         Suggested by Ralf Wildenhues.
3193
3194 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3195
3196         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3197         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3198
3199 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3200
3201         parse-duration: remove xalloc.h dependency
3202         * lib/parse-duration.c (parse_period): handle NULL return from
3203         strdup instead of calling xstrdup().
3204         * modules/parse-duration: remove "xalloc" dependency
3205
3206 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3207
3208         bootstrap: honor m4_base when running aclocal
3209         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3210
3211 2011-03-02  Jim Meyering  <meyering@redhat.com>
3212
3213         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3214         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3215         on request from Matt Booth.
3216
3217 2011-03-01  Eric Blake  <eblake@redhat.com>
3218
3219         test-link: work on Hurd
3220         * tests/test-link.h (test_link): Hurd rejects linking directories
3221         with EISDIR instead of the POSIX-mandated EPERM.
3222
3223 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3224
3225         stdio: simplify by moving files to printf-posix, sigpipe
3226         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3227         since this symbol is needed only if printf is replaced.
3228         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3229         Require gl_ASM_SYMBOL_PREFIX.
3230         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3231         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3232         (Depends-on): Add 'raise'.
3233         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3234         * modules/stdio (Files): Remove lib/stdio-write.c,
3235         m4/asm-underscore.m4.
3236         (Depends-on): Remove 'raise'.
3237
3238         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3239         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3240         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3241         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3242
3243 2011-02-28  Bruno Haible  <bruno@clisp.org>
3244
3245         localcharset: Assume ANSI C behaviour of free().
3246         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3247         calling free().
3248         Suggested by Simon Josefsson <simon@josefsson.org>.
3249
3250 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3251             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3252             Bruno Haible  <bruno@clisp.org>  (tiny change)
3253
3254         On Cygwin, use /proc file system instead of win32 API.
3255         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3256         Win32 file names.
3257         (DllMain): Simplify by removing Cygwin specific code.
3258         (find_shared_library_fullname): Use Linux specific implementation also
3259         for Cygwin.
3260         (get_shared_library_fullname): Update accordingly.
3261         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3262         Win32 file names.
3263         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3264         Cygwin specific code.
3265
3266 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3267             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3268
3269         Fix OpenMP flag detection for various Fortran compilers.
3270         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3271         OpenMP-conditional compilation construct, to force compile
3272         failure with missing OpenMP flag.
3273         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3274
3275 2011-02-25  Eric Blake  <eblake@redhat.com>
3276
3277         strstr: expand test coverage
3278         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3279         compilation.
3280         * tests/test-memmem.c (main): Duplicate tests.
3281         * tests/test-strcasestr.c (main): Likewise.
3282         * tests/test-c-strcasestr.c (main): Likewise.
3283
3284 2011-02-25  Jim Meyering  <meyering@redhat.com>
3285
3286         maint.mk: detect missing-NL-at-EOF, too
3287         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3288         it also detects when a file lacks a newline at EOF.
3289         (require_exactly_one_NL_at_EOF_): Renamed from
3290         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3291         since people may well have .x-sc_... file names tied to the
3292         existing name.  Suggested by Eric Blake.
3293
3294 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3295
3296         dirname: move m4/dos.m4 functionality into lib/dosname.h
3297
3298         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3299         extracts symbols from it, puts them into config.h; but it's much
3300         easier to use the symbols directly.  filename.h already does this,
3301         but it disagrees with dos.m4 in some respects.  This patch
3302         introduces a different include file dosname.h that packages up
3303         dos.m4, and then later we can work on merging filename.h and
3304         dosname.h.  Applications that need only the easy-to-configure
3305         symbols should consider including dosname.h rather than dirname.h.
3306         * NEWS: Mention incompatible changes.
3307         * m4/dos.m4: Remove.
3308         * lib/dosname.h, modules/dosname: New files.
3309         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3310         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3311         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3312         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3313         Include dosname.h, not dirname.h.
3314         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3315         Include dosname.h, for definitions of symbols like ISSLASH
3316         that used to be in config.h.
3317         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3318         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3319         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3320         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3321         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3322         * modules/rmdir (Files): Likewise.
3323         * modules/stat (Files): Likewise.
3324         * modules/unlink (Files): Likewise.
3325         * modules/dirname-lgpl (Depends-on): Add dosname.
3326         * modules/lstat (Depends-on): Likewise.
3327         * modules/openat (Depends-on): Likewise.
3328         * modules/rmdir (Depends-on): Likewise.
3329         * modules/savewd (Depends-on): Likewise.
3330         * modules/stat (Depends-on): Likewise.
3331         * modules/unlink (Depends-on): Likewise.
3332         * modules/openat (Depends-on): Remove dirname-lgpl.
3333         * modules/savewd (Depends-on): Likewise.
3334         * tests/test-dirname.c: Do not use removed symbols like
3335         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3336         the remaining symbols, e.g., ISSLASH ('\\').
3337
3338 2011-02-25  Eric Blake  <eblake@redhat.com>
3339
3340         strstr: revert patches that introduced bug and pessimization
3341         * lib/str-two-way.h: Add another reference.
3342         (two_way_short_needle, two_way_long_needle): Revert changes from
3343         2011-02-24; they pessimize search speed.
3344         (critical_factorization): Partially revert changes from
3345         2010-06-22; they violate the requirement that the left half of the
3346         needle be smaller than the period of the needle.
3347
3348 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3349
3350         filenamecat: remove unnecessary dependency on dirname-lgpl
3351         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3352         is no direct dependency, just an indirect one via filenamecat-lgpl.
3353
3354         remove: remove unnecessary use of m4/dos.m4
3355         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3356         * modules/remove (FILES): Remove m4/dos.m4.
3357
3358         * lib/openat-proc.c: Don't include dirname.h; not needed.
3359
3360         backupfile: remove unnecessary use of m4/dos.m4
3361         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3362         of its symbols are used by the backupfile code.  backupfile.c does
3363         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3364         for the rare case of programs that want all their backup file
3365         names to live within 8+3 limits, and dos.m4 doesn't address that.
3366         * modules/backupfile (Files): Remove m4/dos.m4.
3367
3368 2011-02-24  Jim Meyering  <meyering@redhat.com>
3369
3370         strstr: fix a bug whereby strstr would mistakenly return NULL
3371         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3372         in period calculation.
3373         (two_way_long_needle): Likewise.
3374         The original problem was reported by Mike Stump in
3375         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3376         Ralf Wildenhues provided the short needle and haystack.
3377         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3378         Add a more involved test to trigger the bug in two_way_long_needle.
3379
3380 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3381
3382         gnulib-tool: remove use of bold display in help screen
3383         * gnulib-tool (func_usage): Do not use bold display anymore in the
3384         help screen.  That was just meant to be a temporary emphasis for a
3385         backward-incompatible change.
3386
3387 2011-02-23  Bruno Haible  <bruno@clisp.org>
3388
3389         Fix misindentation of preprocessor directives.
3390         * lib/argp-namefrob.h: Reindent preprocessor directives.
3391         * lib/getopt_int.h (struct _getopt_data): Likewise.
3392         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3393         * lib/vasnprintf.c (decode_long_double): Likewise.
3394         * tests/test-argmatch.c: Insert blank lines, for clarity.
3395         * tests/test-exclude.c: Likewise.
3396
3397 2011-02-22  Bruno Haible  <bruno@clisp.org>
3398
3399         ioctl: Fix for MacOS X in 64-bit mode.
3400         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3401         value.
3402         Suggested by Eric Blake.
3403         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3404
3405 2011-02-22  Jim Meyering  <meyering@redhat.com>
3406
3407         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3408         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3409         in lib/.
3410
3411 2011-02-22  Eric Blake  <eblake@redhat.com>
3412
3413         maint: avoid any CDPATH issue
3414         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3415
3416         maint: adjust cpp indentation for my modules, as well
3417         * Makefile (sc_cpp_indent_check): Add my name.
3418         * lib/fbufmode.c: Filter through cppi.
3419         * lib/fpurge.c: Likewise.
3420         * lib/freadable.c: Likewise.
3421         * lib/freading.c: Likewise.
3422         * lib/fwritable.c: Likewise.
3423         * lib/fwriting.c: Likewise.
3424         * lib/sigaction.c: Likewise.
3425
3426 2011-02-22  Jim Meyering  <meyering@redhat.com>
3427
3428         maint: adjust cpp indentation to reflect nesting depth
3429         I.e., in a block of code that begins with an unnested "#if",
3430         put one space between the "#" in column 1 and following token.
3431         For example,
3432         -#include <sys/vfs.h>
3433         +# include <sys/vfs.h>
3434         Do this only in .c files that are part of a module I maintain.
3435         * lib/linkat.c: Filter through cppi.
3436         * lib/nanosleep.c: Likewise.
3437         * lib/openat.c: Likewise.
3438         * lib/openat-die.c: Likewise.
3439         * lib/dup3.c: Likewise.
3440         * lib/fchownat.c: Likewise.
3441         * lib/flock.c: Likewise.
3442         * lib/fsync.c: Likewise.
3443         * lib/fts.c: Likewise.
3444         * lib/getpass.c: Likewise.
3445         * lib/gettimeofday.c: Likewise.
3446         * lib/userspec.c: Likewise.
3447         * Makefile (sc_cpp_indent_check): New rule, to check this.
3448
3449 2011-02-22  Bruno Haible  <bruno@clisp.org>
3450
3451         New module 'wctomb'.
3452         * lib/stdlib.in.h (wctomb): New declaration.
3453         * lib/wctomb.c: New file.
3454         * lib/wctomb-impl.h: New file.
3455         * m4/wctomb.m4: New file.
3456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3457         REPLACE_WCTOMB.
3458         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3459         REPLACE_WCTOMB.
3460         * modules/wctomb: New file.
3461         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3462         * doc/posix-functions/wctomb.texi: Mention the new module.
3463         * modules/wctob (Depends-on): Add wctomb.
3464
3465 2011-02-22  Bruno Haible  <bruno@clisp.org>
3466
3467         New module 'mbtowc'.
3468         * lib/stdlib.in.h (mbtowc): New declaration.
3469         * lib/mbtowc.c: New file.
3470         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3471         * m4/mbtowc.m4: New file.
3472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3473         REPLACE_MBTOWC.
3474         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3475         REPLACE_MBTOWC.
3476         * modules/mbtowc: New file.
3477         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3478         * doc/posix-functions/mbtowc.texi: Mention the new module.
3479         * modules/btowc (Depends-on): Add mbtowc.
3480
3481 2011-02-22  Bruno Haible  <bruno@clisp.org>
3482
3483         wcrtomb: Add more tests for native Windows platforms.
3484         * tests/test-wcrtomb-w32-1.sh: New file.
3485         * tests/test-wcrtomb-w32-2.sh: New file.
3486         * tests/test-wcrtomb-w32-3.sh: New file.
3487         * tests/test-wcrtomb-w32-4.sh: New file.
3488         * tests/test-wcrtomb-w32-5.sh: New file.
3489         * tests/test-wcrtomb-w32.c: New file.
3490         * modules/wcrtomb-tests (Files): Add them.
3491         (Makefile.am): Arrange to run these tests.
3492         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3493         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3494
3495 2011-02-20  Bruno Haible  <bruno@clisp.org>
3496
3497         wcrtomb: Enhance test.
3498         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3499
3500 2011-02-20  Bruno Haible  <bruno@clisp.org>
3501
3502         mbrtowc: Tiny optimization.
3503         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3504
3505 2011-02-20  Jim Meyering  <meyering@redhat.com>
3506
3507         test-exclude.c: remove unmatched #endif
3508         * tests/test-exclude.c: Remove stray #endif, left over from
3509         the change of a week ago.
3510
3511 2011-02-19  Jim Meyering  <meyering@redhat.com>
3512
3513         git-version-gen: skip "-dirty" check when appropriate
3514         * build-aux/git-version-gen: Don't run any git commands when the
3515         version string comes from .tarball-version.  Prior to this, we
3516         would run git update-index --refresh even from a just-unpacked
3517         tarball directory, and that could affect a .git/ directory in a
3518         parent of the build directory.  Reported by Mike Frysinger.
3519
3520 2011-02-19  Bruno Haible  <bruno@clisp.org>
3521
3522         unictype/property-byname: Reduce the size of the 'data' segment.
3523         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3524
3525 2011-02-19  Bruno Haible  <bruno@clisp.org>
3526
3527         unictype/scripts: Reduce the size of the 'data' segment.
3528         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3529         '%pic'.
3530         * lib/unictype/scripts_byname.gperf: Regenerated.
3531
3532 2011-02-19  Bruno Haible  <bruno@clisp.org>
3533
3534         stdint: Update documentation.
3535         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3536
3537 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3538
3539         stdint: omit redundant check for wchar.h
3540         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3541         always tests whether wchar.h exists, so remove the now-redundant test.
3542
3543 2011-02-18  Bruno Haible  <bruno@clisp.org>
3544
3545         stdint: Cut dependency to module 'wchar'.
3546         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3547         include the necessary prerequisites.
3548         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3549         * modules/stdint (Depends-on): Remove wchar.
3550         (Makefile.am): Substitute HAVE_WCHAR_H.
3551         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3552
3553 2011-02-18  Eric Blake  <eblake@redhat.com>
3554
3555         longlong: skip, rather than fail, on cross-compilation
3556         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3557         when cross-compiling; regression from 2011-02-16.
3558
3559 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3560
3561         * NEWS: Mention 2011-02-08 change to stdlib.
3562
3563 2011-02-17  Bruno Haible  <bruno@clisp.org>
3564
3565         getloadavg: Add comments about platforms.
3566         * m4/getloadavg.m4: Add comment.
3567         * lib/getloadavg.c: Likewise.
3568
3569 2011-02-17  Bruno Haible  <bruno@clisp.org>
3570
3571         getloadavg: Fix link error on Solaris 2.6.
3572         * modules/getloadavg (Link): New section.
3573         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3574         linking test-getloadavg.
3575         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3576         getloadavg.
3577
3578 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3579
3580         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3581         It was 'int', but this doesn't match the IRIX 6.5 manual.
3582         Suggested by Bruno Haible in
3583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3584
3585 2011-02-17  Bruno Haible  <bruno@clisp.org>
3586
3587         havelib: Fix comments.
3588         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3589         change.
3590
3591 2011-02-17  Bruno Haible  <bruno@clisp.org>
3592
3593         havelib: Update config.rpath.
3594         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3595
3596 2011-02-17  Bruno Haible  <bruno@clisp.org>
3597
3598         getloadavg test: Add some plausibility checks.
3599         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3600         is improbable.
3601
3602 2011-02-16  Eric Blake  <eblake@redhat.com>
3603
3604         maintainer-makefile: make syntax-check a no-op from tarballs
3605         * top/maint.mk (no-vc-detected): New rule.
3606         (local-checks-available): Use it to avoid hanging if someone tries
3607         'make syntax-check' from a tarball.  Also append to any non-syntax
3608         checks already defined in cfg.mk.
3609
3610 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3611
3612         longlong: tune, particularly for common case of c99
3613
3614         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3615         or running anything if c99, or if unsigned long long int does not
3616         work.  In either case, we know the answer without further tests.
3617         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3618         it at most once, and use its results for both long long int and
3619         unsigned long long int.  This is more likely to be efficient in
3620         the common case where the program wants to check for both long
3621         long int and unsigned long long int.
3622         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3623         since the answer is already known.
3624
3625 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3626
3627         getloadavg: set errno
3628         * lib/getloadavg.c: Set errno when returning -1.  If no other
3629         error number looks appropriate, set it to ENOSYS if the getloadavg
3630         looks like it can't possibly ever work, ENOTSUP otherwise.
3631         Suggested by Bruno Haible in
3632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3633
3634         getloadavg: trim unused parts and speed up 'configure'
3635         * NEWS: Document this.
3636         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3637         always compiled if getloadavg is absent.
3638         Move test code to ...
3639         * tests/test-getloadavg.c: New file, containing previous
3640         contents of test from lib/getloadavg.c.  It also contains
3641         suggestions by Bruno Haible in
3642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3643         * modules/getloadavg-tests: New file.
3644         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3645         Do tests in the same order as they're needed for getloadavg.c.
3646         Omit setgid-related tests that generate symbols KMEM_GROUP,
3647         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3648         Do only the tests that are needed to see whether the system has
3649         getloadavg, moving the other tests into ...
3650         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3651         NLIST_NAME_UNION; nobody should be using it.  Do not define
3652         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3653         relevant, as the user of this module shouldn't care how getloadavg
3654         is implemented.
3655
3656         getloadavg: omit unused var
3657         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3658
3659 2011-02-15  Jim Meyering  <meyering@redhat.com>
3660
3661         doc: update users.txt
3662         * users.txt: Update iwhd's URL.
3663
3664 2011-02-13  Bruno Haible  <bruno@clisp.org>
3665
3666         Consistent macro naming for macros that use GCC __attribute__.
3667         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3668         _ATTRIBUTE_NONNULL_.
3669         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3670         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3671         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3672         ATTRIBUTE_DEPRECATED.
3673         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3674         ATTRIBUTE_NORETURN.
3675         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3676         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3677         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3678         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3679         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3680         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3681         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3682         ATTRIBUTE_SENTINEL.
3683         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3684         ATTRIBUTE_RETURN_CHECK.
3685         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3686         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3687         ATTRIBUTE_NORETURN.
3688         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3689         Reported by Paul Eggert.
3690
3691 2011-02-13  Bruno Haible  <bruno@clisp.org>
3692
3693         Don't interfere with a program's definition of __attribute__.
3694         * lib/argp.h (__attribute__): Remove definition.
3695         (_GL_ATTRIBUTE_FORMAT): New macro.
3696         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3697         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3698         (_GL_ATTRIBUTE_FORMAT): New macro.
3699         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3700         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3701         GCC 3 or newer.
3702         * lib/error.h (__attribute__): Remove definition.
3703         (_GL_ATTRIBUTE_FORMAT): New macro.
3704         (error, error_at_line): Use it.
3705         * lib/hash.h (__attribute__): Remove definition.
3706         (ATTRIBUTE_WUR): Update definition. Define always.
3707         * lib/openat.h (__attribute__): Remove definition.
3708         (ATTRIBUTE_NORETURN): Update definition. Define always.
3709         * lib/sigpipe-die.h (__attribute__): Remove definition.
3710         (ATTRIBUTE_NORETURN): Update definition. Define always.
3711         * lib/vasnprintf.h (__attribute__): Remove definition.
3712         (_GL_ATTRIBUTE_FORMAT): New macro.
3713         (asnprintf, vasnprintf): Use it.
3714         * lib/xalloc.h (__attribute__): Remove definition.
3715         (ATTRIBUTE_NORETURN): Update definition. Define always.
3716         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3717         * lib/xmemdup0.h (__attribute__): Remove definition.
3718         (ATTRIBUTE_NORETURN): Update definition. Define always.
3719         * lib/xprintf.h (__attribute__): Remove definition.
3720         (_GL_ATTRIBUTE_FORMAT): New macro.
3721         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3722         * lib/xstrtol.h (__attribute__): Remove definition.
3723         (ATTRIBUTE_NORETURN): Update definition. Define always.
3724         * lib/xvasprintf.h (__attribute__): Remove definition.
3725         (_GL_ATTRIBUTE_FORMAT): New macro.
3726         (xasprintf, xvasprintf): Use it.
3727         * tests/test-argmatch.c (__attribute__): Remove definition.
3728         (ATTRIBUTE_NORETURN): Update definition. Define always.
3729         * tests/test-exclude.c (__attribute__): Remove definition.
3730         (ATTRIBUTE_NORETURN): Update definition. Define always.
3731         Reported by Paul Eggert.
3732
3733 2011-02-13  Bruno Haible  <bruno@clisp.org>
3734
3735         mbrtowc: Add more tests for native Windows platforms.
3736         * tests/test-mbrtowc-w32-1.sh: New file.
3737         * tests/test-mbrtowc-w32-2.sh: New file.
3738         * tests/test-mbrtowc-w32-3.sh: New file.
3739         * tests/test-mbrtowc-w32-4.sh: New file.
3740         * tests/test-mbrtowc-w32-5.sh: New file.
3741         * tests/test-mbrtowc-w32.c: New file.
3742         * modules/mbrtowc-tests (Files): Add them.
3743         (Makefile.am): Arrange to run these tests.
3744         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3745         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3746
3747 2011-02-13  Bruno Haible  <bruno@clisp.org>
3748
3749         mbrtowc: Work around native Windows bug.
3750         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3751         guess when no suitable locale for testing was found.
3752         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3753
3754 2011-02-13  Bruno Haible  <bruno@clisp.org>
3755
3756         mbsinit: Work around mingw bug.
3757         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3758         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3759         Windows.
3760         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3761
3762 2011-02-13  Bruno Haible  <bruno@clisp.org>
3763
3764         mbsinit: Don't crash for a NULL argument.
3765         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3766         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3767
3768 2011-02-13  Bruno Haible  <bruno@clisp.org>
3769
3770         Don't interfere with a program's definition of __attribute__.
3771         * lib/stdio.in.h (__attribute__): Remove definition.
3772         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3773         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3774         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3775         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3776         * lib/string.in.h (__attribute__): Remove definition.
3777         Reported by Paul Eggert.
3778
3779 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         stdlib: don't get in the way of non-GCC __attribute__
3782         See thread starting at
3783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3784         Revert previous stdlib change, installing the following instead:
3785         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3786         to get in the way of a non-GCC compiler that supports __attribute__.
3787         (_GL_ATTRIBUTE_RETURN): New macro.
3788         (_Exit): Use it instead of __attribute__.
3789
3790 2011-02-12  Bruno Haible  <bruno@clisp.org>
3791
3792         quotearg test: Avoid test failure on mingw.
3793         * tests/test-quotearg.sh: Convert the locale identifier from native
3794         Windows syntax to Unix syntax.
3795
3796 2011-02-12  Bruno Haible  <bruno@clisp.org>
3797
3798         setlocale: Prefer gnulib's override over libintl's override.
3799         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3800         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3801         GNULIB_defined_setlocale is set.
3802
3803 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3804
3805         stdlib: support non-GCC __attribute__
3806
3807         Fix a serious and tricky problem encountered when attempting to
3808         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3809         5.5, but it crashed due to memory corruption on Solaris 10 with
3810         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3811         bits that are otherwise zero.  This tagging is optional inside
3812         Emacs but is preferred and is used when __attribute__ ((__aligned
3813         (8))) works, as it does with both recent-enough GCC and with Sun C
3814         5.11.  However, Sun C 5.11 is not GCC and does not #define
3815         __GNUC__ and __GNUC_MINOR__.
3816
3817         When I added the getloadavg module to Emacs, it brought in
3818         stdlib.in.h, which contained this fragment:
3819
3820            #ifndef __attribute__
3821            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3822            #  define __attribute__(Spec)   /* empty */
3823            # endif
3824            #endif
3825
3826         When files that include <stdlib.h> were compiled with Sun C 5.11,
3827         the above code disabled __attribute__ ((__aligned (8))), which
3828         caused variables to not be properly aligned, which eventually led
3829         to the pointer corruption mentioned above.  (This was a bit hard
3830         to diagnose, unfortunately.)
3831
3832         Several "#define __attribute__(X) /* empty */" code snippets need
3833         to be eradicated from Gnulib to work with non-GCC compilers that
3834         support __attribute__.  The Autoconf way to do this is to test for
3835         each kind of attribute that we want support for, and selectively
3836         enable that in source code.
3837
3838         Fix this problem just for stdlib.h, by adding a test for the
3839         __noreturn__ attribute, and change stdlib.in.h to use that test
3840         when needed.  This technique can be easily generalized to the
3841         other *.in.h files and attributes, and a similar technique can be
3842         used for *.h and *.c files.  This patch is enough to solve the
3843         problem for Emacs + getloadavg, and I thought I'd publish it for
3844         feedback before undertaking further, similar fixes in other
3845         modules.
3846
3847         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3848         because it's not needed for stdlib.h.  It merely substitutes the
3849         value directly into stdlib.h.  We may well need to #define it, or
3850         similar symbols, for other modules, but it's nice to also have an
3851         option to not #define it for applications like Emacs that do not
3852         need it.
3853
3854         * lib/stdlib.in.h (__attribute__): Do not #define.
3855         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3856         be defined only if the _Exit module is also used.
3857         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3859         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3860         platforms.
3861         * modules/_Exit (Files): Add m4/attribute.m4.
3862         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3863         * m4/attribute.m4: New file.
3864
3865 2011-02-12  Bruno Haible  <bruno@clisp.org>
3866
3867         wcsrtombs: Work around bug on native Windows.
3868         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3869         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3870         instead of len.
3871         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3872
3873 2011-02-12  Bruno Haible  <bruno@clisp.org>
3874
3875         mbsrtowcs: Work around bug on native Windows.
3876         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3877         against mingw bug.
3878         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3879
3880 2011-02-12  Bruno Haible  <bruno@clisp.org>
3881
3882         Avoid setlocale bugs in tests.
3883         * modules/btowc (Dependencies): Add setlocale.
3884         * modules/c-strcase (Dependencies): Likewise.
3885         * modules/mbmemcasecmp (Dependencies): Likewise.
3886         * modules/mbmemcasecoll (Dependencies): Likewise.
3887         * modules/mbrtowc (Dependencies): Likewise.
3888         * modules/mbscasecmp (Dependencies): Likewise.
3889         * modules/mbscasestr (Dependencies): Likewise.
3890         * modules/mbschr (Dependencies): Likewise.
3891         * modules/mbscspn (Dependencies): Likewise.
3892         * modules/mbsinit (Dependencies): Likewise.
3893         * modules/mbsncasecmp (Dependencies): Likewise.
3894         * modules/mbsnrtowcs (Dependencies): Likewise.
3895         * modules/mbspbrk (Dependencies): Likewise.
3896         * modules/mbspcasecmp (Dependencies): Likewise.
3897         * modules/mbsrchr (Dependencies): Likewise.
3898         * modules/mbsrtowcs (Dependencies): Likewise.
3899         * modules/mbsspn (Dependencies): Likewise.
3900         * modules/mbsstr (Dependencies): Likewise.
3901         * modules/nl_langinfo (Dependencies): Likewise.
3902         * modules/quotearg (Dependencies): Likewise.
3903         * modules/unicase/locale-language (Dependencies): Likewise.
3904         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3905         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3906         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3907         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3908         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3909         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3910         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3911         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3912         * modules/vasnprintf-posix (Dependencies): Likewise.
3913         * modules/wcrtomb (Dependencies): Likewise.
3914         * modules/wcsnrtombs (Dependencies): Likewise.
3915         * modules/wcsrtombs (Dependencies): Likewise.
3916
3917 2011-02-12  Bruno Haible  <bruno@clisp.org>
3918
3919         setlocale: Workaround native Windows bug.
3920         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3921         succeeds but sets LC_CTYPE to "C", report a failure.
3922         * tests/test-setlocale2.sh: New file.
3923         * tests/test-setlocale2.c: New file.
3924         * modules/setlocale-tests (Files): Add the new files.
3925         (Makefile.am): Enable test-setlocale2.sh test.
3926         * doc/posix-functions/setlocale.texi: Mention workaround.
3927
3928 2011-02-11  Bruno Haible  <bruno@clisp.org>
3929
3930         Tests for module 'setlocale'.
3931         * modules/setlocale-tests: New file.
3932         * tests/test-setlocale1.sh: New file.
3933         * tests/test-setlocale1.c: New file.
3934
3935         New module 'setlocale'.
3936         * lib/locale.in.h (setlocale): New declaration.
3937         * lib/setlocale.c: New file, based on
3938         gettext/gettext-runtime/intl/setlocale.c.
3939         * m4/setlocale.m4: New file.
3940         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3941         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3942         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3943         REPLACE_SETLOCALE.
3944         * modules/setlocale: New file.
3945         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3946         * doc/posix-functions/setlocale.texi: Mention the new module.
3947
3948 2011-02-11  Bruno Haible  <bruno@clisp.org>
3949
3950         Prepare for locale dependent tests on mingw.
3951         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3952         because it has the wrong locale encoding.
3953         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3954         French_France.1252 instead of "fr".
3955         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3956         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3957         because it has the wrong locale encoding.
3958         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3959         native Windows, try Turkish_Turkey.65001.
3960         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3961         Chinese_China.54936.
3962
3963         Prepare for locale dependent tests on mingw.
3964         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3965         differently.
3966         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3967         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3968         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3969         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3970
3971 2011-02-11  Eric Blake  <eblake@redhat.com>
3972
3973         strptime: avoid compiler warnings
3974         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3975         compiler warnings about dead code.
3976         Reported by Daniel P. Berrange.
3977
3978 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3979
3980         doc: update users.txt
3981         * users.txt: Add rcs.
3982
3983 2011-02-10  John W. Eaton  <jwe@gnu.org>
3984
3985         doc: update users.txt
3986         * users.txt: Add octave.
3987
3988 2011-02-10  Jim Meyering  <meyering@redhat.com>
3989
3990         doc: update users.txt
3991         * users.txt: Add iwhd.
3992
3993 2011-02-09  Bruno Haible  <bruno@clisp.org>
3994
3995         gnulib-tool: Make copyright notice adjustment more robust.
3996         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3997         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3998         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3999         License".
4000         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4001
4002 2011-02-06  Bruno Haible  <bruno@clisp.org>
4003
4004         New module 'towctrans'.
4005         * modules/towctrans: New file.
4006         * lib/wctype.in.h (towctrans): New declaration.
4007         * lib/towctrans.c: New file.
4008         * lib/towctrans-impl.h: New file.
4009         * m4/towctrans.m4: New file.
4010         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4011         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4012         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4013         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4014         * doc/posix-functions/towctrans.texi: Mention the new module.
4015
4016 2011-02-06  Bruno Haible  <bruno@clisp.org>
4017
4018         New module 'wctrans'.
4019         * modules/wctrans: New file.
4020         * lib/wctype.in.h (wctrans): New declaration.
4021         * lib/wctrans.c: New file.
4022         * lib/wctrans-impl.h: New file.
4023         * m4/wctrans.m4: New file.
4024         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4025         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4026         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4027         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4028         * doc/posix-functions/wctrans.texi: Mention the new module.
4029
4030 2011-02-06  Bruno Haible  <bruno@clisp.org>
4031
4032         New module 'iswctype'.
4033         * modules/iswctype: New file.
4034         * lib/wctype.in.h (iswctype): New declaration.
4035         * lib/iswctype.c: New file.
4036         * lib/iswctype-impl.h: New file.
4037         * m4/iswctype.m4: New file.
4038         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4039         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4040         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4041         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4042         * doc/posix-functions/iswctype.texi: Mention the new module and the
4043         HP-UX 11.00 problem.
4044
4045 2011-02-06  Bruno Haible  <bruno@clisp.org>
4046
4047         New module 'wctype'.
4048         * modules/wctype: Change to represent the wctype() substitute.
4049         * lib/wctype.in.h (wctype): New declaration.
4050         * lib/wctype.c: New file.
4051         * lib/wctype-impl.h: New file.
4052         * m4/wctype.m4: New file.
4053         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4054         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4055         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4056         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4057         * doc/posix-functions/wctype.texi: Mention the new module and the
4058         HP-UX 11.00 problem.
4059
4060 2011-02-06  Bruno Haible  <bruno@clisp.org>
4061
4062         wctype-h: Ensure wctype_t and wctrans_t are defined.
4063         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4064         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4065         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4066         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4067         HAVE_WCTRANS_T.
4068         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4069
4070 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4071
4072         flock: fix license typo
4073
4074         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4075         omitted.
4076
4077 2011-02-08  Bruno Haible  <bruno@clisp.org>
4078
4079         Split large sed scripts, for HP-UX sed.
4080         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4081         to avoid HP-UX limit of 99 commands, in the near future.
4082         * modules/stdlib (Makefile.am): Likewise.
4083         * modules/unistd (Makefile.am): Likewise.
4084         * modules/wchar (Makefile.am): Likewise.
4085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4086         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4087         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4088
4089 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4090             Bruno Haible  <bruno@clisp.org>
4091
4092         stdlib: improve random_r modularization
4093         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4094         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4095         you also need the random_r module to get this material right.
4096         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4097         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4098         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4099
4100 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4101
4102         stdlib: don't depend on stdint
4103         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4104         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4105         be independent of whether stdint.h is needed.
4106         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4107         here, instead of ...
4108         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4109         struct random_data should be using the random_r module, not just
4110         the stdlib module (which wouldn't make sense: what package needs
4111         just struct random_data without also needing random_r?).
4112         * modules/stdlib (Depends-on): Remove stdint.
4113
4114         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4115         See the thread rooted at
4116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4117         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4118         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4119         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4120         __VMS)); previously it was always included (via fcntl--.h).
4121         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4122         hand; this is good enough for load averages.  Also, do not use
4123         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4124         flags directly if available and don't bother otherwise.  (Packages
4125         that need the extra reliability should use the modules that define
4126         these flags on older platforms that lack them.)
4127         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4128         fcntl-safer.
4129
4130 2011-02-08  Jim Meyering  <meyering@redhat.com>
4131
4132         di-set.h, ino-map.h: add multiple-inclusion guard
4133         Technically, the guard is required only for ino-map.h, due to its
4134         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4135         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4136         * lib/ino-map.h: Likewise.
4137
4138 2011-02-06  Bruno Haible  <bruno@clisp.org>
4139
4140         iswblank: Ensure declaration on glibc systems.
4141         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4142         * modules/iswblank (Dependencies): Add 'extensions'.
4143         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4144
4145 2011-02-06  Bruno Haible  <bruno@clisp.org>
4146
4147         New module 'iswblank'.
4148         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4149         * modules/iswblank: New file.
4150         * modules/wctype-h (Files): Remove lib/iswblank.c.
4151         (Makefile.am): Substitute GNULIB_ISWBLANK.
4152         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4153         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4154         (gl_WCTYPE_H_DEFAULTS): New macro.
4155         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4156         * modules/iswblank-tests: New file.
4157         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4158         * tests/test-wctype-h.c (main): Remove iswblank tests.
4159         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4160         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4161         of 'wctype-h'.
4162         * NEWS: Mention the change.
4163         * modules/mbchar (Depends-on): Add iswblank.
4164
4165 2011-02-08  Bruno Haible  <bruno@clisp.org>
4166
4167         di-set tests: Refactor.
4168         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4169         unnecessary includes.
4170         (ASSERT): Remove macro.
4171         (main): Make C90 compliant by avoiding variable declaration after
4172         statement.
4173         * modules/di-set-tests (Files): Add tests/macros.h.
4174
4175 2011-02-08  Bruno Haible  <bruno@clisp.org>
4176
4177         ino-map tests: Refactor.
4178         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4179         unnecessary includes.
4180         (ASSERT): Remove macro.
4181         (main): Make C90 compliant by avoiding variable declaration after
4182         statement.
4183         * modules/ino-map-tests (Files): Add tests/macros.h.
4184
4185 2011-02-08  Jim Meyering  <meyering@redhat.com>
4186
4187         di-set: add "const" to a cast
4188         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4189         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4190
4191 2011-02-06  Bruno Haible  <bruno@clisp.org>
4192
4193         Rename module 'wctype' to 'wctype-h'.
4194         * modules/wctype-h: Renamed from modules/wctype.
4195         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4196         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4197         (Files, Depends-on, Makefile.am): Update.
4198         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4199         (Files, Makefile.am): Update.
4200         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4201         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4202         * doc/posix-headers/wctype.texi: Update.
4203         * doc/posix-functions/iswalnum.texi: Update.
4204         * doc/posix-functions/iswalpha.texi: Update.
4205         * doc/posix-functions/iswblank.texi: Update.
4206         * doc/posix-functions/iswcntrl.texi: Update.
4207         * doc/posix-functions/iswdigit.texi: Update.
4208         * doc/posix-functions/iswgraph.texi: Update.
4209         * doc/posix-functions/iswlower.texi: Update.
4210         * doc/posix-functions/iswprint.texi: Update.
4211         * doc/posix-functions/iswpunct.texi: Update.
4212         * doc/posix-functions/iswspace.texi: Update.
4213         * doc/posix-functions/iswupper.texi: Update.
4214         * doc/posix-functions/iswxdigit.texi: Update.
4215         * doc/posix-functions/towlower.texi: Update.
4216         * doc/posix-functions/towupper.texi: Update.
4217         * NEWS: Mention the change.
4218         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4219         * modules/mbchar (Dependencies): Likewise.
4220         * modules/mbswidth (Dependencies): Likewise.
4221         * modules/quotearg (Dependencies): Likewise.
4222         * modules/regex (Dependencies): Likewise.
4223         * modules/wcscasecmp (Dependencies): Likewise.
4224         * modules/wcsncasecmp (Dependencies): Likewise.
4225         * modules/wcwidth (Dependencies): Likewise.
4226
4227 2011-02-06  Bruno Haible  <bruno@clisp.org>
4228
4229         New module 'wcswidth'.
4230         * modules/wcswidth: New file.
4231         * lib/wchar.in.h (wcswidth): New declaration.
4232         * lib/wcswidth.c: New file.
4233         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4234         * m4/wcswidth.m4: New file.
4235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4237         REPLACE_WCSWIDTH.
4238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4239         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4240         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4241         * doc/posix-functions/wcswidth.texi: Mention the new module.
4242
4243 2011-02-06  Bruno Haible  <bruno@clisp.org>
4244
4245         New module 'wcstok'.
4246         * modules/wcstok: New file.
4247         * lib/wchar.in.h (wcstok): New declaration.
4248         * lib/wcstok.c: New file.
4249         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4250         * m4/wcstok.m4: New file.
4251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4254         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4255         * doc/posix-functions/wcstok.texi: Mention the new module.
4256
4257 2011-02-06  Bruno Haible  <bruno@clisp.org>
4258
4259         New module 'wcsstr'.
4260         * modules/wcsstr: New file.
4261         * lib/wchar.in.h (wcsstr): New declaration.
4262         * lib/wcsstr.c: New file.
4263         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4264         * m4/wcsstr.m4: New file.
4265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4268         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4269         * doc/posix-functions/wcsstr.texi: Mention the new module.
4270
4271 2011-02-06  Bruno Haible  <bruno@clisp.org>
4272
4273         New module 'wcspbrk'.
4274         * modules/wcspbrk: New file.
4275         * lib/wchar.in.h (wcspbrk): New declaration.
4276         * lib/wcspbrk.c: New file.
4277         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4278         * m4/wcspbrk.m4: New file.
4279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4282         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4283         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4284
4285 2011-02-06  Bruno Haible  <bruno@clisp.org>
4286
4287         New module 'wcsspn'.
4288         * modules/wcsspn: New file.
4289         * lib/wchar.in.h (wcsspn): New declaration.
4290         * lib/wcsspn.c: New file.
4291         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4292         * m4/wcsspn.m4: New file.
4293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4296         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4297         * doc/posix-functions/wcsspn.texi: Mention the new module.
4298
4299 2011-02-06  Bruno Haible  <bruno@clisp.org>
4300
4301         New module 'wcscspn'.
4302         * modules/wcscspn: New file.
4303         * lib/wchar.in.h (wcscspn): New declaration.
4304         * lib/wcscspn.c: New file.
4305         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4306         * m4/wcscspn.m4: New file.
4307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4310         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4311         * doc/posix-functions/wcscspn.texi: Mention the new module.
4312
4313 2011-02-06  Bruno Haible  <bruno@clisp.org>
4314
4315         New module 'wcsrchr'.
4316         * modules/wcsrchr: New file.
4317         * lib/wchar.in.h (wcsrchr): New declaration.
4318         * lib/wcsrchr.c: New file.
4319         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4320         * m4/wcsrchr.m4: New file.
4321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4324         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4325         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4326
4327 2011-02-06  Bruno Haible  <bruno@clisp.org>
4328
4329         New module 'wcschr'.
4330         * modules/wcschr: New file.
4331         * lib/wchar.in.h (wcschr): New declaration.
4332         * lib/wcschr.c: New file.
4333         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4334         * m4/wcschr.m4: New file.
4335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4338         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4339         * doc/posix-functions/wcschr.texi: Mention the new module.
4340
4341 2011-02-06  Bruno Haible  <bruno@clisp.org>
4342
4343         New module 'wcsdup'.
4344         * modules/wcsdup: New file.
4345         * lib/wchar.in.h (wcsdup): New declaration.
4346         * lib/wcsdup.c: New file.
4347         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4348         * m4/wcsdup.m4: New file.
4349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4352         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4353         * doc/posix-functions/wcsdup.texi: Mention the new module.
4354
4355 2011-02-06  Bruno Haible  <bruno@clisp.org>
4356
4357         New module 'wcsxfrm'.
4358         * modules/wcsxfrm: New file.
4359         * lib/wchar.in.h (wcsxfrm): New declaration.
4360         * lib/wcsxfrm.c: New file.
4361         * lib/wcsxfrm-impl.h: New file.
4362         * m4/wcsxfrm.m4: New file.
4363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4366         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4367         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4368
4369 2011-02-06  Bruno Haible  <bruno@clisp.org>
4370
4371         New module 'wcscoll'.
4372         * modules/wcscoll: New file.
4373         * lib/wchar.in.h (wcscoll): New declaration.
4374         * lib/wcscoll.c: New file.
4375         * lib/wcscoll-impl.h: New file.
4376         * m4/wcscoll.m4: New file.
4377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4380         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4381         * doc/posix-functions/wcscoll.texi: Mention the new module.
4382
4383 2011-02-06  Bruno Haible  <bruno@clisp.org>
4384
4385         New module 'wcsncasecmp'.
4386         * modules/wcsncasecmp: New file.
4387         * lib/wchar.in.h (wcsncasecmp): New declaration.
4388         * lib/wcsncasecmp.c: New file.
4389         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4390         * m4/wcsncasecmp.m4: New file.
4391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4394         HAVE_WCSNCASECMP.
4395         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4396         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4397
4398 2011-02-06  Bruno Haible  <bruno@clisp.org>
4399
4400         New module 'wcscasecmp'.
4401         * modules/wcscasecmp: New file.
4402         * lib/wchar.in.h (wcscasecmp): New declaration.
4403         * lib/wcscasecmp.c: New file.
4404         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4405         * m4/wcscasecmp.m4: New file.
4406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4409         HAVE_WCSCASECMP.
4410         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4411         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4412
4413 2011-02-05  Bruno Haible  <bruno@clisp.org>
4414
4415         New module 'wcsncmp'.
4416         * modules/wcsncmp: New file.
4417         * lib/wchar.in.h (wcsncmp): New declaration.
4418         * lib/wcsncmp.c: New file.
4419         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4420         * m4/wcsncmp.m4: New file.
4421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4424         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4425         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4426
4427 2011-02-05  Bruno Haible  <bruno@clisp.org>
4428
4429         New module 'wcscmp'.
4430         * modules/wcscmp: New file.
4431         * lib/wchar.in.h (wcscmp): New declaration.
4432         * lib/wcscmp.c: New file.
4433         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4434         * m4/wcscmp.m4: New file.
4435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4438         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4439         * doc/posix-functions/wcscmp.texi: Mention the new module.
4440
4441 2011-02-05  Bruno Haible  <bruno@clisp.org>
4442
4443         New module 'wcsncat'.
4444         * modules/wcsncat: New file.
4445         * lib/wchar.in.h (wcsncat): New declaration.
4446         * lib/wcsncat.c: New file.
4447         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4448         * m4/wcsncat.m4: New file.
4449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4452         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4453         * doc/posix-functions/wcsncat.texi: Mention the new module.
4454
4455 2011-02-05  Bruno Haible  <bruno@clisp.org>
4456
4457         New module 'wcscat'.
4458         * modules/wcscat: New file.
4459         * lib/wchar.in.h (wcscat): New declaration.
4460         * lib/wcscat.c: New file.
4461         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4462         * m4/wcscat.m4: New file.
4463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4466         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4467         * doc/posix-functions/wcscat.texi: Mention the new module.
4468
4469 2011-02-05  Bruno Haible  <bruno@clisp.org>
4470
4471         New module 'wcpncpy'.
4472         * modules/wcpncpy: New file.
4473         * lib/wchar.in.h (wcpncpy): New declaration.
4474         * lib/wcpncpy.c: New file.
4475         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4476         * m4/wcpncpy.m4: New file.
4477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4479         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4480         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4481         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4482
4483 2011-02-05  Bruno Haible  <bruno@clisp.org>
4484
4485         New module 'wcsncpy'.
4486         * modules/wcsncpy: New file.
4487         * lib/wchar.in.h (wcsncpy): New declaration.
4488         * lib/wcsncpy.c: New file.
4489         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4490         * m4/wcsncpy.m4: New file.
4491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4494         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4495         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4496
4497 2011-02-05  Bruno Haible  <bruno@clisp.org>
4498
4499         New module 'wcpcpy'.
4500         * modules/wcpcpy: New file.
4501         * lib/wchar.in.h (wcpcpy): New declaration.
4502         * lib/wcpcpy.c: New file.
4503         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4504         * m4/wcpcpy.m4: New file.
4505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4507         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4508         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4509         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4510
4511 2011-02-05  Bruno Haible  <bruno@clisp.org>
4512
4513         New module 'wcscpy'.
4514         * modules/wcscpy: New file.
4515         * lib/wchar.in.h (wcscpy): New declaration.
4516         * lib/wcscpy.c: New file.
4517         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4518         * m4/wcscpy.m4: New file.
4519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4522         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4523         * doc/posix-functions/wcscpy.texi: Mention the new module.
4524
4525 2011-02-05  Bruno Haible  <bruno@clisp.org>
4526
4527         New module 'wcsnlen'.
4528         * modules/wcsnlen: New file.
4529         * lib/wchar.in.h (wcsnlen): New declaration.
4530         * lib/wcsnlen.c: New file.
4531         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4532         * m4/wcsnlen.m4: New file.
4533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4536         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4537         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4538
4539 2011-02-05  Bruno Haible  <bruno@clisp.org>
4540
4541         New module 'wcslen'.
4542         * modules/wcslen: New file.
4543         * lib/wchar.in.h (wcslen): New declaration.
4544         * lib/wcslen.c: New file.
4545         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4546         * m4/wcslen.m4: New file.
4547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4550         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4551         * doc/posix-functions/wcslen.texi: Mention the new module.
4552
4553 2011-02-05  Bruno Haible  <bruno@clisp.org>
4554
4555         New module 'wmemset'.
4556         * modules/wmemset: New file.
4557         * lib/wchar.in.h (wmemset): New declaration.
4558         * lib/wmemset.c: New file.
4559         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4560         * m4/wmemset.m4: New file.
4561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4563         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4564         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4565         * doc/posix-functions/wmemset.texi: Mention the new module.
4566
4567 2011-02-05  Bruno Haible  <bruno@clisp.org>
4568
4569         New module 'wmemmove'.
4570         * modules/wmemmove: New file.
4571         * lib/wchar.in.h (wmemmove): New declaration.
4572         * lib/wmemmove.c: New file.
4573         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4574         * m4/wmemmove.m4: New file.
4575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4577         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4578         HAVE_WMEMMOVE.
4579         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4580         * doc/posix-functions/wmemmove.texi: Mention the new module.
4581
4582 2011-02-05  Bruno Haible  <bruno@clisp.org>
4583
4584         New module 'wmemcpy'.
4585         * modules/wmemcpy: New file.
4586         * lib/wchar.in.h (wmemcpy): New declaration.
4587         * lib/wmemcpy.c: New file.
4588         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4589         * m4/wmemcpy.m4: New file.
4590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4592         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4593         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4594         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4595
4596 2011-02-05  Bruno Haible  <bruno@clisp.org>
4597
4598         New module 'wmemcmp'.
4599         * modules/wmemcmp: New file.
4600         * lib/wchar.in.h (wmemcmp): New declaration.
4601         * lib/wmemcmp.c: New file.
4602         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4603         * m4/wmemcmp.m4: New file.
4604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4606         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4607         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4608         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4609
4610 2011-02-07  Jim Meyering  <meyering@redhat.com>
4611
4612         di-set, ino-map: new modules, from coreutils
4613         * lib/di-set.c: New file.
4614         * lib/di-set.h: Likewise.
4615         * lib/ino-map.c: Likewise.
4616         * lib/ino-map.h: Likewise.
4617         * modules/di-set: Likewise.
4618         * modules/di-set-tests: Likewise.
4619         * modules/ino-map: Likewise.
4620         * modules/ino-map-tests: Likewise.
4621         * tests/test-di-set.c: Likewise.
4622         * tests/test-ino-map.c: Likewise.
4623
4624 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         getloadavg: merge minor changes from Emacs
4627
4628         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4629         (getloadavg): Use memset, not bzero.
4630
4631         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4632         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4633         clash (bug#86).
4634
4635 2010-11-14  Bruno Haible  <bruno@clisp.org>
4636
4637         Allow multiple gnulib generated replacements to coexist.
4638         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4639         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4640         * lib/langinfo.in.h (nl_item): Likewise.
4641         * lib/math.in.h (_NaN, NAN): Likewise.
4642         * lib/netdb.in.h (struct addrinfo): Likewise.
4643         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4644         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4645         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4646         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4647         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4648         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4649         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4650         pthread_mutexattr_init, pthread_mutexattr_settype,
4651         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4652         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4653         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4654         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4655         * lib/sched.in.h (struct sched_param): Likewise.
4656         * lib/se-selinux.in.h (security_class_t, security_context_t,
4657         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4658         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4659         lsetfilecon, fsetfilecon, security_check_context,
4660         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4661         Likewise.
4662         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4663         Likewise.
4664         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4665         _gl_function_taking_int_returning_void_t, union sigval,
4666         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4667         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4668         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4669         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4670         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4671         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4672         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4673         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4674         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4675         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4676         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4677         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4678         socklen_t, rpl_fd_isset): Likewise.
4679         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4680         * lib/sys_time.in.h (struct timeval): Likewise.
4681         * lib/sys_times.in.h (struct tms): Likewise.
4682         * lib/sys_utsname.in.h (struct utsname):
4683         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4684         * lib/unistd.in.h (getpagesize): Likewise.
4685         * lib/wchar.in.h (mbstate_t): Likewise.
4686         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4687         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4688         towlower, towupper): Likewise.
4689         Reported by Sam Steingold <sds@gnu.org>.
4690
4691 2011-02-05  Eric Blake  <eblake@redhat.com>
4692
4693         unsetenv: work around Haiku issues
4694         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4695         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4696
4697 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4698
4699         libposix: avoid calling error() within libposix
4700         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4701         is defined.
4702
4703 2011-02-05  Eric Blake  <eblake@redhat.com>
4704
4705         strerror_r-posix: port to cygwin
4706         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4707         implementation.
4708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4709         * tests/test-strerror_r.c (main): Fix test.
4710         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4711         issue.
4712
4713 2011-02-05  Bruno Haible  <bruno@clisp.org>
4714
4715         New module 'wmemchr'.
4716         * modules/wmemchr: New file.
4717         * lib/wchar.in.h (wmemchr): New declaration.
4718         * lib/wmemchr.c: New file.
4719         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4720         * m4/wmemchr.m4: New file.
4721         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4722         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4723         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4724         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4725         * doc/posix-functions/wmemchr.texi: Mention the new module.
4726
4727 2011-02-04  Eric Blake  <eblake@redhat.com>
4728
4729         fdopendir: detect FreeBSD bug
4730         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4731         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4732
4733 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         stdbool: do not define HAVE_STDBOOL_H
4736         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4737         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4738         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4739         imported from the latest Autoconf git.  It was motivated by Emacs,
4740         which uses gnulib but does not need HAVE_STDBOOL_H.
4741
4742 2011-02-04  Bruno Haible  <bruno@clisp.org>
4743
4744         wcsnrtombs: Prepare for new module wwcsnrtombs.
4745         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4746         * lib/wcsnrtombs.c: Include it.
4747         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4748
4749         wcsrtombs: Prepare for new module wwcsrtombs.
4750         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4751         * lib/wcsrtombs.c: Include it.
4752         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4753
4754         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4755         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4756         * lib/mbsnrtowcs.c: Include it.
4757         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4758
4759         mbsrtowcs: Prepare for new module mbsrtowwcs.
4760         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4761         * lib/mbsrtowcs.c: Include it.
4762         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4763
4764 2011-02-04  Bruno Haible  <bruno@clisp.org>
4765
4766         vasnprintf: Reduce use of malloc for small format strings.
4767         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4768         (arguments): Add room for the first 7 arguments.
4769         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4770         (char_directives, u8_directives, u16_directives, u32_directives): Add
4771         room for the first 7 directives.
4772         * lib/printf-parse.c: Include <string.h>.
4773         (PRINTF_PARSE): Change memory handling code so that it uses the first
4774         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4775         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4776         Reported by Pádraig Brady <P@draigbrady.com>.
4777
4778 2011-01-31  Eric Blake  <eblake@redhat.com>
4779
4780         dup2: work around Haiku bug
4781         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4782         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4783         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4784         * tests/test-dup2.c (main): Enhance test.
4785
4786 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4787
4788         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4789         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4790         declared by eglibc 2.11.2.
4791         * lib/stdio.in.h: Likewise.
4792
4793 2011-01-31  Eric Blake  <eblake@redhat.com>
4794
4795         ignore-value: add missing test dependency
4796         * tests/test-ignore-value.c: Revert previous change; stdio.h
4797         provides off_t.
4798         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4799
4800 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4801
4802         mktime: clarify long_int width checking
4803         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4804         the top level, to make it clearer that the assumption about
4805         long_int width is being checked.  See
4806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4807
4808 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4809
4810         ignore-value: Fix self-test.
4811         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4812
4813 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         TYPE_MAXIMUM: avoid theoretically undefined behavior
4816         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4817         negative number, which the C Standard says has undefined behavior.
4818         In practice this is not a problem, but might as well do it by the book.
4819         Reported by Rich Felker and Eric Blake; see
4820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4821         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4822         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4824         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4825         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4826         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4827
4828         mktime: #undef mktime before #defining it
4829         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4830
4831         mktime: systematically normalize tm_isdst comparisons
4832         * lib/mktime.c (isdst_differ): New function.
4833         (__mktime_internal): Use it systematically for all isdst comparisons.
4834         This completes the fix for libc BZ #6723, and removes the need for
4835         normalizing tm_isdst.  See
4836         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4837         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4838
4839         mktime: fix some integer overflow issues and sidestep the rest
4840
4841         This was prompted by a bug report by Benjamin Lindner for MinGW
4842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4843         His bug is due to signed integer overflow (0 - INT_MIN), and I
4844         I scanned through mktime.c looking for other integer overflow
4845         problems, fixing all the bugs I found.
4846
4847         Although the C Standard says the resulting code is still not safe
4848         in the presence of integer overflow, in practice it should be good
4849         enough for all real-world two's-complement implementations, except
4850         for debugging environments that deliberately trap on integer
4851         overflow (e.g., gcc -ftrapv).
4852
4853         * lib/mktime.c (WRAPV): New macro.
4854         (SHR): Also check that long_int and time_t shift right in the
4855         usual way, before using the fast-but-unportable method.
4856         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4857         used.  The code already assumed two's complement, so there's
4858         no need to test for alternatives.  All uses removed.
4859         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4860         the C standard.  Problem reported by Rich Felker in
4861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4862         (twos_complement_arithmetic): Also check long_int and time_t.
4863         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4864         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4865         (__mktime_internal): Avoid integer overflow with unary subtraction
4866         in two instances where -1 - X is an adequate replacement for -X,
4867         since the calculations are approximate.
4868
4869 2011-01-29  Eric Blake  <eblake@redhat.com>
4870
4871         mktime: avoid infinite loop
4872         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4873         type; behavior is still undefined but portable to all known targets.
4874         Reported by Rich Felker.
4875
4876 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4877
4878         rename, unlink, same-inode: Relicense.
4879         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4880         * modules/unlink (License): Likewise.
4881         * modules/same-inode (License): Likewise.
4882
4883 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4884
4885         mktime: avoid problems on NetBSD 5 / i386
4886         * lib/mktime.c (long_int): New type.  This works around a problem
4887         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4888         but time_t is 64 bits, and where I expect the existing code is
4889         wrong in some cases.
4890         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4891         (ydhms_diff): Bring back the compile-time check for wide-enough
4892         year and yday.
4893
4894         mktime: fix misspelling in comment
4895         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4896         This merges all recent glibc changes of importance.
4897
4898 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4899
4900         move-if-change: cope with concurrent mv of identical file.
4901         * build-aux/move-if-change (CMPPROG): Accept environment
4902         variable as an override for `cmp'.
4903         (usage): Document CMPPROG.
4904         Adjust comparison to drop stdout.  Cope with failure of mv if
4905         the target file exists and is identical to the source, for
4906         parallel builds.
4907         Report from H.J. Lu against binutils in PR binutils/12283.
4908
4909 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4910
4911         * users.txt: Mention sharutils.
4912
4913 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4914
4915         * users.txt: Mention OATH Toolkit.
4916
4917 2011-01-27  Bruno Haible  <bruno@clisp.org>
4918
4919         Prepare for supporting FreeBSD 10.
4920         * build-aux/config.libpath: Remove handling of freebsd1*.
4921
4922 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4923
4924         Prepare for supporting FreeBSD 10.
4925         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4926         match FreeBSD 10.0.
4927
4928 2011-01-27  Bruno Haible  <bruno@clisp.org>
4929
4930         vma-iter, get-rusage-as: Add OpenBSD support.
4931         * modules/vma-iter (configure.ac): Test for mquery.
4932         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4933         * lib/vma-iter.c: Include <sys/mman.h>.
4934         (vma_iterate): Add an implementation based on mquery().
4935         * lib/resource-ext.h (get_rusage_as): Update comments.
4936         * lib/get-rusage-as.c: Likewise.
4937         * lib/get-rusage-data.c: Likewise.
4938
4939 2011-01-26  Karl Berry  <karl@gnu.org>
4940
4941         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4942         variables to make it easier to override the makeinfo program used.
4943
4944 2011-01-26  Eric Blake  <eblake@redhat.com>
4945
4946         fcntl: work around Haiku F_DUPFD bugs
4947         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4948         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4949         cloexec bit on duplication.
4950         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4951
4952 2011-01-26  Bruno Haible  <bruno@clisp.org>
4953
4954         Enable memory leak tests on AIX.
4955         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4956         * tests/test-fprintf-posix3.c (main): Likewise.
4957
4958 2011-01-26  Bruno Haible  <bruno@clisp.org>
4959
4960         Tests for module 'get-rusage-data'.
4961         * modules/get-rusage-data-tests: New file.
4962         * tests/test-get-rusage-data.c: New file.
4963
4964         New module 'get-rusage-data'.
4965         * lib/resource-ext.h (get_rusage_data): New declaration.
4966         * lib/get-rusage-data.c: New file.
4967         * modules/get-rusage-data: New file.
4968
4969 2011-01-25  Bruno Haible  <bruno@clisp.org>
4970
4971         get-rusage-as: Allow for easier testing.
4972         * lib/resource-ext.h (get_rusage_as): Add comment.
4973         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4974         (main): New function for interactive testing.
4975
4976 2011-01-25  Bruno Haible  <bruno@clisp.org>
4977
4978         vma-iter: Treat Haiku like BeOS.
4979         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4980         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4981
4982 2011-01-25  Eric Blake  <eblake@redhat.com>
4983
4984         c-stack: fix regression on cygwin when libsigsegv is present
4985         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4986
4987 2011-01-24  Bruno Haible  <bruno@clisp.org>
4988
4989         vma-iter: Avoid empty intervals.
4990         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4991         on an empty interval.
4992
4993 2011-01-24  Jim Meyering  <meyering@redhat.com>
4994
4995         u64: remove unnecessary #include
4996         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4997
4998 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4999
5000         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5001         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5002
5003 2011-01-23  Bruno Haible  <bruno@clisp.org>
5004
5005         New module 'vma-iter'.
5006         * lib/vma-iter.h: New file.
5007         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5008         * modules/vma-iter: New file.
5009         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5010         for get_rusage_as_via_iterator.
5011         (vma_iterate_callback): New function.
5012         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5013         * modules/get-rusage-as (Depends-on): Add vma-iter.
5014
5015 2011-01-23  Bruno Haible  <bruno@clisp.org>
5016
5017         uninorm: Tweak includes.
5018         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5019         Reported by Jim Meyering.
5020
5021 2011-01-23  Bruno Haible  <bruno@clisp.org>
5022
5023         get-rusage-as: Improve on NetBSD.
5024         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5025         /proc, like on FreeBSD.
5026
5027 2011-01-23  Jim Meyering  <meyering@redhat.com>
5028
5029         xreadlink.h: remove unnecessary #include
5030         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5031
5032         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5033         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5034
5035 2011-01-23  Bruno Haible  <bruno@clisp.org>
5036
5037         get-rusage-as: Fix bug.
5038         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5039         original limit when aborting the first loop.
5040
5041 2011-01-23  Bruno Haible  <bruno@clisp.org>
5042
5043         wctype: Ensure valid C syntax.
5044         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5045         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5046
5047 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5048
5049         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5051         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5052         as they are needed only for configure's test case.
5053         This removes two unnecessary symbols from config.h.
5054
5055         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5056         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5058         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5059         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5061         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5062         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5063         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5064         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5066         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5067         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5068         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5069         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5070         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5071         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5072         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5073
5074 2011-01-21  Eric Blake  <eblake@redhat.com>
5075
5076         maintainer-makefile: work with older git for submodule check
5077         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5078         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5079         Reported by Matthias Bolte.
5080
5081         bootstrap: minor portability fixes
5082         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5083         (usage): Omit leading capital and trailing . on help phrases, per
5084         GNU Coding Standards.
5085         (check_versions, top level): Prefix messages with script name.
5086
5087 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5088
5089         bootstrap: support --no-git option
5090         * build-aux/bootstrap: Add --no-git option, to be used when
5091         --gnulib-srcdir points to the exact desired checkout.
5092
5093 2011-01-21  Eric Blake  <eblake@redhat.com>
5094
5095         strerror_r-posix: work with glibc 2.13
5096         * lib/strerror_r.c (strerror_r): Fix return type.
5097
5098 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5099             Bruno Haible  <bruno@clisp.org>
5100
5101         uN_strstr: New unit tests.
5102         * modules/unistr/u8-strstr-tests: New file.
5103         * modules/unistr/u16-strstr-tests: New file.
5104         * modules/unistr/u32-strstr-tests: New file.
5105         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5106         * tests/unistr/test-u8-strstr.c: New file.
5107         * tests/unistr/test-u16-strstr.c: New file.
5108         * tests/unistr/test-u32-strstr.c: New file.
5109
5110 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5111             Bruno Haible  <bruno@clisp.org>
5112
5113         Make uN_strstr functions O(n) worst-case.
5114         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5115         16-bit and 32-bit unit cases, use the unibyte algorithm from
5116         lib/mbsstr.c.
5117         * lib/unistr/u8-strstr.c: Include <string.h>.
5118         (UNIT_IS_UINT8_T): New macro.
5119         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5120         (U_STRLEN, U_STRNLEN): New macros.
5121         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5122         (U_STRLEN, U_STRNLEN): New macros.
5123         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5124         (configure.ac): Update required libunistring version.
5125         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5126         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5127         malloca.
5128         (configure.ac): Update required libunistring version.
5129         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5130         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5131         malloca.
5132         (configure.ac): Update required libunistring version.
5133
5134 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5135             Bruno Haible  <bruno@clisp.org>
5136
5137         Prepare for faster uN_strstr functions.
5138         * lib/str-kmp.h: Support definable UNITs.
5139         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5140         needle_len argument.
5141         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5142         * lib/mbscasestr.c (mbscasestr): Likewise.
5143
5144 2011-01-21  Pádraig Brady <P@draigBrady.com>
5145
5146         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5147         * tests/test-malloca.c (main): Unset the environment variable
5148         to greatly speed up the test.
5149         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5150         * modules/malloca-tests: Depend on unsetenv.
5151
5152 2011-01-21  Pádraig Brady <P@draigBrady.com>
5153
5154         ignore-value: remove stdint dependency
5155         * lib/ignore-value.h: Remove <stdint.h>
5156         * modules/ignore-value: Remove stdint dependency.
5157
5158 2011-01-21  Jim Meyering  <meyering@redhat.com>
5159
5160         maint.mk: adjust variable name to be consistent with other gl_ vars
5161         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5162         to be lower case.
5163
5164 2011-01-20  Jim Meyering  <meyering@redhat.com>
5165
5166         maint.mk: make "check" depend on public-submodule-commit by default
5167         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5168
5169 2011-01-20  Bruno Haible  <bruno@clisp.org>
5170
5171         mbfile, mbiter: Complete change from 2008-12-21.
5172         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5173         * m4/mbiter.m4 (gl_MBITER): Likewise.
5174
5175 2011-01-20  Jim Meyering  <meyering@redhat.com>
5176
5177         init.sh: insert space between each function name and "()"
5178         * tests/init.sh: Make it a little easier to see that a function's
5179         name is "warn_", and not "warn" when looking at the first part of
5180         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5181
5182 2011-01-20  Jim Meyering  <meyering@redhat.com>
5183
5184         mountlist: clean up code formatting
5185         * lib/mountlist.c (read_file_system_list): Split a long line,
5186         correct bracing style, use NULL in place of "(struct statfs *)0",
5187         don't parenthesize return value, add spaces around "=" and after
5188         ";-in-for-stmt".
5189
5190 2011-01-14  Markus Duft <mduft@gentoo.org>
5191
5192         mountlist: add support for Interix
5193         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5194         Apply statvfs to all entries of /dev/fs.
5195         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5196         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5197
5198 2011-01-20  Jim Meyering  <meyering@redhat.com>
5199
5200         maint.mk: improve the public-submodule-commit rule
5201         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5202         to suppress printing of its commands... unless V=1.
5203         Add git submodule's --quiet option to suppress printing of e.g.,
5204         "Entering gnulib" output.
5205         "cd" into $(srcdir) before running git submodule.
5206
5207 2011-01-20  Bruno Haible  <bruno@clisp.org>
5208
5209         include_next: Fix bug introduced on 2011-01-18.
5210         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5211         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5212         ac_cv_header_... variable if the second argument is not 'check'.
5213         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5214         gl_NEXT_HEADERS_INTERNAL.
5215
5216 2011-01-20  Bruno Haible  <bruno@clisp.org>
5217
5218         Allow the user to avoid the GNULIB_TEST_* macros.
5219         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5220         Suggested by Paul Eggert.
5221
5222 2011-01-14  Jim Meyering  <meyering@redhat.com>
5223
5224         bootstrap: avoid failure when there is no .gitmodules file
5225         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5226         has been assigned to, even when its value is the empty string.
5227         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5228         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5229         Reported by John W. Eaton <jwe@gnu.org>.
5230
5231 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5232
5233         assume <ctype.h>, ..., <time.h> exist
5234         For years gnulib has been assuming the existence of the headers
5235         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5236         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5237         them, since they don't appear to be needed.
5238         * README (Portability guidelines): Document this.
5239         * lib/flock.c: Assume <fcntl.h> exists.
5240         * lib/regex_internal.h: Assume <locale.h> exists.
5241         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5242         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5243         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5244         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5245         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5246         * m4/regex.m4 (gl_REGEX): Likewise.
5247         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5248         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5249         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5250         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5251         * tests/test-argp.c: Likewise.
5252         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5253
5254         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5255         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5256         AA_APPLE_UNIVERSAL_BUILD.  See
5257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5258         * NEWS: Document this.
5259
5260 2011-01-19  Eric Blake  <eblake@redhat.com>
5261
5262         c-stack: assume stack overflow if SA_SIGINFO unsupported
5263         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5264         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5265         sigaction will work.
5266         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5267         behavior match Linux.
5268         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5269
5270         stdbool-tests: accomodate Haiku
5271         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5272
5273         binary-io: fix O_TEXT on Haiku
5274         * modules/binary-io (Depends-on): Add fcntl-h.
5275         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5276         than blindly undefining O_TEXT.
5277         Reported by Scott McCreary.
5278
5279 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5280
5281         include_next: do not check for standard headers like stddef.h
5282
5283         I found this problem when modifying Emacs to use gnulib.
5284         I noticed that it added HAVE_STDDEF_H to config.h, even though
5285         gnulib always assumes <stddef.h> exists as per README and this
5286         symbol is unnecessary.
5287         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5288         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5289         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5290         faster for headers like stddef.h that are known to exist.
5291         (gl_CHECK_NEXT_HEADERS): Use it.
5292         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5293         rather than gl_CHECK_NEXT_HEADERS.
5294         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5295         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5296
5297 2011-01-18  Eric Blake  <eblake@redhat.com>
5298
5299         ansi-c++-opt: skip C++ dependency style if C++ is unused
5300         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5301         tests when we know C++ compilation is not desired.
5302         Reported by Scott McCreary.
5303
5304 2011-01-18  Bruno Haible  <bruno@clisp.org>
5305
5306         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5307         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5308         (main): Perform test also when getrlimit and setrlimit don't exist or
5309         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5310         limiting the address space size using setrlimit, compare the address
5311         space size before and after the the test.
5312         * tests/test-dprintf-posix2.c: Likewise.
5313         * tests/test-fprintf-posix3.sh: Update skip messages.
5314         * tests/test-dprintf-posix2.sh: Likewise.
5315         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5316         * modules/dprintf-posix-tests (Depends-on): Likewise.
5317         Reported by Bruce Korb <bkorb@gnu.org> and
5318         Gary V. Vaughan <gary@gnu.org>.
5319
5320 2011-01-18  Bruno Haible  <bruno@clisp.org>
5321
5322         get-rusage-as: Improvement for Cygwin.
5323         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5324         areas that are merely reserved.
5325
5326 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         strftime: remove dependencies on multibyte modules
5329
5330         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5331         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5332         only if __osf__ is defined, and I suspect OSF doesn't need these
5333         other modules.  If my guess is wrong, we'll need to come up with a
5334         variant of strftime that doesn't need the multibyte modules.
5335
5336         I discovered this problem when attempting modify Emacs to use the
5337         strftime module.  With the previous gnulib, this caused Emacs to
5338         need 31 new files, ranging from lib/config.charset to
5339         m4/wint_t.m4.  This was overkill and I expect would be offputting
5340         to the Emacs maintainers.  After this change, only 6 new files are
5341         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5342         stdbool.m4, and tm_gmtoff.m4.
5343
5344         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5345         Suggested by Bruno Haible in
5346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5347         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5348         and do not check for wchar.h.
5349         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5350         (Depends-on): Remove mbrlen, mbsinit, wchar.
5351
5352 2011-01-18  Bruno Haible  <bruno@clisp.org>
5353
5354         Tests for module 'get-rusage-as'.
5355         * modules/get-rusage-as-tests: New file.
5356         * tests/test-get-rusage-as.c: New file.
5357
5358         New module 'get-rusage-as'.
5359         * modules/get-rusage-as: New file.
5360         * lib/resource-ext.h: New file.
5361         * lib/get-rusage-as.c: New file.
5362
5363 2011-01-17  Eric Blake  <eblake@redhat.com>
5364
5365         sigaction: relax license from LGPLv3+ to LGPLv2+
5366         * modules/sigaction (License): Relax to LGPLv2+.
5367
5368 2011-01-14  Bruno Haible  <bruno@clisp.org>
5369
5370         filemode: Make function declarations usable in C++ mode.
5371         * lib/filemode.h: Enclose function declarations in extern "C" block.
5372         Reported by John W. Eaton <jwe@gnu.org>.
5373
5374 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5375
5376         save-cwd: no longer include "xgetcwd.h"
5377         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5378         This avoids a compilation failure in projects that use save-cwd
5379         without also using the xgetcwd module.
5380
5381 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5382
5383         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5384         This is so that a program like Emacs, which needs only dtoastr,
5385         does not have to bother with distributing and compiling ftoastr
5386         and ldtoastr.
5387         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5388         * modules/dtoastr, modules/ldtoastr: New files.
5389         * modules/ftoastr: Now works just for 'float'.
5390         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5391         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5392         dtoastr.c, ldtoastr.c.
5393
5394 2011-01-11  Jim Meyering  <meyering@redhat.com>
5395
5396         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5397         There is no need to work around the lack of the fchdir function,
5398         since gnulib can now provide a replacement when required.
5399         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5400         * modules/save-cwd (Depends-on): Add fchdir.
5401
5402 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         openat, save-cwd: avoid xmalloc
5405
5406         This removes a direct (but undocumented) dependency of openat on
5407         xalloc, along with an indirect dependency via save-cwd.  It also
5408         removes a dependency of save-cwd on xgetcwd, and thereby
5409         indirectly on xalloc.  This change causes the openat substitute
5410         to fall back on save_cwd when memory is tight, and for save_cwd to
5411         fail instead of dying when memory is tight, but that's good enough.
5412         Problem and initial idea for fix reported by Bastien Roucaries in
5413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5414
5415         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5416         xalloc.h (for xmalloc).
5417         (openat_proc_name): Use malloc, not xmalloc.
5418         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5419         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5420
5421         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5422         This avoids heap allocation for file names whose lengths are in
5423         the range 512..1023, with the upper bound increasing to at most
5424         4031 depending on the platform's PATH_MAX.  (We do not want
5425         pathmax.h here as it might supply a non-constant PATH_MAX.)
5426         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5427         Perhaps they should be moved to malloca.h?
5428         (OPENAT_BUFFER_SIZE): Use them.
5429
5430 2011-01-10  Bruno Haible  <bruno@clisp.org>
5431
5432         doc: Update users.txt.
5433         * users.txt: Add recutils.
5434
5435 2011-01-09  Karl Berry  <karl@gnu.org>
5436
5437         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5438
5439         * doc/configmake.texi: New file.
5440         * doc/gnulib.texi: Include it.
5441         * modules/configmake: Move documentation from here.
5442
5443 2011-01-09  Bruno Haible  <bruno@clisp.org>
5444
5445         Update to Unicode 6.0.0.
5446         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5447         (get_lbp): Update for Unicode 6.0.0.
5448         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5449         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5450         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5451         U+11001, U+11038..U+11046. Remove U+06DE.
5452         (uc_width): Fix bounds of planes.
5453         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5454         lib/uniwidth/width.c.
5455         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5456         trailing whitespace removed.
5457         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5458         without comments, but with the original copyright notice.
5459         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5460         * lib/unicase/ignorable.h: Likewise.
5461         * lib/unicase/tocasefold.h: Likewise.
5462         * lib/unicase/tolower.h: Likewise.
5463         * lib/unicase/totitle.h: Likewise.
5464         * lib/unicase/toupper.h: Likewise.
5465         * lib/unictype/bidi_of.h: Likewise.
5466         * lib/unictype/blocks.h: Likewise.
5467         * lib/unictype/categ_C.h: Likewise.
5468         * lib/unictype/categ_Cn.h: Likewise.
5469         * lib/unictype/categ_L.h: Likewise.
5470         * lib/unictype/categ_Ll.h: Likewise.
5471         * lib/unictype/categ_Lm.h: Likewise.
5472         * lib/unictype/categ_Lo.h: Likewise.
5473         * lib/unictype/categ_Lu.h: Likewise.
5474         * lib/unictype/categ_M.h: Likewise.
5475         * lib/unictype/categ_Mc.h: Likewise.
5476         * lib/unictype/categ_Me.h: Likewise.
5477         * lib/unictype/categ_Mn.h: Likewise.
5478         * lib/unictype/categ_N.h: Likewise.
5479         * lib/unictype/categ_Nd.h: Likewise.
5480         * lib/unictype/categ_No.h: Likewise.
5481         * lib/unictype/categ_P.h: Likewise.
5482         * lib/unictype/categ_Po.h: Likewise.
5483         * lib/unictype/categ_S.h: Likewise.
5484         * lib/unictype/categ_Sc.h: Likewise.
5485         * lib/unictype/categ_Sk.h: Likewise.
5486         * lib/unictype/categ_Sm.h: Likewise.
5487         * lib/unictype/categ_So.h: Likewise.
5488         * lib/unictype/categ_of.h: Likewise.
5489         * lib/unictype/combining.h: Likewise.
5490         * lib/unictype/ctype_alnum.h: Likewise.
5491         * lib/unictype/ctype_alpha.h: Likewise.
5492         * lib/unictype/ctype_graph.h: Likewise.
5493         * lib/unictype/ctype_lower.h: Likewise.
5494         * lib/unictype/ctype_print.h: Likewise.
5495         * lib/unictype/ctype_punct.h: Likewise.
5496         * lib/unictype/ctype_upper.h: Likewise.
5497         * lib/unictype/decdigit.h: Likewise.
5498         * lib/unictype/digit.h: Likewise.
5499         * lib/unictype/numeric.h: Likewise.
5500         * lib/unictype/pr_alphabetic.h: Likewise.
5501         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5502         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5503         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5504         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5505         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5506         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5507         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5508         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5509         * lib/unictype/pr_case_ignorable.h: Likewise.
5510         * lib/unictype/pr_cased.h: Likewise.
5511         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5512         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5513         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5514         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5515         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5516         * lib/unictype/pr_combining.h: Likewise.
5517         * lib/unictype/pr_composite.h: Likewise.
5518         * lib/unictype/pr_currency_symbol.h: Likewise.
5519         * lib/unictype/pr_decimal_digit.h: Likewise.
5520         * lib/unictype/pr_deprecated.h: Likewise.
5521         * lib/unictype/pr_format_control.h: Likewise.
5522         * lib/unictype/pr_grapheme_base.h: Likewise.
5523         * lib/unictype/pr_grapheme_extend.h: Likewise.
5524         * lib/unictype/pr_grapheme_link.h: Likewise.
5525         * lib/unictype/pr_id_continue.h: Likewise.
5526         * lib/unictype/pr_id_start.h: Likewise.
5527         * lib/unictype/pr_ideographic.h: Likewise.
5528         * lib/unictype/pr_lowercase.h: Likewise.
5529         * lib/unictype/pr_math.h: Likewise.
5530         * lib/unictype/pr_numeric.h: Likewise.
5531         * lib/unictype/pr_other_alphabetic.h: Likewise.
5532         * lib/unictype/pr_other_id_continue.h: Likewise.
5533         * lib/unictype/pr_other_math.h: Likewise.
5534         * lib/unictype/pr_punctuation.h: Likewise.
5535         * lib/unictype/pr_sentence_terminal.h: Likewise.
5536         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5537         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5538         * lib/unictype/pr_unified_ideograph.h: Likewise.
5539         * lib/unictype/pr_uppercase.h: Likewise.
5540         * lib/unictype/pr_xid_continue.h: Likewise.
5541         * lib/unictype/pr_xid_start.h: Likewise.
5542         * lib/unictype/scripts.h: Likewise.
5543         * lib/unictype/scripts_byname.gperf: Likewise.
5544         * lib/unictype/sy_java_ident.h: Likewise.
5545         * lib/unigbrk/gbrkprop.h: Likewise.
5546         * lib/unilbrk/lbrkprop1.h: Likewise.
5547         * lib/unilbrk/lbrkprop2.h: Likewise.
5548         * lib/uninorm/decomposition-table2.h: Likewise.
5549         * lib/uniwbrk/wbrkprop.h: Likewise.
5550         * tests/unicase/test-cased.c: Likewise.
5551         * tests/unicase/test-ignorable.c: Likewise.
5552         * tests/unicase/test-uc_tolower.c: Likewise.
5553         * tests/unicase/test-uc_totitle.c: Likewise.
5554         * tests/unicase/test-uc_toupper.c: Likewise.
5555         * tests/unictype/test-categ_C.c: Likewise.
5556         * tests/unictype/test-categ_Cn.c: Likewise.
5557         * tests/unictype/test-categ_L.c: Likewise.
5558         * tests/unictype/test-categ_Ll.c: Likewise.
5559         * tests/unictype/test-categ_Lm.c: Likewise.
5560         * tests/unictype/test-categ_Lo.c: Likewise.
5561         * tests/unictype/test-categ_Lu.c: Likewise.
5562         * tests/unictype/test-categ_M.c: Likewise.
5563         * tests/unictype/test-categ_Mc.c: Likewise.
5564         * tests/unictype/test-categ_Me.c: Likewise.
5565         * tests/unictype/test-categ_Mn.c: Likewise.
5566         * tests/unictype/test-categ_N.c: Likewise.
5567         * tests/unictype/test-categ_Nd.c: Likewise.
5568         * tests/unictype/test-categ_No.c: Likewise.
5569         * tests/unictype/test-categ_P.c: Likewise.
5570         * tests/unictype/test-categ_Po.c: Likewise.
5571         * tests/unictype/test-categ_S.c: Likewise.
5572         * tests/unictype/test-categ_Sc.c: Likewise.
5573         * tests/unictype/test-categ_Sk.c: Likewise.
5574         * tests/unictype/test-categ_Sm.c: Likewise.
5575         * tests/unictype/test-categ_So.c: Likewise.
5576         * tests/unictype/test-ctype_alnum.c: Likewise.
5577         * tests/unictype/test-ctype_alpha.c: Likewise.
5578         * tests/unictype/test-ctype_graph.c: Likewise.
5579         * tests/unictype/test-ctype_lower.c: Likewise.
5580         * tests/unictype/test-ctype_print.c: Likewise.
5581         * tests/unictype/test-ctype_punct.c: Likewise.
5582         * tests/unictype/test-ctype_upper.c: Likewise.
5583         * tests/unictype/test-decdigit.h: Likewise.
5584         * tests/unictype/test-digit.h: Likewise.
5585         * tests/unictype/test-numeric.h: Likewise.
5586         * tests/unictype/test-pr_alphabetic.c: Likewise.
5587         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5588         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5589         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5590         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5591         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5592         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5593         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5594         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5595         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5596         * tests/unictype/test-pr_cased.c: Likewise.
5597         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5598         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5599         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5600         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5601         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5602         * tests/unictype/test-pr_combining.c: Likewise.
5603         * tests/unictype/test-pr_composite.c: Likewise.
5604         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5605         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5606         * tests/unictype/test-pr_deprecated.c: Likewise.
5607         * tests/unictype/test-pr_format_control.c: Likewise.
5608         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5609         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5610         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5611         * tests/unictype/test-pr_id_continue.c: Likewise.
5612         * tests/unictype/test-pr_id_start.c: Likewise.
5613         * tests/unictype/test-pr_ideographic.c: Likewise.
5614         * tests/unictype/test-pr_lowercase.c: Likewise.
5615         * tests/unictype/test-pr_math.c: Likewise.
5616         * tests/unictype/test-pr_numeric.c: Likewise.
5617         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5618         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5619         * tests/unictype/test-pr_other_math.c: Likewise.
5620         * tests/unictype/test-pr_punctuation.c: Likewise.
5621         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5622         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5623         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5624         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5625         * tests/unictype/test-pr_uppercase.c: Likewise.
5626         * tests/unictype/test-pr_xid_continue.c: Likewise.
5627         * tests/unictype/test-pr_xid_start.c: Likewise.
5628         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5629         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5630         changes.
5631         * lib/unictype/categ_Cc.h: Likewise.
5632         * lib/unictype/categ_Cf.h: Likewise.
5633         * lib/unictype/categ_Co.h: Likewise.
5634         * lib/unictype/categ_Cs.h: Likewise.
5635         * lib/unictype/categ_Lt.h: Likewise.
5636         * lib/unictype/categ_Nl.h: Likewise.
5637         * lib/unictype/categ_Pc.h: Likewise.
5638         * lib/unictype/categ_Pd.h: Likewise.
5639         * lib/unictype/categ_Pe.h: Likewise.
5640         * lib/unictype/categ_Pf.h: Likewise.
5641         * lib/unictype/categ_Pi.h: Likewise.
5642         * lib/unictype/categ_Ps.h: Likewise.
5643         * lib/unictype/categ_Z.h: Likewise.
5644         * lib/unictype/categ_Zl.h: Likewise.
5645         * lib/unictype/categ_Zp.h: Likewise.
5646         * lib/unictype/categ_Zs.h: Likewise.
5647         * lib/unictype/ctype_blank.h: Likewise.
5648         * lib/unictype/ctype_cntrl.h: Likewise.
5649         * lib/unictype/ctype_digit.h: Likewise.
5650         * lib/unictype/ctype_space.h: Likewise.
5651         * lib/unictype/ctype_xdigit.h: Likewise.
5652         * lib/unictype/mirror.h: Likewise.
5653         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5654         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5655         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5656         * lib/unictype/pr_bidi_control.h: Likewise.
5657         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5658         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5659         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5660         * lib/unictype/pr_bidi_pdf.h: Likewise.
5661         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5662         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5663         * lib/unictype/pr_dash.h: Likewise.
5664         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5665         * lib/unictype/pr_diacritic.h: Likewise.
5666         * lib/unictype/pr_extender.h: Likewise.
5667         * lib/unictype/pr_hex_digit.h: Likewise.
5668         * lib/unictype/pr_hyphen.h: Likewise.
5669         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5670         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5671         * lib/unictype/pr_ignorable_control.h: Likewise.
5672         * lib/unictype/pr_iso_control.h: Likewise.
5673         * lib/unictype/pr_join_control.h: Likewise.
5674         * lib/unictype/pr_left_of_pair.h: Likewise.
5675         * lib/unictype/pr_line_separator.h: Likewise.
5676         * lib/unictype/pr_logical_order_exception.h: Likewise.
5677         * lib/unictype/pr_non_break.h: Likewise.
5678         * lib/unictype/pr_not_a_character.h: Likewise.
5679         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5680         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5681         * lib/unictype/pr_other_id_start.h: Likewise.
5682         * lib/unictype/pr_other_lowercase.h: Likewise.
5683         * lib/unictype/pr_other_uppercase.h: Likewise.
5684         * lib/unictype/pr_paired_punctuation.h: Likewise.
5685         * lib/unictype/pr_paragraph_separator.h: Likewise.
5686         * lib/unictype/pr_pattern_syntax.h: Likewise.
5687         * lib/unictype/pr_pattern_white_space.h: Likewise.
5688         * lib/unictype/pr_private_use.h: Likewise.
5689         * lib/unictype/pr_quotation_mark.h: Likewise.
5690         * lib/unictype/pr_radical.h: Likewise.
5691         * lib/unictype/pr_soft_dotted.h: Likewise.
5692         * lib/unictype/pr_space.h: Likewise.
5693         * lib/unictype/pr_titlecase.h: Likewise.
5694         * lib/unictype/pr_variation_selector.h: Likewise.
5695         * lib/unictype/pr_white_space.h: Likewise.
5696         * lib/unictype/pr_zero_width.h: Likewise.
5697         * lib/unictype/sy_c_ident.h: Likewise.
5698         * lib/unictype/sy_c_whitespace.h: Likewise.
5699         * lib/unictype/sy_java_whitespace.h: Likewise.
5700         * lib/uninorm/composition-table.gperf: Likewise.
5701         * lib/uninorm/decomposition-table1.h: Likewise.
5702         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5703         LB8.
5704         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5705         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5706         * modules/unictype/*: Bump version number of expected libunistring
5707         version.
5708
5709 2011-01-09  Bruno Haible  <bruno@clisp.org>
5710
5711         Update to Unicode 5.2.0.
5712         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5713         trailing whitespace removed.
5714
5715 2011-01-09  Bruno Haible  <bruno@clisp.org>
5716
5717         New Unicode character properties, from Unicode 5.2.0.
5718         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5719         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5720         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5721         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5722         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5723         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5724         uc_is_property_cased, uc_is_property_case_ignorable,
5725         uc_is_property_changes_when_lowercased,
5726         uc_is_property_changes_when_uppercased,
5727         uc_is_property_changes_when_titlecased,
5728         uc_is_property_changes_when_casefolded,
5729         uc_is_property_changes_when_casemapped): New declarations.
5730         * lib/unictype/pr_byname.gperf: Add the new properties.
5731         * modules/unictype/property-byname (Depends-on): Depend on the new
5732         properties modules.
5733         * modules/unictype/property-all (Depends-on): Likewise.
5734         * MODULES.html.sh (Unicode string functions): Add
5735         unictype/property-case-ignorable, unictype/property-cased,
5736         unictype/property-changes-when-casefolded,
5737         unictype/property-changes-when-casemapped,
5738         unictype/property-changes-when-lowercased,
5739         unictype/property-changes-when-titlecased,
5740         unictype/property-changes-when-uppercased.
5741
5742         New module 'unictype/property-changes-when-casemapped'.
5743         * modules/unictype/property-changes-when-casemapped: New file.
5744         * lib/unictype/pr_changes_when_casemapped.c: New file.
5745         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5746         generated by gen-uni-tables.
5747         * modules/unictype/property-changes-when-casemapped-tests: New file.
5748         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5749         automatically generated by gen-uni-tables.
5750
5751         New module 'unictype/property-changes-when-casefolded'.
5752         * modules/unictype/property-changes-when-casefolded: New file.
5753         * lib/unictype/pr_changes_when_casefolded.c: New file.
5754         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5755         generated by gen-uni-tables.
5756         * modules/unictype/property-changes-when-casefolded-tests: New file.
5757         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5758         automatically generated by gen-uni-tables.
5759
5760         New module 'unictype/property-changes-when-titlecased'.
5761         * modules/unictype/property-changes-when-titlecased: New file.
5762         * lib/unictype/pr_changes_when_titlecased.c: New file.
5763         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5764         generated by gen-uni-tables.
5765         * modules/unictype/property-changes-when-titlecased-tests: New file.
5766         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5767         automatically generated by gen-uni-tables.
5768
5769         New module 'unictype/property-changes-when-uppercased'.
5770         * modules/unictype/property-changes-when-uppercased: New file.
5771         * lib/unictype/pr_changes_when_uppercased.c: New file.
5772         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5773         generated by gen-uni-tables.
5774         * modules/unictype/property-changes-when-uppercased-tests: New file.
5775         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5776         automatically generated by gen-uni-tables.
5777
5778         New module 'unictype/property-changes-when-lowercased'.
5779         * modules/unictype/property-changes-when-lowercased: New file.
5780         * lib/unictype/pr_changes_when_lowercased.c: New file.
5781         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5782         generated by gen-uni-tables.
5783         * modules/unictype/property-changes-when-lowercased-tests: New file.
5784         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5785         automatically generated by gen-uni-tables.
5786
5787         New module 'unictype/property-case-ignorable'.
5788         * modules/unictype/property-case-ignorable: New file.
5789         * lib/unictype/pr_case_ignorable.c: New file.
5790         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5791         by gen-uni-tables.
5792         * modules/unictype/property-case-ignorable-tests: New file.
5793         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5794         generated by gen-uni-tables.
5795
5796         New module 'unictype/property-cased'.
5797         * modules/unictype/property-cased: New file.
5798         * lib/unictype/pr_cased.c: New file.
5799         * lib/unictype/pr_cased.h: New file, automatically generated by
5800         gen-uni-tables.
5801         * modules/unictype/property-cased-tests: New file.
5802         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5803         gen-uni-tables.
5804
5805 2011-01-09  Bruno Haible  <bruno@clisp.org>
5806
5807         Update to Unicode 5.2.0.
5808         * lib/gen-uni-tables.c (output_predicate, output_category,
5809         output_combclass, output_bidi_category, output_decimal_digit_test,
5810         output_decimal_digit, output_digit_test, output_digit,
5811         output_numeric_test, output_numeric, output_mirror, output_scripts,
5812         output_scripts_byname, output_blocks, output_ident_category): Fix
5813         comment header.
5814         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5815         get_wbp.
5816         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5817         items.
5818         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5819         Changes_When_Lowercased, Changes_When_Uppercased,
5820         Changes_When_Titlecased, Changes_When_Casefolded,
5821         Changes_When_Casemapped.
5822         (is_property_alphabetic, is_property_default_ignorable_code_point):
5823         Update for Unicode 5.2.0.
5824         (is_property_cased, is_property_case_ignorable,
5825         is_property_changes_when_lowercased,
5826         is_property_changes_when_uppercased,
5827         is_property_changes_when_titlecased,
5828         is_property_changes_when_casefolded,
5829         is_property_changes_when_casemapped): New functions.
5830         (output_properties): Output also the properties cased, case_ignorable,
5831         changes_when_lowercased, changes_when_uppercased,
5832         changes_when_titlecased, changes_when_casefolded,
5833         changes_when_casemapped.
5834         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5835         Unicode TR#11 revision 17 -> 19.
5836         (LBP_CP): New enumeration value.
5837         (LBP_*): Adjust values accordingly.
5838         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5839         TR#14 revision 22 -> 24.
5840         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5841         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5842         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5843         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5844         is_WBP_MIDLETTER.
5845         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5846         the code1 and code2 of each composition rule.
5847         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5848         * lib/unicase/ignorable.h: Likewise.
5849         * lib/unicase/tocasefold.h: Likewise.
5850         * lib/unicase/tolower.h: Likewise.
5851         * lib/unicase/totitle.h: Likewise.
5852         * lib/unicase/toupper.h: Likewise.
5853         * lib/unictype/bidi_of.h: Likewise.
5854         * lib/unictype/blocks.h: Likewise.
5855         * lib/unictype/categ_C.h: Likewise.
5856         * lib/unictype/categ_Cf.h: Likewise.
5857         * lib/unictype/categ_Cn.h: Likewise.
5858         * lib/unictype/categ_L.h: Likewise.
5859         * lib/unictype/categ_Ll.h: Likewise.
5860         * lib/unictype/categ_Lm.h: Likewise.
5861         * lib/unictype/categ_Lo.h: Likewise.
5862         * lib/unictype/categ_Lu.h: Likewise.
5863         * lib/unictype/categ_M.h: Likewise.
5864         * lib/unictype/categ_Mc.h: Likewise.
5865         * lib/unictype/categ_Mn.h: Likewise.
5866         * lib/unictype/categ_N.h: Likewise.
5867         * lib/unictype/categ_Nd.h: Likewise.
5868         * lib/unictype/categ_Nl.h: Likewise.
5869         * lib/unictype/categ_No.h: Likewise.
5870         * lib/unictype/categ_P.h: Likewise.
5871         * lib/unictype/categ_Pd.h: Likewise.
5872         * lib/unictype/categ_Po.h: Likewise.
5873         * lib/unictype/categ_S.h: Likewise.
5874         * lib/unictype/categ_Sc.h: Likewise.
5875         * lib/unictype/categ_So.h: Likewise.
5876         * lib/unictype/categ_of.h: Likewise.
5877         * lib/unictype/combining.h: Likewise.
5878         * lib/unictype/ctype_alnum.h: Likewise.
5879         * lib/unictype/ctype_alpha.h: Likewise.
5880         * lib/unictype/ctype_graph.h: Likewise.
5881         * lib/unictype/ctype_lower.h: Likewise.
5882         * lib/unictype/ctype_print.h: Likewise.
5883         * lib/unictype/ctype_punct.h: Likewise.
5884         * lib/unictype/ctype_upper.h: Likewise.
5885         * lib/unictype/decdigit.h: Likewise.
5886         * lib/unictype/digit.h: Likewise.
5887         * lib/unictype/numeric.h: Likewise.
5888         * lib/unictype/pr_alphabetic.h: Likewise.
5889         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5890         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5891         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5892         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5893         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5894         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5895         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5896         * lib/unictype/pr_combining.h: Likewise.
5897         * lib/unictype/pr_composite.h: Likewise.
5898         * lib/unictype/pr_currency_symbol.h: Likewise.
5899         * lib/unictype/pr_dash.h: Likewise.
5900         * lib/unictype/pr_decimal_digit.h: Likewise.
5901         * lib/unictype/pr_deprecated.h: Likewise.
5902         * lib/unictype/pr_diacritic.h: Likewise.
5903         * lib/unictype/pr_extender.h: Likewise.
5904         * lib/unictype/pr_grapheme_base.h: Likewise.
5905         * lib/unictype/pr_grapheme_extend.h: Likewise.
5906         * lib/unictype/pr_grapheme_link.h: Likewise.
5907         * lib/unictype/pr_id_continue.h: Likewise.
5908         * lib/unictype/pr_id_start.h: Likewise.
5909         * lib/unictype/pr_ideographic.h: Likewise.
5910         * lib/unictype/pr_ignorable_control.h: Likewise.
5911         * lib/unictype/pr_logical_order_exception.h: Likewise.
5912         * lib/unictype/pr_lowercase.h: Likewise.
5913         * lib/unictype/pr_numeric.h: Likewise.
5914         * lib/unictype/pr_other_alphabetic.h: Likewise.
5915         * lib/unictype/pr_punctuation.h: Likewise.
5916         * lib/unictype/pr_sentence_terminal.h: Likewise.
5917         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5918         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5919         * lib/unictype/pr_unified_ideograph.h: Likewise.
5920         * lib/unictype/pr_uppercase.h: Likewise.
5921         * lib/unictype/pr_xid_continue.h: Likewise.
5922         * lib/unictype/pr_xid_start.h: Likewise.
5923         * lib/unictype/pr_zero_width.h: Likewise.
5924         * lib/unictype/scripts.h: Likewise.
5925         * lib/unictype/scripts_byname.gperf: Likewise.
5926         * lib/unictype/sy_java_ident.h: Likewise.
5927         * lib/unigbrk/gbrkprop.h: Likewise.
5928         * lib/unilbrk/lbrkprop1.h: Likewise.
5929         * lib/unilbrk/lbrkprop2.h: Likewise.
5930         * lib/unilbrk/lbrktables.h: Likewise.
5931         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5932         LBP_CP. Implement rule LB30.
5933         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5934         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5935         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5936         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5937         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5938         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5939         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5940         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5941         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5942         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5943         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5944         bits instead of 16 bits in the code1 and code2 of each composition
5945         rule.
5946         (uc_composition): Update for Unicode 5.2.0.
5947         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5948         * lib/uninorm/decomposition-table2.h: Likewise.
5949         * lib/uniwbrk/wbrkprop.h: Likewise.
5950         * tests/unicase/test-cased.c: Likewise.
5951         * tests/unicase/test-ignorable.c: Likewise.
5952         * tests/unicase/test-uc_tolower.c: Likewise.
5953         * tests/unicase/test-uc_totitle.c: Likewise.
5954         * tests/unicase/test-uc_toupper.c: Likewise.
5955         * tests/unictype/test-categ_C.c: Likewise.
5956         * tests/unictype/test-categ_Cf.c: Likewise.
5957         * tests/unictype/test-categ_Cn.c: Likewise.
5958         * tests/unictype/test-categ_L.c: Likewise.
5959         * tests/unictype/test-categ_Ll.c: Likewise.
5960         * tests/unictype/test-categ_Lm.c: Likewise.
5961         * tests/unictype/test-categ_Lo.c: Likewise.
5962         * tests/unictype/test-categ_Lu.c: Likewise.
5963         * tests/unictype/test-categ_M.c: Likewise.
5964         * tests/unictype/test-categ_Mc.c: Likewise.
5965         * tests/unictype/test-categ_Mn.c: Likewise.
5966         * tests/unictype/test-categ_N.c: Likewise.
5967         * tests/unictype/test-categ_Nd.c: Likewise.
5968         * tests/unictype/test-categ_Nl.c: Likewise.
5969         * tests/unictype/test-categ_No.c: Likewise.
5970         * tests/unictype/test-categ_P.c: Likewise.
5971         * tests/unictype/test-categ_Pd.c: Likewise.
5972         * tests/unictype/test-categ_Po.c: Likewise.
5973         * tests/unictype/test-categ_S.c: Likewise.
5974         * tests/unictype/test-categ_Sc.c: Likewise.
5975         * tests/unictype/test-categ_So.c: Likewise.
5976         * tests/unictype/test-ctype_alnum.c: Likewise.
5977         * tests/unictype/test-ctype_alpha.c: Likewise.
5978         * tests/unictype/test-ctype_graph.c: Likewise.
5979         * tests/unictype/test-ctype_lower.c: Likewise.
5980         * tests/unictype/test-ctype_print.c: Likewise.
5981         * tests/unictype/test-ctype_punct.c: Likewise.
5982         * tests/unictype/test-ctype_upper.c: Likewise.
5983         * tests/unictype/test-decdigit.h: Likewise.
5984         * tests/unictype/test-digit.h: Likewise.
5985         * tests/unictype/test-numeric.h: Likewise.
5986         * tests/unictype/test-pr_alphabetic.c: Likewise.
5987         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5988         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5989         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5990         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5991         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5992         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5993         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5994         * tests/unictype/test-pr_combining.c: Likewise.
5995         * tests/unictype/test-pr_composite.c: Likewise.
5996         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5997         * tests/unictype/test-pr_dash.c: Likewise.
5998         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5999         * tests/unictype/test-pr_deprecated.c: Likewise.
6000         * tests/unictype/test-pr_diacritic.c: Likewise.
6001         * tests/unictype/test-pr_extender.c: Likewise.
6002         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6003         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6004         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6005         * tests/unictype/test-pr_id_continue.c: Likewise.
6006         * tests/unictype/test-pr_id_start.c: Likewise.
6007         * tests/unictype/test-pr_ideographic.c: Likewise.
6008         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6009         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6010         * tests/unictype/test-pr_lowercase.c: Likewise.
6011         * tests/unictype/test-pr_numeric.c: Likewise.
6012         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6013         * tests/unictype/test-pr_punctuation.c: Likewise.
6014         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6015         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6016         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6017         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6018         * tests/unictype/test-pr_uppercase.c: Likewise.
6019         * tests/unictype/test-pr_xid_continue.c: Likewise.
6020         * tests/unictype/test-pr_xid_start.c: Likewise.
6021         * tests/unictype/test-pr_zero_width.c: Likewise.
6022         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6023         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6024         changed behaviour: line breaking is now disallowed between a letter
6025         or '=' and '('.
6026         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6027         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6028         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6029         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6030         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6031         lib/uniwidth/width.c.
6032         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6033         without comments, but with the original copyright notice.
6034         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6035         changes.
6036         * lib/unictype/categ_Cc.h: Likewise.
6037         * lib/unictype/categ_Co.h: Likewise.
6038         * lib/unictype/categ_Cs.h: Likewise.
6039         * lib/unictype/categ_Lt.h: Likewise.
6040         * lib/unictype/categ_Me.h: Likewise.
6041         * lib/unictype/categ_Pc.h: Likewise.
6042         * lib/unictype/categ_Pe.h: Likewise.
6043         * lib/unictype/categ_Pf.h: Likewise.
6044         * lib/unictype/categ_Pi.h: Likewise.
6045         * lib/unictype/categ_Ps.h: Likewise.
6046         * lib/unictype/categ_Sk.h: Likewise.
6047         * lib/unictype/categ_Sm.h: Likewise.
6048         * lib/unictype/categ_Z.h: Likewise.
6049         * lib/unictype/categ_Zl.h: Likewise.
6050         * lib/unictype/categ_Zp.h: Likewise.
6051         * lib/unictype/categ_Zs.h: Likewise.
6052         * lib/unictype/ctype_blank.h: Likewise.
6053         * lib/unictype/ctype_cntrl.h: Likewise.
6054         * lib/unictype/ctype_digit.h: Likewise.
6055         * lib/unictype/ctype_space.h: Likewise.
6056         * lib/unictype/ctype_xdigit.h: Likewise.
6057         * lib/unictype/mirror.h: Likewise.
6058         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6059         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6060         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6061         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6062         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6063         * lib/unictype/pr_bidi_control.h: Likewise.
6064         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6065         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6066         * lib/unictype/pr_bidi_pdf.h: Likewise.
6067         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6068         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6069         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6070         * lib/unictype/pr_format_control.h: Likewise.
6071         * lib/unictype/pr_hex_digit.h: Likewise.
6072         * lib/unictype/pr_hyphen.h: Likewise.
6073         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6074         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6075         * lib/unictype/pr_iso_control.h: Likewise.
6076         * lib/unictype/pr_join_control.h: Likewise.
6077         * lib/unictype/pr_left_of_pair.h: Likewise.
6078         * lib/unictype/pr_line_separator.h: Likewise.
6079         * lib/unictype/pr_math.h: Likewise.
6080         * lib/unictype/pr_non_break.h: Likewise.
6081         * lib/unictype/pr_not_a_character.h: Likewise.
6082         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6083         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6084         * lib/unictype/pr_other_id_continue.h: Likewise.
6085         * lib/unictype/pr_other_id_start.h: Likewise.
6086         * lib/unictype/pr_other_lowercase.h: Likewise.
6087         * lib/unictype/pr_other_math.h: Likewise.
6088         * lib/unictype/pr_other_uppercase.h: Likewise.
6089         * lib/unictype/pr_paired_punctuation.h: Likewise.
6090         * lib/unictype/pr_paragraph_separator.h: Likewise.
6091         * lib/unictype/pr_pattern_syntax.h: Likewise.
6092         * lib/unictype/pr_pattern_white_space.h: Likewise.
6093         * lib/unictype/pr_private_use.h: Likewise.
6094         * lib/unictype/pr_quotation_mark.h: Likewise.
6095         * lib/unictype/pr_radical.h: Likewise.
6096         * lib/unictype/pr_soft_dotted.h: Likewise.
6097         * lib/unictype/pr_space.h: Likewise.
6098         * lib/unictype/pr_titlecase.h: Likewise.
6099         * lib/unictype/pr_variation_selector.h: Likewise.
6100         * lib/unictype/pr_white_space.h: Likewise.
6101         * lib/unictype/sy_c_ident.h: Likewise.
6102         * lib/unictype/sy_c_whitespace.h: Likewise.
6103         * lib/unictype/sy_java_whitespace.h: Likewise.
6104         * modules/uni*/*: Bump version number of expected libunistring version.
6105         Reported by Simon Josefsson.
6106
6107 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6108
6109         useless-if-before-free: fix typo in --help and make the internal,
6110         automatic version date update process work once again.
6111         --help output contained a NUL character instead of the
6112         backslash-zero that was intended.  Also, the "must lie within
6113         the first 8 lines" line is on line 9, and hence not getting
6114         automatically updated.
6115         * build-aux/useless-if-before-free: Fix the former by adding a
6116         backslash, and the latter by condensing the three lines of what-it-does
6117         to a single line, leaving one line of slack for the future.
6118
6119 2011-01-09  Bruno Haible  <bruno@clisp.org>
6120
6121         uniwidth/width: Fix width of U+1D173..U+1D17A.
6122         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6123         symbolic_width, output_width_property_test): New functions.
6124         (main): Invoke output_nonspacing_property, output_width_property_test.
6125         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6126         U+1D173..U+1D17A.
6127         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6128         1.
6129         * modules/uniwidth/*: Bump version number of expected libunistring
6130         version.
6131         * modules/unilbrk/*: Likewise.
6132
6133 2011-01-08  Bruno Haible  <bruno@clisp.org>
6134
6135         uninorm tests: Preserve copyright of Unicode data file.
6136         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6137         Mention modifications.
6138
6139 2011-01-08  Bruno Haible  <bruno@clisp.org>
6140
6141         gen-uni-tables: Prepare for Unicode 5.2.0.
6142         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6143         (debug_output_lbp, output_lbp): Update.
6144
6145 2011-01-08  Bruno Haible  <bruno@clisp.org>
6146
6147         unilbrk: Clarify gen-uni-tables.c code.
6148         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6149         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6150         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6151
6152 2011-01-07  Bruno Haible  <bruno@clisp.org>
6153
6154         strtod: Restore errno when successfully parsing Infinity or NaN.
6155         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6156         restore the original errno.
6157
6158 2011-01-07  Bruno Haible  <bruno@clisp.org>
6159
6160         remove test: Avoid failure on HP-UX 11.
6161         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6162
6163 2011-01-07  Bruno Haible  <bruno@clisp.org>
6164
6165         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6166         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6167         error code.
6168
6169 2011-01-07  Pádraig Brady <P@draigBrady.com>
6170
6171         ignore-value: fixup comments, and add Eric Blake
6172         as an author since he rewrote the macros.
6173         * lib/ignore-value.h (ignore_value):  State that
6174         we now support aggregates.  Also specify exactly
6175         when the GCC warn_unused_result feature was added.
6176
6177 2011-01-06  Eric Blake  <eblake@redhat.com>
6178
6179         ignore-value: support aggregate types
6180         * lib/ignore-value.h (ignore_value): Provide separate gcc
6181         definition.
6182         * modules/ignore-value-tests: New test module.
6183         * tests/test-ignore-value.c: New test.
6184
6185         maint.mk: improve sc_prohibit_strcmp regex
6186         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6187         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6188         definition of STRNEQ.
6189
6190         signal: work around Haiku issue with SIGBUS
6191         * lib/siglist.h: Add comment.
6192         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6193         strsignal's favoring of SIGSEGV.
6194         * tests/test-signal.c (main): Avoid test failure.
6195         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6196         Reported by Scott McCreary.
6197
6198         maint.mk: add pre-release check to ensure submodule commits are public
6199         * top/maint.mk (public-submodule-commit): New rule.
6200         (submodule-checks): New variable.
6201         (alpha beta stable): Depend on the variable.
6202
6203 2011-01-05  Pádraig Brady <P@draigBrady.com>
6204         and Jim Meyering  <meyering@redhat.com>
6205
6206         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6207         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6208         (ATTRIBUTE_DEPRECATED): Define.
6209         (_ignore_case): New function.
6210         (ignore_value): New macro, to replace the old function.
6211         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6212         * modules/ignore-value (Depends-on): Add stdint.
6213
6214 2011-01-04  Eric Blake  <eblake@redhat.com>
6215
6216         doc: regenerate INSTALL
6217         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6218         @firstparagraphindent support, now that autoconf dropped it.
6219         (INSTALL_PRELUDE): Reinstate old macro.
6220         * doc/install.texi: Resync from autoconf.
6221         * doc/INSTALL: Reflect recent autoconf update.
6222         * doc/INSTALL.ISO: Likewise.
6223         * doc/INSTALL.UTF-8: Likewise.
6224         Reported by Karl Berry.
6225
6226 2011-01-04  Bruce Korb  <address@hidden>
6227
6228         git-version-gen: avoid a sub-shell
6229         * build-aux/git-version-gen: Redirect stderr in `...` via
6230         "exec 2>...", rather than via an added sub-shell.
6231
6232 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6233
6234         git-version-gen: use (...) rather than sh -c '...'
6235         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6236         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6237
6238 2011-01-03  Jim Meyering  <meyering@redhat.com>
6239
6240         git-version-gen: convert leading TABs to spaces
6241         * build-aux/git-version-gen: Expand leading TABs.
6242
6243         git-version-gen: handle failed "git rev-list"
6244         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6245         from git and proceeding as if it had succeeded but printed no SHA1
6246         checksums, suppress the diagnostic and handle the failure.
6247         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6248
6249         git-version-gen: include command name in one more diagnostic
6250         * build-aux/git-version-gen: When the required .tarball-version file
6251         was missing or unreadable, you might see the diagnostic from "cat",
6252         but no trace of the name of the invoking script.  Now, you still see
6253         the diagnostic from cat, but also get one from "git-version-gen: ".
6254         Inspired by a patch from Bruce Korb.
6255
6256         update-copyright: adjust test to match changed code
6257         * tests/test-update-copyright.sh: Change test's expected output
6258         to match new actual output.
6259
6260 2011-01-02  Bruno Haible  <bruno@clisp.org>
6261
6262         getlogin_r: Avoid test failure on HP-UX 11.
6263         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6264         ERANGE when the second argument is zero.
6265         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6266         portability problem.
6267
6268 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6269
6270         * build-aux/update-copyright: doc Simon's changes
6271
6272 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6273
6274         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6275         environment variable.
6276
6277 2011-01-02  Bruno Haible  <bruno@clisp.org>
6278
6279         unigbrk: Avoid gcc warnings.
6280         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6281         unused variable.
6282         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6283         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6284         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6285         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6286         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6287         Change type of first argument to 'const char *'.
6288         (main): Remove unused variable.
6289         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6290         type of first argument to 'const char *'.
6291         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6292         Likewise.
6293         (main): Change type of variable 's'.
6294         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6295         to 'int'.
6296
6297 2011-01-02  Bruno Haible  <bruno@clisp.org>
6298
6299         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6300         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6301         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6302         bug.
6303         * lib/pwrite.c: Undo 2010-12-31 patch.
6304         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6305
6306 2011-01-02  Bruno Haible  <bruno@clisp.org>
6307
6308         pread: Fix test whether it works.
6309         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6310
6311 2011-01-02  Bruno Haible  <bruno@clisp.org>
6312
6313         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6314         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6315         ends in "6". Don't require a specific month name. Try also the locale
6316         names found on HP-UX 11 and Solaris 7.
6317
6318 2011-01-02  Bruno Haible  <bruno@clisp.org>
6319
6320         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6321         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6322         C linkage.
6323         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6324
6325 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6326
6327         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6328         for consistency, since the "cluster" term is not used elsewhere.
6329         * lib/unigbrk.in.h: Update name.
6330         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6331         * lib/unigbrk/u16-grapheme-next.c: Update name.
6332         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6333         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6334         * lib/unigbrk/u32-grapheme-next.c: Update name.
6335         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6336         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6337         * lib/unigbrk/u8-grapheme-next.c: Update name.
6338         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6339         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6340         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6341         Suggested by Bruno Haible.
6342
6343 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6344
6345         Remove module 'u8-grapheme-len' as too redundant with
6346         'u8-grapheme-next'.
6347         * modules/unigbrk/u8-grapheme-len: Delete file.
6348         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6349         * lib/unigbrk.in.h: Remove prototype for deleted function.
6350         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6351         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6352
6353         Remove module 'u16-grapheme-len' as too redundant with
6354         'u16-grapheme-next'.
6355         * modules/unigbrk/u16-grapheme-len: Delete file.
6356         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6357         * lib/unigbrk.in.h: Remove prototype for deleted function.
6358         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6359         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6360
6361         Remove module 'u32-grapheme-len' as too redundant with
6362         'u32-grapheme-next'.
6363         * modules/unigbrk/u32-grapheme-len: Delete file.
6364         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6365         * lib/unigbrk.in.h: Remove prototype for deleted function.
6366         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6367         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6368
6369         Suggested by Bruno Haible.
6370
6371 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6372
6373         * unigbrk.in.h: Fix typo: "ben" => "been".
6374         Reported by Bruno Haible.
6375
6376 2011-01-01  Jim Meyering  <meyering@redhat.com>
6377
6378         maint: update almost all copyright ranges to include 2011
6379         Run the new "make update-copyright" rule.
6380
6381 2011-01-01  Jim Meyering  <meyering@redhat.com>
6382
6383         maint: update-copyright: exempt doc/INSTALL*
6384         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6385         since they are generated.  Suggested by Bruno Haible.
6386
6387 2011-01-01  Jim Meyering  <meyering@redhat.com>
6388
6389         maint: refine the update-copyright rule
6390         * Makefile (update-copyright): Also exclude any file that includes
6391         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6392         code that merely generates the comment.
6393
6394 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6395
6396         New module 'u8-grapheme-len'.
6397         * modules/unigbrk/u8-grapheme-len: New file.
6398         * modules/unigbrk/u8-grapheme-len-tests: New file.
6399         * lib/unigbrk.in.h: Add prototype for new function.
6400         * lib/unigbrk/u8-grapheme-len.c: New file.
6401         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6402
6403         New module 'u16-grapheme-len'.
6404         * modules/unigbrk/u16-grapheme-len: New file.
6405         * modules/unigbrk/u16-grapheme-len-tests: New file.
6406         * lib/unigbrk.in.h: Add prototype for new function.
6407         * lib/unigbrk/u16-grapheme-len.c: New file.
6408         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6409
6410         New module 'u32-grapheme-len'.
6411         * modules/unigbrk/u32-grapheme-len: New file.
6412         * modules/unigbrk/u32-grapheme-len-tests: New file.
6413         * lib/unigbrk.in.h: Add prototype for new function.
6414         * lib/unigbrk/u32-grapheme-len.c: New file.
6415         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6416
6417         New module 'u8-grapheme-next'.
6418         * modules/unigbrk/u8-grapheme-next: New file.
6419         * modules/unigbrk/u8-grapheme-next-tests: New file.
6420         * lib/unigbrk.in.h: Add prototype for new function.
6421         * lib/unigbrk/u8-grapheme-next.c: New file.
6422         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6423
6424         New module 'u16-grapheme-next'.
6425         * modules/unigbrk/u16-grapheme-next: New file.
6426         * modules/unigbrk/u16-grapheme-next-tests: New file.
6427         * lib/unigbrk.in.h: Add prototype for new function.
6428         * lib/unigbrk/u16-grapheme-next.c: New file.
6429         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6430
6431         New module 'u32-grapheme-next'.
6432         * modules/unigbrk/u32-grapheme-next: New file.
6433         * modules/unigbrk/u32-grapheme-next-tests: New file.
6434         * lib/unigbrk.in.h: Add prototype for new function.
6435         * lib/unigbrk/u32-grapheme-next.c: New file.
6436         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6437
6438         New module 'u8-grapheme-prev'.
6439         * modules/unigbrk/u8-grapheme-prev: New file.
6440         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6441         * lib/unigbrk.in.h: Add prototype for new function.
6442         * lib/unigbrk/u8-grapheme-prev.c: New file.
6443         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6444
6445         New module 'u16-grapheme-prev'.
6446         * modules/unigbrk/u16-grapheme-prev: New file.
6447         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6448         * lib/unigbrk.in.h: Add prototype for new function.
6449         * lib/unigbrk/u16-grapheme-prev.c: New file.
6450         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6451
6452         New module 'u32-grapheme-prev'.
6453         * modules/unigbrk/u32-grapheme-prev: New file.
6454         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6455         * lib/unigbrk.in.h: Add prototype for new function.
6456         * lib/unigbrk/u32-grapheme-prev.c: New file.
6457         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6458
6459         New module 'u8-grapheme-breaks'.
6460         * modules/unigbrk/u8-grapheme-breaks: New file.
6461         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6462         * lib/unigbrk.in.h: Add prototype for new function.
6463         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6464         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6465
6466         New module 'u16-grapheme-breaks'.
6467         * modules/unigbrk/u16-grapheme-breaks: New file.
6468         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6469         * lib/unigbrk.in.h: Add prototype for new function.
6470         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6471         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6472
6473         New module 'u32-grapheme-breaks'.
6474         * modules/unigbrk/u32-grapheme-breaks: New file.
6475         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6476         * lib/unigbrk.in.h: Add prototype for new function.
6477         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6478         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6479
6480         New module 'ulc-grapheme-breaks'.
6481         * modules/unigbrk/ulc-grapheme-breaks: New file.
6482         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6483         * m4/locale-ar.m4: New file.
6484         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6485         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6486         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6487
6488 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6489
6490         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6491         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6492         modified how this file was generated before I initially submitted
6493         the module, but failed to regenerate it.  This meant that several
6494         of the level2 entries were wrong.
6495         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6496         Remove the division-by-2 that is folded into the table now that
6497         gbrkprop.h has been regenerated properly.  Now -1 entries are
6498         handled correctly.
6499
6500         New module 'unigbrk/uc-gbrk-prop-tests'.
6501         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6502         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6503         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6504         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6505
6506 2011-01-01  Bruno Haible  <bruno@clisp.org>
6507
6508         Avoid use of hexadecimal escapes.
6509         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6510         instead of hexadecimal escapes.
6511
6512 2011-01-01  Jim Meyering  <meyering@redhat.com>
6513
6514         maint: new rule to update copyright year ranges
6515         * Makefile (update-copyright): New rule.
6516
6517         maint: indent with TABs in Makefile
6518         * Makefile: Expand leading sequences of spaces to TABs
6519
6520         version-etc: update the copyright year it reports
6521         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6522
6523 2010-12-31  Bruno Haible  <bruno@clisp.org>
6524
6525         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6526         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6527         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6528         zero.
6529
6530 2010-12-31  Bruno Haible  <bruno@clisp.org>
6531
6532         pwrite: Work around HP-UX 11.11 bug.
6533         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6534         works and set REPLACE_PWRITE if not.
6535         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6536         function.
6537         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6538
6539 2010-12-31  Bruno Haible  <bruno@clisp.org>
6540
6541         pread: Work around HP-UX 11 bugs.
6542         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6543         and set REPLACE_PREAD if not.
6544         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6545
6546 2010-12-31  Eric Blake  <eblake@redhat.com>
6547
6548         nl_langinfo: fix YESEXPR on Irix 6.5
6549         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6550         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6551         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6552         it.
6553
6554 2010-12-31  Bruno Haible  <bruno@clisp.org>
6555
6556         iconv: Document HP-UX 11 bug.
6557         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6558
6559 2010-12-31  Bruno Haible  <bruno@clisp.org>
6560
6561         ldexpl: Fix link error on HP-UX 11.
6562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6563         LDEXPL_LIBM, using $ISNANL_LIBM.
6564
6565 2010-12-31  Eric Blake  <eblake@redhat.com>
6566
6567         ftello: avoid compilation failure with SunStudio c89
6568         * lib/ftello.c (ftello): Use lseek, not llseek.
6569
6570         tests: avoid failing coreutils tests on cygwin
6571         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6572         (create_exe_shims_): Return 0 when skipping.
6573
6574 2010-12-31  Bruno Haible  <bruno@clisp.org>
6575
6576         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6577         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6578
6579 2010-12-31  Bruno Haible  <bruno@clisp.org>
6580
6581         waitpid: Fix link error in C++ mode.
6582         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6583
6584 2010-12-31  Bruno Haible  <bruno@clisp.org>
6585
6586         isnan: Use GCC built-ins when possible.
6587         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6588         __builtin_isnan.
6589         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6590         (isnan): Define using GCC built-ins for GCC >= 4.0.
6591
6592 2010-12-31  Bruno Haible  <bruno@clisp.org>
6593
6594         isnand: Fix mistake.
6595         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6596         __builtin_isnand.
6597
6598 2010-12-31  Bruno Haible  <bruno@clisp.org>
6599
6600         open: Avoid C++ error on HP-UX 11.
6601         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6602
6603 2010-12-31  Bruno Haible  <bruno@clisp.org>
6604
6605         time_r: Add missing declarations on HP-UX 11.
6606         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6607         instead of HAVE_LOCALTIME_R.
6608         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6609         HAVE_LOCALTIME_R always.
6610         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6611         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6612         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6613         HAVE_LOCALTIME_R.
6614         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6615         * doc/posix-functions/localtime_r.texi: Likewise.
6616
6617 2010-12-29  Eric Blake  <eblake@redhat.com>
6618
6619         mountlist: tweak previous commit
6620         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6621         Reported by Paul Eggert.
6622
6623         mountlist: fix local drive detection on cygwin
6624         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6625         that works for cygwin.
6626
6627 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6628
6629         ftoastr, snprintf: ftoastr + snprintf module
6630         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6631         since the snprintf module now should be good enough here.
6632         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6633         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6634         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6635         GNULIB_SNPRINTF only for the test directory, and the latter
6636         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6637         seems to suffice by itself.
6638
6639 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6640
6641         alloca: one step towards thread-safety
6642         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6643         need for a static variable.  All callers changed.  This does not
6644         make the alloca replacement thread-safe, but it's one step.
6645
6646         tests: minor indenting change
6647         * tests/init.sh: Sync from coreutils housekeeping patch
6648         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6649         to keep lines within 80 columns.
6650
6651 2010-12-28  Jim Meyering  <meyering@redhat.com>
6652
6653         regex: don't infloop on persistent failing calloc
6654         * lib/regexec.c (build_trtable): Return failure indication upon
6655         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6656         In glibc, this was fixed for version 2.13:
6657         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6658
6659 2010-12-28  Bruno Haible  <bruno@clisp.org>
6660             Paul Eggert <eggert@cs.ucla.edu>
6661
6662         linkat: Make implementation robust against system behaviour variations.
6663         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6664         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6665         way, and to -2 if it needs a generic runtime test.
6666         * lib/linkat.c (solaris_optimized_link_immediate,
6667         solaris_optimized_link_follow): New functions.
6668         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6669         (check_same_link): Use it.
6670
6671 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6672
6673         New module 'unigbrk/base'.
6674         * modules/unigbrk/base: New file.
6675         * lib/unigbrk.in.h: New file.
6676
6677         New module 'unigbrk/uc-gbrk-prop'.
6678         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6679         * modules/unigbrk/uc-gbrk-prop: New file.
6680         * lib/unigbrk/gbrkprop.h: New file.
6681         * lib/unigbrk/uc-gbrk-prop.c: New file.
6682
6683         New module 'unigbrk/uc-is-grapheme-break'.
6684         * modules/unigbrk/uc-is-grapheme-break: New file.
6685         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6686         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6687         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6688         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6689         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6690
6691         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6692
6693 2010-12-27  Bruno Haible  <bruno@clisp.org>
6694
6695         linkat test: Avoid failure on Solaris 11 2010-11.
6696         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6697
6698 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         utimens: work around glibc rounding bug on more platforms
6701         * lib/utimens.c (fdutimens): Work around rounding bug even if
6702         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6703         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6704
6705 2010-12-27  Bruno Haible  <bruno@clisp.org>
6706
6707         select tests: Improve comments.
6708         * tests/test-select.c (do_select): Add comments.
6709
6710 2010-12-27  Bruno Haible  <bruno@clisp.org>
6711
6712         select tests: Safer way of handling timeout.
6713         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6714         at every invocation.
6715
6716 2010-12-27  Bruno Haible  <bruno@clisp.org>
6717
6718         select tests: Use 'bool' where appropriate.
6719         * tests/test-select.c (connect_to_socket): Change argument type to
6720         'bool'.
6721
6722 2010-12-27  Bruno Haible  <bruno@clisp.org>
6723
6724         select tests: Use existing modules.
6725         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6726         (configure.ac): Don't test for unistd.h.
6727         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6728         declared in <unistd.h>.
6729
6730 2010-12-27  Bruno Haible  <bruno@clisp.org>
6731
6732         mbrtowc: Work around a Solaris 7 bug.
6733         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6734         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6735         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6736         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6737         MBRTOWC_NULL_ARG1_BUG.
6738         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6739         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6740         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6741         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6742
6743 2010-12-27  Jim Meyering  <meyering@redhat.com>
6744
6745         read-file.c: tweak syntax
6746         * lib/read-file.c (fread_file): Remove space after "*" in function
6747         definitions.
6748
6749 2010-12-27  Bruno Haible  <bruno@clisp.org>
6750
6751         times test: Avoid gcc warnings on OSF/1.
6752         * tests/test-times.c (main): Cast printf arguments from clock_t to
6753         'long int'.
6754
6755 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6756
6757         utimens: work around glibc rounding bug on older Linux kernels
6758         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6759         on Linux with a glibc whose utimes might not work, then work
6760         around a longstanding glibc bug involving rounding rather than
6761         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6763
6764 2010-12-26  Bruno Haible  <bruno@clisp.org>
6765
6766         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6767         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6768         _GL_CXXALIAS_SYS.
6769         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6770
6771 2010-12-26  Bruno Haible  <bruno@clisp.org>
6772
6773         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6774         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6775         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6776         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6777         looking for the declaration.
6778         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6779         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6780         problem.
6781         * doc/posix-functions/inet_pton.texi: Likewise.
6782
6783 2010-12-26  Bruno Haible  <bruno@clisp.org>
6784
6785         arpa_inet: Use the common idioms with C++ support.
6786         * lib/arpa_inet.in.h: Include c++defs.h.
6787         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6788         support.
6789         * modules/arpa_inet (Depends-on): Add c++defs.
6790         (Makefile.am): Substitute the contents of c++defs.h.
6791         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6792         * modules/arpa_inet-c++-tests: New file.
6793         * tests/test-arpa_inet-c++.cc: New file.
6794
6795 2010-12-25  Bruno Haible  <bruno@clisp.org>
6796
6797         Fix more C++ link errors on Solaris 8.
6798         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6799         $(LIB_EACCESS).
6800         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6801         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6802         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6803         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6804         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6805
6806 2010-12-25  Bruno Haible  <bruno@clisp.org>
6807
6808         printf-posix: Fix link error when a non-GCC compiler is used.
6809         * lib/stdio.in.h (printf): When not using GCC, override printf
6810         correctly.
6811         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6812
6813 2010-12-25  Bruno Haible  <bruno@clisp.org>
6814
6815         strerror_r-posix: Update doc.
6816         * doc/posix-functions/strerror_r.texi: Update doc about the return
6817         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6818
6819 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6820
6821         utimens: simplify the logic of the previous change
6822         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6823         This should not affect whether the test succeeds or fails.
6824
6825         utimens: configure better on hosts with NFS clock skew
6826         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6827         uses the clock of the local host.  It might use the clock of the
6828         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6830
6831 2010-12-25  Bruno Haible  <bruno@clisp.org>
6832
6833         ptsname test: Avoid failure on Solaris.
6834         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6835         open a pseudo-terminal; don't use BSD-style ptys.
6836         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6837
6838 2010-12-25  Bruno Haible  <bruno@clisp.org>
6839
6840         ptsname: Avoid ERANGE failure on some systems.
6841         * lib/ptsname.c (buffer): Increase size.
6842
6843 2010-12-25  Bruno Haible  <bruno@clisp.org>
6844
6845         rename, renameat: Avoid test failures at NFS mounted locations.
6846         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6847         so that subsequent mkdir calls succeed.
6848
6849 2010-12-25  Bruno Haible  <bruno@clisp.org>
6850
6851         iswblank: Fix C++ link error on Solaris 8.
6852         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6853         _GL_FUNCDECL_SYS.
6854
6855 2010-12-25  Bruno Haible  <bruno@clisp.org>
6856
6857         unistd: Fix C++ link error on Solaris 8.
6858         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6859
6860 2010-12-25  Bruno Haible  <bruno@clisp.org>
6861
6862         readlink doc: Mention an old glibc bug.
6863         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6864
6865 2010-12-25  Bruno Haible  <bruno@clisp.org>
6866
6867         fcntl-h: Fix for use of C++ on glibc systems.
6868         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6869         also on glibc systems in C++ mode.
6870         Reported by Gary V. Vaughan <gary@gnu.org>.
6871
6872 2010-12-25  Bruno Haible  <bruno@clisp.org>
6873
6874         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6875         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6876
6877 2010-12-25  Bruno Haible  <bruno@clisp.org>
6878
6879         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6880         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6881         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6882         test whether truncl works according to ISO C 99 with IEC 60559.
6883         * m4/truncl-ieee.m4: New file.
6884         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6885         m4/signbit.m4.
6886         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6887
6888 2010-12-25  Bruno Haible  <bruno@clisp.org>
6889
6890         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6891         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6892         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6893         test whether ceill works according to ISO C 99 with IEC 60559.
6894         * m4/ceill-ieee.m4: New file.
6895         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6896         m4/signbit.m4.
6897         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6898
6899 2010-12-25  Bruno Haible  <bruno@clisp.org>
6900
6901         Ensure all prerequisites of <wchar.h> are included.
6902         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6903         before <wchar.h>.
6904         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6905         gl_MBRLEN_NUL_RETVAL): Likewise.
6906         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6907         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6908         AC_FUNC_MBRTOWC): Likewise.
6909         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6910         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6911         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6912         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6913         Likewise.
6914         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6915         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6916         (gl_WCHAR_H): Improve comments.
6917         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6918
6919 2010-12-25  Bruno Haible  <bruno@clisp.org>
6920
6921         strtok_r: Fix C syntax error in autoconf macro.
6922         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6923         characters in test program.
6924
6925 2010-12-24  Bruno Haible  <bruno@clisp.org>
6926
6927         ceil, trunc, round: Fix gcc warnings.
6928         * lib/ceil.c (MIN): Undefine before redefining.
6929         * lib/trunc.c (MIN): Likewise.
6930         * lib/round.c (MIN): Likewise.
6931         Include <math.h> first.
6932
6933 2010-12-24  Bruno Haible  <bruno@clisp.org>
6934
6935         select tests: Avoid failures on OSF/1 5.1.
6936         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6937         failure of closing the last socket; it may fail with ECONNRESET.
6938
6939 2010-12-24  Eric Blake  <eblake@redhat.com>
6940
6941         stdint: avoid HP-UX 10.20 preprocessor bug
6942         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6943         than #if.
6944         * tests/test-floor2.c (main): Likewise.
6945         Reported by Peter O'Gorman.
6946
6947         pipe: make obsoletion transition easier
6948         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6949         * modules/pipe (Files): Include revived file.
6950         (Include): Drop reference, to mirror getdate's behavior.
6951
6952 2010-12-24  Bruno Haible  <bruno@clisp.org>
6953
6954         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6955         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6956         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6957         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6958
6959 2010-12-24  Bruno Haible  <bruno@clisp.org>
6960
6961         gethostname: Ensure declaration on NonStop Kernel.
6962         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6963         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6964
6965 2010-12-24  Bruno Haible  <bruno@clisp.org>
6966
6967         sys_select: Ensure all necessary types on NonStop Kernel.
6968         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6969         include <sys/time.h>.
6970         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6971         NonStop Kernel.
6972         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6973
6974 2010-12-24  Bruno Haible  <bruno@clisp.org>
6975
6976         sys_select: Remove unneeded include.
6977         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6978         have <sys/select.h>.
6979
6980 2010-12-24  Bruno Haible  <bruno@clisp.org>
6981
6982         gethostname: Provide a fallback for HOST_NAME_MAX.
6983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6984         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6985         instead.
6986         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6987
6988 2010-12-24  Bruno Haible  <bruno@clisp.org>
6989
6990         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6991         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6992         (SA_RESTART): Likewise.
6993         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6994
6995 2010-12-24  Bruno Haible  <bruno@clisp.org>
6996
6997         signal: Define NSIG.
6998         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6999         * tests/test-signal.c (nsig): New variable.
7000         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7001
7002 2010-12-24  Bruno Haible  <bruno@clisp.org>
7003
7004         rename, renameat: Avoid test failures on OSF/1 5.1.
7005         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7006         alternative error codes.
7007         * tests/test-renameat.c (main): Likewise.
7008
7009 2010-12-24  Bruno Haible  <bruno@clisp.org>
7010
7011         *printf: Detect large precisions bug on Solaris 10/SPARC.
7012         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7013         by Paul Eggert.
7014         * tests/test-snprintf-posix.h (test_function): Add this test code here
7015         too.
7016         * tests/test-sprintf-posix.h (test_function): Likewise.
7017         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7018         * tests/test-vasprintf-posix.c (test_function): Likewise.
7019         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7020         around by gnulib.
7021         * doc/posix-functions/printf.texi: Likewise.
7022         * doc/posix-functions/snprintf.texi: Likewise.
7023         * doc/posix-functions/sprintf.texi: Likewise.
7024         * doc/posix-functions/vfprintf.texi: Likewise.
7025         * doc/posix-functions/vprintf.texi: Likewise.
7026         * doc/posix-functions/vsnprintf.texi: Likewise.
7027         * doc/posix-functions/vsprintf.texi: Likewise.
7028         * doc/posix-functions/dprintf.texi: Undo last commit.
7029         * doc/posix-functions/vdprintf.texi: Likewise.
7030
7031 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7032
7033         tests: port test-fdutimensat.c to Solaris 8
7034         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7035         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7036         On Solaris 8, it fails with errno == ENOSYS, because there is no
7037         futimens (so it can't use the fd), and there is no lutimens (so it
7038         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7039
7040         vsnprintf: make more consistent with snprintf; doc fixes
7041
7042         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7043         the byte count return problem was promoted from the snprintf-posix
7044         to the snprintf module.
7045         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7046         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7047         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7048         * tests/test-snprintf.c (main): Check the byte count returned.
7049         * tests/test-vsnprintf.c (main): Likewise.
7050
7051 2010-12-23  Eric Blake  <eblake@redhat.com>
7052
7053         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7054         * modules/sigpipe (License): Relax license.
7055
7056 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7057
7058         doc: document Solaris printf bug with large float precisions
7059         * doc/posix-functions/dprintf.texi (dprintf):
7060         * doc/posix-functions/fprintf.texi (fprintf):
7061         * doc/posix-functions/printf.texi (printf):
7062         * doc/posix-functions/snprintf.texi (snprintf):
7063         * doc/posix-functions/sprintf.texi (sprintf):
7064         * doc/posix-functions/vdprintf.texi (vdprintf):
7065         * doc/posix-functions/vfprintf.texi (vfprintf):
7066         * doc/posix-functions/vprintf.texi (vprintf):
7067         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7068         * doc/posix-functions/vsprintf.texi (vsprintf):
7069         Mention that these functions mishandle large floating point
7070         precisions on Solaris 10.  The same bug is also present in Solaris
7071         8, and I assume earlier.  This causes "cd gnulib-tests; make
7072         check" to fail on Solaris 8 (and I assume, later) when building
7073         the latest coreutils, in test-vasprintf-posix's call to
7074         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7075         the wide flavors (e.g., wprintf) so this patch just updates the
7076         documentation for the narrow ones.
7077
7078         test-posixtm.c: add two tests
7079         * tests/test-posixtm.c: Add two tests, to highlight the
7080         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7081         around this bug; this is merely to document it.
7082
7083 2010-12-22  Bruno Haible  <bruno@clisp.org>
7084
7085         getlogin_r: Work around portability problem on OSF/1.
7086         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7087         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7088         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7089         test for a truncated result.
7090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7091         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7092         * modules/getlogin_r (Depends-on): Add memchr.
7093         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7094
7095 2010-12-22  Bruno Haible  <bruno@clisp.org>
7096
7097         ptsname: Avoid test failure on OSF/1 5.1.
7098         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7099         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7100         (same_slave): New function.
7101         (main): Use it to compare ptsname's result with the expected file name.
7102
7103 2010-12-22  Bruno Haible  <bruno@clisp.org>
7104
7105         Port extended stdio modules to HP NonStop Kernel.
7106         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7107         macros.
7108         * lib/fbufmode.c: Update comments.
7109         * lib/fflush.c: Likewise.
7110         * lib/fpurge.c: Likewise.
7111         * lib/freadable.c: Likewise.
7112         * lib/freadahead.c: Likewise.
7113         * lib/freading.c: Likewise.
7114         * lib/freadptr.c: Likewise.
7115         * lib/freadseek.c: Likewise.
7116         * lib/fseeko.c: Likewise.
7117         * lib/fseterr.c: Likewise.
7118         * lib/fwritable.c: Likewise.
7119         * lib/fwriting.c: Likewise.
7120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7121
7122 2010-12-22  Bruno Haible  <bruno@clisp.org>
7123
7124         ttyname_r: Work around bug on OSF/1 5.1.
7125         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7126         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7127         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7128         present.
7129         * lib/ttyname_r.c (ttyname_r): Update comments.
7130
7131 2010-12-22  Bruno Haible  <bruno@clisp.org>
7132
7133         round: Implement result sign according to IEEE 754.
7134         * lib/round.c (MIN, MINUS_ZERO): New macros.
7135         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7136         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7137         * tests/test-round-ieee.c (main): Likewise.
7138         * tests/test-roundl-ieee.c (main): Likewise.
7139
7140         trunc: Implement result sign according to IEEE 754.
7141         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7142         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7143         * tests/test-trunc2.c: Include minus-zero.h.
7144         (MINUS_ZERO): New macro.
7145         (trunc_reference): Keep in sync with lib/trunc.c.
7146         * tests/test-truncf2.c: Include minus-zero.h.
7147         (MINUS_ZERO): New macro.
7148         (truncf_reference): Keep in sync with lib/trunc.c.
7149         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7150         * tests/test-trunc-ieee.c (main): Likewise.
7151         * tests/test-truncl-ieee.c (main): Likewise.
7152
7153         ceil: Implement result sign according to IEEE 754.
7154         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7155         (FUNC): Return -0.0 for -1 < x < 0.
7156         * tests/test-ceil2.c: Include minus-zero.h.
7157         (MINUS_ZERO): New macro.
7158         (ceil_reference): Keep in sync with lib/ceil.c.
7159         * tests/test-ceilf2.c: Include minus-zero.h.
7160         (MINUS_ZERO): New macro.
7161         (ceilf_reference): Keep in sync with lib/ceil.c.
7162         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7163         * tests/test-ceil-ieee.c (main): Likewise.
7164         * tests/test-ceill-ieee.c (main): Likewise.
7165
7166         floor: Implement result sign according to IEEE 754.
7167         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7168         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7169         * tests/test-floorf2.c (floorf_reference): Likewise.
7170         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7171         * tests/test-floor-ieee.c (main): Likewise.
7172         * tests/test-floorl-ieee.c (main): Likewise.
7173
7174 2010-12-22  Bruno Haible  <bruno@clisp.org>
7175
7176         getaddrinfo: Update doc.
7177         * doc/posix-functions/gai_strerror.texi: Return type is also different
7178         on AIX and HP-UX.
7179
7180 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7181
7182         getaddrinfo, inet_ntop: Update doc for Solaris.
7183         * doc/posix-functions/gai_strerror.texi: Return type is also an
7184         issue on Solaris 9 and earlier.
7185         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7186         on Solaris 10 and earlier.
7187
7188 2010-12-21  Bruno Haible  <bruno@clisp.org>
7189
7190         New module 'roundl-ieee'.
7191         * modules/roundl-ieee: New file.
7192         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7193         test whether roundl works according to ISO C 99 with IEC 60559.
7194         * m4/roundl-ieee.m4: New file.
7195         * modules/roundl-ieee-tests: New file.
7196         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7197         * tests/test-roundl.c (main): Remove signbit tests.
7198         * modules/roundl-tests (Depends-on): Remove signbit.
7199         * doc/posix-functions/roundl.texi: Mention the new module.
7200
7201 2010-12-21  Bruno Haible  <bruno@clisp.org>
7202
7203         New module 'truncl-ieee'.
7204         * modules/truncl-ieee: New file.
7205         * modules/truncl-ieee-tests: New file.
7206         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7207         * tests/test-truncl.c (main): Remove signbit tests.
7208         * modules/truncl-tests (Depends-on): Remove signbit.
7209         * doc/posix-functions/truncl.texi: Mention the new module.
7210
7211 2010-12-21  Bruno Haible  <bruno@clisp.org>
7212
7213         New module 'ceill-ieee'.
7214         * modules/ceill-ieee: New file.
7215         * modules/ceill-ieee-tests: New file.
7216         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7217         * tests/test-ceill.c (main): Remove signbit tests.
7218         * modules/ceill-tests (Depends-on): Remove signbit.
7219         * doc/posix-functions/ceill.texi: Mention the new module.
7220
7221 2010-12-21  Bruno Haible  <bruno@clisp.org>
7222
7223         New module 'floorl-ieee'.
7224         * modules/floorl-ieee: New file.
7225         * modules/floorl-ieee-tests: New file.
7226         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7227         * tests/test-floorl.c (main): Remove signbit tests.
7228         * modules/floorl-tests (Depends-on): Remove signbit.
7229         * doc/posix-functions/floorl.texi: Mention the new module.
7230
7231 2010-12-21  Bruno Haible  <bruno@clisp.org>
7232
7233         New module 'round-ieee'.
7234         * modules/round-ieee: New file.
7235         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7236         whether round works according to ISO C 99 with IEC 60559.
7237         * m4/round-ieee.m4: New file.
7238         * modules/round-ieee-tests: New file.
7239         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7240         * tests/test-round1.c (main): Remove signbit tests.
7241         * modules/round-tests (Depends-on): Remove 'signbit'.
7242         * doc/posix-functions/round.texi: Mention the new module.
7243
7244 2010-12-21  Bruno Haible  <bruno@clisp.org>
7245
7246         New module 'trunc-ieee'.
7247         * modules/trunc-ieee: New file.
7248         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7249         whether trunc works according to ISO C 99 with IEC 60559.
7250         * m4/trunc-ieee.m4: New file.
7251         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7253         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7254         * modules/trunc-ieee-tests: New file.
7255         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7256         * tests/test-trunc1.c (main): Remove signbit tests.
7257         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7258         * doc/posix-functions/trunc.texi: Mention the new module.
7259
7260 2010-12-21  Bruno Haible  <bruno@clisp.org>
7261
7262         New module 'ceil-ieee'.
7263         * modules/ceil-ieee: New file.
7264         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7265         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7266         ISO C 99 with IEC 60559.
7267         * m4/ceil-ieee.m4: New file.
7268         * modules/ceil (Files): Add lib/ceil.c.
7269         (Depends-on): Add 'float'.
7270         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7271         * lib/math.in.h (ceil): New declaration.
7272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7273         REPLACE_CEIL.
7274         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7275         * modules/ceil-ieee-tests: New file.
7276         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7277         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7278         * doc/posix-functions/ceil.texi: Mention the new module.
7279
7280 2010-12-21  Bruno Haible  <bruno@clisp.org>
7281
7282         New module 'floor-ieee'.
7283         * modules/floor-ieee: New file.
7284         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7285         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7286         ISO C 99 with IEC 60559.
7287         * m4/floor-ieee.m4: New file.
7288         * modules/floor (Files): Add lib/floor.c.
7289         (Depends-on): Add 'float'.
7290         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7291         * lib/math.in.h (floor): New declaration.
7292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7293         REPLACE_FLOOR.
7294         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7295         * modules/floor-ieee-tests: New file.
7296         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7297         * tests/test-math-c++.cc: Check the signature of 'floor'.
7298         * doc/posix-functions/floor.texi: Mention the new module.
7299
7300 2010-12-21  Bruno Haible  <bruno@clisp.org>
7301
7302         New module 'roundf-ieee'.
7303         * modules/roundf-ieee: New file.
7304         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7305         test whether roundf works according to ISO C 99 with IEC 60559.
7306         * m4/roundf-ieee.m4: New file.
7307         * modules/roundf-ieee-tests: New file.
7308         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7309         * tests/test-roundf1.c (main): Remove signbit tests.
7310         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7311         * doc/posix-functions/roundf.texi: Mention the new module.
7312
7313 2010-12-21  Bruno Haible  <bruno@clisp.org>
7314
7315         New module 'truncf-ieee'.
7316         * modules/truncf-ieee: New file.
7317         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7318         test whether truncf works according to ISO C 99 with IEC 60559.
7319         * m4/truncf-ieee.m4: New file.
7320         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7322         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7323         * modules/truncf-ieee-tests: New file.
7324         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7325         * tests/test-truncf1.c (main): Remove signbit tests.
7326         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7327         * doc/posix-functions/truncf.texi: Mention the new module.
7328
7329 2010-12-21  Bruno Haible  <bruno@clisp.org>
7330
7331         New module 'ceilf-ieee'.
7332         * modules/ceilf-ieee: New file.
7333         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7334         test whether ceilf works according to ISO C 99 with IEC 60559.
7335         * m4/ceilf-ieee.m4: New file.
7336         * modules/ceilf-ieee-tests: New file.
7337         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7338         * tests/test-ceilf1.c (main): Remove signbit tests.
7339         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7340         * doc/posix-functions/ceilf.texi: Mention the new module.
7341
7342 2010-12-21  Bruno Haible  <bruno@clisp.org>
7343
7344         New module 'floorf-ieee'.
7345         * modules/floorf-ieee: New file.
7346         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7347         test whether floorf works according to ISO C 99 with IEC 60559.
7348         * m4/floorf-ieee.m4: New file.
7349         * modules/floorf-ieee-tests: New file.
7350         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7351         * tests/test-floorf1.c (main): Remove signbit tests.
7352         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7353         * doc/posix-functions/floorf.texi: Mention the new module.
7354
7355 2010-12-21  Bruno Haible  <bruno@clisp.org>
7356
7357         Support for minus zero in autoconf macros.
7358         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7359         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7360         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7361         * tests/minus-zero.h: Update comments.
7362
7363 2010-12-21  Bruno Haible  <bruno@clisp.org>
7364
7365         Tests for module 'ceil'.
7366         * modules/ceil-tests: New file.
7367         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7368         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7369
7370 2010-12-21  Bruno Haible  <bruno@clisp.org>
7371
7372         Tests for module 'floor'.
7373         * modules/floor-tests: New file.
7374         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7375         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7376
7377 2010-12-21  Bruno Haible  <bruno@clisp.org>
7378
7379         math: Fix indentation.
7380         * lib/math.in.h (floorf): Fix indentation.
7381
7382 2010-12-21  Bruno Haible  <bruno@clisp.org>
7383
7384         Fix cross-compilation guesses on Solaris.
7385         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7386         not match "solaris2.10".
7387         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7388         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7389         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7390
7391 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7394         This fixes a problem observed with the latest coreutils snapshot
7395         that caused a test to fail on Solaris 8.  src/csplit.c's call
7396         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7397         earlier, instead of returning the number of bytes that would have
7398         been generated; this causes csplit to incorrectly report memory
7399         exhaustion.
7400         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7401         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7402         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7403         comments to match.
7404         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7405         Fix typo in matching older versions of Solaris: "solaris2.10"
7406         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7407         only for guessing while cross-compiling.
7408         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7409
7410 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7411
7412         ftoastr: fix comment again
7413         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7415         Also, simplify example a bit by using flags = 0.
7416
7417 2010-12-20  Bruno Haible  <bruno@clisp.org>
7418
7419         round*, trunc*: Update documentation regarding glibc.
7420         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7421         * doc/posix-functions/round.texi: Likewise.
7422         * doc/posix-functions/roundl.texi: Likewise.
7423         * doc/posix-functions/truncf.texi: Likewise.
7424         * doc/posix-functions/trunc.texi: Likewise.
7425         * doc/posix-functions/truncl.texi: Likewise.
7426
7427 2010-12-20  Bruno Haible  <bruno@clisp.org>
7428
7429         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7430         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7431         * doc/posix-functions/round.texi: Likewise.
7432         * doc/posix-functions/roundl.texi: Likewise.
7433
7434 2010-12-20  Bruno Haible  <bruno@clisp.org>
7435
7436         ttyname_r: Add missing declaration on HP-UX 11.
7437         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7438         HAVE_TTYNAME_R.
7439         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7440         declared. Set HAVE_TTYNAME_R always.
7441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7442         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7443         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7444         HAVE_TTYNAME_R.
7445         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7446
7447 2010-12-20  Bruno Haible  <bruno@clisp.org>
7448
7449         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7450         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7451         * doc/posix-functions/getlogin_r.texi: Likewise.
7452         * tests/test-getlogin.c: Include <errno.h>.
7453         (main): Avoid test failure on HP-UX 11.11.
7454         * tests/test-getlogin_r.c (main): Likewise.
7455
7456 2010-12-20  Bruno Haible  <bruno@clisp.org>
7457
7458         getlogin_r: Add missing declaration on HP-UX 11.
7459         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7460         declared also when it exists as a function.
7461         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7462
7463 2010-12-20  Bruno Haible  <bruno@clisp.org>
7464
7465         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7466         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7467         through wcrtomb.
7468
7469 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7470
7471         ftoastr: fix comment
7472         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7473         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7474
7475 2010-12-19  Bruno Haible  <bruno@clisp.org>
7476
7477         isnan: Ensure it is a macro.
7478         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7479         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7480         Solaris.
7481
7482 2010-12-19  Bruno Haible  <bruno@clisp.org>
7483
7484         ldexpl test: Fix link error on OSF/1 5.1.
7485         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7486
7487 2010-12-19  Bruno Haible  <bruno@clisp.org>
7488
7489         wctype: Make it work in C++ mode on OSF/1 5.1.
7490         * lib/wctype.in.h (iswblank): Declare but not define here.
7491         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7492         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7493         * modules/wctype (Files): Add lib/iswblank.c.
7494
7495 2010-12-19  Bruno Haible  <bruno@clisp.org>
7496
7497         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7498         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7499         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7500
7501 2010-12-19  Bruno Haible  <bruno@clisp.org>
7502
7503         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7505         _POSIX_PII_SOCKET.
7506         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7507         * doc/posix-functions/recvfrom.texi: Likewise.
7508         * doc/posix-functions/send.texi: Likewise.
7509         * doc/posix-functions/sendto.texi: Likewise.
7510
7511 2010-12-19  Bruno Haible  <bruno@clisp.org>
7512
7513         tcgetsid: Add missing declaration on OSF/1 5.1.
7514         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7515         HAVE_TCGETSID.
7516         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7517         Don't set HAVE_TCGETSID.
7518         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7519         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7520         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7521         HAVE_TCGETSID.
7522         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7523
7524 2010-12-19  Bruno Haible  <bruno@clisp.org>
7525
7526         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7527         * lib/stdio.in.h: During the include_next statement, let recursive
7528         includes of this file include only the system header file.
7529
7530 2010-12-19  Bruno Haible  <bruno@clisp.org>
7531
7532         iconv_open: Fix regression from 2010-12-04.
7533         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7534         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7535
7536 2010-12-19  Bruno Haible  <bruno@clisp.org>
7537
7538         stdbool test: Avoid a gcc warning.
7539         * tests/test-stdbool.c (main): Fail if e1 is false.
7540         Reported by Jim Meyering.
7541
7542 2010-12-19  Jim Meyering  <meyering@redhat.com>
7543
7544         setenv: restore to working order
7545         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7546         mistakenly removed.
7547         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7548         HAVE_SETENV.
7549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7550         HAVE_SETENV.
7551
7552 2010-12-19  Bruno Haible  <bruno@clisp.org>
7553
7554         Document some different function declarations on OSF/1 5.1.
7555         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7556         * doc/posix-functions/inet_ntop.texi: Likewise.
7557         * doc/posix-functions/gethostname.texi: Likewise.
7558         * lib/unistd.in.h (gethostname): Update comment.
7559
7560 2010-12-19  Bruno Haible  <bruno@clisp.org>
7561
7562         doc: Mention vasprintf-posix module.
7563         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7564         the 'vasprintf-posix' module.
7565         * doc/glibc-functions/vasprintf.texi: Likewise.
7566
7567 2010-12-19  Bruno Haible  <bruno@clisp.org>
7568
7569         unsetenv: Add missing declaration on OSF/1 5.1.
7570         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7571         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7572         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7574         not HAVE_UNSETENV.
7575         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7576         HAVE_UNSETENV.
7577         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7578
7579 2010-12-19  Bruno Haible  <bruno@clisp.org>
7580
7581         setenv: Add missing declaration on OSF/1 5.1.
7582         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7583         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7584         declared. Don't set HAVE_SETENV.
7585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7586         not HAVE_SETENV.
7587         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7588         HAVE_SETENV.
7589         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7590
7591 2010-12-19  Bruno Haible  <bruno@clisp.org>
7592
7593         nl_langinfo tests: Avoid gcc warning.
7594         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7595
7596 2010-12-19  Bruno Haible  <bruno@clisp.org>
7597
7598         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7599         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7600         _GL_CXXALIAS_SYS.
7601
7602 2010-12-19  Bruno Haible  <bruno@clisp.org>
7603
7604         stdbool: Relax test.
7605         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7606         address to 'bool' work in static initializer, for compilers other than
7607         GCC.
7608
7609 2010-12-19  Bruno Haible  <bruno@clisp.org>
7610
7611         ftello: Add missing declaration on OSF/1 5.1.
7612         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7613         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7615         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7616         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7617
7618 2010-12-19  Bruno Haible  <bruno@clisp.org>
7619
7620         fseeko: Add missing declaration on OSF/1 5.1.
7621         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7624         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7625         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7626
7627 2010-12-19  Bruno Haible  <bruno@clisp.org>
7628
7629         fchdir: Add missing declaration on OSF/1 5.1.
7630         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7633         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7634         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7635
7636 2010-12-19  Bruno Haible  <bruno@clisp.org>
7637
7638         relocatable-prog-wrapper: Separate from relocatable-prog.
7639         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7640         uninstall-relocwrapper rule here.
7641         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7642         Reported by Ian Beckwith <ianb@erislabs.net>.
7643
7644 2010-12-19  Bruno Haible  <bruno@clisp.org>
7645
7646         unistr/u8-mbsnlen: Add missing dependency.
7647         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7648         Reported by Ian Beckwith <ianb@erislabs.net>.
7649
7650 2010-12-19  Bruno Haible  <bruno@clisp.org>
7651
7652         iconv: Make it possible again to use this module without 'iconv-h'.
7653         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7654         if it is not defined.
7655         Reported by Ian Beckwith <ianb@erislabs.net>.
7656
7657 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7658
7659         acl: port to Solaris 8 when copying from tmpfs to ufs
7660         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7661         error number.  Problem observed on Solaris 8 with latest
7662         coreutils, with "mv A B", where A is on a tmpfs file system and B
7663         is on a ufs file system.  This caused coreutils' mv/part-symlink
7664         test to fail.
7665
7666         tests: set fail=0 at start
7667         * tests/init.sh (setup_): Move fail=0 initialization here ...
7668         (mktempd_): ... from here, so that tests can rely on fail being
7669         set to 0 initially.  This fixes a problem in coreutils; see:
7670         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7671
7672 2010-12-18  Bruno Haible  <bruno@clisp.org>
7673
7674         memmem-simple: Stylistic changes.
7675         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7676         Fix preprocessor directive indentation.
7677
7678 2010-12-15  Pádraig Brady <P@draigBrady.com>
7679
7680         memmem, memmem-simple: reorganize and expand empty needle check
7681         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7682         functional checks to memmem-simple so that one has a fully functional
7683         memmem by using just this module.
7684         Restrict the performance only check to the memmem module.
7685         Also expand the empty needle check to ensure the correct
7686         pointer is returned, not just a non NULL pointer.
7687         * doc/glibc-functions/memmem.texi: Rearrange the portability
7688         documentation to correlate with the rearranged checks.
7689         Clarify exactly how the memmem and memmem-simple modules
7690         relate to each other.
7691
7692 2010-12-15  Pádraig Brady <P@draigBrady.com>
7693             Bruno Haible  <bruno@clisp.org>
7694
7695         Improve cross-compilation guesses for uClibc.
7696         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7697         that uClibc does not have the glibc bug.
7698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7699         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7700
7701 2010-12-14  Eric Blake  <eblake@redhat.com>
7702
7703         configmake: provide fallbacks for oldest supported autotools
7704         * m4/configmake.m4: New file.
7705         * modules/configmake (Files): Ship it.
7706         (configure.ac): Use it to guarantee fallbacks.
7707
7708 2010-12-13  Pádraig Brady <P@draigBrady.com>
7709
7710         read-file: Improve handling of large files
7711         * lib/read-file.c (fread_file): Minimize realloc()s
7712         for regular files, and better manage sizes around SIZE_MAX.
7713
7714 2010-12-13  Eric Blake  <eblake@redhat.com>
7715
7716         cloexec, fcntl: relax license
7717         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7718         consent from all contributors.
7719         * modules/fcntl (License): Likewise.
7720
7721 2010-12-10  Bruno Haible  <bruno@clisp.org>
7722
7723         Tests for module 'pipe-posix'.
7724         * modules/pipe-posix-tests: New file.
7725         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7726
7727 2010-12-10  Bruno Haible  <bruno@clisp.org>
7728
7729         pipe-posix: Make it work in C++ mode.
7730         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7731         (pipe): Use common idiom, not a macro definition.
7732         * lib/pipe.c: New file.
7733         * m4/pipe.m4: New file.
7734         * modules/pipe-posix (Description): Enhance.
7735         (Files): Add lib/pipe.c, m4/pipe.m4.
7736         (configure.ac): Invoke gl_FUNC_PIPE.
7737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7738         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7739         * tests/test-unistd-c++.cc: Check the signature of pipe.
7740
7741 2010-12-10  Bruno Haible  <bruno@clisp.org>
7742
7743         Rename module 'pipe' to 'spawn-pipe'.
7744         * modules/spawn-pipe: New file, renamed from modules/pipe.
7745         (Files, configure.ac, Makefile.am): Update.
7746         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7747         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7748         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7749         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7750         "spawn-pipe.h" instead of "pipe.h".
7751         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7752         to gl_SPAWN_PIPE.
7753         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7754         (Files, Makefile.am): Update.
7755         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7756         Update.
7757         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7758         Include "spawn-pipe.h" instead of "pipe.h".
7759         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7760         * lib/javacomp.c: Likewise.
7761         * lib/javaversion.c: Likewise.
7762         * lib/pipe-filter-gi.c: Likewise.
7763         * lib/pipe-filter-ii.c: Likewise.
7764         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7765         * modules/javacomp (Depends-on): Likewise.
7766         * modules/javaversion (Depends-on): Likewise.
7767         * modules/pipe-filter-gi (Depends-on): Likewise.
7768         * modules/pipe-filter-ii (Depends-on): Likewise.
7769         * MODULES.html.sh (Executing programs): Update.
7770         * NEWS: Mention the change.
7771
7772 2010-12-10  Eric Blake  <eblake@redhat.com>
7773
7774         pipe-posix: new module
7775         * modules/pipe-posix: New file.
7776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7777         (gl_UNISTD_H): Check for declaration.
7778         * modules/unistd (Makefile.am): Substitute it.
7779         * lib/unistd.in.h (pipe): Provide it for mingw.
7780         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7781         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7782
7783 2010-12-07  Bruno Haible  <bruno@clisp.org>
7784
7785         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7786         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7787         u8_strcmp_gnu.
7788         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7789
7790 2010-12-06  Bruno Haible  <bruno@clisp.org>
7791
7792         Update internal documentation.
7793         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7794
7795 2010-12-04  Bruno Haible  <bruno@clisp.org>
7796
7797         Put more information about failed tests into the test return codes.
7798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7799         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7800         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7801         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7802         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7803         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7804         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7805         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7806         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7809         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7810         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7811         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7812         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7813         returns a bit mask.
7814         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7815         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7816         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7817         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7818         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7819         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7820         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7822         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7823         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7824         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7825         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7826         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7828         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7829         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7830         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7831         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7832         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7833         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7834         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7835         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7836         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7837         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7838         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7839         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7840         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7841         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7842         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7843         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7844         gl_PRINTF_PRECISION): Likewise.
7845         * m4/regex.m4 (gl_REGEX): Likewise.
7846         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7847         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7849         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7852         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7853         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7854         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7855         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7856         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7857         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7859         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7860         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7861         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7862         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7863         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7865         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7866         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7867         enumerated value.
7868         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7869
7870 2010-12-04  Bruno Haible  <bruno@clisp.org>
7871
7872         Update for Solaris 11 2010-11.
7873         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7874         Express, released in November 2010.
7875
7876 2010-12-04  Bruno Haible  <bruno@clisp.org>
7877
7878         nproc: Relax license.
7879         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7880         and Paul Eggert.
7881         Requested by Ludovic Courtès <ludo@gnu.org>.
7882
7883 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7884
7885         utimecmp: fine-grained src to nearby coarse-grained dest
7886
7887         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7888         and the source is on a file system with higher-resolution time
7889         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7890         not work, and the time stamps are close together, the algorithm to
7891         determine the exact resolution from the read-back mtime was buggy:
7892         it had a "!=" where it should have had an "==".  This bug has been
7893         in the code ever since it was introduced to gnulib.
7894         Problem reported by Dan Jacobson in
7895         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7896
7897 2010-11-30  Bruno Haible  <bruno@clisp.org>
7898
7899         strerror_r-posix: Fix autoconf test.
7900         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7901
7902 2010-11-28  Bruno Haible  <bruno@clisp.org>
7903             Paul Eggert  <eggert@cs.ucla.edu>
7904
7905         Tests for module 'getdomainname'.
7906         * modules/getdomainname-tests: New file.
7907         * tests/test-getdomainname.c: New file, based on
7908         tests/test-gethostname.c.
7909
7910 2010-11-28  Bruno Haible  <bruno@clisp.org>
7911             Paul Eggert  <eggert@cs.ucla.edu>
7912
7913         getdomainname: Use the system function when possible.
7914         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7915         (getdomainname): Replace if needed. Provide the declaration if it is
7916         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7917         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7918         (getdomainname): When the system has getdomainname, call the system
7919         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7920         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7921         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7922         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7923         the function if its second argument is of type 'int' or if it is found
7924         in libnsl.
7925         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7926         <sys/systeminfo.h> and sysinfo().
7927         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7929         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7930         HAVE_GETDOMAINNAME.
7931         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7932         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7933         * doc/glibc-functions/getdomainname.texi: Document the problems with
7934         the getdomainname declaration.
7935
7936 2010-11-28  Bruno Haible  <bruno@clisp.org>
7937
7938         sys_socket: Ensure ss_family field on AIX.
7939         * lib/sys_socket.in.h (ss_family): New macro definition.
7940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7941         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7942         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7943         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7944         * modules/sys_socket (Makefile.am): Substitute
7945         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7946         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7947
7948 2010-11-27  Bruno Haible  <bruno@clisp.org>
7949
7950         readline: Improve configure output.
7951         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7952         "checking for readline..." result understandable.
7953
7954 2010-11-27  Bruno Haible  <bruno@clisp.org>
7955
7956         *printf-posix: Detect a bug on Solaris 10/x86.
7957         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7958         for floating-point output.
7959         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7960         directive.
7961         * tests/test-snprintf-posix.h (test_function): Likewise.
7962         * tests/test-sprintf-posix.h (test_function): Likewise.
7963         * tests/test-vasprintf-posix.c (test_function): Likewise.
7964         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7965         * doc/posix-functions/printf.texi: Likewise.
7966         * doc/posix-functions/snprintf.texi: Likewise.
7967         * doc/posix-functions/sprintf.texi: Likewise.
7968         * doc/posix-functions/vfprintf.texi: Likewise.
7969         * doc/posix-functions/vprintf.texi: Likewise.
7970         * doc/posix-functions/vsnprintf.texi: Likewise.
7971         * doc/posix-functions/vsprintf.texi: Likewise.
7972         * doc/glibc-functions/obstack_printf.texi: Likewise.
7973         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7974
7975 2010-11-27  Bruno Haible  <bruno@clisp.org>
7976
7977         Fix link error when module libunistring-optional is in use.
7978         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7979         * modules/striconveha-tests (Makefile.am): Likewise.
7980
7981 2010-11-27  Bruno Haible  <bruno@clisp.org>
7982
7983         regex: Mention link dependencies.
7984         * modules/regex (Link): New section.
7985         * modules/rpmatch (Link): Likewise.
7986         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7987
7988 2010-11-27  Bruno Haible  <bruno@clisp.org>
7989
7990         ftoastr: Fix compilation error on Solaris.
7991         * lib/ftoastr.c: Include <config.h>.
7992
7993 2010-11-27  Bruno Haible  <bruno@clisp.org>
7994
7995         getloadavg: Update documentation.
7996         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7997
7998 2010-11-27  Bruno Haible  <bruno@clisp.org>
7999
8000         sys_socket: Fix test whether the functions are declared.
8001         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8002         not <sys/select.h>.
8003
8004 2010-11-27  Bruno Haible  <bruno@clisp.org>
8005
8006         getpass: Make sure to get system declaration on some platforms.
8007         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8008         gl_USE_SYSTEM_EXTENSIONS.
8009         * modules/getpass (Depends-on): Add extensions.
8010
8011 2010-11-26  Bruno Haible  <bruno@clisp.org>
8012
8013         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8014         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8015         'iconv' module is present.
8016         (ICONV_CONST): New macro.
8017         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8018         ICONV_CONST.
8019         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8020         set ICONV_CONST.
8021         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8022         here.
8023         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8024         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8025         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8026         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8027         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8028         present.
8029
8030 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8031
8032         ftoastr: comment fix
8033         * lib/ftoastr.c: "little" -> "little or no" in comment
8034
8035 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         stdint: port to GCC 4.3 + OSX + Octave
8038         On this platform, stdint.h is buggy and defines int64_t to long
8039         long int.  The replacement defined it to long int, causing
8040         problems with C++ style name mangling.  Instead, trust the system
8041         definition if INT64_MAX is defined, and likewise for the unsigned
8042         variant.   Problem reported by Jarno Rajahalme in
8043         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8044         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8045         and don't mess with int64_t and INT64_MAX in this case.
8046         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8047
8048 2010-11-24  Bruno Haible  <bruno@clisp.org>
8049
8050         doc: Corrections regarding MacOS X 10.4 and 10.5.
8051         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8052         MacOS X.
8053         Reported by Simon Josefsson.
8054
8055 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8056
8057         Uninstall ".bin" files installed by relocwrapper.
8058         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8059         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8060         unless it is already there.
8061
8062 2010-11-21  Bruno Haible  <bruno@clisp.org>
8063
8064         Update for NetBSD 5.0.
8065         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8066         NetBSD; the test fails on NetBSD 5.0.
8067         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8068         about NetBSD.
8069
8070 2010-11-21  Bruno Haible  <bruno@clisp.org>
8071
8072         Update for HP-UX 11.23 and HP-UX 11.31.
8073         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8074         HP-UX.
8075
8076 2010-11-21  Bruno Haible  <bruno@clisp.org>
8077
8078         Update for MacOS X 10.5.
8079         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8080         MacOS X; the test fails on MacOS X 10.5.8.
8081         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8082         about MacOS X.
8083
8084 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8085
8086         bootstrap: add bootstrap_sync option.
8087         See discussion at
8088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8090         * build-aux/bootstrap: Accept --bootstrap-sync to update
8091         bootstrap if it is not identical to the local gnulib's
8092         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8093         enable this by default.  Accept --no-bootstrap-sync to disable
8094         it.
8095
8096 2010-11-20  Bruno Haible  <bruno@clisp.org>
8097
8098         Ensure that <features.h> is included before __GLIBC__ is tested.
8099         * lib/printf-parse.h: Include <features.h>.
8100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8101         Reported by Mike Frysinger <vapier@gentoo.org>.
8102
8103         Ensure that <features.h> is included before __GLIBC__ is tested.
8104         * lib/wchar.in.h: Include <features.h>.
8105         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8106         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8107         Reported by Mike Frysinger <vapier@gentoo.org>.
8108
8109         Ensure that <features.h> is included before __GLIBC__ is tested.
8110         * lib/arpa_inet.in.h: Include <features.h>.
8111         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8112         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8113         Reported by Mike Frysinger <vapier@gentoo.org>.
8114
8115         Ensure that <features.h> is included before __GLIBC__ is tested.
8116         * build-aux/link-warning.h: Include <features.h>.
8117         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8118         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8119         Reported by Mike Frysinger <vapier@gentoo.org>.
8120
8121         Ensure that <features.h> is included before __GLIBC__ is tested.
8122         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8123         Reported by Mike Frysinger <vapier@gentoo.org>.
8124
8125 2010-11-20  Bruno Haible  <bruno@clisp.org>
8126
8127         memmem: Fix autoconf test.
8128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8129
8130 2010-11-20  Bruno Haible  <bruno@clisp.org>
8131
8132         Port to uClibc.
8133         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8134         * lib/fcntl.in.h: Likewise.
8135         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8136         * lib/mbrtowc.c (mbrtowc): Likewise.
8137         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8138         * lib/strerror_r.c: Likewise.
8139         * lib/unistr/u8-strnlen.c: Likewise.
8140         * lib/vasnprintf.c (decimal_point_char): Likewise.
8141         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8142         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8143         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8144         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8145         * tests/test-sigaction.c (handler, main): Likewise.
8146         * lib/freading.h: Treat uClibc like a non-glibc platform.
8147         * lib/freading.c: Likewise.
8148         * lib/gettext.h: Likewise.
8149         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8150         Likewise.
8151         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8152         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8153         * lib/propername.c (proper_name_utf8): Likewise.
8154         * lib/spawn.in.h: Likewise.
8155         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8156         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8157         mem_cd_iconveh_internal): Likewise.
8158         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8159         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8160         strstr, strcasestr): Likewise.
8161         * lib/unicodeio.c (unicode_to_mb): Likewise.
8162         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8163         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8164         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8165         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8166         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8167         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8168         * lib/unistr/u8-stpncpy.c: Likewise.
8169         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8170         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8171         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8172         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8173         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8174         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8175         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8178         Likewise.
8179         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8180         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8181         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8182         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8183         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8184         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8185         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8186         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8187         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8188         * tests/test-striconveha.c (main): Likewise.
8189         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8190         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8191         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8192         * doc/posix-functions/getline.texi: Likewise.
8193         Reported by Mike Frysinger <vapier@gentoo.org>.
8194
8195 2010-11-20  Bruno Haible  <bruno@clisp.org>
8196
8197         nproc: Fix condition.
8198         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8199         HAVE_PTHREAD_AFFINITY_NP.
8200
8201 2010-11-20  Bruno Haible  <bruno@clisp.org>
8202
8203         Fix a comment.
8204         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8205
8206 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8207
8208         ftoastr: don't assume snprintf
8209         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8210         Implement a subset of snprintf here, by using sprintf safely.
8211         * modules/ftoastr (Depends-on): Remove snprintf.
8212
8213 2010-11-19  Jim Meyering  <meyering@redhat.com>
8214
8215         test-rename.h: fix compilation failure
8216         * tests/test-rename.h (test_rename): Add omitted "}".
8217
8218 2010-11-17  Jim Meyering  <meyering@redhat.com>
8219
8220         maint.mk: add a URL discussing the no-@acronym policy
8221         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8222
8223 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8224
8225         ftoastr: depend on snprintf, improve comments
8226         * lib/ftoastr.c: Also mention Loitsch's draft.
8227         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8228         needed in the current implementation, but it might simplify
8229         speeding up the code later.
8230         * modules/ftoastr: Depend on snprintf; this improves portability.
8231         Suggested by Bruno Haible in the same email.
8232
8233         ftoastr: port to hosts lacking strtof and strtold
8234         Problem reported by Bruno Haible in
8235         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8236         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8237         environment and strtold (and presumably strtof) are not available.
8238         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8239         (configure.ac): Require gl_C99_STRTOLD.
8240
8241 2010-11-18  Bruno Haible  <bruno@clisp.org>
8242
8243         c-strtold: Avoid link error on AIX 7.
8244         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8245         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8246         (gl_C_STRTOLD): Test whether strtold_l exists.
8247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8248
8249 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8250
8251         intprops: new macro INT_BITS_STRLEN_BOUND
8252         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8253         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8254         not exposed.  Also, it uses a slightly tighter bound than before;
8255         though this makes no practical difference, we might as well be as
8256         tight as we easily can.
8257
8258         ftoastr: new module, for lossless conversion of floats to short strings
8259         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8260         * modules/ftoastr: New files.
8261
8262 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         bootstrap: port to Solaris sed
8265         * build-aux/bootstrap (get_version): Port to Solaris sed.
8266         See Ralf Wildenhues's note in
8267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8268
8269 2010-11-14  Jim Meyering  <meyering@redhat.com>
8270
8271         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8272         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8273         and move definition closer to sole use.
8274
8275 2010-11-13  Jim Meyering  <meyering@redhat.com>
8276
8277         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8278         Now we require at least autoconf-2.59, which means the work-around
8279         is no longer needed.
8280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8281         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8282         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8283         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8284         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8285
8286 2010-11-13  Bruno Haible  <bruno@clisp.org>
8287
8288         rename, renameat: Avoid test failures at NFS mounted locations.
8289         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8290         functions.
8291         (test_rename): Use assert_nonexistent.
8292         * tests/test-rename.c: Include <dirent.h>.
8293         * tests/test-renameat.c: Likewise.
8294         Reported by Gary V. Vaughan <gary@gnu.org>.
8295
8296         rename, renameat: Document Linux bug with NFS
8297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8298         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8299         * doc/posix-functions/renameat.texi: Likewise.
8300         Suggested by Eric Blake.
8301
8302 2010-11-13  Bruno Haible  <bruno@clisp.org>
8303
8304         rename test: Add comments.
8305         * tests/test-rename.h (test_rename): Add structure and comments.
8306
8307 2010-11-13  Eric Blake  <eblake@redhat.com>
8308
8309         maintainer-makefile: cover a few more files
8310         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8311         scripts generated within C files, for libvirt.
8312
8313 2010-11-13  Bruno Haible  <bruno@clisp.org>
8314
8315         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8316         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8317         character, return the number of bytes that belong together, not always
8318         1.
8319         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8320         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8321         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8322         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8323         number of bytes of an invalid character.
8324         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8325         (main): Invoke it.
8326         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8327         results.
8328         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8329         malformed byte sequences.
8330         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8331         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8332         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8333         Reported by Ben Pfaff and Paolo Bonzini.
8334
8335 2010-11-13  Bruno Haible  <bruno@clisp.org>
8336
8337         openat: Work around glibc bug with fchownat() and empty file names.
8338         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8339         (gl_FUNC_FCHOWNAT): Invoke it.
8340         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8341         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8342         Reported by Gary V. Vaughan <gary@gnu.org>.
8343
8344 2010-11-13  Bruno Haible  <bruno@clisp.org>
8345
8346         openat: Ensure autoconf macro ordering.
8347         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8348         gl_USE_SYSTEM_EXTENSIONS.
8349         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8350
8351 2010-11-13  Bruno Haible  <bruno@clisp.org>
8352
8353         Update comments.
8354         * lib/unistr/u8-check.c: Update file name in comments.
8355         * lib/unistr/u8-mblen.c: Likewise.
8356         * lib/unistr/u8-prev.c: Likewise.
8357         * lib/unistr/u8-strmblen.c: Likewise.
8358         * lib/unistr/u8-strmbtouc.c: Likewise.
8359
8360 2010-11-13  Jim Meyering  <meyering@redhat.com>
8361
8362         tests: avoid test failure on Solaris 10 due to lack of PATH export
8363         * tests/test-update-copyright.sh: Don't forget to export PATH.
8364
8365         init.sh: ensure that IFS is defined, just in case...
8366         * tests/init.sh (setup_): Ensure that IFS is defined,
8367         so that saving and restoring it works as expected.  This
8368         appears to be useful at least for an old version of dash
8369         from a long time ago (RH 6).  See here for details:
8370         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8371
8372         maint.mk: tighten "test a == b" check
8373         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8374         test to files that contain something like #!/bin/sh.
8375         Without this, coreutils would get two false positives in
8376         the comments of C source files.
8377
8378 2010-11-12  Eric Blake  <eblake@redhat.com>
8379
8380         bootstrap: fix typo in previous attempt
8381         * build-aux/bootstrap (buildreq): Correct the grouping.
8382         Reported by Paul Eggert.
8383
8384         maintainer-makefile: prohibit test x == x
8385         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8386         Based on a report by Matthias Bolte.
8387
8388         bootstrap: allow FreeBSD gzip
8389         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8390         which has no '.' and goes to stderr.
8391         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8392         Reported by Matthias Bolte.
8393
8394         maintainer-makefile: check for i18n setup
8395         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8396         will likely work.
8397
8398 2010-11-12  Bruno Haible  <bruno@clisp.org>
8399
8400         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8401         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8402         * lib/nanosleep.c (nanosleep): Likewise.
8403
8404 2010-11-11  Bruno Haible  <bruno@clisp.org>
8405
8406         fcntl-h: Fix for use of C++ on glibc systems.
8407         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8408         also on glibc systems in C++ mode.
8409         Reported by Gary V. Vaughan <gary@gnu.org>.
8410
8411 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8412
8413         mknod: avoid false failure with dash
8414         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8415
8416 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8417
8418         unlink: Fix "is it should" typo in diagnostic.
8419         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8421
8422 2010-11-11  Bruno Haible  <bruno@clisp.org>
8423
8424         Tests for module 'strerror_r-posix'.
8425         * modules/strerror_r-posix-tests: New file.
8426         * tests/test-strerror_r.c: New file.
8427         * tests/test-string-c++.cc: Check the signature of strerror_r.
8428
8429         New module 'strerror_r-posix'.
8430         * lib/string.in.h (strerror_r): New declaration.
8431         * lib/strerror_r.c: New file.
8432         * m4/strerror_r.m4: New file.
8433         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8434         of strerror_r.
8435         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8436         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8437         * modules/strerror_r-posix: New file.
8438         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8439         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8440         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8441         portability problems.
8442
8443 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8444
8445         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8446         line is also considered for output. Quoted function name in shell
8447         command, so temporary files for functions like MyClass::operator()
8448         are removed correctly without errors.
8449
8450 2010-11-09  Bruno Haible  <bruno@clisp.org>
8451
8452         * doc/posix-functions/strerror.texi: List more failing platforms.
8453
8454         * doc/posix-functions/strerror.texi: Add a comment.
8455
8456 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8457
8458         fdopendir: fix bug on MacOS X when low on file descriptors
8459
8460         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8461         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8462         All callers changed.
8463         (fdopendir): Invoke save_cwd at the top level, not after using
8464         multiple dup() calls to use up file descriptors.  Then retry
8465         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8466         less than the maximum number of open file descriptors, because
8467         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8468         on Mac OS X 10.6.4 for tar 1.24
8469         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8470         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8471         and for tar 1.25
8472         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8473
8474 2010-11-07  Bruno Haible  <bruno@clisp.org>
8475
8476         vasnprintf: Support I flag on glibc systems.
8477         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8478         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8479         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8480         snprintf function.
8481         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8482         glibc systems.
8483         * tests/test-vasnprintf-posix3.c: New file.
8484         * modules/vasnprintf-posix-tests (Files): Add it.
8485         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8486
8487 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8488
8489         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8490         * MODULES.html.sh: For compiler warnings, use name
8491         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8492
8493 2010-11-05  Eric Blake  <eblake@redhat.com>
8494
8495         ceil, floor: avoid spurious failure with icc
8496         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8497         [denormals-as-zero] when optimizing without -mieee-fp option.
8498         * tests/test-floorf2.c (floorf_reference): Likewise.
8499         * tests/test-ceilf1.c (dummy): New function.
8500         (main): Use it to outsmart icc's optimization.
8501         * tests/test-floorf1.c (dummy, main): Likewise.
8502
8503         tests: require working signbit
8504         * modules/ceilf-tests (Depends-on): Add signbit.
8505         * modules/ceill-tests (Depends-on): Likewise.
8506         * modules/floorf-tests (Depends-on): Likewise.
8507         * modules/floorl-tests (Depends-on): Likewise.
8508         * modules/round-tests (Depends-on): Likewise.
8509         * modules/roundf-tests (Depends-on): Likewise.
8510         * modules/roundl-tests (Depends-on): Likewise.
8511         * modules/trunc-tests (Depends-on): Likewise.
8512         * modules/truncf-tests (Depends-on): Likewise.
8513         * modules/truncl-tests (Depends-on): Likewise.
8514
8515         strtod: work around icc bug
8516         * lib/strtod.c (minus_zero): Define to working value.
8517         (strtod): Use it to avoid icc bug.
8518
8519         copysign: enhance tests
8520         * modules/copysign-tests (Files): Add minus-zero.h.
8521         * tests/test-copysign.c (main): Also test zeros.
8522
8523 2010-11-04  Eric Blake  <eblake@redhat.com>
8524
8525         ceil, floor, round, trunc: enhance tests of -0
8526         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8527         * tests/test-ceill.c (main): Likewise.
8528         * tests/test-floorf1.c (main): Likewise.
8529         * tests/test-floorl.c (main): Likewise.
8530         * tests/test-round1.c (main): Likewise.
8531         * tests/test-roundf1.c (main): Likewise.
8532         * tests/test-roundl.c (main): Likewise.
8533         * tests/test-trunc1.c (main): Likewise.
8534         * tests/test-truncf1.c (main): Likewise.
8535         * tests/test-truncl.c (main): Likewise.
8536
8537 2010-11-04  Eric Blake  <eblake@redhat.com>
8538
8539         frexp, tests: work around ICC bug with -zero
8540         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8541         works with more compilers.
8542         * tests/minus-zero.h: New file.
8543         * modules/ceilf-tests (Files): Include it.
8544         * modules/ceill-tests (Files): Likewise.
8545         * modules/floorf-tests (Files): Likewise.
8546         * modules/floorl-tests (Files): Likewise.
8547         * modules/frexp-nolibm-tests (Files): Likewise.
8548         * modules/frexp-tests (Files): Likewise.
8549         * modules/frexpl-nolibm-tests (Files): Likewise.
8550         * modules/frexpl-tests (Files): Likewise.
8551         * modules/isnan-tests (Files): Likewise.
8552         * modules/isnand-nolibm-tests (Files): Likewise.
8553         * modules/isnand-tests (Files): Likewise.
8554         * modules/isnanf-nolibm-tests (Files): Likewise.
8555         * modules/isnanf-tests (Files): Likewise.
8556         * modules/isnanl-nolibm-tests (Files): Likewise.
8557         * modules/isnanl-tests (Files): Likewise.
8558         * modules/round-tests (Files): Likewise.
8559         * modules/roundf-tests (Files): Likewise.
8560         * modules/roundl-tests (Files): Likewise.
8561         * modules/ldexpl-tests (Files): Likewise.
8562         * modules/signbit-tests (Files): Likewise.
8563         * modules/snprintf-posix-tests (Files): Likewise.
8564         * modules/sprintf-posix-tests (Files): Likewise.
8565         * modules/strtod-tests (Files): Likewise.
8566         * modules/trunc-tests (Files): Likewise.
8567         * modules/truncf-tests (Files): Likewise.
8568         * modules/truncl-tests (Files): Likewise.
8569         * modules/vsnprintf-posix-tests (Files): Likewise.
8570         * modules/vsprintf-posix-tests (Files): Likewise.
8571         * modules/vasnprintf-posix-tests (Files): Likewise.
8572         * modules/vasprintf-posix-tests (Files): Likewise.
8573         * tests/test-ceilf1.c (main): Use it.
8574         * tests/test-ceill.c (main): Likewise.
8575         * tests/test-floorf1.c (main): Likewise.
8576         * tests/test-floorl.c (main): Likewise.
8577         * tests/test-frexp.c (main): Likewise.
8578         * tests/test-frexpl.c (main): Likewise.
8579         * tests/test-isnan.c (main): Likewise.
8580         * tests/test-isnand.h (main): Likewise.
8581         * tests/test-isnanf.h (main): Likewise.
8582         * tests/test-isnanl.h (main): Likewise.
8583         * tests/test-ldexpl.c (main): Likewise.
8584         * tests/test-round.c (main): Likewise.
8585         * tests/test-roundf.c (main): Likewise.
8586         * tests/test-roundl.c (main): Likewise.
8587         * tests/test-signbit.c (test_signbitf, test_signbitd)
8588         (test_signbitl): Likewise.
8589         * tests/test-snprintf-posix.h (test_function): Likewise.
8590         * tests/test-sprintf-posix.h (test_function): Likewise.
8591         * tests/test-strtod.c (main): Likewise.
8592         * tests/test-trunc1.c (main): Likewise.
8593         * tests/test-truncf1.c (main): Likewise.
8594         * tests/test-truncl.c (main): Likewise.
8595
8596         isnanl: work around icc bug
8597         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8598
8599 2010-11-03  Eric Blake  <eblake@redhat.com>
8600
8601         tests: fix compiler warnings
8602         * tests/test-getopt.h (test_getopt): Fix condition.
8603         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8604         * tests/test-pipe2.c (main): Likewise.
8605         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8606
8607         utimens: fix broken m4 test
8608         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8609
8610 2010-10-28  Bruno Haible  <bruno@clisp.org>
8611
8612         posix_spawn*, getdtablesize: Relax license.
8613         * modules/posix_spawn (License): Change to LGPLv2+.
8614         * modules/posix_spawnp (License): Likewise.
8615         * modules/posix_spawn-internal (License): Likewise.
8616         * modules/posix_spawnattr_init (License): Likewise.
8617         * modules/posix_spawnattr_getflags (License): Likewise.
8618         * modules/posix_spawnattr_setflags (License): Likewise.
8619         * modules/posix_spawnattr_getpgroup (License): Likewise.
8620         * modules/posix_spawnattr_setpgroup (License): Likewise.
8621         * modules/posix_spawnattr_getschedparam (License): Likewise.
8622         * modules/posix_spawnattr_setschedparam (License): Likewise.
8623         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8624         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8625         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8626         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8627         * modules/posix_spawnattr_getsigmask (License): Likewise.
8628         * modules/posix_spawnattr_setsigmask (License): Likewise.
8629         * modules/posix_spawnattr_destroy (License): Likewise.
8630         * modules/posix_spawn_file_actions_init (License): Likewise.
8631         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8632         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8633         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8634         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8635         * modules/getdtablesize (License): Likewise.
8636         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8637
8638 2010-10-26  Bruno Haible  <bruno@clisp.org>
8639
8640         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8641         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8642         Cygwin and mingw.
8643         Suggested by Eric Blake.
8644
8645 2010-10-26  Bruno Haible  <bruno@clisp.org>
8646
8647         stdio: Work around compilation error due to renameat() on Solaris 10.
8648         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8649         * lib/renameat.c: Don't include <unistd.h> here.
8650         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8651         Reported by Paul Eggert and Eric Blake.
8652
8653 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8654
8655         renameat: port to Solaris 10, which declares renameat in unistd.h
8656
8657         * lib/renameat.c: Include unistd.h before stdio.h, because
8658         Solaris 10 declares renameat in unistd.h.  Problem encountered
8659         when building GNU tar 1.24 on Solaris 10.
8660
8661 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8662
8663         fdopendir: fix C89 compilation
8664         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8665         compilers.
8666
8667 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8668
8669         inttostr: simplify by removing unnecessary redundancy
8670         * lib/anytostr.c: Don't include verify.h.
8671         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8672         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8673         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8674         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8675         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8676         Likewise.
8677         * modules/inttostr (Depends-on): Remove 'verify'.
8678
8679 2010-10-23  Bruno Haible  <bruno@clisp.org>
8680
8681         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8682         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8683         Reported by Eric Blake.
8684
8685 2010-10-23  Bruno Haible  <bruno@clisp.org>
8686
8687         Tests: Fix LOCALE_JA on MirBSD 10.
8688         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8689         to an UTF-8 locale.
8690         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8691         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8692         Reported by Eric Blake.
8693
8694 2010-10-21  Bruno Haible  <bruno@clisp.org>
8695
8696         nl_langinfo test: Avoid test failure on NetBSD 5.
8697         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8698         Reported by Eric Blake.
8699
8700 2010-10-21  Eric Blake  <eblake@redhat.com>
8701
8702         c-stack: work around libsigsegv 2.8 bug
8703         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8704         overflow on at least PowerPC64.
8705
8706 2010-10-17  Bruno Haible  <bruno@clisp.org>
8707
8708         userspec: Drop redundant file.
8709         * modules/userspec (Files): Remove lib/inttostr.h.
8710
8711 2010-10-17  Bruno Haible  <bruno@clisp.org>
8712
8713         nl_langinfo tests: Silence some warnings.
8714         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8715         Reported by Jim Meyering.
8716
8717 2010-10-17  Bruno Haible  <bruno@clisp.org>
8718
8719         Make use of GCC's attribute __alloc_size__.
8720         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8721         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8722         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8723         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8724         __alloc_size__.
8725         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8726         Suggested by Jim Meyering.
8727
8728 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8729
8730         bootstrap: anchor .gitignore entries.
8731         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8732         with...
8733         (insert_vc_ignore): ... this new function, which prepends `/' to
8734         all .gitignore entries before passing them to
8735         insert_sorted_if_absent.
8736
8737 2010-10-16  Bruno Haible  <bruno@clisp.org>
8738
8739         nextafter: Fix configure check.
8740         * modules/nextafter (configure.ac): Correct expected prototype.
8741
8742 2010-10-16  Bruno Haible  <bruno@clisp.org>
8743
8744         termios: Update documentation.
8745         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8746
8747 2010-10-16  Bruno Haible  <bruno@clisp.org>
8748
8749         tests: Make them compile with TinyCC.
8750         * tests/test-strstr.c (main): Remove parentheses around array
8751         initializer.
8752
8753 2010-10-15  Eric Blake  <eblake@redhat.com>
8754
8755         ignore-value: make header idempotent
8756         * lib/ignore-value.h: Add double-inclusion guards.
8757         Reported by Stefan Berger.
8758
8759 2010-10-15  Jim Meyering  <meyering@redhat.com>
8760
8761         GNUmakefile: handle "stable" target, not "major"
8762         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8763         lists in maint.mk and announce-gen.  Without this, "make stable"
8764         would fail to ensure that $(VERSION) is up to date.
8765
8766 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8767
8768         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8769         & co.
8770
8771 2010-10-14  Bruno Haible  <bruno@clisp.org>
8772
8773         vasnprintf: Don't set errno to 0.
8774         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8775         block that sets it to 0.
8776         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8777
8778 2010-10-14  Bruno Haible  <bruno@clisp.org>
8779
8780         socketlib: Fix.
8781         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8782         gl_PREREQ_SYS_H_WINSOCK2.
8783         Reported by Ian Beckwith <ianb@erislabs.net>.
8784
8785 2010-10-13  Jim Meyering  <meyering@redhat.com>
8786
8787         test-select-stdin.c: avoid warn_unused_result warnings
8788         * tests/test-select-stdin.c: Include "macros.h".
8789         ASSERT that read and fflush succeed.
8790
8791 2010-10-13  Jim Meyering  <meyering@redhat.com>
8792
8793         git-version-gen: do require git-VC'd files in cwd
8794         * build-aux/git-version-gen: Reject a git version string
8795         if there are no commits associated with the current directory.
8796         This avoids an unlikely false-positive (unrelated dir whose parent
8797         repository also contains a tag matching v*), as pointed out
8798         by Giuseppe Scrivano in
8799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8800
8801 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8802
8803         argv-iter: omit nonconforming declaration
8804         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8805         enum arg_iter_err declaration, which doesn't conform to C99.
8806         Solaris 10 cc warns about this.
8807
8808 2010-10-13  Eric Blake  <eblake@redhat.com>
8809
8810         termios: fix compilation on mingw
8811         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8812         (gl_TERMIOS_H): Adjust it on mingw.
8813         * modules/termios (Makefile.am): Substitute new key.
8814         * lib/termios.in.h (includes): Make include_next conditional.
8815         * doc/posix-headers/termios.texi (termios.h): Update
8816         documentation.
8817         Reported by Daniel P. Berrange.
8818
8819 2010-10-13  Jim Meyering  <meyering@redhat.com>
8820
8821         git-version-gen: don't require that .git/ be in the current dir
8822         * build-aux/git-version-gen: Adjust this script so that it works
8823         when run from any working directory beneath the top-level .git/-
8824         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8825         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8826
8827         test-select: avoid warn_unused_result warnings
8828         * tests/test-select.c: Include "macros.h".
8829         ASSERT that each call to read, write, and pipe succeeds.
8830         While not technically required, also check each "close".
8831         * modules/select-tests (Files): Add tests/macros.h.
8832
8833         test-symlinkat: remove declaration of unused local
8834         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8835
8836         test-inttostr: avoid shadowing warnings
8837         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8838         and use malloc rather than the stack for the same reason as
8839         mentioned in the comment justifying the other allocation.
8840
8841 2010-10-11  Bruno Haible  <bruno@clisp.org>
8842
8843         stdlib: Allow multiple gnulib generated replacements to coexist.
8844         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8845         Reported by Sam Steingold <sds@gnu.org>.
8846
8847 2010-10-11  Jim Meyering  <meyering@redhat.com>
8848
8849         fix a documentation typo
8850         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8851
8852 2010-10-11  Eric Blake  <eblake@redhat.com>
8853
8854         futimens: work around Solaris 11 bug
8855         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8856         * tests/test-futimens.h (test_futimens): Enhance, rather than
8857         weaken test.
8858         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8859
8860 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8861
8862         Indentation.
8863         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8864         higher-level operators more to the left.
8865
8866 2010-10-11  Jim Meyering  <meyering@redhat.com>
8867
8868         test-futimens: avoid unwarranted test failure on Solaris 5.11
8869         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8870         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8871         because it tries to dereference the NULL name argument.
8872
8873 2010-10-11  Bruno Haible  <bruno@clisp.org>
8874
8875         Indentation.
8876         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8877         indentation.
8878
8879 2010-10-11  Jim Meyering  <meyering@redhat.com>
8880
8881         spawn.in.h: make indentation consistent with parentheses
8882         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8883         Make indentation consistent with parentheses.
8884
8885 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8886
8887         Fix mismatched parens in previous commit
8888         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8889         parens.
8890
8891 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8892
8893         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8894
8895         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8896         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8897         * lib/malloca.c: Include "verify.h".
8898         (verify1): Remove, replacing with a verify call.
8899         * lib/relocwrapper.c (verify1): Likewise.
8900         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8901         Likewise.
8902         * modules/malloca (Depends-on): Add 'verify'.
8903         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8904         * modules/vasnprintf (Depends-on): Add 'verify'.
8905         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8906         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8907         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8908         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8909         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8910         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8911         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8912
8913         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8914
8915         Formerly the style was sometimes 2*X - 1, because the C standard
8916         was wrongly thought to disallow ?: in integral constant expressions.
8917         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8918         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8919         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8920         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8921         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8922         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8923         verify that time_t cannot be floating.
8924
8925 2010-10-08  Eric Blake  <eblake@redhat.com>
8926
8927         time: enforce recent POSIX ruling that time_t is integral
8928         * lib/time.in.h (__time_t_must_be_integral): Detect any
8929         problematic systems, allowing the rest of gnulib to assume POSIX.
8930
8931 2010-10-08  Jim Meyering  <meyering@redhat.com>
8932
8933         fdopendir: fix a bug on systems lacking openat and /proc support
8934         OpenBSD 4.7 is one such system.  The most noticeable effect was
8935         failure of any application making nontrivial use of fts: rm, du,
8936         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8937           ./rm: traversal failed: `a': Bad file descriptor
8938         Debugging that, you see that even though FD 6 was closed just
8939         prior to the opendir call in fd_clone_opendir, its resulting
8940         dir->dd_fd was 8, rather than the expected value of 6:
8941
8942         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8943         93                close (fd);
8944         (gdb) n
8945         94                dir = fd_clone_opendir (dupfd);
8946         (gdb) n
8947         95                saved_errno = errno;
8948         (gdb) p dir->dd_fd
8949         $11 = 8
8950
8951         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8952         The problem is that on OpenBSD, fd_clone_opendir has to resort
8953         to using the old-style save/restore CWD mechanism, due to its
8954         lack of openat/proc support, and *that* would steal the FD (6)
8955         that opendir was supposed to use.
8956
8957         The fix is to squirrel away the desired FD so that save_cwd uses a
8958         different one, and then free the dest FD right before calling opendir.
8959         That guarantees opendir will use the required file descriptor.
8960
8961         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8962
8963 2010-10-08  Bruno Haible  <bruno@clisp.org>
8964
8965         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8966         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8967
8968 2010-10-08  Bruno Haible  <bruno@clisp.org>
8969
8970         nanosleep: Make replacement POSIX compliant.
8971         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8972         is out of range.
8973         Reported by Jim Meyering.
8974
8975 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8976
8977         bootstrap: add hook for altering gnulib.mk, for Bison
8978         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8979         the Bison bootstrapping process can rewrite file names and variables
8980         in this file before later parts of 'bootstrap' use the file.
8981         Bison wants to include lib/gnulib.mk from the top-level makefile,
8982         so it needs the file names in this file to be relative to the top
8983         level, not relative to lib; plus it needs variable names to be
8984         rewritten.
8985         (slurp): Use the new function.
8986
8987         bootstrap: reformat for readability
8988         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8989
8990 2010-10-08  Eric Blake  <eblake@redhat.com>
8991
8992         docs: update cygwin progress
8993         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8994         1.7.7.
8995         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8996         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8997         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8998         * doc/posix-functions/carg.texi (carg): Likewise.
8999         * doc/posix-functions/cargf.texi (cargf): Likewise.
9000         * doc/posix-functions/casin.texi (casin): Likewise.
9001         * doc/posix-functions/casinf.texi (casinf): Likewise.
9002         * doc/posix-functions/casinh.texi (casinh): Likewise.
9003         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9004         * doc/posix-functions/catan.texi (catan): Likewise.
9005         * doc/posix-functions/catanf.texi (catanf): Likewise.
9006         * doc/posix-functions/catanh.texi (catanh): Likewise.
9007         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9008         * doc/posix-functions/ccos.texi (ccos): Likewise.
9009         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9010         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9011         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9012         * doc/posix-functions/cexp.texi (cexp): Likewise.
9013         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9014         * doc/posix-functions/cimag.texi (cimag): Likewise.
9015         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9016         * doc/posix-functions/clog.texi (clog): Likewise.
9017         * doc/posix-functions/clogf.texi (clogf): Likewise.
9018         * doc/posix-functions/conj.texi (conj): Likewise.
9019         * doc/posix-functions/conjf.texi (conjf): Likewise.
9020         * doc/posix-functions/cpow.texi (cpow): Likewise.
9021         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9022         * doc/posix-functions/cproj.texi (cproj): Likewise.
9023         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9024         * doc/posix-functions/creal.texi (creal): Likewise.
9025         * doc/posix-functions/crealf.texi (crealf): Likewise.
9026         * doc/posix-functions/csin.texi (csin): Likewise.
9027         * doc/posix-functions/csinf.texi (csinf): Likewise.
9028         * doc/posix-functions/csinh.texi (csinh): Likewise.
9029         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9030         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9031         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9032         * doc/posix-functions/ctan.texi (ctan): Likewise.
9033         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9034         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9035         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9036         * doc/posix-headers/complex.texi (complex.h): Likewise.
9037
9038 2010-10-07  Jim Meyering  <meyering@redhat.com>
9039
9040         parse-datetime: avoid compilation failure on OpenBSD 4.7
9041         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9042         This works around a compilation failure on OpenBSD 4.7:
9043         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9044
9045 2010-10-07  Eric Blake  <eblake@redhat.com>
9046
9047         docs: update cygwin progress
9048         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9049         1.7.6.
9050         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9051         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9052         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9053         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9054         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9055         Likewise.
9056         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9057         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9058         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9059         Likewise.
9060         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9061         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9062         Likewise.
9063         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9064         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9065         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9066         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9067         Likewise.
9068         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9069         Likewise.
9070         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9071
9072         docs: update parse-datetime history
9073         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9074         documentation of this function's history and alternatives.
9075
9076         cygwin: use more robust version check
9077         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9078         exclude an eventual cygwin 1.9.1.
9079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9080         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9081         (gl_FUNC_STRCASESTR): Likewise.
9082         Reported by Bruno Haible.
9083
9084 2010-10-06  Bruno Haible  <bruno@clisp.org>
9085
9086         string, sys_select: Avoid #including large headers unless necessary.
9087         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9088         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9089         OSF/1, BeOS, Haiku.
9090         Reported by Jim Meyering.
9091
9092 2010-10-05  Eric Blake  <eblake@redhat.com>
9093
9094         memmem, strstr, strcasestr: fix bug with long periodic needle
9095         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9096         periodic needle having false positive.
9097         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9098         and cygwin 1.7.7.
9099         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9101         (gl_FUNC_STRCASESTR): Likewise.
9102         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9103         * tests/test-memmem.c (main): Expose the bug.
9104         * tests/test-strcasestr.c (main): Likewise.
9105         * tests/test-strstr.c (main): Likewise.
9106         * tests/test-c-strcasestr.c (main): Likewise.
9107         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9108         * doc/posix-functions/strstr.texi (strstr): Likewise.
9109         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9110         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9111
9112 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9113
9114         parse-datetime: do some more renaming
9115         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9116         parse_datetime, not get_date.  Mention the renaming.
9117         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9118         in comments.
9119         * m4/bison.m4: Likewise.
9120
9121 2010-10-05  Eric Blake  <eblake@redhat.com>
9122
9123         parse-datetime: better name than get_date
9124         * NEWS: Reword the deprecation notice.
9125         * modules/get_date: Rename to modules/parse-datetime.
9126         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9127         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9128         * lib/get_date.y: Rename to lib/parse-datetime.y.
9129         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9130         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9131         * doc/getdate.texi: Provide fallback wrapper.
9132         * lib/getdate.h: Move guts, and wrap...
9133         * lib/parse-datetime.h: ...new file.
9134         * lib/parse-datetime.y (get_date): Rename...
9135         (parse_datetime): ...to this.
9136         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9137         (gl_PARSE_DATETIME): ...to this.
9138         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9139         documentation.
9140         * modules/getdate (Files): Provide fallback docs and header.
9141         (Notice, Depends-on): Update references.
9142         * tests/test-parse-datetime.c: Likewise.
9143         * DEPENDENCIES: Likewise.
9144         * MODULES.html.sh (Date and time <time.h>): Likewise.
9145         * doc/parse-datetime.texi (Date input formats)
9146         (Authors of parse_datetime): Likewise.
9147         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9148         (Include): Likewise.
9149         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9150         * gnulib-tool: Likewise.
9151         * m4/bison.m4 (gl_BISON): Likewise.
9152         Suggested by Bruno Haible.
9153
9154 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9155
9156         more ports to Solaris tr, which needs [] around ranges
9157         * gnulib-tool: Solaris tr needs [] around ranges.
9158         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9159         * tests/test-pipe-filter-gi1.c (main): Likewise.
9160         * tests/test-pipe-filter-ii1.c (main): Likewise.
9161
9162 2010-10-05  Eric Blake  <eblake@redhat.com>
9163
9164         bootstrap: fix Solaris regression
9165         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9166         around ranges.
9167         Reported by Pádraig Brady.
9168
9169         bootstrap: work with pkg-config
9170         * build-aux/bootstrap (check_versions): Also transliterate - in
9171         prerequisite name.
9172         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9173         prerequisites that were already found, to avoid confusion.
9174         Reported by Justin Clift.
9175
9176         faccessat: remove unused wrappers
9177         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9178         presence of these wrappers dragged in -lgen on Solaris.
9179         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9180
9181 2010-10-05  Jim Meyering  <meyering@redhat.com>
9182
9183         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9184         * Makefile (sc_pragma_columns): New syntax-check rule.
9185
9186 2010-10-04  Bruno Haible  <bruno@clisp.org>
9187
9188         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9189         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9190         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9191         Reported by Bruce Korb and Eric Blake.
9192
9193 2010-10-04  Bruno Haible  <bruno@clisp.org>
9194
9195         threadlib: Make option --with-libpth-prefix work.
9196         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9197         use $LIBPTH, not just -lpth.
9198
9199 2010-10-04  Bruno Haible  <bruno@clisp.org>
9200
9201         Avoid line length limitation from HP NonStop system header files.
9202         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9203         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9204         * lib/ctype.in.h: Likewise.
9205         * lib/dirent.in.h: Likewise.
9206         * lib/errno.in.h: Likewise.
9207         * lib/fcntl.in.h: Likewise.
9208         * lib/float.in.h: Likewise.
9209         * lib/getopt.in.h: Likewise.
9210         * lib/iconv.in.h: Likewise.
9211         * lib/inttypes.in.h: Likewise.
9212         * lib/langinfo.in.h: Likewise.
9213         * lib/locale.in.h: Likewise.
9214         * lib/math.in.h: Likewise.
9215         * lib/netdb.in.h: Likewise.
9216         * lib/netinet_in.in.h: Likewise.
9217         * lib/poll.in.h: Likewise.
9218         * lib/pthread.in.h: Likewise.
9219         * lib/pty.in.h: Likewise.
9220         * lib/sched.in.h: Likewise.
9221         * lib/se-selinux.in.h: Likewise.
9222         * lib/search.in.h: Likewise.
9223         * lib/signal.in.h: Likewise.
9224         * lib/spawn.in.h: Likewise.
9225         * lib/stdarg.in.h: Likewise.
9226         * lib/stddef.in.h: Likewise.
9227         * lib/stdint.in.h: Likewise.
9228         * lib/stdio.in.h: Likewise.
9229         * lib/stdlib.in.h: Likewise.
9230         * lib/string.in.h: Likewise.
9231         * lib/strings.in.h: Likewise.
9232         * lib/sys_file.in.h: Likewise.
9233         * lib/sys_ioctl.in.h: Likewise.
9234         * lib/sys_select.in.h: Likewise.
9235         * lib/sys_socket.in.h: Likewise.
9236         * lib/sys_stat.in.h: Likewise.
9237         * lib/sys_time.in.h: Likewise.
9238         * lib/sys_times.in.h: Likewise.
9239         * lib/sys_utsname.in.h: Likewise.
9240         * lib/sys_wait.in.h: Likewise.
9241         * lib/sysexits.in.h: Likewise.
9242         * lib/termios.in.h: Likewise.
9243         * lib/time.in.h: Likewise.
9244         * lib/unistd.in.h: Likewise.
9245         * lib/wchar.in.h: Likewise.
9246         * lib/wctype.in.h: Likewise.
9247         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9248         * modules/ctype (Makefile.am): Likewise.
9249         * modules/dirent (Makefile.am): Likewise.
9250         * modules/errno (Makefile.am): Likewise.
9251         * modules/fcntl-h (Makefile.am): Likewise.
9252         * modules/float (Makefile.am): Likewise.
9253         * modules/getopt-posix (Makefile.am): Likewise.
9254         * modules/iconv-h (Makefile.am): Likewise.
9255         * modules/inttypes (Makefile.am): Likewise.
9256         * modules/langinfo (Makefile.am): Likewise.
9257         * modules/locale (Makefile.am): Likewise.
9258         * modules/math (Makefile.am): Likewise.
9259         * modules/netdb (Makefile.am): Likewise.
9260         * modules/netinet_in (Makefile.am): Likewise.
9261         * modules/poll-h (Makefile.am): Likewise.
9262         * modules/pthread (Makefile.am): Likewise.
9263         * modules/pty (Makefile.am): Likewise.
9264         * modules/sched (Makefile.am): Likewise.
9265         * modules/search (Makefile.am): Likewise.
9266         * modules/selinux-h (Makefile.am): Likewise.
9267         * modules/signal (Makefile.am): Likewise.
9268         * modules/spawn (Makefile.am): Likewise.
9269         * modules/stdarg (Makefile.am): Likewise.
9270         * modules/stddef (Makefile.am): Likewise.
9271         * modules/stdint (Makefile.am): Likewise.
9272         * modules/stdio (Makefile.am): Likewise.
9273         * modules/stdlib (Makefile.am): Likewise.
9274         * modules/string (Makefile.am): Likewise.
9275         * modules/strings (Makefile.am): Likewise.
9276         * modules/sys_file (Makefile.am): Likewise.
9277         * modules/sys_ioctl (Makefile.am): Likewise.
9278         * modules/sys_select (Makefile.am): Likewise.
9279         * modules/sys_socket (Makefile.am): Likewise.
9280         * modules/sys_stat (Makefile.am): Likewise.
9281         * modules/sys_time (Makefile.am): Likewise.
9282         * modules/sys_times (Makefile.am): Likewise.
9283         * modules/sys_utsname (Makefile.am): Likewise.
9284         * modules/sys_wait (Makefile.am): Likewise.
9285         * modules/sysexits (Makefile.am): Likewise.
9286         * modules/termios (Makefile.am): Likewise.
9287         * modules/time (Makefile.am): Likewise.
9288         * modules/unistd (Makefile.am): Likewise.
9289         * modules/wchar (Makefile.am): Likewise.
9290         * modules/wctype (Makefile.am): Likewise.
9291
9292 2010-10-04  Bruno Haible  <bruno@clisp.org>
9293
9294         read-file tests: Avoid a test failure on NonStop Kernel.
9295         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9296         a regular file.
9297         Reported by Joachim Schmitz <schmitz@hp.com>.
9298
9299 2010-10-03  Bruno Haible  <bruno@clisp.org>
9300
9301         gnulib-tool: Fixes for --create-testdir with --libtool.
9302         * gnulib-tool (func_get_automake_snippet): Don't augment
9303         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9304         an executable.
9305         (func_create_testdir): Handle module 'alloca' like func_import.
9306         Reported by Bruce Korb <bruce.korb@gmail.com>.
9307
9308 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9309
9310         Avoid some lines longer than 80 characters.
9311         * lib/stdint.in.h: Break long comment lines.
9312         * lib/math.in.h: Likewise.
9313         (_GL_NUM_UINT_WORDS): New macro, for readability.
9314         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9315         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9316         * lib/stdlib.in.h: Likewise.
9317         * lib/spawn.in.h: Likewise.
9318         * lib/sys_socket.in.h: Update an URL.
9319         * lib/sys_stat.in.h: Break long line.
9320
9321 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9322
9323         Improve pmccabe2html.
9324         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9325         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9326         when the sources change. Remove the line in the HTML about "Used
9327         ranges" (which implied that there might be other unused ranges),
9328         rename "Resume" to "Summary" (easier to understand for more users).
9329         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9330         styles, and some unnecessary blank lines.
9331
9332 2010-10-03  Bruno Haible  <bruno@clisp.org>
9333             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9334
9335         acl: Add support for ACLs on NonStop Kernel.
9336         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9337         Check whether the function aclsort() exists.
9338         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9339         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9340         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9341         (acl_nontrivial [HAVE_ACLSORT]: New function.
9342         (file_has_acl): Implement for NonStop Kernel.
9343         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9344         (qset_acl): Implement for NonStop Kernel.
9345         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9346         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9347         (main): Implement for NonStop Kernel.
9348         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9349         Kernel. Handle this flavor.
9350         * tests/test-set-mode-acl.sh: Likewise.
9351         * tests/test-copy-acl.sh: Likewise.
9352         * tests/test-copy-file.sh: Likewise.
9353
9354 2010-10-03  Bruno Haible  <bruno@clisp.org>
9355
9356         Info about ACLs on NonStop Kernel.
9357         * doc/acl-resources.txt: Add info about NonStop Kernel.
9358         References by Joachim Schmitz <schmitz@hp.com>.
9359
9360 2010-10-02  Bruno Haible  <bruno@clisp.org>
9361
9362         Define missing EDQUOT on NonStop Kernel.
9363         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9364         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9365         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9366         missing.
9367         * doc/posix-headers/errno.texi: Mention the NSK bug.
9368         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9369         Reported by Joachim Schmitz <schmitz@hp.com>.
9370
9371 2010-10-02  Bruno Haible  <bruno@clisp.org>
9372
9373         Update doc for POSIX:2008.
9374         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9375         Update URL of POSIX specification.
9376
9377 2010-10-02  Bruno Haible  <bruno@clisp.org>
9378
9379         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9380         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9381         from gnulib, not from Automake.
9382
9383 2010-10-02  Bruno Haible  <bruno@clisp.org>
9384
9385         New module 'system-posix'.
9386         * modules/system-posix: New file.
9387         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9388         module is present.
9389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9390         GNULIB_SYSTEM_POSIX.
9391         * modules/stdlib (Depends-on): Remove sys_wait.
9392         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9393         * doc/posix-functions/system.texi: Mention the new module.
9394         * doc/posix-headers/stdlib.texi: Likewise.
9395         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9396         define test_sys_wait_macros to a no-op.
9397         Reported by Sam Steingold <sds@gnu.org>.
9398
9399 2010-09-30  Bruno Haible  <bruno@clisp.org>
9400
9401         More renaming from 'getdate' to 'get_date'.
9402         * doc/get_date.texi: Renamed from doc/getdate.texi.
9403         * modules/get_date (Files): Update.
9404         * MODULES.html.sh (Date and time <time.h>): Update.
9405         * DEPENDENCIES: Update.
9406         * gnulib-tool: Update comment.
9407         * m4/bison.m4 (gl_BISON): Likewise.
9408         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9409
9410 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9411
9412         bootstrap: support ACLOCAL_FLAGS during aclocal
9413         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9414         can add additional -I dir for third-party .m4 files.
9415
9416 2010-09-30  Eric Blake  <eblake@redhat.com>
9417
9418         bootstrap: use glibtoolize on MacOS
9419         * build-aux/bootstrap (check_versions): Convert libtool into
9420         libtoolize.
9421         (tool search): Move libtool check earlier, and look for
9422         glibtoolize for MacOS.
9423         (gnulib_tool_options): Auto-add --libtool when appropriate.
9424         Reported by Justin Clift.
9425
9426         poll: fix typo that broke test on MacOS
9427         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9428         Reported by Justin Clift.
9429
9430         getdate: rename to get_date
9431         Note: getdate.h is not renamed, to minimize client impact.
9432         * modules/getdate: Mark obsolete.  Move old contents...
9433         * modules/get_date: ...to new module name.
9434         * modules/getdate-tests: Move...
9435         * modules/get_date-tests: ...here.
9436         * m4/getdate.m4: Move...
9437         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9438         * lib/getdate.y: Move...
9439         * lib/get_date.y: ...here.
9440         * tests/test-getdate.c: Move...
9441         * tests/test-get_date.c: ...here.
9442         * doc/posix-functions/getdate.texi (getdate): Update name.
9443         * NEWS: Mention the change.
9444
9445 2010-09-29  Bruno Haible  <bruno@clisp.org>
9446
9447         Separate the module 'waitpid' from the module 'sys_wait'.
9448         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9449         present.
9450         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9451         gl_MODULE_INDICATOR_FOR_TESTS.
9452         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9453         * modules/sys_wait (Depends-on): Remove waitpid.
9454         (Makefile.am): Substitute GNULIB_WAITPID.
9455         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9456         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9457         signature only if the 'waitpid' module is present.
9458         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9459         * NEWS: Mention the change.
9460         * modules/grantpt (Depends-on): Add waitpid.
9461         * modules/wait-process (Depends-on): Likewise.
9462
9463 2010-09-29  Bruno Haible  <bruno@clisp.org>
9464
9465         More tests for module 'sys_wait'.
9466         * modules/sys_wait-c++-tests: New file.
9467         * tests/test-sys_wait-c++.cc: New file.
9468         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9469         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9470
9471 2010-09-29  Bruno Haible  <bruno@clisp.org>
9472
9473         New module 'waitpid'.
9474         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9475         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9476         Don't include <process.h>.
9477         (waitpid): Declare only, using modern idiom.
9478         * m4/waitpid.m4: New file.
9479         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9480         * modules/waitpid: New file.
9481         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9482         (Makefile.am): Update.
9483         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9484
9485 2010-09-28  Bruno Haible  <bruno@clisp.org>
9486
9487         poll: Assume ANSI C.
9488         * lib/poll.c (poll): Use an ANSI C declaration.
9489
9490 2010-09-28  Bruno Haible  <bruno@clisp.org>
9491
9492         poll-h: Create poll.h on all platforms.
9493         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9494         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9495         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9496         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9497         (gl_REPLACE_POLL_H): Don't set POLL_H.
9498         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9499         * modules/poll-h (Depends-on): Add include_next.
9500         (Makefile.am): Create poll.h unconditionally. Substitute also
9501         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9502
9503 2010-09-28  Bruno Haible  <bruno@clisp.org>
9504
9505         Tests for module 'poll-h'.
9506         * modules/poll-h-c++-tests: New file.
9507         * tests/test-poll-h-c++.cc: New file.
9508
9509         Tests for module 'poll-h'.
9510         * modules/poll-h-tests: New file.
9511         * tests/test-poll-h.c: New file.
9512
9513 2010-09-28  Bruno Haible  <bruno@clisp.org>
9514
9515         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9516         * modules/poll-h (Depends-on): Add 'extensions'.
9517
9518 2010-09-28  Bruno Haible  <bruno@clisp.org>
9519
9520         New module 'poll-h'.
9521         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9522         (poll): Use modern idiom.
9523         * modules/poll-h: New file.
9524         * modules/poll (Files): Remove lib/poll.in.h.
9525         (Depends-on): Add poll-h.
9526         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9527         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9528         * m4/poll_h.m4: New file.
9529         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9530         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9531         and invoke gl_REPLACE_POLL_H.
9532         * lib/poll.c: Use common idiom.
9533         * tests/test-poll.c: Likewise.
9534         * doc/posix-headers/poll.texi: Mention the poll-h module.
9535         Suggested by Eric Blake.
9536
9537 2010-09-26  Bruno Haible  <bruno@clisp.org>
9538
9539         sys_wait: Implement WSTOPSIG.
9540         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9541         Reported by Simon Josefsson.
9542
9543 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9544
9545         stdlib, sys_wait: Avoid compilation error on mingw.
9546         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9547
9548 2010-09-26  Bruno Haible  <bruno@clisp.org>
9549
9550         stdlib tests: Avoid code duplication.
9551         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9552         * modules/sys_wait-tests (Files): Likewise.
9553         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9554         * tests/test-stdlib.c: Include test-sys_wait.h.
9555         (main): Invoke test_sys_wait_macros.
9556         * tests/test-sys_wait.c: Include test-sys_wait.h.
9557         (main): Invoke test_sys_wait_macros.
9558
9559 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9560
9561         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9562         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9563         sure Windows sockets are working before calling getaddrinfo.
9564         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9565         * doc/gnulib.texi (Windows sockets): Fix typo.
9566
9567 2010-09-25  Bruno Haible  <bruno@clisp.org>
9568
9569         Tests for module 'regex-quote'.
9570         * modules/regex-quote-tests: New file.
9571         * tests/test-regex-quote.c: New file.
9572
9573         New module 'regex-quote'.
9574         * lib/regex-quote.h: New file.
9575         * lib/regex-quote.c: New file.
9576         * modules/regex-quote: New file.
9577         Suggested by Reuben Thomas <rrt@sc3d.org>.
9578
9579 2010-09-24  Bruno Haible  <bruno@clisp.org>
9580
9581         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9582         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9583
9584 2010-09-23  Bruno Haible  <bruno@clisp.org>
9585
9586         setenv: Relax license.
9587         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9588         Blake.
9589         Requested by Eric Blake.
9590
9591 2010-09-22  Bruno Haible  <bruno@clisp.org>
9592
9593         termios: Relax license.
9594         * modules/termios (License): Change to LGPLv2+.
9595         Requested by Eric Blake.
9596
9597 2010-09-22  Bruno Haible  <bruno@clisp.org>
9598
9599         threadlib: Allow the package to change the default to 'no'.
9600         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9601         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9602         Reported by Paul Eggert.
9603
9604 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9605             Bruno Haible  <bruno@clisp.org>
9606
9607         Fix endless loop in mbmemcasecoll.
9608         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9609         byte.
9610         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9611
9612 2010-09-22  Bruno Haible  <bruno@clisp.org>
9613
9614         Tests for module 'memcoll'.
9615         * modules/memcoll-tests: New file.
9616         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9617
9618         memcoll, xmemcoll: Clarify size vs. length.
9619         * modules/memcoll.c (memcoll0): Clarify specification.
9620         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9621         passed to collate_error.
9622
9623 2010-09-22  Bruno Haible  <bruno@clisp.org>
9624
9625         Tests for module 'memcasecmp'.
9626         * modules/memcasecmp-tests: New file.
9627         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9628
9629 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9630
9631         * lib/pthread.in.h: Add split double-inclusion guard, and include
9632         system <pthread.h> if there is one.  Use @@-style as in other
9633         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9634         pthread.h doesn't.
9635         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9636         (pthread_mutexattr_settype, pthread_mutex_trylock):
9637         New static inline functions, if there's no system <pthread.h>.
9638         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9639         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9640         Approximate with mutexes if the system lacks spinlocks, as in
9641         MacOS.
9642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9643         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9644         @@-style.  Check for spinlocks separately.
9645         (gl_PTHREAD_DEFAULTS): New macro.
9646         * modules/pthread: Redo to use a more typical style for in.h files.
9647
9648 2010-09-21  Eric Blake  <eblake@redhat.com>
9649
9650         net_if: enhance tests
9651         * tests/test-net_if.c (main): Move signature checks earlier.
9652         Print failures to stderr.
9653         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9654         Document the bug that we do not yet fix.
9655
9656 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9657
9658         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9659         about gnulib, not GSS.
9660
9661 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9662
9663         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9664         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9665         for Emacs.
9666         * build-aux/pmccabe2html: Make Makefile.am example code more
9667         cut-and-paste friendly.
9668
9669 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9670
9671         * tests/test-net_if.c: New file.
9672         * modules/net_if-tests: New file.
9673
9674 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9675
9676         pthread: add pthread_spin_destroy
9677         * lib/pthread.in.h (pthread_spin_destroy): New function.
9678
9679 2010-09-19  Bruno Haible  <bruno@clisp.org>
9680
9681         gnulib-tool: Fix --help output.
9682         * gnulib-tool (func_usage): Fix help message.
9683         Reported by Reuben Thomas <rrt@sc3d.org>.
9684
9685 2010-09-18  Jim Meyering  <meyering@redhat.com>
9686
9687         maint.mk: avoid unexpanded \n in two diagnostics
9688         * top/maint.mk (sc_prohibit_always_true_header_tests):
9689         Don't use a literal \n in a halt=... assignment.  It would not be
9690         expanded, and the two \n bytes would appear in the diagnostic output
9691         rather than the desired newline.  Use halt=$$(printf ... instead.
9692         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9693
9694 2010-09-18  Bruno Haible  <bruno@clisp.org>
9695
9696         netinet_in: Doc tweak.
9697         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9698         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9699
9700 2010-09-18  Jim Meyering  <meyering@redhat.com>
9701
9702         init.sh: correct an outdated comment
9703         * tests/init.sh (create_exe_shims_):  s/function/alias/
9704
9705         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9706         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9707         a file named "*.exe" is removed between the glob expansion and the
9708         processing of that oddly named file.
9709
9710 2010-09-17  Eric Blake  <eblake@redhat.com>
9711
9712         mirbsd: add some more support
9713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9714         in BSD family.
9715         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9716         devices as OpenBSD.
9717         * m4/host-os.m4 (mirbsd): Add MirBSD.
9718
9719         tests: fix unportable assumption on sys/wait.h
9720         * tests/test-sys_wait.c (main): Relax test.
9721         * tests/test-stdlib.c (main): Likewise.
9722
9723         init.sh: accomodate directory with no .exes
9724         * tests/init.sh: Accomodate directory containing only scripts.
9725
9726         tests: avoid compiler warning
9727         * tests/test-stdlib.c (main): Use the variable.
9728
9729         fdutimens, fdutimensat: update signature, again
9730         * lib/utimens.h (gl_futimens): Delete, and move signature...
9731         (fdutimens): ...here.
9732         (fdutimensat): Rearrange signature.
9733         (lutimensat): Rename variable for clarity.
9734         * lib/fdutimensat.c (fdutimensat): Update signature.
9735         * lib/utimens.c (fdutimens): Likewise.
9736         (gl_futimens): Delete.
9737         (utimens, lutimens): Update callers.
9738         * lib/futimens.c (futimens): Likewise.
9739         * tests/test-fdutimensat.c: Likewise.
9740         * tests/test-utimens.c: Likewise.
9741         * tests/test-futimens.h: Update comment.
9742         * NEWS: Mention this.
9743         Suggested by Paul Eggert.
9744
9745 2010-09-17  Bruno Haible  <bruno@clisp.org>
9746
9747         Take over the maintenance of some older macros from Autoconf.
9748         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9749         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9750         GNU Autoconf.
9751         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9752         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9753
9754 2010-09-17  Eric Blake  <eblake@redhat.com>
9755
9756         fdutimensat: drop atflag validation
9757         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9758         with valid fd, to close a race scenario where futimens is
9759         unsupported and FILE was replaced by a symlink.
9760         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9761         accordingly.
9762         Suggested by Paul Eggert.
9763
9764 2010-09-16  Bruno Haible  <bruno@clisp.org>
9765
9766         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9767         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9768
9769 2010-09-16  Bruno Haible  <bruno@clisp.org>
9770
9771         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9772         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9773         login_tty exists.
9774         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9775
9776 2010-09-16  Bruno Haible  <bruno@clisp.org>
9777
9778         login_tty: Make the replacement code work on BSD systems.
9779         * lib/login_tty.c: Include <sys/ioctl.h>.
9780         (login_tty): Use ioctl TIOCSCTTY when available.
9781         * modules/login_tty (Depends-on): Add sys_ioctl.
9782         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9783
9784 2010-09-16  Bruno Haible  <bruno@clisp.org>
9785
9786         login_tty: Stricter unit test.
9787         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9788         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9789         and tcgetsid() after login_tty.
9790         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9791
9792 2010-09-16  Bruno Haible  <bruno@clisp.org>
9793
9794         New module 'tcgetsid'.
9795         * lib/tcgetsid.c: New file.
9796         * m4/tcgetsid.m4: New file.
9797         * modules/tcgetsid: New file.
9798         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9799         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9800         GNULIB_TCGETSID, HAVE_TCGETSID.
9801         * lib/termios.in.h: Include <sys/types.h>.
9802         (tcgetsid): New declaration.
9803         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9804         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9805         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9806         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9807
9808 2010-09-16  Bruno Haible  <bruno@clisp.org>
9809
9810         Tests for module 'termios'.
9811         * modules/termios-c++-tests: New file.
9812         * modules/termios-tests: New file.
9813         * tests/test-termios-c++.cc: New file.
9814         * tests/test-termios.c: New file.
9815
9816         New module 'termios'.
9817         * modules/termios: New file.
9818         * lib/termios.in.h: New file.
9819         * m4/termios_h.m4: New file.
9820         * doc/posix-headers/termios.texi: Mention the new module.
9821
9822 2010-09-16  Eric Blake  <eblake@redhat.com>
9823
9824         fdutimensat: add an atflag parameter
9825         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9826         * lib/utimens.h (fdutimensat): Update prototype.
9827         * tests/test-fdutimensat.c: Adjust test to match.
9828         * NEWS: Document the change.
9829         Suggested by Paul Eggert.
9830
9831 2010-09-16  Bruno Haible  <bruno@clisp.org>
9832
9833         Fix typos in comments.
9834         * lib/striconveh.h: Fix typo in comment.
9835         * lib/login_tty.c (login_tty): Likewise.
9836
9837 2010-09-15  Bruno Haible  <bruno@clisp.org>
9838
9839         stdlib: clarify MirBSD WEXITSTATUS bug
9840         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9841         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9842
9843 2010-09-15  Eric Blake  <eblake@redhat.com>
9844
9845         stdlib: work around MirBSD WEXITSTATUS bug
9846         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9847         * modules/stdlib (Depends-on): Add sys_wait.
9848         * tests/test-sys_wait.c (main): Enhance test.
9849         * tests/test-stdlib.c (main): Likewise.
9850         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9851
9852         docs: mention MacOS issue with WEXITSTATUS(constant)
9853         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9854         issue.
9855         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9856
9857         strnlen: add tests
9858         * modules/strnlen-tests: New file.
9859         * tests/test-strnlen.c: Likewise.
9860
9861 2010-09-14  Bruno Haible  <bruno@clisp.org>
9862
9863         unistr/base: Avoid link errors when module 'libunistring' is also used.
9864         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9865         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9866         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9867         Declare also when HAVE_LIBUNISTRING is set.
9868         Reported by Pádraig Brady <P@draigbrady.com>.
9869
9870 2010-09-14  Eric Blake  <eblake@redhat.com>
9871
9872         test-rawmemchr: make more robust
9873         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9874         (Depends-on, configure.ac): Add needed prerequisites to use it.
9875         * modules/memchr-tests (Files, Depends-on, configure.ac):
9876         Likewise, to avoid implicit reliance on memchr module prereqs.
9877         * tests/test-memchr.c (main): Ensure proper masking.
9878         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9879         reads.
9880
9881         memchr: detect glibc Alpha bug
9882         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9883         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9884         Alpha.
9885         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9886         * tests/test-memchr.c (main): Enhance test.
9887         Reported by Nelson H. F. Beebe.
9888
9889 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9890
9891         fts, getcwd, glob: audit for dirfd returning -1
9892         * lib/fts.c (opendir): Remove #define; no longer used.
9893         (opendirat): New arg PDIR_FD.  All callers changed.
9894         (fts_build, _opendir2): Use new opendirat to avoid the need for
9895         dirfd, or for checking whether dirfd returns a negative value.
9896         Don't use opendir; always use openat followed by fdopendir.
9897         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9898         it.
9899         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9900         returns -1 here.
9901         * modules/fts (Depends-on): Remove dirfd.
9902         * modules/getcwd (Depends-on): Likewise.
9903
9904 2010-09-13  Eric Blake  <eblake@redhat.com>
9905
9906         float: fix broken MirBSD header
9907         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9908         * doc/posix-headers/float.texi (float.h): Document it.
9909
9910 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9911
9912         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9913         * lib/fts.c (opendirat): New arg extra_flags.
9914         (__opendir2): Use it to avoid following symlinks when opening
9915         a directory, if symlinks are not supposed to be followed.  See
9916         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9917
9918         fdopendir: preserve argument fd before returning
9919         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9920         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9921         (fdopendir): Use them, arranging for FD to be open to the same
9922         directory that it was when it started.  (It might be temporarily
9923         closed while fdopendir is running, so this not thread- or
9924         signal-safe.)  Be careful to do the right thing even when file
9925         descriptors are scarce and dup fails with errno == EMFILE.  See
9926         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9927
9928 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9929
9930         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9931         * NEWS: Document change.
9932         * m4/regex.m4: Disable test for regoff_t size.
9933
9934 2010-09-13  Jim Meyering  <meyering@redhat.com>
9935
9936         fts: don't operate on an invalid file descriptor after failed dup
9937         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9938         negative file descriptor.
9939
9940 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         savedir: add streamsavedir, deprecate fdsavedir
9943         * NEWS: Mention deprecation of fdsavedir.
9944         * lib/savedir.c (streamsavedir): New extern function, whose name
9945         ends in "savedir" to be consistent with the others.  This differs
9946         from savedirstream in that it doesn't close its argument.  The
9947         next version of GNU tar will use this instead of fdsavedir, to
9948         avoid some race conditions and conserve file descriptors.
9949         (savedirstream): Reimplement as a wrapper around streamsavedir.
9950         (fdsavedir): Add a comment deprecating this function.  As far as
9951         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9952         * lib/savedir.h (streamsavedir): New decl.
9953         (fdsavedir): Add a comment deprecating this.
9954
9955 2010-09-10  Bruno Haible  <bruno@clisp.org>
9956
9957         langinfo: Fix last commit.
9958         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9959         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9961
9962 2010-09-10  Bruno Haible  <bruno@clisp.org>
9963
9964         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9965         * lib/progreloc.c (O_EXEC): Define fallback.
9966
9967 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9968
9969         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9970         * NEWS: Document recent changes to fcntl-h.
9971         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9972         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9973         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9974         Similarly for O_SEARCH; this last was already true, but not documented.
9975         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9976         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9977         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9978         Likewise.
9979         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9980         is zero, not whether it is defined.
9981         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9982         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9983         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9984
9985 2010-09-10  Bruno Haible  <bruno@clisp.org>
9986
9987         langinfo, nl_langinfo: Fix for IRIX 5.3.
9988         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9989         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9990         HAVE_LANGINFO_YESEXPR.
9991         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9992         HAVE_LANGINFO_YESEXPR.
9993         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9994         HAVE_LANGINFO_T_FMT_AMPM is 0.
9995         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9996         HAVE_LANGINFO_YESEXPR is 0.
9997         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9998         NOEXPR.
9999         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10000         * doc/posix-functions/nl_langinfo.texi: Likewise.
10001         Reported by Eric Blake.
10002
10003 2010-09-10  Bruno Haible  <bruno@clisp.org>
10004
10005         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10006         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10007         on FreeBSD 8.0 and OpenBSD 4.6.
10008         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10009         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10010         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10011         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10012         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10013         ac_includes_default.
10014         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10015
10016 2010-09-09  Eric Blake  <eblake@redhat.com>
10017
10018         strsignal: work around NetBSD bug
10019         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10020         * lib/string.in.h (includes): Likewise.
10021         * doc/posix-functions/strsignal.texi (strsignal): Document the
10022         bug.
10023         Reported by Nelson H. F. Beebe.
10024
10025         gnulib-tool: work with NetBSD /bin/sh
10026         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10027         (func_get_description, func_get_comment, func_get_status)
10028         (func_get_notice, func_get_applicability, func_get_filelist)
10029         (func_get_dependencies, func_get_autoconf_early_snippet)
10030         (func_get_autoconf_snippet, func_get_automake_snippet)
10031         (func_get_include_directive, func_get_link_directive)
10032         (func_get_license, func_get_maintainer, func_import): Avoid
10033         shell syntax errors from parsing syntax extensions.
10034
10035 2010-09-09  Bruno Haible  <bruno@clisp.org>
10036
10037         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10038         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10039         a reliable way to determine whether the 'alias' command works.
10040
10041 2010-09-08  Jim Meyering  <meyering@redhat.com>
10042
10043         init.sh: penalize a set-x-impaired shell; don't disqualify it
10044         * tests/init.sh: Too many shells corrupt application stderr when
10045         you set -x, so we can't afford to disqualify them, since at least
10046         on Irix-6.5, that would disqualify all bourne shells.
10047         Instead, use a two-pass approach.
10048         On the first pass, try to find a shell that meets the stricter
10049         condition that set -x does not corrupt stderr.
10050         If no shell meets the stricter condition, retest each candidate
10051         shell, but without that extra condition.  Finally, when
10052         VERBOSE=yes is requested and set -x might cause trouble, simply
10053         issue a warning and refrain from enabling debug output.
10054
10055 2010-09-08  Eric Blake  <eblake@redhat.com>
10056
10057         unsetenv: fix OpenBSD bug
10058         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10059         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10060         documentation.
10061         Reported by Jim Meyering.
10062
10063         strtod: work around IRIX 6.5 bug
10064         * lib/strtod.c (strtod): Reparse number on shorter string if
10065         exponent parse was invalid.
10066         * tests/test-strtod.c (main): Add check for "0x1p 2".
10067         Reported by Tom G. Christensen.
10068
10069         getopt: optimize previous patch
10070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10071         empty variable.  Speed up awk script.
10072         Reported by Paolo Bonzini.
10073
10074 2010-09-08  Jim Meyering  <meyering@redhat.com>
10075
10076         test.sh: disqualify shells for which set -x corrupts stderr
10077         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10078         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10079         appear in stderr output.  For example, this command:
10080             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10081         prints "P=1" on those two systems:
10082
10083 2010-09-08  Bruno Haible  <bruno@clisp.org>
10084
10085         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10086         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10087         commands, because some shells ignore redirections when there is an
10088         error in the command lookup.
10089         Reported by Eric Blake.
10090
10091 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10092
10093         * lib/regex.h: Fix a mention of `regex_compile' (should be
10094         `re_compile_pattern').
10095         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10096         (re_set_registers): Correct name of parameter in comment.
10097
10098         * doc/regex.texi: Add documentation for missing syntax flags.
10099         Remove commented-out documentation of defunct syntax option
10100         RE_NO_EMPTY_ALTS.
10101         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10102         Add documentation of re_set_registers.
10103         Document trick to re-use a pattern buffer by setting fastmap manually.
10104         Update documentation of struct re_pattern_buffer per public members.
10105         Uncomment documentation of equivalence class operators and
10106         collating symbol operators, since they are now implemented,
10107         Explain leftmost-longest matching in relation to alternatives.
10108         Tidy documentation of substring matching.
10109         Remove POSIX documentation, which is done better in
10110         glibc, and refer the reader there. Keep BSD API documentation, as
10111         that is not readily available elsewhere.
10112
10113 2010-09-07  Eric Blake  <eblake@redhat.com>
10114
10115         getopt: handle POSIXLY_CORRECT set but not exported
10116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10117         export state of POSIXLY_CORRECT, due to bash set -o posix.
10118         Reported by Dustin J. Mitchell.
10119
10120 2010-09-05  Bruno Haible  <bruno@clisp.org>
10121
10122         gnulib-tool: Highlight the changed options.
10123         * gnulib-tool (func_usage): Display the --import, --add-import,
10124         --remove-import explanations in bold font.
10125
10126 2010-09-06  Karl Berry  <karl@gnu.org>
10127
10128         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10129
10130 2010-09-05  Bruno Haible  <bruno@clisp.org>
10131
10132         uniwidth/width: Update comment.
10133         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10134         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10135
10136 2010-09-05  Bruno Haible  <bruno@clisp.org>
10137
10138         isinf, isnan: Relax license.
10139         * modules/isinf (License): Change from GPL to LGPL, with consent from
10140         Ben Pfaff.
10141         * modules/isnan (License): Likewise.
10142         Requested by Ludovic Courtès.
10143
10144 2010-09-04  Bruno Haible  <bruno@clisp.org>
10145
10146         gnulib-tool: Help migration from --import to --add-import or --update.
10147         * gnulib-tool: Emit a verbose error message when --import is used
10148         without any module name.
10149
10150 2010-09-04  Bruno Haible  <bruno@clisp.org>
10151
10152         Update doc about gnulib-tool.
10153         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10154         'gnulib-tool --update' in more detail.
10155         Reported by Eric Blake.
10156
10157 2010-09-04  Bruno Haible  <bruno@clisp.org>
10158
10159         gnulib-tool: Change --import. New options --add/remove-import.
10160         * gnulib-tool: New options --add-import, --remove-import.
10161         (func_usage): Document them.
10162         (have_associative): Define always.
10163         (func_import): In import mode, don't merge the specified settings with
10164         the cached settings. Implement remove-import mode.
10165         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10166         Explain when to use them versus --import.
10167         (Simple update): Use --add-import instead of --import.
10168         * NEWS: Mention the change.
10169
10170 2010-09-04  Bruno Haible  <bruno@clisp.org>
10171
10172         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10173         separate gnulib.mk.
10174
10175 2010-09-04  Bruno Haible  <bruno@clisp.org>
10176
10177         gnulib-tool: Don't talk about CVS any more.
10178         * gnulib-tool (func_usage, func_import): Write "version control"
10179         instead of CVS.
10180
10181 2010-09-04  Jim Meyering  <meyering@redhat.com>
10182
10183         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10184         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10185         false positives (whose names may be ill-chosen) when searching
10186         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10187         would cause a false-positive.
10188
10189         avoid coreutils "make distcheck" failure
10190         Coreutils tests with an absolute build directory name that contains
10191         a space.  Not quoting this directory name caused a failure.
10192         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10193         * tests/test-vc-list-files-cvs.sh: Likewise.
10194
10195 2010-09-04  Bruno Haible  <bruno@clisp.org>
10196
10197         gnulib-tool: Avoid error when run in a package without Makefile.am.
10198         * gnulib-tool: When collecting the m4dirs in a package that does not
10199         have a Makefile.am, eliminate those directories that contain no
10200         gnulib-cache.m4. Fix expression that counts these directories.
10201
10202 2010-09-04  Bruno Haible  <bruno@clisp.org>
10203
10204         update-copyright test: Improve output when perl is missing or too old.
10205         * tests/test-update-copyright.sh: Move test of Perl version down after
10206         the test whether Perl exists. Provide an explanation relating Perl's
10207         error message to Automake's SKIP: message.
10208
10209 2010-09-04  Bruno Haible  <bruno@clisp.org>
10210
10211         Don't augment PATH in TESTS_ENVIRONMENT.
10212         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10213         set abs_aux_dir instead of augmenting PATH.
10214         * modules/vc-list-files-tests (Makefile.am): Likewise.
10215         * tests/test-update-copyright.sh: Augment PATH here.
10216         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10217         path_prepend_.
10218         * tests/test-vc-list-files-git.sh: Likewise.
10219
10220 2010-09-04  Jim Meyering  <meyering@redhat.com>
10221
10222         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10223         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10224
10225 2010-09-04  Bruno Haible  <bruno@clisp.org>
10226
10227         strdup: Fix compilation error in C++ mode.
10228         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10229         the macro.
10230
10231 2010-09-04  Bruno Haible  <bruno@clisp.org>
10232
10233         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10234         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10235         macro into a function.
10236         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10237
10238 2010-09-04  Bruno Haible  <bruno@clisp.org>
10239
10240         Set PATH_SEPARATOR the same way autoconf does.
10241         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10242         the value of PATH_SEPARATOR the same way autoconf-generated configure
10243         scripts do.
10244         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10245         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10246
10247 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10248
10249         Set PATH_SEPARATOR the same way autoconf does.
10250         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10251         the same way autoconf-generated configure scripts do.
10252         * posix-modules: Likewise.
10253
10254 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         hash: fix safe_hasher const typo
10257         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10258         const; otherwise, there is a type error later.
10259
10260 2010-09-02  Jim Meyering  <meyering@redhat.com>
10261
10262         test-update-copyright.sh: require perl 5.8.0
10263         * tests/test-update-copyright.sh: Require 5.8.0,
10264         which Tom G. Christensen has confirmed is adequate,
10265         while 5.6.1 is not.
10266
10267 2010-09-02  Eric Blake  <eblake@redhat.com>
10268
10269         tests: init.sh improvements for re-exec'ing with zsh
10270         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10271         -vx through shell re-exec.
10272         Reported by Tom G. Christensen.
10273
10274         wctype: fix typo in previous commit
10275         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10276         Reported by Ludovic Courtès.
10277
10278 2010-09-02  Jim Meyering  <meyering@redhat.com>
10279
10280         test-update-copyright.sh: skip test if Perl is too old
10281         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10282         Reported by Tom G. Christensen.
10283
10284 2010-09-02  Bruno Haible  <bruno@clisp.org>
10285
10286         wctype: Avoid compilation error on IRIX 6.5.30.
10287         * lib/wctype.in.h (iswblank): Declare with a replacement if
10288         REPLACE_ISWBLANK is set.
10289         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10290         declared. Set REPLACE_ISWBLANK.
10291         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10292         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10293         * doc/posix-headers/wctype.texi: Likewise.
10294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10295
10296 2010-09-01  Bruno Haible  <bruno@clisp.org>
10297
10298         New module 'socketlib'.
10299         * modules/socketlib: New file.
10300         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10301         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10302         * modules/sockets (Depends-on): Add socketlib.
10303         Suggested by Sam Steingold <sds@gnu.org>.
10304
10305 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10306
10307         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10308
10309         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10310         when one needs search access to a directory but not read access.
10311         On systems where it is available, it works in some cases where
10312         O_RDONLY does not, namely on directories that are searchable but
10313         not readable, and which need only to be searchable.  If O_SEARCH
10314         is not available, fall back to the traditional method of using
10315         O_RDONLY.
10316
10317         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10318         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10319         when opening a directory that needs only to be searchable.
10320         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10321         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10322         * lib/openat-proc.c (openat_proc_name): Likewise.
10323         * lib/openat.c (openat_needs_fchdir): Likewise.
10324         * lib/save-cwd.c (save_cwd): Likewise.
10325         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10326
10327 2010-08-28  Bruno Haible  <bruno@clisp.org>
10328
10329         New module 'host-cpu-c-abi'.
10330         * modules/host-cpu-c-abi: New file.
10331         * m4/host-cpu-c-abi.m4: New file, based on part of
10332         clisp/src/m4/general.m4.
10333         Requested by Sam Steingold <sds@gnu.org>.
10334
10335 2010-08-31  Eric Blake  <eblake@redhat.com>
10336         and Jim Meyering  <meyering@redhat.com>
10337
10338         hash: factor, and guard against misbehaving hasher function
10339         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10340         of table->hasher's return value.  Also protect against a hash value
10341         so large that adding it to table->bucket results in a NULL pointer.
10342         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10343         Use it in place of open-coded check-and-abort.
10344
10345 2010-08-30  Bruno Haible  <bruno@clisp.org>
10346
10347         hash: silence spurious clang warning
10348         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10349         Reported by Eric Blake.
10350
10351 2010-08-30  Eric Blake  <eblake@redhat.com>
10352
10353         strstr, memmem, strcasestr: avoid leaked shell message
10354         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10355         FreeBSD.
10356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10358
10359         tests: silence clang warning
10360         * tests/test-malloca.c (do_allocation): Avoid dead store.
10361
10362 2010-08-29  Bruno Haible  <bruno@clisp.org>
10363
10364         gettext: Fix recent mistake.
10365         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10366
10367 2010-08-29  Bruno Haible  <bruno@clisp.org>
10368
10369         selinux-h: Offer a --without-selinux option.
10370         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10371         --without-selinux was specified, skip all tests and define
10372         HAVE_SELINUX_SELINUX_H to 0.
10373         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10374         set LIB_SELINUX to empty.
10375         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10376         gl_LIBSELINUX. If --without-selinux was specified, replace
10377         selinux/context.h.
10378         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10379
10380 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10381             Bruno Haible  <bruno@clisp.org>
10382
10383         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10384         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10385         of HAVE_REALLOC.
10386         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10387         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10388         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10389         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10390
10391 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10392             Bruno Haible  <bruno@clisp.org>
10393
10394         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10395         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10396         HAVE_CALLOC.
10397         * lib/xmalloc.c: Update accordingly.
10398         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10399         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10400         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10401
10402 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10403             Bruno Haible  <bruno@clisp.org>
10404
10405         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10406         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10407         HAVE_MALLOC.
10408         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10409         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10410         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10411
10412 2010-08-29  Bruno Haible  <bruno@clisp.org>
10413
10414         Update modules list.
10415         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10416         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10417         (String handling <string.h>): Add astrxfrm.
10418         (File system functions): Add readlinkat.
10419
10420 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10421
10422         Tests for module 'realloc-gnu'.
10423         * modules/realloc-gnu-tests: New file.
10424         * tests/test-realloc-gnu.c: New file.
10425
10426         Tests for module 'calloc-gnu'.
10427         * modules/calloc-gnu-tests: New file.
10428         * tests/test-calloc-gnu.c: New file.
10429
10430         Tests for module 'malloc-gnu'.
10431         * modules/malloc-gnu-tests: New file.
10432         * tests/test-malloc-gnu.c: New file.
10433
10434 2010-08-28  Bruno Haible  <bruno@clisp.org>
10435
10436         Rename module 'realloc' -> 'realloc-gnu'.
10437         * modules/realloc-gnu: New file, copied from modules/realloc.
10438         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10439         obsolete.
10440         * modules/mgetgroups (Depends-on): Update.
10441         * doc/posix-functions/realloc.texi: Update.
10442         * NEWS: Mention the change.
10443
10444         Rename module 'calloc' -> 'calloc-gnu'.
10445         * modules/calloc-gnu: New file, copied from modules/calloc.
10446         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10447         obsolete.
10448         * doc/posix-functions/calloc.texi: Update.
10449         * NEWS: Mention the change.
10450
10451         Rename module 'malloc' -> 'malloc-gnu'.
10452         * modules/malloc-gnu: New file, copied from modules/malloc.
10453         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10454         obsolete.
10455         * modules/argp (Depends-on): Update.
10456         * modules/regex (Depends-on): Update.
10457         * doc/posix-functions/malloc.texi: Update.
10458         * NEWS: Mention the change.
10459
10460 2010-08-28  Eric Blake  <eblake@redhat.com>
10461
10462         pread, pwrite: add missing dependency
10463         * modules/pread (Depends-on): Add extensions.
10464         * modules/pwrite (Depends-on): Likewise.
10465
10466 2010-08-28  Bruno Haible  <bruno@clisp.org>
10467
10468         unistr/u*-strchr: Fix tests dependencies.
10469         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10470         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10471         Reported by Ian Beckwith <ianb@erislabs.net>.
10472
10473 2010-08-28  Bruno Haible  <bruno@clisp.org>
10474
10475         read-file: Don't occupy too much unused memory.
10476         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10477
10478 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10479             Eric Blake  <eblake@redhat.com>
10480             Bruno Haible  <bruno@clisp.org>
10481
10482         read-file: Avoid memory reallocations with regular files.
10483         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10484         (fread_file): With regular files, use the remaining length as the
10485         initial buffer size.  Check against overflow.
10486         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10487         sys_stat.
10488
10489 2010-08-28  Bruno Haible  <bruno@clisp.org>
10490
10491         ftello: Relax license.
10492         * modules/ftello (License): Relax to LGPLv2+.
10493         Reported by Eric Blake.
10494
10495 2010-08-28  Bruno Haible  <bruno@clisp.org>
10496
10497         Avoid relocwrapper link errors due to gnulib replacement functions.
10498         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10499         function.
10500         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10501
10502 2010-08-28  Bruno Haible  <bruno@clisp.org>
10503
10504         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10505         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10506         defined.
10507         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10508         Suggested by Eric Blake.
10509
10510 2010-08-28  Bruno Haible  <bruno@clisp.org>
10511
10512         sys_socket, netdb: Ensure socklen_t gets defined.
10513         * modules/sys_socket (Depends-on): Add socklen.
10514         * modules/netdb (Depends-on): Likewise.
10515         * modules/getaddrinfo (Depends-on): Remove socklen.
10516         * modules/getsockopt (Depends-on): Likewise.
10517         * modules/setsockopt (Depends-on): Likewise.
10518         * tests/test-sys_socket.c: Check that socklen_t is defined.
10519         * tests/test-netdb.c: Likewise.
10520         * m4/socklen.m4: Update comments.
10521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10522
10523 2010-08-27  Eric Blake  <eblake@redhat.com>
10524
10525         login_tty: add missing dependency
10526         * modules/login_tty (Depends-on): Add pty.
10527
10528 2010-08-26  Eric Blake  <eblake@redhat.com>
10529
10530         lib-symbol-versions: fix m4 quoting
10531         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10532         format for AC_LINK_IFELSE.
10533
10534         glob: fix compile test
10535         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10536
10537         btowc: fix missing file
10538         * modules/btowc (Files): Also ship locale-fr.m4.
10539
10540         lseek: fix link test
10541         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10542         AC_LINK_IFELSE.
10543
10544         include_next: silence autoconf 2.68 warning
10545         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10546         AC_COMPILE_IFELSE as special.
10547         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10548         autoconf < 2.68.
10549
10550         acl: fix compilation test
10551         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10552         AC_COMPILE_IFELSE.
10553
10554 2010-08-26  Bruno Haible  <bruno@clisp.org>
10555
10556         Modernize AC_TRY_RUN invocations.
10557         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10558         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10559         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10560         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10561         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10562         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10563         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10565         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10566         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10568         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10569         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10570         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10571         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10572         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10573         gl_MBRLEN_NUL_RETVAL): Likewise.
10574         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10575         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10576         Likewise.
10577         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10578         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10579         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10580         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10581         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10582         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10583         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10584         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10585         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10586         Likewise.
10587         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10588         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10589         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10590         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10591         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10593         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10594         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10595         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10597
10598 2010-08-26  Bruno Haible  <bruno@clisp.org>
10599
10600         Modernize AC_TRY_LINK invocations.
10601         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10602         AC_TRY_LINK.
10603         * m4/argp.m4 (gl_ARGP): Likewise.
10604         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10605         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10606         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10607         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10608         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10609         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10610         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10611         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10612         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10613         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10614         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10615         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10616         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10617         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10618         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10619         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10620         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10621         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10622         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10623         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10624         Likewise.
10625         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10626         Likewise.
10627         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10628         Likewise.
10629         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10631         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10632         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10633         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10634         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10635         * m4/servent.m4 (gl_SERVENT): Likewise.
10636         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10637         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10638         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10639         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10640         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10641         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10642         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10644         * modules/tsearch-tests (configure.ac): Likewise.
10645
10646 2010-08-26  Bruno Haible  <bruno@clisp.org>
10647
10648         Modernize AC_TRY_COMPILE invocations.
10649         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10650         AC_TRY_COMPILE.
10651         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10652         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10653         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10654         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10655         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10656         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10657         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10658         * m4/lock.m4 (gl_LOCK): Likewise.
10659         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10660         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10661         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10662         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10663         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10664         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10665         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10666         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10667         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10668         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10669         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10670         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10671         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10672         extraneous semicolon.
10673
10674 2010-08-26  Jim Meyering  <meyering@redhat.com>
10675
10676         stat-time: relax license LGPL
10677         * modules/stat-time (License): Change from GPL to LGPL,
10678         with consent from all contributors, for use in libguile.
10679         Requested by Ludovic Courtès.
10680
10681 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10682
10683         poll: return immediately on POLLHUP.
10684         * lib/poll.c (poll): Always set timeout before wait_timeout is
10685         computed.
10686
10687 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10688
10689         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10690         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10691         rmdir ("dir/.//"), unlinkat.
10692
10693 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10694
10695         stdbool: avoid spurious failure with modern xlc
10696         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10697
10698 2010-08-24  Bruno Haible  <bruno@clisp.org>
10699
10700         getloadavg: simplify code
10701         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10702         gl_have_func. Update comments.
10703
10704 2010-08-24  Eric Blake  <eblake@redhat.com>
10705
10706         getloadavg: don't define SVR4 on cygwin
10707         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10708         only define SVR4 when -lkvm is required.
10709         Reported by Yaakov Selkowitz.
10710
10711 2010-08-24  Bruno Haible  <bruno@clisp.org>
10712
10713         priv-set: fix comment
10714         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10715
10716 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         priv-set: fix comments
10719         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10720         to match code, as suggested by David Bartley in:
10721         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10722
10723 2010-08-23  Eric Blake  <eblake@redhat.com>
10724
10725         stdbool: avoid rejecting clang
10726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10727         * tests/test-stdbool.c: Enable more tests if using the system
10728         <stdbool.h> instead of the gnulib replacement.
10729         (main): Move xlc bug test to a runtime test for all compilers.
10730         Reported by Anders Kaseorg.
10731
10732         argz: fix shell quoting issue
10733         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10734         Reported by Charles Wilson.
10735
10736 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10737             Erik Faye-Lund <kusmabite@gmail.com>
10738
10739         poll, select: handle ERROR_BROKEN_PIPE.
10740         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10741         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10742         * lib/select.c (win32_compute_revents): Do not mark a pipe
10743         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10744
10745 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10746
10747         fts: allow compilation with C++
10748         * lib/fts_.h: Specify extern "C" linkage with C++.
10749
10750 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10751
10752         Fix gnulib-tool sed script de-commentation for AIX sed.
10753         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10754         sed.
10755
10756 2010-08-17  Eric Blake  <eblake@redhat.com>
10757
10758         test-stddef: test for (some) offsetof bugs
10759         * tests/test-stddef.c: Enhance test to ensure correct type of
10760         offsetof.
10761         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10762         that we are not fixing at this time.
10763
10764 2010-08-15  Bruno Haible  <bruno@clisp.org>
10765
10766         stpncpy: Allow stpncpy to be defined as a macro.
10767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10768         if it's already correctly declared.
10769         * lib/string.in.h (stpncpy): Undefine before redefining.
10770         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10771
10772 2010-08-14  Bruno Haible  <bruno@clisp.org>
10773
10774         Rename module 'memxfrm' to 'amemxfrm'.
10775         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10776         (amemxfrm): Renamed from memxfrm.
10777         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10778         (amemxfrm): Renamed from memxfrm.
10779         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10780         * NEWS: Mention the change.
10781         * MODULES.html.sh (String handling <string.h>): Update.
10782         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10783         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10784         * lib/unicase/u16-casexfrm.c: Likewise.
10785         * lib/unicase/u32-casexfrm.c: Likewise.
10786         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10787         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10788         * lib/uninorm/u16-normxfrm.c: Likewise.
10789         * lib/uninorm/u32-normxfrm.c: Likewise.
10790         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10791         memxfrm.
10792         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10793         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10794         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10795         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10796         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10797         Suggested by Paul Eggert.
10798
10799 2010-08-14  Bruno Haible  <bruno@clisp.org>
10800
10801         Tests for module 'astrxfrm'.
10802         * modules/astrxfrm-tests: New file.
10803         * tests/test-astrxfrm.c: New file.
10804
10805         New module 'astrxfrm'.
10806         * lib/astrxfrm.h: New file.
10807         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10808         * modules/astrxfrm: New file.
10809
10810 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10811
10812         regex: Tweak doc.
10813         * doc/regex.texi (Overview): Don't mention regex.c.
10814         (GNU Regular Expression Compiling): Likewise.
10815         (Match-end-of-line Operator): Mention 'not_eol'.
10816
10817 2010-08-14  Brian Gough  <bjg@gnu.org>
10818             Bruno Haible  <bruno@clisp.org>
10819
10820         git-merge-changelog: add doc relating to use with bzr and hg.
10821         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10822
10823 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10824
10825         pthread: fix pthread.h creation for srcdir != builddir
10826         * modules/pthread (Makefile.am): Fix the rule to work also in a
10827         non-srcdir build.
10828
10829 2010-08-13  Karl Berry  <karl@gnu.org>
10830
10831         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10832         * doc/posix-*/*: force line break before @url of POSIX
10833         specifications.
10834         Suggested by Werner Lemberg.
10835
10836 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10837
10838         strtod: fix const diagnostic
10839         * lib/strtod.c (strtod): Don't assign const char * to char *,
10840         as this elicits a warning from GCC when warnings are enabled.
10841
10842 2010-08-10  Pádraig Brady <P@draigbrady.com>
10843         and Eric Blake  <eblake@redhat.com>
10844
10845         copy-acl: ignore ENOTSUP on HP-UX
10846         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10847         so that it is available for HP-UX.
10848         * lib/copy-acl.c (qcopy_acl): Use it.
10849         Reported by Patrick M. Callahan.
10850
10851 2010-08-10  Eric Blake  <eblake@redhat.com>
10852
10853         open, chown: relax license
10854         * modules/open (License): Change to LGPLv2+, with consent by all
10855         authors, for use in augeas.
10856         * modules/chown (License): Likewise.
10857         * modules/lchown (Likewise): Likewise.
10858         Requested by Adam Stokes.
10859
10860 2010-08-09  Karl Berry  <karl@gnu.org>
10861
10862         * build-aux/ar-lib: new file, import from Automake.
10863         * config/srclist.txt: autocheck for updates.
10864
10865 2010-08-09  Eric Blake  <eblake@redhat.com>
10866
10867         readlinkat: adjust client modules
10868         * modules/areadlinkat (Depends-on): Use readlinkat, not
10869         symlinkat.
10870         * modules/areadlinkat-with-size (Depends-on): Likewise.
10871
10872         mknod: be more vocal about danger of running tests as root
10873         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10874         root, since that is just asking for problems.
10875         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10876
10877         readlinkat: split into its own module
10878         * modules/symlinkat: Split readlinkat...
10879         * modules/readlinkat: ...into separate module.
10880         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10881         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10882         * lib/symlinkat.c (readlinkat): Move...
10883         * lib/readlinkat.c: ...into new file.
10884         * modules/symlinkat-tests: Split readlinkat test...
10885         * modules/readlinkat-tests: ...into separate module.
10886         * tests/test-symlinkat.c: Split...
10887         * tests/test-readlinkat.c: ...into new file.
10888         * NEWS: Document the split.
10889         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10890         * lib/unistd.in.h (readlinkat): Likewise.
10891         Suggested by Bruno Haible.
10892
10893 2010-08-08  Bruno Haible  <bruno@clisp.org>
10894
10895         memxfrm: Speed up.
10896         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10897         that usually only one call to strxfrm is necessary for each string
10898         part.
10899         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10900
10901 2010-08-07  Karl Berry  <karl@gnu.org>
10902
10903         * doc/posix-headers/limits.texi,
10904         * doc/posix-functions/malloc.texi,
10905         * doc/posix-functions/strsignal.texi: missing @item.
10906         * doc/ld-version-script.texi: spurious leading i.
10907         * doc/regex.texi (Interval Operators): no commas inside @var.
10908
10909 2010-08-01  Bruno Haible  <bruno@clisp.org>
10910
10911         Integrate the regex documentation.
10912         * doc/gnulib.texi: Define 'cn' index.
10913         (Regular expressions): New a chapter that includes regex.texi and
10914         regexprops-generic.texi.
10915         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10916         syntax.
10917
10918         Whitespace cleanup.
10919         * doc/regex.texi: Remove trailing spaces.
10920
10921         Add regex documentation.
10922         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10923         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10924         Written by Kathy A. Hargreaves and Karl Berry.
10925
10926 2010-08-01  Bruno Haible  <bruno@clisp.org>
10927
10928         link: Update documentation.
10929         * doc/posix-functions/link.texi: Update regarding Solaris.
10930
10931 2010-07-31  Bruno Haible  <bruno@clisp.org>
10932
10933         Update modules list.
10934         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10935         (String handling <string.h>): Add memcmp2, memxfrm.
10936         (Container data structures): Add xlist, xsublist, xoset.
10937         (Core language properties): Add alignof, unused-parameter.
10938         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10939         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10940         (Unibyte characters <ctype.h>): New section.
10941         (String handling <string.h>): New section.
10942         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10943         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10944         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10945         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10946         tan, tanh, tanl, y0, y1, yn.
10947         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10948         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10949         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10950         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10951         unlockpt, vdprintf, vdprintf-posix.
10952         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10953         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10954         xconcat-filename.
10955         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10956         getdtablesize, pipe2, pipe2-safer.
10957         (Security): New section.
10958         (Networking functions): Add accept4.
10959         (Signal handling): Add sigpipe.
10960         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10961         mbmemcasecoll.
10962         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10963         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10964         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10965         pipe-filter-ii.
10966         (Misc): Add argp-version-etc, login_tty, parse-duration.
10967
10968 2010-07-31  Bruno Haible  <bruno@clisp.org>
10969
10970         Improve doc in MODULES.html.
10971         * modules/linkat (Description): Add the word "function".
10972         * modules/mkfifo (Description): Likewise.
10973         * modules/mknod (Description): Likewise.
10974         * modules/remove (Description): Likewise.
10975         * modules/renameat (Description): Likewise.
10976         * modules/stat (Description): Likewise.
10977         * modules/symlink (Description): Likewise.
10978         * modules/unlink (Description): Likewise.
10979
10980 2010-07-31  Bruno Haible  <bruno@clisp.org>
10981
10982         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10983         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10984         option --enable/disable-c++ instead of --enable/disable-cxx.
10985         * NEWS: Mention the change.
10986
10987 2010-07-31  Bruno Haible  <bruno@clisp.org>
10988
10989         readlink, areadlink: Relax test a bit.
10990         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10991         alternative to ENOTDIR.
10992         * tests/test-areadlink.h (test_areadlink): Likewise.
10993         Reported by Rainer Tammer.
10994
10995 2010-07-31  Bruno Haible  <bruno@clisp.org>
10996
10997         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10998         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10999         character, perform the search using U_STRCHR.
11000         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11001         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11002         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11003         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11004         Suggested by Paolo Bonzini.
11005
11006 2010-07-31  Bruno Haible  <bruno@clisp.org>
11007
11008         unistr/u*-strstr: Fix dependencies.
11009         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11010         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11011         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11012
11013 2010-07-31  Bruno Haible  <bruno@clisp.org>
11014
11015         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11016         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11017         the beginning of the loop.
11018         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11019         cases in 'switch' statement.
11020
11021         unistr/u8-strchr: Fix several bugs.
11022         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11023         the string. When not found, return NULL, not a pointer near the end.
11024
11025         More tests for unistr/u8-strchr.
11026         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11027         that the function does not read past the first occurrence of the byte
11028         being searched.
11029         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11030         * tests/unistr/test-u16-strchr.c (main): New function.
11031         * tests/unistr/test-u32-strchr.c (main): New function.
11032
11033 2010-07-31  Bruno Haible  <bruno@clisp.org>
11034
11035         posix-modules: Ignore backup files of documentation files.
11036         * posix-modules: grep only through files named *.texi.
11037
11038 2010-07-31  Bruno Haible  <bruno@clisp.org>
11039
11040         symlinkat: Fix documentation.
11041         * doc/posix-functions/readlinkat.texi: Fix module name.
11042
11043 2010-07-31  Bruno Haible  <bruno@clisp.org>
11044
11045         fchownat: Replace also when chown has the trailing slash bug.
11046         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11047         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11048         introduced on 2010-04-10.
11049         Reported by Rainer Tammer.
11050
11051 2010-07-31  Bruno Haible  <bruno@clisp.org>
11052
11053         linkat: Work around AIX 7.1 bug.
11054         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11055         whether linkat handles trailing slash correctly. If not, replace linkat
11056         and define LINKAT_TRAILING_SLASH_BUG.
11057         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11058         check whether (fd1,file1) points to a directory if file1 or file2 ends
11059         in a slash. Code taken from lib/link.c.
11060         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11061         Reported by Rainer Tammer.
11062
11063 2010-07-31  Bruno Haible  <bruno@clisp.org>
11064
11065         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11066         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11067         This disables an xlc optimization that was causing wrong test results.
11068         Reported by Rainer Tammer.
11069
11070 2010-07-31  Bruno Haible  <bruno@clisp.org>
11071
11072         iconv: Work around AIX 6.1..7.1 bug.
11073         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11074         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11075         cross-compiling, guess no on all versions of AIX.
11076         Reported by Rainer Tammer.
11077
11078 2010-07-31  Bruno Haible  <bruno@clisp.org>
11079
11080         readlink: Relax test a bit.
11081         * tests/test-readlink.h (test_readlink): Allow different errno value
11082         when readlink is called with a file name that ends in / and refers to
11083         a file.
11084         Suggested by Eric Blake.
11085         Reported by Rainer Tammer.
11086
11087 2010-07-31  Bruno Haible  <bruno@clisp.org>
11088
11089         copysign: Does not require -lm on glibc systems.
11090         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11091         gl_COMMON_DOUBLE_MATHFUNC.
11092         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11093
11094 2010-07-31  Bruno Haible  <bruno@clisp.org>
11095
11096         duplocale: Work around AIX 7.1 bug.
11097         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11098         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11099         * lib/duplocale.c (rpl_duplocale): Update comment.
11100         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11101         Reported by Rainer Tammer.
11102
11103 2010-07-30  Bruno Haible  <bruno@clisp.org>
11104
11105         dirfd: Avoid link error on AIX 7.1.
11106         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11107         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11108         exist, set REPLACE_DIRFD.
11109         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11110         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11111         * doc/posix-functions/dirfd.texi: Update.
11112         Reported by Rainer Tammer.
11113
11114 2010-07-30  Eric Blake  <eblake@redhat.com>
11115
11116         strtod: next round of AIX fixes
11117         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11118         exponent.
11119         * tests/test-strtod.c (main): Enhance tests.
11120         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11121         Reported by Rainer Tammer.
11122
11123         futimens: fix configure check
11124         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11125         Reported by Bruno Haible.
11126
11127 2010-07-30  Bruno Haible  <bruno@clisp.org>
11128
11129         getline: Update regarding AIX.
11130         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11131         Reported by Rainer Tammer.
11132
11133 2010-07-30  Bruno Haible  <bruno@clisp.org>
11134
11135         wcwidth: Drop replacement on AIX 7.
11136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11137         AIX 7.
11138         Reported by Rainer Tammer.
11139
11140 2010-07-30  Bruno Haible  <bruno@clisp.org>
11141
11142         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11143         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11144         a 'char *'.
11145         Reported by Rainer Tammer.
11146
11147 2010-07-30  Bruno Haible  <bruno@clisp.org>
11148
11149         unlink: Update regarding AIX.
11150         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11151         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11152         Reported by Rainer Tammer.
11153
11154 2010-07-30  Bruno Haible  <bruno@clisp.org>
11155
11156         symlink: Update regarding AIX.
11157         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11159         Reported by Rainer Tammer.
11160
11161 2010-07-30  Bruno Haible  <bruno@clisp.org>
11162
11163         strndup: Update regarding AIX.
11164         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11165         AIX 7.
11166         Reported by Rainer Tammer.
11167
11168 2010-07-30  Bruno Haible  <bruno@clisp.org>
11169
11170         stat: Update regarding AIX.
11171         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11172         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11173         Reported by Rainer Tammer.
11174
11175 2010-07-30  Bruno Haible  <bruno@clisp.org>
11176
11177         truncl: Fix autoconf test.
11178         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11179         whether truncl works.
11180         Reported by Rainer Tammer.
11181
11182 2010-07-30  Bruno Haible  <bruno@clisp.org>
11183
11184         round: Update regarding AIX.
11185         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11186         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11187         Reported by Rainer Tammer.
11188
11189 2010-07-30  Bruno Haible  <bruno@clisp.org>
11190
11191         rename: Update regarding AIX.
11192         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11193         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11194         Reported by Rainer Tammer.
11195
11196 2010-07-30  Bruno Haible  <bruno@clisp.org>
11197
11198         printf.m4: Update regarding AIX.
11199         * m4/printf.m4: Update comments regarding AIX.
11200         Reported by Rainer Tammer.
11201
11202 2010-07-30  Bruno Haible  <bruno@clisp.org>
11203
11204         iconv: Update regarding AIX.
11205         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11206         AIX 7.
11207         Reported by Rainer Tammer.
11208
11209 2010-07-30  Bruno Haible  <bruno@clisp.org>
11210
11211         getopt: Update regarding AIX.
11212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11213         no on AIX.
11214         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11215         Reported by Rainer Tammer.
11216
11217 2010-07-30  Bruno Haible  <bruno@clisp.org>
11218
11219         ldexpl; Update regarding AIX.
11220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11221         on AIX 7.
11222         Reported by Rainer Tammer.
11223
11224 2010-07-30  Bruno Haible  <bruno@clisp.org>
11225
11226         frexpl: Update regarding AIX.
11227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11228         on AIX 7.
11229         Reported by Rainer Tammer.
11230
11231 2010-07-30  Bruno Haible  <bruno@clisp.org>
11232
11233         open, fopen: Update regarding AIX.
11234         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11235         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11236         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11237         * doc/posix-functions/fopen.texi: Likewise.
11238         Reported by Rainer Tammer.
11239
11240 2010-07-30  Bruno Haible  <bruno@clisp.org>
11241
11242         chown: Update doc regarding AIX.
11243         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11244         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11245         Reported by Rainer Tammer.
11246
11247 2010-07-30  Eric Blake  <eblake@redhat.com>
11248
11249         strtod: fix bug in replacement function on AIX
11250         * lib/strtod.c (strtod): Special case broken "0x" parse in
11251         underlying strtod.
11252         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11253         * doc/posix-functions/strtod.texi (strtod): Likewise.
11254         Reported by Rainer Tammer.
11255
11256 2010-07-30  Bruno Haible  <bruno@clisp.org>
11257
11258         mbrlen: Fix cross-compilation guess for AIX.
11259         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11260         guess. Leftover from 2008-12-22.
11261
11262 2010-07-30  Bruno Haible  <bruno@clisp.org>
11263
11264         mbrtowc: Fix cross-compilation guess for AIX.
11265         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11266         guess. Leftover from 2008-12-21.
11267
11268 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11269
11270         init.sh: work around trap limitation of some shells
11271         * tests/init.sh (setup_): Move exit trap outside of shell function.
11272
11273 2010-07-29  Eric Blake  <eblake@redhat.com>
11274
11275         strtod: aid debugging
11276         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11277         understanding why strtod is rejected.
11278
11279 2010-07-28  Bruno Haible  <bruno@clisp.org>
11280
11281         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11282         * lib/unistr/u8-chr.c: Include <string.h>.
11283         * tests/unistr/test-u8-chr.c: Likewise.
11284         * tests/unistr/test-u16-chr.c: Likewise.
11285         * tests/unistr/test-u32-chr.c: Likewise.
11286         * tests/unistr/test-u8-strchr.c: Likewise.
11287         * tests/unistr/test-u16-strchr.c: Likewise.
11288         * tests/unistr/test-u32-strchr.c: Likewise.
11289         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11290         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11291         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11292         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11293
11294 2010-07-28  Bruno Haible  <bruno@clisp.org>
11295
11296         Use spaces for indentation, not tabs.
11297         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11298
11299 2010-07-27  Bruno Haible  <bruno@clisp.org>
11300
11301         mbspcasecmp: Fix function specification.
11302         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11303         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11304         Reported by Eric Blake <eblake@redhat.com>.
11305
11306 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11307
11308         timespec: use cast and not conditional, as truncation isn't possible
11309         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11310         instead of a conditional.  Comment about the situation in more detail.
11311         This undoes most of the 2009-10-29 patch.
11312
11313 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11314
11315         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11316         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11317         * lib/unistr/u8-strchr.c: Likewise.
11318         * modules/unistr/u8-chr: Depend on memchr.
11319
11320         unistr/u*-strchr: add tests
11321         * modules/unistr/u8-strchr-tests: New file.
11322         * modules/unistr/u16-strchr-tests: New file.
11323         * modules/unistr/u32-strchr-tests: New file.
11324         * tests/unistr/test-strchr.h: New file.
11325         * tests/unistr/test-u8-strchr.c: New file.
11326         * tests/unistr/test-u16-strchr.c: New file.
11327         * tests/unistr/test-u32-strchr.c: New file.
11328
11329         unistr/u*-chr: test multibyte sequences more
11330         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11331         test vector.
11332         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11333         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11334         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11335
11336         unistr/u*-chr: test multibyte sequences
11337         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11338
11339         unistr/u*-chr: prepare for multibyte tests
11340         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11341         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11342         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11343         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11344         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11345         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11346
11347 2010-07-18  Bruno Haible  <bruno@clisp.org>
11348
11349         unistr/u8-strchr: Optimize non-ASCII argument case.
11350         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11351         because the first byte often matches anyway.
11352         Reported by Pádraig Brady <P@draigbrady.com>.
11353
11354 2010-07-15  Karl Berry  <karl@gnu.org>
11355
11356         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11357
11358 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11359
11360         getcwd: on Solaris, work better if ancestors are inaccessible
11361         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11362         buffer and size, try again with a large buffer.  This works better
11363         on Solaris, since its getcwd succeeds even if the path to the root
11364         is inaccessible, and this is helpful in common cases such as .zfs
11365         hidden directories.  Problem reported by J Chapman Flack in
11366         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11367         Use system getcwd if it's declared, not merely if it's partly
11368         working; use the partly-working test only to avoid needless effort
11369         if the system getcwd fails.
11370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11371         comment that was already obsolete and is now even more obsolete.
11372         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11373         now might call strdup.
11374
11375 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11376
11377         pthread: Add enough so that coreutils/src/sort.c compiles.
11378         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11379         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11380         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11381         Include <sys/types.h>, in case it defines pthread_t.
11382         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11383         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11384         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11385         (pthread_rwlockattr_t, pthread_spinlock_t):
11386         New typedefs, if HAVE_PTHREAD_T is not defined.
11387         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11388         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11389         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11390         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11391         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11392         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11393         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11394         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11395         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11396         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11397         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11398         New macros.
11399         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11400         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11401         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11402         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11403         (pthread_spin_unlock): New dummy functions.
11404         (pthread_create): Return EAGAIN; don't set errno.
11405         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11406         require AC_C_INLINE.
11407         * modules/pthread (Depends-on): Add sched, time.
11408         (pthread.h): Use AM_V_GEN.
11409
11410 2010-07-13  Bruno Haible  <bruno@clisp.org>
11411
11412         striconveh: Don't malloc memory if the result buffer is sufficient.
11413         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11414         buffer if its size is sufficient.
11415         Reported by Ludovic Courtès <ludo@gnu.org>.
11416
11417 2010-07-13  Bruno Haible  <bruno@clisp.org>
11418
11419         strtod: Add safety check.
11420         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11421
11422 2010-07-12  Bruno Haible  <bruno@clisp.org>
11423
11424         Unify tests that set gl_cv_func_ldexpl_no_libm.
11425         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11426         gl_FUNC_LDEXPL.
11427         (gl_FUNC_LDEXPL): Invoke it.
11428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11429
11430 2010-07-12  Bruno Haible  <bruno@clisp.org>
11431
11432         Unify tests that set gl_cv_func_ldexp_no_libm.
11433         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11434         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11435         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11436         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11437         * modules/strtod (Files): Add m4/ldexp.m4.
11438
11439 2010-07-12  Bruno Haible  <bruno@clisp.org>
11440
11441         Unify tests that set gl_cv_func_frexpl_no_libm.
11442         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11443         gl_FUNC_FREXPL_NO_LIBM.
11444         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11446
11447 2010-07-12  Bruno Haible  <bruno@clisp.org>
11448
11449         Unify tests that set gl_cv_func_frexp_no_libm.
11450         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11451         gl_FUNC_FREXP_NO_LIBM.
11452         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11453         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11454
11455 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11456
11457         memcoll: clarify sizes versus lengths, document better, and tweak perf
11458         * lib/memcoll.c (strcoll_loop, memcoll0):
11459         Improve quality of descriptive comments.  Name variables
11460         consistently as to whether they are lengths (which do not include
11461         terminating null) versus sizes (which do).
11462         * lib/xmemcoll.c (xmemcoll0): Likewise.
11463         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11464         returned when s1size == 0; this is easier to compile and saves
11465         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11466
11467 2010-07-12  Bruno Haible  <bruno@clisp.org>
11468
11469         Tests for module '_Exit'.
11470         * modules/_Exit-tests: New file.
11471         * tests/test-_Exit.sh: New file.
11472         * tests/test-_Exit.c: New file.
11473
11474         New module '_Exit'.
11475         * lib/stdlib.in.h (__attribute__): New macro.
11476         (_Exit): New declaration.
11477         * lib/_Exit.c: New file.
11478         * m4/_Exit.m4: New file.
11479         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11480         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11481         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11482         * modules/_Exit: New file.
11483         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11484         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11485
11486 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11487
11488         strtod: make it more-accurate typically, and don't require libm
11489         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11490         Include limits.h.  Don't include string.h.
11491         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11492         (locale_isspace): New function, so that no casts are needed to
11493         check whether *s is a space.
11494         (ldexp): Provide an unused dummy if not available.
11495         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11496         (strtod): Use them.  This implementation prefers to use the
11497         underlying strtod if available, falling back on our own code
11498         only to fix known bugs.  This is more likely to produce an
11499         accurate result.  Also, it avoids the use of libm functions.
11500         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11501         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11502         was absent, but it caused a test failure with coreutils.
11503         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11504         with libm.
11505         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11506         * modules/strtod-tests (Makefile.am): Likewise.
11507
11508 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11509             Bruno Haible  <bruno@clisp.org>
11510
11511         unistr/u8-strchr: Optimize ASCII argument case.
11512         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11513
11514 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11515
11516         (x)memcoll: minor tweaks
11517         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11518         is after the type that it qualifies.
11519         (memcoll0): Likewise.
11520         * lib/memcoll.h (memcoll0): Likewise.
11521         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11522         * lib/xmemcoll.h (xmemcoll0): Likewise.
11523         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11524         differs from memcoll in that the NUL byte is part of the argument.
11525         Omit the abort-checks, as performance is a real issue here.  Plus,
11526         the checks were wrong anyway (an off-by-one error).  Omit local
11527         variable 'diff', as it's a bit clearer that way.
11528         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11529         no longer needed.
11530
11531 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11532
11533         (x)memcoll: speedup when input is known to be NUL delimited
11534         * lib/memcoll.c: Include stdlib.
11535         (memcoll0): New function.
11536         (strcoll_loop): New function, refactored for use in both memcoll
11537         and memcoll0.
11538         * lib/memcoll.h (memcoll0): Add prototype.
11539         * lib/xmemcoll.c (xmemcoll0): New function.
11540         (collate_error): New function, refactored for use in both xmemcoll
11541         and xmemcoll0.
11542         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11543         * m4/memcoll.m4: add inline invocation.
11544
11545 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11546
11547         * build-aux/bootstrap: Remove any local translations
11548         from the translation project synchronization directory,
11549         so that local only translations are not distributed.
11550
11551 2010-07-04  Bruno Haible  <bruno@clisp.org>
11552
11553         fsusage: Clarify which code applies to which platforms.
11554         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11555         platform.
11556         * lib/fsusage.c (get_fs_usage): Likewise.
11557
11558 2010-07-04  Bruno Haible  <bruno@clisp.org>
11559
11560         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11561         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11562         Reported by Martin Lambers <marlam@marlam.de>.
11563
11564 2010-07-04  Jim Meyering  <meyering@redhat.com>
11565
11566         hash: once again explicitly disallow insertion of NULL
11567         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11568         inserting a NULL pointer cannot work with these functions.
11569         Add a comment with details.
11570         This reverts part of the 2010-07-01 commit, 5bef1a35
11571         "hash: extend module to deal with non-pointer keys".
11572
11573 2010-07-01  Bruno Haible  <bruno@clisp.org>
11574
11575         stdbool: Update doc.
11576         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11577         Info from Christian Weisgerber <naddy@mips.inka.de>.
11578
11579 2010-07-01  Jim Meyering  <meyering@redhat.com>
11580
11581         hash: extend module to deal with non-pointer keys
11582         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11583         but that allows insertion of non-pointer entries.
11584         Do not disallow an ENTRY value of NULL.
11585         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11586         * lib/hash.h (hash_insert0): Declare.
11587
11588 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11589
11590         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11591         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11592         not present (i.e. with autoconf 2.59 and when using gettextize, not
11593         gnulib), require AC_GNU_SOURCE instead.
11594
11595 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11596
11597         idpriv-drop: Fix tests.
11598         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11599         not to the test-idpriv-droptemp program.
11600
11601 2010-06-29  Bruno Haible  <bruno@clisp.org>
11602
11603         string: Fix syntax error with g++ 2.96.
11604         * lib/string.in.h (__pure__): Remove definition.
11605         (_GL_ATTRIBUTE_PURE): New macro.
11606         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11607         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11608         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11609
11610 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11611
11612         unitypes: Fix bug introduced on 2010-05-18.
11613         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11614
11615 2010-06-22  Eric Blake  <eblake@redhat.com>
11616
11617         memmem: slight optimization
11618         * lib/str-two-way.h (critical_factorization): Update comments.
11619         Reduce work during factorization phase.
11620         Reported by Carlos Bueno <carlos@bueno.org>.
11621
11622 2010-06-21  Bruno Haible  <bruno@clisp.org>
11623
11624         Fix HAVE_CALLOC_POSIX misnomer.
11625         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11626         !HAVE_CALLOC_POSIX.
11627         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11628         HAVE_CALLOC_POSIX.
11629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11630         instead of HAVE_CALLOC_POSIX.
11631         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11632         HAVE_CALLOC_POSIX.
11633
11634         Use modern idiom for calloc() replacement.
11635         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11636         AC_FUNC_CALLOC.
11637         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11638         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11639         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11640         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11641         (gl_REPLACE_CALLOC): New macro.
11642
11643 2010-06-21  Bruno Haible  <bruno@clisp.org>
11644
11645         Fix HAVE_REALLOC_POSIX misnomer.
11646         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11647         !HAVE_REALLOC_POSIX.
11648         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11649         HAVE_REALLOC_POSIX.
11650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11651         instead of HAVE_REALLOC_POSIX.
11652         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11653         HAVE_REALLOC_POSIX.
11654
11655         Use modern idiom for realloc() replacement.
11656         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11657         AC_FUNC_REALLOC.
11658         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11659         Autoconf's AC_FUNC_REALLOC.
11660         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11661         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11662         (gl_REPLACE_REALLOC): New macro.
11663         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11664
11665 2010-06-21  Bruno Haible  <bruno@clisp.org>
11666
11667         Fix HAVE_MALLOC_POSIX misnomer.
11668         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11669         !HAVE_MALLOC_POSIX.
11670         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11671         HAVE_MALLOC_POSIX.
11672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11673         instead of HAVE_MALLOC_POSIX.
11674         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11675         HAVE_MALLOC_POSIX.
11676
11677         Use modern idiom for malloc() replacement.
11678         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11679         AC_FUNC_MALLOC.
11680         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11681         Autoconf's AC_FUNC_MALLOC.
11682         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11683         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11684         (gl_REPLACE_MALLOC): New macro.
11685         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11686
11687 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11688
11689         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11690         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11691         This macro takes 3 arguments, not 4.
11692
11693 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11694
11695         ipv6: fix detection under mingw
11696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11697         in6_addr.
11698
11699 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11700
11701         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11702         that strtod() works when cross-compiling to a glibc version known
11703         to work.
11704
11705 2010-06-15  Bruno Haible  <bruno@clisp.org>
11706
11707         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11708
11709 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11710
11711         select: Correct timeout.
11712         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11713
11714 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11715
11716         git-version-gen: init shell var to avoid env var influence
11717         * build-aux/git-version-gen (v): Init shell var to empty.
11718
11719 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11720
11721         priv-set: Don't assume that priv.h exists merely because getppriv does.
11722         See Jan Andersen's bug report about AIX 5L in
11723         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11724         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11725         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11726         * lib/priv-set.h: Likewise.
11727         * tests/test-priv-set.c: Likewise.
11728
11729 2010-06-13  Bruno Haible  <bruno@clisp.org>
11730
11731         relocatable: Make it easier to test whether to install wrappers.
11732         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11733         RELOCATABLE_VIA_WRAPPER.
11734
11735 2010-06-13  Bruno Haible  <bruno@clisp.org>
11736
11737         gnulib-tool: Display specified modules and dependencies differently.
11738         * gnulib-tool (func_show_module_list): New function.
11739         (func_import, func_create_testdir): Invoke it.
11740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11741
11742 2010-06-13  Bruno Haible  <bruno@clisp.org>
11743
11744         gnulib-tool: Align code of func_import and func_create_testdir.
11745         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11746         specified_modules.
11747
11748 2010-06-12  Jim Meyering  <meyering@redhat.com>
11749
11750         test-inttostr: avoid spurious failure on Solaris 9
11751         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11752         to accept "%ju".  Reported by Bruno Haible.
11753
11754 2010-06-11  Jim Meyering  <meyering@redhat.com>
11755
11756         test-sys_socket: mark variables as used more readably
11757         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11758         as "used" explicitly via (void) statement casts.  This is more
11759         readable than using them in an artificial return expression.
11760         Suggestion from Bruno Haible.
11761
11762 2010-06-11  Bruno Haible  <bruno@clisp.org>
11763
11764         Avoid some more warnings from "gcc -Wwrite-strings".
11765         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11766         to 'const char *'.
11767         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11768         * tests/test-c-strcasestr.c (main): Likewise.
11769         * tests/test-mbscasestr1.c (main): Likewise.
11770         * tests/test-mbscasestr2.c (main): Likewise.
11771         * tests/test-memmem.c (main): Likewise.
11772         * tests/test-strstr.c (main): Likewise.
11773         * tests/test-strcasestr.c (main): Likewise.
11774
11775 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11776
11777         init.sh: change framework_failure_ to fail with status 99, not 1
11778         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11779         automake's parallel-tests rule that this is an unexpected failure,
11780         even if the test is listed in XFAIL_TESTS.
11781
11782 2010-06-11  Jim Meyering  <meyering@redhat.com>
11783
11784         test-inttostr: avoid warnings about 4-6KB literal strings
11785         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11786         Include "macros.h", for its definition of ASSERT.
11787         (CK): s/assert/ASSERT/
11788         * modules/inttostr-tests (Files): Add macros.h.
11789
11790         init.sh: don't use $ME_ or skip_ before they are defined
11791         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11792         their first uses.  Also hoist their companions: warn_, fail_,
11793         framework_failure_, $stderr_fileno.  Prompted by a patch from
11794         Stefano Lattarini.
11795
11796         test-sys_socket: avoid set-but-not-used warnings from gcc
11797         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11798         avoid warning about set-but-not-used variables.
11799
11800         test-xvasprintf: avoid 'const' discard warnings
11801         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11802         "const" when assigning from literal strings.
11803         (test_xasprintf): Add "void" in function argument list to placate
11804         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11805
11806         tests: avoid compilation warnings in argmatch and exclude tests...
11807         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11808         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11809         Since it always exits, declare with the "noreturn" attribute.
11810         * tests/test-argmatch.c: Likewise.
11811
11812         tests: avoid 'const' discard warnings in mbsstr tests
11813         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11814         * tests/test-mbsstr2.c (main): Likewise.
11815
11816         test-verify: avoid warning from gcc's -Wmissing-declarations
11817         * tests/test-verify.c (function): Declare to be static.
11818
11819         test-inttostr.c: include <string.h> for use of strcmp
11820         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11821
11822         test-linkat: avoid failed assertion on "other" architectures
11823         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11824         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11825         sparc: https://bugs.launchpad.net/bugs/591968
11826
11827 2010-06-11  Jim Meyering  <meyering@redhat.com>
11828
11829         printf.m4: avoid autoconf's "Expanded Before Required" warning
11830         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11831         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11832         autoconf warning.
11833
11834 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11835
11836         Replacement header templates are now named with ".in", not "_".
11837         * doc/gnulib-intro.texi: Correct.
11838
11839 2010-06-10  Jim Meyering  <meyering@redhat.com>
11840
11841         inttostr-tests: depend on snprintf, not snprintf-posix
11842         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11843         snprintf-posix, to avoid this aclocal failure:
11844           missing file gnulib-tests/vasnprintf.c
11845           configure.ac:45: error: expected source file, required through \
11846           AC_LIBSOURCES, not found
11847
11848 2010-06-10  Jim Meyering  <meyering@redhat.com>
11849
11850         inttostr: add a new function, inttostr, and tests
11851         The namesake function was not available.  The existence of the
11852         template file, inttostr.c makes its addition nontrivial.
11853         * lib/anytostr.c: Rename from inttostr.c.
11854         (anytostr): Rename from inttostr.
11855         * lib/inttostr.c: New file.
11856         * modules/inttostr (Files): Add anytostr.c.
11857         (Makefile.am): Set lib_SOURCES instead of ...
11858         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11859         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11860         * lib/offtostr.c: Likewise.
11861         * lib/uinttostr.c: Likewise.
11862         * lib/umaxtostr.c: Likewise.
11863         * modules/inttostr-tests: New file.
11864         * tests/test-inttostr.c: New file.  Test these functions.
11865
11866 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11867             Bruno Haible  <bruno@clisp.org>
11868
11869         Add "Extending Gnulib" chapter to manual.
11870         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11871         chapter.
11872         (Extending Gnulib): New chapter.
11873         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11874         chapter.
11875
11876 2010-06-09  Bruno Haible  <bruno@clisp.org>
11877
11878         Avoid relocwrapper link errors due to gnulib replacement functions.
11879         * lib/areadlink.c: Use the system's malloc, realloc functions.
11880         (areadlink): Set errno to ENOMEM explicitly.
11881         * modules/areadlink (Depends-on): Remove malloc-posix.
11882         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11883
11884 2010-06-09  Bruno Haible  <bruno@clisp.org>
11885
11886         Avoid relocwrapper link errors due to gnulib replacement functions.
11887         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11888         * lib/malloca.c: Likewise.
11889         * lib/relocatable.c: Likewise.
11890         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11891         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11892         * lib/setenv.c: Use the system's malloc, realloc functions.
11893         * lib/strerror.c: Use the system's sprintf function.
11894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11895
11896 2010-06-04  Bruno Haible  <bruno@clisp.org>
11897
11898         Prefer documented low-level autoconf macro names.
11899         * m4/lib-link.m4: Use m4_translit instead of translit.
11900         * m4/environ.m4: Likewise.
11901         * m4/mathfunc.m4: Likewise.
11902         * m4/onceonly.m4: Likewise.
11903         * m4/stdint.m4: Likewise.
11904         Suggested by Eric Blake.
11905
11906 2010-06-04  Martin Lambers  <marlam@marlam.de>
11907             Bruno Haible  <bruno@clisp.org>
11908
11909         havelib: Allow library names with '+' characters.
11910         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11911         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11912
11913 2010-06-09  Bruno Haible  <bruno@clisp.org>
11914
11915         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11916         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11917         realloc failed.
11918
11919 2010-06-08  Peter Simons  <simons@cryp.to>
11920
11921         maint.mk: make the news-check rule more configurable
11922         * top/maint.mk (news-check-lines-spec): New variable.
11923         (news-check): Use "sed -n 1,10p" in place of "head".
11924
11925 2010-06-07  Jim Meyering  <meyering@redhat.com>
11926
11927         do-release-commit-and-tag: fix typo in --help
11928         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11929
11930         regex: avoid new dead-code warning with gcc-4.6.0
11931         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11932         if-block containing a while-loop.  It's been unused for at least
11933         5 years.
11934
11935 2010-06-05  Bruno Haible  <bruno@clisp.org>
11936
11937         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11938         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11939
11940 2010-06-04  Bruno Haible  <bruno@clisp.org>
11941
11942         Update to GNU gettext 0.18.1.
11943         * modules/gettext (configure.ac): Require gettext infrastructure from
11944         version 0.18.1.
11945
11946 2010-06-03  Bruno Haible  <bruno@clisp.org>
11947
11948         Don't use AC_LIBOBJ with file names in subdirectories.
11949         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11950         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11951         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11952         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11953         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11954         gl_LIBUNISTRING_LIBSOURCE.
11955         (Makefile.am): Augment lib_SOURCES here, conditionally.
11956         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11957
11958 2010-06-03  Bruno Haible  <bruno@clisp.org>
11959
11960         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11961         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11962         expansion does not end with a newline.
11963         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11964         unnecessary newline.
11965
11966 2010-06-03  Bruno Haible  <bruno@clisp.org>
11967
11968         Reduce dependencies.
11969         * tests/test-quotearg.h: New file, extracted from
11970         tests/test-quotearg.c.
11971         * tests/test-quotearg-simple.c: New file, extracted from
11972         tests/test-quotearg.c.
11973         * tests/test-quotearg.c: Don't include <ctype.h>.
11974         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11975         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11976         use_quote_double_quotes, use_quotearg_colon): Moved to
11977         tests/test-quotearg.h.
11978         (results_g, flag_results, custom_quotes, custom_results): Moved
11979         to tests/test-quotearg-simple.c.
11980         (main): Moved the part that does not depend on gettext to
11981         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11982         performed.
11983         * modules/quotearg-simple: New file.
11984         * modules/quotearg-simple-tests: New file.
11985         * modules/quotearg (Depends-on): Add quotearg-simple.
11986         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11987         (Files): Add tests/test-quotearg.h.
11988         Reported by Paolo Bonzini.
11989
11990 2010-06-03  Bruno Haible  <bruno@clisp.org>
11991
11992         Reduce dependencies.
11993         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11994
11995 2010-06-03  Bruno Haible  <bruno@clisp.org>
11996
11997         time: Undefine more broken macros.
11998         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11999         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12000         Reported by Eric Blake.
12001
12002 2010-06-03  Bruno Haible  <bruno@clisp.org>
12003
12004         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12005         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12006         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12007         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12008         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12009         Reported by Ludovic Courtès <ludo@gnu.org>.
12010
12011 2010-06-02  Eric Blake  <eblake@redhat.com>
12012
12013         time: work with mingw + pthreads-win32 library
12014         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12015         if timespec is defined only in pthread.h.
12016         * modules/time (Makefile.am): Substitute it.
12017         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12018         <pthread.h>, when needed.
12019         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12020         from the library.
12021
12022 2010-05-31  Bruno Haible  <bruno@clisp.org>
12023
12024         Avoid expanding two macros in the wrong order.
12025         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12026         gl_LIBUNISTRING if it is defined.
12027         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12028         autoconf >= 2.64.
12029         Reported by Ludovic Courtès <ludo@gnu.org>.
12030
12031 2010-05-27  Jim Meyering  <meyering@redhat.com>
12032
12033         maint.mk: also prohibit "#undef" of always-defined symbols
12034         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12035         Allow more than one space before the symbol name.
12036         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12037         the regexp uses alternation.
12038
12039 2010-05-26  Eric Blake  <eblake@redhat.com>
12040
12041         maint.mk: avoid echo -e
12042         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12043         Convert all uses of echo -* to printf.
12044         Reported by Matthias Bolte.
12045
12046 2010-05-25  Bruno Haible  <bruno@clisp.org>
12047
12048         Update to GNU gettext 0.18, part 2.
12049         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12050         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12051
12052 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12053
12054         Add missing include in test-pwrite.c.
12055         * tests/test-pwrite.c: Include string.h, for strcmp.
12056
12057 2010-05-24  Bruno Haible  <bruno@clisp.org>
12058
12059         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12060
12061 2010-05-24  Bruno Haible  <bruno@clisp.org>
12062
12063         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12064         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12065         iconveh_error argument.
12066         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12067         U_STRCONV_TO_LOCALE.
12068         * lib/unistr/u16-strcoll.c: Likewise.
12069         * lib/unistr/u32-strcoll.c: Likewise.
12070         * modules/unistr/u8-strcoll (Depends-on): Add
12071         uniconv/u8-strconv-to-enc, localcharset. Remove
12072         uniconv/u8-strconv-to-locale.
12073         (configure.ac): Bump version number.
12074         * modules/unistr/u16-strcoll (Depends-on): Add
12075         uniconv/u16-strconv-to-enc, localcharset. Remove
12076         uniconv/u16-strconv-to-locale.
12077         (configure.ac): Bump version number.
12078         * modules/unistr/u32-strcoll (Depends-on): Add
12079         uniconv/u32-strconv-to-enc, localcharset. Remove
12080         uniconv/u32-strconv-to-locale.
12081         (configure.ac): Bump version number.
12082
12083 2010-05-24  Bruno Haible  <bruno@clisp.org>
12084
12085         Avoid a test failure on NetBSD 5.0.
12086         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12087         an iconv() bug.
12088
12089 2010-05-24  Bruno Haible  <bruno@clisp.org>
12090
12091         Adjust #include directive style.
12092         * modules/regex (Includes): Recommend to write <regex.h>.
12093
12094 2010-05-24  Bruno Haible  <bruno@clisp.org>
12095
12096         regex: Don't require alloca.
12097         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12098         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12099         only inside if (0).
12100
12101 2010-05-23  Jim Meyering  <meyering@redhat.com>
12102
12103         test-renameat.c: include <sys/stat.h>
12104         * tests/test-renameat.c: Include <sys/stat.h>; required for
12105         definition of S_IS* macros.
12106
12107 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12108
12109         Update maintainer documentation for 'relocatable-prog' module.
12110         * doc/relocatable-maint.texi: Update.
12111         Comments by Bruno Haible.
12112
12113 2010-05-23  Bruno Haible  <bruno@clisp.org>
12114
12115         git-merge-changelog: Enable --split-merged-entry by default.
12116         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12117         (usage): Don't mention this option any more.
12118         Reported by Ralf Wildenhues.
12119
12120 2010-05-23  Jim Meyering  <meyering@redhat.com>
12121
12122         test-pwrite: do not leave behind a test file named "out"
12123         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12124         The trivial-looking use of init.sh is really necessary.
12125         It ensures that the temporary file, "out", is created in
12126         a temporary directory, and removed upon termination.
12127         * tests/test-pwrite.sh: Re-add file.
12128         * modules/pwrite-tests: Reference it.
12129
12130 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12131
12132         Fix output redirection buglet in init.sh.
12133         * tests/init.sh: Fix redirection of stderr.
12134
12135 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12136
12137         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12138
12139 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12140
12141         * modules/valgrind-tests: New file.
12142         * m4/valgrind-tests.m4: New file.
12143         * doc/valgrind-tests.texi: New file.
12144         * doc/gnulib.texi (Running self-tests under valgrind): New
12145         section.
12146
12147 2010-05-19  Bruno Haible  <bruno@clisp.org>
12148
12149         Clean up dead code in recent commit.
12150         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12151         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12152         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12153         Suggested by Paolo Bonzini.
12154
12155 2010-05-19  Bruno Haible  <bruno@clisp.org>
12156
12157         Avoid valgrind error reports from libunistring.
12158         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12159         * modules/libunistring (Files): Add it.
12160         * modules/libunistring-optional (Files): Likewise.
12161
12162 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12163             Bruno Haible  <bruno@clisp.org>
12164
12165         New module 'libunistring-optional'.
12166         * modules/libunistring-optional: New file.
12167         * m4/libunistring-base.m4: New file.
12168         * m4/libunistring-optional.m4: New file.
12169         * lib/unicase.in.h: Renamed from lib/unicase.h.
12170         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12171         * lib/unictype.in.h: Renamed from lib/unictype.h.
12172         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12173         * lib/uniname.in.h: Renamed from lib/uniname.h.
12174         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12175         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12176         * lib/unistr.in.h: Renamed from lib/unistr.h.
12177         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12178         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12179         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12180         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12181         gl_LIBUNISTRING. If the library was found, determine the installed
12182         version and set LIBUNISTRING_VERSION.
12183         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12184         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12185         handle a configuration option --with-included-libunistring.
12186         * modules/libunistring (Files): Add m4/absolute-header.m4.
12187         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12188         Add m4/libunistring-base.m4.
12189         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12190         (Makefile.am): Build unicase.h from unicase.in.h.
12191         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12192         Add m4/libunistring-base.m4.
12193         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12194         (Makefile.am): Build uniconv.h from uniconv.in.h.
12195         * modules/unictype/base (Files): Use unictype.in.h instead of
12196         unictype.h. Add m4/libunistring-base.m4.
12197         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12198         (Makefile.am): Build unictype.h from unictype.in.h.
12199         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12200         Add m4/libunistring-base.m4.
12201         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12202         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12203         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12204         Add m4/libunistring-base.m4.
12205         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12206         (Makefile.am): Build uniname.h from uniname.in.h.
12207         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12208         Add m4/libunistring-base.m4.
12209         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12210         (Makefile.am): Build uninorm.h from uninorm.in.h.
12211         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12212         unistdio.h. Add m4/libunistring-base.m4.
12213         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12214         (Makefile.am): Build unistdio.h from unistdio.in.h.
12215         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12216         Add m4/libunistring-base.m4.
12217         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12218         (Makefile.am): Build unistr.h from unistr.in.h.
12219         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12220         Add m4/libunistring-base.m4.
12221         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12222         (Makefile.am): Build unitypes.h from unitypes.in.h.
12223         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12224         Add m4/libunistring-base.m4.
12225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12226         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12227         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12228         uniwidth.h. Add m4/libunistring-base.m4.
12229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12230         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12231         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12232         instead of augmenting lib_SOURCES.
12233         * modules/unicase/empty-suffix-context: Likewise.
12234         * modules/unicase/locale-language: Likewise.
12235         * modules/unicase/tolower: Likewise.
12236         * modules/unicase/totitle: Likewise.
12237         * modules/unicase/toupper: Likewise.
12238         * modules/unicase/u8-casecmp: Likewise.
12239         * modules/unicase/u8-casecoll: Likewise.
12240         * modules/unicase/u8-casefold: Likewise.
12241         * modules/unicase/u8-casexfrm: Likewise.
12242         * modules/unicase/u8-ct-casefold: Likewise.
12243         * modules/unicase/u8-ct-tolower: Likewise.
12244         * modules/unicase/u8-ct-totitle: Likewise.
12245         * modules/unicase/u8-ct-toupper: Likewise.
12246         * modules/unicase/u8-is-cased: Likewise.
12247         * modules/unicase/u8-is-casefolded: Likewise.
12248         * modules/unicase/u8-is-lowercase: Likewise.
12249         * modules/unicase/u8-is-titlecase: Likewise.
12250         * modules/unicase/u8-is-uppercase: Likewise.
12251         * modules/unicase/u8-prefix-context: Likewise.
12252         * modules/unicase/u8-suffix-context: Likewise.
12253         * modules/unicase/u8-tolower: Likewise.
12254         * modules/unicase/u8-totitle: Likewise.
12255         * modules/unicase/u8-toupper: Likewise.
12256         * modules/unicase/u16-casecmp: Likewise.
12257         * modules/unicase/u16-casecoll: Likewise.
12258         * modules/unicase/u16-casefold: Likewise.
12259         * modules/unicase/u16-casexfrm: Likewise.
12260         * modules/unicase/u16-ct-casefold: Likewise.
12261         * modules/unicase/u16-ct-tolower: Likewise.
12262         * modules/unicase/u16-ct-totitle: Likewise.
12263         * modules/unicase/u16-ct-toupper: Likewise.
12264         * modules/unicase/u16-is-cased: Likewise.
12265         * modules/unicase/u16-is-casefolded: Likewise.
12266         * modules/unicase/u16-is-lowercase: Likewise.
12267         * modules/unicase/u16-is-titlecase: Likewise.
12268         * modules/unicase/u16-is-uppercase: Likewise.
12269         * modules/unicase/u16-prefix-context: Likewise.
12270         * modules/unicase/u16-suffix-context: Likewise.
12271         * modules/unicase/u16-tolower: Likewise.
12272         * modules/unicase/u16-totitle: Likewise.
12273         * modules/unicase/u16-toupper: Likewise.
12274         * modules/unicase/u32-casecmp: Likewise.
12275         * modules/unicase/u32-casecoll: Likewise.
12276         * modules/unicase/u32-casefold: Likewise.
12277         * modules/unicase/u32-casexfrm: Likewise.
12278         * modules/unicase/u32-ct-casefold: Likewise.
12279         * modules/unicase/u32-ct-tolower: Likewise.
12280         * modules/unicase/u32-ct-totitle: Likewise.
12281         * modules/unicase/u32-ct-toupper: Likewise.
12282         * modules/unicase/u32-is-cased: Likewise.
12283         * modules/unicase/u32-is-casefolded: Likewise.
12284         * modules/unicase/u32-is-lowercase: Likewise.
12285         * modules/unicase/u32-is-titlecase: Likewise.
12286         * modules/unicase/u32-is-uppercase: Likewise.
12287         * modules/unicase/u32-prefix-context: Likewise.
12288         * modules/unicase/u32-suffix-context: Likewise.
12289         * modules/unicase/u32-tolower: Likewise.
12290         * modules/unicase/u32-totitle: Likewise.
12291         * modules/unicase/u32-toupper: Likewise.
12292         * modules/unicase/ulc-casecmp: Likewise.
12293         * modules/unicase/ulc-casecoll: Likewise.
12294         * modules/unicase/ulc-casexfrm: Likewise.
12295         * modules/uniconv/u8-conv-from-enc: Likewise.
12296         * modules/uniconv/u8-conv-to-enc: Likewise.
12297         * modules/uniconv/u8-strconv-from-enc: Likewise.
12298         * modules/uniconv/u8-strconv-from-locale: Likewise.
12299         * modules/uniconv/u8-strconv-to-enc: Likewise.
12300         * modules/uniconv/u8-strconv-to-locale: Likewise.
12301         * modules/uniconv/u16-conv-from-enc: Likewise.
12302         * modules/uniconv/u16-conv-to-enc: Likewise.
12303         * modules/uniconv/u16-strconv-from-enc: Likewise.
12304         * modules/uniconv/u16-strconv-from-locale: Likewise.
12305         * modules/uniconv/u16-strconv-to-enc: Likewise.
12306         * modules/uniconv/u16-strconv-to-locale: Likewise.
12307         * modules/uniconv/u32-conv-from-enc: Likewise.
12308         * modules/uniconv/u32-conv-to-enc: Likewise.
12309         * modules/uniconv/u32-strconv-from-enc: Likewise.
12310         * modules/uniconv/u32-strconv-from-locale: Likewise.
12311         * modules/uniconv/u32-strconv-to-enc: Likewise.
12312         * modules/uniconv/u32-strconv-to-locale: Likewise.
12313         * modules/unictype/bidicategory-byname: Likewise.
12314         * modules/unictype/bidicategory-name: Likewise.
12315         * modules/unictype/bidicategory-of: Likewise.
12316         * modules/unictype/bidicategory-test: Likewise.
12317         * modules/unictype/block-list: Likewise.
12318         * modules/unictype/block-test: Likewise.
12319         * modules/unictype/category-C: Likewise.
12320         * modules/unictype/category-Cc: Likewise.
12321         * modules/unictype/category-Cf: Likewise.
12322         * modules/unictype/category-Cn: Likewise.
12323         * modules/unictype/category-Co: Likewise.
12324         * modules/unictype/category-Cs: Likewise.
12325         * modules/unictype/category-L: Likewise.
12326         * modules/unictype/category-Ll: Likewise.
12327         * modules/unictype/category-Lm: Likewise.
12328         * modules/unictype/category-Lo: Likewise.
12329         * modules/unictype/category-Lt: Likewise.
12330         * modules/unictype/category-Lu: Likewise.
12331         * modules/unictype/category-M: Likewise.
12332         * modules/unictype/category-Mc: Likewise.
12333         * modules/unictype/category-Me: Likewise.
12334         * modules/unictype/category-Mn: Likewise.
12335         * modules/unictype/category-N: Likewise.
12336         * modules/unictype/category-Nd: Likewise.
12337         * modules/unictype/category-Nl: Likewise.
12338         * modules/unictype/category-No: Likewise.
12339         * modules/unictype/category-P: Likewise.
12340         * modules/unictype/category-Pc: Likewise.
12341         * modules/unictype/category-Pd: Likewise.
12342         * modules/unictype/category-Pe: Likewise.
12343         * modules/unictype/category-Pf: Likewise.
12344         * modules/unictype/category-Pi: Likewise.
12345         * modules/unictype/category-Po: Likewise.
12346         * modules/unictype/category-Ps: Likewise.
12347         * modules/unictype/category-S: Likewise.
12348         * modules/unictype/category-Sc: Likewise.
12349         * modules/unictype/category-Sk: Likewise.
12350         * modules/unictype/category-Sm: Likewise.
12351         * modules/unictype/category-So: Likewise.
12352         * modules/unictype/category-Z: Likewise.
12353         * modules/unictype/category-Zl: Likewise.
12354         * modules/unictype/category-Zp: Likewise.
12355         * modules/unictype/category-Zs: Likewise.
12356         * modules/unictype/category-and: Likewise.
12357         * modules/unictype/category-and-not: Likewise.
12358         * modules/unictype/category-byname: Likewise.
12359         * modules/unictype/category-name: Likewise.
12360         * modules/unictype/category-none: Likewise.
12361         * modules/unictype/category-of: Likewise.
12362         * modules/unictype/category-or: Likewise.
12363         * modules/unictype/category-test: Likewise.
12364         * modules/unictype/combining-class: Likewise.
12365         * modules/unictype/ctype-alnum: Likewise.
12366         * modules/unictype/ctype-alpha: Likewise.
12367         * modules/unictype/ctype-blank: Likewise.
12368         * modules/unictype/ctype-cntrl: Likewise.
12369         * modules/unictype/ctype-digit: Likewise.
12370         * modules/unictype/ctype-graph: Likewise.
12371         * modules/unictype/ctype-lower: Likewise.
12372         * modules/unictype/ctype-print: Likewise.
12373         * modules/unictype/ctype-punct: Likewise.
12374         * modules/unictype/ctype-space: Likewise.
12375         * modules/unictype/ctype-upper: Likewise.
12376         * modules/unictype/ctype-xdigit: Likewise.
12377         * modules/unictype/decimal-digit: Likewise.
12378         * modules/unictype/digit: Likewise.
12379         * modules/unictype/mirror: Likewise.
12380         * modules/unictype/numeric: Likewise.
12381         * modules/unictype/property-alphabetic: Likewise.
12382         * modules/unictype/property-ascii-hex-digit: Likewise.
12383         * modules/unictype/property-bidi-arabic-digit: Likewise.
12384         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12385         * modules/unictype/property-bidi-block-separator: Likewise.
12386         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12387         * modules/unictype/property-bidi-common-separator: Likewise.
12388         * modules/unictype/property-bidi-control: Likewise.
12389         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12390         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12391         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12392         * modules/unictype/property-bidi-european-digit: Likewise.
12393         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12394         * modules/unictype/property-bidi-left-to-right: Likewise.
12395         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12396         * modules/unictype/property-bidi-other-neutral: Likewise.
12397         * modules/unictype/property-bidi-pdf: Likewise.
12398         * modules/unictype/property-bidi-segment-separator: Likewise.
12399         * modules/unictype/property-bidi-whitespace: Likewise.
12400         * modules/unictype/property-byname: Likewise.
12401         * modules/unictype/property-combining: Likewise.
12402         * modules/unictype/property-composite: Likewise.
12403         * modules/unictype/property-currency-symbol: Likewise.
12404         * modules/unictype/property-dash: Likewise.
12405         * modules/unictype/property-decimal-digit: Likewise.
12406         * modules/unictype/property-default-ignorable-code-point: Likewise.
12407         * modules/unictype/property-deprecated: Likewise.
12408         * modules/unictype/property-diacritic: Likewise.
12409         * modules/unictype/property-extender: Likewise.
12410         * modules/unictype/property-format-control: Likewise.
12411         * modules/unictype/property-grapheme-base: Likewise.
12412         * modules/unictype/property-grapheme-extend: Likewise.
12413         * modules/unictype/property-grapheme-link: Likewise.
12414         * modules/unictype/property-hex-digit: Likewise.
12415         * modules/unictype/property-hyphen: Likewise.
12416         * modules/unictype/property-id-continue: Likewise.
12417         * modules/unictype/property-id-start: Likewise.
12418         * modules/unictype/property-ideographic: Likewise.
12419         * modules/unictype/property-ids-binary-operator: Likewise.
12420         * modules/unictype/property-ids-trinary-operator: Likewise.
12421         * modules/unictype/property-ignorable-control: Likewise.
12422         * modules/unictype/property-iso-control: Likewise.
12423         * modules/unictype/property-join-control: Likewise.
12424         * modules/unictype/property-left-of-pair: Likewise.
12425         * modules/unictype/property-line-separator: Likewise.
12426         * modules/unictype/property-logical-order-exception: Likewise.
12427         * modules/unictype/property-lowercase: Likewise.
12428         * modules/unictype/property-math: Likewise.
12429         * modules/unictype/property-non-break: Likewise.
12430         * modules/unictype/property-not-a-character: Likewise.
12431         * modules/unictype/property-numeric: Likewise.
12432         * modules/unictype/property-other-alphabetic: Likewise.
12433         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12434         * modules/unictype/property-other-grapheme-extend: Likewise.
12435         * modules/unictype/property-other-id-continue: Likewise.
12436         * modules/unictype/property-other-id-start: Likewise.
12437         * modules/unictype/property-other-lowercase: Likewise.
12438         * modules/unictype/property-other-math: Likewise.
12439         * modules/unictype/property-other-uppercase: Likewise.
12440         * modules/unictype/property-paired-punctuation: Likewise.
12441         * modules/unictype/property-paragraph-separator: Likewise.
12442         * modules/unictype/property-pattern-syntax: Likewise.
12443         * modules/unictype/property-pattern-white-space: Likewise.
12444         * modules/unictype/property-private-use: Likewise.
12445         * modules/unictype/property-punctuation: Likewise.
12446         * modules/unictype/property-quotation-mark: Likewise.
12447         * modules/unictype/property-radical: Likewise.
12448         * modules/unictype/property-sentence-terminal: Likewise.
12449         * modules/unictype/property-soft-dotted: Likewise.
12450         * modules/unictype/property-space: Likewise.
12451         * modules/unictype/property-terminal-punctuation: Likewise.
12452         * modules/unictype/property-test: Likewise.
12453         * modules/unictype/property-titlecase: Likewise.
12454         * modules/unictype/property-unassigned-code-value: Likewise.
12455         * modules/unictype/property-unified-ideograph: Likewise.
12456         * modules/unictype/property-uppercase: Likewise.
12457         * modules/unictype/property-variation-selector: Likewise.
12458         * modules/unictype/property-white-space: Likewise.
12459         * modules/unictype/property-xid-continue: Likewise.
12460         * modules/unictype/property-xid-start: Likewise.
12461         * modules/unictype/property-zero-width: Likewise.
12462         * modules/unictype/scripts: Likewise.
12463         * modules/unictype/syntax-c-ident: Likewise.
12464         * modules/unictype/syntax-c-whitespace: Likewise.
12465         * modules/unictype/syntax-java-ident: Likewise.
12466         * modules/unictype/syntax-java-whitespace: Likewise.
12467         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12468         * modules/unilbrk/u8-width-linebreaks: Likewise.
12469         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12470         * modules/unilbrk/u16-width-linebreaks: Likewise.
12471         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12472         * modules/unilbrk/u32-width-linebreaks: Likewise.
12473         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12474         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12475         * modules/uniname/uniname: Likewise.
12476         * modules/uninorm/canonical-decomposition: Likewise.
12477         * modules/uninorm/composition: Likewise.
12478         * modules/uninorm/decomposing-form: Likewise.
12479         * modules/uninorm/decomposition: Likewise.
12480         * modules/uninorm/filter: Likewise.
12481         * modules/uninorm/nfc: Likewise.
12482         * modules/uninorm/nfd: Likewise.
12483         * modules/uninorm/nfkc: Likewise.
12484         * modules/uninorm/nfkd: Likewise.
12485         * modules/uninorm/u8-normalize: Likewise.
12486         * modules/uninorm/u8-normcmp: Likewise.
12487         * modules/uninorm/u8-normcoll: Likewise.
12488         * modules/uninorm/u8-normxfrm: Likewise.
12489         * modules/uninorm/u16-normalize: Likewise.
12490         * modules/uninorm/u16-normcmp: Likewise.
12491         * modules/uninorm/u16-normcoll: Likewise.
12492         * modules/uninorm/u16-normxfrm: Likewise.
12493         * modules/uninorm/u32-normalize: Likewise.
12494         * modules/uninorm/u32-normcmp: Likewise.
12495         * modules/uninorm/u32-normcoll: Likewise.
12496         * modules/uninorm/u32-normxfrm: Likewise.
12497         * modules/unistdio/u8-asnprintf: Likewise.
12498         * modules/unistdio/u8-asprintf: Likewise.
12499         * modules/unistdio/u8-snprintf: Likewise.
12500         * modules/unistdio/u8-sprintf: Likewise.
12501         * modules/unistdio/u8-u8-asnprintf: Likewise.
12502         * modules/unistdio/u8-u8-asprintf: Likewise.
12503         * modules/unistdio/u8-u8-snprintf: Likewise.
12504         * modules/unistdio/u8-u8-sprintf: Likewise.
12505         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12506         * modules/unistdio/u8-u8-vasprintf: Likewise.
12507         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12508         * modules/unistdio/u8-u8-vsprintf: Likewise.
12509         * modules/unistdio/u8-vasnprintf: Likewise.
12510         * modules/unistdio/u8-vasprintf: Likewise.
12511         * modules/unistdio/u8-vsnprintf: Likewise.
12512         * modules/unistdio/u8-vsprintf: Likewise.
12513         * modules/unistdio/u16-asnprintf: Likewise.
12514         * modules/unistdio/u16-asprintf: Likewise.
12515         * modules/unistdio/u16-snprintf: Likewise.
12516         * modules/unistdio/u16-sprintf: Likewise.
12517         * modules/unistdio/u16-u16-asnprintf: Likewise.
12518         * modules/unistdio/u16-u16-asprintf: Likewise.
12519         * modules/unistdio/u16-u16-snprintf: Likewise.
12520         * modules/unistdio/u16-u16-sprintf: Likewise.
12521         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12522         * modules/unistdio/u16-u16-vasprintf: Likewise.
12523         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12524         * modules/unistdio/u16-u16-vsprintf: Likewise.
12525         * modules/unistdio/u16-vasnprintf: Likewise.
12526         * modules/unistdio/u16-vasprintf: Likewise.
12527         * modules/unistdio/u16-vsnprintf: Likewise.
12528         * modules/unistdio/u16-vsprintf: Likewise.
12529         * modules/unistdio/u32-asnprintf: Likewise.
12530         * modules/unistdio/u32-asprintf: Likewise.
12531         * modules/unistdio/u32-snprintf: Likewise.
12532         * modules/unistdio/u32-sprintf: Likewise.
12533         * modules/unistdio/u32-u32-asnprintf: Likewise.
12534         * modules/unistdio/u32-u32-asprintf: Likewise.
12535         * modules/unistdio/u32-u32-snprintf: Likewise.
12536         * modules/unistdio/u32-u32-sprintf: Likewise.
12537         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12538         * modules/unistdio/u32-u32-vasprintf: Likewise.
12539         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12540         * modules/unistdio/u32-u32-vsprintf: Likewise.
12541         * modules/unistdio/u32-vasnprintf: Likewise.
12542         * modules/unistdio/u32-vasprintf: Likewise.
12543         * modules/unistdio/u32-vsnprintf: Likewise.
12544         * modules/unistdio/u32-vsprintf: Likewise.
12545         * modules/unistdio/ulc-asnprintf: Likewise.
12546         * modules/unistdio/ulc-asprintf: Likewise.
12547         * modules/unistdio/ulc-fprintf: Likewise.
12548         * modules/unistdio/ulc-snprintf: Likewise.
12549         * modules/unistdio/ulc-sprintf: Likewise.
12550         * modules/unistdio/ulc-vasnprintf: Likewise.
12551         * modules/unistdio/ulc-vasprintf: Likewise.
12552         * modules/unistdio/ulc-vfprintf: Likewise.
12553         * modules/unistdio/ulc-vsnprintf: Likewise.
12554         * modules/unistdio/ulc-vsprintf: Likewise.
12555         * modules/unistr/u8-check: Likewise.
12556         * modules/unistr/u8-chr: Likewise.
12557         * modules/unistr/u8-cmp: Likewise.
12558         * modules/unistr/u8-cmp2: Likewise.
12559         * modules/unistr/u8-cpy: Likewise.
12560         * modules/unistr/u8-cpy-alloc: Likewise.
12561         * modules/unistr/u8-endswith: Likewise.
12562         * modules/unistr/u8-mblen: Likewise.
12563         * modules/unistr/u8-mbsnlen: Likewise.
12564         * modules/unistr/u8-mbtouc: Likewise.
12565         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12566         * modules/unistr/u8-mbtoucr: Likewise.
12567         * modules/unistr/u8-move: Likewise.
12568         * modules/unistr/u8-next: Likewise.
12569         * modules/unistr/u8-prev: Likewise.
12570         * modules/unistr/u8-set: Likewise.
12571         * modules/unistr/u8-startswith: Likewise.
12572         * modules/unistr/u8-stpcpy: Likewise.
12573         * modules/unistr/u8-stpncpy: Likewise.
12574         * modules/unistr/u8-strcat: Likewise.
12575         * modules/unistr/u8-strchr: Likewise.
12576         * modules/unistr/u8-strcmp: Likewise.
12577         * modules/unistr/u8-strcoll: Likewise.
12578         * modules/unistr/u8-strcpy: Likewise.
12579         * modules/unistr/u8-strcspn: Likewise.
12580         * modules/unistr/u8-strdup: Likewise.
12581         * modules/unistr/u8-strlen: Likewise.
12582         * modules/unistr/u8-strmblen: Likewise.
12583         * modules/unistr/u8-strmbtouc: Likewise.
12584         * modules/unistr/u8-strncat: Likewise.
12585         * modules/unistr/u8-strncmp: Likewise.
12586         * modules/unistr/u8-strncpy: Likewise.
12587         * modules/unistr/u8-strnlen: Likewise.
12588         * modules/unistr/u8-strpbrk: Likewise.
12589         * modules/unistr/u8-strrchr: Likewise.
12590         * modules/unistr/u8-strspn: Likewise.
12591         * modules/unistr/u8-strstr: Likewise.
12592         * modules/unistr/u8-strtok: Likewise.
12593         * modules/unistr/u8-to-u16: Likewise.
12594         * modules/unistr/u8-to-u32: Likewise.
12595         * modules/unistr/u8-uctomb: Likewise.
12596         * modules/unistr/u16-check: Likewise.
12597         * modules/unistr/u16-chr: Likewise.
12598         * modules/unistr/u16-cmp: Likewise.
12599         * modules/unistr/u16-cmp2: Likewise.
12600         * modules/unistr/u16-cpy: Likewise.
12601         * modules/unistr/u16-cpy-alloc: Likewise.
12602         * modules/unistr/u16-endswith: Likewise.
12603         * modules/unistr/u16-mblen: Likewise.
12604         * modules/unistr/u16-mbsnlen: Likewise.
12605         * modules/unistr/u16-mbtouc: Likewise.
12606         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12607         * modules/unistr/u16-mbtoucr: Likewise.
12608         * modules/unistr/u16-move: Likewise.
12609         * modules/unistr/u16-next: Likewise.
12610         * modules/unistr/u16-prev: Likewise.
12611         * modules/unistr/u16-set: Likewise.
12612         * modules/unistr/u16-startswith: Likewise.
12613         * modules/unistr/u16-stpcpy: Likewise.
12614         * modules/unistr/u16-stpncpy: Likewise.
12615         * modules/unistr/u16-strcat: Likewise.
12616         * modules/unistr/u16-strchr: Likewise.
12617         * modules/unistr/u16-strcmp: Likewise.
12618         * modules/unistr/u16-strcoll: Likewise.
12619         * modules/unistr/u16-strcpy: Likewise.
12620         * modules/unistr/u16-strcspn: Likewise.
12621         * modules/unistr/u16-strdup: Likewise.
12622         * modules/unistr/u16-strlen: Likewise.
12623         * modules/unistr/u16-strmblen: Likewise.
12624         * modules/unistr/u16-strmbtouc: Likewise.
12625         * modules/unistr/u16-strncat: Likewise.
12626         * modules/unistr/u16-strncmp: Likewise.
12627         * modules/unistr/u16-strncpy: Likewise.
12628         * modules/unistr/u16-strnlen: Likewise.
12629         * modules/unistr/u16-strpbrk: Likewise.
12630         * modules/unistr/u16-strrchr: Likewise.
12631         * modules/unistr/u16-strspn: Likewise.
12632         * modules/unistr/u16-strstr: Likewise.
12633         * modules/unistr/u16-strtok: Likewise.
12634         * modules/unistr/u16-to-u32: Likewise.
12635         * modules/unistr/u16-to-u8: Likewise.
12636         * modules/unistr/u16-uctomb: Likewise.
12637         * modules/unistr/u32-check: Likewise.
12638         * modules/unistr/u32-chr: Likewise.
12639         * modules/unistr/u32-cmp: Likewise.
12640         * modules/unistr/u32-cmp2: Likewise.
12641         * modules/unistr/u32-cpy: Likewise.
12642         * modules/unistr/u32-cpy-alloc: Likewise.
12643         * modules/unistr/u32-endswith: Likewise.
12644         * modules/unistr/u32-mblen: Likewise.
12645         * modules/unistr/u32-mbsnlen: Likewise.
12646         * modules/unistr/u32-mbtouc: Likewise.
12647         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12648         * modules/unistr/u32-mbtoucr: Likewise.
12649         * modules/unistr/u32-move: Likewise.
12650         * modules/unistr/u32-next: Likewise.
12651         * modules/unistr/u32-prev: Likewise.
12652         * modules/unistr/u32-set: Likewise.
12653         * modules/unistr/u32-startswith: Likewise.
12654         * modules/unistr/u32-stpcpy: Likewise.
12655         * modules/unistr/u32-stpncpy: Likewise.
12656         * modules/unistr/u32-strcat: Likewise.
12657         * modules/unistr/u32-strchr: Likewise.
12658         * modules/unistr/u32-strcmp: Likewise.
12659         * modules/unistr/u32-strcoll: Likewise.
12660         * modules/unistr/u32-strcpy: Likewise.
12661         * modules/unistr/u32-strcspn: Likewise.
12662         * modules/unistr/u32-strdup: Likewise.
12663         * modules/unistr/u32-strlen: Likewise.
12664         * modules/unistr/u32-strmblen: Likewise.
12665         * modules/unistr/u32-strmbtouc: Likewise.
12666         * modules/unistr/u32-strncat: Likewise.
12667         * modules/unistr/u32-strncmp: Likewise.
12668         * modules/unistr/u32-strncpy: Likewise.
12669         * modules/unistr/u32-strnlen: Likewise.
12670         * modules/unistr/u32-strpbrk: Likewise.
12671         * modules/unistr/u32-strrchr: Likewise.
12672         * modules/unistr/u32-strspn: Likewise.
12673         * modules/unistr/u32-strstr: Likewise.
12674         * modules/unistr/u32-strtok: Likewise.
12675         * modules/unistr/u32-to-u16: Likewise.
12676         * modules/unistr/u32-to-u8: Likewise.
12677         * modules/unistr/u32-uctomb: Likewise.
12678         * modules/uniwbrk/u8-wordbreaks: Likewise.
12679         * modules/uniwbrk/u16-wordbreaks: Likewise.
12680         * modules/uniwbrk/u32-wordbreaks: Likewise.
12681         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12682         * modules/uniwbrk/wordbreak-property: Likewise.
12683         * modules/uniwidth/u8-strwidth: Likewise.
12684         * modules/uniwidth/u8-width: Likewise.
12685         * modules/uniwidth/u16-strwidth: Likewise.
12686         * modules/uniwidth/u16-width: Likewise.
12687         * modules/uniwidth/u32-strwidth: Likewise.
12688         * modules/uniwidth/u32-width: Likewise.
12689         * modules/uniwidth/width: Likewise.
12690         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12691         with $(LIBUNISTRING).
12692         * modules/unicase/ignorable-tests: Likewise.
12693         * modules/unicase/locale-language-tests: Likewise.
12694         * modules/unicase/tolower-tests: Likewise.
12695         * modules/unicase/totitle-tests: Likewise.
12696         * modules/unicase/toupper-tests: Likewise.
12697         * modules/unicase/u8-casecmp-tests: Likewise.
12698         * modules/unicase/u8-casecoll-tests: Likewise.
12699         * modules/unicase/u8-casefold-tests: Likewise.
12700         * modules/unicase/u8-is-cased-tests: Likewise.
12701         * modules/unicase/u8-is-casefolded-tests: Likewise.
12702         * modules/unicase/u8-is-lowercase-tests: Likewise.
12703         * modules/unicase/u8-is-titlecase-tests: Likewise.
12704         * modules/unicase/u8-is-uppercase-tests: Likewise.
12705         * modules/unicase/u8-tolower-tests: Likewise.
12706         * modules/unicase/u8-totitle-tests: Likewise.
12707         * modules/unicase/u8-toupper-tests: Likewise.
12708         * modules/unicase/u16-casecmp-tests: Likewise.
12709         * modules/unicase/u16-casecoll-tests: Likewise.
12710         * modules/unicase/u16-casefold-tests: Likewise.
12711         * modules/unicase/u16-is-cased-tests: Likewise.
12712         * modules/unicase/u16-is-casefolded-tests: Likewise.
12713         * modules/unicase/u16-is-lowercase-tests: Likewise.
12714         * modules/unicase/u16-is-titlecase-tests: Likewise.
12715         * modules/unicase/u16-is-uppercase-tests: Likewise.
12716         * modules/unicase/u16-tolower-tests: Likewise.
12717         * modules/unicase/u16-totitle-tests: Likewise.
12718         * modules/unicase/u16-toupper-tests: Likewise.
12719         * modules/unicase/u32-casecmp-tests: Likewise.
12720         * modules/unicase/u32-casecoll-tests: Likewise.
12721         * modules/unicase/u32-casefold-tests: Likewise.
12722         * modules/unicase/u32-is-cased-tests: Likewise.
12723         * modules/unicase/u32-is-casefolded-tests: Likewise.
12724         * modules/unicase/u32-is-lowercase-tests: Likewise.
12725         * modules/unicase/u32-is-titlecase-tests: Likewise.
12726         * modules/unicase/u32-is-uppercase-tests: Likewise.
12727         * modules/unicase/u32-tolower-tests: Likewise.
12728         * modules/unicase/u32-totitle-tests: Likewise.
12729         * modules/unicase/u32-toupper-tests: Likewise.
12730         * modules/unicase/ulc-casecmp-tests: Likewise.
12731         * modules/unicase/ulc-casecoll-tests: Likewise.
12732         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12733         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12734         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12735         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12736         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12737         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12738         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12739         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12740         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12741         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12742         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12743         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12744         * modules/unictype/bidicategory-byname-tests: Likewise.
12745         * modules/unictype/bidicategory-name-tests: Likewise.
12746         * modules/unictype/bidicategory-of-tests: Likewise.
12747         * modules/unictype/bidicategory-test-tests: Likewise.
12748         * modules/unictype/block-list-tests: Likewise.
12749         * modules/unictype/block-of-tests: Likewise.
12750         * modules/unictype/block-test-tests: Likewise.
12751         * modules/unictype/category-C-tests: Likewise.
12752         * modules/unictype/category-Cc-tests: Likewise.
12753         * modules/unictype/category-Cf-tests: Likewise.
12754         * modules/unictype/category-Cn-tests: Likewise.
12755         * modules/unictype/category-Co-tests: Likewise.
12756         * modules/unictype/category-Cs-tests: Likewise.
12757         * modules/unictype/category-L-tests: Likewise.
12758         * modules/unictype/category-Ll-tests: Likewise.
12759         * modules/unictype/category-Lm-tests: Likewise.
12760         * modules/unictype/category-Lo-tests: Likewise.
12761         * modules/unictype/category-Lt-tests: Likewise.
12762         * modules/unictype/category-Lu-tests: Likewise.
12763         * modules/unictype/category-M-tests: Likewise.
12764         * modules/unictype/category-Mc-tests: Likewise.
12765         * modules/unictype/category-Me-tests: Likewise.
12766         * modules/unictype/category-Mn-tests: Likewise.
12767         * modules/unictype/category-N-tests: Likewise.
12768         * modules/unictype/category-Nd-tests: Likewise.
12769         * modules/unictype/category-Nl-tests: Likewise.
12770         * modules/unictype/category-No-tests: Likewise.
12771         * modules/unictype/category-P-tests: Likewise.
12772         * modules/unictype/category-Pc-tests: Likewise.
12773         * modules/unictype/category-Pd-tests: Likewise.
12774         * modules/unictype/category-Pe-tests: Likewise.
12775         * modules/unictype/category-Pf-tests: Likewise.
12776         * modules/unictype/category-Pi-tests: Likewise.
12777         * modules/unictype/category-Po-tests: Likewise.
12778         * modules/unictype/category-Ps-tests: Likewise.
12779         * modules/unictype/category-S-tests: Likewise.
12780         * modules/unictype/category-Sc-tests: Likewise.
12781         * modules/unictype/category-Sk-tests: Likewise.
12782         * modules/unictype/category-Sm-tests: Likewise.
12783         * modules/unictype/category-So-tests: Likewise.
12784         * modules/unictype/category-Z-tests: Likewise.
12785         * modules/unictype/category-Zl-tests: Likewise.
12786         * modules/unictype/category-Zp-tests: Likewise.
12787         * modules/unictype/category-Zs-tests: Likewise.
12788         * modules/unictype/category-and-not-tests: Likewise.
12789         * modules/unictype/category-and-tests: Likewise.
12790         * modules/unictype/category-byname-tests: Likewise.
12791         * modules/unictype/category-name-tests: Likewise.
12792         * modules/unictype/category-none-tests: Likewise.
12793         * modules/unictype/category-of-tests: Likewise.
12794         * modules/unictype/category-or-tests: Likewise.
12795         * modules/unictype/category-test-withtable-tests: Likewise.
12796         * modules/unictype/combining-class-tests: Likewise.
12797         * modules/unictype/ctype-alnum-tests: Likewise.
12798         * modules/unictype/ctype-alpha-tests: Likewise.
12799         * modules/unictype/ctype-blank-tests: Likewise.
12800         * modules/unictype/ctype-cntrl-tests: Likewise.
12801         * modules/unictype/ctype-digit-tests: Likewise.
12802         * modules/unictype/ctype-graph-tests: Likewise.
12803         * modules/unictype/ctype-lower-tests: Likewise.
12804         * modules/unictype/ctype-print-tests: Likewise.
12805         * modules/unictype/ctype-punct-tests: Likewise.
12806         * modules/unictype/ctype-space-tests: Likewise.
12807         * modules/unictype/ctype-upper-tests: Likewise.
12808         * modules/unictype/ctype-xdigit-tests: Likewise.
12809         * modules/unictype/decimal-digit-tests: Likewise.
12810         * modules/unictype/digit-tests: Likewise.
12811         * modules/unictype/mirror-tests: Likewise.
12812         * modules/unictype/numeric-tests: Likewise.
12813         * modules/unictype/property-alphabetic-tests: Likewise.
12814         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12815         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12816         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12817         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12818         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12819         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12820         * modules/unictype/property-bidi-control-tests: Likewise.
12821         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12822         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12823         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12824         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12825         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12826         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12827         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12828         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12829         * modules/unictype/property-bidi-pdf-tests: Likewise.
12830         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12831         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12832         * modules/unictype/property-byname-tests: Likewise.
12833         * modules/unictype/property-combining-tests: Likewise.
12834         * modules/unictype/property-composite-tests: Likewise.
12835         * modules/unictype/property-currency-symbol-tests: Likewise.
12836         * modules/unictype/property-dash-tests: Likewise.
12837         * modules/unictype/property-decimal-digit-tests: Likewise.
12838         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12839         * modules/unictype/property-deprecated-tests: Likewise.
12840         * modules/unictype/property-diacritic-tests: Likewise.
12841         * modules/unictype/property-extender-tests: Likewise.
12842         * modules/unictype/property-format-control-tests: Likewise.
12843         * modules/unictype/property-grapheme-base-tests: Likewise.
12844         * modules/unictype/property-grapheme-extend-tests: Likewise.
12845         * modules/unictype/property-grapheme-link-tests: Likewise.
12846         * modules/unictype/property-hex-digit-tests: Likewise.
12847         * modules/unictype/property-hyphen-tests: Likewise.
12848         * modules/unictype/property-id-continue-tests: Likewise.
12849         * modules/unictype/property-id-start-tests: Likewise.
12850         * modules/unictype/property-ideographic-tests: Likewise.
12851         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12852         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12853         * modules/unictype/property-ignorable-control-tests: Likewise.
12854         * modules/unictype/property-iso-control-tests: Likewise.
12855         * modules/unictype/property-join-control-tests: Likewise.
12856         * modules/unictype/property-left-of-pair-tests: Likewise.
12857         * modules/unictype/property-line-separator-tests: Likewise.
12858         * modules/unictype/property-logical-order-exception-tests: Likewise.
12859         * modules/unictype/property-lowercase-tests: Likewise.
12860         * modules/unictype/property-math-tests: Likewise.
12861         * modules/unictype/property-non-break-tests: Likewise.
12862         * modules/unictype/property-not-a-character-tests: Likewise.
12863         * modules/unictype/property-numeric-tests: Likewise.
12864         * modules/unictype/property-other-alphabetic-tests: Likewise.
12865         * modules/unictype/property-other-default-ignorable-code-point-tests:
12866         Likewise.
12867         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12868         * modules/unictype/property-other-id-continue-tests: Likewise.
12869         * modules/unictype/property-other-id-start-tests: Likewise.
12870         * modules/unictype/property-other-lowercase-tests: Likewise.
12871         * modules/unictype/property-other-math-tests: Likewise.
12872         * modules/unictype/property-other-uppercase-tests: Likewise.
12873         * modules/unictype/property-paired-punctuation-tests: Likewise.
12874         * modules/unictype/property-paragraph-separator-tests: Likewise.
12875         * modules/unictype/property-pattern-syntax-tests: Likewise.
12876         * modules/unictype/property-pattern-white-space-tests: Likewise.
12877         * modules/unictype/property-private-use-tests: Likewise.
12878         * modules/unictype/property-punctuation-tests: Likewise.
12879         * modules/unictype/property-quotation-mark-tests: Likewise.
12880         * modules/unictype/property-radical-tests: Likewise.
12881         * modules/unictype/property-sentence-terminal-tests: Likewise.
12882         * modules/unictype/property-soft-dotted-tests: Likewise.
12883         * modules/unictype/property-space-tests: Likewise.
12884         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12885         * modules/unictype/property-test-tests: Likewise.
12886         * modules/unictype/property-titlecase-tests: Likewise.
12887         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12888         * modules/unictype/property-unified-ideograph-tests: Likewise.
12889         * modules/unictype/property-uppercase-tests: Likewise.
12890         * modules/unictype/property-variation-selector-tests: Likewise.
12891         * modules/unictype/property-white-space-tests: Likewise.
12892         * modules/unictype/property-xid-continue-tests: Likewise.
12893         * modules/unictype/property-xid-start-tests: Likewise.
12894         * modules/unictype/property-zero-width-tests: Likewise.
12895         * modules/unictype/scripts-tests: Likewise.
12896         * modules/unictype/syntax-c-ident-tests: Likewise.
12897         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12898         * modules/unictype/syntax-java-ident-tests: Likewise.
12899         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12900         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12901         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12902         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12903         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12904         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12905         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12906         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12907         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12908         * modules/uniname/uniname-tests: Likewise.
12909         * modules/uninorm/canonical-decomposition-tests: Likewise.
12910         * modules/uninorm/compat-decomposition-tests: Likewise.
12911         * modules/uninorm/composition-tests: Likewise.
12912         * modules/uninorm/decomposing-form-tests: Likewise.
12913         * modules/uninorm/decomposition-tests: Likewise.
12914         * modules/uninorm/filter-tests: Likewise.
12915         * modules/uninorm/nfc-tests: Likewise.
12916         * modules/uninorm/nfd-tests: Likewise.
12917         * modules/uninorm/nfkc-tests: Likewise.
12918         * modules/uninorm/nfkd-tests: Likewise.
12919         * modules/uninorm/u8-normcmp-tests: Likewise.
12920         * modules/uninorm/u8-normcoll-tests: Likewise.
12921         * modules/uninorm/u16-normcmp-tests: Likewise.
12922         * modules/uninorm/u16-normcoll-tests: Likewise.
12923         * modules/uninorm/u32-normcmp-tests: Likewise.
12924         * modules/uninorm/u32-normcoll-tests: Likewise.
12925         * modules/unistdio/u8-asnprintf-tests: Likewise.
12926         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12927         * modules/unistdio/u8-vasprintf-tests: Likewise.
12928         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12929         * modules/unistdio/u8-vsprintf-tests: Likewise.
12930         * modules/unistdio/u16-asnprintf-tests: Likewise.
12931         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12932         * modules/unistdio/u16-vasprintf-tests: Likewise.
12933         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12934         * modules/unistdio/u16-vsprintf-tests: Likewise.
12935         * modules/unistdio/u32-asnprintf-tests: Likewise.
12936         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12937         * modules/unistdio/u32-vasprintf-tests: Likewise.
12938         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12939         * modules/unistdio/u32-vsprintf-tests: Likewise.
12940         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12941         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12942         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12943         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12944         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12945         * modules/unistr/u8-check-tests: Likewise.
12946         * modules/unistr/u8-chr-tests: Likewise.
12947         * modules/unistr/u8-cmp-tests: Likewise.
12948         * modules/unistr/u8-cmp2-tests: Likewise.
12949         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12950         * modules/unistr/u8-cpy-tests: Likewise.
12951         * modules/unistr/u8-mblen-tests: Likewise.
12952         * modules/unistr/u8-mbsnlen-tests: Likewise.
12953         * modules/unistr/u8-mbtouc-tests: Likewise.
12954         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12955         * modules/unistr/u8-mbtoucr-tests: Likewise.
12956         * modules/unistr/u8-move-tests: Likewise.
12957         * modules/unistr/u8-next-tests: Likewise.
12958         * modules/unistr/u8-prev-tests: Likewise.
12959         * modules/unistr/u8-set-tests: Likewise.
12960         * modules/unistr/u8-stpcpy-tests: Likewise.
12961         * modules/unistr/u8-stpncpy-tests: Likewise.
12962         * modules/unistr/u8-strcat-tests: Likewise.
12963         * modules/unistr/u8-strcmp-tests: Likewise.
12964         * modules/unistr/u8-strcoll-tests: Likewise.
12965         * modules/unistr/u8-strcpy-tests: Likewise.
12966         * modules/unistr/u8-strdup-tests: Likewise.
12967         * modules/unistr/u8-strlen-tests: Likewise.
12968         * modules/unistr/u8-strmblen-tests: Likewise.
12969         * modules/unistr/u8-strmbtouc-tests: Likewise.
12970         * modules/unistr/u8-strncat-tests: Likewise.
12971         * modules/unistr/u8-strncmp-tests: Likewise.
12972         * modules/unistr/u8-strncpy-tests: Likewise.
12973         * modules/unistr/u8-strnlen-tests: Likewise.
12974         * modules/unistr/u8-to-u16-tests: Likewise.
12975         * modules/unistr/u8-to-u32-tests: Likewise.
12976         * modules/unistr/u8-uctomb-tests: Likewise.
12977         * modules/unistr/u16-check-tests: Likewise.
12978         * modules/unistr/u16-chr-tests: Likewise.
12979         * modules/unistr/u16-cmp-tests: Likewise.
12980         * modules/unistr/u16-cmp2-tests: Likewise.
12981         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12982         * modules/unistr/u16-cpy-tests: Likewise.
12983         * modules/unistr/u16-mblen-tests: Likewise.
12984         * modules/unistr/u16-mbsnlen-tests: Likewise.
12985         * modules/unistr/u16-mbtouc-tests: Likewise.
12986         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12987         * modules/unistr/u16-mbtoucr-tests: Likewise.
12988         * modules/unistr/u16-move-tests: Likewise.
12989         * modules/unistr/u16-next-tests: Likewise.
12990         * modules/unistr/u16-prev-tests: Likewise.
12991         * modules/unistr/u16-set-tests: Likewise.
12992         * modules/unistr/u16-stpcpy-tests: Likewise.
12993         * modules/unistr/u16-stpncpy-tests: Likewise.
12994         * modules/unistr/u16-strcat-tests: Likewise.
12995         * modules/unistr/u16-strcmp-tests: Likewise.
12996         * modules/unistr/u16-strcoll-tests: Likewise.
12997         * modules/unistr/u16-strcpy-tests: Likewise.
12998         * modules/unistr/u16-strdup-tests: Likewise.
12999         * modules/unistr/u16-strlen-tests: Likewise.
13000         * modules/unistr/u16-strmblen-tests: Likewise.
13001         * modules/unistr/u16-strmbtouc-tests: Likewise.
13002         * modules/unistr/u16-strncat-tests: Likewise.
13003         * modules/unistr/u16-strncmp-tests: Likewise.
13004         * modules/unistr/u16-strncpy-tests: Likewise.
13005         * modules/unistr/u16-strnlen-tests: Likewise.
13006         * modules/unistr/u16-to-u32-tests: Likewise.
13007         * modules/unistr/u16-to-u8-tests: Likewise.
13008         * modules/unistr/u16-uctomb-tests: Likewise.
13009         * modules/unistr/u32-check-tests: Likewise.
13010         * modules/unistr/u32-chr-tests: Likewise.
13011         * modules/unistr/u32-cmp-tests: Likewise.
13012         * modules/unistr/u32-cmp2-tests: Likewise.
13013         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13014         * modules/unistr/u32-cpy-tests: Likewise.
13015         * modules/unistr/u32-mblen-tests: Likewise.
13016         * modules/unistr/u32-mbsnlen-tests: Likewise.
13017         * modules/unistr/u32-mbtouc-tests: Likewise.
13018         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13019         * modules/unistr/u32-mbtoucr-tests: Likewise.
13020         * modules/unistr/u32-move-tests: Likewise.
13021         * modules/unistr/u32-next-tests: Likewise.
13022         * modules/unistr/u32-prev-tests: Likewise.
13023         * modules/unistr/u32-set-tests: Likewise.
13024         * modules/unistr/u32-stpcpy-tests: Likewise.
13025         * modules/unistr/u32-stpncpy-tests: Likewise.
13026         * modules/unistr/u32-strcat-tests: Likewise.
13027         * modules/unistr/u32-strcmp-tests: Likewise.
13028         * modules/unistr/u32-strcoll-tests: Likewise.
13029         * modules/unistr/u32-strcpy-tests: Likewise.
13030         * modules/unistr/u32-strdup-tests: Likewise.
13031         * modules/unistr/u32-strlen-tests: Likewise.
13032         * modules/unistr/u32-strmblen-tests: Likewise.
13033         * modules/unistr/u32-strmbtouc-tests: Likewise.
13034         * modules/unistr/u32-strncat-tests: Likewise.
13035         * modules/unistr/u32-strncmp-tests: Likewise.
13036         * modules/unistr/u32-strncpy-tests: Likewise.
13037         * modules/unistr/u32-strnlen-tests: Likewise.
13038         * modules/unistr/u32-to-u16-tests: Likewise.
13039         * modules/unistr/u32-to-u8-tests: Likewise.
13040         * modules/unistr/u32-uctomb-tests: Likewise.
13041         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13042         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13043         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13044         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13045         * modules/uniwidth/u8-strwidth-tests: Likewise.
13046         * modules/uniwidth/u8-width-tests: Likewise.
13047         * modules/uniwidth/u16-strwidth-tests: Likewise.
13048         * modules/uniwidth/u16-width-tests: Likewise.
13049         * modules/uniwidth/u32-strwidth-tests: Likewise.
13050         * modules/uniwidth/u32-width-tests: Likewise.
13051         * modules/uniwidth/width-tests: Likewise.
13052
13053 2010-05-18  Richard Jones  <rjones@redhat.com>
13054
13055         doc: users.txt: list hivex
13056         * users.txt: Add hivex.
13057
13058 2010-05-18  Richard Jones  <rjones@redhat.com>
13059
13060         doc: users.txt: list febootstrap
13061         * users.txt: Add febootstrap.
13062
13063 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13064
13065         bootstrap: fix an error when gnulib is not used as a git submodule
13066         * build-aux/bootstrap (gnulib_path): If its length is zero then
13067         assign "gnulib" to it.
13068         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13069
13070 2010-05-16  Bruno Haible  <bruno@clisp.org>
13071
13072         Avoid autoconf warnings about AM_ICONV.
13073         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13074         2.64.
13075
13076 2010-05-16  Bruno Haible  <bruno@clisp.org>
13077
13078         absolute-header: Make the macro usable in more situations.
13079         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13080         from gl_ABSOLUTE_HEADER.
13081         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13082
13083 2010-05-16  James Youngman  <jay@gnu.org>
13084
13085         doc: update users.txt
13086         * users.txt: Add CSSC.
13087
13088 2010-05-16  Jim Meyering  <meyering@redhat.com>
13089
13090         init.sh: fix an error in the previous change; add more comments
13091         * tests/init.sh: Compare exit code in loop against 9, not 2.
13092         Patch by Bruno Haible.
13093         Make the two tests more similar by adding an empty "then" clause.
13094         Add comments.
13095
13096         init.sh: avoid unnecessary shell re-exec
13097         * tests/init.sh: Improve the re-exec-required check to first test the
13098         current shell.  If it passes the test, do not search for a shell that
13099         does pass, and do not re-exec.  This test is particularly contorted to
13100         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13101         of $(...) evokes a syntax error and causes immediate shell exit with
13102         status 2.  Bruno Haible reported that the re-exec made it impossible
13103         to single-step through any init.sh-using script.
13104
13105 2010-05-16  Bruno Haible  <bruno@clisp.org>
13106
13107         Fix collision between gnulib's and libintl's printf replacements.
13108         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13109         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13110         (printf): When using GNU C, map the __printf__ function to rpl_printf
13111         via __asm__. When not using GNU C, define rpl_printf instead of
13112         __printf__.
13113         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13114         commit.
13115         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13116         commit.
13117         * m4/asm-underscore.m4: New file.
13118         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13119         * modules/stdio (Files): Add m4/asm-underscore.m4.
13120         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13121         Reported by Ben Pfaff.
13122
13123 2010-05-16  Bruno Haible  <bruno@clisp.org>
13124
13125         verify: Avoid skipping the test on openSUSE 11.0.
13126         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13127
13128 2010-05-13  Bruno Haible  <bruno@clisp.org>
13129
13130         Avoid useless warnings from G++.
13131         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13132         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13133         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13134
13135 2010-05-11  Jim Meyering  <meyering@redhat.com>
13136
13137         maint.mk: tweak preceding change
13138         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13139         regexps tighter by anchoring at EOL, and make the new group "shy"
13140         for slightly decreased overhead.
13141
13142 2010-05-11  Eric Blake  <eblake@redhat.com>
13143
13144         maint.mk: gnulib doesn't guarantee NSIG
13145         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13146
13147 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13148
13149         test-pwrite.c: Remove unused variable declaration.
13150         * tests/test-pwrite.c (main): Remove read_buf declaration.
13151
13152         Remove useless test-pwrite.sh file.
13153         * tests/test-pwrite.sh: Delete file.
13154         * modules/pwrite-tests: Remove references.
13155         Reported by Bruno Haible.
13156
13157 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13158
13159         init.sh: fix a typo
13160         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13161
13162 2010-05-10  Jim Meyering  <meyering@redhat.com>
13163
13164         maint.mk: avoid using a temporary file in the always-defined-macros check
13165         * top/maint.mk (.re-defmac): Remove rule.
13166         (gl_trap_): Remove definition.
13167         (sc_prohibit_always-defined_macros): Rewrite not to create and
13168         depend on a temporary file.  Instead, depend on GNU grep's ability
13169         to read a list of regular expressions from stdin when given "-f -".
13170
13171 2010-05-09  Bruno Haible  <bruno@clisp.org>
13172
13173         Update to GNU gettext 0.18, part 1.
13174         * m4/gettext.m4: Update to GNU gettext 0.18.
13175         * m4/intl.m4: Likewise.
13176         * m4/po.m4: Likewise.
13177         * modules/gettext (Files): Add m4/fcntl-o.m4.
13178         (configure.ac): Require gettext infrastructure from version 0.18.
13179
13180 2010-05-09  Jim Meyering  <meyering@redhat.com>
13181
13182         init.sh: enable MALLOC_PERTURB_
13183         * tests/init.sh: Enable glibc's malloc-perturbing option.
13184
13185         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13186         With my recent change in init.sh from the two-line form:
13187             -#   : ${srcdir=.}
13188             -#   . "$srcdir/init.sh"; path_prepend_ .
13189             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13190         I noticed that using the one-line form would cause this test
13191         to fail with a false-positive, or to stop working altogether,
13192         depending on whether help-version changed or all the tests did.
13193         * top/maint.mk (_hv_regex): Remove this definition.
13194         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13195         (_hv_regex_strong): Use a stronger regex to check for conformance.
13196         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13197         Give a separate diagnostic for lack of conforming use.
13198
13199         maint.mk: prohibit definition of symbols defined by gnulib
13200         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13201         definition of symbols defined by gnulib.
13202
13203 2010-05-09  Bruno Haible  <bruno@clisp.org>
13204
13205         acl: Avoid test failure on Cygwin-hosted mingw.
13206         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13207
13208 2010-05-09  Bruno Haible  <bruno@clisp.org>
13209
13210         error: Use system's fcntl function.
13211         * lib/error.c (fcntl): Undefine.
13212
13213 2010-05-09  Jim Meyering  <meyering@redhat.com>
13214
13215         verify: adjust formatting to be more consistent
13216         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13217         argument-list '('s, and after one comma.
13218
13219 2010-05-09  Bruno Haible  <bruno@clisp.org>
13220
13221         error: More reliable output on mingw.
13222         * lib/error.c: Include <windows.h>.
13223         (is_open): New function.
13224         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13225         defined.
13226
13227 2010-05-09  Bruno Haible  <bruno@clisp.org>
13228
13229         vasnprintf: Fix syntax errors in libintl build on mingw.
13230         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13231         pad_ourselves and prec_ourselves after use.
13232
13233 2010-05-08  Bruno Haible  <bruno@clisp.org>
13234
13235         * lib/config.charset: Update comments for Cygwin 1.7.
13236         * lib/localcharset.c: Likewise.
13237
13238 2010-05-07  Jim Meyering  <meyering@redhat.com>
13239
13240         init.sh: improve comments
13241         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13242         . "${srcdir=.}/init.sh"; path_prepend_ .
13243         Add a note about path_prepend_ and the alternative of using
13244         TESTS_ENVIRONMENT.
13245
13246 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13247
13248         exclude: Unescape hashed patterns in wildcard mode.
13249         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13250         to the hash list.
13251         * tests/test-exclude8.sh: New test case.
13252         * modules/exclude-tests: Add new test.
13253
13254 2010-05-05  Eric Blake  <eblake@redhat.com>
13255
13256         verify: automate tests
13257         * modules/verify-tests: New module.
13258         * tests/test-verify.sh: New file.
13259         * tests/test-verify.c: Guard each negative test with a unique id.
13260         Also avoid warning about unused left hand of comma expressions.
13261
13262 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13263
13264         Further improvements to verify.h, suggested by Eric Blake.
13265         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13266         the GL_* versions, to avoid collision with OpenGL.
13267         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13268         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13269         than testing merely whether it's defined.
13270
13271         Modify verify.h to pacify gcc -Wredundant_decls.
13272         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13273         These use the prefix "GL_" since they're likely to be useful elsewhere.
13274         We may need to break them out into a different .h file.
13275         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13276         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13277         of verify_function__.
13278
13279 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13280
13281         Tests for module pwrite.
13282         * modules/pwrite-tests: New file.
13283         * tests/test-pwrite.sh: New file.
13284         * tests/test-pwrite.c: New file.
13285
13286         New module pwrite.
13287         * lib/unistd.in.h (pwrite): New declaration.
13288         * lib/pwrite.c: New file, from glibc with modifications.
13289         * m4/pwrite.m4: New file.
13290         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13291         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13292         REPLACE_PWRITE.
13293         * modules/pwrite: New file.
13294         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13295         REPLACE_PWRITE.
13296         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13297         * doc/posix-functions/pwrite.texi: Mention the new module.
13298
13299 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13300
13301         pread: Update documentation.
13302         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13303
13304 2010-05-04  Eric Blake  <eblake@redhat.com>
13305
13306         docs: update cygwin progress
13307         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13308         this bug.
13309         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13310         Added in cygwin 1.7.2.
13311         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13312         Likewise.
13313         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13314         Likewise.
13315         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13316         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13317         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13318         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13319         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13320         Mention nproc module.
13321         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13322         bug in cygwin 1.7.5 addition.
13323         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13324         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13325         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13326         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13327         1.7.5.
13328         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13329         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13330         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13331         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13332         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13333         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13334         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13335         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13336         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13337         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13338         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13339         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13340         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13341         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13342         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13343         Likewise.
13344         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13345         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13346         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13347         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13348         Likewise.
13349         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13350         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13351         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13352         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13353         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13354         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13355         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13356         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13357         Likewise.
13358         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13359         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13360         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13361         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13362         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13363         Likewise.
13364         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13365         Likewise.
13366         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13367         Likewise.
13368         * doc/glibc-functions/xdrrec_endofrecord.texi
13369         (xdrrec_endofrecord): Likewise.
13370         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13371         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13372         Likewise.
13373         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13374         Likewise.
13375
13376 2010-05-04  Jim Meyering  <meyering@redhat.com>
13377
13378         gendocs.sh: make its "-s FILE" option more useful
13379         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13380         $PACKAGE to reflect the probably-different basename of "FILE".
13381
13382 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13383
13384         bootstrap: don't ignore download_po_files failure
13385         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13386         failure.
13387
13388 2010-05-03  Jim Meyering  <meyering@redhat.com>
13389
13390         maint.mk: allow to pass options to gendocs.sh
13391         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13392         (gendocs_options_): New overridable variable.
13393
13394         gnu-web-doc-update: don't ignore configure or build failure
13395         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13396
13397         announce-gen: backslash-escape '@'s in --help output
13398         * build-aux/announce-gen: Fix syntax errors.
13399
13400         maint.mk, announce-gen: allow project-specific announcement mail headers
13401         * top/maint.mk (translation_project_): Define default.
13402         (announcement_Cc_, announcement_mail_headers_): Likewise.
13403         (announcement): Invoke announce-gen with new --mail-headers option.
13404         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13405
13406         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13407         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13408         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13409         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13410         line in the "err2" output file when running "make check" in verbose
13411         mode (i.e., with set -x enabled).
13412
13413 2010-05-03  Bruno Haible  <bruno@clisp.org>
13414
13415         wctob: Fix for weird platforms.
13416         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13417         argument value.
13418
13419 2010-05-03  Jim Meyering  <meyering@redhat.com>
13420
13421         maint.mk: prohibit unwarranted use of <strings.h>
13422         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13423         strings.h in a file that does not also use strcasecmp, strncasecmp,
13424         ffs or ffsll.
13425
13426         maint.mk: remove obsolete comments
13427         * top/maint.mk: Remove stale, commented-out rules.
13428
13429 2010-05-02  Bruno Haible  <bruno@clisp.org>
13430
13431         wcwidth: Declare also when it's aliased.
13432         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13433         macro.
13434
13435 2010-05-02  Bruno Haible  <bruno@clisp.org>
13436
13437         Fix regression from 2010-04-25.
13438         * gnulib-tool (func_modules_transitive_closure): Check the status of
13439         all modules, not only of the tests that are of the form foo-tests where
13440         foo is a module.
13441
13442 2010-05-02  Bruno Haible  <bruno@clisp.org>
13443
13444         wctob: Work around nasty Cygwin 1.7.2 bug.
13445         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13446         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13447
13448 2010-05-01  Bruno Haible  <bruno@clisp.org>
13449
13450         fpurge: Sharper test.
13451         * tests/test-fpurge.c (main): Add one more ftell check.
13452         * modules/fpurge-tests (Depends-on): Add ftell.
13453         Suggested by Eric Blake.
13454
13455 2010-05-01  Bruno Haible  <bruno@clisp.org>
13456
13457         ftello: Another test.
13458         * tests/test-ftello3.c: New file.
13459         * modules/ftello-tests (Files): Add it.
13460         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13461         MOSTLYCLEANFILES.
13462
13463         ftell: Another test.
13464         * tests/test-ftell3.c: New file.
13465         * modules/ftell-tests (Files): Add it.
13466         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13467         MOSTLYCLEANFILES.
13468
13469 2010-05-01  Bruno Haible  <bruno@clisp.org>
13470
13471         ftell, ftello: Work around Solaris bug.
13472         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13473         * lib/ftello.c: Include stdio-impl.h.
13474         (ftello): On Solaris, when _IOWRT is set, compute the result without
13475         looking at _IOREAD.
13476         * modules/ftello (Files): Add lib/stdio-impl.h.
13477         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13478         * doc/posix-functions/ftello.texi: Likewise.
13479         Reported by Eric Blake.
13480
13481 2010-05-01  Bruno Haible  <bruno@clisp.org>
13482
13483         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13484         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13485         the _IOWRT flag is also set.
13486
13487 2010-05-01  Bruno Haible  <bruno@clisp.org>
13488
13489         Fix doc about a HP-UX stdio bug.
13490         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13491         * doc/posix-functions/ftello.texi: Likewise.
13492
13493 2010-05-01  Bruno Haible  <bruno@clisp.org>
13494
13495         lseek test: Fix failure on Solaris.
13496         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13497         output.
13498
13499 2010-04-30  Jim Meyering  <meyering@redhat.com>
13500
13501         bootstrap: don't ignore failure to generate po*/Makevars
13502         * build-aux/bootstrap (with_gettext): Don't ignore failure
13503         to create po/Makevars or runtime-po/Makevars.
13504
13505 2010-04-29  Eric Blake  <eblake@redhat.com>
13506
13507         headers: relax license to LGPLv2+
13508         * modules/fcntl-h (License): Relax license.
13509         * modules/getopt-posix (License): Likewise.
13510         * modules/locale (License): Likewise.
13511         * modules/math (License): Likewise.
13512         * modules/pty (License): Likewise.
13513         * modules/sched (License): Likewise.
13514         * modules/search (License): Likewise.
13515         * modules/spawn (License): Likewise.
13516         * modules/stdarg (License): Likewise.
13517         * modules/sysexits (License): Likewise.
13518
13519 2010-04-29  Jim Meyering  <meyering@redhat.com>
13520
13521         inttypes: relax license to LGPLv2+
13522         * modules/inttypes (License): Relax license.
13523
13524 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13525
13526         * top/maint.mk (indent): Run twice to produce idempotent results.
13527
13528 2010-04-28  Bruno Haible  <bruno@clisp.org>
13529
13530         getdate: Generate getdate.c in the source directory.
13531         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13532         MOSTLYCLEANFILES.
13533         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13534
13535 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13536
13537         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13538         is not declared as a const *; avoid warnings in that case.
13539
13540 2010-04-28  Eric Blake  <eblake@redhat.com>
13541
13542         canonicalize-lgpl: avoid compiler warning
13543         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13544         declaration' / 'extraneous semicolon' warning with some compilers.
13545         Reported by Andreas Gruenbacher.
13546
13547 2010-04-28  Jim Meyering  <meyering@redhat.com>
13548
13549         init.sh: ensure a more reliable exit status when exiting via trap
13550         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13551         Inspired by patches from Dmitry V. Levin.
13552         Also trap on signal 3 (SIGQUIT).
13553
13554 2010-04-27  Bruno Haible  <bruno@clisp.org>
13555
13556         Update doc about utimes().
13557         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13558         'utimens' module.
13559         Reported by Andreas Gruenbacher <agruen@suse.de>.
13560
13561 2010-04-27  Eric Blake  <eblake@redhat.com>
13562
13563         full-read, full-write: relax license
13564         * modules/full-read (License): Drop to LGPLv2+.
13565         * modules/full-write (License): Likewise.
13566         * modules/safe-read (License): Likewise.
13567         * modules/safe-write (License): Likewise.
13568
13569         pthread: mention library for linking
13570         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13571
13572 2010-04-27  Jim Meyering  <meyering@redhat.com>
13573
13574         maint.mk: fix a bug introduced in last change
13575         * top/maint.mk (gl_assured_headers_): Now that all names are on
13576         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13577         is not anchored to end of word, it should be adequate.
13578
13579         maint.mk: avoid side-effect in latest syntax-check
13580         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13581         to run commands via $(shell...), and hence to incur cost only when
13582         the new rule is actually run.
13583
13584         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13585         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13586         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13587         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13588         (gl_assured_headers_, az_, AZ_): Define.
13589         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13590
13591 2010-04-26  Jim Meyering  <jim@meyering.net>
13592             Bruno Haible  <bruno@clisp.org>
13593
13594         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13595         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13596         Prompted by an exchange with Gilles Espinasse.
13597
13598 2010-04-26  Jim Meyering  <meyering@redhat.com>
13599
13600         git-version-gen: aesthetic tweak
13601         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13602         so that the command remains on a single line.
13603
13604 2010-04-26  Eric Blake  <eblake@redhat.com>
13605
13606         git-version-gen: allow use on EBCDIC hosts
13607         * build-aux/git-version-gen (dirty): Use literal rather than tying
13608         ourselves to ascii.
13609         Reported by Steve Goetze.
13610
13611 2010-04-25  Bruno Haible  <bruno@clisp.org>
13612
13613         netdb: Add support for GNULIB_POSIXCHECK.
13614         * lib/netdb.in.h: Include warn-on-use.h.
13615         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13616         functions are used when GNULIB_POSIXCHECK is defined and the
13617         getaddrinfo module is not in use.
13618         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13619         freeaddrinfo, gai_strerror, getnameinfo are declared.
13620         * modules/netdb (Depends-on): Add warn-on-use.
13621         (Makefile.am): Include warn-on-use.h in netdb.h.
13622
13623 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13624
13625         build: avoid "make check" failure without .git/ directory
13626         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13627         there is no .git/ directory.
13628
13629 2010-04-25  Bruno Haible  <bruno@clisp.org>
13630
13631         ptsname: Fix misuse of ttyname_r.
13632         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13633         of errno.
13634
13635 2010-04-25  Bruno Haible  <bruno@clisp.org>
13636
13637         ttyname_r: Make it work on Solaris 10.
13638         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13639         if the system function has the POSIX declaration. Test whether the
13640         function fails if the buffer is less than 128 bytes large.
13641         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13642         system's ttyname_r function. Provide a reasonably large buffer.
13643         * modules/ttyname_r (Depends-on): Add extensions.
13644         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13645
13646 2010-04-25  Bruno Haible  <bruno@clisp.org>
13647
13648         Use the 'extensions' module for some more functions on Solaris.
13649         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13650         module.
13651         * doc/posix-functions/ctime_r.texi: Likewise.
13652         * doc/posix-functions/getgrgid_r.texi: Likewise.
13653         * doc/posix-functions/getgrnam_r.texi: Likewise.
13654         * doc/posix-functions/getpwnam_r.texi: Likewise.
13655         * doc/posix-functions/getpwuid_r.texi: Likewise.
13656         * doc/posix-functions/readdir_r.texi: Likewise.
13657         * doc/posix-functions/sigwait.texi: Likewise.
13658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13659         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13660
13661 2010-04-25  Bruno Haible  <bruno@clisp.org>
13662
13663         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13664         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13665         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13666         * lib/ttyname_r.c: Include <limits.h>.
13667         (ttyname_r): Define using the system's ttyname_r function, if it exists
13668         and not on Solaris.
13669         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13670         set.
13671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13672         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13673         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13674         Reported by Simon Josefsson.
13675
13676 2010-04-25  Bruno Haible  <bruno@clisp.org>
13677
13678         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13679         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13680         * doc/posix-functions/ctime_r.texi: Likewise.
13681         * doc/posix-functions/getgrgid_r.texi: Likewise.
13682         * doc/posix-functions/getgrnam_r.texi: Likewise.
13683         * doc/posix-functions/getlogin_r.texi: Likewise.
13684         * doc/posix-functions/getpwnam_r.texi: Likewise.
13685         * doc/posix-functions/getpwuid_r.texi: Likewise.
13686         * doc/posix-functions/readdir_r.texi: Likewise.
13687         * doc/posix-functions/sigwait.texi: Likewise.
13688         * doc/posix-functions/ttyname_r.texi: Likewise.
13689         Reported by Simon Josefsson.
13690
13691 2010-04-25  Bruno Haible  <bruno@clisp.org>
13692
13693         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13694         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13695         also to --create-testdir.
13696         (func_acceptable): Don't consider the status of *-tests modules here.
13697         (func_modules_transitive_closure): Consider it here, before including a
13698         test module.
13699         (func_import, func_create_testdir): Set inc_all_direct_tests,
13700         inc_all_indirect_tests.
13701         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13702         --create-testdir and --create-megatestdir.
13703
13704 2010-04-25  Bruno Haible  <bruno@clisp.org>
13705
13706         gnulib-tool: Add --without-*-tests options.
13707         * gnulib-tool (func_usage): Document the --without-*-tests options.
13708         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13709         excl_unportable_tests): New variables.
13710         Fail if they are specified with --import or --update.
13711         (func_acceptable): Respect the excl_*_tests variables.
13712         (func_import): Set the excl_*_tests variables to empty.
13713
13714 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13715             Bruno Haible  <bruno@clisp.org>
13716
13717         Work around a MacOS X 10.4 bug with openpty.
13718         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13719         * tests/test-openpty.c (main): Close the master side explicitly.
13720
13721 2010-04-25  Bruno Haible  <bruno@clisp.org>
13722
13723         strnlen: Fix a C++ test error on MacOS X and Solaris.
13724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13725         the function is not declared.
13726         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13727         Simon Josefsson.
13728
13729 2010-04-24  Bruno Haible  <bruno@clisp.org>
13730
13731         Avoid a gcc warning.
13732         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13733         of correct type for %08lx directive.
13734         Reported by Eric Blake.
13735
13736 2010-04-24  Bruno Haible  <bruno@clisp.org>
13737
13738         vasnprintf: Correct errno value in case of out-of-memory.
13739         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13740         or sprintf. Use the errno value from SNPRINTF or sprintf.
13741         Reported by Ian Beckwith <ianb@erislabs.net>.
13742
13743 2010-04-24  Bruno Haible  <bruno@clisp.org>
13744
13745         ansi-c++-opt: Find correct compiler when cross-compiling.
13746         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13747         AC_CHECK_PROGS.
13748         Reported by Simon Josefsson.
13749
13750 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13751
13752         vc-list-files: Add support for subversion
13753         * build-aux/vc-list-files: Use "svn list" to generate the list of
13754         files controlled by subversion.
13755
13756 2010-04-23  Jim Meyering  <meyering@redhat.com>
13757
13758         vc-list-files tests: convert to use init.sh
13759         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13760         path_prepend_.
13761         Use Exit, not exit.
13762         Use skip_ rather than open coding it.
13763         Remove trap set-up and compare definitions.
13764         * tests/test-vc-list-files-git.sh: Likewise.
13765         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13766
13767 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13768
13769         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13770         backup files.
13771
13772 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13773
13774         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13775
13776 2010-04-20  Eric Blake  <eblake@redhat.com>
13777
13778         tests: be robust to ignored SIGPIPE
13779         * tests/test-select-in.sh: Consume all output.
13780         * tests/test-lseek.sh: Check correct exit status, while avoiding
13781         EPIPE.
13782
13783 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13784             Bruno Haible  <bruno@clisp.org>
13785
13786         visibility: Don't use -fvisibility if it leads to a warning.
13787         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13788         yes, don't pretend that visibility works if it leads to a warning.
13789         Reported by Mike Gran <spk121@yahoo.com>.
13790
13791 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13792
13793         * build-aux/bootstrap: Use "git -h" for testing for supported options
13794         instead of "git --help".  The short-form option only shows a summary,
13795         and doesn't layout the full man page.  Grep for the full option name
13796         in the summary, too.
13797
13798 2010-04-19  Bruno Haible  <bruno@clisp.org>
13799
13800         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13801         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13802         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13803         mention of RELOCATABLE_STRIP.
13804         Reported by Sylvain Beucler <beuc@beuc.net>.
13805
13806 2010-04-19  Bruno Haible  <bruno@clisp.org>
13807
13808         * lib/diffseq.h: Fix typo in comment.
13809         Reported by Eric Blake.
13810
13811 2010-04-19  Bruno Haible  <bruno@clisp.org>
13812
13813         ioctl: Move autoconf macro to a .m4 file.
13814         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13815         * modules/ioctl (Files): Add it.
13816         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13817         Reported by Ian Beckwith <ianb@erislabs.net>.
13818
13819 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13820             Bruno Haible  <bruno@clisp.org>
13821
13822         diffseq: Accommodate use-case with abstract arrays.
13823         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13824         is not defined.
13825         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13826         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13827
13828 2010-04-18  Bruno Haible  <bruno@clisp.org>
13829
13830         * doc/posix-headers/stdbool.texi: More precise wording.
13831
13832 2010-04-17  Jim Meyering  <meyering@redhat.com>
13833
13834         maint.mk: use gnu-style indentation in an embedded perl script
13835         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13836         Rename variable: s/two/last_two_bytes/
13837
13838 2010-04-16  Eric Blake  <eblake@redhat.com>
13839
13840         test-stdbool: skip test that fails with Solaris CC
13841         * tests/test-stdbool.c (f): Skip test that causes compilation
13842         error under buggy C++ compiler.
13843         * lib/stdbool.in.h: Document the limitation.
13844         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13845
13846         setenv: allow compilation with C++
13847         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13848         register keyword.
13849
13850         stdint: allow test to pass with C++
13851         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13852
13853         getopt: allow compilation with C++
13854         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13855         struct.
13856         * lib/getopt.c (_getopt_internal_r): Use correct type.
13857         Reported by Dagobert Michelson, via Joel E. Denny.
13858
13859 2010-04-16  Bruno Haible  <bruno@clisp.org>
13860
13861         Override netdb.h always.
13862         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13863         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13864         Reported by Ludovic Courtès <ludo@gnu.org>.
13865
13866 2010-04-15  Bruno Haible  <bruno@clisp.org>
13867
13868         openpty: Fix mistake from 2010-03-21.
13869         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13870         Reported by Simon Josefsson.
13871
13872 2010-04-15  Eric Blake  <eblake@redhat.com>
13873
13874         test-forkpty: fix expected signature
13875         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13876         Reported by Simon Josefsson.
13877
13878 2010-04-15  Jim Meyering  <meyering@redhat.com>
13879
13880         maint.mk: texinfo_suffix_re_: correct the default regexp
13881         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13882
13883         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13884         make it configurable via texinfo_suffix_re_.
13885
13886 2010-04-14  Eric Blake  <eblake@redhat.com>
13887
13888         strtok_r: relax license to LGPLv2+
13889         * modules/strtok_r (License): Relax license.
13890         Reported by Matthias Bolte.
13891
13892 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13893
13894         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13895         version 1.4.4 by default instead of requiring the libgcrypt
13896         version used during build.  This makes it possible to use the
13897         application with older but still binary compatible libgcrypt
13898         versions.
13899
13900 2010-04-13  Eric Blake  <eblake@redhat.com>
13901
13902         getopt-gnu: match recent glibc fixes and posix ruling
13903         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13904         '+' handling, when requesting extensions.
13905         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13906         'W;' handling.
13907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13908         * doc/posix-functions/getopt.texi (getopt): Document this.
13909         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13910         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13911         Likewise.
13912
13913         getopt: merge bug fixes from glibc
13914         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13915         diagnostics.  Honor '+:' correctly.  Reject ';'.
13916
13917         getopt-posix: detect MacOS bug
13918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13919         optind when missing a required argument.
13920         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13921         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13922         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13923         Likewise.
13924
13925         getopt-posix: avoid spurious failure on Solaris
13926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13927         an indicator that setting optind=1 is sufficient for reset.
13928
13929         getopt-posix: avoid spurious failure on FreeBSD
13930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13931         in POSIX mode, since the m4 test uses it.
13932
13933         gnulib-tool: silence warning on BSD sh
13934         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13935
13936 2010-04-13  Jim Meyering  <meyering@redhat.com>
13937
13938         doc: users.txt: GNU patch now uses gnulib
13939         * users.txt: Add patch.
13940
13941 2010-04-12  Jim Meyering  <meyering@redhat.com>
13942
13943         maint.mk: generate more concise timing data for syntax-check rules
13944         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13945         " done" from each line that reports a syntax-check test duration.
13946
13947 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13948
13949         git-version-gen: use "git update-index..." rather than "git status"
13950         * build-aux/git-version-gen: Use git update-index --refresh, not
13951         "git status".  With some versions of git, "git status" would fail
13952         to update the index and result in an unwarranted "-dirty" suffix.
13953
13954 2010-04-11  Jim Meyering  <meyering@redhat.com>
13955
13956         openat: correct formatting (no semantic change)
13957         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13958         Suggested by Bruno Haible.
13959
13960 2010-04-11  Bruno Haible  <bruno@clisp.org>
13961
13962         Stricter declaration checking in testdirs.
13963         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13964         If for_tests is true, augment AM_CPPFLAGS to define
13965         GNULIB_STRICT_CHECKING.
13966         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13967         GNULIB_STRICT_CHECKING is defined, verify that the function is
13968         declared.
13969
13970 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13971             Bruno Haible  <bruno@clisp.org>
13972
13973         libunistring: Improve configure output.
13974         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13975         Don't say "consider installing GNU libunistring" when checking again
13976         with libiconv.
13977
13978 2010-04-11  Bruno Haible  <bruno@clisp.org>
13979
13980         libunistring: Correct value of $LTLIBUNISTRING.
13981         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13982         correct the value of $LTLIBUNISTRING.
13983
13984 2010-04-11  Bruno Haible  <bruno@clisp.org>
13985
13986         havelib: Add static libraries to LIBS in the right order.
13987         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13988         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13989
13990 2010-04-11  Bruno Haible  <bruno@clisp.org>
13991
13992         libunistring: Detect libunistring also when it depends on libiconv.
13993         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13994         the second AC_LIB_HAVE_LINKFLAGS invocation.
13995
13996 2010-04-11  James Youngman  <jay@gnu.org>
13997
13998         close-stream: declare local scalars to be "const"
13999         * lib/close-stream.c (close_stream): Make boolean variables const
14000         to document the fact that we set but do not change them.
14001
14002 2010-04-11  Bruno Haible  <bruno@clisp.org>
14003
14004         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14005
14006 2010-04-11  Jim Meyering  <meyering@redhat.com>
14007
14008         maint.mk: don't include dist-check.mk
14009         * top/maint.mk: Remove bogus include directive.
14010
14011         maint.mk: improve empty-line-at-EOF check
14012         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14013         solution, rather than tail+Perl-based one.  The latter would read
14014         a few kilobytes from the end of each file, and did not handle empty
14015         files properly.
14016
14017         maint.mk: print the elapsed time for each syntax-check rule
14018         * top/maint.mk (sc_m_rules_): Save start time in a file.
14019         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14020         (local-check): Interpose the .z rules
14021
14022 2010-04-11  Jim Meyering  <meyering@redhat.com>
14023
14024         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14025         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14026         empty file with one that ends in an empty line.
14027
14028 2010-04-10  Bruno Haible  <bruno@clisp.org>
14029
14030         mkdir: Make it work on mingw64.
14031         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14032         * lib/mkdir.c: Update comment.
14033         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14034
14035 2010-04-10  Bruno Haible  <bruno@clisp.org>
14036
14037         Don't override improved macro from newer autoconf.
14038         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14039         autoconf >= 2.62.
14040         Reported by Joel E. Denny <jdenny@clemson.edu>.
14041
14042 2010-04-10  Jim Meyering  <meyering@redhat.com>
14043
14044         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14045         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14046
14047         maint.mk: correct a diagnostic
14048         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14049         in diagnostic; now use $prohibit.
14050
14051 2010-04-10  Bruno Haible  <address@hidden>
14052
14053         fchownat: Fix a C++ test error on Solaris 8.
14054         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14055         the function does not exist.
14056
14057 2010-04-10  Bruno Haible  <bruno@clisp.org>
14058
14059         vasnprintf: Add more tests.
14060         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14061         (test_function): Test converting an invalid wide string.
14062
14063         vasnprintf: Correct handling of unconvertible wide string arguments.
14064         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14065         VASNPRINTF.
14066         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14067         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14068         smaller than the expected maximum need for the directive. Set errno to
14069         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14070         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14072         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14073         * modules/vasnprintf (Files): Add m4/printf.m4.
14074         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14075
14076 2010-04-10  Bruno Haible  <bruno@clisp.org>
14077
14078         vasnprintf: Fix crash in %ls directive.
14079         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14080         string is passed as argument to %ls, with no precision and no width.
14081         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14082
14083 2010-04-10  Bruno Haible  <bruno@clisp.org>
14084
14085         vasnprintf: Fix multiple test failures on mingw.
14086         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14087         _snprintf, or snwprintf, not _snwprintf.
14088
14089 2010-04-10  Bruno Haible  <bruno@clisp.org>
14090
14091         write: Fix a C++ test error on mingw.
14092         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14093
14094 2010-04-10  Bruno Haible  <bruno@clisp.org>
14095
14096         vasnprintf test: Reduce code duplication.
14097         * tests/test-vasnprintf.c (test_function): New function, extracted from
14098         test_vasnprintf.
14099         (test_vasnprintf, test_asnprintf): Invoke it.
14100
14101 2010-04-10  Bruno Haible  <bruno@clisp.org>
14102
14103         strnlen: Fix warning in C++ mode on MacOS X.
14104         * lib/string.in.h (strnlen): Use the modern idiom.
14105         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14106         defining strnlen as a macro already in <config.h>.
14107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14108         REPLACE_STRNLEN.
14109         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14110         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14111
14112 2010-04-08  James Youngman  <jay@gnu.org>
14113
14114         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14115         the example.
14116
14117 2010-04-09  Jim Meyering  <meyering@redhat.com>
14118
14119         maint.mk: print better diagnostic when there is no $(_hv_file)
14120         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14121         announce that when $(_hv_file) (aka help-version) does not exist.
14122
14123         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14124         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14125         not try to interpret its random input bytes.  Jarno Rajahalme reported
14126         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14127         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14128         (mktempd_): Likewise, just in case.
14129
14130         ftruncate: add two years to projected module removal date: 2012
14131         * m4/ftruncate.m4: Adjust comments.
14132
14133         ftruncate: mark module as obsolete; even MinGW provides it, now
14134         * modules/ftruncate (Status): Obsolete.
14135         (Notice): Say that.
14136         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14137         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14138
14139 2010-04-08  Bruno Haible  <bruno@clisp.org>
14140
14141         Fix side effects from tests-related modules.
14142         * modules/dprintf-posix (Comment): New section.
14143         * modules/fprintf-posix (Comment): Likewise.
14144         * modules/obstack-printf-posix (Comment): Likewise.
14145         * modules/printf-posix (Comment): Likewise.
14146         * modules/snprintf-posix (Comment): Likewise.
14147         * modules/sprintf-posix (Comment): Likewise.
14148         * modules/vasnprintf-posix (Comment): Likewise.
14149         * modules/vasprintf-posix (Comment): Likewise.
14150         * modules/vdprintf-posix (Comment): Likewise.
14151         * modules/vfprintf-posix (Comment): Likewise.
14152         * modules/vprintf-posix (Comment): Likewise.
14153         * modules/vsnprintf-posix (Comment): Likewise.
14154         * modules/vsprintf-posix (Comment): Likewise.
14155         * modules/xprintf-posix (Comment): Likewise.
14156         * modules/xvasprintf-posix (Comment): Likewise.
14157         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14158         * modules/floorf-tests (Depends-on): Likewise.
14159         * modules/round-tests (Depends-on): Likewise.
14160         * modules/roundf-tests (Depends-on): Likewise.
14161         * modules/trunc-tests (Depends-on): Likewise.
14162         * modules/truncf-tests (Depends-on): Likewise.
14163         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14164         'fprintf-posix' module is not present.
14165         * tests/test-floorf2.c (check): Likewise.
14166         * tests/test-trunc2.c (check): Likewise.
14167         * tests/test-truncf2.c (check): Likewise.
14168         * tests/test-round2.c (equal): Likewise.
14169         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14170
14171 2010-04-07  Karl Berry  <karl@gnu.org>
14172
14173         * config/srclist.txt,
14174         * config/srclistvars.sh,
14175         * config/srclist-update: doc fixes.
14176
14177 2010-04-07  Jim Meyering  <meyering@redhat.com>
14178
14179         maint.mk: add a PATH crosschecking syntax-check rule
14180         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14181         Useful if you use a test like the one in help-version (coreutils,
14182         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14183         printed by prog --version.
14184
14185 2010-04-06  Bruno Haible  <bruno@clisp.org>
14186
14187         Fix link error on mingw.
14188         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14189         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14190
14191 2010-04-06  Bruno Haible  <bruno@clisp.org>
14192
14193         Assume rmdir exists.
14194         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14195
14196 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14197
14198         doc: update users.txt
14199         * users.txt: Add gcal.
14200
14201 2010-04-06  Jim Meyering  <meyering@redhat.com>
14202
14203         init.sh: simply unset TMPDIR rather than risking env -i
14204         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14205         although it probably works fine on all Unix-based systems, some
14206         systems (Cygwin?) cannot tolerate a totally cleared environment.
14207         Suggestion from Eric Blake.
14208
14209 2010-04-06  Jim Meyering  <meyering@redhat.com>
14210
14211         init.sh: portability fix: use env's POSIX-specified -i option not -u
14212         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14213         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14214
14215 2010-04-05  Bruno Haible  <bruno@clisp.org>
14216
14217         btowc: Work around Cygwin 1.7.2 bug.
14218         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14219         does not map NUL to 0.
14220         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14221
14222 2010-04-05  Bruno Haible  <bruno@clisp.org>
14223
14224         Make the multithread modules work on Cygwin 1.7.2.
14225         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14226         imported symbols can be declared weak, so that it returns "no" on
14227         Cygwin 1.7.2.
14228
14229 2010-04-05  Bruno Haible  <bruno@clisp.org>
14230
14231         Use the module 'strncat'.
14232         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14233
14234         Tests for module 'strncat'.
14235         * modules/strncat-tests: New file.
14236         * tests/test-strncat.c: New file.
14237
14238         New module 'strncat'.
14239         * lib/string.in.h (strncat): New declaration.
14240         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14241         * m4/strncat.m4: New file, based on m4/memchr.m4.
14242         * modules/strncat: New file.
14243         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14244         is declared.
14245         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14246         REPLACE_STRNCAT.
14247         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14248         REPLACE_STRNCAT.
14249         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14250         module.
14251         * tests/test-string-c++.cc: Check signature of strncat.
14252
14253 2010-04-05  Jim Meyering  <meyering@redhat.com>
14254
14255         xstrtoumax-tests: convert to use init.sh
14256         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14257         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14258         Use Exit, not exit.
14259         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14260
14261         xstrtoimax-tests: convert to use init.sh
14262         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14263         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14264         Use Exit, not exit.
14265         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14266
14267 2010-04-05  Bruno Haible  <bruno@clisp.org>
14268
14269         sys_socket: Avoid #define replacements in C++ mode.
14270         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14271         warning to the function if possible, rather than #defining the symbol
14272         to a dysfunctional alias.
14273
14274 2010-04-05  Bruno Haible  <bruno@clisp.org>
14275
14276         fseeko: Fix C++ test error on mingw.
14277         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14278         gl_FUNC_FSEEKO.
14279         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14280         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14281         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14282         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14283
14284 2010-04-05  Bruno Haible  <bruno@clisp.org>
14285
14286         duplocale: Improve test output.
14287         * tests/test-duplocale.c (main): Print reason for skipped test.
14288
14289 2010-04-05  Bruno Haible  <bruno@clisp.org>
14290
14291         Assume rmdir exists.
14292         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14293         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14294
14295 2010-04-05  Bruno Haible  <bruno@clisp.org>
14296
14297         Fix link error on Solaris 8 with cc.
14298         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14299
14300 2010-04-05  Bruno Haible  <bruno@clisp.org>
14301
14302         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14303         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14304
14305 2010-04-05  Bruno Haible  <bruno@clisp.org>
14306
14307         vasprintf: Update documentation.
14308         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14309
14310 2010-04-05  Bruno Haible  <bruno@clisp.org>
14311
14312         ptsname: Improve test.
14313         * tests/test-ptsname.c (main): Also try the various master names of BSD
14314         systems.
14315
14316 2010-04-05  Bruno Haible  <bruno@clisp.org>
14317
14318         memchr: Avoid a possible C++ test error.
14319         * lib/string.in.h (memchr): Provide declaration if function is missing.
14320         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14321         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14323         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14324
14325 2010-04-05  Bruno Haible  <bruno@clisp.org>
14326
14327         strtok_r: Improve idiom.
14328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14329         AC_LIBOBJ is used.
14330
14331 2010-04-05  Bruno Haible  <bruno@clisp.org>
14332
14333         strdup: Improve idiom.
14334         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14335         AC_LIBOBJ is used.
14336         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14337         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14338         when AC_LIBOBJ is used.
14339
14340 2010-04-05  Bruno Haible  <bruno@clisp.org>
14341
14342         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14343         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14344         don't set REPLACE_MBSINIT to 1.
14345         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14346         don't set REPLACE_MBRTOWC to 1.
14347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14348         exist, don't set REPLACE_MBSRTOWCS to 1.
14349         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14350         exist, don't set REPLACE_MBSNRTOWCS to 1.
14351         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14352         don't set REPLACE_WCRTOMB to 1.
14353         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14354         exist, don't set REPLACE_WCSRTOMBS to 1.
14355         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14356         exist, don't set REPLACE_WCSNRTOMBS to 1.
14357
14358 2010-04-05  Bruno Haible  <bruno@clisp.org>
14359
14360         ldexpl: Improve idiom.
14361         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14362         make sure to set HAVE_DECL_LDEXPL to 0.
14363
14364 2010-04-05  Jim Meyering  <meyering@redhat.com>
14365
14366         xstrtol-tests: convert to use init.sh
14367         * modules/xstrtol-tests (Files): Add tests/init.sh.
14368         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14369         Use Exit, not exit.
14370         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14371
14372         atexit-tests: convert to use init.sh
14373         * modules/atexit-tests (Files): Add tests/init.sh.
14374         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14375         Use Exit, not exit.
14376         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14377
14378         init.sh: fix typo
14379         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14380
14381         init.sh: make it easier for a test script to write to the tty, ...
14382         when using automake's parallel-tests mode.
14383         * tests/init.sh (stderr_fileno_): Define overridable variable.
14384         (warn_): New function, to use it.
14385         (fail_, skip_, framework_failure_): Use warn_.
14386
14387 2010-04-04  Bruno Haible  <bruno@clisp.org>
14388
14389         btowc: Avoid warning.
14390         * lib/btowc.c: Include <stdlib.h>.
14391         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14392
14393 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14394             Bruno Haible  <bruno@clisp.org>
14395
14396         wchar: Port to NetBSD 1.5.
14397         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14398         * lib/wctype.in.h (WEOF): Likewise.
14399
14400 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14401             Bruno Haible  <bruno@clisp.org>
14402
14403         Port extended stdio to NetBSD 1.5.
14404         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14405         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14406         older.
14407
14408 2010-04-04  Bruno Haible  <bruno@clisp.org>
14409
14410         string: Remove unused substitution.
14411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14412         HAVE_DECL_STRERROR.
14413         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14414
14415 2010-04-04  Bruno Haible  <bruno@clisp.org>
14416
14417         strtod: Avoid a possible C++ test error.
14418         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14419         set REPLACE_STRTOD.
14420
14421 2010-04-04  Bruno Haible  <bruno@clisp.org>
14422
14423         strerror: Update documentation.
14424         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14425
14426 2010-04-04  Bruno Haible  <bruno@clisp.org>
14427
14428         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14429         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14430         _GL_CXXALIAS_SYS_CAST.
14431
14432 2010-04-04  Bruno Haible  <bruno@clisp.org>
14433
14434         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14435         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14436         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14437         REPLACE_FREXPL to 1.
14438         * doc/posix-functions/frexpl.texi: Update documentation.
14439
14440 2010-04-04  Bruno Haible  <bruno@clisp.org>
14441
14442         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14443         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14444
14445 2010-04-04  Bruno Haible  <bruno@clisp.org>
14446
14447         Implement nanosleep for native Windows.
14448         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14449
14450 2010-04-04  Bruno Haible  <bruno@clisp.org>
14451
14452         math: Fix some C++ test errors on Solaris 8.
14453         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14454
14455 2010-04-04  Bruno Haible  <bruno@clisp.org>
14456
14457         math: Fix some C++ test errors on Cygwin.
14458         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14459         truncl): Provide declaration if the system does not have it.
14460         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14461         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14462         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14463         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14464         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14465         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14466         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14467         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14468         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14469         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14470         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14471         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14472         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14473         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14474         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14475         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14477         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14478         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14479         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14480         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14481         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14482
14483 2010-04-04  Bruno Haible  <bruno@clisp.org>
14484
14485         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14486         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14487         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14488         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14489         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14490         * m4/isinf.m4 (gl_ISINF): Likewise.
14491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14492
14493 2010-04-04  Bruno Haible  <bruno@clisp.org>
14494
14495         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14496         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14497
14498 2010-04-04  Bruno Haible  <bruno@clisp.org>
14499
14500         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14501         * modules/tmpfile (configure.ac): Update.
14502
14503         tmpfile: Fix C++ test error on mingw.
14504         * lib/stdio.in.h (tmpfile): New declaration.
14505         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14506         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14507         * modules/tmpfile (Depends-on): Add stdio.
14508         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14509         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14510         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14511         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14512         REPLACE_TMPFILE.
14513         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14514
14515 2010-04-04  Bruno Haible  <bruno@clisp.org>
14516
14517         ioctl: Fix C++ test error on mingw.
14518         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14519         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14520         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14521
14522 2010-04-03  Bruno Haible  <bruno@clisp.org>
14523
14524         wcwidth: Fix C++ test error on mingw.
14525         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14527         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14528
14529 2010-04-03  Bruno Haible  <bruno@clisp.org>
14530
14531         nanosleep: Fix C++ test error on mingw.
14532         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14533         * lib/time.in.h (nanosleep): Use modern idiom.
14534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14535         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14536         REPLACE_NANOSLEEP to 1.
14537         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14538         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14539
14540 2010-04-03  Bruno Haible  <bruno@clisp.org>
14541
14542         strptime: Fix C++ test error on mingw.
14543         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14544         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14545         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14546         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14547         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14548         not REPLACE_STRPTIME.
14549         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14550         REPLACE_STRPTIME.
14551
14552 2010-04-03  Bruno Haible  <bruno@clisp.org>
14553
14554         timegm: Fix C++ test error on mingw.
14555         * lib/time.in.h (timegm): Use modern idiom.
14556         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14557         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14558         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14559         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14560
14561 2010-04-03  Bruno Haible  <bruno@clisp.org>
14562
14563         timegm: Assume declaration if function exists.
14564         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14565         if it exists. Don't clobber ac_cv_func_timegm.
14566
14567 2010-04-03  Bruno Haible  <bruno@clisp.org>
14568
14569         time_r: Fix C++ test error on mingw.
14570         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14571         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14572         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14573         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14574         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14575
14576 2010-04-03  Bruno Haible  <bruno@clisp.org>
14577
14578         time_r: Minor updates.
14579         * modules/time_r (Description): Mention the provided functions.
14580         * lib/time_r.c: Don't include <string.h>.
14581         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14582         * doc/posix-functions/localtime_r.texi: Likewise.
14583
14584 2010-04-03  Bruno Haible  <bruno@clisp.org>
14585
14586         time: Fix regression introduced on 2010-03-08.
14587         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14588         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14589
14590 2010-04-03  Jim Meyering  <meyering@redhat.com>
14591
14592         maint.mk: don't silently disable project-specific syntax-check rules
14593         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14594         that they need to convert their project-specific syntax-check rules
14595         to use the new _sc_search_regexp.
14596
14597 2010-04-03  Bruno Haible  <bruno@clisp.org>
14598
14599         fchdir: Fix regression introduced on 2010-03-08.
14600         * lib/unistd.in.h (fchdir): Fix declaration.
14601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14603         REPLACE_FCHDIR.
14604         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14605         REPLACE_FCHDIR.
14606
14607 2010-04-03  Bruno Haible  <bruno@clisp.org>
14608
14609         getpagesize: Fix C++ test error on mingw.
14610         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14611         system does not declare the function.
14612         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14613         declared.
14614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14615         HAVE_DECL_GETPAGESIZE.
14616         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14617
14618 2010-04-03  Bruno Haible  <bruno@clisp.org>
14619
14620         stdio: Make C++ tests work on mingw.
14621         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14622         does not declare the function.
14623
14624 2010-04-03  Bruno Haible  <bruno@clisp.org>
14625
14626         ftello: Fix C++ test error on mingw.
14627         * lib/stdio.in.h (ftello): Use modern idiom.
14628         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14629         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14630         is missing and that it needs to be replaced.
14631         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14633         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14634
14635 2010-04-03  Bruno Haible  <bruno@clisp.org>
14636
14637         fseeko: Fix C++ test error on mingw.
14638         * lib/stdio.in.h (fseeko): Use modern idiom.
14639         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14640         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14641         is missing and that it needs to be replaced.
14642         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14644         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14645
14646 2010-04-03  Bruno Haible  <bruno@clisp.org>
14647
14648         mkstemp: Fix C++ test error on mingw.
14649         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14650         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14651         function is missing and that it needs to be replaced.
14652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14653         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14654
14655 2010-04-03  Bruno Haible  <bruno@clisp.org>
14656
14657         stpncpy: Fix C++ test error on mingw.
14658         * lib/string.in.h (stpncpy): Use modern idiom.
14659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14660         function is missing and that it needs to be replaced.
14661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14662         REPLACE_STPNCPY.
14663         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14664
14665 2010-04-03  Bruno Haible  <bruno@clisp.org>
14666
14667         sys_stat: Fix C++ test error on mingw.
14668         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14669         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14670
14671 2010-04-03  Bruno Haible  <bruno@clisp.org>
14672
14673         pty: Update doc.
14674         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14675
14676 2010-04-03  Bruno Haible  <bruno@clisp.org>
14677
14678         unistd: Fix C++ test error on mingw.
14679         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14680
14681 2010-04-03  Bruno Haible  <bruno@clisp.org>
14682
14683         Update doc regarding mingw.
14684         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14685         * doc/glibc-functions/login_tty.texi: Likewise.
14686         * doc/glibc-functions/forkpty.texi: Likewise.
14687
14688 2010-04-03  Bruno Haible  <bruno@clisp.org>
14689
14690         stdlib: Avoid compilation failure of c-strtold on mingw.
14691         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14692
14693 2010-04-03  Bruno Haible  <bruno@clisp.org>
14694
14695         locale: Make C++ tests work on Cygwin and mingw.
14696         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14697         cannot provide the function.
14698         Reported by Simon Josefsson.
14699
14700 2010-04-03  Bruno Haible  <bruno@clisp.org>
14701
14702         localename: Port to MacOS X 10.6.
14703         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14704         memory layout of the locales in MacOS X 10.6 as well.
14705         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14706
14707 2010-04-02  Bruno Haible  <bruno@clisp.org>
14708
14709         gnulib-tool: Ensure that long-running tests are executed last.
14710         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14711         running tests after the one for the other tests.
14712
14713 2010-04-02  Bruno Haible  <bruno@clisp.org>
14714
14715         gnulib-tool: Ensure the tests in the main directory are executed first.
14716         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14717         start with the current directory.
14718
14719 2010-04-02  Bruno Haible  <bruno@clisp.org>
14720
14721         Tests for module 'havelib', moved here from GNU gettext.
14722         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14723         modifications.
14724         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14725         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14726         with modifications.
14727         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14728         modifications.
14729         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14730         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14731         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14732         with modifications.
14733         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14734         with modifications.
14735         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14736         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14737         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14738         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14739         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14740         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14741         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14742         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14743         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14744         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14745         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14746         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14747         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14748         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14749         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14750         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14751         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14752         with modifications.
14753         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14754         with modifications.
14755         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14756         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14757         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14758         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14759         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14760         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14761         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14762         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14763         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14764         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14765         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14766         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14767         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14768         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14769         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14770         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14771         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14772         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14773         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14774         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14775         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14776         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14777         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14778         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14779         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14780         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14781         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14782         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14783         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14784         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14785         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14786         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14787         * tests/havelib/rpathx/rpathx.c: New file, from
14788         gettext/autoconf-lib-link.
14789         * tests/havelib/rpathx/Makefile.am: New file, from
14790         gettext/autoconf-lib-link.
14791         * tests/havelib/rpathx/configure.ac: New file, from
14792         gettext/autoconf-lib-link with modifications.
14793         * tests/havelib/rpathy/rpathy.c: New file, from
14794         gettext/autoconf-lib-link.
14795         * tests/havelib/rpathy/Makefile.am: New file, from
14796         gettext/autoconf-lib-link.
14797         * tests/havelib/rpathy/configure.ac: New file, from
14798         gettext/autoconf-lib-link with modifications.
14799         * tests/havelib/rpathz/rpathz.c: New file, from
14800         gettext/autoconf-lib-link.
14801         * tests/havelib/rpathz/Makefile.am: New file, from
14802         gettext/autoconf-lib-link.
14803         * tests/havelib/rpathz/configure.ac: New file, from
14804         gettext/autoconf-lib-link with modifications.
14805         * tests/havelib/rpathlx/usex.c: New file, from
14806         gettext/autoconf-lib-link.
14807         * tests/havelib/rpathlx/Makefile.am: New file, from
14808         gettext/autoconf-lib-link.
14809         * tests/havelib/rpathlx/configure.ac: New file, from
14810         gettext/autoconf-lib-link with modifications.
14811         * tests/havelib/rpathly/usey.c: New file, from
14812         gettext/autoconf-lib-link.
14813         * tests/havelib/rpathly/Makefile.am: New file, from
14814         gettext/autoconf-lib-link.
14815         * tests/havelib/rpathly/configure.ac: New file, from
14816         gettext/autoconf-lib-link with modifications.
14817         * tests/havelib/rpathlz/usez.c: New file, from
14818         gettext/autoconf-lib-link.
14819         * tests/havelib/rpathlz/Makefile.am: New file, from
14820         gettext/autoconf-lib-link.
14821         * tests/havelib/rpathlz/configure.ac: New file, from
14822         gettext/autoconf-lib-link with modifications.
14823         * tests/havelib/rpathlyx/usey.c: New file, from
14824         gettext/autoconf-lib-link.
14825         * tests/havelib/rpathlyx/Makefile.am: New file, from
14826         gettext/autoconf-lib-link.
14827         * tests/havelib/rpathlyx/configure.ac: New file, from
14828         gettext/autoconf-lib-link with modifications.
14829         * tests/havelib/rpathlzyx/usez.c: New file, from
14830         gettext/autoconf-lib-link.
14831         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14832         gettext/autoconf-lib-link.
14833         * tests/havelib/rpathlzyx/configure.ac: New file, from
14834         gettext/autoconf-lib-link with modifications.
14835         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14836         with modifications.
14837
14838 2010-04-02  Bruno Haible  <bruno@clisp.org>
14839
14840         gnulib-tool: Create distributed built sources also for the tests.
14841         * gnulib-tool (func_create_testdir): Also generate distributed built
14842         sources in the tests directory.
14843
14844 2010-04-02  Bruno Haible  <bruno@clisp.org>
14845
14846         gnulib-tool: Obey user's environment variables.
14847         * gnulib-tool (func_create_testdir): When creating built sources,
14848         respect the environment variables for autoconf, automake, etc. given by
14849         the user.
14850
14851 2010-04-02  Bruno Haible  <bruno@clisp.org>
14852
14853         gnulib-tool: Provide the value of --m4-base to modules.
14854         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14855         of gl_m4_base.
14856
14857 2010-04-02  Eric Blake  <eblake@redhat.com>
14858
14859         maint.mk: fix some fallout
14860         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14861         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14862
14863 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14864
14865         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14866         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14867         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14868         (sc_cast_of_x_alloc_return_value): Likewise.
14869         (sc_cast_of_alloca_return_value): Likewise.
14870         (sc_space_tab): Likewise.
14871         (sc_prohibit_atoi_atof): Likewise.
14872         (sc_prohibit_magic_number_exit): Likewise.
14873         (sc_error_exit_success): Likewise.
14874         (sc_file_system): Likewise.
14875         (sc_prohibit_have_config_h): Likewise.
14876         (sc_require_config_h): Likewise.
14877         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14878         (sc_obsolete_symbols): Likewise.
14879         (sc_changelog): Likewise.
14880         (sc_program_name): Likewise.
14881         (sc_the_the): Likewise.
14882         (sc_trailing_blank): Likewise.
14883         (sc_two_space_separator_in_usage): Likewise.
14884         (sc_useless_cpp_parens): Likewise.
14885         (sc_GPL_version): Likewise.
14886         (sc_GFDL_version): Likewise.
14887         (sc_texinfo_acronym): Likewise.
14888         (sc_prohibit_cvs_keyword): Likewise.
14889         (sc_prohibit_stat_st_blocks): Likewise.
14890         (sc_prohibit_S_IS_definition): Likewise.
14891         (sc_redundant_const): Likewise.
14892         (sc_makefile_TAB_only_indentation): Likewise.
14893         (sc_m4_quote_check): Likewise.
14894         (sc_makefile_path_separator_check): Likewise.
14895         (sc_copyright_check): Likewise.
14896         (sc_Wundef_boolean): Likewise.
14897         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14898
14899         maint.mk: match 0 or more whitespace-before-function-call '('
14900         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14901         that have zero or two-and-more spaces between the function name
14902         and the open parenthesis.
14903         (sc_error_message_warn_fatal): Likewise.
14904         (sc_error_message_uppercase): Likewise.
14905         (sc_error_message_period): Likewise.
14906
14907 2010-03-31  Eric Blake  <eblake@redhat.com>
14908
14909         maint.mk: check for [ as well as test
14910         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14911         Based on a libvirt report by Matthias Bolte.
14912
14913         gnumakefile: don't squelch _version output
14914         * top/GNUmakefile (_version): Create one-shot dependency rather
14915         than using $(shell) when version must be regenerated.
14916         (_autoreconf): Run verbosely, by default.
14917
14918         sys_time: avoid compiler warnings
14919         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14920         unconditional, fixing regression from 2010-03-29.
14921         Reported by Simon Josefsson.
14922
14923 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14924
14925         maint.mk: s/_header_without_use/_sc_header_without_use/
14926         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14927         (sc_prohibit_assert_without_use): Use the new name.
14928         (sc_prohibit_close_stream_without_use): Likewise.
14929         (sc_prohibit_getopt_without_use): Likewise.
14930         (sc_prohibit_quotearg_without_use): Likewise.
14931         (sc_prohibit_quote_without_use): Likewise.
14932         (sc_prohibit_long_options_without_use): Likewise.
14933         (sc_prohibit_inttostr_without_use): Likewise.
14934         (sc_prohibit_ignore_value_without_use): Likewise.
14935         (sc_prohibit_error_without_use): Likewise.
14936         (sc_prohibit_xalloc_without_use): Likewise.
14937         (sc_prohibit_hash_without_use): Likewise.
14938         (sc_prohibit_hash_pjw_without_use): Likewise.
14939         (sc_prohibit_safe_read_without_use): Likewise.
14940         (sc_prohibit_argmatch_without_use): Likewise.
14941         (sc_prohibit_canonicalize_without_use): Likewise.
14942         (sc_prohibit_root_dev_ino_without_use): Likewise.
14943         (sc_prohibit_openat_without_use): Likewise.
14944         (sc_prohibit_c_ctype_without_use): Likewise.
14945         (sc_prohibit_signal_without_use): Likewise.
14946         (sc_prohibit_intprops_without_use): Likewise.
14947
14948 2010-03-30  Eric Blake  <eblake@redhat.com>
14949
14950         maint: improve module indicators
14951         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14952         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14953         columns, and avoid extra macro expansion.
14954
14955         fdopendir: work around FreeBSD bug
14956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14957         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14958         * modules/dirent (Makefile.am): Substitute it.
14959         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14960         declaration.
14961         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14962         fix.
14963         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14964
14965 2010-03-29  Bruno Haible  <bruno@clisp.org>
14966
14967         Emit #pragma system_header after the inclusion guard, not before.
14968         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14969         guard that spans the entire file, not before. This enables an
14970         optimization in GCC's preprocessor.
14971         * lib/ctype.in.h: Likewise.
14972         * lib/dirent.in.h: Likewise.
14973         * lib/errno.in.h: Likewise.
14974         * lib/float.in.h: Likewise.
14975         * lib/getopt.in.h: Likewise.
14976         * lib/iconv.in.h: Likewise.
14977         * lib/langinfo.in.h: Likewise.
14978         * lib/locale.in.h: Likewise.
14979         * lib/math.in.h: Likewise.
14980         * lib/netdb.in.h: Likewise.
14981         * lib/netinet_in.in.h: Likewise.
14982         * lib/pty.in.h: Likewise.
14983         * lib/sched.in.h: Likewise.
14984         * lib/se-selinux.in.h: Likewise.
14985         * lib/search.in.h: Likewise.
14986         * lib/spawn.in.h: Likewise.
14987         * lib/stdarg.in.h: Likewise.
14988         * lib/stdint.in.h: Likewise.
14989         * lib/string.in.h: Likewise.
14990         * lib/strings.in.h: Likewise.
14991         * lib/sys_file.in.h: Likewise.
14992         * lib/sys_ioctl.in.h: Likewise.
14993         * lib/sys_time.in.h: Likewise.
14994         * lib/sys_times.in.h: Likewise.
14995         * lib/sys_utsname.in.h: Likewise.
14996         * lib/sys_wait.in.h: Likewise.
14997         * lib/sysexits.in.h: Likewise.
14998         * lib/wctype.in.h: Likewise.
14999
15000 2010-03-28  James Youngman  <jay@gnu.org>
15001
15002         save-cwd: don't leak a file descriptor when the caller execs.
15003         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15004         saved file descriptor.
15005         * modules/save-cwd (Depends-on): Depend on cloexec.
15006
15007 2010-03-29  Bruno Haible  <bruno@clisp.org>
15008
15009         Remove vestiges of fts-lgpl module.
15010         * lib/fts_.h: Assume GNULIB_FTS is 1.
15011         * lib/fts.c: Likewise.
15012         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15013
15014 2010-03-28  Bruno Haible  <bruno@clisp.org>
15015
15016         Fix definition of tests witness macro.
15017         * gnulib-tool (func_import): Fix definition of witness macro.
15018
15019 2010-03-28  Bruno Haible  <bruno@clisp.org>
15020
15021         Fix ioctl's protoype on glibc systems.
15022         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15023         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15024         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15025         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15026         signature. If not, arrange to replace the ioctl function.
15027         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15028         REPLACE_IOCTL.
15029         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15030         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15031         Reported by Ludovic Courtès <ludo@gnu.org>.
15032
15033 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15034
15035         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15036         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15037         made it so grep -r --include=GLOB* ... did not work.
15038
15039 2010-03-26  Jim Meyering  <meyering@redhat.com>
15040             Eric Blake  <eblake@redhat.com>
15041
15042         maint.mk: prohibit use of test's -o and -a operators
15043         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15044
15045 2010-03-28  Bruno Haible  <bruno@clisp.org>
15046
15047         Remove unused GNULIB_XYZ macro definitions.
15048         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15049         invocation.
15050
15051 2010-03-28  Bruno Haible  <bruno@clisp.org>
15052
15053         Mark privileged tests modules.
15054         * modules/idpriv-drop-tests (Status): New section.
15055         * modules/idpriv-droptemp-tests (Status): New section.
15056
15057 2010-03-28  Bruno Haible  <bruno@clisp.org>
15058
15059         Split C++ tests into separate tests modules.
15060         * modules/dirent-c++-tests: New file, extracted from
15061         modules/dirent-tests.
15062         * modules/dirent-tests: Depend on it.
15063         * modules/fcntl-h-c++-tests: New file, extracted from
15064         modules/fcntl-h-tests.
15065         * modules/fcntl-h-tests: Depend on it.
15066         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15067         * modules/glob-tests: Depend on it.
15068         * modules/iconv-h-c++-tests: New file, extracted from
15069         modules/iconv-h-tests.
15070         * modules/iconv-h-tests: Depend on it.
15071         * modules/langinfo-c++-tests: New file, extracted from
15072         modules/langinfo-tests.
15073         * modules/langinfo-tests: Depend on it.
15074         * modules/locale-c++-tests: New file, extracted from
15075         modules/locale-tests.
15076         * modules/locale-tests: Depend on it.
15077         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15078         * modules/math-tests: Depend on it.
15079         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15080         * modules/pty-tests: Depend on it.
15081         * modules/search-c++-tests: New file, extracted from
15082         modules/search-tests.
15083         * modules/search-tests: Depend on it.
15084         * modules/signal-c++-tests: New file, extracted from
15085         modules/signal-tests.
15086         * modules/signal-tests: Depend on it.
15087         * modules/spawn-c++-tests: New file, extracted from
15088         modules/spawn-tests.
15089         * modules/spawn-tests: Depend on it.
15090         * modules/stdio-c++-tests: New file, extracted from
15091         modules/stdio-tests.
15092         * modules/stdio-tests: Depend on it.
15093         * modules/stdlib-c++-tests: New file, extracted from
15094         modules/stdlib-tests.
15095         * modules/stdlib-tests: Depend on it.
15096         * modules/string-c++-tests: New file, extracted from
15097         modules/string-tests.
15098         * modules/string-tests: Depend on it.
15099         * modules/sys_ioctl-c++-tests: New file, extracted from
15100         modules/sys_ioctl-tests.
15101         * modules/sys_ioctl-tests: Depend on it.
15102         * modules/sys_select-c++-tests: New file, extracted from
15103         modules/sys_select-tests.
15104         * modules/sys_select-tests: Depend on it.
15105         * modules/sys_socket-c++-tests: New file, extracted from
15106         modules/sys_socket-tests.
15107         * modules/sys_socket-tests: Depend on it.
15108         * modules/sys_stat-c++-tests: New file, extracted from
15109         modules/sys_stat-tests.
15110         * modules/sys_stat-tests: Depend on it.
15111         * modules/sys_time-c++-tests: New file, extracted from
15112         modules/sys_time-tests.
15113         * modules/sys_time-tests: Depend on it.
15114         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15115         * modules/time-tests: Depend on it.
15116         * modules/unistd-c++-tests: New file, extracted from
15117         modules/unistd-tests.
15118         * modules/unistd-tests: Depend on it.
15119         * modules/wchar-c++-tests: New file, extracted from
15120         modules/wchar-tests.
15121         * modules/wchar-tests: Depend on it.
15122         * modules/wctype-c++-tests: New file, extracted from
15123         modules/wctype-tests.
15124         * modules/wctype-tests: Depend on it.
15125         Reported by Simon Josefsson.
15126
15127 2010-03-28  Bruno Haible  <bruno@clisp.org>
15128
15129         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15130         * gnulib-tool (func_exists_module): New function, extracted from
15131         func_verify_module.
15132         (func_verify_module): Use it.
15133         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15134         'foo' only if 'foo' exists.
15135         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15136         module.
15137
15138 2010-03-28  Bruno Haible  <bruno@clisp.org>
15139
15140         gnulib-tool: Add support for special categories of tests.
15141         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15142         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15143         (func_usage): Document them.
15144         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15145         inc_unportable_tests, inc_all_tests): New variables.
15146         (func_acceptable): Consider these variables.
15147         (func_modules_transitive_closure): Make it work when the 'Status' field
15148         consists of multiple words.
15149         (func_import): Store and restore the values of inc_cxx_tests,
15150         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15151         inc_all_tests in gnulib-comp.m4.
15152         (func_create_testdir): Set inc_all_tests to true.
15153         * doc/gnulib.texi (Extra tests modules): New section.
15154         Suggested by Jim Meyering.
15155
15156 2010-03-28  Bruno Haible  <bruno@clisp.org>
15157
15158         ansi-c++-opt: Allow turning off the C++ build by default.
15159         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15160         gl_CXX_CHOICE_DEFAULT_NO is defined.
15161         Requested by Eric Blake.
15162
15163 2010-03-28  Bruno Haible  <bruno@clisp.org>
15164
15165         unistd: Avoid #define replacements in C++ mode.
15166         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15167         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15168         setsockopt, shutdown, select): In C++, attach a warning to the function
15169         if possible, rather than #defining the symbol to a dysfunctional alias.
15170         Reported by John W. Eaton <jwe@gnu.org>.
15171
15172 2010-03-28  Bruno Haible  <bruno@clisp.org>
15173
15174         Fix link errors on mingw.
15175         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15176         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15177         $(LIBSOCKET).
15178         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15179         $(LIBSOCKET).
15180
15181 2010-03-28  Bruno Haible  <bruno@clisp.org>
15182             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15183
15184         lib-ignore: Determine different options for different compilers.
15185         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15186         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15187         Add comments.
15188         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15189         * NEWS: Mention the change.
15190
15191 2010-03-27  Bruno Haible  <bruno@clisp.org>
15192
15193         Remove unused GNULIB_XYZ macro definitions.
15194         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15195         * modules/fseek (configure.ac): Likewise.
15196         * modules/ioctl (configure.ac): Likewise.
15197         * modules/open (configure.ac): Likewise.
15198         * modules/stdlib-safer (configure.ac): Likewise.
15199
15200 2010-03-27  Bruno Haible  <bruno@clisp.org>
15201
15202         Add a remark about certain modules.
15203         * modules/malloc (Comment): New section.
15204         * modules/realloc (Comment): Likewise.
15205         * modules/sigpipe (Comment): Likewise.
15206
15207 2010-03-27  Bruno Haible  <bruno@clisp.org>
15208
15209         Resolve conflict between the two kinds of module indicators.
15210         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15211         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15212         * modules/canonicalize (configure.ac): Invoke
15213         gl_MODULE_INDICATOR_FOR_TESTS.
15214         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15215         GNULIB_XYZ.
15216         * tests/test-dirent-c++.cc: Likewise.
15217         * tests/test-dirent-safer.c: Likewise.
15218         * tests/test-dup2.c: Likewise.
15219         * tests/test-fchdir.c: Likewise.
15220         * tests/test-fcntl-h-c++.cc: Likewise.
15221         * tests/test-getopt.c: Likewise.
15222         * tests/test-getopt.h: Likewise.
15223         * tests/test-langinfo-c++.cc: Likewise.
15224         * tests/test-locale-c++.cc: Likewise.
15225         * tests/test-math-c++.cc: Likewise.
15226         * tests/test-pty-c++.cc: Likewise.
15227         * tests/test-search-c++.cc: Likewise.
15228         * tests/test-signal-c++.cc: Likewise.
15229         * tests/test-spawn-c++.cc: Likewise.
15230         * tests/test-stdio-c++.cc: Likewise.
15231         * tests/test-stdlib-c++.cc: Likewise.
15232         * tests/test-string-c++.cc: Likewise.
15233         * tests/test-sys_ioctl-c++.cc: Likewise.
15234         * tests/test-sys_select-c++.cc: Likewise.
15235         * tests/test-sys_socket-c++.cc: Likewise.
15236         * tests/test-sys_stat-c++.cc: Likewise.
15237         * tests/test-sys_time-c++.cc: Likewise.
15238         * tests/test-time-c++.cc: Likewise.
15239         * tests/test-unistd-c++.cc: Likewise.
15240         * tests/test-wchar-c++.cc: Likewise.
15241         * tests/uninorm/test-u8-nfc.c: Likewise.
15242         * tests/uninorm/test-u8-nfd.c: Likewise.
15243         * tests/uninorm/test-u8-nfkc.c: Likewise.
15244         * tests/uninorm/test-u8-nfkd.c: Likewise.
15245         * tests/uninorm/test-u16-nfc.c: Likewise.
15246         * tests/uninorm/test-u16-nfd.c: Likewise.
15247         * tests/uninorm/test-u16-nfkc.c: Likewise.
15248         * tests/uninorm/test-u16-nfkd.c: Likewise.
15249         * tests/uninorm/test-u32-nfc.c: Likewise.
15250         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15251         * tests/uninorm/test-u32-nfd.c: Likewise.
15252         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15253         * tests/uninorm/test-u32-nfkc.c: Likewise.
15254         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15255         * tests/uninorm/test-u32-nfkd.c: Likewise.
15256         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15257         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15258
15259 2010-03-27  Bruno Haible  <bruno@clisp.org>
15260
15261         Distinguish two kinds of module indicators.
15262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15263         gl_MODULE_INDICATOR.
15264         (gl_MODULE_INDICATOR): New macro.
15265         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15266         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15267         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15268         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15269         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15270         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15271         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15272         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15273         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15274         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15275         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15276         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15278         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15279         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15281         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15282         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15283         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15284         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15285         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15286         * modules/cloexec (configure.ac): Likewise.
15287         * modules/getopt-gnu (configure.ac): Likewise.
15288         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15289         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15290         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15291         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15292
15293 2010-03-27  Bruno Haible  <bruno@clisp.org>
15294
15295         New module description field 'Comment'.
15296         * gnulib-tool: New option --extract-comment.
15297         (func_usage): Document it.
15298         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15299         (func_get_comment): New function.
15300         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15301
15302 2010-03-27  Bruno Haible  <bruno@clisp.org>
15303
15304         Addendum to 2010-02-07 commit.
15305         * gnulib-tool (func_usage): Document --extract-applicability option.
15306
15307 2010-03-27  Bruno Haible  <bruno@clisp.org>
15308
15309         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15310         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15311         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15312         rather than link errors.
15313
15314 2010-03-27  Bruno Haible  <bruno@clisp.org>
15315
15316         Avoid side effects from tests-related modules on the compilation of lib.
15317         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15318         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15319         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15320         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15321         macro.
15322         (func_import): Define a witness macro. Assign it a value that depends
15323         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15324         tests-related modules.
15325         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15326         Reported by Jim Meyering.
15327
15328 2010-03-27  Bruno Haible  <bruno@clisp.org>
15329
15330         Factorize common .m4 code.
15331         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15332         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15333         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15334         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15335         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15336         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15337         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15338         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15339         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15340         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15341         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15342         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15343         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15344         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15345         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15346         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15347         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15348         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15350         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15351         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15352         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15353         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15354         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15355         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15356         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15357         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15358         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15359         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15360         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15361         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15362         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15363
15364 2010-03-27  Bruno Haible  <bruno@clisp.org>
15365
15366         Fix a compilation error on Cygwin with g++ >= 4.3.
15367         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15368         if it is undefined or if we alias it to chmod.
15369         (lstat): Don't warn about the use of this function if it is undefined
15370         or if we alias it to stat.
15371         Reported by Simon Josefsson.
15372
15373 2010-03-27  Bruno Haible  <bruno@clisp.org>
15374
15375         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15376         * modules/getlogin (configure.ac): Update.
15377
15378         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15379         * modules/getlogin_r (configure.ac): Update.
15380
15381         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15383         * modules/inet_ntop (configure.ac): Update.
15384
15385         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15386         * modules/inet_pton (configure.ac): Update.
15387
15388         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15389         * modules/mbslen (configure.ac): Update.
15390
15391         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15392         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15393         * modules/forkpty (configure.ac): Update.
15394         * modules/openpty (configure.ac): Update.
15395
15396 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15397
15398         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15399         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15400
15401 2010-03-25  Eric Blake  <eblake@redhat.com>
15402
15403         maint: use pragma consistently across replacement headers
15404         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15405         * lib/dirent.in.h (system_header): Likewise.
15406         * lib/errno.in.h (system_header): Likewise.
15407         * lib/float.in.h (system_header): Likewise.
15408         * lib/getopt.in.h (system_header): Likewise.
15409         * lib/iconv.in.h (system_header): Likewise.
15410         * lib/inttypes.in.h (system_header): Likewise.
15411         * lib/langinfo.in.h (system_header): Likewise.
15412         * lib/locale.in.h (system_header): Likewise.
15413         * lib/math.in.h (system_header): Likewise.
15414         * lib/netdb.in.h (system_header): Likewise.
15415         * lib/netinet_in.in.h (system_header): Likewise.
15416         * lib/pty.in.h (system_header): Likewise.
15417         * lib/sched.in.h (system_header): Likewise.
15418         * lib/se-selinux.in.h (system_header): Likewise.
15419         * lib/search.in.h (system_header): Likewise.
15420         * lib/spawn.in.h (system_header): Likewise.
15421         * lib/stdarg.in.h (system_header): Likewise.
15422         * lib/stdint.in.h (system_header): Likewise.
15423         * lib/string.in.h (system_header): Likewise.
15424         * lib/strings.in.h (system_header): Likewise.
15425         * lib/sys_file.in.h (system_header): Likewise.
15426         * lib/sys_ioctl.in.h (system_header): Likewise.
15427         * lib/sys_socket.in.h (system_header): Likewise.
15428         * lib/sys_times.in.h (system_header): Likewise.
15429         * lib/sys_utsname.in.h (system_header): Likewise.
15430         * lib/sys_wait.in.h (system_header): Likewise.
15431         * lib/sysexits.in.h (system_header): Likewise.
15432         * lib/unistd.in.h (system_header): Likewise.
15433         * lib/wctype.in.h (system_header): Likewise.
15434
15435         arpa/inet: fix mingw compilation warning
15436         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15437         Reported by Matthew Bolte.
15438
15439 2010-03-25  Bruno Haible  <bruno@clisp.org>
15440
15441         Avoid collision between gnulib wrapper and libintl wrapper.
15442         * lib/printf.c (printf): Don't define if a printf wrapper is already
15443         defined in intl/printf.c.
15444         Reported by Michel Boaventura <michel@michelboaventura.com>.
15445
15446 2010-03-25  Bruno Haible  <bruno@clisp.org>
15447
15448         Use ANSI C.
15449         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15450
15451 2010-03-25  Bruno Haible  <bruno@clisp.org>
15452
15453         Minor formatting changes.
15454         * lib/acosl.c: Insert space before function argument list.
15455         * lib/argz.c: Likewise.
15456         * lib/asinl.c: Likewise.
15457         * lib/expl.c: Likewise.
15458         * lib/gen-uni-tables.c: Likewise.
15459         * lib/gettext.h: Likewise.
15460         * lib/glthread/lock.h: Likewise.
15461         * lib/tanl.c: Likewise.
15462         * lib/uniname/uniname.c: Likewise.
15463         * tests/test-idpriv-drop.c: Likewise.
15464         * tests/test-idpriv-droptemp.c: Likewise.
15465         * tests/test-lock.c: Likewise.
15466         * tests/test-tls.c: Likewise.
15467         * lib/argp-help.c: Insert space before function-like macro argument
15468         list.
15469         * lib/memcmp.c: Likewise.
15470         * tests/test-base64.c: Likewise.
15471         * lib/localename.c: Insert space before sizeof's argument list.
15472         * lib/safe-alloc.h: Likewise.
15473         * lib/file-set.h: Insert space before macro argument list.
15474         * tests/test-argp.c: Likewise.
15475         * lib/argp-namefrob.h: Insert space before function parameter list.
15476         * lib/getaddrinfo.c: Likewise.
15477         * lib/netdb.in.h: Likewise.
15478         * lib/parse-duration.h: Likewise.
15479         * lib/parse-duration.c: Likewise.
15480         * lib/poll.c: Likewise.
15481         * lib/select.c: Likewise.
15482         * lib/trim.h: Likewise.
15483         * tests/test-usleep.c: Likewise.
15484         * lib/ldexpl.c: Insert space before function parameter list and before
15485         function argument list.
15486         * lib/logl.c: Likewise.
15487         * lib/sqrtl.c: Likewise.
15488         * lib/trim.c: Likewise.
15489         * lib/cosl.c: Use GNU style indentation. Insert space before function
15490         argument list.
15491         * lib/sinl.c: Likewise.
15492         * lib/tsearch.c: Insert space after 'for'.
15493         Reported by Jim Meyering.
15494
15495 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15496
15497         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15498         config header before grepping, as it's not present before
15499         autoreconf/configure are run.  Reported by Simon Josefsson.
15500
15501 2010-03-23  Bruno Haible  <bruno@clisp.org>
15502
15503         pt_chown: Make it work with automake < 1.11.
15504         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15505         Reported by Simon Josefsson.
15506
15507 2010-03-23  Bruno Haible  <bruno@clisp.org>
15508
15509         pt_chown: Don't depend on GPLed modules.
15510         * lib/pt_chown.c: Don't include idpriv.h.
15511         (main): Don't drop privileges.
15512         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15513         Reported by Simon Josefsson.
15514
15515 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15516
15517         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15518         suggestions from karl@freefriends.org (Karl Berry).
15519
15520 2010-03-22  Eric Blake  <eblake@redhat.com>
15521
15522         gethostname: further tweaks
15523         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15524         are overriding gethostname.
15525         Suggested by Bruno Haible.
15526
15527 2010-03-21  Bruno Haible  <bruno@clisp.org>
15528
15529         Fix comments.
15530         * lib/forkpty.c (rpl_forkpty): Fix comment.
15531         * lib/openpty.c (rpl_openpty): Likewise.
15532         Reported by Eric Blake.
15533
15534 2010-03-22  Eric Blake  <eblake@redhat.com>
15535
15536         gethostname: fix build on mingw
15537         * lib/unistd.in.h (includes): Work around fact that mingw
15538         <winsock2.h> re-includes <unistd.h>, by avoiding any
15539         redeclarations if we are being included by <winsock2.h>.
15540         Reported by Matthias Bolte.
15541
15542 2010-03-21  Bruno Haible  <bruno@clisp.org>
15543
15544         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15545         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15546         modifications.
15547         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15548         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15549         provide the replacement.
15550         * modules/forkpty (Depends-on): Add openpty, login_tty.
15551         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15552         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15553         * doc/glibc-functions/forkpty.texi: More supported platforms.
15554         * config/srclist.txt: Add forkpty.c (commented).
15555
15556 2010-03-21  Bruno Haible  <bruno@clisp.org>
15557
15558         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15559         (Makefile.am): Verify that PTY_LIB is defined.
15560
15561         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15562
15563 2010-03-21  Bruno Haible  <bruno@clisp.org>
15564
15565         Tests for module 'login_tty'.
15566         * modules/login_tty-tests: New file.
15567         * tests/test-login_tty.c: New file.
15568
15569         New module 'login_tty'.
15570         * lib/login_tty.c: New file.
15571         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15572         * modules/login_tty: New file.
15573         * doc/glibc-functions/login_tty.texi: Mention the new module.
15574
15575 2010-03-21  Bruno Haible  <bruno@clisp.org>
15576
15577         login_tty: Documentation.
15578         * doc/glibc-functions/login_tty.texi: New file.
15579         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15580
15581 2010-03-21  Bruno Haible  <bruno@clisp.org>
15582
15583         pty: Consistent macro naming.
15584         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15585         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15586         * modules/pty (configure.ac): Update.
15587
15588 2010-03-21  Bruno Haible  <bruno@clisp.org>
15589
15590         Tests for openpty: Make stricter.
15591         * tests/test-openpty.c (main): Add test of canonical processing and
15592         erase.
15593         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15594
15595         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15596         * lib/openpty.c (openpty): New replacement function.
15597         * lib/pty.in.h: Include <termios.h>.
15598         (openpty): Update declaration. Add comments.
15599         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15600         is not declared, arrange to provide the replacement. Check for _getpty
15601         and posix_openpt.
15602         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15603         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15604         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15605         * modules/pty-tests (test_pty_c___LDADD): New variable.
15606         * doc/glibc-functions/openpty.texi: More supported platforms.
15607
15608 2010-03-21  Bruno Haible  <bruno@clisp.org>
15609
15610         setenv: Tweaks.
15611         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15612         the test program.
15613         * doc/posix-functions/setenv.texi: Update platforms list.
15614
15615 2010-03-21  Bruno Haible  <bruno@clisp.org>
15616
15617         New module 'unlockpt'.
15618         * lib/unlockpt.c: New file, from glibc with modifications.
15619         * m4/unlockpt.m4: New file.
15620         * modules/unlockpt: New file.
15621         * lib/stdlib.in.h (unlockpt): New declaration.
15622         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15623         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15624         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15625         HAVE_UNLOCKPT.
15626         * doc/posix-functions/unlockpt.texi: Mention the new module.
15627         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15628         * config/srclist.txt: Add unlockpt.c (commented).
15629
15630 2010-03-21  Jim Meyering  <meyering@redhat.com>
15631
15632         maint.mk: prohibit inclusion of "intprops.h" without use
15633         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15634
15635 2010-03-21  Bruno Haible  <bruno@clisp.org>
15636
15637         New module 'grantpt'.
15638         * lib/grantpt.c: New file, from glibc with modifications.
15639         * m4/grantpt.m4: New file.
15640         * modules/grantpt: New file.
15641         * lib/stdlib.in.h (grantpt): New declaration.
15642         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15643         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15644         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15645         HAVE_GRANTPT.
15646         * doc/posix-functions/grantpt.texi: Mention the new module.
15647         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15648         * config/srclist.txt: Add grantpt.c (commented).
15649
15650 2010-03-21  Bruno Haible  <bruno@clisp.org>
15651
15652         New module 'pt_chown'.
15653         * lib/pt_chown.c: New file, from glibc with modifications.
15654         * lib/pty-private.h: New file, from glibc with modifications.
15655         * modules/pt_chown: New file.
15656         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15657
15658 2010-03-21  Bruno Haible  <bruno@clisp.org>
15659
15660         Tests for module 'ptsname'.
15661         * modules/ptsname-tests: New file.
15662         * tests/test-ptsname.c: New file.
15663
15664         New module 'ptsname'.
15665         * lib/ptsname.c: New file, from glibc with modifications.
15666         * m4/ptsname.m4: New file.
15667         * modules/ptsname: New file.
15668         * lib/stdlib.in.h (ptsname): New declaration.
15669         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15670         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15671         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15672         HAVE_PTSNAME.
15673         * doc/posix-functions/ptsname.texi: Mention the new module.
15674         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15675         * config/srclist.txt: Add ptsname.c (commented).
15676
15677 2010-03-21  Bruno Haible  <bruno@clisp.org>
15678
15679         Tests for module 'ttyname_r'.
15680         * modules/ttyname_r-tests: New file.
15681         * tests/test-ttyname_r.c: New file.
15682
15683         New module 'ttyname_r'.
15684         * lib/ttyname_r.c: New file.
15685         * m4/ttyname_r.m4: New file.
15686         * modules/ttyname_r: New file.
15687         * lib/unistd.in.h (ttyname_r): New declaration.
15688         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15689         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15690         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15691         HAVE_TTYNAME_R.
15692         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15693         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15694
15695 2010-03-20  Bruno Haible  <bruno@clisp.org>
15696
15697         signal: Undefine macro definitions in C++ mode.
15698         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15699         sigfillset): Undefine macro definitions from the system header in C++
15700         mode.
15701         Reported by John W. Eaton <jwe@gnu.org>.
15702
15703 2010-03-20  Bruno Haible  <bruno@clisp.org>
15704
15705         Ensure no #include statements inside extern "C" { ... }.
15706         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15707         contain #include statements.
15708         * lib/time.in.h: Likewise.
15709
15710 2010-03-20  Bruno Haible  <bruno@clisp.org>
15711
15712         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15713         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15714         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15715         Reported by John W. Eaton <jwe@gnu.org>.
15716
15717 2010-03-20  Bruno Haible  <bruno@clisp.org>
15718
15719         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15720         Reported by Jim Meyering.
15721
15722 2010-03-20  Bruno Haible  <bruno@clisp.org>
15723
15724         pipe: Set errno upon failure.
15725         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15726         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15727         errno value in error message.
15728
15729 2010-03-20  Bruno Haible  <bruno@clisp.org>
15730             Jim Meyering  <meyering@redhat.com>
15731
15732         lchown: Avoid "unused variable" warning.
15733         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15734
15735 2010-03-20  Bruno Haible  <bruno@clisp.org>
15736
15737         Work around unlink() bug on MacOS X 10.5.6.
15738         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15739         attempting to unlink a parent directory.
15740         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15741         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15742         activate for the replacement function.
15743         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15744
15745 2010-03-20  Bruno Haible  <bruno@clisp.org>
15746
15747         Fix link errors on Solaris 8.
15748         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15749         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15750
15751 2010-03-19  Jim Meyering  <meyering@redhat.com>
15752
15753         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15754         The _LIBC implementation of build_range_exp correctly honors the
15755         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15756         However, the non-_LIBC implementation would ignore that syntax-bit
15757         flag and return REG_ERANGE unconditionally.
15758         This change makes it honor that flag.
15759         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15760         Make two pointer parameters "const".
15761         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15762         (parse_bracket_exp): Update caller.
15763
15764         regex.m4: correct the reversed range endpoint ([b-a]) test
15765         * m4/regex.m4: When requiring that [b-a] evoke failure,
15766         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15767         test pass once again for x86-based systems.
15768
15769 2010-03-19  Bruno Haible  <bruno@clisp.org>
15770
15771         scandir: Fix link error on Solaris 8.
15772         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15773         macros.
15774
15775 2010-03-19  Bruno Haible  <bruno@clisp.org>
15776
15777         getusershell: Fix documentation.
15778         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15779         module.
15780         * doc/glibc-functions/setusershell.texi: Likewise.
15781
15782         getusershell: Provide declaration, missing on Solaris 9.
15783         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15784         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15785         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15786         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15788         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15789         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15790         HAVE_GETUSERSHELL.
15791         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15792
15793 2010-03-19  Bruno Haible  <bruno@clisp.org>
15794
15795         wctype: Provide iswblank function.
15796         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15797         exists and is fine.
15798         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15799         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15800         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15801         * doc/posix-functions/iswblank.texi: Update.
15802
15803 2010-03-19  Bruno Haible  <bruno@clisp.org>
15804
15805         Tests of module 'pty' in C++ mode.
15806         * modules/pty-tests: New file.
15807         * tests/test-pty-c++.cc: New file.
15808         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15809
15810 2010-03-19  Eric Blake  <eblake@redhat.com>
15811
15812         logb: fix documentation
15813         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15814         1.5 declaration bug.
15815
15816         forkpty, openpty: prefer glibc's const-safe prototype
15817         * lib/forkpty.c (rpl_forkpty): New file.
15818         * lib/openpty.c (rpl_openpty): Likewise.
15819         * modules/forkpty (Files): Distribute it.
15820         * modules/openpty (Files): Likewise.
15821         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15822         check...
15823         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15824         replacement for for non-const BSD signature.
15825         * modules/pty (Makefile.am): Substitute witnesses.
15826         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15827         * tests/test-forkpty.c: Update signature check.
15828         * tests/test-openpty.c: Likewise.
15829         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15830         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15831
15832         forkpty, openpty: split functions into new modules
15833         * modules/pty (Makefile.am): Substitute new witnesses.
15834         (Libraries): Move library detection...
15835         * modules/forkpty: ...into new module.
15836         * modules/openpty: Another new module.
15837         * modules/pty-tests: Rename and split...
15838         * modules/forkpty-tests: ...to this...
15839         * modules/openpty-tests: ...and this.
15840         * tests/test-pty.c: Rename and split...
15841         * tests/test-forkpty.c: ...to this...
15842         * tests/test-openpty.c: ...and this.
15843         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15844         (gl_PTY): Split library searching...
15845         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15846         (gl_FORKPTY, gl_OPENPTY): New macros.
15847         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15848         * NEWS: Mention the split.
15849         * MODULES.html.sh (Misc): Document the modules.
15850         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15851         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15852
15853         pty: improve replacement header
15854         * lib/pty.in.h: New file.
15855         * modules/pty (Files): Ship it.
15856         (Makefile.am): Always build replacement.
15857         * m4/pty.m4: Rename...
15858         * m4/pty_h.m4: ...to this.
15859         (gl_PTY): Modernize setting of witness macros; update check of
15860         forkpty to take proper advantage of cache.
15861         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15862
15863         getopt: avoid compiler warning
15864         * lib/getopt.c (attribute_hidden): Remove unused macro.
15865
15866 2010-03-18  Bruno Haible  <bruno@clisp.org>
15867
15868         Fix link errors on Solaris 8.
15869         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15870         * modules/search-tests (test_search_c___LDADD): Likewise.
15871         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15872         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15873         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15874         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15875         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15876         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15877         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15878
15879 2010-03-18  Bruno Haible  <bruno@clisp.org>
15880
15881         Fix bug introduced on 2010-03-14.
15882         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15883         (gl_SPAWN_H): Require it.
15884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15885         Reported by Simon Josefsson.
15886
15887 2010-03-18  Bruno Haible  <bruno@clisp.org>
15888
15889         Fix typo introduced on 2009-12-31.
15890         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15891         posix_spawn_file_actions_adddup2.
15892
15893 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15894         and Eric Blake  <eblake@redhat.com>
15895
15896         test-vc-list-files-git: make more robust
15897         * tests/test-vc-list-files-git.sh: Unset problematic environment
15898         variables.  Chain commands together.
15899
15900 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15901
15902         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15903         `AC_CHECK_DECL' invocation.
15904
15905 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15906
15907         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15908         appears before executable statements. Suggested by Petr Sumbera
15909         <Petr.Sumbera@Sun.COM>.
15910
15911 2010-03-14  Bruno Haible  <bruno@clisp.org>
15912
15913         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15914         portability problems. Instead use a simpler test.
15915         (main): Check that invalid arguments are rejected only on Linux.
15916
15917 2010-03-14  Bruno Haible  <bruno@clisp.org>
15918
15919         Fix bug introduced on 2009-12-31.
15920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15921         gl_PREREQ_SYS_H_WINSOCK2 always.
15922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15923         SYS_SOCKET_H variable.
15924         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15925         Update comments.
15926         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15927         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15928         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15929         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15930         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15931
15932 2010-03-14  Bruno Haible  <bruno@clisp.org>
15933
15934         Fix values returned by sinl, cosl.
15935         * lib/trigl.h: Add specification comments.
15936         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15937         that combines the values from the precomputed table with the values of
15938         the Chebyshev polynomials.
15939
15940 2010-03-14  Bruno Haible  <bruno@clisp.org>
15941
15942         Fix compilation error when modules 'posix_spawn[p]' are not used.
15943         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15945
15946 2010-03-14  Bruno Haible  <bruno@clisp.org>
15947
15948         Fix compilation error on mingw when module 'time_r' is not used.
15949         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15950         is 1.
15951         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15952         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15953         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15955
15956 2010-03-14  Bruno Haible  <bruno@clisp.org>
15957
15958         Fix compilation error with Sun C.
15959         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15960         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15961         instead of GCC specific ULONG_LONG_MAX.
15962         * lib/xstrtoll.c: Likewise.
15963         * lib/xstrtoull.c: Likewise.
15964
15965 2010-03-13  Bruno Haible  <bruno@clisp.org>
15966
15967         Allow the user to disable C++ code and tests.
15968         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15969         (gl_PROG_ANSI_CXX): Require it.
15970
15971 2010-03-13  Bruno Haible  <bruno@clisp.org>
15972
15973         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15974         cases.
15975
15976 2010-03-13  Bruno Haible  <bruno@clisp.org>
15977
15978         Test that gnulib does not break the standard C++ headers.
15979         * tests/test-locale-c++2.cc: New file.
15980         * modules/locale-tests (Files): Add it.
15981         (Makefile.am): Compile it for test-locale-c++.
15982         * tests/test-math-c++2.cc: New file.
15983         * modules/math-tests (Files): Add it.
15984         (Makefile.am): Compile it for test-math-c++.
15985         * tests/test-signal-c++2.cc: New file.
15986         * modules/signal-tests (Files): Add it.
15987         (Makefile.am): Compile it for test-signal-c++.
15988         * tests/test-stdio-c++2.cc: New file.
15989         * modules/stdio-tests (Files): Add it.
15990         (Makefile.am): Compile it for test-stdio-c++.
15991         * tests/test-stdlib-c++2.cc: New file.
15992         * modules/stdlib-tests (Files): Add it.
15993         (Makefile.am): Compile it for test-stdlib-c++.
15994         * tests/test-string-c++2.cc: New file.
15995         * modules/string-tests (Files): Add it.
15996         (Makefile.am): Compile it for test-string-c++.
15997         * tests/test-time-c++2.cc: New file.
15998         * modules/time-tests (Files): Add it.
15999         (Makefile.am): Compile it for test-time-c++.
16000         Reported by John W. Eaton <jwe@gnu.org>.
16001
16002 2010-03-13  Bruno Haible  <bruno@clisp.org>
16003
16004         * gnulib-tool (func_usage): Clarify which options are available for
16005         --create-testdir and --create-megatestdir.
16006
16007 2010-03-13  Bruno Haible  <bruno@clisp.org>
16008
16009         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16010         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16011         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16012         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16013         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16014         when appropriate.
16015         Reported by Jim Meyering.
16016
16017 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16018
16019         * gnulib-tool (func_import): Explain origin of code.
16020
16021 2010-03-12  Bruno Haible  <bruno@clisp.org>
16022
16023         Fix problem with automake's definition of CXXLINK.
16024         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16025         Reported by Simon Josefsson and Ludovic Courtès.
16026
16027 2010-03-12  Bruno Haible  <bruno@clisp.org>
16028
16029         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16030         stable releases.
16031
16032 2010-03-11  Bruno Haible  <bruno@clisp.org>
16033
16034         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16035         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16036         whether the system provides one variant or multiple variants of the
16037         function.
16038         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16039         C++ compilers.
16040         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16041         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16042         Reported by Jim Meyering.
16043
16044 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16045
16046         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16047
16048 2010-03-08  Bruno Haible  <bruno@clisp.org>
16049
16050         gnulib-tool: Add support for --libtool in --create-testdir.
16051         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16052         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16053
16054 2010-03-08  Eric Blake  <eblake@redhat.com>
16055
16056         gnulib-tool.texi: mention possibility of git submodule
16057         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16058         submodules.
16059         * doc/.gitignore: Ignore another generated file.
16060
16061 2010-03-08  Karl Berry  <karl@gnu.org>
16062
16063         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16064         of committing gnulib files while skipping others.
16065
16066 2010-03-07  Bruno Haible  <bruno@clisp.org>
16067
16068         Tests of module 'wctype' in C++ mode.
16069         * tests/test-wctype-c++.cc: New file.
16070         * modules/wctype-tests (Files): Add it and tests/signature.h.
16071         (Depends-on): Add ansi-c++-opt.
16072         (Makefile.am): Arrange to compile and run test-wctype-c++.
16073
16074         Tests of module 'wchar' in C++ mode.
16075         * tests/test-wchar-c++.cc: New file.
16076         * modules/wchar-tests (Files): Add it and tests/signature.h.
16077         (Depends-on): Add ansi-c++-opt.
16078         (Makefile.am): Arrange to compile and run test-wchar-c++.
16079         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16080         gl_MODULE_INDICATOR.
16081
16082         Tests of module 'unistd' in C++ mode.
16083         * tests/test-unistd-c++.cc: New file.
16084         * modules/unistd-tests (Files): Add it and tests/signature.h.
16085         (Depends-on): Add ansi-c++-opt.
16086         (Makefile.am): Arrange to compile and run test-unistd-c++.
16087         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16088         gl_MODULE_INDICATOR.
16089
16090         Tests of module 'time' in C++ mode.
16091         * tests/test-time-c++.cc: New file.
16092         * modules/time-tests (Files): Add it and tests/signature.h.
16093         (Depends-on): Add ansi-c++-opt.
16094         (Makefile.am): Arrange to compile and run test-time-c++.
16095         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16096
16097         Tests of module 'sys_time' in C++ mode.
16098         * tests/test-sys_time-c++.cc: New file.
16099         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16100         (Depends-on): Add ansi-c++-opt.
16101         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16102         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16103         gl_MODULE_INDICATOR.
16104
16105         Tests of module 'sys_stat' in C++ mode.
16106         * tests/test-sys_stat-c++.cc: New file.
16107         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16108         (Depends-on): Add ansi-c++-opt.
16109         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16110         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16111         gl_MODULE_INDICATOR.
16112
16113         Tests of module 'sys_socket' in C++ mode.
16114         * tests/test-sys_socket-c++.cc: New file.
16115         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16116         (Depends-on): Add ansi-c++-opt.
16117         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16118         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16119         gl_MODULE_INDICATOR.
16120
16121         Tests of module 'sys_select' in C++ mode.
16122         * tests/test-sys_select-c++.cc: New file.
16123         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16124         (Depends-on): Add ansi-c++-opt.
16125         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16126         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16127         gl_MODULE_INDICATOR.
16128
16129         Tests of module 'sys_ioctl' in C++ mode.
16130         * tests/test-sys_ioctl-c++.cc: New file.
16131         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16132         (Depends-on): Add ansi-c++-opt.
16133         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16134         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16135         gl_MODULE_INDICATOR.
16136
16137         Tests of module 'string' in C++ mode.
16138         * tests/test-string-c++.cc: New file.
16139         * modules/string-tests (Files): Add it and tests/signature.h.
16140         (Depends-on): Add ansi-c++-opt.
16141         (Makefile.am): Arrange to compile and run test-string-c++.
16142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16143         gl_MODULE_INDICATOR.
16144
16145         Tests of module 'stdlib' in C++ mode.
16146         * tests/test-stdlib-c++.cc: New file.
16147         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16148         (Depends-on): Add ansi-c++-opt.
16149         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16150         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16151         gl_MODULE_INDICATOR.
16152
16153         Tests of module 'stdio' in C++ mode.
16154         * tests/test-stdio-c++.cc: New file.
16155         * modules/stdio-tests (Files): Add it and tests/signature.h.
16156         (Depends-on): Add ansi-c++-opt.
16157         (Makefile.am): Arrange to compile and run test-stdio-c++.
16158         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16159         gl_MODULE_INDICATOR.
16160
16161         Tests of module 'spawn' in C++ mode.
16162         * tests/test-spawn-c++.cc: New file.
16163         * modules/spawn-tests (Files): Add it and tests/signature.h.
16164         (Depends-on): Add ansi-c++-opt.
16165         (Makefile.am): Arrange to compile and run test-spawn-c++.
16166         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16167         gl_MODULE_INDICATOR.
16168
16169         Tests of module 'signal' in C++ mode.
16170         * tests/test-signal-c++.cc: New file.
16171         * modules/signal-tests (Files): Add it and tests/signature.h.
16172         (Depends-on): Add ansi-c++-opt.
16173         (Makefile.am): Arrange to compile and run test-signal-c++.
16174         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16175         gl_MODULE_INDICATOR.
16176
16177         Tests of module 'search' in C++ mode.
16178         * tests/test-search-c++.cc: New file.
16179         * modules/search-tests (Files): Add it and tests/signature.h.
16180         (Depends-on): Add ansi-c++-opt.
16181         (Makefile.am): Arrange to compile and run test-search-c++.
16182         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16183         gl_MODULE_INDICATOR.
16184
16185         Tests of module 'math' in C++ mode.
16186         * tests/test-math-c++.cc: New file.
16187         * modules/math-tests (Files): Add it and tests/signature.h.
16188         (Depends-on): Add ansi-c++-opt.
16189         (Makefile.am): Arrange to compile and run test-math-c++.
16190         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16191
16192         Tests of module 'locale' in C++ mode.
16193         * tests/test-locale-c++.cc: New file.
16194         * modules/locale-tests (Files): Add it and tests/signature.h.
16195         (Depends-on): Add ansi-c++-opt.
16196         (Makefile.am): Arrange to compile and run test-locale-c++.
16197         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16198         gl_MODULE_INDICATOR.
16199
16200         Tests of module 'langinfo' in C++ mode.
16201         * tests/test-langinfo-c++.cc: New file.
16202         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16203         (Depends-on): Add ansi-c++-opt.
16204         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16205         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16206         gl_MODULE_INDICATOR.
16207
16208         Tests of module 'iconv-h' in C++ mode.
16209         * tests/test-iconv-h-c++.cc: New file.
16210         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16211         (Depends-on): Add ansi-c++-opt.
16212         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16213
16214         Tests of module 'glob' in C++ mode.
16215         * tests/test-glob-c++.cc: New file.
16216         * modules/glob-tests (Files): Add it.
16217         (Depends-on): Add ansi-c++-opt.
16218         (Makefile.am): Arrange to compile and run test-glob-c++.
16219
16220         Tests of module 'fcntl-h' in C++ mode.
16221         * tests/test-fcntl-h-c++.cc: New file.
16222         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16223         (Depends-on): Add ansi-c++-opt.
16224         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16225         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16226         gl_MODULE_INDICATOR.
16227
16228         Tests of module 'dirent' in C++ mode.
16229         * tests/test-dirent-c++.cc: New file.
16230         * modules/dirent-tests (Files): Add it and tests/signature.h.
16231         (Depends-on): Add ansi-c++-opt.
16232         (Makefile.am): Arrange to compile and run test-dirent-c++.
16233         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16234         gl_MODULE_INDICATOR.
16235
16236         New module 'ansi-c++-opt'.
16237         * modules/ansi-c++-opt: New file.
16238         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16239
16240         Document C++ namespace mode.
16241         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16242
16243         wctype: Avoid #define replacements in C++ mode.
16244         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16245         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16246         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16247         In C++, define a namespaced alias symbol.
16248         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16249         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16250         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16251         rule.
16252
16253         wchar: Avoid #define replacements in C++ mode.
16254         * lib/wchar.in.h: Include c++defs.h.
16255         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16256         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16257         symbol.
16258         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16259         * modules/wchar (Depends-on): Add c++defs.
16260         (Makefile.am): Update wchar.h rule.
16261
16262         unistd: Avoid #define replacements in C++ mode.
16263         * lib/unistd.in.h: Include c++defs.h.
16264         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16265         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16266         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16267         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16268         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16269         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16270         symbol.
16271         (environ): Update.
16272         * modules/unistd (Depends-on): Add c++defs.
16273         (Makefile.am): Update unistd.h rule.
16274
16275         time: Avoid #define replacements in C++ mode.
16276         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16277         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16278         define a namespaced alias symbol.
16279         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16280         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16281         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16282         * modules/time (Depends-on): Add c++defs, warn-on-use.
16283         (Makefile.am): Update time.h rule.
16284         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16285         * modules/nanosleep (configure.ac): Likewise.
16286         * modules/strptime (configure.ac): Likewise.
16287         * modules/timegm (configure.ac): Likewise.
16288
16289         sys_time: Avoid #define replacements in C++ mode.
16290         * lib/sys_time.in.h: Include c++defs.h.
16291         (gettimeofday): In C++, define a namespaced alias symbol.
16292         * modules/sys_time (Depends-on): Add c++defs.
16293         (Makefile.am): Update sys/time.h rule.
16294
16295         sys_stat: Avoid #define replacements in C++ mode.
16296         * lib/sys_stat.in.h: Include c++defs.h.
16297         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16298         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16299         namespaced alias symbol.
16300         In C++, define a namespaced alias symbol.
16301         * modules/sys_stat (Depends-on): Add c++defs.
16302         (Makefile.am): Update sys/stat.h rule.
16303
16304         sys_socket: Avoid #define replacements in C++ mode.
16305         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16306         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16307         definitions also when the system has a <sys/socket.h>.
16308         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16309         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16310         In C++, define a namespaced alias symbol.
16311         * modules/sys_socket (Depends-on): Add c++defs.
16312         (Makefile.am): Update sys/socket.h rule.
16313
16314         sys_select: Avoid #define replacements in C++ mode.
16315         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16316         definitions also when the system has a <sys/select.h>.
16317         (select): In C++, define a namespaced alias symbol.
16318         * modules/sys_select (Depends-on): Add c++defs.
16319         (Makefile.am): Update sys/select.h rule.
16320
16321         sys_ioctl: Avoid #define replacements in C++ mode.
16322         * lib/sys_ioctl.in.h: Include c++defs.h.
16323         (ioctl): In C++, define a namespaced alias symbol.
16324         * modules/sys_ioctl (Depends-on): Add c++defs.
16325         (Makefile.am): Update sys/ioctl.h rule.
16326
16327         string: Avoid #define replacements in C++ mode.
16328         * lib/string.in.h: Include c++defs.h.
16329         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16330         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16331         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16332         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16333         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16334         * modules/string (Depends-on): Add c++defs.
16335         (Makefile.am): Update string.h rule.
16336
16337         stdlib: Avoid #define replacements in C++ mode.
16338         * lib/stdlib.in.h: Include c++defs.h.
16339         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16340         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16341         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16342         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16343         symbol.
16344         * modules/stdlib (Depends-on): Add c++defs.
16345         (Makefile.am): Update stdlib.h rule.
16346
16347         stdio: Avoid #define replacements in C++ mode.
16348         * lib/stdio.in.h: Include c++defs.h.
16349         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16350         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16351         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16352         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16353         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16354         namespaced alias symbol.
16355         * modules/stdio (Depends-on): Add c++defs.
16356         (Makefile.am): Update stdio.h rule.
16357
16358         spawn: Avoid #define replacements in C++ mode.
16359         * lib/spawn.in.h: Include c++defs.h.
16360         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16361         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16362         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16363         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16364         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16365         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16366         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16367         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16368         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16369         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16370         In C++, define a namespaced alias symbol.
16371         * modules/spawn (Depends-on): Add c++defs.
16372         (Makefile.am): Update spawn.h rule.
16373
16374         signal: Avoid #define replacements in C++ mode.
16375         * lib/signal.in.h: Include c++defs.h.
16376         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16377         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16378         namespaced alias symbol.
16379         * modules/signal (Depends-on): Add c++defs.
16380         (Makefile.am): Update signal.h rule.
16381
16382         search: Avoid #define replacements in C++ mode.
16383         * lib/search.in.h: Include c++defs.h.
16384         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16385         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16386         symbol.
16387         * modules/search (Depends-on): Add c++defs.
16388         (Makefile.am): Update search.h rule.
16389
16390         math: Avoid #define replacements in C++ mode.
16391         * lib/math.in.h: Include c++defs.h.
16392         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16393         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16394         trunc, truncl): In C++, define a namespaced alias symbol.
16395         * modules/math (Depends-on): Add c++defs.
16396         (Makefile.am): Update math.h rule.
16397
16398         locale: Avoid #define replacements in C++ mode.
16399         * lib/locale.in.h: Include c++defs.h.
16400         (duplocale): In C++, define a namespaced alias symbol.
16401         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16402         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16403         * modules/locale (Depends-on): Add c++defs.
16404         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16405
16406         langinfo: Avoid #define replacements in C++ mode.
16407         * lib/langinfo.in.h: Include c++defs.h.
16408         (nl_langinfo): In C++, define a namespaced alias symbol.
16409         * modules/langinfo (Depends-on): Add c++defs.
16410         (Makefile.am): Update langinfo.h rule.
16411
16412         iconv-h: Avoid #define replacements in C++ mode.
16413         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16414         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16415         symbol.
16416         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16417         whenever iconv is present.
16418         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16419         (Makefile.am): Update iconv.h rule.
16420
16421         glob: Avoid #define replacements in C++ mode.
16422         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16423         (_gl_glob_errfunc_fn): New type.
16424         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16425         symbol.
16426         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16427         (Makefile.am): Update glob.h rule.
16428
16429         fcntl-h: Avoid #define replacements in C++ mode.
16430         * lib/fcntl.in.h: Include c++defs.h.
16431         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16432         * modules/fcntl-h (Depends-on): Add c++defs.
16433         (Makefile.am): Update fcntl.h rule.
16434
16435         dirent: Avoid #define replacements in C++ mode.
16436         * lib/dirent.in.h: Include c++defs.h.
16437         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16438         namespaced alias symbol.
16439         (dirfd): Update declaration.
16440         * modules/dirent (Depends-on): Add c++defs.
16441         (Makefile.am): Update dirent.h rule.
16442
16443         ctype: Make it usable in C++ code.
16444         * lib/ctype.in.h: Include c++defs.h.
16445         (isblank): Declare as extern "C".
16446         * modules/ctype (Depends-on): Add c++defs.
16447         (Makefile.am): Update ctype.h rule.
16448
16449         New module 'c++defs'.
16450         * modules/c++defs: New file.
16451         * build-aux/c++defs.h: New file.
16452         Reported by John W. Eaton <jwe@gnu.org>.
16453
16454 2010-03-07  Bruno Haible  <bruno@clisp.org>
16455
16456         logb: Provide missing declaration for Cygwin.
16457         * lib/math.in.h (logb): New declaration.
16458         * m4/logb.m4: New file.
16459         * modules/logb (Files): Add m4/logb.m4.
16460         (Depends-on): Add math.
16461         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16462         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16464         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16465         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16466
16467 2010-03-07  Bruno Haible  <bruno@clisp.org>
16468
16469         Fix test-cond link error.
16470         * tests/test-cond.c: Include <stdio.h>.
16471
16472 2010-03-07  Bruno Haible  <bruno@clisp.org>
16473
16474         Fix test-dirent-safer link error.
16475         * modules/dirent-safer-tests (Makefile.am): Define
16476         test_dirent_safer_LDADD.
16477
16478 2010-03-07  Bruno Haible  <bruno@clisp.org>
16479
16480         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16481         among default module list.
16482
16483 2010-03-07  Bruno Haible  <bruno@clisp.org>
16484
16485         Fix link error on platforms with GNU libiconv.
16486         * modules/unistr/u8-strcoll-tests (Makefile): Define
16487         test_u8_strcoll_LDADD.
16488         * modules/unistr/u16-strcoll-tests (Makefile): Define
16489         test_u16_strcoll_LDADD.
16490         * modules/unistr/u32-strcoll-tests (Makefile): Define
16491         test_u32_strcoll_LDADD.
16492
16493 2010-03-07  Bruno Haible  <bruno@clisp.org>
16494
16495         Use POSIX declarations for socket functions.
16496         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16497         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16498         rpl_sendto): Change declaration to match POSIX.
16499         * lib/connect.c (rpl_connect): Likewise.
16500         * lib/accept.c (rpl_accept): Likewise.
16501         * lib/bind.c (rpl_bind): Likewise.
16502         * lib/getpeername.c (rpl_getpeername): Likewise.
16503         * lib/getsockname.c (rpl_getsockname): Likewise.
16504         * lib/recv.c (rpl_recv): Likewise.
16505         * lib/send.c (rpl_send): Likewise.
16506         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16507         * lib/sendto.c (rpl_sendto): Likewise.
16508
16509 2010-03-06  Bruno Haible  <bruno@clisp.org>
16510
16511         Clarify access, euidaccess, faccessat.
16512         * doc/posix-functions/faccessat.texi: Mention security problem under
16513         "Other problems", not "Portability problems".
16514         * doc/posix-functions/access.texi: Likewise. Mention a related security
16515         problem.
16516         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16517         * lib/euidaccess.c: Add comments about platforms.
16518         * lib/unistd.in.h (access, euidaccess): Add warnings.
16519
16520 2010-03-07  Bruno Haible  <bruno@clisp.org>
16521
16522         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16523         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16524         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16525         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16526         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16527         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16528         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16529         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16530         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16532         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16533         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16534         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16535         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16536         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16537         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16538         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16539         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16540         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16541         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16542         Likewise.
16543         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16544         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16545         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16546         Likewise.
16547         * tests/test-spawn.c (main): Make it work when
16548         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16549
16550 2010-03-07  Bruno Haible  <bruno@clisp.org>
16551
16552         Fix incorrect Makefile.am generation in German locale.
16553         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16554         Execute sed command with character range in C locale.
16555
16556 2010-03-06  Bruno Haible  <bruno@clisp.org>
16557
16558         Tests for module 'iconv-h'.
16559         * modules/iconv-h-tests: New file.
16560         * tests/test-iconv-h.c: New file.
16561
16562         New module 'iconv-h'.
16563         * modules/iconv-h: New file.
16564         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16565         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16566         (configure.ac): Remove gl_ICONV_H.
16567         (Makefile.am): Remove rule for iconv.h.
16568
16569 2010-03-06  Bruno Haible  <bruno@clisp.org>
16570
16571         More consistent naming of *.m4 files.
16572         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16573         * modules/wctype (Files): Update.
16574
16575         More consistent naming of *.m4 files.
16576         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16577         * modules/wchar (Files): Update.
16578
16579 2010-03-06  Jim Meyering  <meyering@redhat.com>
16580
16581         euidaccess: relax license to LGPLv2+
16582         * modules/euidaccess (License): Relax to LGPLv2+.
16583
16584 2010-03-06  Bruno Haible  <bruno@clisp.org>
16585
16586         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16587         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16588         (Makefile.am): Augment lib_SOURCES instead.
16589
16590 2010-03-04  Jim Meyering  <meyering@redhat.com>
16591
16592         utime: remove obsolete module
16593         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16594         unnecessary for years, and has been marked as obsolete for 10 months.
16595         * modules/utime: Remove file.
16596         * lib/utime.c: Remove file.
16597         * m4/utime.m4: Remove file.
16598         * m4/utimes-null.m4: Remove file.
16599         * doc/posix-functions/utime.texi (utime): Remove reference to
16600         the module.  Move the sole "fixed by gnulib" item into the
16601         "problems not fixed by Gnulib" list.
16602         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16603
16604 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16605
16606         * modules/exit (License): Relax license to LGPLv2+.
16607         (Status): Mark as obsolete.
16608         * NEWS: Mention deprecated 'exit' module.
16609         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16610         of now obsolete 'exit'.
16611
16612 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16613
16614         fts-lgpl: remove unused module
16615         * modules/fts-lgpl: Remove.
16616         * MODULES.html.sh (func_all_modules): Adjust.
16617         * check-module (find_included_lib_files): Adjust.
16618         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16619
16620 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16621
16622         copy-acl: enhance Solaris ACL error handling
16623         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16624         * lib/set-mode-acl.c (qset_acl): Likewise.
16625
16626 2010-03-02  Bruno Haible  <bruno@clisp.org>
16627
16628         spawn: Don't override the system defined values on FreeBSD 8.
16629         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16630         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16631         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16632         if HAVE_POSIX_SPAWN is 1.
16633         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16634
16635 2010-03-01  Bruno Haible  <bruno@clisp.org>
16636
16637         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16638         regarding Automake.
16639
16640 2010-02-25  Bruno Haible  <bruno@clisp.org>
16641
16642         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16643         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16644         setting, not afterwards.
16645         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16646
16647 2010-02-24  Eric Blake  <eblake@redhat.com>
16648
16649         bootstrap, git-version-gen: use timestamp
16650         * build-aux/git-version-gen (scriptversion): Force UTC.
16651         * build-aux/bootstrap (scriptversion): New variable.
16652
16653         bootstrap: allow older git
16654         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16655         older than 1.6.4.  Requested by the libvirt project.
16656
16657 2010-02-23  Eric Blake  <eblake@redhat.com>
16658
16659         warn-on-use: work with old autoconf
16660         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16661         AS_VAR semantics of autoconf 2.60.
16662         Reported by Bruno Haible.
16663
16664         bootstrap: improve some comments
16665         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16666         clarification comments.
16667
16668         gettimeofday: provide correct function
16669         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16670         when replacement is declared, otherwise provide gettimeofday.
16671         Reported by Michael Goffioul.
16672
16673 2010-02-23  Jim Meyering  <meyering@redhat.com>
16674
16675         lib-ignore: relax license to "unlimited", not LGPLv2+
16676         * modules/lib-ignore (License): Relax to "unlimited".
16677
16678 2010-02-23  Jim Meyering  <meyering@redhat.com>
16679
16680         lib-ignore: relax license to LGPLv2+
16681         * modules/lib-ignore (License): Relax to LGPLv2+.
16682
16683 2010-02-22  Eric Blake  <eblake@redhat.com>
16684
16685         lseek: avoid bash 3.2 broken pipe bug
16686         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16687         warning from bash 3.2.
16688         Reported by Ben Pfaff, with analysis from Bruno Haible.
16689
16690         bootstrap: support non-FSF copyright holder
16691         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16692         bootstrap.conf override of COPYRIGHT_HOLDER.
16693         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16694
16695         bootstrap: interoperate with gettext 0.14.1
16696         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16697
16698         bootstrap: allow for alternate submodule location
16699         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16700         hardcoding submodule location.
16701         (gnulib_mk): Allow direct use of Makefile.am.
16702
16703         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16704         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16705         rather than reconfiguring where the submodule points.
16706
16707         gettimeofday: restore support for platforms that lack function
16708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16709         replacement if function is missing.
16710         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16711         * modules/sys_time (Makefile.am): Substitute it.
16712         * lib/sys_time.in.h (gettimeofday): Check it.
16713         Reported by Michael Goffioul.
16714
16715 2010-02-21  Bruno Haible  <bruno@clisp.org>
16716
16717         * lib/stdio.in.h (obstack_printf): Fix typo.
16718
16719 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16720
16721         vc-list-files: use bzr ls's -R option
16722         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16723         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16724
16725 2010-02-21  Jim Meyering  <meyering@redhat.com>
16726
16727         init.sh: fix EXEEXT shims to work also for names like test-prog
16728         * tests/init.sh: Re-exec a better shell, when needed.
16729         If the current shell lacks support for posix $(...), an init.sh-using
16730         test will now try to find a shell that supports that.  If EXEEXT is
16731         nonempty, we also require support for hyphen-in-alias-name and shell
16732         substitutions like ${var#glob}.  Failure to find such a shell results
16733         in a skipped test.
16734
16735 2010-02-21  Bruno Haible  <bruno@clisp.org>
16736
16737         Really work around around "broken pipe" error message from bash 3.2.
16738         * gnulib-tool (func_reset_sigpipe): Remove function.
16739         (echo): In bash 3.2, define to a function that uses printf.
16740         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16741
16742 2010-02-20  Bruno Haible  <bruno@clisp.org>
16743
16744         Restore support for automake 1.9.6 with autoconf 2.61.
16745         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16746         Reported by James Youngman <jay@gnu.org>.
16747
16748 2010-02-20  Bruno Haible  <bruno@clisp.org>
16749
16750         Improve *printf warning condition.
16751         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16752         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16753         and the function is overridden due to SIGPIPE emulation.
16754
16755 2010-02-20  Bruno Haible  <bruno@clisp.org>
16756
16757         * lib/stdio.in.h: Tweak comments.
16758
16759 2010-02-19  Bruno Haible  <bruno@clisp.org>
16760
16761         Make it easier to find modules. New gnulib-tool option '--find'.
16762         * gnulib-tool: New option --find.
16763         (func_usage): Document it.
16764         (func_sanitize_modulelist): New function, extracted from
16765         func_all_modules.
16766         (func_all_modules): Invoke it.
16767         * doc/gnulib-tool.texi (Which modules?): New node.
16768
16769 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16770
16771         * lib/sys_select.in.h: Provide select replacement even if
16772         sys/select.h exists on a system, for Interix.
16773
16774 2010-02-18  Jim Meyering  <meyering@redhat.com>
16775
16776         init.sh: don't use $(...) just yet
16777         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16778         to accommodate e.g., Solaris' /bin/sh.
16779
16780 2010-02-17  Bruno Haible  <bruno@clisp.org>
16781
16782         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16783         Reported by Ludovic Courtès <ludo@gnu.org>.
16784
16785 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16786
16787         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16788         linking with -lintl.
16789
16790 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16791
16792         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16793         if not provided by the system's netdb.h.  Reported by
16794         ludo@gnu.org (Ludovic Courtès).
16795
16796 2010-02-15  Jim Meyering  <meyering@redhat.com>
16797
16798         init.sh: improve portability and efficiency
16799         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16800         "dummy" in a for loop.
16801         Use '!', not '^' to select the complement of a character set used
16802         in a "case" statement.
16803         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16804         Suggestions from Eric Blake.
16805
16806         init.sh: automatically accommodate programs with the .exe suffix
16807         Automatically arrange for an invocation of "prog" to execute the
16808         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16809         may use the simpler "prog", yet still work when built on a system
16810         that requires specifying the added suffix.
16811         Do this by constructing a function named "prog" that invokes
16812         "prog.exe" for each .exe file in selected directories.
16813         * tests/init.sh (find_exe_basenames_): New function.
16814         (create_exe_shim_functions_): New function.
16815         (path_prepend_): Use it.
16816
16817         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16818         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16819         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16820
16821 2010-02-14  Jim Meyering  <meyering@redhat.com>
16822
16823         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16824         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16825         (sc_prohibit_hash_pjw_without_use): New rule.
16826
16827         maint.mk: allow the default upload destination dir to be overridden
16828         * top/maint.mk (upload_dest_dir_): Define with a default that
16829         preserves the status quo.
16830         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16831         Reported by Peter Simons.
16832
16833         maint.mk: prohibit inclusion of "hash.h" without_use
16834         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16835
16836 2010-02-10  Jim Meyering  <meyering@redhat.com>
16837
16838         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16839         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16840
16841 2010-02-09  Eric Blake  <ebb9@byu.net>
16842         and Bruno Haible  <bruno@clisp.org>
16843
16844         obstack-printf-posix: ensure declaration
16845         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16846         extracted from gl_FUNC_OBSTACK_PRINTF.
16847         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16848         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16849         Likewise.
16850         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16851         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16852         0.
16853
16854 2010-02-08  Bruno Haible  <bruno@clisp.org>
16855
16856         gnulib-tool: Fix typo in 2010-02-07 commit.
16857         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16858         Reported by Eric Blake.
16859
16860 2010-02-07  Bruno Haible  <bruno@clisp.org>
16861
16862         gnulib-tool: Fix up caching patches.
16863         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16864         option --no-cache. Use associative arrays when supported by the shell.
16865         (sed_comments): New variable.
16866         (modcache): Renamed from do_cache.
16867         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16868         abbreviate unnecessarily.
16869         (have_associative): New variable.
16870         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16871         way also for ksh and zsh.
16872         (func_init_sed_convert_to_cache_statements): New function, extracted
16873         from func_cache_lookup_module. Add support for associative arrays.
16874         Don't set the c_MODULE_cached variable here. Ignore all lines before
16875         the first field header. Remove only the final newline, not all trailing
16876         newlines. Support empty fields correctly. Limit the use of 'eval' to
16877         assignments.
16878         (func_get_description, func_get_status, func_get_notice,
16879         func_get_applicability, func_get_filelist, func_get_dependencies,
16880         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16881         func_get_automake_snippet, func_get_include_directive,
16882         func_get_link_directive, func_get_license, func_get_maintainer):
16883         Update documentation. List the unoptimized code first. Add support for
16884         associative arrays. Limit the use of 'eval' to assignments.
16885         (func_get_applicability): Undo stylistic pessimisations.
16886         (func_get_automake_snippet, func_get_include_directive): Reduce code
16887         duplication.
16888         (func_modules_transitive_closure, func_modules_add_dummy,
16889         func_modules_notice, func_modules_to_filelist, func_add_file,
16890         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16891         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16892         func_create_testdir, func_create_megatestdir): Update documentation.
16893
16894 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16895
16896         * gnulib-tool (func_cache_lookup_module): Store the module name
16897         belonging to the cache variable; error out if two different
16898         module names map to the same cache variable name.
16899
16900 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16901
16902         gnulib-tool: Make caching optional.
16903         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16904         Update matching short versions of --no-changelog.
16905         (func_usage): Update.
16906         (sed_extract_cache_prog): Renamed from ...
16907         (sed_extract_prog): ... this; revert to old extraction script.
16908         (func_get_description, func_get_status)
16909         (func_get_notice, func_get_applicability, func_get_filelist)
16910         (func_get_dependencies, func_get_autoconf_early_snippet)
16911         (func_get_autoconf_snippet, func_get_automake_snippet)
16912         (func_get_include_directive, func_get_link_directive)
16913         (func_get_license, func_get_maintainer): If $do_cache is false,
16914         use old, non-caching extraction scripts.
16915         Suggestion by Bruno Haible.
16916
16917 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16918
16919         gnulib-tool: cache module metainformation.
16920         * gnulib-tool (sed_extract_prog): Match newline before each
16921         header, and rewrite header to a shell variable suffix.
16922         (func_cache_var, func_cache_lookup_module): New functions,
16923         to turn a module name into a cache variable prefix, and to
16924         look up and cache module metainformation.
16925         (func_get_description, func_get_status)
16926         (func_get_notice, func_get_applicability, func_get_filelist)
16927         (func_get_dependencies, func_get_autoconf_early_snippet)
16928         (func_get_autoconf_snippet, func_get_automake_snippet)
16929         (func_get_include_directive, func_get_link_directive)
16930         (func_get_license, func_get_maintainer): Use
16931         func_cache_lookup_module.
16932
16933 2010-02-07  Bruno Haible  <bruno@clisp.org>
16934
16935         fnctl: Fix missing dependency.
16936         * modules/fcntl (Depends-on): Add getdtablesize.
16937         Reported by John W. Eaton <jwe@gnu.org>.
16938
16939 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16940
16941         Argp: fix recognition of short alias options.
16942
16943         * lib/argp-parse.c (convert_options): Fix improper use of
16944         `|' between character values.
16945         * tests/test-argp.c (group1_option): New alias option
16946         --read (-r).
16947         (group1_parser): Special handling for 'r'.
16948         (test15): New test case.
16949         (test_fun): Add test15.
16950         * tests/test-argp-2.sh: Update expected --help and --usage
16951         outputs.
16952
16953 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16954
16955         * tests/test-argp.c: Fix indentation.
16956
16957 2010-02-04  Eric Blake  <ebb9@byu.net>
16958
16959         gettimeofday: expose type of second argument
16960         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16961         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16962         * tests/test-gettimeofday.c: Use it to silence warning.
16963         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16964         the issue.
16965
16966 2010-02-03  Jim Meyering  <meyering@redhat.com>
16967
16968         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16969         * lib/regcomp.c (TYPE_SIGNED): Define.
16970         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16971
16972         regcomp.c: avoid a new -Wshadow warning
16973         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16974
16975 2010-02-01  Jim Meyering  <meyering@redhat.com>
16976
16977         removing useless parentheses in cpp #define directives
16978         For motivation, see commit c0221df4, "define STREQ(a,b)
16979         consistently, removing useless parentheses"
16980         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16981         * lib/mountlist.c (MNT_IGNORE): Likewise.
16982         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16983
16984 2010-02-01  Eric Blake  <ebb9@byu.net>
16985
16986         sys_time: use link-warning
16987         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16988         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16989         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16990         * modules/sys_time (Depends-on): Add warn-on-use.
16991         (Makefile.am): Always build replacement.
16992         (configure.ac): Update substitutions.
16993         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16994         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16995         bother with SYS_TIME_H.
16996         * modules/gettimeofday (configure.ac): Declare indicator.
16997         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16998         in use.
16999
17000         closein-tests: silence compiler warning
17001         * tests/test-closein.c (main): Ignore fread result.
17002         * modules/closein-tests (Depends-on): Add ignore-value.
17003
17004         tests: silence warning about system return
17005         * tests/test-areadlink-with-size.c (main): Ignore system result.
17006         * tests/test-areadlink.c (main): Likewise.
17007         * tests/test-areadlinkat-with-size.c (main): Likewise.
17008         * tests/test-areadlinkat.c (main): Likewise.
17009         * tests/test-canonicalize-lgpl.c (main): Likewise.
17010         * tests/test-canonicalize.c (main): Likewise.
17011         * tests/test-chown.c (main): Likewise.
17012         * tests/test-fchownat.c (main): Likewise.
17013         * tests/test-fdutimensat.c (main): Likewise.
17014         * tests/test-fstatat.c (main): Likewise.
17015         * tests/test-futimens.c (main): Likewise.
17016         * tests/test-lchown.c (main): Likewise.
17017         * tests/test-link.c (main): Likewise.
17018         * tests/test-linkat.c (main): Likewise.
17019         * tests/test-lstat.c (main): Likewise.
17020         * tests/test-mkdir.c (main): Likewise.
17021         * tests/test-mkdirat.c (main): Likewise.
17022         * tests/test-mkfifo.c (main): Likewise.
17023         * tests/test-mkfifoat.c (main): Likewise.
17024         * tests/test-mknod.c (main): Likewise.
17025         * tests/test-readlink.c (main): Likewise.
17026         * tests/test-remove.c (main): Likewise.
17027         * tests/test-rename.c (main): Likewise.
17028         * tests/test-renameat.c (main): Likewise.
17029         * tests/test-rmdir.c (main): Likewise.
17030         * tests/test-symlink.c (main): Likewise.
17031         * tests/test-symlinkat.c (main): Likewise.
17032         * tests/test-unlink.c (main): Likewise.
17033         * tests/test-unlinkat.c (main): Likewise.
17034         * tests/test-utimens.c (main): Likewise.
17035         * tests/test-utimensat.c (main): Likewise.
17036         * modules/areadlink-tests (Depends-on): Add ignore-value.
17037         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17038         * modules/areadlinkat-tests (Depends-on): Likewise.
17039         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17040         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17041         * modules/canonicalize-tests (Depends-on): Likewise.
17042         * modules/chown-tests (Depends-on): Likewise.
17043         * modules/fdutimensat-tests (Depends-on): Likewise.
17044         * modules/futimens-tests (Depends-on): Likewise.
17045         * modules/lchown-tests (Depends-on): Likewise.
17046         * modules/link-tests (Depends-on): Likewise.
17047         * modules/linkat-tests (Depends-on): Likewise.
17048         * modules/lstat-tests (Depends-on): Likewise.
17049         * modules/mkdir-tests (Depends-on): Likewise.
17050         * modules/mkfifo-tests (Depends-on): Likewise.
17051         * modules/mkfifoat-tests (Depends-on): Likewise.
17052         * modules/mknod-tests (Depends-on): Likewise.
17053         * modules/openat-tests (Depends-on): Likewise.
17054         * modules/readlink-tests (Depends-on): Likewise.
17055         * modules/remove-tests (Depends-on): Likewise.
17056         * modules/rename-tests (Depends-on): Likewise.
17057         * modules/renameat-tests (Depends-on): Likewise.
17058         * modules/rmdir-tests (Depends-on): Likewise.
17059         * modules/symlink-tests (Depends-on): Likewise.
17060         * modules/symlinkat-tests (Depends-on): Likewise.
17061         * modules/unlink-tests (Depends-on): Likewise.
17062         * modules/utimens-tests (Depends-on): Likewise.
17063         * modules/utimensat-tests (Depends-on): Likewise.
17064
17065 2010-01-31  Bruno Haible  <bruno@clisp.org>
17066
17067         Perform the same test for many <math.h> functions.
17068         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17069         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17070         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17071         of gl_MATHFUNC.
17072         * modules/acos (configure.ac): Likewise.
17073         * modules/asin (configure.ac): Likewise.
17074         * modules/atan (configure.ac): Likewise.
17075         * modules/atan2 (configure.ac): Likewise.
17076         * modules/cbrt (configure.ac): Likewise.
17077         * modules/copysign (configure.ac): Likewise.
17078         * modules/cos (configure.ac): Likewise.
17079         * modules/cosh (configure.ac): Likewise.
17080         * modules/erf (configure.ac): Likewise.
17081         * modules/erfc (configure.ac): Likewise.
17082         * modules/exp (configure.ac): Likewise.
17083         * modules/fmod (configure.ac): Likewise.
17084         * modules/hypot (configure.ac): Likewise.
17085         * modules/j0 (configure.ac): Likewise.
17086         * modules/j1 (configure.ac): Likewise.
17087         * modules/jn (configure.ac): Likewise.
17088         * modules/lgamma (configure.ac): Likewise.
17089         * modules/log (configure.ac): Likewise.
17090         * modules/log10 (configure.ac): Likewise.
17091         * modules/log1p (configure.ac): Likewise.
17092         * modules/pow (configure.ac): Likewise.
17093         * modules/remainder (configure.ac): Likewise.
17094         * modules/sin (configure.ac): Likewise.
17095         * modules/sinh (configure.ac): Likewise.
17096         * modules/tan (configure.ac): Likewise.
17097         * modules/tanh (configure.ac): Likewise.
17098         * modules/y0 (configure.ac): Likewise.
17099         * modules/y1 (configure.ac): Likewise.
17100         * modules/yn (configure.ac): Likewise.
17101         Suggested by Paolo Bonzini.
17102
17103 2010-01-31  Bruno Haible  <bruno@clisp.org>
17104
17105         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17106
17107 2010-01-31  Bruno Haible  <bruno@clisp.org>
17108
17109         Work around getdelim() bug on FreeBSD 8.0.
17110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17111         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17112         not work.
17113         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17114         is 1.
17115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17116         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17117         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17118         a non-zero size.
17119         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17120
17121 2010-01-31  Bruno Haible  <bruno@clisp.org>
17122
17123         Work around getline() bug on FreeBSD 8.0.
17124         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17125         and a non-zero size.
17126         * tests/test-getline.c (main): Likewise.
17127         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17128         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17129
17130 2010-01-28  Eric Blake  <ebb9@byu.net>
17131
17132         regex: fix build failure
17133         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17134         platforms.
17135
17136 2010-01-28  Jim Meyering  <meyering@redhat.com>
17137
17138         regex: do not ignore memory allocation failure
17139         * lib/regex_internal.c (create_cd_newstate): Detect
17140         re_node_set_init_copy failure.   Extracted from glibc commit
17141         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17142
17143         regex: sync more white-space changes from libc
17144         * lib/regex_internal.c: White-space only changes.
17145         * lib/regexec.c: Likewise.
17146
17147         regex: add many uses of __attribute_warn_unused_result__
17148         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17149         * lib/regexec.c: Likewise.
17150         Extracted from a messy glibc commit.
17151
17152         regcomp.c: spelling and merge-artifact from glibc
17153         * lib/regcomp.c: Merge remainder of glibc's
17154         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17155
17156         regcomp.c: sync white-space changes from glibc
17157         * lib/regcomp.c: Merge to accommodate white space
17158         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17159
17160         regcomp.c: do not ignore internal return values
17161         * lib/regcomp.c: Do not ignore internal return values.
17162         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17163         but without its white-space changes and spelling fixes.
17164
17165         regex_internal.h: define __attribute_warn_unused_result__
17166         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17167
17168         maint: add a syntax-check rule to check for vulnerable Makefile.in
17169         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17170
17171 2010-01-27  Jim Meyering  <meyering@redhat.com>
17172
17173         ncftpput-ftp: clean up spaces
17174         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17175         Remove trailing blanks.
17176
17177 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17178
17179         * build-aux/git-version-gen: Fix copyright statement.
17180         * build-aux/gnupload: Likewise.
17181         * tests/test-arcfour.c: Likewise.
17182         * tests/test-arctwo.c: Likewise.
17183         * tests/test-count-one-bits.c: Likewise.
17184         * tests/test-crc.c: Likewise.
17185         * tests/test-des.c: Likewise.
17186         * tests/test-gc-arcfour.c: Likewise.
17187         * tests/test-gc-arctwo.c: Likewise.
17188         * tests/test-gc-des.c: Likewise.
17189         * tests/test-gc-hmac-md5.c: Likewise.
17190         * tests/test-gc-hmac-sha1.c: Likewise.
17191         * tests/test-gc-md2.c: Likewise.
17192         * tests/test-gc-md4.c: Likewise.
17193         * tests/test-gc-md5.c: Likewise.
17194         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17195         * tests/test-gc-rijndael.c: Likewise.
17196         * tests/test-gc-sha1.c: Likewise.
17197         * tests/test-gc.c: Likewise.
17198         * tests/test-gethostname.c: Likewise.
17199         * tests/test-gettimeofday.c: Likewise.
17200         * tests/test-hash.c: Likewise.
17201         * tests/test-hmac-md5.c: Likewise.
17202         * tests/test-hmac-sha1.c: Likewise.
17203         * tests/test-md2.c: Likewise.
17204         * tests/test-md4.c: Likewise.
17205         * tests/test-md5.c: Likewise.
17206         * tests/test-memchr.c: Likewise.
17207         * tests/test-memchr2.c: Likewise.
17208         * tests/test-memcmp.c: Likewise.
17209         * tests/test-memmem.c: Likewise.
17210         * tests/test-memrchr.c: Likewise.
17211         * tests/test-rawmemchr.c: Likewise.
17212         * tests/test-read-file.c: Likewise.
17213         * tests/test-rijndael.c: Likewise.
17214         * tests/test-sockets.c: Likewise.
17215         * tests/test-strchrnul.c: Likewise.
17216         * tests/test-strstr.c: Likewise.
17217         * tests/test-strtod.c: Likewise.
17218         * build-aux/ncftpput-ftp: Likewise.
17219
17220 2010-01-26  Eric Blake  <ebb9@byu.net>
17221
17222         ignore-value: update recommended header name
17223         * modules/ignore-value (Include): Only use <> for headers that
17224         exist in glibc.
17225
17226 2010-01-26  Jim Meyering  <meyering@redhat.com>
17227
17228         test-userspec.c: avoid compiler warnings
17229         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17230         and "initialization discards qualifiers..." warnings.
17231         Put the first "uid" in its own scope, and make char* members "const".
17232
17233 2010-01-25  Bruno Haible  <bruno@clisp.org>
17234
17235         gnulib-tool: Make warning diagnostics consistent.
17236         * gnulib-tool (func_warning): New function.
17237         Use it everywhere where gnulib-tool produces output to stderr and it is
17238         not a fatal error.
17239
17240 2010-01-25  Bruno Haible  <bruno@clisp.org>
17241
17242         Fix test dependencies.
17243         * modules/xstrtol-tests (Depends-on): Add inttypes.
17244         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17245
17246 2010-01-25 Pádraig Brady <P@draigBrady.com>
17247
17248         syntax-check: detect incorrect boolean macro values in config.h
17249         * modules/maintainer-makefile (configure.ac): Parameterize the location
17250         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17251         The logic is from Eric Blake and the location indicated by Jim Meyering.
17252         Note the more natural CONFIG_HEADER name is prohibited by automake
17253         for backwards compatibility reasons.
17254         * top/maint.mk (sc_Wundef_boolean): New rule.
17255
17256 2010-01-25  Jim Meyering  <meyering@redhat.com>
17257
17258         bootstrap: detect MacOS 10.6's shasum, too
17259         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17260         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17261
17262 2010-01-23  Jim Meyering  <meyering@redhat.com>
17263
17264         xstrtoll: new module
17265         * modules/xstrtoll: New file.
17266         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17267         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17268         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17269         ./configure fails if you use this module and lack "long long".
17270         * modules/xstrtoll-tests: New module.
17271         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17272         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17273         new init.sh-based test framework.
17274
17275 2010-01-24  Bruno Haible  <bruno@clisp.org>
17276
17277         Tests for module 'yn'.
17278         * modules/yn-tests: New file.
17279         * tests/test-yn.c: New file.
17280
17281         Tests for module 'y1'.
17282         * modules/y1-tests: New file.
17283         * tests/test-y1.c: New file.
17284
17285         Tests for module 'y0'.
17286         * modules/y0-tests: New file.
17287         * tests/test-y0.c: New file.
17288
17289         Tests for module 'tanh'.
17290         * modules/tanh-tests: New file.
17291         * tests/test-tanh.c: New file.
17292
17293         Tests for module 'tan'.
17294         * modules/tan-tests: New file.
17295         * tests/test-tan.c: New file.
17296
17297         Tests for module 'sqrt'.
17298         * modules/sqrt-tests: New file.
17299         * tests/test-sqrt.c: New file.
17300
17301         Tests for module 'sinh'.
17302         * modules/sinh-tests: New file.
17303         * tests/test-sinh.c: New file.
17304
17305         Tests for module 'sin'.
17306         * modules/sin-tests: New file.
17307         * tests/test-sin.c: New file.
17308
17309         Tests for module 'rint'.
17310         * modules/rint-tests: New file.
17311         * tests/test-rint.c: New file.
17312
17313         Tests for module 'remainder'.
17314         * modules/remainder-tests: New file.
17315         * tests/test-remainder.c: New file.
17316
17317         Tests for module 'pow'.
17318         * modules/pow-tests: New file.
17319         * tests/test-pow.c: New file.
17320
17321         Tests for module 'nextafter'.
17322         * modules/nextafter-tests: New file.
17323         * tests/test-nextafter.c: New file.
17324
17325         Tests for module 'modf'.
17326         * modules/modf-tests: New file.
17327         * tests/test-modf.c: New file.
17328
17329         Tests for module 'logb'.
17330         * modules/logb-tests: New file.
17331         * tests/test-logb.c: New file.
17332
17333         Tests for module 'log1p'.
17334         * modules/log1p-tests: New file.
17335         * tests/test-log1p.c: New file.
17336
17337         Tests for module 'log10'.
17338         * modules/log10-tests: New file.
17339         * tests/test-log10.c: New file.
17340
17341         Tests for module 'log'.
17342         * modules/log-tests: New file.
17343         * tests/test-log.c: New file.
17344
17345         Tests for module 'lgamma'.
17346         * modules/lgamma-tests: New file.
17347         * tests/test-lgamma.c: New file.
17348
17349         Tests for module 'ldexp'.
17350         * modules/ldexp-tests: New file.
17351         * tests/test-ldexp.c: New file.
17352
17353         Tests for module 'jn'.
17354         * modules/jn-tests: New file.
17355         * tests/test-jn.c: New file.
17356
17357         Tests for module 'j1'.
17358         * modules/j1-tests: New file.
17359         * tests/test-j1.c: New file.
17360
17361         Tests for module 'j0'.
17362         * modules/j0-tests: New file.
17363         * tests/test-j0.c: New file.
17364
17365         Tests for module 'hypot'.
17366         * modules/hypot-tests: New file.
17367         * tests/test-hypot.c: New file.
17368
17369         Tests for module 'fmod'.
17370         * modules/fmod-tests: New file.
17371         * tests/test-fmod.c: New file.
17372
17373         Tests for module 'fabs'.
17374         * modules/fabs-tests: New file.
17375         * tests/test-fabs.c: New file.
17376
17377         Tests for module 'exp'.
17378         * modules/exp-tests: New file.
17379         * tests/test-exp.c: New file.
17380
17381         Tests for module 'erfc'.
17382         * modules/erfc-tests: New file.
17383         * tests/test-erfc.c: New file.
17384
17385         Tests for module 'erf'.
17386         * modules/erf-tests: New file.
17387         * tests/test-erf.c: New file.
17388
17389         Tests for module 'cosh'.
17390         * modules/cosh-tests: New file.
17391         * tests/test-cosh.c: New file.
17392
17393         Tests for module 'cos'.
17394         * modules/cos-tests: New file.
17395         * tests/test-cos.c: New file.
17396
17397         Tests for module 'copysign'.
17398         * modules/copysign-tests: New file.
17399         * tests/test-copysign.c: New file.
17400
17401         Tests for module 'cbrt'.
17402         * modules/cbrt-tests: New file.
17403         * tests/test-cbrt.c: New file.
17404
17405         Tests for module 'atan2'.
17406         * modules/atan2-tests: New file.
17407         * tests/test-atan2.c: New file.
17408
17409         Tests for module 'atan'.
17410         * modules/atan-tests: New file.
17411         * tests/test-atan.c: New file.
17412
17413         Tests for module 'asin'.
17414         * modules/asin-tests: New file.
17415         * tests/test-asin.c: New file.
17416
17417         Tests for module 'acos'.
17418         * modules/acos-tests: New file.
17419         * tests/test-acos.c: New file.
17420
17421 2010-01-24  Bruno Haible  <bruno@clisp.org>
17422
17423         Fix tests for common <math.h> functions.
17424         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17425         code snippet that references the function pointer, rather than merely
17426         calling the function. Substitute the FUNC_LIBM variable.
17427         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17428         * modules/acos (configure.ac): Likewise.
17429         * modules/asin (configure.ac): Likewise.
17430         * modules/atan (configure.ac): Likewise.
17431         * modules/atan2 (configure.ac): Likewise.
17432         * modules/cbrt (configure.ac): Likewise.
17433         * modules/copysign (configure.ac): Likewise.
17434         * modules/cos (configure.ac): Likewise.
17435         * modules/cosh (configure.ac): Likewise.
17436         * modules/erf (configure.ac): Likewise.
17437         * modules/erfc (configure.ac): Likewise.
17438         * modules/exp (configure.ac): Likewise.
17439         * modules/fabs (configure.ac): Likewise.
17440         * modules/fmod (configure.ac): Likewise.
17441         * modules/hypot (configure.ac): Likewise.
17442         * modules/j0 (configure.ac): Likewise.
17443         * modules/j1 (configure.ac): Likewise.
17444         * modules/jn (configure.ac): Likewise.
17445         * modules/ldexp (configure.ac): Likewise.
17446         * modules/lgamma (configure.ac): Likewise.
17447         * modules/log (configure.ac): Likewise.
17448         * modules/log10 (configure.ac): Likewise.
17449         * modules/log1p (configure.ac): Likewise.
17450         * modules/logb (configure.ac): Likewise.
17451         * modules/modf (configure.ac): Likewise.
17452         * modules/nextafter (configure.ac): Likewise.
17453         * modules/pow (configure.ac): Likewise.
17454         * modules/remainder (configure.ac): Likewise.
17455         * modules/rint (configure.ac): Likewise.
17456         * modules/sin (configure.ac): Likewise.
17457         * modules/sinh (configure.ac): Likewise.
17458         * modules/tan (configure.ac): Likewise.
17459         * modules/tanh (configure.ac): Likewise.
17460         * modules/y0 (configure.ac): Likewise.
17461         * modules/y1 (configure.ac): Likewise.
17462         * modules/yn (configure.ac): Likewise.
17463
17464 2010-01-24  Bruno Haible  <bruno@clisp.org>
17465
17466         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17467         * tests/test-acosl.c (x): New variable.
17468         (main): Store argument in x and fetch it from x.
17469         * tests/test-asinl.c (x): New variable.
17470         (main): Store argument in x and fetch it from x.
17471         * tests/test-atanl.c (x): New variable.
17472         (main): Store argument in x and fetch it from x.
17473         * tests/test-cosl.c (x): New variable.
17474         (main): Store argument in x and fetch it from x.
17475         * tests/test-expl.c (x): New variable.
17476         (main): Store argument in x and fetch it from x.
17477         * tests/test-logl.c (x): New variable.
17478         (main): Store argument in x and fetch it from x.
17479         * tests/test-sinl.c (x): New variable.
17480         (main): Store argument in x and fetch it from x.
17481         * tests/test-sqrtl.c (x): New variable.
17482         (main): Store argument in x and fetch it from x.
17483         * tests/test-tanl.c (x): New variable.
17484         (main): Store argument in x and fetch it from x.
17485
17486 2010-01-24  Bruno Haible  <bruno@clisp.org>
17487
17488         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17489         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17490         assignments to the initial TESTS_ENVIRONMENT.
17491         * doc/gnulib.texi (Unit test modules): Document it.
17492         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17493         TESTS_ENVIRONMENT.
17494         * modules/btowc-tests (Makefile.am): Likewise.
17495         * modules/c-stack-tests (Makefile.am): Likewise.
17496         * modules/c-strcase-tests (Makefile.am): Likewise.
17497         * modules/copy-file-tests (Makefile.am): Likewise.
17498         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17499         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17500         * modules/mbrtowc-tests (Makefile.am): Likewise.
17501         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17502         * modules/mbscasestr-tests (Makefile.am): Likewise.
17503         * modules/mbschr-tests (Makefile.am): Likewise.
17504         * modules/mbscspn-tests (Makefile.am): Likewise.
17505         * modules/mbsinit-tests (Makefile.am): Likewise.
17506         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17507         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17508         * modules/mbspbrk-tests (Makefile.am): Likewise.
17509         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17510         * modules/mbsrchr-tests (Makefile.am): Likewise.
17511         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17512         * modules/mbsspn-tests (Makefile.am): Likewise.
17513         * modules/mbsstr-tests (Makefile.am): Likewise.
17514         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17515         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17516         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17517         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17518         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17519         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17520         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17521         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17522         * modules/wcrtomb-tests (Makefile.am): Likewise.
17523         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17524         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17525         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17526         assignments from TESTS_ENVIRONMENT.
17527         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17528         augmentation.
17529         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17530         * modules/atexit-tests (Makefile.am): Likewise.
17531         * modules/binary-io-tests (Makefile.am): Likewise.
17532         * modules/closein-tests (Makefile.am): Likewise.
17533         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17534         * modules/exclude-tests (Makefile.am): Likewise.
17535         * modules/fflush-tests (Makefile.am): Likewise.
17536         * modules/fpending-tests (Makefile.am): Likewise.
17537         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17538         * modules/freadahead-tests (Makefile.am): Likewise.
17539         * modules/freadptr-tests (Makefile.am): Likewise.
17540         * modules/freadseek-tests (Makefile.am): Likewise.
17541         * modules/fseek-tests (Makefile.am): Likewise.
17542         * modules/fseeko-tests (Makefile.am): Likewise.
17543         * modules/ftell-tests (Makefile.am): Likewise.
17544         * modules/ftello-tests (Makefile.am): Likewise.
17545         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17546         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17547         * modules/lseek-tests (Makefile.am): Likewise.
17548         * modules/parse-duration-tests (Makefile.am): Likewise.
17549         * modules/perror-tests (Makefile.am): Likewise.
17550         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17551         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17552         * modules/pipe-tests (Makefile.am): Likewise.
17553         * modules/pread-tests (Makefile.am): Likewise.
17554         * modules/printf-posix-tests (Makefile.am): Likewise.
17555         * modules/select-tests (Makefile.am): Likewise.
17556         * modules/sigpipe-tests (Makefile.am): Likewise.
17557         * modules/tsearch-tests (Makefile.am): Likewise.
17558         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17559         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17560         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17561         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17562         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17563         * modules/version-etc-tests (Makefile.am): Likewise.
17564         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17565         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17566         * modules/xalloc-die-tests (Makefile.am): Likewise.
17567         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17568         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17569         * modules/xstrtol-tests (Makefile.am): Likewise.
17570         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17571         * modules/yesno-tests (Makefile.am): Likewise.
17572         Suggested by Jim Meyering.
17573
17574 2010-01-24  Bruno Haible  <bruno@clisp.org>
17575
17576         More documentation.
17577         * doc/gnulib.texi (Writing modules): New chapter.
17578         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17579         the new chapter.
17580
17581 2010-01-24  Jim Meyering  <meyering@redhat.com>
17582
17583         maint.mk: do not prepend "./" after filtering
17584         * top/maint.mk (_prepend_srcdir_prefix): New variable
17585         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17586         "./" when $(srcdir) is ".".
17587
17588         define STREQ(a,b) consistently, removing useless parentheses
17589         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17590         since the only risk is that "a" or "b" contains an unparenthesized
17591         comma, but if either did that, STREQ would have 3 or more arguments.
17592         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17593         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17594         * lib/hash-triple.c (STREQ): Likewise.
17595         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17596         * lib/getugroups.c (STREQ): Likewise.
17597
17598 2010-01-23  Jim Meyering  <meyering@redhat.com>
17599
17600         maint.mk: fix syntax-check in a non-srcdir build directory
17601         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17602         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17603
17604 2010-01-22  Jim Meyering  <meyering@redhat.com>
17605
17606         userspec: add unit tests
17607         * tests/test-userspec.c: New file.
17608         * modules/userspec-tests: Likewise.
17609
17610 2010-01-21  Jim Meyering  <meyering@redhat.com>
17611
17612         maint.mk: handle source file names containing "." robustly
17613         * top/maint.mk (_dot_escaped_srcdir): Define.
17614         (VC_LIST): Use it in LHS of sed substitution.
17615
17616 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17617
17618         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17619         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17620         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17621         from a non-srcdir build.
17622
17623 2010-01-20  Eric Blake  <ebb9@byu.net>
17624
17625         warn-on-use: use instead of link-warning
17626         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17627         * modules/unistd (Depends-on, Makefile.am): Likewise.
17628         * modules/arpa_inet (Depends-on): Replace link-warning with
17629         warn-on-use.
17630         (Makefile.am): Update rules accordingly.
17631         * modules/ctype (Depends-on, Makefile.am): Likewise.
17632         * modules/dirent (Depends-on, Makefile.am): Likewise.
17633         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17634         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17635         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17636         * modules/locale (Depends-on, Makefile.am): Likewise.
17637         * modules/math (Depends-on, Makefile.am): Likewise.
17638         * modules/search (Depends-on, Makefile.am): Likewise.
17639         * modules/signal (Depends-on, Makefile.am): Likewise.
17640         * modules/spawn (Depends-on, Makefile.am): Likewise.
17641         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17642         * modules/string (Depends-on, Makefile.am): Likewise.
17643         * modules/strings (Depends-on, Makefile.am): Likewise.
17644         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17645         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17646         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17647         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17648         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17649         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17650         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17651         * modules/wchar (Depends-on, Makefile.am): Likewise.
17652         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17653         should be poisoned.
17654         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17655         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17656         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17657         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17658         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17659         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17660         * m4/math_h.m4 (gl_MATH_H): Likewise.
17661         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17662         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17663         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17664         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17665         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17666         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17667         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17668         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17669         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17670         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17671         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17673         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17674         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17675         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17676         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17677         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17678         GL_LINK_WARNING.
17679         * lib/ctype.in.h: Likewise.
17680         * lib/dirent.in.h: Likewise.
17681         * lib/fcntl.in.h: Likewise.
17682         * lib/inttypes.in.h: Likewise.
17683         * lib/langinfo.in.h: Likewise.
17684         * lib/locale.in.h: Likewise.
17685         * lib/math.in.h: Likewise.
17686         * lib/search.in.h: Likewise.
17687         * lib/signal.in.h: Likewise.
17688         * lib/spawn.in.h: Likewise.
17689         * lib/stdio.in.h: Likewise.
17690         * lib/stdlib.in.h: Likewise.
17691         * lib/string.in.h: Likewise.
17692         * lib/strings.in.h: Likewise.
17693         * lib/sys_file.in.h: Likewise.
17694         * lib/sys_ioctl.in.h: Likewise.
17695         * lib/sys_select.in.h: Likewise.
17696         * lib/sys_socket.in.h: Likewise.
17697         * lib/sys_stat.in.h: Likewise.
17698         * lib/sys_times.in.h: Likewise.
17699         * lib/sys_utsname.in.h: Likewise.
17700         * lib/unistd.in.h: Likewise.
17701         * lib/wchar.in.h: Likewise.
17702
17703 2010-01-20  Bruno Haible  <bruno@clisp.org>
17704
17705         Avoid duplicate -lm.
17706         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17707         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17708         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17709         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17710         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17711         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17712         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17713         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17714         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17715         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17716         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17717         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17718         Reported by Paolo Bonzini.
17719
17720 2010-01-19  Bruno Haible  <bruno@clisp.org>
17721
17722         langinfo, nl_langinfo: Relicense under LGPLv2+.
17723         * modules/langinfo (License): Change to LGPLv2+.
17724         * modules/nl_langinfo (License): Likewise.
17725         Patch by David Lutterkort <lutter@redhat.com>.
17726
17727 2010-01-19  Bruno Haible  <bruno@clisp.org>
17728
17729         Avoid compilation error with cc on OSF/1 5.1.
17730         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17731         statement, not before.
17732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17733
17734 2010-01-18  Bruno Haible  <bruno@clisp.org>
17735
17736         Avoid a link error due to the __printf__ symbol.
17737         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17738         and 2.6.x.
17739         (__format__, __printf__): Remove definitions.
17740         * lib/argp-fmtstream.h: Likewise.
17741         * lib/argp.h: Likewise.
17742         * lib/error.h: Likewise.
17743         * lib/vasnprintf.h: Likewise.
17744         * lib/xprintf.h: Likewise.
17745         * lib/xvasprintf.h: Likewise.
17746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17747
17748 2010-01-18  Bruno Haible  <bruno@clisp.org>
17749
17750         Tests for module 'tanl'.
17751         * modules/tanl-tests: New file.
17752         * tests/test-tanl.c: New file.
17753
17754         Tests for module 'sqrtl'.
17755         * modules/sqrtl-tests: New file.
17756         * tests/test-sqrtl.c: New file.
17757
17758         Tests for module 'sinl'.
17759         * modules/sinl-tests: New file.
17760         * tests/test-sinl.c: New file.
17761
17762         Tests for module 'logl'.
17763         * modules/logl-tests: New file.
17764         * tests/test-logl.c: New file.
17765
17766         Tests for module 'expl'.
17767         * modules/expl-tests: New file.
17768         * tests/test-expl.c: New file.
17769
17770         Tests for module 'cosl'.
17771         * modules/cosl-tests: New file.
17772         * tests/test-cosl.c: New file.
17773
17774         Tests for module 'atanl'.
17775         * modules/atanl-tests: New file.
17776         * tests/test-atanl.c: New file.
17777
17778         Tests for module 'asinl'.
17779         * modules/asinl-tests: New file.
17780         * tests/test-asinl.c: New file.
17781
17782         Tests for module 'acosl'.
17783         * modules/acosl-tests: New file.
17784         * tests/test-acosl.c: New file.
17785
17786         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17787         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17788         tanl): Use the standard gnulib idiom.
17789         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17790         * lib/sinl.c: Likewise.
17791         * lib/tanl.c: Don't include trigl.c.
17792         (kernel_tanl): Make static.
17793         * lib/sincosl.c: Include trigl.h first.
17794         * lib/trigl.c: Likewise.
17795         * m4/acosl.m4: New file.
17796         * m4/asinl.m4: New file.
17797         * m4/atanl.m4: New file.
17798         * m4/cosl.m4: New file.
17799         * m4/expl.m4: New file.
17800         * m4/logl.m4: New file.
17801         * m4/sinl.m4: New file.
17802         * m4/sqrtl.m4: New file.
17803         * m4/tanl.m4: New file.
17804         * m4/mathl.m4: Remove file.
17805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17806         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17807         Don't initialize GNULIB_MATHL.
17808         * modules/acosl: New file.
17809         * modules/asinl: New file.
17810         * modules/atanl: New file.
17811         * modules/cosl: New file.
17812         * modules/expl: New file.
17813         * modules/logl: New file.
17814         * modules/sinl: New file.
17815         * modules/sqrtl: New file.
17816         * modules/tanl: New file.
17817         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17818         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17819         substitute GNULIB_MATHL.
17820         * modules/mathl: Rewritten.
17821         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17822         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17823         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17824         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17825         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17826         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17827         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17828         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17829         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17830
17831 2010-01-18  Bruno Haible  <bruno@clisp.org>
17832
17833         sqrt: Make gl_FUNC_SQRT requirable.
17834         * m4/sqrt.m4: New file.
17835         * modules/sqrt (Files): Add it.
17836         (configure.ac): Invoke gl_FUNC_SQRT.
17837
17838 2010-01-18  Bruno Haible  <bruno@clisp.org>
17839
17840         New modules for common <math.h> functions.
17841         * m4/mathfunc.m4: New file.
17842         * modules/acos: New file.
17843         * modules/asin: New file.
17844         * modules/atan: New file.
17845         * modules/atan2: New file.
17846         * modules/cbrt: New file.
17847         * modules/copysign: New file.
17848         * modules/cos: New file.
17849         * modules/cosh: New file.
17850         * modules/erf: New file.
17851         * modules/erfc: New file.
17852         * modules/exp: New file.
17853         * modules/fabs: New file.
17854         * modules/fmod: New file.
17855         * modules/hypot: New file.
17856         * modules/j0: New file.
17857         * modules/j1: New file.
17858         * modules/jn: New file.
17859         * modules/ldexp: New file.
17860         * modules/lgamma: New file.
17861         * modules/log: New file.
17862         * modules/log10: New file.
17863         * modules/log1p: New file.
17864         * modules/logb: New file.
17865         * modules/modf: New file.
17866         * modules/nextafter: New file.
17867         * modules/pow: New file.
17868         * modules/remainder: New file.
17869         * modules/rint: New file.
17870         * modules/sin: New file.
17871         * modules/sinh: New file.
17872         * modules/sqrt: New file.
17873         * modules/tan: New file.
17874         * modules/tanh: New file.
17875         * modules/y0: New file.
17876         * modules/y1: New file.
17877         * modules/yn: New file.
17878         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17879         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17880         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17881         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17882         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17883         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17884         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17885         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17886         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17887         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17888         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17889         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17890         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17891         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17892         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17893         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17894         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17895         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17896         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17897         * doc/posix-functions/log.texi: Mention the 'log' module.
17898         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17899         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17900         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17901         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17902         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17903         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17904         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17905         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17906         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17907         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17908         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17909         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17910         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17911         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17912         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17913         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17914
17915 2010-01-18  Jim Meyering  <meyering@redhat.com>
17916
17917         ignore-value: relax license to LGPLv2+
17918         * modules/ignore-value (License): Relax to LGPLv2+.
17919
17920         getdate: don't leak when TZ contains two or more '"'s
17921         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17922         double quote in TZ after the first one.
17923
17924         readtokens: do not leak internal token_lengths buffer
17925         * lib/readtokens.c (readtokens): Free the local, lengths,
17926         when the supplied "token_lengths" parameter is NULL.
17927
17928 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17929
17930         Fix a couple of missing LIBTHREAD link failures on AIX.
17931         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17932         $(LIBTHREAD).
17933         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17934
17935         Link test-poll against INET_PTON_LIB.
17936         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17937         for inet_pton on Solaris 10.
17938
17939 2010-01-17  Bruno Haible  <bruno@clisp.org>
17940
17941         unistdio/*-sprintf: Fix typo in module description.
17942         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17943         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17944         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17945         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17946         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17947         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17948         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17950
17951 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17952
17953         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17954         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17955         variables in shell case patterns, for AIX and HP-UX ksh.
17956
17957         Split large sed scripts, for HP-UX sed.
17958         * modules/stdio: Split sed scripts around 50 sed commands,
17959         to avoid HP-UX limit of 99 commands, in the near future.
17960         * modules/string: Likewise.
17961         * modules/unistd: Likewise.
17962
17963         gnulib-tool: avoid writing in the current directory.
17964         * gnulib-tool (func_emit_lib_Makefile_am)
17965         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17966         not in the current directory, so concurrent gnulib-tool
17967         instances do not interfere.
17968
17969 2010-01-16  Jim Meyering  <meyering@redhat.com>
17970
17971         doc: update users.txt
17972         * users.txt: Add grep.
17973         (diffutils, gzip): Update URLs.
17974
17975 2010-01-12  Bruno Haible  <bruno@clisp.org>
17976
17977         posix_spawn: Avoid test failure on Cygwin.
17978         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17979         characters.
17980         Reported by Simon Josefsson.
17981
17982 2010-01-12  Bruno Haible  <bruno@clisp.org>
17983
17984         * tests/test-cond.c (main): When skipping the test, show the reason.
17985
17986 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17987
17988         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17989
17990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17991
17992         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17993         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17994
17995 2010-01-12  Eric Blake  <ebb9@byu.net>
17996
17997         build: guarantee AS_VAR_IF
17998         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17999         (gl_AS_VAR_IF): Move...
18000         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18001         Reported by Simon Josefsson.
18002
18003 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18004
18005         * lib/stdio.in.h: Fix typo.
18006
18007 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18008
18009         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18010         libgpg-error.
18011
18012 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18013
18014         * tests/test-xalloc-die.sh: Use $EXEEXT.
18015
18016 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18017             Bruno Haible  <bruno@clisp.org>
18018
18019         getlogin, getlogin_r: Avoid test failure.
18020         * tests/test-getlogin.c: Include <stdio.h>.
18021         (main): Skip the test when the function fails because stdin is not a
18022         tty.
18023         * tests/test-getlogin_r.c: Include <stdio.h>.
18024         (main): Skip the test when the function fails because stdin is not a
18025         tty.
18026
18027 2010-01-11  Eric Blake  <ebb9@byu.net>
18028
18029         tests: avoid more large file warnings
18030         * tests/test-fflush.c: Avoid warning about ftell use.
18031         * tests/test-fseek.c: Avoid warning about fseek use.
18032
18033 2010-01-10  Bruno Haible  <bruno@clisp.org>
18034
18035         nproc: Work better on Linux when /proc and /sys are not mounted.
18036         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18037         as lower bound when, on glibc/Linux systems,
18038         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18039         Suggested by Pádraig Brady <P@draigbrady.com>.
18040         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18041
18042         nproc: Refactor.
18043         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18044         extracted from num_processors.
18045         (num_processors): Call it.
18046
18047 2010-01-11  Jim Meyering  <meyering@redhat.com>
18048
18049         utimecmp: avoid new warning from upcoming gcc-4.5.0
18050         * lib/utimecmp.c (BILLION): Define using #define rather than an
18051         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18052
18053 2010-01-11  Eric Blake  <ebb9@byu.net>
18054
18055         math: add portability warnings for classification macros
18056         * modules/math (Depends-on): Add warn-on-use.
18057         (Makefile.am): Provide new substitutions.
18058         * m4/math_h.m4 (gl_MATH_H): Require inline.
18059         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18060         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18061         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18062         implement warnings.
18063
18064         unistd: warn on use of environ without module
18065         * modules/unistd (Depends-on): Add warn-on-use.
18066         (Makefile.am): Provide new substitutions.
18067         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18068         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18069
18070         stdio: warn on suspicious uses
18071         * modules/stdio (Depends-on): Add warn-on-use.
18072         (Makefile.am): Provide new substitutions.
18073         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18074         fseeko.
18075         * lib/stdio.in.h (gets): Always warn on use.
18076         (fseek, ftell): Adjust when warnings are issued, and honor
18077         _GL_NO_LARGE_FILES as a way to silence the warning.
18078         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18079         any warning about large file offsets.
18080         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18081         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18082         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18083         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18084         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18085         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18086         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18087         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18088
18089         warn-on-use: new module
18090         * modules/warn-on-use: New file.
18091         * build-aux/warn-on-use.h: Likewise.
18092         * m4/warn-on-use.m4: Likewise.
18093         * MODULES.html.sh (Support for building): Mention it.
18094
18095 2010-01-10  Bruno Haible  <bruno@clisp.org>
18096
18097         Tests for module 'unistr/u32-strdup'.
18098         * modules/unistr/u32-strdup-tests: New file.
18099         * tests/unistr/test-u32-strdup.c: New file.
18100
18101         Tests for module 'unistr/u16-strdup'.
18102         * modules/unistr/u16-strdup-tests: New file.
18103         * tests/unistr/test-u16-strdup.c: New file.
18104
18105         Tests for module 'unistr/u8-strdup'.
18106         * modules/unistr/u8-strdup-tests: New file.
18107         * tests/unistr/test-u8-strdup.c: New file.
18108         * tests/unistr/test-strdup.h: New file.
18109
18110         Tests for module 'unistr/u32-strncmp'.
18111         * modules/unistr/u32-strncmp-tests: New file.
18112         * tests/unistr/test-u32-strncmp.c: New file.
18113
18114         Tests for module 'unistr/u16-strncmp'.
18115         * modules/unistr/u16-strncmp-tests: New file.
18116         * tests/unistr/test-u16-strncmp.c: New file.
18117
18118         Tests for module 'unistr/u8-strncmp'.
18119         * modules/unistr/u8-strncmp-tests: New file.
18120         * tests/unistr/test-u8-strncmp.c: New file.
18121         * tests/unistr/test-strncmp.h: New file.
18122
18123         Tests for module 'unistr/u32-strcoll'.
18124         * modules/unistr/u32-strcoll-tests: New file.
18125         * tests/unistr/test-u32-strcoll.c: New file.
18126
18127         Tests for module 'unistr/u16-strcoll'.
18128         * modules/unistr/u16-strcoll-tests: New file.
18129         * tests/unistr/test-u16-strcoll.c: New file.
18130
18131         Tests for module 'unistr/u8-strcoll'.
18132         * modules/unistr/u8-strcoll-tests: New file.
18133         * tests/unistr/test-u8-strcoll.c: New file.
18134
18135         Tests for module 'unistr/u32-strcmp'.
18136         * modules/unistr/u32-strcmp-tests: New file.
18137         * tests/unistr/test-u32-strcmp.c: New file.
18138         * tests/unistr/test-u32-strcmp.h: New file.
18139
18140         Tests for module 'unistr/u16-strcmp'.
18141         * modules/unistr/u16-strcmp-tests: New file.
18142         * tests/unistr/test-u16-strcmp.c: New file.
18143         * tests/unistr/test-u16-strcmp.h: New file.
18144
18145         Tests for module 'unistr/u8-strcmp'.
18146         * modules/unistr/u8-strcmp-tests: New file.
18147         * tests/unistr/test-u8-strcmp.c: New file.
18148         * tests/unistr/test-u8-strcmp.h: New file.
18149         * tests/unistr/test-strcmp.h: New file.
18150
18151         Tests for module 'unistr/u32-strncat'.
18152         * modules/unistr/u32-strncat-tests: New file.
18153         * tests/unistr/test-u32-strncat.c: New file.
18154
18155         Tests for module 'unistr/u16-strncat'.
18156         * modules/unistr/u16-strncat-tests: New file.
18157         * tests/unistr/test-u16-strncat.c: New file.
18158
18159         Tests for module 'unistr/u8-strncat'.
18160         * modules/unistr/u8-strncat-tests: New file.
18161         * tests/unistr/test-u8-strncat.c: New file.
18162         * tests/unistr/test-strncat.h: New file.
18163
18164         Tests for module 'unistr/u32-strcat'.
18165         * modules/unistr/u32-strcat-tests: New file.
18166         * tests/unistr/test-u32-strcat.c: New file.
18167
18168         Tests for module 'unistr/u16-strcat'.
18169         * modules/unistr/u16-strcat-tests: New file.
18170         * tests/unistr/test-u16-strcat.c: New file.
18171
18172         Tests for module 'unistr/u8-strcat'.
18173         * modules/unistr/u8-strcat-tests: New file.
18174         * tests/unistr/test-u8-strcat.c: New file.
18175         * tests/unistr/test-strcat.h: New file.
18176
18177         Tests for module 'unistr/u32-stpncpy'.
18178         * modules/unistr/u32-stpncpy-tests: New file.
18179         * tests/unistr/test-u32-stpncpy.c: New file.
18180
18181         Tests for module 'unistr/u16-stpncpy'.
18182         * modules/unistr/u16-stpncpy-tests: New file.
18183         * tests/unistr/test-u16-stpncpy.c: New file.
18184
18185         Tests for module 'unistr/u8-stpncpy'.
18186         * modules/unistr/u8-stpncpy-tests: New file.
18187         * tests/unistr/test-u8-stpncpy.c: New file.
18188         * tests/unistr/test-stpncpy.h: New file.
18189
18190         Tests for module 'unistr/u32-strncpy'.
18191         * modules/unistr/u32-strncpy-tests: New file.
18192         * tests/unistr/test-u32-strncpy.c: New file.
18193
18194         Tests for module 'unistr/u16-strncpy'.
18195         * modules/unistr/u16-strncpy-tests: New file.
18196         * tests/unistr/test-u16-strncpy.c: New file.
18197
18198         Tests for module 'unistr/u8-strncpy'.
18199         * modules/unistr/u8-strncpy-tests: New file.
18200         * tests/unistr/test-u8-strncpy.c: New file.
18201         * tests/unistr/test-strncpy.h: New file.
18202
18203         Tests for module 'unistr/u32-stpcpy'.
18204         * modules/unistr/u32-stpcpy-tests: New file.
18205         * tests/unistr/test-u32-stpcpy.c: New file.
18206
18207         Tests for module 'unistr/u16-stpcpy'.
18208         * modules/unistr/u16-stpcpy-tests: New file.
18209         * tests/unistr/test-u16-stpcpy.c: New file.
18210
18211         Tests for module 'unistr/u8-stpcpy'.
18212         * modules/unistr/u8-stpcpy-tests: New file.
18213         * tests/unistr/test-u8-stpcpy.c: New file.
18214         * tests/unistr/test-stpcpy.h: New file.
18215
18216         Tests for module 'unistr/u32-strcpy'.
18217         * modules/unistr/u32-strcpy-tests: New file.
18218         * tests/unistr/test-u32-strcpy.c: New file.
18219
18220         Tests for module 'unistr/u16-strcpy'.
18221         * modules/unistr/u16-strcpy-tests: New file.
18222         * tests/unistr/test-u16-strcpy.c: New file.
18223
18224         Tests for module 'unistr/u8-strcpy'.
18225         * modules/unistr/u8-strcpy-tests: New file.
18226         * tests/unistr/test-u8-strcpy.c: New file.
18227         * tests/unistr/test-strcpy.h: New file.
18228
18229         Tests for module 'unistr/u32-strnlen'.
18230         * modules/unistr/u32-strnlen-tests: New file.
18231         * tests/unistr/test-u32-strnlen.c: New file.
18232
18233         Tests for module 'unistr/u16-strnlen'.
18234         * modules/unistr/u16-strnlen-tests: New file.
18235         * tests/unistr/test-u16-strnlen.c: New file.
18236
18237         Tests for module 'unistr/u8-strnlen'.
18238         * modules/unistr/u8-strnlen-tests: New file.
18239         * tests/unistr/test-u8-strnlen.c: New file.
18240         * tests/unistr/test-strnlen.h: New file.
18241
18242         Tests for module 'unistr/u32-strlen'.
18243         * modules/unistr/u32-strlen-tests: New file.
18244         * tests/unistr/test-u32-strlen.c: New file.
18245
18246         Tests for module 'unistr/u16-strlen'.
18247         * modules/unistr/u16-strlen-tests: New file.
18248         * tests/unistr/test-u16-strlen.c: New file.
18249
18250         Tests for module 'unistr/u8-strlen'.
18251         * modules/unistr/u8-strlen-tests: New file.
18252         * tests/unistr/test-u8-strlen.c: New file.
18253
18254         Tests for module 'unistr/u32-prev'.
18255         * modules/unistr/u32-prev-tests: New file.
18256         * tests/unistr/test-u32-prev.c: New file.
18257
18258         Tests for module 'unistr/u16-prev'.
18259         * modules/unistr/u16-prev-tests: New file.
18260         * tests/unistr/test-u16-prev.c: New file.
18261
18262         Tests for module 'unistr/u8-prev'.
18263         * modules/unistr/u8-prev-tests: New file.
18264         * tests/unistr/test-u8-prev.c: New file.
18265
18266         Tests for module 'unistr/u32-next'.
18267         * modules/unistr/u32-next-tests: New file.
18268         * tests/unistr/test-u32-next.c: New file.
18269
18270         Tests for module 'unistr/u16-next'.
18271         * modules/unistr/u16-next-tests: New file.
18272         * tests/unistr/test-u16-next.c: New file.
18273
18274         Tests for module 'unistr/u8-next'.
18275         * modules/unistr/u8-next-tests: New file.
18276         * tests/unistr/test-u8-next.c: New file.
18277
18278         Tests for module 'unistr/u32-strmbtouc'.
18279         * modules/unistr/u32-strmbtouc-tests: New file.
18280         * tests/unistr/test-u32-strmbtouc.c: New file.
18281
18282         Tests for module 'unistr/u16-strmbtouc'.
18283         * modules/unistr/u16-strmbtouc-tests: New file.
18284         * tests/unistr/test-u16-strmbtouc.c: New file.
18285
18286         Tests for module 'unistr/u8-strmbtouc'.
18287         * modules/unistr/u8-strmbtouc-tests: New file.
18288         * tests/unistr/test-u8-strmbtouc.c: New file.
18289
18290         Tests for module 'unistr/u32-strmblen'.
18291         * modules/unistr/u32-strmblen-tests: New file.
18292         * tests/unistr/test-u32-strmblen.c: New file.
18293
18294         Tests for module 'unistr/u16-strmblen'.
18295         * modules/unistr/u16-strmblen-tests: New file.
18296         * tests/unistr/test-u16-strmblen.c: New file.
18297
18298         Tests for module 'unistr/u8-strmblen'.
18299         * modules/unistr/u8-strmblen-tests: New file.
18300         * tests/unistr/test-u8-strmblen.c: New file.
18301
18302         Tests for module 'unistr/u32-cpy-alloc'.
18303         * modules/unistr/u32-cpy-alloc-tests: New file.
18304         * tests/unistr/test-u32-cpy-alloc.c: New file.
18305
18306         Tests for module 'unistr/u16-cpy-alloc'.
18307         * modules/unistr/u16-cpy-alloc-tests: New file.
18308         * tests/unistr/test-u16-cpy-alloc.c: New file.
18309
18310         Tests for module 'unistr/u8-cpy-alloc'.
18311         * modules/unistr/u8-cpy-alloc-tests: New file.
18312         * tests/unistr/test-u8-cpy-alloc.c: New file.
18313         * tests/unistr/test-cpy-alloc.h: New file.
18314
18315         Tests for module 'unistr/u32-mbsnlen'.
18316         * modules/unistr/u32-mbsnlen-tests: New file.
18317         * tests/unistr/test-u32-mbsnlen.c: New file.
18318
18319         Tests for module 'unistr/u16-mbsnlen'.
18320         * modules/unistr/u16-mbsnlen-tests: New file.
18321         * tests/unistr/test-u16-mbsnlen.c: New file.
18322
18323         Tests for module 'unistr/u8-mbsnlen'.
18324         * modules/unistr/u8-mbsnlen-tests: New file.
18325         * tests/unistr/test-u8-mbsnlen.c: New file.
18326
18327         Tests for module 'unistr/u32-chr'.
18328         * modules/unistr/u32-chr-tests: New file.
18329         * tests/unistr/test-u32-chr.c: New file.
18330
18331         Tests for module 'unistr/u16-chr'.
18332         * modules/unistr/u16-chr-tests: New file.
18333         * tests/unistr/test-u16-chr.c: New file.
18334
18335         Tests for module 'unistr/u8-chr'.
18336         * modules/unistr/u8-chr-tests: New file.
18337         * tests/unistr/test-u8-chr.c: New file.
18338         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18339
18340         Tests for module 'unistr/u32-cmp2'.
18341         * modules/unistr/u32-cmp2-tests: New file.
18342         * tests/unistr/test-u32-cmp2.c: New file.
18343
18344         Tests for module 'unistr/u16-cmp2'.
18345         * modules/unistr/u16-cmp2-tests: New file.
18346         * tests/unistr/test-u16-cmp2.c: New file.
18347
18348         Tests for module 'unistr/u8-cmp2'.
18349         * modules/unistr/u8-cmp2-tests: New file.
18350         * tests/unistr/test-u8-cmp2.c: New file.
18351         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18352
18353         Tests for module 'unistr/u32-cmp'.
18354         * modules/unistr/u32-cmp-tests: New file.
18355         * tests/unistr/test-u32-cmp.c: New file.
18356
18357         Tests for module 'unistr/u16-cmp'.
18358         * modules/unistr/u16-cmp-tests: New file.
18359         * tests/unistr/test-u16-cmp.c: New file.
18360
18361         Tests for module 'unistr/u8-cmp'.
18362         * modules/unistr/u8-cmp-tests: New file.
18363         * tests/unistr/test-u8-cmp.c: New file.
18364         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18365
18366         Tests for module 'unistr/u32-set'.
18367         * modules/unistr/u32-set-tests: New file.
18368         * tests/unistr/test-u32-set.c: New file.
18369
18370         Tests for module 'unistr/u16-set'.
18371         * modules/unistr/u16-set-tests: New file.
18372         * tests/unistr/test-u16-set.c: New file.
18373
18374         Tests for module 'unistr/u8-set'.
18375         * modules/unistr/u8-set-tests: New file.
18376         * tests/unistr/test-u8-set.c: New file.
18377         * tests/unistr/test-set.h: New file.
18378
18379         Tests for module 'unistr/u32-move'.
18380         * modules/unistr/u32-move-tests: New file.
18381         * tests/unistr/test-u32-move.c: New file.
18382
18383         Tests for module 'unistr/u16-move'.
18384         * modules/unistr/u16-move-tests: New file.
18385         * tests/unistr/test-u16-move.c: New file.
18386
18387         Tests for module 'unistr/u8-move'.
18388         * modules/unistr/u8-move-tests: New file.
18389         * tests/unistr/test-u8-move.c: New file.
18390         * tests/unistr/test-move.h: New file.
18391
18392         Tests for module 'unistr/u32-cpy'.
18393         * modules/unistr/u32-cpy-tests: New file.
18394         * tests/unistr/test-u32-cpy.c: New file.
18395
18396         Tests for module 'unistr/u16-cpy'.
18397         * modules/unistr/u16-cpy-tests: New file.
18398         * tests/unistr/test-u16-cpy.c: New file.
18399
18400         Tests for module 'unistr/u8-cpy'.
18401         * modules/unistr/u8-cpy-tests: New file.
18402         * tests/unistr/test-u8-cpy.c: New file.
18403         * tests/unistr/test-cpy.h: New file.
18404
18405 2010-01-09  Bruno Haible  <bruno@clisp.org>
18406
18407         Tests for module 'unistr/u32-uctomb'.
18408         * modules/unistr/u32-uctomb-tests: New file.
18409         * tests/unistr/test-u32-uctomb.c: New file.
18410
18411         Tests for module 'unistr/u16-uctomb'.
18412         * modules/unistr/u16-uctomb-tests: New file.
18413         * tests/unistr/test-u16-uctomb.c: New file.
18414
18415         Tests for module 'unistr/u8-uctomb'.
18416         * modules/unistr/u8-uctomb-tests: New file.
18417         * tests/unistr/test-u8-uctomb.c: New file.
18418
18419         Tests for module 'unistr/u32-mbtoucr'.
18420         * modules/unistr/u32-mbtoucr-tests: New file.
18421         * tests/unistr/test-u32-mbtoucr.c: New file.
18422
18423         Tests for module 'unistr/u16-mbtoucr'.
18424         * modules/unistr/u16-mbtoucr-tests: New file.
18425         * tests/unistr/test-u16-mbtoucr.c: New file.
18426
18427         Tests for module 'unistr/u8-mbtoucr'.
18428         * modules/unistr/u8-mbtoucr-tests: New file.
18429         * tests/unistr/test-u8-mbtoucr.c: New file.
18430
18431         Tests for module 'unistr/u32-mbtouc'.
18432         * modules/unistr/u32-mbtouc-tests: New file.
18433         * tests/unistr/test-u32-mbtouc.c: New file.
18434
18435         Tests for module 'unistr/u16-mbtouc'.
18436         * modules/unistr/u16-mbtouc-tests: New file.
18437         * tests/unistr/test-u16-mbtouc.c: New file.
18438
18439         Tests for module 'unistr/u8-mbtouc'.
18440         * modules/unistr/u8-mbtouc-tests: New file.
18441         * tests/unistr/test-u8-mbtouc.c: New file.
18442
18443         Tests for module 'unistr/u32-mbtouc-unsafe'.
18444         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18445         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18446         * tests/unistr/test-u32-mbtouc.h: New file.
18447
18448         Tests for module 'unistr/u16-mbtouc-unsafe'.
18449         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18450         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18451         * tests/unistr/test-u16-mbtouc.h: New file.
18452
18453         Tests for module 'unistr/u8-mbtouc-unsafe'.
18454         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18455         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18456         * tests/unistr/test-u8-mbtouc.h: New file.
18457
18458         Tests for module 'unistr/u32-mblen'.
18459         * modules/unistr/u32-mblen-tests: New file.
18460         * tests/unistr/test-u32-mblen.c: New file.
18461
18462         Tests for module 'unistr/u16-mblen'.
18463         * modules/unistr/u16-mblen-tests: New file.
18464         * tests/unistr/test-u16-mblen.c: New file.
18465
18466         Tests for module 'unistr/u8-mblen'.
18467         * modules/unistr/u8-mblen-tests: New file.
18468         * tests/unistr/test-u8-mblen.c: New file.
18469
18470         Tests for module 'unistr/u32-to-u16'.
18471         * modules/unistr/u32-to-u16-tests: New file.
18472         * tests/unistr/test-u32-to-u16.c: New file.
18473
18474         Tests for module 'unistr/u32-to-u8'.
18475         * modules/unistr/u32-to-u8-tests: New file.
18476         * tests/unistr/test-u32-to-u8.c: New file.
18477
18478         Tests for module 'unistr/u16-to-u32'.
18479         * modules/unistr/u16-to-u32-tests: New file.
18480         * tests/unistr/test-u16-to-u32.c: New file.
18481
18482         Tests for module 'unistr/u16-to-u8'.
18483         * modules/unistr/u16-to-u8-tests: New file.
18484         * tests/unistr/test-u16-to-u8.c: New file.
18485
18486         Tests for module 'unistr/u8-to-u32'.
18487         * modules/unistr/u8-to-u32-tests: New file.
18488         * tests/unistr/test-u8-to-u32.c: New file.
18489
18490         Tests for module 'unistr/u8-to-u16'.
18491         * modules/unistr/u8-to-u16-tests: New file.
18492         * tests/unistr/test-u8-to-u16.c: New file.
18493
18494         Tests for module 'unistr/u32-check'.
18495         * modules/unistr/u32-check-tests: New file.
18496         * tests/unistr/test-u32-check.c: New file.
18497
18498         Tests for module 'unistr/u16-check'.
18499         * modules/unistr/u16-check-tests: New file.
18500         * tests/unistr/test-u16-check.c: New file.
18501
18502         Tests for module 'unistr/u8-check'.
18503         * modules/unistr/u8-check-tests: New file.
18504         * tests/unistr/test-u8-check.c: New file.
18505
18506         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18507         (category_equals): New function.
18508         (main): Add more tests.
18509         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18510
18511         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18512
18513 2010-01-10  Bruno Haible  <bruno@clisp.org>
18514
18515         unistr/u*-strcoll: Try harder to distinguish different strings.
18516         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18517         compare s1 and s2 to see if they are different.
18518
18519 2010-01-10  Bruno Haible  <bruno@clisp.org>
18520
18521         unistr/u*-stpncpy: Fix the return value.
18522         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18523         description of the return value consistent with stpncpy in glibc.
18524         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18525         written non-NUL unit.
18526
18527 2010-01-10  Bruno Haible  <bruno@clisp.org>
18528
18529         unistr/u*-next: Add missing dependencies.
18530         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18531         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18532         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18533
18534 2010-01-10  Bruno Haible  <bruno@clisp.org>
18535
18536         unistr/u8-mbsnlen: Fix return value for incomplete character.
18537         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18538         u8_mblen.
18539         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18540         Remove unistr/u8-mblen.
18541         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18542         u16_mblen.
18543         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18544         Remove unistr/u16-mblen.
18545
18546 2010-01-10  Bruno Haible  <bruno@clisp.org>
18547
18548         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18549         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18550         Reported by Brian Gough <bjg@gnu.org> and
18551         Chris Clayton <chris2553@googlemail.com> via
18552         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18553
18554 2010-01-09  Bruno Haible  <bruno@clisp.org>
18555
18556         unistr/u16-to-u32: Reject invalid input.
18557         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18558         u16_mbtouc.
18559         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18560         Remove unistr/u16-mbtouc.
18561
18562         unistr/u16-to-u8: Reject invalid input.
18563         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18564         u16_mbtouc.
18565         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18566         Remove unistr/u16-mbtouc.
18567
18568         unistr/u8-to-u32: Reject invalid input.
18569         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18570         u8_mbtouc.
18571         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18572         Remove unistr/u8-mbtouc.
18573
18574         unistr/u8-to-u16: Reject invalid input.
18575         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18576         u8_mbtouc.
18577         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18578         Remove unistr/u8-mbtouc.
18579
18580 2010-01-09  Bruno Haible  <bruno@clisp.org>
18581
18582         Tests for module 'getlogin'.
18583         * modules/getlogin-tests: New file.
18584         * tests/test-getlogin.c: New file.
18585
18586         New module 'getlogin'.
18587         * lib/unistd.in.h (getlogin): New declaration.
18588         * lib/getlogin.c: New file.
18589         * m4/getlogin.m4: New file.
18590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18591         HAVE_GETLOGIN.
18592         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18593         HAVE_GETLOGIN.
18594         * modules/getlogin: New file.
18595         * doc/posix-functions/getlogin.texi: Mention the new module.
18596         Reported by John W. Eaton <jwe@gnu.org>.
18597
18598 2010-01-09  Bruno Haible  <bruno@clisp.org>
18599
18600         getlogin_r: Support for native Windows.
18601         * lib/getlogin_r.c: Include <windows.h>
18602         (getlogin_r): Implement for native Windows.
18603         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18604         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18605         via John W. Eaton <jwe@gnu.org>.
18606
18607 2010-01-09  Bruno Haible  <bruno@clisp.org>
18608
18609         getlogin_r: Small fixes.
18610         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18611         succeeds.
18612         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18613         before testing whether getlogin_r is declared. No need to set
18614         HAVE_DECL_GETLOGIN_R to 1.
18615         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18616
18617 2010-01-09  Bruno Haible  <bruno@clisp.org>
18618
18619         * lib/unistd.in.h (getlogin_r): Add comment.
18620
18621 2010-01-09  Bruno Haible  <bruno@clisp.org>
18622
18623         Tests for module 'getlogin_r'.
18624         * modules/getlogin_r-tests: New file.
18625         * tests/test-getlogin_r.c: New file.
18626
18627 2010-01-09  Jim Meyering  <meyering@redhat.com>
18628
18629         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18630         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18631         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18632
18633 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18634
18635         * lib/dup2.c (rpl_dup2): Improve comment.
18636
18637 2010-01-08  Eric Blake  <ebb9@byu.net>
18638
18639         maint.mk: allow packages to add makefile @@ exceptions
18640         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18641         (sc_makefile_check): Rename...
18642         (sc_makefile_at_at_check): ...to this, and use hook.
18643
18644         dup2: work around mingw bug
18645         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18646         Reported by Simon Josefsson.
18647
18648 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18649
18650         glob: Fix C++ compilation.
18651         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18652         C++.
18653
18654 2010-01-07  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix indentation of wctype.in.h, broken since 2007-01-06.
18657         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18658
18659 2010-01-07  Bruno Haible  <bruno@clisp.org>
18660
18661         mbslen: Avoid collision with system function.
18662         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18663         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18664         * m4/mbslen.m4: New file.
18665         * modules/mbslen (Files): Add it.
18666         (configure.ac): Invoke gl_MBSLEN.
18667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18668         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18669         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18670         via Ian Beckwith <ianb@erislabs.net>.
18671
18672 2010-01-07  Bruno Haible  <bruno@clisp.org>
18673
18674         dirent: Document the last fix.
18675         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18676
18677 2010-01-07  Bruno Haible  <bruno@clisp.org>
18678
18679         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18680         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18681         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18682         va_list are defined.
18683         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18684         Reported by Eric Blake.
18685
18686 2010-01-07  Bruno Haible  <bruno@clisp.org>
18687
18688         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18689         * modules/xlist (Depends-on): Add 'list',
18690         * modules/xoset (Depends-on): Add 'oset'.
18691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18692
18693 2010-01-07  Bruno Haible  <bruno@clisp.org>
18694
18695         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18696         * doc/posix-functions/strncasecmp.texi: Likewise.
18697
18698 2010-01-07  Bruno Haible  <bruno@clisp.org>
18699
18700         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18701
18702 2010-01-07  John W. Eaton  <jwe@octave.org>
18703
18704         wctype: allow C++ use
18705         * lib/wctype.in.h: Add extern "C" block for C++.
18706
18707 2010-01-06  Eric Blake  <ebb9@byu.net>
18708
18709         maint.mk: detect incorrect GFDL usage
18710         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18711
18712 2010-01-06  Jim Meyering  <meyering@redhat.com>
18713         and Eric Blake  <ebb9@byu.net>
18714
18715         maint.mk: ignore multi-line copyright in NEWS
18716         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18717
18718 2010-01-06  Eric Blake  <ebb9@byu.net>
18719
18720         select: add missing dependency
18721         * modules/select-tests (Depends-on): Move sockets dependency...
18722         * modules/select (Depends-on): ...here.
18723         Reported by Ian Beckwith.
18724
18725         doc: regenerate INSTALL
18726         * doc/INSTALL: Reflect recent autoconf update.
18727         * doc/INSTALL.ISO: Likewise.
18728         * doc/INSTALL.UTF-8: Likewise.
18729
18730         pread: fix compilation on glibc
18731         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18732         Reported by Ralf Wildenhues.
18733
18734         dirent: fix test failure
18735         * lib/dirent.in.h (includes): Guarantee ino_t.
18736         Reported by Ralf Wildenhues.
18737
18738 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18739
18740         linkat, renameat: avoid bad free
18741         * lib/at-func2.c (at_func2): Fix typo.
18742         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18743
18744 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18745
18746         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18747         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18748         to avoid failure of symlink test later.
18749
18750 2010-01-06  Eric Blake  <ebb9@byu.net>
18751
18752         stdio, unistd: guarantee ssize_t
18753         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18754         2008 are exposed when needed.
18755         * lib/stdio.in.h (includes): Likewise.
18756         Reported by Ralf Wildenhues.
18757
18758 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18759
18760         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18761         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18762         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18763
18764 2010-01-06  Jim Meyering  <meyering@redhat.com>
18765
18766         readtokens: this module *does* require xalloc.h
18767         It uses only functions that were omitted by the old syntax-check rule.
18768         * lib/readtokens.c: Include "xalloc.h" once again.
18769         * modules/readtokens (Depends-on): Add xalloc.
18770         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18771
18772 2010-01-05  Eric Blake  <ebb9@byu.net>
18773
18774         maint: support 'make announcement' from a VPATH build
18775         * top/maint.mk (announcement): Look for correct NEWS file.
18776
18777 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18778
18779         utimens (fdutimens): ignore a negative FD, per contract
18780         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18781         when we have a valid file descriptor.  Otherwise, using a brand
18782         new glibc (with just-patched futimens that now fails with EBADF)
18783         would cause this function to fail with ENOSYS.
18784         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18785         See also http://bugzilla.redhat.com/552320.
18786
18787 2010-01-05  Eric Blake  <ebb9@byu.net>
18788
18789         strcase: document what it provides
18790         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18791         gnulib module.
18792         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18793         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18794
18795 2010-01-05  Jim Meyering  <meyering@redhat.com>
18796
18797         maint: remove useless inclusions of "xalloc.h"
18798         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18799         * lib/readtokens.c: Likewise.
18800         * lib/same.c: Likewise.
18801         * modules/getloadavg (Depends-on): Remove xalloc.
18802         * modules/readtokens: Likewise.
18803         * modules/same: Likewise.
18804
18805         maint.mk: include 4 more function names in alloca.h-checking regexp
18806         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18807         regexp.  Before, we would give a false-positive (saying alloca.h
18808         is included unnecessarily) when the only uses involved omitted symbols.
18809
18810         xalloc.h: use consistent formatting
18811         * lib/xalloc.h: Move declarations to start in the first column.
18812
18813 2010-01-05  Eric Blake  <ebb9@byu.net>
18814
18815         mkdir: avoid xalloc
18816         * lib/mkdir.c (includes): Drop unused header.
18817         Reported by John W. Eaton.
18818
18819 2010-01-04  Jim Meyering  <meyering@redhat.com>
18820
18821         nl_langinfo: avoid configure-time syntax error
18822         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18823         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18824         the empty string.  Don't let that provoke a shell syntax error.
18825
18826         regcomp, regexec, fnmatch: avoid array bounds read error
18827         * lib/regcomp.c (build_equiv_class): From glibc:
18828         Use only the low 24 bits of a findidx return value as an index
18829         into the weights array.  Patch by Ulrich Drepper:
18830         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18831         * lib/regexec.c (check_node_accept_bytes): Likewise.
18832         * lib/fnmatch_loop.c (FCT): Likewise.
18833
18834         regcomp: skip collseq lookup when there are no rules
18835         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18836         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18837
18838         regcomp: recognize ill-formed { } expressions
18839         * lib/regcomp.c (parse_dup_op): From glibc:
18840         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18841
18842         regcomp: fix typo in comment
18843         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18844         s/satisfy/satisfies/.
18845
18846         regcomp: sync from glibc: remove dead store
18847         * lib/regcomp.c (duplicate_node_closure): Remove useless
18848         search_duplicated_node call and dead store.
18849
18850         regcomp: sync from glibc; always use nl_langinfo
18851         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18852         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18853         * modules/regex (Depends-on): Add nl_langinfo.
18854
18855 2010-01-04  Eric Blake  <ebb9@byu.net>
18856
18857         fdopendir: fix configure test
18858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18859
18860 2010-01-01  Bruno Haible  <bruno@clisp.org>
18861
18862         wchar: Remove unused configure check.
18863         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18864
18865 2010-01-01  Eric Blake  <ebb9@byu.net>
18866
18867         headers: make check of system header explicit
18868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18869         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18870         ourselves.
18871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18874         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18875         internals.
18876         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18877         missing.
18878         Suggested by Bruno Haible.
18879
18880 2010-01-01  Jim Meyering  <meyering@redhat.com>
18881
18882         ChangeLog: tweak to eliminate unnecessary copyright line
18883         * ChangeLog: Remove a copyright line that was mistakenly updated
18884         by today's update-copyright run.  Reported by Eric Blake.
18885
18886         test-update-copyright: don't let envvar setting cause test failure
18887         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18888
18889 2010-01-01  Bruno Haible  <bruno@clisp.org>
18890
18891         localename: Avoid gcc warning.
18892         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18893         function if it is not used.
18894
18895 2010-01-01  Jim Meyering  <meyering@redhat.com>
18896
18897         update nearly all FSF copyright year lists to include 2010
18898         Use the same procedure as for 2009, outlined in
18899         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18900
18901         version-etc: set COPYRIGHT_YEAR to 2010
18902         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18903
18904 2009-12-31  Eric Blake  <ebb9@byu.net>
18905
18906         doc: correct availability of cygwin 1.5.x getopt
18907         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18908         variables.
18909         * doc/posix-functions/opterr.texi (opterr): Likewise.
18910         * doc/posix-functions/optind.texi (optind): Likewise.
18911         * doc/posix-functions/optopt.texi (optopt): Likewise.
18912         * doc/posix-functions/tzname.texi (tzname): Likewise.
18913
18914         openat: update maintainer
18915         * modules/openat (Maintainer): Add myself.
18916
18917         utimens: avoid shadowing warning
18918         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18919         buffers into one, to avoid shadowing, as well as avoiding a
18920         redundant stat.
18921         Reported by Jim Meyering.
18922
18923         test-dup2: avoid compiler warning
18924         * tests/test-dup2.c (is_inheritable): Only define if used.
18925
18926 2010-01-01  Bruno Haible  <bruno@clisp.org>
18927
18928         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18929         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18930         defined, use wctomb instead of wcrtomb.
18931
18932 2010-01-01  Bruno Haible  <bruno@clisp.org>
18933
18934         iconv: Reject native Solaris iconv.
18935         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18936         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18937
18938 2009-12-31  Bruno Haible  <bruno@clisp.org>
18939
18940         * tests/test-signal.c (main): Remove test of 'SIG'.
18941
18942 2009-12-31  Bruno Haible  <bruno@clisp.org>
18943
18944         spawn: Fix incomplete fix.
18945         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18946         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18947         warnings for GNULIB_POSIXCHECK again.
18948         Reported by Eric Blake.
18949
18950 2009-12-31  Bruno Haible  <bruno@clisp.org>
18951
18952         Avoid namespace pollution on glibc systems.
18953         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18954         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18955         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18956         glibc systems.
18957
18958 2009-12-31  Bruno Haible  <bruno@clisp.org>
18959
18960         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18961         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18962         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18963         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18964         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18965         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18966         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18967
18968 2009-12-31  Bruno Haible  <bruno@clisp.org>
18969
18970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18971         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18972         afterwards.
18973
18974 2009-12-31  Bruno Haible  <bruno@clisp.org>
18975
18976         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18977         SYS_UTSNAME_H.
18978
18979 2009-12-31  Bruno Haible  <bruno@clisp.org>
18980
18981         spawn: Fix misapplied patch.
18982         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18983         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18984         warnings for GNULIB_POSIXCHECK.
18985
18986 2009-12-31  Bruno Haible  <bruno@clisp.org>
18987
18988         times: Update after sys_times changed.
18989         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18990         * modules/times (Files): Add it.
18991         (configure.ac): Invoke gl_FUNC_TIMES.
18992
18993 2009-12-31  Bruno Haible  <bruno@clisp.org>
18994
18995         Use AC_C_INLINE where necessary.
18996         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18997         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18999         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19000         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19001         * m4/mbiter.m4 (gl_MBITER): Likewise.
19002         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19003         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19004         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19005         * modules/u64 (configure.ac): Likewise.
19006
19007 2009-12-31  Bruno Haible  <bruno@clisp.org>
19008
19009         Use AC_C_INLINE instead of module 'inline' where possible.
19010         * modules/inline (Description): Clarify purpose.
19011         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19012         * modules/count-one-bits (Depends-on): Remove inline.
19013         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19014         * modules/openat (Depends-on): Remove inline.
19015         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19016         instead of depending on module 'inline'.
19017         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19018         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19019         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19020         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19021         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19022         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19023         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19024         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19025         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19026         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19027         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19028         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19029         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19030         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19031         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19032         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19033         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19034         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19035         Likewise.
19036         * modules/unictype/property-ascii-hex-digit (Depends-on,
19037         configure.ac): Likewise.
19038         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19039         configure.ac): Likewise.
19040         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19041         configure.ac): Likewise.
19042         * modules/unictype/property-bidi-block-separator (Depends-on,
19043         configure.ac): Likewise.
19044         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19045         configure.ac): Likewise.
19046         * modules/unictype/property-bidi-common-separator (Depends-on,
19047         configure.ac): Likewise.
19048         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19049         Likewise.
19050         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19051         configure.ac): Likewise.
19052         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19053         configure.ac): Likewise.
19054         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19055         configure.ac): Likewise.
19056         * modules/unictype/property-bidi-european-digit (Depends-on,
19057         configure.ac): Likewise.
19058         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19059         configure.ac): Likewise.
19060         * modules/unictype/property-bidi-left-to-right (Depends-on,
19061         configure.ac): Likewise.
19062         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19063         configure.ac): Likewise.
19064         * modules/unictype/property-bidi-other-neutral (Depends-on,
19065         configure.ac): Likewise.
19066         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19067         Likewise.
19068         * modules/unictype/property-bidi-segment-separator (Depends-on,
19069         configure.ac): Likewise.
19070         * modules/unictype/property-bidi-whitespace (Depends-on,
19071         configure.ac): Likewise.
19072         * modules/unictype/property-combining (Depends-on, configure.ac):
19073         Likewise.
19074         * modules/unictype/property-composite (Depends-on, configure.ac):
19075         Likewise.
19076         * modules/unictype/property-currency-symbol (Depends-on,
19077         configure.ac): Likewise.
19078         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19079         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19080         Likewise.
19081         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19082         configure.ac): Likewise.
19083         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19084         Likewise.
19085         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19086         Likewise.
19087         * modules/unictype/property-extender (Depends-on, configure.ac):
19088         Likewise.
19089         * modules/unictype/property-format-control (Depends-on, configure.ac):
19090         Likewise.
19091         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19092         Likewise.
19093         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19094         Likewise.
19095         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19098         Likewise.
19099         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19100         Likewise.
19101         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19102         Likewise.
19103         * modules/unictype/property-id-start (Depends-on, configure.ac):
19104         Likewise.
19105         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19106         Likewise.
19107         * modules/unictype/property-ids-binary-operator (Depends-on,
19108         configure.ac): Likewise.
19109         * modules/unictype/property-ids-trinary-operator (Depends-on,
19110         configure.ac): Likewise.
19111         * modules/unictype/property-ignorable-control (Depends-on,
19112         configure.ac): Likewise.
19113         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19114         Likewise.
19115         * modules/unictype/property-join-control (Depends-on, configure.ac):
19116         Likewise.
19117         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19118         Likewise.
19119         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19120         Likewise.
19121         * modules/unictype/property-logical-order-exception (Depends-on,
19122         configure.ac): Likewise.
19123         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19124         Likewise.
19125         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19126         * modules/unictype/property-non-break (Depends-on, configure.ac):
19127         Likewise.
19128         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19129         Likewise.
19130         * modules/unictype/property-numeric (Depends-on, configure.ac):
19131         Likewise.
19132         * modules/unictype/property-other-alphabetic (Depends-on,
19133         configure.ac): Likewise.
19134         * modules/unictype/property-other-default-ignorable-code-point
19135         (Depends-on, configure.ac): Likewise.
19136         * modules/unictype/property-other-grapheme-extend (Depends-on,
19137         configure.ac): Likewise.
19138         * modules/unictype/property-other-id-continue (Depends-on,
19139         configure.ac): Likewise.
19140         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19141         Likewise.
19142         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19143         Likewise.
19144         * modules/unictype/property-other-math (Depends-on, configure.ac):
19145         Likewise.
19146         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19147         Likewise.
19148         * modules/unictype/property-paired-punctuation (Depends-on,
19149         configure.ac): Likewise.
19150         * modules/unictype/property-paragraph-separator (Depends-on,
19151         configure.ac): Likewise.
19152         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19153         Likewise.
19154         * modules/unictype/property-pattern-white-space (Depends-on,
19155         configure.ac): Likewise.
19156         * modules/unictype/property-private-use (Depends-on, configure.ac):
19157         Likewise.
19158         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19159         Likewise.
19160         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19161         Likewise.
19162         * modules/unictype/property-radical (Depends-on, configure.ac):
19163         Likewise.
19164         * modules/unictype/property-sentence-terminal (Depends-on,
19165         configure.ac): Likewise.
19166         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19167         Likewise.
19168         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19169         * modules/unictype/property-terminal-punctuation (Depends-on,
19170         configure.ac): Likewise.
19171         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19172         Likewise.
19173         * modules/unictype/property-unassigned-code-value (Depends-on,
19174         configure.ac): Likewise.
19175         * modules/unictype/property-unified-ideograph (Depends-on,
19176         configure.ac): Likewise.
19177         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19178         Likewise.
19179         * modules/unictype/property-variation-selector (Depends-on,
19180         configure.ac): Likewise.
19181         * modules/unictype/property-white-space (Depends-on, configure.ac):
19182         Likewise.
19183         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19184         Likewise.
19185         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19186         Likewise.
19187         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19188         Likewise.
19189         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19190         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19191         Likewise.
19192
19193 2009-12-31  Bruno Haible  <bruno@clisp.org>
19194
19195         Remove unnecessary AC_C_INLINE invocation.
19196         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19197         since 2009-08-21.
19198
19199 2009-12-31  Jim Meyering  <meyering@redhat.com>
19200
19201         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19202         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19203         With this change, we can all remove the gpg_key_ID = ... definition
19204         from our respective cfg.mk files.
19205
19206         maint.mk: create announcement template in ~/, not in /tmp
19207         * top/maint.mk (emit_upload_commands): Adjust.
19208         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19209         Remove temporary file, .ci-msg.
19210
19211 2009-12-31  Eric Blake  <ebb9@byu.net>
19212
19213         link-warning: always build headers with link warnings
19214         * modules/arpa_inet (Makefile.am): Always build replacement
19215         header.
19216         * modules/ctype (Makefile.am): Likewise.
19217         * modules/dirent (Makefile.am): Likewise.
19218         * modules/inttypes (Makefile.am): Likewise.
19219         * modules/langinfo (Makefile.am): Likewise.
19220         * modules/locale (Makefile.am): Likewise.
19221         * modules/spawn (Makefile.am): Likewise.
19222         * modules/sys_file (Makefile.am): Likewise.
19223         * modules/sys_ioctl (Makefile.am): Likewise.
19224         * modules/sys_select (Makefile.am): Likewise.
19225         * modules/sys_socket (Makefile.am): Likewise.
19226         * modules/sys_times (Makefile.am): Likewise.
19227         * modules/sys_utsname (Makefile.am): Likewise.
19228         * modules/sys_wait (Makefile.am): Likewise.
19229         * modules/wchar (Makefile.am): Likewise.
19230         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19231         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19232         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19233         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19234         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19235         Likewise.
19236         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19237         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19238         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19239         Likewise.
19240         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19241         Likewise.
19242         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19244         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19247         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19248         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19249         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19250         (gl_WCHAR_H_DEFAULTS): Likewise.
19251
19252 2009-12-31  Eric Blake  <ebb9@byu.net>
19253
19254         signal, spawn: use link warnings
19255         * lib/signal.in.h (sigset_t): Make unconditional.
19256         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19257         (sigpending, sigprocmask, sigaction): Add link warnings.
19258         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19259         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19260         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19261         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19262         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19263         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19264         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19265         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19266         (posix_spawn_file_actions_destroy)
19267         (posix_spawn_file_actions_addopen)
19268         (posix_spawn_file_actions_addclose)
19269         (posix_spawn_file_actions_adddup2): Likewise.
19270         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19271         * tests/test-signal.c (main): Enhance test.
19272
19273         spawn: improve wrapper support
19274         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19275         (gl_SPAWN_H_DEFAULTS): New defaults.
19276         * modules/spawn (Makefile.am): Substitute them.
19277         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19278         Only declare if missing or broken.
19279
19280         sys_times, sys_utsname: use include_next
19281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19282         header.
19283         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19284         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19285         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19286         * modules/sys_times (Depends-on): Add include_next.
19287         (Makefile.am): Substitute additional values.
19288         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19289         * lib/sys_times.in.h (includes): Include native header, if
19290         available.
19291         * lib/sys_utsname.in.h (includes): Likewise.
19292         * tests/test-sys_times.c (main): Enhance test.
19293
19294         fdutimensat: revert prior patch
19295         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19296         utimens.h.
19297         Reported by Bruno Haible.
19298
19299 2009-12-30  Eric Blake  <ebb9@byu.net>
19300
19301         sys_wait: drop link-warning dependency
19302         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19303         link-warning efforts.
19304         * lib/sys_wait.in.h: Likewise.
19305
19306         fdutimensat: remove bogus dependency
19307         * modules/fdutimensat (Depends-on): Drop inline.
19308
19309         unistd: fix typo
19310         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19311
19312 2009-12-30  Bruno Haible  <bruno@clisp.org>
19313
19314         Fix compilation error with Solaris cc.
19315         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19316         * lib/unicase/u16-is-invariant.c: Likewise.
19317         * lib/unicase/u32-is-invariant.c: Likewise.
19318         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19319
19320 2009-12-30  Bruno Haible  <bruno@clisp.org>
19321
19322         Fix test crash.
19323         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19324         locales.
19325         Reported by Simon Josefsson <simon@josefsson.org>.
19326
19327 2009-12-30  Bruno Haible  <bruno@clisp.org>
19328
19329         Fix compilation error on most platforms.
19330         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19331         Reported by Simon Josefsson <simon@josefsson.org>
19332         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19333
19334 2009-12-30  Eric Blake  <ebb9@byu.net>
19335
19336         futimens, utimensat: work around ntfs-3g bug
19337         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19338         a ctime bug is present, and expand workaround to cover ntfs-3g.
19339         * lib/utimens.c (fdutimens, lutimens): Likewise.
19340         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19341         (validate_timespec): Adjust return value.
19342         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19343         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19344         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19345
19346 2009-12-29  Eric Blake  <ebb9@byu.net>
19347
19348         link-warning: make usage consistent
19349         * modules/ctype (Depends-on): Add link-warning.
19350         (Makefile.am): Update rules accordingly.
19351         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19352         * modules/locale (Depends-on, Makefile.am): Likewise.
19353         * modules/sys_file (Makefile.am): Likewise.
19354         * modules/getopt-posix (Makefile.am): Delete unused link warning
19355         efforts.
19356         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19357         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19358         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19359         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19360
19361         stdio: remove unused variables
19362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19363         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19364         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19365
19366         tests: test more substitute headers
19367         * modules/ctype-tests: New file.
19368         * modules/dirent-tests: Likewise.
19369         * modules/spawn-tests: Likewise.
19370         * modules/sys_file-tests: Likewise.
19371         * modules/sys_ioctl-tests: Likewise.
19372         * modules/sys_wait-tests: Likewise.
19373         * tests/test-ctype.c: Likewise.
19374         * tests/test-dirent.c: Likewise.
19375         * tests/test-spawn.c: Likewise.
19376         * tests/test-sys_file.c: Likewise.
19377         * tests/test-sys_ioctl.c: Likewise.
19378         * tests/test-sys_wait.c: Likewise.
19379         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19380         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19381         whether or not flock is in use.
19382
19383         tests: remove License section from module
19384         * modules/arpa_inet-tests: Remove unneeded section.
19385         * modules/byteswap-tests: Likewise.
19386         * modules/ceilf-tests: Likewise.
19387         * modules/ceill-tests: Likewise.
19388         * modules/crypto/des-tests: Likewise.
19389         * modules/crypto/gc-arcfour-tests: Likewise.
19390         * modules/crypto/gc-arctwo-tests: Likewise.
19391         * modules/crypto/gc-des-tests: Likewise.
19392         * modules/crypto/gc-hmac-md5-tests: Likewise.
19393         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19394         * modules/crypto/gc-md2-tests: Likewise.
19395         * modules/crypto/gc-md4-tests: Likewise.
19396         * modules/crypto/gc-md5-tests: Likewise.
19397         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19398         * modules/crypto/gc-rijndael-tests: Likewise.
19399         * modules/crypto/gc-sha1-tests: Likewise.
19400         * modules/crypto/gc-tests: Likewise.
19401         * modules/crypto/md2-tests: Likewise.
19402         * modules/crypto/md4-tests: Likewise.
19403         * modules/fcntl-h-tests: Likewise.
19404         * modules/floorf-tests: Likewise.
19405         * modules/floorl-tests: Likewise.
19406         * modules/frexp-nolibm-tests: Likewise.
19407         * modules/frexp-tests: Likewise.
19408         * modules/frexpl-nolibm-tests: Likewise.
19409         * modules/frexpl-tests: Likewise.
19410         * modules/getaddrinfo-tests: Likewise.
19411         * modules/inttypes-tests: Likewise.
19412         * modules/isfinite-tests: Likewise.
19413         * modules/isinf-tests: Likewise.
19414         * modules/ldexpl-tests: Likewise.
19415         * modules/locale-tests: Likewise.
19416         * modules/math-tests: Likewise.
19417         * modules/netdb-tests: Likewise.
19418         * modules/netinet_in-tests: Likewise.
19419         * modules/printf-frexp-tests: Likewise.
19420         * modules/printf-frexpl-tests: Likewise.
19421         * modules/priv-set-tests: Likewise.
19422         * modules/random_r-tests: Likewise.
19423         * modules/round-tests: Likewise.
19424         * modules/roundf-tests: Likewise.
19425         * modules/roundl-tests: Likewise.
19426         * modules/search-tests: Likewise.
19427         * modules/select-tests: Likewise.
19428         * modules/signal-tests: Likewise.
19429         * modules/stdbool-tests: Likewise.
19430         * modules/stddef-tests: Likewise.
19431         * modules/stdint-tests: Likewise.
19432         * modules/stdio-tests: Likewise.
19433         * modules/stdlib-tests: Likewise.
19434         * modules/string-tests: Likewise.
19435         * modules/strings-tests: Likewise.
19436         * modules/sys_select-tests: Likewise.
19437         * modules/sys_socket-tests: Likewise.
19438         * modules/sys_stat-tests: Likewise.
19439         * modules/sys_time-tests: Likewise.
19440         * modules/sys_utsname-tests: Likewise.
19441         * modules/sysexits-tests: Likewise.
19442         * modules/time-tests: Likewise.
19443         * modules/trunc-tests: Likewise.
19444         * modules/truncf-tests: Likewise.
19445         * modules/truncl-tests: Likewise.
19446         * modules/tsearch-tests: Likewise.
19447         * modules/unistd-tests: Likewise.
19448         * modules/wchar-tests: Likewise.
19449         * modules/wctype-tests: Likewise.
19450
19451         tests: fix license on several tests
19452         * tests/test-des.c: Update to GPLv3+.
19453         * tests/test-flock.c: Likewise.
19454         * tests/test-fsync.c: Likewise.
19455         * tests/test-futimens.h: Likewise.
19456         * tests/test-gc-arcfour.c: Likewise.
19457         * tests/test-gc-arctwo.c: Likewise.
19458         * tests/test-gc-des.c: Likewise.
19459         * tests/test-gc-hmac-md5.c: Likewise.
19460         * tests/test-gc-hmac-sha1.c: Likewise.
19461         * tests/test-gc-md2.c: Likewise.
19462         * tests/test-gc-md4.c: Likewise.
19463         * tests/test-gc-md5.c: Likewise.
19464         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19465         * tests/test-gc-rijndael.c: Likewise.
19466         * tests/test-gc-sha1.c: Likewise.
19467         * tests/test-gc.c: Likewise.
19468         * tests/test-getcwd.c: Likewise.
19469         * tests/test-link.c: Likewise.
19470         * tests/test-link.h: Likewise.
19471         * tests/test-lutimens.h: Likewise.
19472         * tests/test-md2.c: Likewise.
19473         * tests/test-md4.c: Likewise.
19474         * tests/test-mkdir.h: Likewise.
19475         * tests/test-rename.c: Likewise.
19476         * tests/test-rename.h: Likewise.
19477         * tests/test-safe-alloc.c: Likewise.
19478         * tests/test-utimens-common.h: Likewise.
19479         * tests/test-utimens.h: Likewise.
19480
19481         maint: sync license texts
19482         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19483         * doc/gpl-3.0.texi: Revert copyright year update.
19484         * doc/lgpl-3.0.texi: Likewise.
19485
19486 2009-12-29  Jim Meyering  <meyering@redhat.com>
19487
19488         update nearly all FSF copyright year lists to include 2009
19489         The files named by the following are exempted:
19490             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19491               test -f "$dst" && { echo "$dst"; continue; }
19492               test -d "$dst" || continue
19493               echo "$dst"/$(basename "$src")
19494             done > exempt
19495             git ls-files tests/unictype >> exempt
19496         In the remaining files, convert to all-interval notation if
19497         - there is already at least one year interval like 2000-2003
19498         - the file is maintained by me
19499         - the file is in lib/uni*/, where that style already prevails
19500         Otherwise, use update-copyright's default.
19501
19502 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19503         and Eric Blake  <ebb9@byu.net>
19504
19505         tests: don't require debug system() to pass
19506         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19507         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19508         * tests/test-unlink.h (test_unlink_func): Likewise.
19509         * tests/test-fstatat.c (main): ...into callers.
19510         * tests/test-lstat.c (main): Likewise.
19511         * tests/test-rmdir.c (main): Likewise.
19512         * tests/test-unlink.c (main): Likewise.
19513         * tests/test-unlinkat.c (main): Likewise.
19514         * tests/test-areadlink-with-size.c (main): Don't require a
19515         debug-only system call to pass, aiding cross-testing to mingw.
19516         * tests/test-areadlink.c (main): Likewise.
19517         * tests/test-areadlinkat-with-size.c (main): Likewise.
19518         * tests/test-areadlinkat.c (main): Likewise.
19519         * tests/test-canonicalize-lgpl.c (main): Likewise.
19520         * tests/test-canonicalize.c (main): Likewise.
19521         * tests/test-chown.c (main): Likewise.
19522         * tests/test-fchownat.c (main): Likewise.
19523         * tests/test-lchown.c (main): Likewise.
19524         * tests/test-fdutimensat.c (main): Likewise.
19525         * tests/test-futimens.c (main): Likewise.
19526         * tests/test-link.c (main): Likewise.
19527         * tests/test-linkat.c (main): Likewise.
19528         * tests/test-mkdir.c (main): Likewise.
19529         * tests/test-mkdirat.c (main): Likewise.
19530         * tests/test-mkfifo.c (main): Likewise.
19531         * tests/test-mkfifoat.c (main): Likewise.
19532         * tests/test-mknod.c (main): Likewise.
19533         * tests/test-readlink.c (main): Likewise.
19534         * tests/test-remove.c (main): Likewise.
19535         * tests/test-rename.c (main): Likewise.
19536         * tests/test-renameat.c (main): Likewise.
19537         * tests/test-symlink.c (main): Likewise.
19538         * tests/test-symlinkat.c (main): Likewise.
19539         * tests/test-utimens.c (main): Likewise.
19540         * tests/test-utimensat.c (main): Likewise.
19541
19542 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19543
19544         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19545         on $(UNUSED_PARAMETER_H) to avoid build failure.
19546
19547 2009-12-28  Jim Meyering  <meyering@redhat.com>
19548
19549         update-copyright: you may specify a max. line length other than 72
19550         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19551
19552         maint: use consistent FSF copyright line syntax
19553         * lib/posixtm.c: Add missing comma in FSF copyright line.
19554         * lib/posixtm.h: Likewise.
19555         * lib/getugroups.c: Add missing ", Inc.".
19556
19557         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19558         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19559         FSF copyright line.  Remove trailing blanks.
19560
19561 2009-12-28  Eric Blake  <ebb9@byu.net>
19562
19563         test-dup2: reduce dependencies
19564         * modules/cloexec (Configure.ac): Set witness.
19565         * modules/dup2-tests (Depends-on): Drop cloexec.
19566         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19567         not present.
19568         Suggested by Bruno Haible.
19569
19570 2009-12-26  Bruno Haible  <bruno@clisp.org>
19571
19572         Remove an unneeded dependency.
19573         * modules/fseterr (Depends-on): Remove dup2.
19574
19575 2009-12-26  Eric Blake  <ebb9@byu.net>
19576
19577         tests: use macros.h in more places
19578         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19579         (ASSERT_STREAM): Provide default of stderr.
19580         * tests/test-dirent-safer.c: Include macros.h, using alternate
19581         stream for assertions.
19582         * tests/test-dup-safer.c: Likewise.
19583         * tests/test-freopen-safer.c: Likewise.
19584         * tests/test-getopt.c: Likewise.
19585         * tests/test-openat-safer.c: Likewise.
19586         * tests/test-pipe.c: Likewise.
19587         * tests/test-popen-safer.c: Likewise.
19588         * modules/dirent-safer-tests (Files): Include macros.h.
19589         * modules/unistd-safer-tests (Files): Likewise.
19590         * modules/freopen-safer-tests (Files): Likewise.
19591         * modules/getopt-posix-tests (Files): Likewise.
19592         * modules/openat-safer-tests (Files): Likewise.
19593         * modules/pipe-tests (Files): Likewise.
19594
19595 2009-12-26  Bruno Haible  <bruno@clisp.org>
19596
19597         javacomp: Portability fix.
19598         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19599         that it also works on Solaris.
19600
19601 2009-12-26  Bruno Haible  <bruno@clisp.org>
19602
19603         localename: Fix storage allocation of gl_locale_name_thread's result.
19604         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19605         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19606         all platforms that have 'uselocale'.
19607         (gl_locale_name_thread_unsafe): New function, extracted from
19608         gl_locale_name_thread.
19609         (gl_locale_name_thread): Call struniq on all platforms that have
19610         'uselocale'.
19611         * tests/test-localename.c (test_locale_name_thread): Check that the
19612         resulting strings are permanently allocated.
19613         * modules/localename-tests (Depends-on): Add strdup.
19614
19615 2009-12-26  Bruno Haible  <bruno@clisp.org>
19616
19617         * tests/test-localename.c (categories): Fill in the strings.
19618
19619 2009-12-26  Jim Meyering  <meyering@redhat.com>
19620
19621         isdir: complete the removal of m4/isdir.m4
19622         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19623
19624         isdir: clean up, since at least grep still uses it
19625         * lib/isdir.c: Include "isdir.h".
19626         (S_ISDIR): Remove now-unneeded definition.
19627         * modules/isdir (Files): Add lib/isdir.h.
19628         * lib/isdir.h: New file, with declaration.
19629         * m4/isdir.m4: Remove file -- unneeded.
19630
19631 2009-12-25  Bruno Haible  <bruno@clisp.org>
19632
19633         selinux-h: Make generated .h files standalone.
19634         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19635         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19636         * lib/se-selinux.in.h: Likewise.
19637         * modules/selinux-h (Depends-on): Add unused-parameter.
19638         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19639         selinux/selinux.h and selinux/context.h.
19640         Suggested by Eric Blake.
19641
19642 2009-12-25  Bruno Haible  <bruno@clisp.org>
19643
19644         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19645         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19646         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19647         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19648         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19649
19650 2009-12-24  Bruno Haible  <bruno@clisp.org>
19651
19652         openat: Fix warning.
19653         * lib/openat-proc.c: Include <unistd.h>.
19654
19655 2009-12-24  Bruno Haible  <bruno@clisp.org>
19656
19657         New module 'unused-parameter'.
19658         * build-aux/unused-parameter.h: New file, extracted from earlier
19659         gnulib-common.m4.
19660         * modules/unused-parameter: New file.
19661         * lib/unistr.h: Include unused-parameter.h.
19662         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19663         _GL_UNUSED.
19664         * modules/unistr/base (Depends-on): Add unused-parameter.
19665
19666 2009-12-24  Bruno Haible  <bruno@clisp.org>
19667
19668         Add missing dependencies to 'extensions' module.
19669         * m4/extensions.m4: Add comment.
19670         * modules/accept4 (Depends-on): Add extensions.
19671         * modules/dup3 (Depends-on): Likewise.
19672         * modules/fcntl (Depends-on): Likewise.
19673         * modules/futimens (Depends-on): Likewise.
19674         * modules/mknod (Depends-on): Likewise.
19675         * modules/pipe2 (Depends-on): Likewise.
19676         * modules/stat-time (Depends-on): Likewise.
19677         * modules/strcasestr-simple (Depends-on): Likewise.
19678         * modules/strsignal (Depends-on): Likewise.
19679         * modules/utimensat (Depends-on): Likewise.
19680         * modules/localcharset (Depends-on): Likewise. Needed because of
19681         gl_FCNTL_O_FLAGS.
19682         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19683         AC_TYPE_MBSTATE_T.
19684         * modules/wcsnrtombs (Depends-on): Likewise.
19685         * modules/wcsrtombs (Depends-on): Likewise.
19686
19687 2009-12-24  Bruno Haible  <bruno@clisp.org>
19688
19689         binary-io: Avoid gcc warning due to SET_BINARY.
19690         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19691         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19692
19693 2009-12-24  Bruno Haible  <bruno@clisp.org>
19694
19695         Avoid future namespace pollution on glibc systems.
19696         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19697         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19698         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19699         glibc systems.
19700
19701 2009-12-24  Bruno Haible  <bruno@clisp.org>
19702
19703         Refactor common macros used in tests.
19704         * tests/macros.h: New file.
19705         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19706         and/or <stdlib.h>, if appropriate.
19707         (ASSERT, SIZEOF): Remove macros.
19708         * tests/test-areadlink-with-size.c: Likewise.
19709         * tests/test-areadlinkat.c: Likewise.
19710         * tests/test-areadlinkat-with-size.c: Likewise.
19711         * tests/test-argmatch.c: Likewise.
19712         * tests/test-argv-iter.c: Likewise.
19713         * tests/test-array-mergesort.c: Likewise.
19714         * tests/test-array_list.c: Likewise.
19715         * tests/test-array_oset.c: Likewise.
19716         * tests/test-avltree_list.c: Likewise.
19717         * tests/test-avltree_oset.c: Likewise.
19718         * tests/test-avltreehash_list.c: Likewise.
19719         * tests/test-base64.c: Likewise.
19720         * tests/test-binary-io.c: Likewise.
19721         * tests/test-bitrotate.c: Likewise.
19722         * tests/test-btowc.c: Likewise.
19723         * tests/test-byteswap.c: Likewise.
19724         * tests/test-c-ctype.c: Likewise.
19725         * tests/test-c-stack.c: Likewise.
19726         * tests/test-c-strcasecmp.c: Likewise.
19727         * tests/test-c-strcasestr.c: Likewise.
19728         * tests/test-c-strncasecmp.c: Likewise.
19729         * tests/test-c-strstr.c: Likewise.
19730         * tests/test-canonicalize-lgpl.c: Likewise.
19731         * tests/test-canonicalize.c: Likewise.
19732         * tests/test-carray_list.c: Likewise.
19733         * tests/test-ceilf1.c: Likewise.
19734         * tests/test-ceilf2.c: Likewise.
19735         * tests/test-ceill.c: Likewise.
19736         * tests/test-chown.c: Likewise.
19737         * tests/test-cloexec.c: Likewise.
19738         * tests/test-copy-acl.c: Likewise.
19739         * tests/test-copy-file.c: Likewise.
19740         * tests/test-count-one-bits.c: Likewise.
19741         * tests/test-dprintf-posix.c: Likewise.
19742         * tests/test-dup2.c: Likewise.
19743         * tests/test-dup3.c: Likewise.
19744         * tests/test-duplocale.c: Likewise.
19745         * tests/test-fbufmode.c: Likewise.
19746         * tests/test-fchdir.c: Likewise.
19747         * tests/test-fchownat.c: Likewise.
19748         * tests/test-fcntl-safer.c: Likewise.
19749         * tests/test-fcntl.c: Likewise.
19750         * tests/test-fdopendir.c: Likewise.
19751         * tests/test-fdutimensat.c: Likewise.
19752         * tests/test-fflush2.c: Likewise.
19753         * tests/test-file-has-acl.c: Likewise.
19754         * tests/test-filevercmp.c: Likewise.
19755         * tests/test-flock.c: Likewise.
19756         * tests/test-floorf1.c: Likewise.
19757         * tests/test-floorf2.c: Likewise.
19758         * tests/test-floorl.c: Likewise.
19759         * tests/test-fnmatch.c: Likewise.
19760         * tests/test-fopen.h: Likewise.
19761         * tests/test-fpending.c: Likewise.
19762         * tests/test-fprintf-posix.c: Likewise.
19763         * tests/test-fpurge.c: Likewise.
19764         * tests/test-freadable.c: Likewise.
19765         * tests/test-freadahead.c: Likewise.
19766         * tests/test-freading.c: Likewise.
19767         * tests/test-freadptr.c: Likewise.
19768         * tests/test-freadptr2.c: Likewise.
19769         * tests/test-freadseek.c: Likewise.
19770         * tests/test-freopen.c: Likewise.
19771         * tests/test-frexp.c: Likewise.
19772         * tests/test-frexpl.c: Likewise.
19773         * tests/test-fseek.c: Likewise.
19774         * tests/test-fseeko.c: Likewise.
19775         * tests/test-fstatat.c: Likewise.
19776         * tests/test-fstrcmp.c: Likewise.
19777         * tests/test-fsync.c: Likewise.
19778         * tests/test-ftell.c: Likewise.
19779         * tests/test-ftello.c: Likewise.
19780         * tests/test-func.c: Likewise.
19781         * tests/test-futimens.c: Likewise.
19782         * tests/test-fwritable.c: Likewise.
19783         * tests/test-fwriting.c: Likewise.
19784         * tests/test-getcwd.c: Likewise.
19785         * tests/test-getdate.c: Likewise.
19786         * tests/test-getdelim.c: Likewise.
19787         * tests/test-getdtablesize.c: Likewise.
19788         * tests/test-getgroups.c: Likewise.
19789         * tests/test-getline.c: Likewise.
19790         * tests/test-getndelim2.c: Likewise.
19791         * tests/test-glob.c: Likewise.
19792         * tests/test-hash.c: Likewise.
19793         * tests/test-i-ring.c: Likewise.
19794         * tests/test-iconv-utf.c: Likewise.
19795         * tests/test-iconv.c: Likewise.
19796         * tests/test-idpriv-drop.c: Likewise.
19797         * tests/test-idpriv-droptemp.c: Likewise.
19798         * tests/test-inet_ntop.c: Likewise.
19799         * tests/test-inet_pton.c: Likewise.
19800         * tests/test-isblank.c: Likewise.
19801         * tests/test-isfinite.c: Likewise.
19802         * tests/test-isinf.c: Likewise.
19803         * tests/test-isnan.c: Likewise.
19804         * tests/test-isnand.h: Likewise.
19805         * tests/test-isnanf.h: Likewise.
19806         * tests/test-isnanl.h: Likewise.
19807         * tests/test-lchown.c: Likewise.
19808         * tests/test-ldexpl.c: Likewise.
19809         * tests/test-link.c: Likewise.
19810         * tests/test-linkat.c: Likewise.
19811         * tests/test-linked_list.c: Likewise.
19812         * tests/test-linkedhash_list.c: Likewise.
19813         * tests/test-localename.c: Likewise.
19814         * tests/test-lseek.c: Likewise.
19815         * tests/test-lstat.c: Likewise.
19816         * tests/test-mbmemcasecmp.c: Likewise.
19817         * tests/test-mbmemcasecoll.c: Likewise.
19818         * tests/test-mbrtowc.c: Likewise.
19819         * tests/test-mbscasecmp.c: Likewise.
19820         * tests/test-mbscasestr1.c: Likewise.
19821         * tests/test-mbscasestr2.c: Likewise.
19822         * tests/test-mbscasestr3.c: Likewise.
19823         * tests/test-mbscasestr4.c: Likewise.
19824         * tests/test-mbschr.c: Likewise.
19825         * tests/test-mbscspn.c: Likewise.
19826         * tests/test-mbsinit.c: Likewise.
19827         * tests/test-mbsncasecmp.c: Likewise.
19828         * tests/test-mbsnrtowcs.c: Likewise.
19829         * tests/test-mbspbrk.c: Likewise.
19830         * tests/test-mbspcasecmp.c: Likewise.
19831         * tests/test-mbsrchr.c: Likewise.
19832         * tests/test-mbsrtowcs.c: Likewise.
19833         * tests/test-mbsspn.c: Likewise.
19834         * tests/test-mbsstr1.c: Likewise.
19835         * tests/test-mbsstr2.c: Likewise.
19836         * tests/test-mbsstr3.c: Likewise.
19837         * tests/test-memchr.c: Likewise.
19838         * tests/test-memchr2.c: Likewise.
19839         * tests/test-memcmp.c: Likewise.
19840         * tests/test-memmem.c: Likewise.
19841         * tests/test-memrchr.c: Likewise.
19842         * tests/test-mkdir.c: Likewise.
19843         * tests/test-mkdirat.c: Likewise.
19844         * tests/test-mkfifo.c: Likewise.
19845         * tests/test-mkfifoat.c: Likewise.
19846         * tests/test-mknod.c: Likewise.
19847         * tests/test-nanosleep.c: Likewise.
19848         * tests/test-nl_langinfo.c: Likewise.
19849         * tests/test-obstack-printf.c: Likewise.
19850         * tests/test-open.c: Likewise.
19851         * tests/test-openat.c: Likewise.
19852         * tests/test-pipe-filter-gi1.c: Likewise.
19853         * tests/test-pipe-filter-gi2-main.c: Likewise.
19854         * tests/test-pipe-filter-ii1.c: Likewise.
19855         * tests/test-pipe-filter-ii2-main.c: Likewise.
19856         * tests/test-pipe2.c: Likewise.
19857         * tests/test-popen.h: Likewise.
19858         * tests/test-posixtm.c: Likewise.
19859         * tests/test-pread.c: Likewise.
19860         * tests/test-printf-frexp.c: Likewise.
19861         * tests/test-printf-frexpl.c: Likewise.
19862         * tests/test-printf-posix.c: Likewise.
19863         * tests/test-priv-set.c: Likewise.
19864         * tests/test-quotearg.c: Likewise.
19865         * tests/test-random_r.c: Likewise.
19866         * tests/test-rawmemchr.c: Likewise.
19867         * tests/test-rbtree_list.c: Likewise.
19868         * tests/test-rbtree_oset.c: Likewise.
19869         * tests/test-rbtreehash_list.c: Likewise.
19870         * tests/test-readlink.c: Likewise.
19871         * tests/test-remove.c: Likewise.
19872         * tests/test-rename.c: Likewise.
19873         * tests/test-renameat.c: Likewise.
19874         * tests/test-rmdir.c: Likewise.
19875         * tests/test-round1.c: Likewise.
19876         * tests/test-roundf1.c: Likewise.
19877         * tests/test-roundl.c: Likewise.
19878         * tests/test-safe-alloc.c: Likewise.
19879         * tests/test-sameacls.c: Likewise.
19880         * tests/test-set-mode-acl.c: Likewise.
19881         * tests/test-setenv.c: Likewise.
19882         * tests/test-sigaction.c: Likewise.
19883         * tests/test-signbit.c: Likewise.
19884         * tests/test-sleep.c: Likewise.
19885         * tests/test-snprintf-posix.c: Likewise.
19886         * tests/test-snprintf.c: Likewise.
19887         * tests/test-sprintf-posix.c: Likewise.
19888         * tests/test-stat-time.c: Likewise.
19889         * tests/test-stat.c: Likewise.
19890         * tests/test-strcasestr.c: Likewise.
19891         * tests/test-strchrnul.c: Likewise.
19892         * tests/test-strerror.c: Likewise.
19893         * tests/test-striconv.c: Likewise.
19894         * tests/test-striconveh.c: Likewise.
19895         * tests/test-striconveha.c: Likewise.
19896         * tests/test-strsignal.c: Likewise.
19897         * tests/test-strstr.c: Likewise.
19898         * tests/test-strtod.c: Likewise.
19899         * tests/test-strverscmp.c: Likewise.
19900         * tests/test-symlink.c: Likewise.
19901         * tests/test-symlinkat.c: Likewise.
19902         * tests/test-trunc1.c: Likewise.
19903         * tests/test-trunc2.c: Likewise.
19904         * tests/test-truncf1.c: Likewise.
19905         * tests/test-truncf2.c: Likewise.
19906         * tests/test-truncl.c: Likewise.
19907         * tests/test-uname.c: Likewise.
19908         * tests/test-unlink.c: Likewise.
19909         * tests/test-unlinkat.c: Likewise.
19910         * tests/test-unsetenv.c: Likewise.
19911         * tests/test-usleep.c: Likewise.
19912         * tests/test-utimens.c: Likewise.
19913         * tests/test-utimensat.c: Likewise.
19914         * tests/test-vasnprintf-posix.c: Likewise.
19915         * tests/test-vasnprintf-posix2.c: Likewise.
19916         * tests/test-vasnprintf.c: Likewise.
19917         * tests/test-vasprintf-posix.c: Likewise.
19918         * tests/test-vasprintf.c: Likewise.
19919         * tests/test-vdprintf-posix.c: Likewise.
19920         * tests/test-vfprintf-posix.c: Likewise.
19921         * tests/test-vprintf-posix.c: Likewise.
19922         * tests/test-vsnprintf-posix.c: Likewise.
19923         * tests/test-vsnprintf.c: Likewise.
19924         * tests/test-vsprintf-posix.c: Likewise.
19925         * tests/test-wcrtomb.c: Likewise.
19926         * tests/test-wcsnrtombs.c: Likewise.
19927         * tests/test-wcsrtombs.c: Likewise.
19928         * tests/test-wctype.c: Likewise.
19929         * tests/test-wcwidth.c: Likewise.
19930         * tests/test-xfprintf-posix.c: Likewise.
19931         * tests/test-xmemdup0.c: Likewise.
19932         * tests/test-xprintf-posix.c: Likewise.
19933         * tests/test-xvasprintf.c: Likewise.
19934         * tests/unicase/test-locale-language.c: Likewise.
19935         * tests/unicase/test-mapping-part1.h: Likewise.
19936         * tests/unicase/test-predicate-part1.h: Likewise.
19937         * tests/unicase/test-u8-casecmp.c: Likewise.
19938         * tests/unicase/test-u8-casecoll.c: Likewise.
19939         * tests/unicase/test-u8-casefold.c: Likewise.
19940         * tests/unicase/test-u8-is-cased.c: Likewise.
19941         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19942         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19943         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19944         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19945         * tests/unicase/test-u8-tolower.c: Likewise.
19946         * tests/unicase/test-u8-totitle.c: Likewise.
19947         * tests/unicase/test-u8-toupper.c: Likewise.
19948         * tests/unicase/test-u16-casecmp.c: Likewise.
19949         * tests/unicase/test-u16-casecoll.c: Likewise.
19950         * tests/unicase/test-u16-casefold.c: Likewise.
19951         * tests/unicase/test-u16-is-cased.c: Likewise.
19952         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19953         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19954         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19955         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19956         * tests/unicase/test-u16-tolower.c: Likewise.
19957         * tests/unicase/test-u16-totitle.c: Likewise.
19958         * tests/unicase/test-u16-toupper.c: Likewise.
19959         * tests/unicase/test-u32-casecmp.c: Likewise.
19960         * tests/unicase/test-u32-casecoll.c: Likewise.
19961         * tests/unicase/test-u32-casefold.c: Likewise.
19962         * tests/unicase/test-u32-is-cased.c: Likewise.
19963         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19964         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19965         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19966         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19967         * tests/unicase/test-u32-tolower.c: Likewise.
19968         * tests/unicase/test-u32-totitle.c: Likewise.
19969         * tests/unicase/test-u32-toupper.c: Likewise.
19970         * tests/unicase/test-ulc-casecmp.c: Likewise.
19971         * tests/unicase/test-ulc-casecoll.c: Likewise.
19972         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19973         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19974         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19975         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19976         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19977         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19978         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19979         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19980         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19981         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19982         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19983         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19984         * tests/unictype/test-bidi_byname.c: Likewise.
19985         * tests/unictype/test-bidi_name.c: Likewise.
19986         * tests/unictype/test-bidi_of.c: Likewise.
19987         * tests/unictype/test-bidi_test.c: Likewise.
19988         * tests/unictype/test-block_list.c: Likewise.
19989         * tests/unictype/test-block_of.c: Likewise.
19990         * tests/unictype/test-block_test.c: Likewise.
19991         * tests/unictype/test-categ_and.c: Likewise.
19992         * tests/unictype/test-categ_and_not.c: Likewise.
19993         * tests/unictype/test-categ_byname.c: Likewise.
19994         * tests/unictype/test-categ_name.c: Likewise.
19995         * tests/unictype/test-categ_none.c: Likewise.
19996         * tests/unictype/test-categ_of.c: Likewise.
19997         * tests/unictype/test-categ_or.c: Likewise.
19998         * tests/unictype/test-categ_test_withtable.c: Likewise.
19999         * tests/unictype/test-combining.c: Likewise.
20000         * tests/unictype/test-decdigit.c: Likewise.
20001         * tests/unictype/test-digit.c: Likewise.
20002         * tests/unictype/test-mirror.c: Likewise.
20003         * tests/unictype/test-numeric.c: Likewise.
20004         * tests/unictype/test-pr_byname.c: Likewise.
20005         * tests/unictype/test-pr_test.c: Likewise.
20006         * tests/unictype/test-predicate-part1.h: Likewise.
20007         * tests/unictype/test-scripts.c: Likewise.
20008         * tests/unictype/test-sy_c_ident.c: Likewise.
20009         * tests/unictype/test-sy_java_ident.c: Likewise.
20010         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20011         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20012         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20013         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20014         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20015         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20016         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20017         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20018         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20019         * tests/uninorm/test-compat-decomposition.c: Likewise.
20020         * tests/uninorm/test-composition.c: Likewise.
20021         * tests/uninorm/test-decomposing-form.c: Likewise.
20022         * tests/uninorm/test-decomposition.c: Likewise.
20023         * tests/uninorm/test-u8-nfc.c: Likewise.
20024         * tests/uninorm/test-u8-nfd.c: Likewise.
20025         * tests/uninorm/test-u8-nfkc.c: Likewise.
20026         * tests/uninorm/test-u8-nfkd.c: Likewise.
20027         * tests/uninorm/test-u8-normcmp.c: Likewise.
20028         * tests/uninorm/test-u8-normcoll.c: Likewise.
20029         * tests/uninorm/test-u16-nfc.c: Likewise.
20030         * tests/uninorm/test-u16-nfd.c: Likewise.
20031         * tests/uninorm/test-u16-nfkc.c: Likewise.
20032         * tests/uninorm/test-u16-nfkd.c: Likewise.
20033         * tests/uninorm/test-u16-normcmp.c: Likewise.
20034         * tests/uninorm/test-u16-normcoll.c: Likewise.
20035         * tests/uninorm/test-u32-nfc.c: Likewise.
20036         * tests/uninorm/test-u32-nfd.c: Likewise.
20037         * tests/uninorm/test-u32-nfkc.c: Likewise.
20038         * tests/uninorm/test-u32-nfkd.c: Likewise.
20039         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20040         * tests/uninorm/test-u32-normcmp.c: Likewise.
20041         * tests/uninorm/test-u32-normcoll.c: Likewise.
20042         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20043         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20044         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20045         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20046         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20047         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20048         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20049         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20050         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20051         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20052         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20053         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20054         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20055         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20056         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20057         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20058         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20059         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20060         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20061         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20062         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20063         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20064         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20065         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20066         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20067         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20068         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20069         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20070         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20071         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20072         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20073         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20074         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20075         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20076         * tests/uniwidth/test-u8-width.c: Likewise.
20077         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20078         * tests/uniwidth/test-u16-width.c: Likewise.
20079         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20080         * tests/uniwidth/test-u32-width.c: Likewise.
20081         * tests/uniwidth/test-uc_width.c: Likewise.
20082         * tests/uniwidth/test-uc_width2.c: Likewise.
20083         * modules/acl-tests (Files): Add tests/macros.h.
20084         * modules/areadlink-tests (Files): Likewise.
20085         * modules/areadlink-with-size-tests (Files): Likewise.
20086         * modules/areadlinkat-tests (Files): Likewise.
20087         * modules/areadlinkat-with-size-tests (Files): Likewise.
20088         * modules/argmatch-tests (Files): Likewise.
20089         * modules/argv-iter-tests (Files): Likewise.
20090         * modules/array-list-tests (Files): Likewise.
20091         * modules/array-mergesort-tests (Files): Likewise.
20092         * modules/array-oset-tests (Files): Likewise.
20093         * modules/avltree-list-tests (Files): Likewise.
20094         * modules/avltree-oset-tests (Files): Likewise.
20095         * modules/avltreehash-list-tests (Files): Likewise.
20096         * modules/base64-tests (Files): Likewise.
20097         * modules/binary-io-tests (Files): Likewise.
20098         * modules/bitrotate-tests (Files): Likewise.
20099         * modules/btowc-tests (Files): Likewise.
20100         * modules/byteswap-tests (Files): Likewise.
20101         * modules/c-ctype-tests (Files): Likewise.
20102         * modules/c-stack-tests (Files): Likewise.
20103         * modules/c-strcase-tests (Files): Likewise.
20104         * modules/c-strcasestr-tests (Files): Likewise.
20105         * modules/c-strstr-tests (Files): Likewise.
20106         * modules/canonicalize-lgpl-tests (Files): Likewise.
20107         * modules/canonicalize-tests (Files): Likewise.
20108         * modules/carray-list-tests (Files): Likewise.
20109         * modules/ceilf-tests (Files): Likewise.
20110         * modules/ceill-tests (Files): Likewise.
20111         * modules/chown-tests (Files): Likewise.
20112         * modules/cloexec-tests (Files): Likewise.
20113         * modules/copy-file-tests (Files): Likewise.
20114         * modules/count-one-bits-tests (Files): Likewise.
20115         * modules/dprintf-posix-tests (Files): Likewise.
20116         * modules/dup2-tests (Files): Likewise.
20117         * modules/dup3-tests (Files): Likewise.
20118         * modules/duplocale-tests (Files): Likewise.
20119         * modules/fbufmode-tests (Files): Likewise.
20120         * modules/fchdir-tests (Files): Likewise.
20121         * modules/fcntl-safer-tests (Files): Likewise.
20122         * modules/fcntl-tests (Files): Likewise.
20123         * modules/fdopendir-tests (Files): Likewise.
20124         * modules/fdutimensat-tests (Files): Likewise.
20125         * modules/fflush-tests (Files): Likewise.
20126         * modules/filevercmp-tests (Files): Likewise.
20127         * modules/flock-tests (Files): Likewise.
20128         * modules/floorf-tests (Files): Likewise.
20129         * modules/floorl-tests (Files): Likewise.
20130         * modules/fnmatch-tests (Files): Likewise.
20131         * modules/fopen-safer-tests (Files): Likewise.
20132         * modules/fopen-tests (Files): Likewise.
20133         * modules/fpending-tests (Files): Likewise.
20134         * modules/fprintf-posix-tests (Files): Likewise.
20135         * modules/fpurge-tests (Files): Likewise.
20136         * modules/freadable-tests (Files): Likewise.
20137         * modules/freadahead-tests (Files): Likewise.
20138         * modules/freading-tests (Files): Likewise.
20139         * modules/freadptr-tests (Files): Likewise.
20140         * modules/freadseek-tests (Files): Likewise.
20141         * modules/freopen-tests (Files): Likewise.
20142         * modules/frexp-nolibm-tests (Files): Likewise.
20143         * modules/frexp-tests (Files): Likewise.
20144         * modules/frexpl-nolibm-tests (Files): Likewise.
20145         * modules/frexpl-tests (Files): Likewise.
20146         * modules/fseek-tests (Files): Likewise.
20147         * modules/fseeko-tests (Files): Likewise.
20148         * modules/fstrcmp-tests (Files): Likewise.
20149         * modules/fsync-tests (Files): Likewise.
20150         * modules/ftell-tests (Files): Likewise.
20151         * modules/ftello-tests (Files): Likewise.
20152         * modules/func-tests (Files): Likewise.
20153         * modules/futimens-tests (Files): Likewise.
20154         * modules/fwritable-tests (Files): Likewise.
20155         * modules/fwriting-tests (Files): Likewise.
20156         * modules/getcwd-tests (Files): Likewise.
20157         * modules/getdate-tests (Files): Likewise.
20158         * modules/getdelim-tests (Files): Likewise.
20159         * modules/getdtablesize-tests (Files): Likewise.
20160         * modules/getgroups-tests (Files): Likewise.
20161         * modules/getline-tests (Files): Likewise.
20162         * modules/getndelim2-tests (Files): Likewise.
20163         * modules/glob-tests (Files): Likewise.
20164         * modules/hash-tests (Files): Likewise.
20165         * modules/i-ring-tests (Files): Likewise.
20166         * modules/iconv-tests (Files): Likewise.
20167         * modules/iconv_open-utf-tests (Files): Likewise.
20168         * modules/idpriv-drop-tests (Files): Likewise.
20169         * modules/idpriv-droptemp-tests (Files): Likewise.
20170         * modules/inet_ntop-tests (Files): Likewise.
20171         * modules/inet_pton-tests (Files): Likewise.
20172         * modules/isblank-tests (Files): Likewise.
20173         * modules/isfinite-tests (Files): Likewise.
20174         * modules/isinf-tests (Files): Likewise.
20175         * modules/isnan-tests (Files): Likewise.
20176         * modules/isnand-nolibm-tests (Files): Likewise.
20177         * modules/isnand-tests (Files): Likewise.
20178         * modules/isnanf-nolibm-tests (Files): Likewise.
20179         * modules/isnanf-tests (Files): Likewise.
20180         * modules/isnanl-nolibm-tests (Files): Likewise.
20181         * modules/isnanl-tests (Files): Likewise.
20182         * modules/lchown-tests (Files): Likewise.
20183         * modules/ldexpl-tests (Files): Likewise.
20184         * modules/link-tests (Files): Likewise.
20185         * modules/linkat-tests (Files): Likewise.
20186         * modules/linked-list-tests (Files): Likewise.
20187         * modules/linkedhash-list-tests (Files): Likewise.
20188         * modules/localename-tests (Files): Likewise.
20189         * modules/lseek-tests (Files): Likewise.
20190         * modules/lstat-tests (Files): Likewise.
20191         * modules/mbmemcasecmp-tests (Files): Likewise.
20192         * modules/mbmemcasecoll-tests (Files): Likewise.
20193         * modules/mbrtowc-tests (Files): Likewise.
20194         * modules/mbscasecmp-tests (Files): Likewise.
20195         * modules/mbscasestr-tests (Files): Likewise.
20196         * modules/mbschr-tests (Files): Likewise.
20197         * modules/mbscspn-tests (Files): Likewise.
20198         * modules/mbsinit-tests (Files): Likewise.
20199         * modules/mbsncasecmp-tests (Files): Likewise.
20200         * modules/mbsnrtowcs-tests (Files): Likewise.
20201         * modules/mbspbrk-tests (Files): Likewise.
20202         * modules/mbspcasecmp-tests (Files): Likewise.
20203         * modules/mbsrchr-tests (Files): Likewise.
20204         * modules/mbsrtowcs-tests (Files): Likewise.
20205         * modules/mbsspn-tests (Files): Likewise.
20206         * modules/mbsstr-tests (Files): Likewise.
20207         * modules/memchr-tests (Files): Likewise.
20208         * modules/memchr2-tests (Files): Likewise.
20209         * modules/memcmp-tests (Files): Likewise.
20210         * modules/memmem-tests (Files): Likewise.
20211         * modules/memrchr-tests (Files): Likewise.
20212         * modules/mkdir-tests (Files): Likewise.
20213         * modules/mkfifo-tests (Files): Likewise.
20214         * modules/mkfifoat-tests (Files): Likewise.
20215         * modules/mknod-tests (Files): Likewise.
20216         * modules/nanosleep-tests (Files): Likewise.
20217         * modules/nl_langinfo-tests (Files): Likewise.
20218         * modules/obstack-printf-tests (Files): Likewise.
20219         * modules/open-tests (Files): Likewise.
20220         * modules/openat-tests (Files): Likewise.
20221         * modules/pipe-filter-gi-tests (Files): Likewise.
20222         * modules/pipe-filter-ii-tests (Files): Likewise.
20223         * modules/pipe2-tests (Files): Likewise.
20224         * modules/popen-safer-tests (Files): Likewise.
20225         * modules/popen-tests (Files): Likewise.
20226         * modules/posixtm-tests (Files): Likewise.
20227         * modules/pread-tests (Files): Likewise.
20228         * modules/printf-frexp-tests (Files): Likewise.
20229         * modules/printf-frexpl-tests (Files): Likewise.
20230         * modules/printf-posix-tests (Files): Likewise.
20231         * modules/priv-set-tests (Files): Likewise.
20232         * modules/quotearg-tests (Files): Likewise.
20233         * modules/random_r-tests (Files): Likewise.
20234         * modules/rawmemchr-tests (Files): Likewise.
20235         * modules/rbtree-list-tests (Files): Likewise.
20236         * modules/rbtree-oset-tests (Files): Likewise.
20237         * modules/rbtreehash-list-tests (Files): Likewise.
20238         * modules/readlink-tests (Files): Likewise.
20239         * modules/remove-tests (Files): Likewise.
20240         * modules/rename-tests (Files): Likewise.
20241         * modules/renameat-tests (Files): Likewise.
20242         * modules/rmdir-tests (Files): Likewise.
20243         * modules/round-tests (Files): Likewise.
20244         * modules/roundf-tests (Files): Likewise.
20245         * modules/roundl-tests (Files): Likewise.
20246         * modules/safe-alloc-tests (Files): Likewise.
20247         * modules/setenv-tests (Files): Likewise.
20248         * modules/sigaction-tests (Files): Likewise.
20249         * modules/signbit-tests (Files): Likewise.
20250         * modules/sleep-tests (Files): Likewise.
20251         * modules/snprintf-posix-tests (Files): Likewise.
20252         * modules/snprintf-tests (Files): Likewise.
20253         * modules/sprintf-posix-tests (Files): Likewise.
20254         * modules/stat-tests (Files): Likewise.
20255         * modules/stat-time-tests (Files): Likewise.
20256         * modules/strcasestr-tests (Files): Likewise.
20257         * modules/strchrnul-tests (Files): Likewise.
20258         * modules/strerror-tests (Files): Likewise.
20259         * modules/striconv-tests (Files): Likewise.
20260         * modules/striconveh-tests (Files): Likewise.
20261         * modules/striconveha-tests (Files): Likewise.
20262         * modules/strsignal-tests (Files): Likewise.
20263         * modules/strstr-tests (Files): Likewise.
20264         * modules/strtod-tests (Files): Likewise.
20265         * modules/strverscmp-tests (Files): Likewise.
20266         * modules/symlink-tests (Files): Likewise.
20267         * modules/symlinkat-tests (Files): Likewise.
20268         * modules/trunc-tests (Files): Likewise.
20269         * modules/truncf-tests (Files): Likewise.
20270         * modules/truncl-tests (Files): Likewise.
20271         * modules/uname-tests (Files): Likewise.
20272         * modules/unicase/cased-tests (Files): Likewise.
20273         * modules/unicase/ignorable-tests (Files): Likewise.
20274         * modules/unicase/locale-language-tests (Files): Likewise.
20275         * modules/unicase/tolower-tests (Files): Likewise.
20276         * modules/unicase/totitle-tests (Files): Likewise.
20277         * modules/unicase/toupper-tests (Files): Likewise.
20278         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20279         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20280         * modules/unicase/u8-casefold-tests (Files): Likewise.
20281         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20282         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20283         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20284         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20285         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20286         * modules/unicase/u8-tolower-tests (Files): Likewise.
20287         * modules/unicase/u8-totitle-tests (Files): Likewise.
20288         * modules/unicase/u8-toupper-tests (Files): Likewise.
20289         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20290         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20291         * modules/unicase/u16-casefold-tests (Files): Likewise.
20292         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20293         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20294         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20295         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20296         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20297         * modules/unicase/u16-tolower-tests (Files): Likewise.
20298         * modules/unicase/u16-totitle-tests (Files): Likewise.
20299         * modules/unicase/u16-toupper-tests (Files): Likewise.
20300         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20301         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20302         * modules/unicase/u32-casefold-tests (Files): Likewise.
20303         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20304         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20305         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20306         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20307         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20308         * modules/unicase/u32-tolower-tests (Files): Likewise.
20309         * modules/unicase/u32-totitle-tests (Files): Likewise.
20310         * modules/unicase/u32-toupper-tests (Files): Likewise.
20311         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20312         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20313         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20314         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20315         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20316         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20317         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20318         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20319         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20320         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20321         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20322         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20323         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20324         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20325         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20326         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20327         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20328         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20329         * modules/unictype/block-list-tests (Files): Likewise.
20330         * modules/unictype/block-of-tests (Files): Likewise.
20331         * modules/unictype/block-test-tests (Files): Likewise.
20332         * modules/unictype/category-C-tests (Files): Likewise.
20333         * modules/unictype/category-Cc-tests (Files): Likewise.
20334         * modules/unictype/category-Cf-tests (Files): Likewise.
20335         * modules/unictype/category-Cn-tests (Files): Likewise.
20336         * modules/unictype/category-Co-tests (Files): Likewise.
20337         * modules/unictype/category-Cs-tests (Files): Likewise.
20338         * modules/unictype/category-L-tests (Files): Likewise.
20339         * modules/unictype/category-Ll-tests (Files): Likewise.
20340         * modules/unictype/category-Lm-tests (Files): Likewise.
20341         * modules/unictype/category-Lo-tests (Files): Likewise.
20342         * modules/unictype/category-Lt-tests (Files): Likewise.
20343         * modules/unictype/category-Lu-tests (Files): Likewise.
20344         * modules/unictype/category-M-tests (Files): Likewise.
20345         * modules/unictype/category-Mc-tests (Files): Likewise.
20346         * modules/unictype/category-Me-tests (Files): Likewise.
20347         * modules/unictype/category-Mn-tests (Files): Likewise.
20348         * modules/unictype/category-N-tests (Files): Likewise.
20349         * modules/unictype/category-Nd-tests (Files): Likewise.
20350         * modules/unictype/category-Nl-tests (Files): Likewise.
20351         * modules/unictype/category-No-tests (Files): Likewise.
20352         * modules/unictype/category-P-tests (Files): Likewise.
20353         * modules/unictype/category-Pc-tests (Files): Likewise.
20354         * modules/unictype/category-Pd-tests (Files): Likewise.
20355         * modules/unictype/category-Pe-tests (Files): Likewise.
20356         * modules/unictype/category-Pf-tests (Files): Likewise.
20357         * modules/unictype/category-Pi-tests (Files): Likewise.
20358         * modules/unictype/category-Po-tests (Files): Likewise.
20359         * modules/unictype/category-Ps-tests (Files): Likewise.
20360         * modules/unictype/category-S-tests (Files): Likewise.
20361         * modules/unictype/category-Sc-tests (Files): Likewise.
20362         * modules/unictype/category-Sk-tests (Files): Likewise.
20363         * modules/unictype/category-Sm-tests (Files): Likewise.
20364         * modules/unictype/category-So-tests (Files): Likewise.
20365         * modules/unictype/category-Z-tests (Files): Likewise.
20366         * modules/unictype/category-Zl-tests (Files): Likewise.
20367         * modules/unictype/category-Zp-tests (Files): Likewise.
20368         * modules/unictype/category-Zs-tests (Files): Likewise.
20369         * modules/unictype/category-and-not-tests (Files): Likewise.
20370         * modules/unictype/category-and-tests (Files): Likewise.
20371         * modules/unictype/category-byname-tests (Files): Likewise.
20372         * modules/unictype/category-name-tests (Files): Likewise.
20373         * modules/unictype/category-none-tests (Files): Likewise.
20374         * modules/unictype/category-of-tests (Files): Likewise.
20375         * modules/unictype/category-or-tests (Files): Likewise.
20376         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20377         * modules/unictype/combining-class-tests (Files): Likewise.
20378         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20379         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20380         * modules/unictype/ctype-blank-tests (Files): Likewise.
20381         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20382         * modules/unictype/ctype-digit-tests (Files): Likewise.
20383         * modules/unictype/ctype-graph-tests (Files): Likewise.
20384         * modules/unictype/ctype-lower-tests (Files): Likewise.
20385         * modules/unictype/ctype-print-tests (Files): Likewise.
20386         * modules/unictype/ctype-punct-tests (Files): Likewise.
20387         * modules/unictype/ctype-space-tests (Files): Likewise.
20388         * modules/unictype/ctype-upper-tests (Files): Likewise.
20389         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20390         * modules/unictype/decimal-digit-tests (Files): Likewise.
20391         * modules/unictype/digit-tests (Files): Likewise.
20392         * modules/unictype/mirror-tests (Files): Likewise.
20393         * modules/unictype/numeric-tests (Files): Likewise.
20394         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20395         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20396         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20397         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20398         Likewise.
20399         * modules/unictype/property-bidi-block-separator-tests (Files):
20400         Likewise.
20401         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20402         Likewise.
20403         * modules/unictype/property-bidi-common-separator-tests (Files):
20404         Likewise.
20405         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20406         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20407         Likewise.
20408         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20409         Likewise.
20410         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20411         Likewise.
20412         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20413         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20414         Likewise.
20415         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20416         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20417         Likewise.
20418         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20419         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20420         * modules/unictype/property-bidi-segment-separator-tests (Files):
20421         Likewise.
20422         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20423         * modules/unictype/property-byname-tests (Files): Likewise.
20424         * modules/unictype/property-combining-tests (Files): Likewise.
20425         * modules/unictype/property-composite-tests (Files): Likewise.
20426         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20427         * modules/unictype/property-dash-tests (Files): Likewise.
20428         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20429         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20430         Likewise.
20431         * modules/unictype/property-deprecated-tests (Files): Likewise.
20432         * modules/unictype/property-diacritic-tests (Files): Likewise.
20433         * modules/unictype/property-extender-tests (Files): Likewise.
20434         * modules/unictype/property-format-control-tests (Files): Likewise.
20435         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20436         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20437         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20438         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20439         * modules/unictype/property-hyphen-tests (Files): Likewise.
20440         * modules/unictype/property-id-continue-tests (Files): Likewise.
20441         * modules/unictype/property-id-start-tests (Files): Likewise.
20442         * modules/unictype/property-ideographic-tests (Files): Likewise.
20443         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20444         * modules/unictype/property-ids-trinary-operator-tests (Files):
20445         Likewise.
20446         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20447         * modules/unictype/property-iso-control-tests (Files): Likewise.
20448         * modules/unictype/property-join-control-tests (Files): Likewise.
20449         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20450         * modules/unictype/property-line-separator-tests (Files): Likewise.
20451         * modules/unictype/property-logical-order-exception-tests (Files):
20452         Likewise.
20453         * modules/unictype/property-lowercase-tests (Files): Likewise.
20454         * modules/unictype/property-math-tests (Files): Likewise.
20455         * modules/unictype/property-non-break-tests (Files): Likewise.
20456         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20457         * modules/unictype/property-numeric-tests (Files): Likewise.
20458         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20459         * modules/unictype/property-other-default-ignorable-code-point-tests
20460         (Files): Likewise.
20461         * modules/unictype/property-other-grapheme-extend-tests (Files):
20462         Likewise.
20463         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20464         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20465         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20466         * modules/unictype/property-other-math-tests (Files): Likewise.
20467         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20468         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20469         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20470         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20471         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20472         * modules/unictype/property-private-use-tests (Files): Likewise.
20473         * modules/unictype/property-punctuation-tests (Files): Likewise.
20474         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20475         * modules/unictype/property-radical-tests (Files): Likewise.
20476         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20477         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20478         * modules/unictype/property-space-tests (Files): Likewise.
20479         * modules/unictype/property-terminal-punctuation-tests (Files):
20480         Likewise.
20481         * modules/unictype/property-test-tests (Files): Likewise.
20482         * modules/unictype/property-titlecase-tests (Files): Likewise.
20483         * modules/unictype/property-unassigned-code-value-tests (Files):
20484         Likewise.
20485         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20486         * modules/unictype/property-uppercase-tests (Files): Likewise.
20487         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20488         * modules/unictype/property-white-space-tests (Files): Likewise.
20489         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20490         * modules/unictype/property-xid-start-tests (Files): Likewise.
20491         * modules/unictype/property-zero-width-tests (Files): Likewise.
20492         * modules/unictype/scripts-tests (Files): Likewise.
20493         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20494         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20495         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20496         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20497         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20498         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20499         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20500         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20501         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20502         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20503         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20504         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20505         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20506         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20507         * modules/uninorm/composition-tests (Files): Likewise.
20508         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20509         * modules/uninorm/decomposition-tests (Files): Likewise.
20510         * modules/uninorm/filter-tests (Files): Likewise.
20511         * modules/uninorm/nfc-tests (Files): Likewise.
20512         * modules/uninorm/nfd-tests (Files): Likewise.
20513         * modules/uninorm/nfkc-tests (Files): Likewise.
20514         * modules/uninorm/nfkd-tests (Files): Likewise.
20515         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20516         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20517         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20518         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20519         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20520         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20521         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20522         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20523         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20524         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20525         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20526         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20527         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20528         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20529         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20530         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20531         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20532         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20533         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20534         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20535         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20536         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20537         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20538         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20539         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20540         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20541         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20542         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20543         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20544         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20545         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20546         * modules/uniwidth/u8-width-tests (Files): Likewise.
20547         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20548         * modules/uniwidth/u16-width-tests (Files): Likewise.
20549         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20550         * modules/uniwidth/u32-width-tests (Files): Likewise.
20551         * modules/uniwidth/width-tests (Files): Likewise.
20552         * modules/unlink-tests (Files): Likewise.
20553         * modules/unsetenv-tests (Files): Likewise.
20554         * modules/usleep-tests (Files): Likewise.
20555         * modules/utimens-tests (Files): Likewise.
20556         * modules/utimensat-tests (Files): Likewise.
20557         * modules/vasnprintf-posix-tests (Files): Likewise.
20558         * modules/vasnprintf-tests (Files): Likewise.
20559         * modules/vasprintf-posix-tests (Files): Likewise.
20560         * modules/vasprintf-tests (Files): Likewise.
20561         * modules/vdprintf-posix-tests (Files): Likewise.
20562         * modules/vfprintf-posix-tests (Files): Likewise.
20563         * modules/vprintf-posix-tests (Files): Likewise.
20564         * modules/vsnprintf-posix-tests (Files): Likewise.
20565         * modules/vsnprintf-tests (Files): Likewise.
20566         * modules/vsprintf-posix-tests (Files): Likewise.
20567         * modules/wcrtomb-tests (Files): Likewise.
20568         * modules/wcsnrtombs-tests (Files): Likewise.
20569         * modules/wcsrtombs-tests (Files): Likewise.
20570         * modules/wctype-tests (Files): Likewise.
20571         * modules/wcwidth-tests (Files): Likewise.
20572         * modules/xmemdup0-tests (Files): Likewise.
20573         * modules/xprintf-posix-tests (Files): Likewise.
20574         * modules/xvasprintf-tests (Files): Likewise.
20575
20576 2009-12-24  Eric Blake  <ebb9@byu.net>
20577
20578         test-nanosleep: fix typo
20579         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20580         patch.
20581         Reported by Bruno Haible.
20582
20583 2009-12-24  Bruno Haible  <bruno@clisp.org>
20584
20585         Reduce namespace pollution on glibc systems.
20586         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20587         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20588         systems.
20589         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20590         <getopt.h> on glibc systems.
20591         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20592         systems.
20593         * lib/fcntl.c: Include <unistd.h> here instead.
20594
20595 2009-12-24  Bruno Haible  <bruno@clisp.org>
20596
20597         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20598
20599 2009-12-24  Eric Blake  <ebb9@byu.net>
20600
20601         tests: add signature checks
20602         * tests/signature.h (SIGNATURE_CHECK): New file.
20603         * modules/atexit-tests (Files): Use it.
20604         * modules/btowc-tests (Files): Likewise.
20605         * modules/canonicalize-lgpl-tests (Files): Likewise.
20606         * modules/ceilf-tests (Files): Likewise.
20607         * modules/ceill-tests (Files): Likewise.
20608         * modules/chown-tests (Files): Likewise.
20609         * modules/dprintf-posix-tests (Files): Likewise.
20610         * modules/dup2-tests (Files): Likewise.
20611         * modules/dup3-tests (Files): Likewise.
20612         * modules/duplocale-tests (Files): Likewise.
20613         * modules/fchdir-tests (Files): Likewise.
20614         * modules/fcntl-tests (Files): Likewise.
20615         * modules/fdopendir-tests (Files): Likewise.
20616         * modules/fflush-tests (Files): Likewise.
20617         * modules/flock-tests (Files): Likewise.
20618         * modules/floorf-tests (Files): Likewise.
20619         * modules/floorl-tests (Files): Likewise.
20620         * modules/fnmatch-tests (Files): Likewise.
20621         * modules/fopen-tests (Files): Likewise.
20622         * modules/fprintf-posix-tests (Files): Likewise.
20623         * modules/freopen-tests (Files): Likewise.
20624         * modules/frexp-nolibm-tests (Files): Likewise.
20625         * modules/frexp-tests (Files): Likewise.
20626         * modules/frexpl-nolibm-tests (Files): Likewise.
20627         * modules/frexpl-tests (Files): Likewise.
20628         * modules/fseek-tests (Files): Likewise.
20629         * modules/fseeko-tests (Files): Likewise.
20630         * modules/fsync-tests (Files): Likewise.
20631         * modules/ftell-tests (Files): Likewise.
20632         * modules/ftello-tests (Files): Likewise.
20633         * modules/futimens-tests (Files): Likewise.
20634         * modules/getaddrinfo-tests (Files): Likewise.
20635         * modules/getcwd-tests (Files): Likewise.
20636         * modules/getdelim-tests (Files): Likewise.
20637         * modules/getdtablesize-tests (Files): Likewise.
20638         * modules/getgroups-tests (Files): Likewise.
20639         * modules/gethostname-tests (Files): Likewise.
20640         * modules/getline-tests (Files): Likewise.
20641         * modules/getopt-posix-tests (Files): Likewise.
20642         * modules/gettimeofday-tests (Files): Likewise.
20643         * modules/glob-tests (Files): Likewise.
20644         * modules/iconv-tests (Files): Likewise.
20645         * modules/inet_ntop-tests (Files): Likewise.
20646         * modules/inet_pton-tests (Files): Likewise.
20647         * modules/isblank-tests (Files): Likewise.
20648         * modules/lchown-tests (Files): Likewise.
20649         * modules/ldexpl-tests (Files): Likewise.
20650         * modules/link-tests (Files): Likewise.
20651         * modules/linkat-tests (Files): Likewise.
20652         * modules/lseek-tests (Files): Likewise.
20653         * modules/lstat-tests (Files): Likewise.
20654         * modules/mbrtowc-tests (Files): Likewise.
20655         * modules/mbsinit-tests (Files): Likewise.
20656         * modules/mbsnrtowcs-tests (Files): Likewise.
20657         * modules/mbsrtowcs-tests (Files): Likewise.
20658         * modules/memchr-tests (Files): Likewise.
20659         * modules/memcmp-tests (Files): Likewise.
20660         * modules/memmem-tests (Files): Likewise.
20661         * modules/memrchr-tests (Files): Likewise.
20662         * modules/mkdir-tests (Files): Likewise.
20663         * modules/mkfifo-tests (Files): Likewise.
20664         * modules/mkfifoat-tests (Files): Likewise.
20665         * modules/mknod-tests (Files): Likewise.
20666         * modules/nanosleep-tests (Files): Likewise.
20667         * modules/nl_langinfo-tests (Files): Likewise.
20668         * modules/obstack-printf-tests (Files): Likewise.
20669         * modules/open-tests (Files): Likewise.
20670         * modules/openat-tests (Files): Likewise.
20671         * modules/perror-tests (Files): Likewise.
20672         * modules/pipe2-tests (Files): Likewise.
20673         * modules/poll-tests (Files): Likewise.
20674         * modules/popen-tests (Files): Likewise.
20675         * modules/posix_spawn-tests (Files): Likewise.
20676         * modules/posix_spawnp-tests (Files): Likewise.
20677         * modules/pread-tests (Files): Likewise.
20678         * modules/printf-posix-tests (Files): Likewise.
20679         * modules/pty-tests (Files): Likewise.
20680         * modules/random_r-tests (Files): Likewise.
20681         * modules/rawmemchr-tests (Files): Likewise.
20682         * modules/readlink-tests (Files): Likewise.
20683         * modules/remove-tests (Files): Likewise.
20684         * modules/rename-tests (Files): Likewise.
20685         * modules/renameat-tests (Files): Likewise.
20686         * modules/rmdir-tests (Files): Likewise.
20687         * modules/round-tests (Files): Likewise.
20688         * modules/roundf-tests (Files): Likewise.
20689         * modules/roundl-tests (Files): Likewise.
20690         * modules/select-tests (Files): Likewise.
20691         * modules/setenv-tests (Files): Likewise.
20692         * modules/sigaction-tests (Files): Likewise.
20693         * modules/sleep-tests (Files): Likewise.
20694         * modules/snprintf-posix-tests (Files): Likewise.
20695         * modules/snprintf-tests (Files): Likewise.
20696         * modules/sprintf-posix-tests (Files): Likewise.
20697         * modules/stat-tests (Files): Likewise.
20698         * modules/strcasestr-tests (Files): Likewise.
20699         * modules/strchrnul-tests (Files): Likewise.
20700         * modules/strerror-tests (Files): Likewise.
20701         * modules/strsignal-tests (Files): Likewise.
20702         * modules/strstr-tests (Files): Likewise.
20703         * modules/strtod-tests (Files): Likewise.
20704         * modules/strverscmp-tests (Files): Likewise.
20705         * modules/symlink-tests (Files): Likewise.
20706         * modules/symlinkat-tests (Files): Likewise.
20707         * modules/times-tests (Files): Likewise.
20708         * modules/trunc-tests (Files): Likewise.
20709         * modules/truncf-tests (Files): Likewise.
20710         * modules/truncl-tests (Files): Likewise.
20711         * modules/tsearch-tests (Files): Likewise.
20712         * modules/uname-tests (Files): Likewise.
20713         * modules/unlink-tests (Files): Likewise.
20714         * modules/unsetenv-tests (Files): Likewise.
20715         * modules/usleep-tests (Files): Likewise.
20716         * modules/utimensat-tests (Files): Likewise.
20717         * modules/vasprintf-tests (Files): Likewise.
20718         * modules/vdprintf-posix-tests (Files): Likewise.
20719         * modules/vfprintf-posix-tests (Files): Likewise.
20720         * modules/vprintf-posix-tests (Files): Likewise.
20721         * modules/vsnprintf-posix-tests (Files): Likewise.
20722         * modules/vsnprintf-tests (Files): Likewise.
20723         * modules/vsprintf-posix-tests (Files): Likewise.
20724         * modules/wcrtomb-tests (Files): Likewise.
20725         * modules/wcsnrtombs-tests (Files): Likewise.
20726         * modules/wcsrtombs-tests (Files): Likewise.
20727         * modules/wcwidth-tests (Files): Likewise.
20728         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20729         * tests/test-isinf.c (isinf): Likewise.
20730         * tests/test-isnan.c (isnan): Likewise.
20731         * tests/test-signbit.c (signbit): Likewise.
20732         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20733         declaration, either as macro or with correct signature.
20734         (select): Ensure function under test is declared with correct
20735         signature in correct header.
20736         * tests/test-atexit.c (atexit): Likewise.
20737         * tests/test-btowc.c (btowc): Likewise.
20738         * tests/test-canonicalize-lgpl.c (realpath)
20739         (canonicalize_file_name): Likewise.
20740         * tests/test-ceilf1.c (ceilf): Likewise.
20741         * tests/test-ceill.c (ceill): Likewise.
20742         * tests/test-chown.c (chown): Likewise.
20743         * tests/test-dprintf-posix.c (dprintf): Likewise.
20744         * tests/test-dup2.c (dup2): Likewise.
20745         * tests/test-dup3.c (dup3): Likewise.
20746         * tests/test-duplocale.c (duplocale): Likewise.
20747         * tests/test-fchdir.c (fchdir): Likewise.
20748         * tests/test-fchownat.c (fchownat): Likewise.
20749         * tests/test-fcntl.c (fcntl): Likewise.
20750         * tests/test-fdopendir.c (fdopendir): Likewise.
20751         * tests/test-fflush.c (fflush): Likewise.
20752         * tests/test-flock.c (flock): Likewise.
20753         * tests/test-floorf1.c (floorf): Likewise.
20754         * tests/test-floorl.c (floorl): Likewise.
20755         * tests/test-fnmatch.c (fnmatch): Likewise.
20756         * tests/test-fopen.c (fopen): Likewise.
20757         * tests/test-fprintf-posix.c (fprintf): Likewise.
20758         * tests/test-freopen.c (freopen): Likewise.
20759         * tests/test-frexp.c (frexp): Likewise.
20760         * tests/test-frexpl.c (frexpl): Likewise.
20761         * tests/test-fseek.c (fseek): Likewise.
20762         * tests/test-fseeko.c (fseeko): Likewise.
20763         * tests/test-fstatat.c (fstatat): Likewise.
20764         * tests/test-fsync.c (fsync): Likewise.
20765         * tests/test-ftell.c (ftell): Likewise.
20766         * tests/test-ftello.c (ftello): Likewise.
20767         * tests/test-futimens.c (futimens): Likewise.
20768         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20769         (gai_strerror): Likewise.
20770         * tests/test-getcwd.c (getcwd): Likewise.
20771         * tests/test-getdelim.c (getdelim): Likewise.
20772         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20773         * tests/test-getgroups.c (getgroups): Likewise.
20774         * tests/test-gethostname.c (gethostname): Likewise.
20775         * tests/test-getline.c (getline): Likewise.
20776         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20777         Likewise.
20778         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20779         * tests/test-glob.c (glob, globfree): Likewise.
20780         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20781         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20782         * tests/test-inet_pton.c (inet_pton): Likewise.
20783         * tests/test-isblank.c (isblank): Likewise.
20784         * tests/test-lchown.c (lchown): Likewise.
20785         * tests/test-ldexpl.c (ldexpl): Likewise.
20786         * tests/test-link.c (link): Likewise.
20787         * tests/test-linkat.c (linkat): Likewise.
20788         * tests/test-lseek.c (lseek): Likewise.
20789         * tests/test-lstat.c (lstat): Likewise.
20790         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20791         * tests/test-mbsinit.c (mbsinit): Likewise.
20792         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20793         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20794         * tests/test-memchr.c (memchr): Likewise.
20795         * tests/test-memcmp.c (memcmp): Likewise.
20796         * tests/test-memmem.c (memmem): Likewise.
20797         * tests/test-memrchr.c (memrchr): Likewise.
20798         * tests/test-mkdir.c (mkdir): Likewise.
20799         * tests/test-mkdirat.c (mkdirat): Likewise.
20800         * tests/test-mkfifo.c (mkfifo): Likewise.
20801         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20802         * tests/test-mknod.c (mknod): Likewise.
20803         * tests/test-nanosleep.c (nanosleep): Likewise.
20804         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20805         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20806         Likewise.
20807         * tests/test-open.c (open): Likewise.
20808         * tests/test-openat.c (openat): Likewise.
20809         * tests/test-perror.c (perror): Likewise.
20810         * tests/test-pipe2.c (pipe2): Likewise.
20811         * tests/test-poll.c (poll): Likewise.
20812         * tests/test-popen.c (popen, pclose): Likewise.
20813         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20814         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20815         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20816         (posix_spawn_file_actions_destroy)
20817         (posix_spawn_file_actions_addclose)
20818         (posix_spawn_file_actions_addopen)
20819         (posix_spawn_file_actions_adddup2): Likewise.
20820         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20821         * tests/test-pread.c (pread): Likewise.
20822         * tests/test-printf-posix.c (printf): Likewise.
20823         * tests/test-pty.c (openpty, forkpty): Likewise.
20824         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20825         (random_r): Likewise.
20826         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20827         * tests/test-readlink.c (readlink): Likewise.
20828         * tests/test-remove.c (remove): Likewise.
20829         * tests/test-rename.c (rename): Likewise.
20830         * tests/test-renameat.c (renameat): Likewise.
20831         * tests/test-rmdir.c (rmdir): Likewise.
20832         * tests/test-round1.c (round): Likewise.
20833         * tests/test-roundf1.c (roundf): Likewise.
20834         * tests/test-roundl.c (roundl): Likewise.
20835         * tests/test-setenv.c (setenv): Likewise.
20836         * tests/test-sigaction.c (sigaction): Likewise.
20837         * tests/test-sleep.c (sleep): Likewise.
20838         * tests/test-snprintf.c (snprintf): Likewise.
20839         * tests/test-sprintf-posix.c (sprintf): Likewise.
20840         * tests/test-stat.c (stat): Likewise.
20841         * tests/test-stpncpy.c (stpncpy): Likewise.
20842         * tests/test-strcasestr.c (strcasestr): Likewise.
20843         * tests/test-strchrnul.c (strchrnul): Likewise.
20844         * tests/test-strerror.c (strerror): Likewise.
20845         * tests/test-strsignal.c (strsignal): Likewise.
20846         * tests/test-strstr.c (strstr): Likewise.
20847         * tests/test-strtod.c (strtod): Likewise.
20848         * tests/test-strverscmp.c (strverscmp): Likewise.
20849         * tests/test-symlink.c (symlink): Likewise.
20850         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20851         * tests/test-times.c (times): Likewise.
20852         * tests/test-trunc1.c (trunc): Likewise.
20853         * tests/test-truncf1.c (truncf): Likewise.
20854         * tests/test-truncl.c (truncl): Likewise.
20855         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20856         Likewise.
20857         * tests/test-uname.c (uname): Likewise.
20858         * tests/test-unlink.c (unlink): Likewise.
20859         * tests/test-unlinkat.c (unlinkat): Likewise.
20860         * tests/test-unsetenv.c (unsetenv): Likewise.
20861         * tests/test-usleep.c (usleep): Likewise.
20862         * tests/test-utimensat.c (utimensat): Likewise.
20863         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20864         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20865         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20866         * tests/test-vprintf-posix.c (vprintf): Likewise.
20867         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20868         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20869         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20870         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20871         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20872         * tests/test-wcwidth.c (wcwidth): Likewise.
20873
20874         build: pull in conditional headers during GNULIB_POSIXCHECK
20875         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20876         definitions from any conditionally-included headers.
20877         * lib/stdlib.in.h (includes): Likewise.
20878         * lib/unistd.in.h (includes): Likewise.
20879
20880 2009-12-24  Bruno Haible  <bruno@clisp.org>
20881
20882         * tests/test-argv-iter.c: Include header file being tested immediately
20883         after config.h.
20884         * tests/test-base64.c: Likewise.
20885         * tests/test-flock.c: Likewise.
20886         * tests/test-fsync.c: Likewise.
20887         * tests/test-getdate.c: Likewise.
20888         * tests/test-getndelim2.c: Likewise.
20889         * tests/test-isfinite.c: Likewise.
20890         * tests/test-isinf.c: Likewise.
20891         * tests/test-strerror.c: Likewise.
20892         * tests/test-strsignal.c: Likewise.
20893
20894 2009-12-23  Eric Blake  <ebb9@byu.net>
20895
20896         unistd: work around cygwin bug
20897         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20898         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20899         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20900
20901 2009-12-23  Bruno Haible  <bruno@clisp.org>
20902
20903         localename: More tests.
20904         * tests/test-localename.c (SIZEOF): New macro.
20905         (categories): New variable.
20906         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20907         test_locale_name_default): Add test w.r.t. thread locale.
20908         (test_locale_name_thread): New function.
20909         (main): Invoke it.
20910
20911         localename: Make aware of thread locale.
20912         * lib/localename.h (gl_locale_name_thread): New declaration.
20913         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20914         behaviour with respect to thread locale.
20915         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20916         <langinfo.h>, glthread/lock.h.
20917         (SIZE_BITS): New macro.
20918         (string_hash): New function.
20919         (struct hash_node): New type.
20920         (HASH_TABLE_SIZE): New macro.
20921         (struniq_hash_table, struniq_lock): New variables.
20922         (struniq): New function.
20923         (gl_locale_name_thread): New function.
20924         (gl_locale_name): Invoke it.
20925         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20926         * modules/localename (Depends-on): Add lock.
20927         Reported by Mike Gran <spk121@yahoo.com>.
20928
20929 2009-12-23  Eric Blake  <ebb9@byu.net>
20930
20931         va-args: new module
20932         * modules/va-args: New file.
20933         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20934         * MODULES.html.sh (Core language properties): Mention it.
20935
20936         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20937         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20938         named alias for __attribute__((__unused__)).
20939         * lib/chown.c: Update client.
20940         * lib/fchmodat.c: Likewise.
20941         * lib/fts.c: Likewise.
20942         * lib/getdate.y: Likewise.
20943         * lib/getgroups.c: Likewise.
20944         * lib/getopt.c: Likewise.
20945         * lib/getugroups.c: Likewise.
20946         * lib/mkdir.c: Likewise.
20947         * lib/mkfifo.c: Likewise.
20948         * lib/mkfifoat.c: Likewise.
20949         * lib/mknod.c: Likewise.
20950         * lib/mknodat.c: Likewise.
20951         * lib/readlink.c: Likewise.
20952         * lib/se-context.in.h: Likewise.
20953         * lib/se-selinux.in.h: Likewise.
20954         * lib/sockets.c: Likewise.
20955         * lib/symlink.c: Likewise.
20956         * lib/symlinkat.c: Likewise.
20957         * lib/unicodeio.c: Likewise.
20958         * lib/unistr.h: Likewise.
20959         * tests/test-areadlink.c: Likewise.
20960         * tests/test-areadlinkat.c: Likewise.
20961         * tests/test-filenamecat.c: Likewise.
20962         * tests/test-fseeko.c: Likewise.
20963         * tests/test-ftello.c: Likewise.
20964         * tests/test-getdate.c: Likewise.
20965         * tests/test-getgroups.c: Likewise.
20966         * tests/test-gethostname.c: Likewise.
20967         * tests/test-quotearg.c: Likewise.
20968         * tests/test-version-etc.c: Likewise.
20969         * tests/test-xalloc-die.c: Likewise.
20970         * tests/test-xfprintf-posix.c: Likewise.
20971         * tests/test-xprintf-posix.c: Likewise.
20972         * tests/test-xvasprintf.c: Likewise.
20973
20974         tests: avoid compiler warnings
20975         * tests/test-fcntl.c (main): Delete unused parameters.
20976         * tests/test-freopen-safer.c (main): Likewise.
20977         * tests/test-xalloc-die.c (main): Mark unused parameters.
20978         * tests/test-fseeko.c (main): Likewise.
20979         * tests/test-ftello.c (main): Likewise.
20980         * tests/test-nanosleep.c (main): Avoid declaration warning.
20981         * tests/test-sleep.c (main): Likewise.
20982         * tests/test-unsetenv.c (main): Silence warning about string
20983         literal.
20984         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20985
20986 2009-12-23  Bruno Haible  <bruno@clisp.org>
20987
20988         * tests/test-localename.c (test_locale_name): New function, extracted
20989         from main. Also test mixed situations.
20990         (test_locale_name_posix, test_locale_name_environ,
20991         test_locale_name_default): New functions.
20992         (main): Invoke them all.
20993         * modules/localename-tests (configure.ac): Test for newlocale.
20994
20995 2009-12-23  Bruno Haible  <bruno@clisp.org>
20996
20997         unistd: Ensure getcwd gets declared before being overridden.
20998         * lib/unistd.in.h: Conditionally include <io.h>.
20999
21000 2009-12-22  Bruno Haible  <bruno@clisp.org>
21001
21002         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21003         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21004         (gl_WCHAR_H): Invoke it.
21005         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21006         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21007         Reported by Karl Berry <karl@freefriends.org>.
21008
21009 2009-12-22  Eric Blake  <ebb9@byu.net>
21010
21011         math, unistd: avoid redundant includes
21012         * lib/math.in.h (isnan): No need to re-include <math.h>.
21013         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21014
21015         getsubopt: work around cygwin bug
21016         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21017         avoid conflicting with system getsubopt.
21018         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21019         bug.
21020
21021         getopt: synchronize from glibc
21022         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21023         parameter order.  Adjust all callers.
21024         (_getopt_internal_r, main): Adjust quoting in error messages.
21025         Drop considerations for outdated POSIX 1003.2 error message.
21026         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21027         callers.
21028         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21029
21030         test-getopt: test stderr behavior
21031         * modules/getopt-posix-tests (Depends-on): Add dup2.
21032         * tests/test-getopt.c (ASSERT): Avoid stderr.
21033         (main): Move stderr to a temporary file.
21034         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21035         Instead, add parameter to inform caller if output occurred.
21036         (test_getopt): Adjust all existing tests to expect silence, and
21037         add new tests of leading ":".
21038         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21039         glibc shortcomings with leading "-:" or "+:" in optstring.
21040         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21041         Likewise.
21042         * doc/posix-functions/getopt.texi (getopt): Likewise.
21043
21044         test-getopt: enhance test
21045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21046         supports optind=0.
21047         * tests/test-getopt.c (OPTIND_MIN): Move...
21048         * tests/test-getopt.h (OPTIND_MIN): ...here.
21049         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21050         Require that optind=0 works, since modern BSD supports it in
21051         addition to optreset, and since coreutils expects it.
21052         (test_getopt_long_only): New test.
21053         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21054         glibc shortcomings with 'W;', and enforcement of optind=0.
21055         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21056         Likewise.
21057
21058 2009-12-21  Bruno Haible  <bruno@clisp.org>
21059
21060         localename: Improvements for MacOS X and Cygwin.
21061         * lib/localename.h (gl_locale_name_environ): New declaration.
21062         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21063         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21064         (gl_locale_name_posix): Invoke it.
21065         (gl_locale_name_default): Add comments. Use Windows native API also on
21066         Cygwin.
21067
21068 2009-12-21  Bruno Haible  <bruno@clisp.org>
21069
21070         Update list of Win32 locale ids.
21071         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21072         (LANG_SAMI): Renamed from LANG_SAAMI.
21073         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21074         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21075         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21076         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21077         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21078         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21079         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21080         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21081         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21082         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21083         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21084         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21085         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21086         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21087         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21088         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21089         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21090         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21091         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21092         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21093         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21094         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21095         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21096         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21097         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21098         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21099         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21100         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21101         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21102         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21103         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21104         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21105         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21106         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21107         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21108         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21109         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21110         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21111         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21112         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21113         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21114         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21115         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21116         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21117         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21118         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21119         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21120         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21121         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21122         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21123         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21124         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21125         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21126         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21127         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21128         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21129         Add more languages and countries for Sami, Sorbian. Add more countries
21130         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21131         for Pashto. Change country for Syriac, Tswana.
21132
21133 2009-12-21  Eric Blake  <ebb9@byu.net>
21134
21135         test-utimens: avoid spurious failure
21136         * tests/test-chown.h (nap): Factor...
21137         * tests/nap.h: ...into new file.
21138         * tests/test-lchown.h (nap): Avoid duplication.
21139         * tests/test-utimens-common.h (nap): Use shared implementation,
21140         necessary on file systems with 1-second resolution.
21141         * modules/chown-tests (Files): Include new file.
21142         * modules/fdutimensat-tests (Files): Likewise.
21143         * modules/futimens-tests (Files): Likewise.
21144         * modules/lchown-tests (Files): Likewise.
21145         * modules/openat-tests (Files): Likewise.
21146         * modules/utimens-tests (Files): Likewise.
21147         * modules/utimensat-tests (Files): Likewise.
21148
21149 2009-12-19  Eric Blake  <ebb9@byu.net>
21150
21151         futimens, utimensat: work around Linux bug
21152         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21153         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21154         * lib/utimensat.c (rpl_utimensat): Work around it.
21155         * lib/futimens.c (rpl_futimens): Adjust comment.
21156
21157         utimens: work around Linux ctime bug
21158         * lib/utimens.c (detect_ctime_bug): New helper function.
21159         (update_timespec): Differentiate between workaround needed for
21160         this bug vs. what is needed for systems that lack utimensat.
21161         (fdutimens, lutimens): Work around bug.
21162
21163         utimens: check for ctime update
21164         * tests/test-utimens-common.h (check_ctime): Define.
21165         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21166         * tests/test-futimens.h (test_futimens): Likewise.
21167         * tests/test-lutimens.h (test_lutimens): Likewise.
21168         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21169         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21170
21171 2009-12-19  Bruno Haible  <bruno@clisp.org>
21172
21173         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21174         * tests/test-dprintf-posix2.sh: New file.
21175         * tests/test-dprintf-posix2.c: New file.
21176         * modules/dprintf-posix-tests (Files): Add them.
21177         (configure.ac): Check for getrlimit and setrlimit.
21178         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21179
21180 2009-12-19  Bruno Haible  <bruno@clisp.org>
21181
21182         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21183         * tests/test-fprintf-posix3.sh: New file.
21184         * tests/test-fprintf-posix3.c: New file.
21185         * modules/fprintf-posix-tests (Files): Add them.
21186         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21187
21188 2009-12-19  Eric Blake  <ebb9@byu.net>
21189
21190         dirfd: fix prototype
21191         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21192         * lib/dirfd.c (dirfd): Likewise.
21193
21194         canonicalize: reduce memory usage
21195         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21196         allocation to size.
21197         Reported by Solar Designer <solar@openwall.com>.
21198
21199 2009-12-19  Bruno Haible  <bruno@clisp.org>
21200
21201         New module attribute 'Applicability'.
21202         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21203         * gnulib-tool: New option --extract-applicability.
21204         (func_usage): Document it.
21205         (sed_extract_prog): Recognize it.
21206         (func_get_applicability): New function.
21207         (func_import): Generalize handling of 'link-warning' module.
21208         * modules/link-warning (Applicability): New section.
21209         * modules/arg-nonnull (Applicability): New section.
21210         Repoted by Simon Josefsson <simon@josefsson.org>.
21211
21212 2009-12-19  Bruno Haible  <bruno@clisp.org>
21213
21214         fflush: tweak
21215         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21216         * lib/fseeko.c (rpl_fseeko): Likewise.
21217
21218 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21219
21220         * lib/gl_list.h: Fix typo in comment.
21221
21222 2009-12-16  Eric Blake  <ebb9@byu.net>
21223
21224         fcntl: use to simplify other modules
21225         * modules/cloexec (Depends-on): Add fcntl.
21226         * modules/fchdir (Depends-on): Likewise.
21227         * modules/fd-safer-flag (Depends-on): Likewise.
21228         * modules/unistd-safer (Depends-on): Likewise.
21229         * modules/dup3 (configure.ac): Set module indicator.
21230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21231         missing.
21232         * lib/fchdir.c (_gl_register_dup): Fix comment.
21233         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21234         * lib/dup-safer.c (dup_safer): Likewise.
21235         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21236         * lib/dup3.c (dup3): Likewise.
21237         * tests/test-fchdir.c (main): Enhance test.
21238         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21239
21240         fcntl: port portions of fcntl to mingw
21241         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21242         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21243         replacement for mingw.
21244         * modules/fcntl (Description): Update.
21245         (Depends-on): Add dup2.
21246         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21247         * modules/fcntl-h (Makefile.am): Substitute it.
21248         * lib/fcntl.in.h (fcntl): Update declaration.
21249         (F_DUPFD, F_GETFD): New macros, when needed.
21250         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21251         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21252         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21253         we now guarantee.
21254
21255         fcntl: work around cygwin bug in F_DUPFD
21256         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21257         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21258         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21259         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21260         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21261
21262         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21263         * modules/fcntl (Files): List new files.
21264         (configure.ac): Run a test.
21265         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21266         * lib/fcntl.c (rpl_fcntl): Likewise.
21267         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21268         (gl_FCNTL_H): Always replace fcntl.h.
21269         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21270         * lib/fcntl.in.h (fcntl): Declare replacement.
21271         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21272         needed, plus a witness.
21273         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21274         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21275         * tests/test-fcntl.c: New file.
21276         * modules/fcntl-tests: Likewise.
21277
21278         binary-io: avoid potential compilation warning
21279         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21280         directives.
21281
21282         fflush: avoid compilation error on NetBSD
21283         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21284         between off_t and fpos_t, since the latter is sometimes a struct.
21285         * lib/fseeko.c (rpl_fseeko): Likewise.
21286         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21287
21288 2009-12-15  Eric Blake  <ebb9@byu.net>
21289
21290         fcntl-h, stdio, sys_ioctl: fix declarations
21291         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21292         function must not take arguments.
21293         * lib/sys_ioctl.in.h (ioctl): Likewise.
21294         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21295         (open): Add a link warning.
21296
21297 2009-12-15  Jim Meyering  <meyering@redhat.com>
21298
21299         areadlink, areadlink-with-size: relax license to LGPLv2+
21300         * modules/areadlink (License): Relax to LGPLv2+.
21301         * modules/areadlink-with-size (License): Likewise.
21302
21303 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21304             Bruno Haible  <bruno@clisp.org>
21305
21306         *printf: Fix memory leak.
21307         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21308         * lib/vfprintf.c (vfprintf): Likewise.
21309         * lib/dprintf.c (dprintf): Likewise.
21310         * lib/vdprintf.c (vdprintf): Likewise.
21311
21312 2009-12-14  Eric Blake  <ebb9@byu.net>
21313
21314         accept4: adjust module dependencies
21315         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21316
21317         utimens: one more try at avoiding compiler warning
21318         * lib/utimens.c (lutimens): Lower scope of result.
21319
21320 2009-12-13  Bruno Haible  <bruno@clisp.org>
21321
21322         Move the malloc checking from module 'list' to new module 'xlist'.
21323         * modules/xlist: New file.
21324         * lib/gl_xlist.h: New file.
21325         * lib/gl_xlist.c: New file.
21326         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21327         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21328         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21329         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21330         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21331         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21332         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21333         gl_sortedlist_nx_add): New declarations.
21334         (struct gl_list_implementation): Rename and change methods accordingly.
21335         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21336         (gl_list_nx_create): Renamed from gl_list_create.
21337         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21338         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21339         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21340         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21341         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21342         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21343         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21344         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21345         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21346         gl_list_create_empty.
21347         (gl_list_nx_create): Renamed from gl_list_create.
21348         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21349         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21350         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21351         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21352         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21353         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21354         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21355         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21356         * lib/gl_array_list.c: Don't include xalloc.h.
21357         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21358         NULL upon out-of-memory.
21359         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21360         out-of-memory.
21361         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21362         Change return type to 'int'.
21363         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21364         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21365         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21366         upon out-of-memory.
21367         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21368         upon out-of-memory.
21369         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21370         upon out-of-memory.
21371         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21372         upon out-of-memory.
21373         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21374         out-of-memory.
21375         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21376         Update.
21377         (gl_array_list_implementation): Update.
21378         * lib/gl_carray_list.c: Don't include xalloc.h.
21379         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21380         Return NULL upon out-of-memory.
21381         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21382         out-of-memory.
21383         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21384         Change return type to 'int'.
21385         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21386         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21387         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21388         upon out-of-memory.
21389         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21390         upon out-of-memory.
21391         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21392         out-of-memory.
21393         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21394         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21395         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21396         Update.
21397         (gl_carray_list_implementation): Update.
21398         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21399         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21400         gl_linked_create_empty. Return NULL upon out-of-memory.
21401         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21402         out-of-memory.
21403         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21404         Change return type to 'int'. Return -1 upon out-of-memory.
21405         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21406         out-of-memory.
21407         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21408         upon out-of-memory.
21409         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21410         upon out-of-memory.
21411         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21412         NULL upon out-of-memory.
21413         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21414         upon out-of-memory.
21415         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21416         out-of-memory.
21417         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21418         Update.
21419         * lib/gl_linked_list.c: Don't include xalloc.h.
21420         (gl_linked_list_implementation): Update.
21421         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21422         (add_to_bucket): Change return type to 'int'.
21423         (gl_linkedhash_list_implementation): Update.
21424         * lib/gl_anytree_list1.h (free_subtree): New function.
21425         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21426         gl_tree_create_empty. Return NULL upon out-of-memory.
21427         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21428         Change return type to 'int'. Return -1 upon out-of-memory.
21429         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21430         out-of-memory.
21431         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21432         (gl_tree_remove_node): New function, moved here from
21433         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21434         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21435         Update.
21436         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21437         malloc, not xmalloc. Return NULL upon out-of-memory.
21438         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21439         out-of-memory.
21440         (gl_tree_remove_node_from_tree): New function, extracted from
21441         gl_tree_remove_node.
21442         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21443         upon out-of-memory.
21444         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21445         out-of-memory.
21446         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21447         upon out-of-memory.
21448         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21449         upon out-of-memory.
21450         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21451         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21452         not xmalloc. Return NULL upon out-of-memory.
21453         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21454         out-of-memory.
21455         (gl_tree_remove_node_from_tree): New function, extracted from
21456         gl_tree_remove_node.
21457         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21458         upon out-of-memory.
21459         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21460         out-of-memory.
21461         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21462         upon out-of-memory.
21463         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21464         upon out-of-memory.
21465         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21466         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21467         gl_anytree_list1.h before gl_anyavltree_list2.h.
21468         (gl_avltree_list_implementation): Update.
21469         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21470         gl_anytree_list1.h before gl_anyavltree_list2.h.
21471         (gl_rbtree_list_implementation): Update.
21472         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21473         Change return type to 'int'. Return -1 upon out-of-memory. Use
21474         __builtin_expect.
21475         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21476         (gl_avltreehash_list_implementation): Update.
21477         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21478         (gl_rbtreehash_list_implementation): Update.
21479         * modules/array-list (Depends-on): Remove xalloc.
21480         * modules/carray-list (Depends-on): Likewise.
21481         * modules/linked-list (Depends-on): Likewise.
21482         * modules/linkedhash-list (Depends-on): Likewise.
21483         * modules/avltree-list (Depends-on): Likewise.
21484         * modules/rbtree-list (Depends-on): Likewise.
21485         * modules/avltreehash-list (Depends-on): Likewise.
21486         * modules/rbtreehash-list (Depends-on): Likewise.
21487
21488         * modules/xsublist: New file.
21489         * lib/gl_xsublist.h: New file.
21490         * lib/gl_xsublist.c: New file.
21491         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21492         (gl_sublist_nx_create): New declaration.
21493         * lib/gl_sublist.c: Don't include xalloc.h.
21494         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21495         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21496         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21497         Change return type to 'int'. Return -1 upon out-of-memory.
21498         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21499         upon out-of-memory.
21500         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21501         NULL upon out-of-memory.
21502         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21503         upon out-of-memory.
21504         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21505         NULL upon out-of-memory.
21506         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21507         NULL upon out-of-memory.
21508         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21509         upon out-of-memory.
21510         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21511         (gl_sublist_list_implementation): Update.
21512         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21513         upon out-of-memory.
21514         * modules/sublist (Depends-on): Remove xalloc.
21515
21516         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21517         * tests/test-carray_list.c: Likewise.
21518         * tests/test-linked_list.c: Likewise.
21519         * tests/test-linkedhash_list.c: Likewise.
21520         * tests/test-avltree_list.c: Likewise.
21521         * tests/test-rbtree_list.c: Likewise.
21522         * tests/test-avltreehash_list.c: Likewise.
21523         * tests/test-rbtreehash_list.c: Likewise.
21524         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21525         * modules/carray-list-tests (Makefile.am): Likewise.
21526         * modules/linked-list-tests (Makefile.am): Likewise.
21527         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21528         * modules/avltree-list-tests (Makefile.am): Likewise.
21529         * modules/rbtree-list-tests (Makefile.am): Likewise.
21530         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21531         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21532
21533         * NEWS: Mention the changes.
21534
21535         * lib/clean-temp.c: Include gl_xlist.h.
21536         * modules/clean-temp (Depends-on): Add xlist.
21537
21538         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21539         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21540
21541         * tests/test-array_oset.c: Include gl_xlist.h.
21542         * modules/array-oset-tests (Depends-on): Add xlist.
21543
21544         Reported by José E. Marchesi <jemarch@gnu.org>.
21545
21546 2009-12-13  Bruno Haible  <bruno@clisp.org>
21547
21548         Move the malloc checking from module 'oset' to new module 'xoset'.
21549         * modules/xoset: New file.
21550         * lib/gl_xoset.h: New file.
21551         * lib/gl_xoset.c: New file.
21552         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21553         declarations.
21554         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21555         (struct gl_oset_implementation): Rename and change methods accordingly.
21556         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21557         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21558         'int'. Mark as __warn_unused_result__.
21559         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21560         gl_oset_create_empty.
21561         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21562         'int'.
21563         * lib/gl_array_oset.c: Don't include xalloc.h.
21564         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21565         malloc, not xmalloc.
21566         (grow): Change return type to 'int'. Don't call xalloc_die.
21567         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21568         to 'int'.
21569         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21570         'int'.
21571         (gl_array_oset_implementation): Update.
21572         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21573         gl_tree_create_empty.
21574         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21575         'int'.
21576         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21577         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21578         xmalloc.
21579         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21580         not xmalloc.
21581         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21582         xmalloc.
21583         (gl_avltree_oset_implementation): Update.
21584         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21585         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21586         xmalloc.
21587         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21588         not xmalloc.
21589         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21590         xmalloc.
21591         (gl_rbtree_oset_implementation): Update.
21592         * modules/array-oset (Depends-on): Remove xalloc.
21593         * modules/avltree-oset (Depends-on): Likewise.
21594         * modules/rbtree-oset (Depends-on): Likewise.
21595         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21596         * tests/test-avltree_oset.c: Likewise.
21597         * tests/test-rbtree_oset.c: Likewise.
21598         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21599         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21600         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21601         * NEWS: Mention the change.
21602
21603 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21604
21605         maint.mk: allow a project to override release-prep commands
21606         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21607         commands into a new rule.
21608         (release-prep): New rule.
21609         (release-prep-hook): New overridable variable.
21610
21611 2009-12-13  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21614
21615 2009-12-13  Jim Meyering  <meyering@redhat.com>
21616
21617         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21618         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21619
21620 2009-12-12  Bruno Haible  <bruno@clisp.org>
21621
21622         duplocale: Tweak.
21623         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21624
21625 2009-12-12  Karl Berry  <karl@gnu.org>
21626
21627         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21628
21629 2009-12-12  Bruno Haible  <bruno@clisp.org>
21630
21631         * m4/po.m4: Undo incorrect untabification.
21632
21633 2009-12-12  Bruno Haible  <bruno@clisp.org>
21634
21635         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21636         * modules/c-strtod (Depends-on): Add locale.
21637         * modules/c-strtold (Depends-on): Likewise.
21638
21639 2009-12-12  Bruno Haible  <bruno@clisp.org>
21640
21641         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21642
21643 2009-12-11  Eric Blake  <ebb9@byu.net>
21644
21645         setenv: relax requirement in light of POSIX ruling
21646         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21647         not NULL.
21648         * tests/test-setenv.c (main): Relax test.
21649         * tests/test-unsetenv.c (main): Likewise.
21650         * doc/posix-functions/setenv.texi (setenv): Document this.
21651         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21652
21653 2009-12-11  Bruno Haible  <bruno@clisp.org>
21654
21655         New module 'fd-safer-flag'.
21656         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21657         * lib/dup-safer.c (dup_safer_flag): Remove function.
21658         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21659         * lib/fd-safer.c (fd_safer_flag): Remove function.
21660         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21661         * modules/cloexec (configure.ac): Drop indicator macro.
21662         * modules/fd-safer-flag: New file.
21663         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21664         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21665         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21666
21667 2009-12-11  Bruno Haible  <bruno@clisp.org>
21668
21669         Tests for module 'nl_langinfo'.
21670         * modules/nl_langinfo-tests: New file.
21671         * tests/test-nl_langinfo.sh: New file.
21672         * tests/test-nl_langinfo.c: New file.
21673
21674         New module 'nl_langinfo'.
21675         * lib/nl_langinfo.c: New file.
21676         * m4/nl_langinfo.m4: New file.
21677         * modules/nl_langinfo: New file.
21678         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21679
21680 2009-12-11  Bruno Haible  <bruno@clisp.org>
21681
21682         Tests for module 'langinfo'.
21683         * modules/langinfo-tests: New file.
21684         * tests/test-langinfo.c: New file.
21685
21686         New module 'langinfo'.
21687         * lib/langinfo.in.h: New file.
21688         * m4/langinfo_h.m4: New file.
21689         * modules/langinfo: New file.
21690         * doc/posix-headers/langinfo.texi: Mention the new module.
21691
21692 2009-12-11  Bruno Haible  <bruno@clisp.org>
21693
21694         * lib/config.charset: Untabify.
21695
21696 2009-12-11  Bruno Haible  <bruno@clisp.org>
21697
21698         * modules/unistd-safer (configure.ac): Drop indicator macro.
21699
21700 2009-12-11  Bruno Haible  <bruno@clisp.org>
21701
21702         Move pipe2-safer code to its own file.
21703         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21704         * lib/pipe-safer.c (pipe2_safer): Remove function.
21705         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21706         (Makefile.am): Add it to lib_SOURCES.
21707
21708 2009-12-10  Bruno Haible  <bruno@clisp.org>
21709
21710         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21711
21712 2009-12-10  Bruno Haible  <bruno@clisp.org>
21713
21714         Declare which arguments expect non-NULL values, for GCC and clang.
21715         * build-aux/arg-nonnull.h: New file.
21716         * modules/arg-nonnull: New file.
21717         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21718         (inet_ntop, inet_pton): Use it.
21719         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21720         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21721         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21722         (open, openat): Use it.
21723         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21724         (fnmatch): Use it.
21725         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21726         (getopt, getopt_long, getopt_long_only): Use it.
21727         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21728         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21729         Use it.
21730         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21731         (iconv_open): Use it.
21732         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21733         (strtoimax, strtoumax): Use it.
21734         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21735         (duplocale): Use it.
21736         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21737         (frexp, frexpl): Use it.
21738         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21739         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21740         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21741         (tsearch, tfind, tdelete, twalk): Use it.
21742         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21743         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21744         sigpending): Use it.
21745         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21746         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21747         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21748         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21749         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21750         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21751         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21752         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21753         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21754         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21755         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21756         Use it.
21757         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21758         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21759         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21760         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21761         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21762         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21763         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21764         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21765         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21766         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21767         strtoull, unsetenv): Use it.
21768         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21769         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21770         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21771         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21772         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21773         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21774         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21775         (strcasecmp, strncasecmp): Use it.
21776         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21777         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21778         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21779         rpl_setsockopt): Use it.
21780         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21781         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21782         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21783         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21784         (gettimeofday): Use it.
21785         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21786         (times): Use it.
21787         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21788         (uname): Use it.
21789         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21790         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21791         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21792         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21793         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21794         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21795         unlinkat, write): Use it.
21796         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21797         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21798         * lib/argv-iter.h: Include arg-nonnull.h.
21799         (_ATTRIBUTE_NONNULL_): Remove macro.
21800         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21801         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21802         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21803         optimization.
21804         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21805         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21806         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21807         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21808         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21809         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21810         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21811         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21812         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21813         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21814         * modules/dirent (Depends-on): Add arg-nonnull.
21815         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21816         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21817         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21818         * modules/fnmatch (Depends-on): Add arg-nonnull.
21819         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21820         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21821         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21822         * modules/glob (Depends-on): Add arg-nonnull.
21823         (Makefile.am): Insert arg-nonnull.h into glob.h.
21824         * modules/iconv_open (Depends-on): Add arg-nonnull.
21825         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21826         * modules/inttypes (Depends-on): Add arg-nonnull.
21827         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21828         * modules/locale (Depends-on): Add arg-nonnull.
21829         (Makefile.am): Insert arg-nonnull.h into locale.h.
21830         * modules/math (Depends-on): Add arg-nonnull.
21831         (Makefile.am): Insert arg-nonnull.h into math.h.
21832         * modules/netdb (Depends-on): Add arg-nonnull.
21833         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21834         * modules/search (Depends-on): Add arg-nonnull.
21835         (Makefile.am): Insert arg-nonnull.h into search.h.
21836         * modules/signal (Depends-on): Add arg-nonnull.
21837         (Makefile.am): Insert arg-nonnull.h into signal.h.
21838         * modules/spawn (Depends-on): Add arg-nonnull.
21839         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21840         * modules/stdio (Depends-on): Add arg-nonnull.
21841         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21842         * modules/stdlib (Depends-on): Add arg-nonnull.
21843         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21844         * modules/string (Depends-on): Add arg-nonnull.
21845         (Makefile.am): Insert arg-nonnull.h into string.h.
21846         * modules/strings (Depends-on): Add arg-nonnull.
21847         (Makefile.am): Insert arg-nonnull.h into strings.h.
21848         * modules/sys_socket (Depends-on): Add arg-nonnull.
21849         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21850         * modules/sys_stat (Depends-on): Add arg-nonnull.
21851         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21852         * modules/sys_time (Depends-on): Add arg-nonnull.
21853         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21854         * modules/sys_times (Depends-on): Add arg-nonnull.
21855         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21856         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21857         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21858         * modules/time (Depends-on): Add arg-nonnull.
21859         (Makefile.am): Insert arg-nonnull.h into time.h.
21860         * modules/unistd (Depends-on): Add arg-nonnull.
21861         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21862         * modules/wchar (Depends-on): Add arg-nonnull.
21863         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21864         * modules/argv-iter (Depends-on): Add arg-nonnull.
21865         * tests/test-canonicalize.c (null_ptr): New function.
21866         (main): Use it.
21867         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21868         (main): Use it.
21869         * tests/test-memmem.c (null_ptr): New function.
21870         (main): Use it.
21871         Reported by Jim Meyering.
21872
21873 2009-12-10  Bruno Haible  <bruno@clisp.org>
21874
21875         Use spaces for indentation, not tabs.
21876         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21877         * m4/*.m4: Untabify.
21878         * build-aux/*.h: Untabify.
21879         * tests/**/*.[hc]: Untabify.
21880         * README: New section "Indent with spaces, not TABs", based on
21881         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21882         * NEWS: Mention the change.
21883
21884 2009-12-10  Bruno Haible  <bruno@clisp.org>
21885
21886         pty test: Fix link error.
21887         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21888         test_pty_LDADD.
21889
21890 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21891
21892         * modules/pty: New file.
21893         * modules/pty-tests: New file.
21894         * m4/pty.m4: New file.
21895         * tests/test-pty.c: New file.
21896         * doc/glibc-headers/pty.texi: Modified.
21897         * doc/glibc-functions/forkpty.texi: Modified.
21898         * doc/glibc-functions/openpty.texi: Modified.
21899
21900 2009-12-10  Bruno Haible  <bruno@clisp.org>
21901
21902         Avoid syntax error in C++ mode.
21903         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21904
21905 2009-12-10  Bruno Haible  <bruno@clisp.org>
21906
21907         Use sed with option -e.
21908         * gnulib-tool (func_version, func_emit_copyright_notice,
21909         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21910         option -e to sed.
21911         * modules/link-warning (Makefile.am): Likewise.
21912
21913 2009-12-10  Jim Meyering  <meyering@redhat.com>
21914
21915         mgetgroups: do not write bytes beyond end of malloc'd buffer
21916         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21917         username, we call getgroups with a one-element-shorter buffer,
21918         but still told it the length was original, max_n_groups.
21919
21920 2009-12-09  Eric Blake  <ebb9@byu.net>
21921
21922         cloexec: relax license
21923         * modules/cloexec (Maintainer): Add myself.
21924         (License): Use LGPL, not GPL.
21925
21926         link-warning: optimize generation
21927         * modules/link-warning (Makefile.am): Reduce process usage.
21928
21929 2009-12-09  Bruno Haible  <bruno@clisp.org>
21930
21931         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21932         workaround was added on 2009-11-17.
21933
21934 2009-12-09  Jim Meyering  <meyering@redhat.com>
21935             Bruno Haible  <bruno@clisp.org>
21936
21937         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21938         * modules/link-warning (Makefile.am): Make the comment-removing sed
21939         command more robust in the face of bootstrap-prepended comment lines.
21940
21941 2009-12-09  Bruno Haible  <bruno@clisp.org>
21942
21943         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21944         most one group.
21945
21946 2009-12-09  Simon Josefsson <simon@josefsson.org>
21947             Bruno Haible  <bruno@clisp.org>
21948
21949         * build-aux/link-warning.h: Add copyright notice.
21950         * modules/link-warning (Makefile.am): Generate link-warning.h from
21951         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21952         * NEWS: Mention change in link-warning module.
21953         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21954         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21955         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21956         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21957         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21958         * modules/math (Makefile.am): Add dependency to math.h.
21959         * modules/search (Makefile.am): Add dependency to search.h.
21960         * modules/signal (Makefile.am): Add dependency to signal.h.
21961         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21962         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21963         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21964         * modules/string (Makefile.am): Add dependency to string.h.
21965         * modules/strings (Makefile.am): Add dependency to strings.h.
21966         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21967         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21968         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21969         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21970         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21971         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21972         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21973         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21974         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21975
21976 2009-12-09  Bruno Haible  <bruno@clisp.org>
21977
21978         fchdir: Optimize away rpl_fstat when possible.
21979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21980         REPLACE_OPEN_DIRECTORY.
21981         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21982
21983 2009-12-09  Bruno Haible  <bruno@clisp.org>
21984
21985         * lib/fchdir.c: Update comment.
21986
21987 2009-12-09  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21990
21991 2009-12-08  Eric Blake  <ebb9@byu.net>
21992
21993         fchdir: avoid memory leak on re-registration.
21994         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21995
21996 2009-12-08  Jim Meyering  <meyering@redhat.com>
21997
21998         init.sh: avoid Solaris 10 /bin/sh portability problem
21999         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22000         sourced script:
22001           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22002           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22003           bar
22004         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22005         and two tests used that idiom.
22006         * tests/init.sh: Update suggested usage comments.
22007         (path_prepend_): New function, to be used in place
22008         of the --src-path=DIR option.
22009         (setup_): Move PATH-prepending code into path_prepend_.
22010         * tests/test-pread.sh: Adapt to new usage.
22011         * tests/test-xalloc-die.sh: Likewise.
22012
22013 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22014
22015         * doc/gnulib.texi (Glibc pty.h): Add.
22016         * doc/glibc-functions/forkpty.texi: Add.
22017         * doc/glibc-functions/openpty.texi: Add.
22018         Suggested by Bruno Haible.
22019
22020 2009-12-08  Eric Blake  <ebb9@byu.net>
22021
22022         fchdir: fix logic bugs
22023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22024         * tests/test-fchdir.c (main): Enhance test.
22025         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22026         is in use.
22027
22028         dup2: fix logic bugs
22029         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22030         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22031         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22032         exists.
22033         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22034
22035 2009-12-07  Eric Blake  <ebb9@byu.net>
22036
22037         unlink: fix m4 detection
22038         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22039
22040         unistd-safer: add unit test
22041         * modules/unistd-safer-tests: New file.
22042         * tests/test-dup-safer.c: Likewise.
22043         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22044         * tests/test-dup2.c (setmode): Likewise.
22045         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22046
22047         cloexec: preserve text vs. binary across dup_cloexec
22048         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22049         mode.
22050         * modules/dup2-tests (Depends-on): Add binary-io.
22051         * modules/cloexec-tests (Depends-on): Likewise.
22052         * tests/test-dup2.c (setmode, is_mode): New helpers.
22053         (main): Add tests that translation mode is preserved.
22054         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22055         Reported by Bruno Haible.
22056
22057         mgetgroups: reduce duplicate listings
22058         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22059         resulting array.
22060         * tests/test-chown.h (test_chown): Simplify client.
22061         * tests/test-lchown.h (test_lchown): Likewise.
22062
22063 2009-12-06  Bruno Haible  <bruno@clisp.org>
22064
22065         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22066         value.
22067
22068 2009-12-06  Bruno Haible  <bruno@clisp.org>
22069
22070         * lib/progname.c: Include stdio.h, stdlib.h.
22071         (set_program_name): Reject a NULL argument.
22072
22073 2009-12-05  Eric Blake  <ebb9@byu.net>
22074
22075         pipe2-safer: new module
22076         * modules/pipe2-safer: New file.
22077         * lib/unistd-safer.h (pipe2_safer): New prototype.
22078         * lib/unistd--.h (pipe2): New wrapper.
22079         * lib/pipe-safer.c (pipe2_safer): New function.
22080         * modules/pipe (Depends-on): Add pipe2-safer.
22081         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22082
22083         stdlib-safer: preserve cloexec flag for mkostemp[s]
22084         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22085         fd_safer_flag.
22086
22087         unistd-safer: allow preservation of cloexec status via flag
22088         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22089         prototypes.
22090         * lib/dup-safer.c (dup_safer_flag): New function.
22091         * lib/fd-safer.c (fd_safer_flag): Likewise.
22092         * modules/cloexec (configure.ac): Set witness.
22093
22094         test-dup2: enhance test
22095         * modules/dup2-tests (Depends-on): Add cloexec.
22096         * tests/test-dup2.c (main): Enhance test.
22097
22098         cloexec: add dup_cloexec
22099         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22100         header and comments.
22101         * lib/cloexec.c (set_cloexec_flag): Add comments.
22102         (dup_cloexec): New function, with mingw implementation borrowed
22103         from...
22104         * lib/w32spawn.h (dup_noinherit): ...here.
22105         * modules/execute (Depends-on): Add cloexec.
22106         * modules/pipe (Depends-on): Likewise.
22107         * modules/cloexec (Depends-on): Add dup2.
22108         * modules/cloexec-tests (Files): New file.
22109         * tests/test-cloexec.c: Likewise.
22110
22111         test-xalloc-die: fix test for mingw
22112         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22113         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22114         directory and .exe suffix off argv[0] output.
22115
22116         test-fseeko: fix test for mingw
22117         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22118         than undefining fseek, so test will pass on mingw.
22119
22120 2009-12-05  Bruno Haible  <bruno@clisp.org>
22121
22122         * lib/progname.h (set_program_name): Clarify specification.
22123         * lib/progname.c (set_program_name): Likewise.
22124         Reported by Jim Meyering.
22125
22126 2009-12-05  Jim Meyering  <meyering@redhat.com>
22127
22128         maint.mk: backslash-escape parens in default regexp
22129         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22130         backslash-escape the literal parentheses.
22131
22132         maint.mk: news-date-check: use grep -E
22133         * top/maint.mk (today): Define a Make variable, not a...
22134         (news-date-check): ...shell variable.
22135         (news-date-regexp): Use the Make variable.
22136         Use grep's -E option.  Change the failing diagnostic to mention
22137         the variable, $(news-date-regexp).
22138
22139 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22140
22141         maintainer-makefile: allow customization of NEWS entry format
22142         * top/maint.mk (news-date-regexp): New overridable variable.
22143         (news-date-check): Use it.
22144
22145 2009-12-04  Eric Blake  <ebb9@byu.net>
22146
22147         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22148         * lib/mgetgroups.h (xgetgroups): New prototype.
22149         * lib/mgetgroups.c (xgetgroups): New wrapper.
22150         (mgetgroups): Handle ENOSYS.
22151         * modules/mgetgroups (Depends-on): Add realloc.
22152         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22153
22154         mgetgroups: avoid argument promotion issues with -1
22155         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22156         for invalid gid_t.
22157         * tests/test-chown.h (getegid, test_chown): Likewise.
22158         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22159
22160 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22161
22162         exclude: Fix header file problems.
22163         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22164
22165 2009-12-01  Jim Meyering  <meyering@redhat.com>
22166
22167         fts: fts_open: do not let an empty string cause immediate failure
22168         This is required in support of GNU rm, for which the command
22169         "rm A '' B" must process and remove both A and B, in spite of
22170         the empty string argument.
22171         * lib/fts.c (fts_open): Do not let the presence of an empty string
22172         cause fts_open to fail immediately.  Most fts-using tools must be
22173         able to process all arguments, in order, and can be expected to
22174         diagnose such arguments themselves.
22175
22176 2009-11-30  Eric Blake  <ebb9@byu.net>
22177
22178         utimens: fix compilation error
22179         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22180         Declare variable at right scope.
22181
22182 2009-11-29  Jim Meyering  <meyering@redhat.com>
22183
22184         bootstrap: handle perl-5.11's changed --version output
22185         * build-aux/bootstrap (get_version): Handle perl separately,
22186         since perl-5.11's --version output is different.
22187
22188 2009-11-28  Jim Meyering  <meyering@redhat.com>
22189
22190         userspec: depend on the inttostr module, too
22191         * modules/userspec (Depends-on): Add inttostr.
22192
22193         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22194         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22195         number of MAXUID when it evaluates to (uid_t) -1.
22196         Likewise for group ID.  Reported by Matt McCutchen in
22197         <http://savannah.gnu.org/bugs/?28113>
22198
22199         userspec: reformat to use spaces, not TABs
22200         * lib/userspec.c: Expand TABs to spaces.
22201         Add Emacs' "indent-tabs-mode: nil" hint.
22202
22203 2009-11-27  Eric Blake  <ebb9@byu.net>
22204
22205         getopt-gnu: flush out another BSD bug
22206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22207         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22208         flush out BSD bug.
22209         * tests/test-getopt.h (test_getopt): End lists with NULL.
22210         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22211         (test_getopt_long_posix): Enhance test.
22212         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22213         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22214         getopt-gnu.
22215         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22216         Likewise.
22217
22218 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22219
22220         * modules/idpriv-droptemp-tests (Notice): Fix text.
22221
22222 2009-11-27  Jim Meyering  <meyering@redhat.com>
22223
22224         test-xalloc-die: avoid spurious failure due to libtool argv difference
22225         In a libtool-enabled project, this test would fail due to a difference
22226         in the emitted program name, e.g.,
22227         -test-xalloc-die: memory exhausted
22228         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22229         Use program to avoid that.
22230         * modules/xalloc-die-tests (Depends-on): Add progname.
22231         * tests/test-xalloc-die.c: Include progname.h".
22232         (program_name): Remove decl.
22233         (main): Call set_program_name.
22234         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22235
22236 2009-11-26  Richard Jones  <rjones@redhat.com>
22237
22238         w32sock: leave win32 error in place.
22239         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22240
22241 2009-11-26  Eric Blake  <ebb9@byu.net>
22242
22243         init.sh: suggest to use skip_ and fail_ functions in comments
22244         * tests/init.sh: Add a sentence.
22245
22246 2009-11-25  Bruno Haible  <bruno@clisp.org>
22247
22248         init.sh: add documentation in comments
22249         * tests/init.sh: Add some developer and user documentation.
22250
22251 2009-11-26  Jim Meyering  <meyering@redhat.com>
22252
22253         init.sh: accommodate even those who specify bogus srcdir manually
22254         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22255         configure-time tests to be sanitized, so that there is no need to
22256         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22257         (with no double quotes) suffices.  However, since tests may be
22258         invoked manually, and since you may explicitly set srcdir to the
22259         name of a directory containing spaces, do quote its uses here.
22260         * tests/test-pread.sh: Likewise.
22261         Suggested by Bruno Haible.
22262
22263         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22264         * tests/test-pread.sh: Write no data into the pipe, because
22265         test-pread actually reads none.  This avoids a diagnostic,
22266         "bash: echo: write error: Broken pipe", that arises in the unusual
22267         event something is ignoring SIGPIPE, and might be interpreted
22268         as some sort of failure.  Reported by Bruno Haible.
22269
22270 2009-11-25  Jim Meyering  <meyering@redhat.com>
22271
22272         test-pread: cover failure with ESPIPE and EINVAL
22273         * tests/test-pread.c (main): Test for failure, too.
22274         * tests/test-pread.sh: Invoke with stdin on a pipe.
22275         Suggested by Eric Blake.
22276
22277         pread: improvement and fix
22278         * modules/pread (Depends-on): Depend on lseek, for portability to
22279         e.g., mingw.  Suggested by Eric Blake.
22280         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22281
22282         unistd.in.h: correct declaration of pread
22283         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22284         Reported by Richard W.M. Jones.
22285
22286         test-pread.sh: distribute the test script
22287         * modules/pread-tests (Files): Include test-pread.sh.
22288
22289         test-pread.sh: clean up
22290         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22291         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22292         That is unnecessary, since it's always ".".
22293         Suggestion from Eric Blake.
22294
22295         test-pread.sh: make executable
22296         * tests/test-pread.sh: Set executable bit.
22297         Reported by Eric Blake.
22298
22299         correct typo in test-pread.sh
22300         * tests/test-pread.sh: Add #! line.
22301
22302         test pread
22303         * tests/test-pread.c: New file.
22304         * tests/test-pread.sh: Likewise.
22305         * modules/pread-tests: Likewise.
22306
22307         pread: new module
22308         * modules/pread: New file.
22309         * lib/unistd.in.h (pread): Define/declare.
22310         * lib/pread.c (pread): New file.
22311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22312         * modules/unistd (Makefile.am): Substitute witnesses.
22313         * doc/posix-functions/pread.texi (pread): Update.
22314         * MODULES.html.sh: Add pread.
22315
22316 2009-11-25  Jim Meyering  <meyering@redhat.com>
22317
22318         tests/init.sh: new file to be used via most *.sh tests
22319         * tests/init.sh: New file.
22320
22321 2009-11-25  Eric Blake  <ebb9@byu.net>
22322
22323         utimens: work around older Linux failure with symlinks
22324         * lib/utimens.c (lutimensat_works_really): New variable.
22325         (fdutimens, lutimens): Use it to manage kernels that support
22326         nanosecond times on files, but not on symlinks.
22327         Reported by OndÅ™ej Vašík.
22328
22329         utimes: fix configure grammar
22330         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22331
22332 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22333
22334         regex: Fix fastmap for multibyte character ranges.
22335         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22336         characters when a multibyte character range is included.
22337
22338 2009-11-22  Andy Wingo  <wingo@pobox.com>
22339
22340         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22341         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22342
22343 2009-11-24  Bruno Haible  <bruno@clisp.org>
22344
22345         doc: Most *_l functions exist in MacOS X 10.5.
22346         * doc/posix-functions/duplocale.texi: Update platforms list.
22347         * doc/posix-functions/freelocale.texi: Likewise.
22348         * doc/posix-functions/newlocale.texi: Likewise.
22349         * doc/posix-functions/uselocale.texi: Likewise.
22350         * doc/posix-functions/isalnum_l.texi: Likewise.
22351         * doc/posix-functions/isalpha_l.texi: Likewise.
22352         * doc/posix-functions/isblank_l.texi: Likewise.
22353         * doc/posix-functions/iscntrl_l.texi: Likewise.
22354         * doc/posix-functions/isdigit_l.texi: Likewise.
22355         * doc/posix-functions/isgraph_l.texi: Likewise.
22356         * doc/posix-functions/islower_l.texi: Likewise.
22357         * doc/posix-functions/isprint_l.texi: Likewise.
22358         * doc/posix-functions/ispunct_l.texi: Likewise.
22359         * doc/posix-functions/isspace_l.texi: Likewise.
22360         * doc/posix-functions/isupper_l.texi: Likewise.
22361         * doc/posix-functions/iswalnum_l.texi: Likewise.
22362         * doc/posix-functions/iswalpha_l.texi: Likewise.
22363         * doc/posix-functions/iswblank_l.texi: Likewise.
22364         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22365         * doc/posix-functions/iswctype_l.texi: Likewise.
22366         * doc/posix-functions/iswdigit_l.texi: Likewise.
22367         * doc/posix-functions/iswgraph_l.texi: Likewise.
22368         * doc/posix-functions/iswlower_l.texi: Likewise.
22369         * doc/posix-functions/iswprint_l.texi: Likewise.
22370         * doc/posix-functions/iswpunct_l.texi: Likewise.
22371         * doc/posix-functions/iswspace_l.texi: Likewise.
22372         * doc/posix-functions/iswupper_l.texi: Likewise.
22373         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22374         * doc/posix-functions/isxdigit_l.texi: Likewise.
22375         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22376         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22377         * doc/posix-functions/strcoll_l.texi: Likewise.
22378         * doc/posix-functions/strfmon_l.texi: Likewise.
22379         * doc/posix-functions/strftime_l.texi: Likewise.
22380         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22381         * doc/posix-functions/strxfrm_l.texi: Likewise.
22382         * doc/posix-functions/tolower_l.texi: Likewise.
22383         * doc/posix-functions/toupper_l.texi: Likewise.
22384         * doc/posix-functions/towctrans_l.texi: Likewise.
22385         * doc/posix-functions/towlower_l.texi: Likewise.
22386         * doc/posix-functions/towupper_l.texi: Likewise.
22387         * doc/posix-functions/wcscoll_l.texi: Likewise.
22388         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22389         * doc/posix-functions/wctrans_l.texi: Likewise.
22390         * doc/posix-functions/wctype_l.texi: Likewise.
22391         * doc/glibc-functions/strptime_l.texi: Likewise.
22392         * doc/glibc-functions/strtod_l.texi: Likewise.
22393         * doc/glibc-functions/strtof_l.texi: Likewise.
22394         * doc/glibc-functions/strtol_l.texi: Likewise.
22395         * doc/glibc-functions/strtold_l.texi: Likewise.
22396         * doc/glibc-functions/strtoll_l.texi: Likewise.
22397         * doc/glibc-functions/strtoul_l.texi: Likewise.
22398         * doc/glibc-functions/strtoull_l.texi: Likewise.
22399         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22400         * doc/glibc-functions/wcstod_l.texi: Likewise.
22401         * doc/glibc-functions/wcstof_l.texi: Likewise.
22402         * doc/glibc-functions/wcstol_l.texi: Likewise.
22403         * doc/glibc-functions/wcstold_l.texi: Likewise.
22404         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22405         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22406         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22407
22408 2009-11-24  Bruno Haible  <bruno@clisp.org>
22409
22410         duplocale: Fix logic bug.
22411         * lib/duplocale.c: Don't include <langinfo.h>.
22412         (_NL_LOCALE_NAME): Remove macro.
22413         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22414         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22415
22416 2009-11-23  Jim Meyering  <meyering@redhat.com>
22417
22418         test-update-copyright: don't hard-code /usr/bin/perl
22419         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22420         perl to print the current year.  Gilles Espinasse reported that
22421         the replaced use of perl was hard-coded as /usr/bin/perl.
22422
22423 2009-11-23  Bruno Haible  <bruno@clisp.org>
22424
22425         duplocale: Add support for glibc 2.3.x.
22426         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22427
22428 2009-11-22  Bruno Haible  <bruno@clisp.org>
22429
22430         vasnprintf: Tiny optimization.
22431         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22432         MacOS X.
22433
22434 2009-11-22  Bruno Haible  <bruno@clisp.org>
22435
22436         Tests for module 'duplocale'.
22437         * modules/duplocale-tests: New file.
22438         * tests/test-duplocale.c: New file.
22439
22440         New module 'duplocale'.
22441         * m4/duplocale.m4: New file.
22442         * lib/locale.in.h (duplocale): New declaration.
22443         * lib/duplocale.c: New file.
22444         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22445         gl_LOCALE_H_DEFAULTS): New macros.
22446         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22447         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22448         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22449         REPLACE_DUPLOCALE.
22450         * modules/duplocale: New file.
22451         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22452
22453 2009-11-22  Bruno Haible  <bruno@clisp.org>
22454
22455         * modules/locale-tests (configure.ac): Test for newlocale function.
22456         * tests/test-locale.c: When the system has extended locale functions,
22457         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22458
22459         locale: Make locale_t available when possible.
22460         * lib/locale.in.h: Include <xlocale.h> when it exists.
22461         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22462         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22463         * modules/locale (Depends-on): Add extensions.
22464         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22465         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22466
22467 2009-11-22  Bruno Haible  <bruno@clisp.org>
22468
22469         Add comments.
22470         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22471         invocation.
22472         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22473         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22474         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22475
22476 2009-11-22  Bruno Haible  <bruno@clisp.org>
22477
22478         error: account for the possibility of freopen (stdout).
22479         * lib/error.c: Include <unistd.h>.
22480         (flush_stdout): New function, extracted from error and error_at_line.
22481         Determine stdout's fd dynamically.
22482         (error, error_at_line): Invoke flush_stdout.
22483         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22484         * modules/error (Depends-on): Add unistd.
22485
22486 2009-11-22  Bruno Haible  <bruno@clisp.org>
22487
22488         diffseq: Add comment.
22489         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22490
22491 2009-11-22  Jim Meyering  <meyering@redhat.com>
22492
22493         c-stack: avoid defining an unused static function
22494         * lib/c-stack.c (find_stack_direction): Do not define this function
22495         when it will not be used.
22496
22497         diffseq: avoid spurious gcc warnings
22498         * lib/diffseq.h (IF_LINT2): Define.
22499         (compareseq): Use it to initialize two members of "part".
22500         This avoids two used-uninitialized warnings.
22501
22502 2009-11-21  Jim Meyering  <meyering@redhat.com>
22503
22504         c-stack: avoid "ignoring return value of `write'" warning
22505         * lib/c-stack.c: Include "ignore-value.h".
22506         (die): Explicitly ignore each write return value.
22507         * modules/c-stack (Depends-on): Add ignore-value.
22508
22509 2009-11-21  Bruno Haible  <bruno@clisp.org>
22510
22511         diffseq: reduce scope of variable 'best'.
22512         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22513         variable, earlier used for two different purposes.
22514
22515 2009-11-21  Jim Meyering  <meyering@redhat.com>
22516
22517         diffseq: remove useless assignment to "best"
22518         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22519         assignment.  At that point "best" is already guaranteed to be zero.
22520
22521 2009-11-20  Eric Blake  <ebb9@byu.net>
22522
22523         build: mention ftp redirector in release announcements
22524         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22525         values that used to come from cfg.mk; mention FTP redirect URL.
22526         * build-aux/announce-gen: Mention the mirror list.
22527         Suggested by Karl Berry.
22528
22529         nanosleep: improve port to mingw
22530         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22532         LIB_NANOSLEEP, but only when needed.
22533         * modules/select (Link): Document LIBSOCKET.
22534         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22535         enough.
22536
22537         nanosleep: work around cygwin bug
22538         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22539         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22540         bug.
22541         (getnow): Delete, not needed.
22542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22543         LIB_CLOCK_GETTIME.
22544         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22545         clock-time, gettime.
22546         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22547         bug.
22548         * modules/nanosleep-tests: New test.
22549         * tests/test-nanosleep.c: New file.
22550
22551         sleep: work around cygwin bug
22552         * lib/sleep.c (rpl_sleep): Work around the bug.
22553         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22554         (gl_PREREQ_SLEEP): Delete unused macro.
22555         * modules/sleep (Depends-on): Add verify.
22556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22557         * modules/unistd (Makefile.am): Substitute witness.
22558         * lib/unistd.in.h (sleep): Update prototype.
22559         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22560         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22561         * modules/sleep-tests (Depends-on): Check for alarm.
22562
22563 2009-11-20  Jim Meyering  <meyering@redhat.com>
22564
22565         maint.mk: improve sc_prohibit_magic_number_exit
22566         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22567         so it does not match uses like System.exit(1).
22568         Add comments showing how to correct all offenders.
22569
22570 2009-11-19  Eric Blake  <ebb9@byu.net>
22571
22572         xalloc-die-tests: add missing library
22573         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22574
22575         test-xvasprintf: silence compiler warnings
22576         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22577         empty string from gcc.
22578
22579 2009-11-19  Jim Meyering  <meyering@redhat.com>
22580
22581         xfreopen: new module, from coreutils
22582         * modules/xfreopen: New module.
22583         * lib/xfreopen.c: New file.
22584         * lib/xfreopen.h: New file.
22585         * MODULES.html.sh (File stream based Input/Output"): Add it.
22586
22587 2009-11-19  Eric Blake  <ebb9@byu.net>
22588
22589         manywarnings: depend on warnings
22590         * modules/manywarnings (Depends-on): Add warnings.
22591
22592         build: avoid compiler warnings
22593         * lib/select.c (rpl_select): Delete unused variable.
22594         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22595
22596 2009-11-18  Eric Blake  <ebb9@byu.net>
22597
22598         tests: avoid false negative with --with-packager
22599         * tests/test-version-etc.sh: Discard packager information.
22600         * tests/test-argp-version-etc-1.sh: Likewise.
22601         Reported by Mike Frysinger.
22602
22603         utimens: fix regression on Solaris
22604         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22605         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22606         can only change fd timestamps via futimesat.  Instead, use an
22607         additional witness macro to avoid BSD bug.
22608         Reported by Jim Meyering.
22609
22610 2009-11-17  Eric Blake  <ebb9@byu.net>
22611
22612         usleep: use it to simplify tests
22613         * modules/stat-time-tests (Depends-on): Add usleep.
22614         (configure.ac): Drop usleep check.
22615         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22616         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22617         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22618         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22619         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22620         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22621         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22622         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22623         Likewise.
22624         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22625         * tests/test-lchown.h (nap): Likewise.
22626         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22627         * tests/test-stat-time.c (nap): Likewise.
22628         * tests/test-utimens-common.h (nap): Update comments.
22629
22630         usleep: new module
22631         * modules/usleep: New file.
22632         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22633         * lib/usleep.c (usleep): Likewise.
22634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22635         * modules/unistd (Makefile.am): Substitute witnesses.
22636         * lib/unistd.in.h (usleep): Add declaration.
22637         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22638         * MODULES.html.sh (Date and time): Likewise.
22639         * modules/usleep-tests (Depends-on): New test.
22640         * tests/test-usleep.c: New file.
22641
22642         chown: work around OpenBSD bug
22643         * lib/chown.c (rpl_chown): Work around the bug.
22644         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22645         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22646         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22647         * modules/chown (Depends-on): Add stdbool.
22648         * modules/lchown (Depends-on): Likewise.
22649         * doc/posix-functions/chown.texi (chown): Document the bug.
22650         * doc/posix-functions/lchown.texi (lchown): Likewise.
22651         * tests/test-lchown.h (test_chown): Relax test.
22652
22653         mkstemp: avoid conflict with C++ keyword template
22654         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22655         * lib/mkostemp.c (mkostemp): Likewise.
22656         * lib/mkostemps.c (mkostemps): Likewise.
22657         * lib/mkstemp.c (mkstemp): Likewise.
22658         * lib/mkstemps.c (mkstemps): Likewise.
22659
22660         xalloc-die-tests: optimize
22661         * tests/test-xalloc-die.sh: Reduce number of processes.
22662
22663 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22664
22665         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22666         patch from ludo@gnu.org (Ludovic Courtès).
22667
22668 2009-11-17  Jim Meyering  <meyering@redhat.com>
22669
22670         version-etc: use proper license string
22671         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22672         * modules/version-etc-fsf: Likewise.
22673
22674 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22675
22676         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22677         printed to stdout.  Deal with EOL differences.
22678
22679 2009-11-17  Eric Blake  <ebb9@byu.net>
22680
22681         unsetenv: work around Solaris bug
22682         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22683         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22684         Reported by Jim Meyering.
22685
22686         vasnprintf: avoid compiler warnings
22687         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22688         variables.
22689         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22690
22691 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22692
22693         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22694         settings since xalloc-die is no longer the self test,
22695         xalloc-die.sh is.
22696
22697 2009-11-17  Jim Meyering  <meyering@redhat.com>
22698
22699         test-xalloc-die.sh: make the code agree with the commit log
22700         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22701         at the end, just in case you happen to have a test-xalloc-die
22702         program in some other PATH directory.
22703
22704         test-xalloc-die.sh: fix a portability bug
22705         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22706         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22707         Otherwise, argv[0] (as often seen in diagnostics) would be too
22708         system-dependent, sometimes with, and sometimes without the leading "./".
22709
22710         version-etc-fsf: relax license to LGPLv3+
22711         * modules/version-etc-fsf (License): Relax license.
22712
22713 2009-11-16  Eric Blake  <ebb9@byu.net>
22714
22715         xalloc-die-tests: avoid printing null pointer
22716         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22717         shell script.
22718         * tests/test-xalloc-die.c (program_name): Declare.
22719         * tests/test-xalloc-die.sh (tmpfiles): New file.
22720
22721         setenv, unsetenv: work around various bugs
22722         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22723         (setenv) [HAVE_SETENV]: Work around bugs.
22724         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22725         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22726         for bugs.
22727         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22728         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22730         * modules/stdlib (Makefile.am): Update substitutions.
22731         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22732         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22733         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22734         * modules/setenv-tests: New test.
22735         * modules/unsetenv-tests: Likewise.
22736         * tests/test-setenv.c: New file.
22737         * tests/test-unsetenv.c: Likewise.
22738
22739 2009-11-16  Jim Meyering  <meyering@redhat.com>
22740
22741         version-etc: relax license to LGPLv3+
22742         * modules/version-etc (License): Relax license.
22743
22744         better AC_REQUIRE expanded-before-required-warning avoidance
22745         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22746         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22747         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22748         which is no longer needed.
22749
22750 2009-11-16  Eric Blake  <ebb9@byu.net>
22751
22752         test-freading: clean up temporary file
22753         * tests/test-freading.c (main): Remove file on success, and use
22754         ASSERT more liberally.
22755         Reported by Jim Meyering.
22756
22757 2009-11-16  Jim Meyering  <meyering@redhat.com>
22758
22759         avoid new AC_REQUIRE expanded-before-required warnings
22760         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22761         merely using it.
22762         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22763         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22764
22765 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22766
22767         * tests/test-xalloc-die.c: New file.
22768         * modules/xalloc-die-tests: New file.
22769         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22770         XFAIL_TESTS so it can be appended by modules.
22771
22772 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22773
22774         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22775         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22776
22777 2009-11-14  Eric Blake  <ebb9@byu.net>
22778
22779         fnmatch: avoid compiler warning
22780         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22781         to silence compiler warning about mismatch signedness in ?:.
22782         Reported by Robert Millan.
22783
22784         intprops: add double-inclusion guard
22785         * lib/intprops.h: Allow idempotent includes.
22786         Suggested by Bruce Korb.
22787
22788         openat: detect Solaris fchownat bug
22789         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22790         penalizing glibc chownat when only lchownat is broken.
22791         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22792         trailing slash bugs.
22793         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22794         * modules/openat-tests (Files): Include more files.
22795         (Depends-on): Add mgetgroups, sleep, stat-time.
22796         (configure.ac): Add additional checks.
22797         (Makefile.am): Build new test.
22798         * tests/test-fchownat.c: New file.
22799
22800         lchown: detect Solaris and FreeBSD bug
22801         * lib/lchown.c (rpl_lchown): Work around bug.
22802         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22804         * modules/unistd (Makefile.am): Populate it.
22805         * lib/unistd.in.h (lchown): Update declaration.
22806         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22807         * modules/lchown-tests: New file.
22808         * tests/test-lchown.h (test_lchown): Likewise.
22809         * tests/test-lchown.c (main): Likewise.
22810
22811         chown: detect Solaris and FreeBSD bug
22812         * lib/chown.c (rpl_chown): Work around bug.
22813         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22814         (gl_PREREQ_CHOWN): Delete.
22815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22816         * modules/unistd (Makefile.am): Populate it.
22817         * lib/unistd.in.h (chown): Update declaration.
22818         * lib/lchown.c (chown): Update client.
22819         * modules/lchown (Depends-on): Add lstat.
22820         * doc/posix-functions/chown.texi (chown): Document the bug.
22821         * doc/posix-functions/getgroups.texi (getgroups): Document
22822         getgroups pitfall.
22823         * modules/chown-tests: New file.
22824         * tests/test-chown.h (test_chown): Likewise.
22825         * tests/test-chown.c (main): Likewise.
22826
22827 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22828
22829         gnulib-tool: correctly detect absence of m4 directories
22830         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22831
22832 2009-11-14  Jim Meyering  <meyering@redhat.com>
22833
22834         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22835         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22836
22837 2009-11-14  John W. Eaton  <jwe@gnu.org>
22838
22839         strftime.h: wrap funtion declaration in extern "C" block
22840         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22841
22842 2009-11-13  Eric Blake  <ebb9@byu.net>
22843
22844         getgroups: avoid compiler warning
22845         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22846
22847         getgroups: work around FreeBSD bug
22848         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22849         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22850         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22851         * tests/test-getgroups.c (main): Fix buffer overrun.
22852
22853         getgroups: avoid compilation failure
22854         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22855         * modules/getgroups (Depends-on): Add stdint.
22856
22857 2009-11-13  Jim Meyering  <meyering@redhat.com>
22858
22859         test-getgroups: avoid compilation failure
22860         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22861
22862 2009-11-13  Eric Blake  <ebb9@byu.net>
22863
22864         mgetgroups: new module, taken from coreutils
22865         * modules/mgetgroups: New file.
22866         * lib/mgetgroups.h: Likewise.
22867         * lib/mgetgroups.c (mgetgroups): Likewise.
22868         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22869         * MODULES.html.sh (Users and groups): Mention it.
22870
22871         getgroups: don't expose GETGROUPS_T to user
22872         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22873         an element at a time if GETGROUPS_T is wrong size.
22874         * lib/getugroups.h (getugroups): Change signature.
22875         * lib/unistd.in.h (getgroups): Likewise.
22876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22877         signature needs fixing.
22878         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22879         AC_TYPE_GETGROUPS.
22880         * modules/group-member (Depends-on): Add getgroups.
22881         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22882         (group_member): Rely on getgroups replacement.
22883         * lib/getugroups.c (getugroups): Use gid_t.
22884         * tests/test-getgroups.c (main): Likewise.
22885         * NEWS: Mention the signature change.
22886         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22887         problem with signature.
22888         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22889         GETGROUPS_T is still useful for setgroups.
22890
22891         getgroups, getugroups: provide stubs for mingw
22892         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22893         * lib/getugroups.c (getugroups): Likewise.
22894         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22895         function.  Modernize replacement scheme.
22896         (gl_PREREQ_GETGROUPS): Delete.
22897         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22898         * modules/getgroups (configure.ac): Declare witness.
22899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22900         * modules/unistd (Depends-on): Substitute witness.
22901         * lib/unistd.in.h (getgroups): Declare replacement.
22902
22903         getgroups: avoid calling exit
22904         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22905         drop xalloc.
22906         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22907         dependencies.
22908         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22909         exiting, in the rare case of malloc failure.
22910
22911         getgroups: fix logic error
22912         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22913         has more than 20 groups.
22914         * modules/getgroups-tests: New test.
22915         * tests/test-getgroups.c: New file.
22916
22917 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22918
22919         * tests/test-base64.c: Improve.
22920
22921 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22922
22923         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22924         Blake <ebb9@byu.net>.
22925
22926 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22927
22928         * tests/test-xvasprintf.c: Add %s%s related checks.
22929
22930 2009-11-12  Eric Blake  <ebb9@byu.net>
22931
22932         version-etc: match standards.texi style
22933         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22934         and use <> only for URLs.
22935
22936 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22937
22938         fts: do not fail on a submount during traversal
22939         * lib/fts.c (fts_build): Read the stat info again after opening
22940         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22941         Original report at http://bugzilla.redhat.com/501848.
22942
22943 2009-11-12  Jim Meyering  <meyering@redhat.com>
22944
22945         bootstrap: sync from coreutils
22946         * build-aux/bootstrap (bootstrap_epilogue): New function.
22947         Use git_modules_config in one more place.  This make bootstrap's
22948         --gnulib-srcdir option more useful for testing.
22949
22950         bootstrap: generalize autoheader check
22951         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22952         AC_CONFIG_HEADERS.
22953
22954 2009-11-11  Eric Blake  <ebb9@byu.net>
22955
22956         mkfifoat: use new modules for Solaris and BSD bugs
22957         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22958         * lib/mkfifoat.c (mknodat): Split...
22959         * lib/mknodat.c (mknodat): ...into new file.
22960         * modules/mkfifoat (Files): Ship new file.
22961         (Depends-on): Add mkfifo, mknod.
22962         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22963         (Depends-on): Add symlink.
22964         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22965         redundant with test_mkfifo.h.
22966         (do_mkfifoat, do_mknodat): New helpers.
22967
22968         mknod: new module
22969         * modules/mknod: New file.
22970         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22971         * lib/mknod.c (mknod): Likewise.
22972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22973         defaults.
22974         * modules/sys_stat (Makefile.am): Substitute them.
22975         * lib/sys_stat.in.h (mknod): Declare replacement.
22976         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22977         Document it.
22978         * doc/posix-functions/mknod.texi (mknod): Likewise.
22979         * modules/mknod-tests: New test.
22980         * tests/test-mknod.c: Likewise.
22981
22982         mkfifo: new module
22983         * modules/mkfifo: New file.
22984         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22985         * lib/mkfifo.c (mkfifo): Likewise.
22986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22987         defaults.
22988         * modules/sys_stat (Makefile.am): Substitute them.
22989         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22990         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22991         Document it.
22992         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22993         * modules/mkfifo-tests: New test.
22994         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22995         from test-mkfifoat.c.
22996         * tests/test-mkfifo.c: New file.
22997
22998         readlink: detect FreeBSD bug
22999         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23000         slash on symlink.
23001         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23002         * tests/test-readlink.h (test_readlink): Enhance test.
23003
23004         symlink: detect FreeBSD bug
23005         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23006         slash on symlink.
23007         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23008         * tests/test-symlink.h (test_symlink): Enhance test.
23009
23010 2009-11-10  Eric Blake  <ebb9@byu.net>
23011
23012         link: detect FreeBSD bug
23013         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23014         symlink.
23015         * doc/posix-functions/link.texi (link): Document the bug.
23016         * tests/test-link.h (test_link): Enhance test.
23017         * tests/test-linkat.c (main): Update caller.
23018
23019         unlink, remove: detect FreeBSD bug
23020         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23021         slash on symlink.
23022         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23023         * doc/posix-functions/remove.texi (remove): Likewise.
23024         * tests/test-unlink.h (test_unlink): Enhance test.
23025         * tests/test-remove.c (main): Likewise.
23026
23027 2009-11-09  Eric Blake  <ebb9@byu.net>
23028
23029         rename: detect FreeBSD bug
23030         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23031         slash on symlink.
23032         * modules/renameat-tests (Depends-on): Add filenamecat.
23033         * tests/test-rename.h (test_rename): Allow one more errno.
23034         * tests/test-renameat.c (main): Likewise.
23035         * doc/posix-functions/rename.texi (rename): Document the bug.
23036
23037         open: detect FreeBSD bug
23038         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23039         symlink.
23040         * doc/posix-functions/open.texi (open): Document the bug.
23041         * doc/posix-functions/utimes.texi (utimes): Likewise.
23042         * tests/test-open.h (test_open): Add parameters, and test symlink
23043         handling.
23044         * tests/test-open.c (main): Adjust caller.
23045         * tests/test-fcntl-safer.c (main): Likewise.
23046         * modules/open-tests (Depends-on): Add stdbool, symlink.
23047         * modules/fcntl-safer-tests (Depends-on): Likewise.
23048         * tests/test-openat.c (main): Add test-open tests.
23049
23050         stat: detect FreeBSD bug
23051         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23052         symlink.
23053         * doc/posix-functions/stat.texi (stat): Document the bug.
23054         * tests/test-stat.h (test_stat_func): Add argument.
23055         * tests/test-stat.c (main): Adjust caller.
23056         * tests/test-fstatat.c (main): Likewise.
23057         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23058         Reported by Jim Meyering.
23059
23060 2009-11-09  James Youngman  <jay@gnu.org>
23061
23062         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23063         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23064
23065 2009-11-08  Jim Meyering  <meyering@redhat.com>
23066
23067         utimens: remove invalid futimesat call
23068         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23069         It used the file descriptor of the target file as the DIR_FD
23070         parameter and NULL as the file name.  That caused failure with
23071         errno == EFAULT on FreeBSD-8.0-rc2
23072
23073 2009-11-07  Eric Blake  <ebb9@byu.net>
23074
23075         fflush, freadseek: use fseeko, not fseek
23076         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23077         (clear_ungetc_buffer): Avoid potential problems on large files.
23078         * lib/freadseek.c (freadseek): Likewise.
23079         * modules/freadseek (Depends-on): Add fseeko.
23080         * modules/fseek (configure.ac): Set a witness.
23081         * tests/test-fflush.c (main): Use fseeko.
23082         * tests/test-fpurge.c (fseek): Disable link warning.
23083         * tests/test-freadable.c (fseek): Likewise.
23084         * tests/test-freading.c (fseek): Likewise.
23085         * tests/test-fseeko.c (fseek): Likewise.
23086         * tests/test-ftell.c (fseek): Likewise.
23087         * tests/test-ftello.c (fseek): Likewise.
23088         * tests/test-fwritable.c (fseek): Likewise.
23089         * tests/test-fwriting.c (fseek): Likewise.
23090
23091 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23092
23093         * modules/memchr (Depends-on): Drop getpagesize dependency.
23094
23095 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23096
23097         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23098         Reported by Ludovic Courtès.
23099         * build-aux/pmccabe2html: Improve example usage.
23100         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23101
23102 2009-11-06  Jim Meyering  <meyering@redhat.com>
23103
23104         do-release-commit-and-tag: New module.
23105         Automate the release-commit and tag process.
23106         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23107         * modules/do-release-commit-and-tag: New file.
23108         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23109
23110 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23111
23112         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23113         because test-select.c uses inet_pton.
23114
23115 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23116
23117         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23118         GETADDRINFO_LIB.  Bump serial number.
23119         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23120         Suggested by Eric Blake <ebb9@byu.net>.
23121
23122 2009-11-05  Eric Blake  <ebb9@byu.net>
23123
23124         strtod: detect darwin bug
23125         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23126         Reported by Leo Davis.
23127
23128         freopen-safer: new module
23129         * modules/freopen-safer: New module.
23130         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23131         * lib/freopen-safer.c (freopen_safer): New file.
23132         * lib/stdio-safer.h (freopen_safer): New declaration.
23133         * lib/stdio--.h (freopen): New override.
23134         * MODULES.html.sh (File stream based Input/Output): Mention it.
23135         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23136         freopen-safer module.
23137         * doc/posix-functions/stderr.texi (stderr): Likewise.
23138         * doc/posix-functions/stdin.texi (stdin): Likewise.
23139         * doc/posix-functions/stdout.texi (stdout): Likewise.
23140         * modules/freopen-safer-tests: New test.
23141         * tests/test-reopen-safer.c: New file.
23142
23143 2009-11-05  Jim Meyering  <meyering@redhat.com>
23144
23145         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23146         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23147
23148 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23149
23150         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23151
23152 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23153
23154         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23155
23156 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23157
23158         Fix link error.
23159         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23160         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23161
23162 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23163
23164         * tests/test-func.c: Also test value of __func__.
23165
23166 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23167
23168         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23169         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23170
23171 2009-11-05  Bruno Haible  <bruno@clisp.org>
23172
23173         Fix link error.
23174         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23175         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23176         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23177
23178 2009-11-05  Bruno Haible  <bruno@clisp.org>
23179
23180         Tests for module 'inet_pton'.
23181         * modules/inet_pton-tests: New file.
23182         * tests/test-inet_pton.c: New file.
23183
23184 2009-11-05  Bruno Haible  <bruno@clisp.org>
23185
23186         Tests for module 'inet_ntop'.
23187         * modules/inet_ntop-tests: New file.
23188         * tests/test-inet_ntop.c: New file.
23189
23190 2009-11-04  Eric Blake  <ebb9@byu.net>
23191
23192         stdlib-safer: wrap all mkstemp variants
23193         * modules/mkostemp (configure.ac): Set witness.
23194         * modules/mkostemps (configure.ac): Likewise.
23195         * modules/mkstemps (configure.ac): Likewise.
23196         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23197         (mkstemps_safer): Wrap more functions.
23198         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23199         wrapping.
23200         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23201         (mkstemps_safer): Implement the wrappers.
23202
23203         mkstemps, mkostemps: new modules
23204         * modules/mkostemps: New module.
23205         * modules/mkstemps: Likewise.
23206         * lib/mkostemps.c (mkostemps): New file.
23207         * lib/mkstemps.c (mkstemps): Likewise.
23208         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23209         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23211         * modules/stdlib (Makefile.am): Substitute them.
23212         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23213         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23214         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23215         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23216         * MODULES.html.sh (File system functions): Mention them.
23217
23218         tempname: resync from glibc
23219         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23220         same values for __GT_FILE as glibc.  Abort even when assertions
23221         are disabled.
23222         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23223         match its value otherwise.  Allow idempotent inclusion.
23224         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23225         * lib/mkostemp.c (mkostemp): Likewise.
23226         * lib/mkstemp.c (mkstemp): Likewise.
23227         * lib/tmpfile.c (tmpfile): Likewise.
23228         * NEWS: Document this.
23229
23230         utimens: fix use of futimens on older Linux
23231         * lib/utimens.c (fdutimens): Use updated, rather than original,
23232         timespec to avoid bug in older Linux kernel.
23233         Reported by Simon Josefsson.
23234
23235 2009-11-04  Bruno Haible  <bruno@clisp.org>
23236
23237         Make num_processors more flexible and consistent.
23238         * lib/nproc.h (enum nproc_query): New type.
23239         (num_processors): Add a 'query' argument.
23240         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23241         (num_processors): Add a 'query' argument. Test the value of the
23242         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23243         mingw, count the number of CPUs available for the current process.
23244         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23245         Check for sched_getaffinity and sched_getaffinity_np.
23246         * modules/nproc (Depends-on): Add c-ctype, extensions.
23247         * NEWS: Mention the change.
23248
23249 2009-11-03  Bruno Haible  <bruno@clisp.org>
23250
23251         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23252
23253 2009-11-03  Jim Meyering  <meyering@redhat.com>
23254
23255         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23256         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23257         if it is defined.
23258
23259 2009-11-02  Eric Blake  <ebb9@byu.net>
23260
23261         mktime, timegm: share common declaration
23262         * lib/mktime-internal.h: New file.
23263         * lib/mktime.c: Use it rather than open-coding a declaration.
23264         * lib/timegm.c: Likewise.
23265         * modules/mktime (Files): Ship it.
23266         * modules/timegm (Files): Likewise.
23267         Suggested by Bruno Haible.
23268
23269         test-update-copyright: update test to match script changes
23270         * tests/test-update-copyright.sh: Avoid hard-coding perl
23271         location.  Don't update *.bak created by earlier runs.
23272
23273 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23274             Simon Josefsson  <simon@josefsson.org>
23275             Bruno Haible  <bruno@clisp.org>
23276
23277         Fix link error on Solaris 8.
23278         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23279         also in libnsl. Define also INET_PTON_LIB.
23280         * modules/inet_pton (Link): New section.
23281
23282 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23283             Bruno Haible  <bruno@clisp.org>
23284
23285         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23286         * modules/inet_ntop (Link): New section.
23287         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23288
23289 2009-11-02  Eric Blake  <ebb9@byu.net>
23290
23291         maint: avoid compiler warnings in m4 macros
23292         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23293         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23294
23295 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23296
23297         * m4/pmccabe2html.m4: Remove file.
23298         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23299         function.  Change maintainer.
23300         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23301         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23302         Courtès).
23303
23304 2009-10-31  Eric Blake  <ebb9@byu.net>
23305
23306         fseeko: fix m4 regression
23307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23308         regression from 2009-10-27.
23309         Reported by Ralf Wildenhues.
23310
23311 2009-10-31  Jim Meyering  <meyering@redhat.com>
23312
23313         inttostr: aesthetics and improved (compile-time) safety
23314         Define inttype_is_signed rather than inttype_is_unsigned,
23315         since the sole use is via "#if inttype_is_signed".
23316         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23317         inttype_is_unsigned.
23318         * lib/offtostr.c (inttype_is_signed): Likewise.
23319         * lib/uinttostr.c (inttype_is_signed): Likewise.
23320         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23321         * lib/inttostr.c (inttostr): Use verify to cross-check the
23322         inttype_is_signed value and the signedness of the actual type.
23323         * modules/inttostr (Depends-on): Add verify.
23324
23325 2009-10-30  Eric Blake  <ebb9@byu.net>
23326
23327         build: avoid compiler warnings
23328         * lib/fchmodat.c (lchmod): Mark unused variables.
23329         * lib/getopt.c (_getopt_initialize): Likewise.
23330         * lib/mktime.c (__mktime_internal): Provide prototype.
23331         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23332         older gcc that do not understand #pragma GCC diagnostic.
23333         * lib/uinttostr.c (inttype_is_unsigned): Define.
23334         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23335
23336 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23337
23338         stat: fix compilation on AIX
23339         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23340         only see struct stat64.
23341
23342 2009-10-30  Eric Blake  <ebb9@byu.net>
23343
23344         exclude: make more robust
23345         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23346         rather than masking a coding bug.
23347         Suggested by Bruno Haible.
23348
23349 2009-10-30  Jim Meyering  <meyering@redhat.com>
23350
23351         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23352         Rather than putting #!/usr/bin/perl on the first line,
23353         start with a variant of what's recommended by "man perlrun" that
23354         invokes the first "perl" program from your shell's search path.
23355         * build-aux/gitlog-to-changelog: Replace #!... as above.
23356         Add a "Local Variables" perl mode setting.
23357         Prompted by a patch from Ludovic Courtès.
23358         Improved by Eric Blake.
23359         * build-aux/useless-if-before-free: Likewise.
23360         * build-aux/announce-gen: Likewise.
23361         * build-aux/update-copyright: Likewise.
23362
23363 2009-10-29  Eric Blake  <ebb9@byu.net>
23364
23365         filenamecat-lgpl: adjust clients
23366         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23367         filenamecat.
23368         * modules/renameat (Depends-on): Likewise.
23369
23370         filenamecat: split into filenamecat-lgpl
23371         * modules/filenamecat-lgpl: New module.
23372         * modules/filenamecat (Files): Move library-safe files into
23373         filenamecat-lgpl.
23374         (Depends-on): Add filenamecat-lgpl.
23375         (configure.ac): Declare witness.
23376         * lib/filenamecat.h (file_name_concat): Only declare when using
23377         GPL module.
23378         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23379         Move...
23380         * lib/filenamecat-lgpl.c: ...into new file.
23381         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23382         (gl_FILE_NAME_CONCAT): Use it.
23383         * MODULES.html.sh (File system functions): Mention new module.
23384
23385         argp: avoid memory leak
23386         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23387         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23388         base_name, since the latter malloc()s and can call exit().
23389         Leak introduced 2006-07-03.
23390
23391         dirname-lgpl: adjust clients that don't need full dirname
23392         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23393         * modules/filenamecat (Depends-on): Likewise.
23394         * modules/linkat (Depends-on): Likewise.
23395         * modules/mkancesdirs (Depends-on): Likewise.
23396         * modules/mkdir (Depends-on): Likewise.
23397         * modules/openat (Depends-on): Likewise.
23398         * modules/savewd (Depends-on): Likewise.
23399         * modules/rename (Depends-on): Likewise.
23400         (License): Relax license.
23401         * modules/mkdir-tests (Depends-on): Drop progname.
23402         (Makefile.am): Delete unneeded LDADD.
23403         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23404
23405         dirname: split into dirname-lgpl
23406         * modules/dirname-lgpl: New module.
23407         * modules/dirname (Files): Move library-safe files into
23408         dirname-lgpl.
23409         (Depends-on): Add dirname-lgpl.
23410         (configure.ac): Declare witness.
23411         * modules/double-slash-root (License): Relax license.
23412         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23413         module.
23414         * lib/dirname.c (dir_len, mdir_name): Move...
23415         * lib/dirname-lgpl.c: ...into new file.
23416         * lib/basename.c (last_component, base_len): Move...
23417         * lib/basename-lgpl.c: ...into new file.
23418         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23419         (gl_DIRNAME): Use it.
23420         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23421         Mention new module.
23422         * modules/dirname-tests (Depends-on): Add progname.
23423         * tests/test-dirname.c (program_name): Delete.
23424
23425         mkdir: make safe for libraries
23426         * modules/mkdir (Depends-on): Drop xalloc.
23427         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23428         exit.
23429
23430         tests: avoid some compiler warnings
23431         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23432         literals.
23433         * tests/test-memchr.c (main): Avoid type mismatch.
23434         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23435         * tests/test-base64.c (main): Likewise.
23436         * tests/test-getdelim.c (main): Likewise.
23437         * tests/test-gethostname.c (main): Likewise.
23438         * tests/test-getline.c (main): Likewise.
23439         * tests/test-netinet_in.c (main): Likewise.
23440         * tests/test-select.c (open_server_socket, main): Likewise.
23441         * tests/test-select-stdin.c (main): Likewise.
23442         * tests/test-sockets.c (main): Likewise.
23443         * tests/test-strsignal.c (main): Likewise.
23444         * tests/test-sys_select.c (main): Likewise.
23445         * tests/test-sys_socket.c (main): Likewise.
23446         * tests/test-u64.c (main): Likewise.
23447         * tests/test-xfprintf-posix.c (main): Likewise.
23448         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23449
23450         sockets: avoid compiler warning
23451         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23452
23453         maint: detect usage(1) and other suspicious exits
23454         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23455
23456 2009-10-29  Jim Meyering  <meyering@redhat.com>
23457
23458         timespec: long-to-int truncation could make timespec_cmp malfunction
23459         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23460         a multiple of 2^32 nanoseconds as no difference.
23461
23462 2009-10-28  Jim Meyering  <meyering@redhat.com>
23463
23464         fprintftime: wrap macro code argument in "do {...} while(0)"
23465         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23466         cpy macro must be a statement that can be followed by a semicolon.
23467         Now that the else clause contains a comment and is hence longer
23468         than one line, I require curly braces.  That in turn requires
23469         that we wrap this code block in the standard do...while(0).
23470
23471         fprintftime: remove stray semicolon from previous change
23472         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23473
23474         fprintftime: avoid a warning about ignored fwrite return value
23475         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23476         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23477         that is unsafe.
23478         * modules/fprintftime (Depends-on): Add ignore-value.
23479
23480         exclude: avoid an unwarranted warning
23481         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23482
23483 2009-10-27  Eric Blake  <ebb9@byu.net>
23484
23485         fseek: avoid compilation failure when fflush is replaced
23486         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23487         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23488         module is in use.
23489         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23490         module is not in use; since REPLACE_FSEEK worked otherwise.
23491         (GNULIB_FTELLO): Likewise for ftell.
23492         Reported by Ian Beckwith and others.
23493
23494 2009-10-27  Bruno Haible  <bruno@clisp.org>
23495
23496         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23497         Reported by Jim Meyering.
23498
23499 2009-10-27  Jim Meyering  <jim@meyering.net>
23500             Bruno Haible  <bruno@clisp.org>
23501
23502         Avoid warning despite dropping the return value of fwrite.
23503         * lib/unicodeio.c: Include ignore-value.h.
23504         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23505         * modules/unicodeio (Depends-on): Add ignore-value.
23506
23507 2009-10-26  Eric Blake  <ebb9@byu.net>
23508
23509         areadlinkat: fix fallback path
23510         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23511         pointer and zero.
23512
23513 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23514
23515         Use a better IO block size for modern systems
23516         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23517         * lib/md2.c: Likewise.
23518         * lib/md4.c: Likewise.
23519         * lib/md5.c: Likewise.
23520         * lib/sha1.c: Likewise.
23521         * lib/sha256.c: Likewise.
23522         * lib/sha512.c: Likewise.
23523
23524 2009-10-22  Eric Blake  <ebb9@byu.net>
23525
23526         tests: avoid several compiler warnings
23527         * tests/test-getcwd.c (main): Avoid buffer underflow.
23528         * tests/test-getdate.c (main): String literals are not safe with
23529         putenv, so use setenv.  Declare unused argument.
23530         * modules/getdate-tests (Depends-on): Add setenv.
23531         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23532         problems with string literals in char *.
23533         * tests/test-hash.c (main): Avoid shadowing declaration.
23534         (insert_new): Treat string literals as char const *.
23535         * tests/test-getopt.h (test_getopt): Likewise.
23536         (getopt_loop): Alter types to minimize casting elsewhere.
23537         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23538         (test_getopt_long_posix): Likewise.
23539         (do_getopt_long): Add wrapper to minimize casting.
23540         * tests/test-atexit.c (clear_temp_file): Use void.
23541         * tests/test-areadlink-with-size.c (main): Declare unused
23542         arguments.
23543         * tests/test-areadlink.c (main): Likewise.
23544         * tests/test-areadlinkat-with-size.c (main): Likewise.
23545         * tests/test-areadlinkat.c (main): Likewise.
23546         * tests/test-canonicalize-lgpl.c (main): Likewise.
23547         * tests/test-canonicalize.c (main): Likewise.
23548         * tests/test-dirent-safer.c (main): Likewise.
23549         * tests/test-dirname.c (main): Likewise.
23550         * tests/test-dup2.c (main): Likewise.
23551         * tests/test-fchdir.c (main): Likewise.
23552         * tests/test-fcntl-h.c (main): Likewise.
23553         * tests/test-fcntl-safer.c (main): Likewise.
23554         * tests/test-fdopendir.c (main): Likewise.
23555         * tests/test-fdutimensat.c (main): Likewise.
23556         * tests/test-fflush.c (main): Likewise.
23557         * tests/test-filenamecat.c (main): Likewise.
23558         * tests/test-filevercmp.c (main): Likewise.
23559         * tests/test-fopen-safer.c (main): Likewise.
23560         * tests/test-fopen.c (main): Likewise.
23561         * tests/test-fpending.c (main): Likewise.
23562         * tests/test-fpurge.c (main): Likewise.
23563         * tests/test-freading.c (main): Likewise.
23564         * tests/test-fstatat.c (main): Likewise.
23565         * tests/test-fsync.c (main): Likewise.
23566         * tests/test-futimens.c (main): Likewise.
23567         * tests/test-getndelim2.c (main): Likewise.
23568         * tests/test-gettimeofday.c (main): Likewise.
23569         * tests/test-getopt.c (main): Likewise.
23570         * tests/test-i-ring.c (main): Likewise.
23571         * tests/test-inttypes.c (main): Likewise.
23572         * tests/test-link.c (main): Likewise.
23573         * tests/test-lstat.c (main): Likewise.
23574         * tests/test-math.c (main): Likewise.
23575         * tests/test-md5.c (main): Likewise.
23576         * tests/test-memchr2.c (main): Likewise.
23577         * tests/test-memrchr.c (main): Likewise.
23578         * tests/test-mkdir.c (main): Likewise.
23579         * tests/test-mkdirat.c (main): Likewise.
23580         * tests/test-mkfifoat.c (main): Likewise.
23581         * tests/test-open.c (main): Likewise.
23582         * tests/test-openat-safer.c (main): Likewise.
23583         * tests/test-openat.c (main): Likewise.
23584         * tests/test-quotearg.c (main): Likewise.
23585         * tests/test-rawmemchr.c (main): Likewise.
23586         * tests/test-readlink.c (main): Likewise.
23587         * tests/test-remove.c (main): Likewise.
23588         * tests/test-rename.c (main): Likewise.
23589         * tests/test-renameat.c (main): Likewise.
23590         * tests/test-rmdir.c (main): Likewise.
23591         * tests/test-sha1.c (main): Likewise.
23592         * tests/test-signal.c (main): Likewise.
23593         * tests/test-sigaction.c (main): Likewise.
23594         * tests/test-stat.c (main): Likewise.
23595         * tests/test-stat-time.c (main): Likewise.
23596         * tests/test-stddef.c (main): Likewise.
23597         * tests/test-stdint.c (main): Likewise.
23598         * tests/test-stdio.c (main): Likewise.
23599         * tests/test-stdlib.c (main): Likewise.
23600         * tests/test-strchrnul.c (main): Likewise.
23601         * tests/test-strerror.c (main): Likewise.
23602         * tests/test-string.c (main): Likewise.
23603         * tests/test-strtod.c (main): Likewise.
23604         * tests/test-strverscmp.c (main): Likewise.
23605         * tests/test-symlink.c (main): Likewise.
23606         * tests/test-symlinkat.c (main): Likewise.
23607         * tests/test-sys_stat.c (main): Likewise.
23608         * tests/test-sys_time.c (main): Likewise.
23609         * tests/test-time.c (main): Likewise.
23610         * tests/test-unistd.c (main): Likewise.
23611         * tests/test-unlink.c (main): Likewise.
23612         * tests/test-unlinkat.c (main): Likewise.
23613         * tests/test-utimens.c (main): Likewise.
23614         * tests/test-utimensat.c (main): Likewise.
23615         * tests/test-version-etc.c (main): Likewise.
23616         * tests/test-wchar.c (main): Likewise.
23617         * tests/test-wctype.c (main): Likewise.
23618         * tests/test-xprintf-posix.c (main): Likewise.
23619         * tests/test-posixtm.c (main): Likewise.
23620         (STREQ): Delete unused macro.
23621         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23622         shadowed variables.
23623         * tests/test-memchr.c (main): Likewise.
23624
23625 2009-10-21  Eric Blake  <ebb9@byu.net>
23626
23627         areadlinkat: avoid failure on older glibc
23628         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23629         rather than mis-comparing 0 against FUNC_RESULT of char*.
23630
23631 2009-10-21  Bruno Haible  <bruno@clisp.org>
23632
23633         * modules/stpncpy (License): Relicense under LGPLv2+.
23634         Reported by David Lutterkort <lutter@redhat.com>.
23635
23636 2009-10-20  Eric Blake  <ebb9@byu.net>
23637
23638         utimensat: work around Solaris 9 bug
23639         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23640         has trailing slash bugs.
23641         * tests/test-lutimens.h (test_lutimens): Enhance test.
23642         * tests/test-utimens.h (test_utimens): Likewise.
23643         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23644         * doc/posix-functions/utimes.texi (utimes): Likewise.
23645         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23646         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23647         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23648         * doc/posix-functions/futimens.texi (futimens): Likewise.
23649
23650         fdutimensat: new module
23651         * modules/fdutimensat: New file.
23652         * lib/fdutimensat.c (fdutimensat): Likewise.
23653         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23654         * MODULES.html.sh (File system functions): Mention module.
23655         * modules/fdutimensat-tests: New test.
23656         * tests/test-fdutimensat.c: Likewise.
23657
23658         doc: regenerate INSTALL
23659         * doc/INSTALL: Reflect recent autoconf update.
23660         * doc/INSTALL.ISO: Likewise.
23661         * doc/INSTALL.UTF-8: Likewise.
23662
23663 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23664
23665         acl: warn if ACL support is not detected
23666         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23667
23668 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23669
23670         * lib/nproc.h: Add extern "C" block for C++.
23671
23672 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23673             Bruno Haible  <bruno@clisp.org>
23674
23675         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23676         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23677         * doc/posix-functions/isalpha.texi: Likewise.
23678         * doc/posix-functions/isblank.texi: Likewise.
23679         * doc/posix-functions/iscntrl.texi: Likewise.
23680         * doc/posix-functions/isdigit.texi: Likewise.
23681         * doc/posix-functions/isgraph.texi: Likewise.
23682         * doc/posix-functions/islower.texi: Likewise.
23683         * doc/posix-functions/isprint.texi: Likewise.
23684         * doc/posix-functions/ispunct.texi: Likewise.
23685         * doc/posix-functions/isspace.texi: Likewise.
23686         * doc/posix-functions/isupper.texi: Likewise.
23687         * doc/posix-functions/isxdigit.texi: Likewise.
23688
23689 2009-10-18  Bruno Haible  <bruno@clisp.org>
23690
23691         Tests for module 'isblank'.
23692         * modules/isblank-tests: New file.
23693         * tests/test-isblank.c: New file.
23694
23695         New module 'isblank'.
23696         * lib/isblank.c: New file.
23697         * m4/isblank.m4: New file.
23698         * modules/isblank: New file.
23699         * doc/posix-functions/isblank.texi: Mention the new module.
23700
23701 2009-10-18  Bruno Haible  <bruno@clisp.org>
23702
23703         New module 'ctype'.
23704         * lib/ctype.in.h: New file.
23705         * m4/ctype.m4: New file.
23706         * modules/ctype: New file.
23707         * doc/posix-headers/ctype.texi: Mention the new module.
23708
23709 2009-10-18  Jim Meyering  <meyering@redhat.com>
23710
23711         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23712         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23713         right after its initialization, rather than farther down.
23714         Keeping these in close proximity makes it easier to ensure
23715         that each such variable is initialized.  E.g.,
23716
23717             LIB_CLOCK_GETTIME=
23718             AC_SUBST([LIB_CLOCK_GETTIME])
23719
23720         This change also increments these serial numbers.
23721         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23722         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23724
23725 2009-10-18  Bruno Haible  <bruno@clisp.org>
23726
23727         Don't let environment variables perturb build.
23728         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23729         (gl_PREREQ_GETHRXTIME): ... not here.
23730
23731 2009-10-18  Bruno Haible  <bruno@clisp.org>
23732
23733         Avoid symlink attack in localcharset module.
23734         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23735         (O_NOFOLLOW): Define fallback.
23736         (get_charset_aliases): Don't open the file if it is a symbolic link.
23737         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23738         gl_FCNTL_H.
23739         (gl_FCNTL_H): Require it.
23740         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23741         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23742         Reported by Fergal Glynn <fglynn@veracode.com>.
23743
23744 2009-10-18  Bruno Haible  <bruno@clisp.org>
23745
23746         Implement nproc for mingw.
23747         * lib/nproc.c: Include <windows.h>
23748         (num_processors): On native Windows platforms, try GetSystemInfo.
23749
23750 2009-10-18  Bruno Haible  <bruno@clisp.org>
23751
23752         Implement nproc for IRIX.
23753         * lib/nproc.c: Include <sys/sysmp.h>.
23754         (num_processors): On IRIX systems, try sysmp.
23755         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23756
23757 2009-10-18  Bruno Haible  <bruno@clisp.org>
23758
23759         Implement nproc for HP-UX.
23760         * lib/nproc.c: Include <sys/pstat.h>
23761         (num_processors): On HP-UX systems, try pstat_getdynamic.
23762         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23763         pstat_getdynamic.
23764
23765 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23766             Bruno Haible  <bruno@clisp.org>
23767
23768         Implement nproc for NetBSD, OpenBSD.
23769         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23770         (ARRAY_SIZE): New macro.
23771         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23772         * m4/nproc.m4: New file.
23773         * modules/nproc (Files): Add m4/nproc.m4.
23774         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23775         (Makefile.am): Instead, augment lib_SOURCES.
23776
23777 2009-10-18  Bruno Haible  <bruno@clisp.org>
23778
23779         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23780         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23781         sys/param.h.
23782
23783 2009-10-16  Eric Blake  <ebb9@byu.net>
23784
23785         utimensat: new module
23786         * modules/utimensat: New file.
23787         * lib/utimensat.c (utimensat): Likewise.
23788         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23789         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23790         so we can work around Linux bugs.
23791         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23792         * modules/sys_stat (Makefile.am): Substitute them.
23793         * lib/sys_stat.in.h (utimensat): Declare it.
23794         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23795         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23796         * modules/utimensat-tests: New test.
23797         * tests/test-utimensat.c: Likewise.
23798
23799         utimens: let lutimens work on non-symlinks
23800         * lib/utimens.c (lutimens): Fall back to utimens rather than
23801         failing with ENOSYS, when file is not a symlink.
23802         (utimens): Reduce redirection.
23803         * tests/test-lutimens.h (test_lutimens): Update test to cover
23804         non-symlinks.
23805         * tests/test-utimens.h (test_utimens): Update test to cover
23806         symlinks.
23807         * tests/test-utimens.c (main): Update caller.
23808
23809         utimens: cache whether utimensat syscall works
23810         * lib/utimens.c (utimensat_works_really): New cache variable.
23811         (fdutimens, lutimens): Use it to avoid failing syscall.
23812
23813         test-stat-time, test-utimens: improve portability
23814         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23815         ext4 on alpha, and for cygwin.
23816         * tests/test-utimens-common.h: New file.
23817         (nap): Factor delays into single function.
23818         * tests/test-lutimens.h (test_lutimens): Use new header.
23819         * tests/test-futimens.h (test_futimens): Likewise.
23820         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23821         timestamps to occur from same machine, as was done previously for
23822         test_utimens.
23823         * modules/utimens-tests (Files): Ship new file.
23824         * modules/futimens-tests (Files): Likewise.
23825         Reported in part by Jim Meyering.
23826
23827         sys_stat: sort replacement declarations
23828         * lib/sys_stat.in.h: Sort declarations.
23829         * lib/futimens.c (futimens): Fix typo.
23830
23831 2009-10-15  Jim Meyering  <meyering@redhat.com>
23832
23833         don't let environment settings perturb build
23834         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23835         could cause a configure-time and/or build-time malfunction.
23836         Typically, a configure-time function-in-library test is performed
23837         via code like this:
23838
23839           LIB_VAR=
23840           AC_SUBST([LIB_VAR])
23841           prefix_saved_LIBS=$LIBS
23842             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23843                        [test "$ac_cv_search_FUNC" = "none required" ||
23844                         LIB_VAR=$ac_cv_search_FUNC])
23845           LIBS=$prefix_saved_LIBS
23846
23847         However, in each of the files affected by this change, the LIB_VAR=
23848         initialization was omitted.  Thus, when set in the environment, its
23849         value would propagate into generated Makefiles when FUNC is not found
23850         in LIB_NAME.
23851         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23852         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23854
23855 2009-10-14  Eric Blake  <ebb9@byu.net>
23856
23857         fchdir: avoid infinite recursion in mingw
23858         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23859         recursing.
23860
23861         test-stat-time: port to mingw
23862         * tests/test-stat-time.c (force_unlink): Return a value.
23863         (test_ctime) [W32]: Fix compilation error.
23864         (nap): Don't call usleep with too large an argument.  Use
23865         force_unlink.
23866         * doc/pastposix-functions/usleep.texi (usleep): Document the
23867         portability issue.
23868
23869 2009-10-13  Jim Meyering  <meyering@redhat.com>
23870
23871         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23872         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23873         * modules/pipe-filter-ii: Likewise.
23874         * modules/sys_socket-tests: Likewise.
23875         * modules/tsearch-tests: Likewise.
23876         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23877         (check): Depend on it.
23878
23879 2009-10-12  Eric Blake  <ebb9@byu.net>
23880
23881         utimens-tests: port to NFS file systems
23882         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23883         comparisons to avoid spurious failures from timestamp drift
23884         between NFS machines.
23885
23886 2009-10-12  Eric Blake  <ebb9@byu.net>
23887
23888         stat-time-tests: minor cleanups
23889         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23890         * tests/test-stat-time.c (nap): Separate assignment from call.
23891         Suggested by Paolo Bonzini and Bruno Haible.
23892
23893         sys_stat: guarantee struct timespec
23894         * lib/sys_stat.in.h (includes): Always include <time.h>
23895         * modules/sys_stat (Depends-on): Add time.
23896         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23897         mode_t permission values.
23898         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23899         get at subsecond timestamps.
23900
23901 2009-10-10  Eric Blake  <ebb9@byu.net>
23902
23903         futimens: new module
23904         * modules/futimens: New file.
23905         * lib/futimens.c (futimens): Likewise.
23906         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23907         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23908         we can work around Linux bugs.
23909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23910         * modules/sys_stat (Makefile.am): Substitute them.
23911         * lib/sys_stat.in.h (futimens): Declare it.
23912         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23913         * doc/posix-functions/futimens.texi (futimens): Likewise.
23914         * modules/futimens-tests: New test.
23915         * tests/test-futimens.c: Likewise.
23916
23917         utimens: introduce fdutimens
23918         * lib/utimens.h (fdutimens): New prototype.
23919         * lib/utimens.c (gl_futimens): Move guts...
23920         (fdutimens): ...to new interface.
23921         * tests/test-utimens.c (do_fdutimens): Use it.
23922
23923         utimens: add UTIME_NOW and UTIME_OMIT support
23924         * lib/utimens.c (validate_timespec, update_timespec): New helper
23925         functions.
23926         (gl_futimens, lutimens): Use them.
23927         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23928         stdbool, sys_stat.
23929         (Link): Mention resulting library dependency.
23930         * modules/utimecmp (Link): Likewise.
23931         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23932         (Makefile.am): Pick up library dependency.
23933         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23934         definition.
23935         * tests/test-sys_stat.c: Test the definitions.
23936         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23937         * NEWS: Document library dependency.
23938
23939         utimecmp: support symlink timestamps
23940         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23941         hashing when possible.  Use pathconf when available.
23942         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23943         * modules/utimecmp (Depends-on): Add lstat.
23944
23945         utimens: add lutimens interface
23946         * lib/utimens.c (lutimens): New function.
23947         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23948         * lib/utimens.h (lutimens): Declare new interface.
23949         * tests/test-utimens.c (main): Enhance test.
23950         * tests/test-lutimens.h (test_lutimens): New file.
23951         * modules/utimens-tests (Files): Distribute it.
23952         (Depends-on): Add symlink.
23953         (configure.ac): Check for usleep.
23954
23955         utimens: validate futimens usage
23956         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23957         fewer syscalls on failure later on.  Avoid compiler warning on
23958         mingw.
23959         * modules/utimens (Depends-on): Add dup2.
23960
23961         utimens: add test
23962         * modules/utimens-tests: New test.
23963         * tests/test-utimens.h: New file.
23964         * tests/test-futimens.h: Likewise.
23965         * tests/test-utimens.c: Likewise.
23966
23967         doc: mention timestamp portability issues
23968         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23969         instead.
23970         * doc/posix-functions/utime.texi (utime): Likewise.
23971         * doc/posix-functions/utimes.texi (utimes): Likewise.
23972         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23973         instead.
23974         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23975         module.
23976         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23977         Mention weakness with symlink timestamps.
23978         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23979         to utimensat/futimens instead.
23980         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23981
23982         test-dup2: enhance test
23983         * tests/test-dup2.c (main): Also check AT_FDCWD.
23984
23985         test-stat-time: avoid more spurious failures
23986         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23987         xfs; and avoid race if the two timestamps cross quantization edge.
23988
23989         relocatable: prefer 'file system' over 'filesystem'
23990         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23991         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23992         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23993         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23994         * lib/relocatable.c (compute_curr_prefix): Likewise.
23995
23996 2009-10-10  Jim Meyering  <meyering@redhat.com>
23997
23998         stat-time-tests: check for the usleep function
23999         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24000
24001 2009-10-10  Bruno Haible  <bruno@clisp.org>
24002
24003         * modules/xnanosleep: Put the Link section after the Include section.
24004
24005 2009-10-09  Eric Blake  <ebb9@byu.net>
24006
24007         dup2: work around FreeBSD 6.1 bug
24008         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24009         * doc/posix-functions/dup2.texi (dup2): Document it.
24010         Reported by Nelson H. F. Beebe and Jim Meyering.
24011
24012         test-stat-time: port to buggy NFS clients
24013         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24014         (test_ctime): Also skip test if mtime and ctime are skewed.
24015
24016         maint: prefer 'file system' over 'filesystem'
24017         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24018         * doc/posix-functions/lstat.texi (lstat): Likewise.
24019         * lib/file-has-acl.c (file_has_acl): Likewise.
24020         * lib/fwriteerror.c [TEST]: Likewise.
24021         * tests/test-areadlink.h (test_areadlink): Likewise.
24022         * tests/test-areadlinkat-with-size.c (main): Likewise.
24023         * tests/test-areadlinkat.c (main): Likewise.
24024         * tests/test-canonicalize-lgpl.c (main): Likewise.
24025         * tests/test-canonicalize.c (main): Likewise.
24026         * tests/test-fstatat.c (main): Likewise.
24027         * tests/test-linkat.c (main): Likewise.
24028         * tests/test-lstat.h (test_lstat_func): Likewise.
24029         * tests/test-mkdir.h (test_mkdir): Likewise.
24030         * tests/test-readlink.h (test_readlink): Likewise.
24031         * tests/test-remove.c (main): Likewise.
24032         * tests/test-rename.h (test_rename): Likewise.
24033         * tests/test-renameat.c (main): Likewise.
24034         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24035         * tests/test-symlink.h (test_symlink): Likewise.
24036         * tests/test-symlinkat.c (main): Likewise.
24037         * tests/test-unlink.h (test_unlink_func): Likewise.
24038         * tests/test-unlinkat.c (main): Likewise.
24039
24040         maint: make realtime library usage explicit
24041         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24042         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24043         * modules/settime (Link): Likewise.
24044         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24045
24046         test-stat-time: speed up execution
24047         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24048         warning on mingw.
24049         (nap): New helper function.
24050         (prepare_test): Use it to reduce sleep time.
24051         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24052         execution.
24053         * modules/stat-time-tests (configure.ac): Check for usleep.
24054
24055 2009-10-09  Jim Meyering  <meyering@redhat.com>
24056
24057         selinux-h: always use getfilecon wrappers
24058         * lib/getfilecon.c: New file.
24059         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24060         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24061         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24062         (fgetfilecon): Provide a stub.
24063         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24064         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24065         file unconditionally.
24066         When <selinux/selinux.h> is found, arrange to use wrappers.
24067         * modules/selinux-h (Files): Add getfilecon.c.
24068         (Makefile.am): Substitute include-next-related bits
24069         into the now-always-generated selinux/selinux.h file.
24070         * doc/glibc-functions/lgetfilecon.texi: New file.
24071         * doc/glibc-functions/fgetfilecon.texi: New file.
24072         * doc/glibc-functions/getfilecon.texi: New file.
24073         * doc/glibc-functions/getfilecon-desc.texi: New file.
24074         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24075         which to pull in the new files.
24076         * MODULES.html.sh (Misc): Add selinux-h.
24077
24078 2009-10-08  Jim Meyering  <meyering@redhat.com>
24079
24080         unistd: fix comment typo
24081         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24082
24083 2009-10-08  Eric Blake  <ebb9@byu.net>
24084
24085         areadlink: use SIZE_MAX consistently
24086         * modules/areadlink (Depends-on): Add stdint.
24087         * modules/areadlink-with-size (Depends-on): Likewise.
24088         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24089         gives NULL; drop sys/types, since unistd gives size_t; and add
24090         stdint for SIZE_MAX.
24091         (SIZE_MAX): Rely on headers.
24092         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24093         and add stdint.
24094         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24095         (SIZE_MAX): Likewise.
24096         (INITIAL_BUF_SIZE): Turn into enum.
24097         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24098
24099 2009-10-08  Jim Meyering  <meyering@redhat.com>
24100
24101         areadlinkat: avoid compilation failure
24102         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24103         Fix typo in comment.
24104
24105 2009-10-07  Eric Blake  <ebb9@byu.net>
24106
24107         areadlinkat-with-size: new module
24108         * modules/areadlinkat-with-size: New module.
24109         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24110         * lib/areadlink.h (areadlinkat): Declare it.
24111         * MODULES.html.sh (File system functions): Mention it.
24112         * modules/areadlinkat-with-size-tests: New test.
24113         * tests/test-areadlinkat-with-size.c: New file.
24114
24115         xreadlinkat: new module
24116         * modules/xreadlinkat: New module.
24117         * lib/xreadlinkat.c (xreadlinkat): New file.
24118         * lib/xreadlink.h (xreadlinkat): Declare it.
24119         * MODULES.html.sh (File system functions): Mention it.
24120
24121         areadlinkat: new module
24122         * lib/at-func.c (FUNC_FAIL): New define.
24123         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24124         * modules/areadlinkat: New module.
24125         * lib/linkat.c (areadlinkat): Move...
24126         * lib/areadlinkat.c (areadlinkat): ...to new file.
24127         * lib/areadlink.h (areadlinkat): Declare it.
24128         * modules/linkat (Depends-on): Add areadlinkat.
24129         * MODULES.html.sh (File system functions): Mention it.
24130         * modules/areadlinkat-tests: New test.
24131         * tests/test-areadlinkat.c: New file.
24132
24133         areadlink, areadlink-with-size: add tests
24134         * modules/areadlink-tests: New test.
24135         * modules/areadlink-with-size-tests: Likewise.
24136         * tests/test-areadlink.h: New file.
24137         * tests/test-areadlink.c: Likewise.
24138         * tests/test-areadlink-with-size.c: Likewise.
24139
24140         maint: minor cleanups
24141         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24142         _UNUSED_PARAMETER_ instead.
24143         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24144         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24145         * modules/linkat-tests (Files): Distribute test-link.h.
24146
24147         openat, utimens: whitespace cleanup
24148         * lib/openat.c: Prefer space throughout, rather than mix of 8
24149         spaces vs. tabs.
24150         * lib/at-func.c: Likewise.
24151         * lib/utimens.c: Likewise.
24152
24153         openat: avoid using wrong fd
24154         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24155         working directory chooses same fd.
24156         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24157
24158         mkdir, mkdirat: fix cygwin 1.5.x bug
24159         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24160         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24161         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24162         bug.
24163         (gl_PREREQ_MKDIR): Delete unused macro.
24164         * modules/mkdir (Files): Track file rename.
24165         (configure.ac): Update macro name.
24166         * modules/openat (Depends-on): Add mkdir.
24167         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24168
24169         mkdir, mkdirat: add tests
24170         * modules/mkdir-tests: New test.
24171         * tests/test-mkdir.h: New file.
24172         * tests/test-mkdir.c: Likewise.
24173         * tests/test-mkdirat.c: Likewise.
24174         * modules/openat-tests (Files): Add new files.
24175         (Makefile.am): Run new test.
24176
24177 2009-10-06  Eric Blake  <ebb9@byu.net>
24178
24179         doc: tweak *at function documentation
24180         * doc/posix-functions/faccessat.texi (faccessat): Mention
24181         known issue with replacement.
24182         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24183         * doc/posix-functions/linkat.texi (linkat): Likewise.
24184         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24185         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24186         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24187         * doc/posix-functions/renameat.texi (renameat): Likewise.
24188         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24189
24190         openat: fix GNU/Hurd bug in unlinkat
24191         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24192         broken.
24193         * doc/posix-functions/unlink.texi (unlink): Document this.
24194         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24195
24196         fdopendir: fix GNU/Hurd bug
24197         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24198         allowing non-directory fds.
24199         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24200         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24201         * modules/dirent (Makefile.am): Substitute it.
24202         * lib/dirent.in.h (fdopendir): Declare replacement.
24203         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24204         * tests/test-fdopendir.c (main): Test something other than
24205         /dev/null, since on Hurd that behaves like a directory.
24206
24207         test-symlink: port to GNU/Hurd
24208         * tests/test-symlink.h (test_symlink): Relax expected errno.
24209
24210         doc: tweak more cygwin information
24211         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24212         now compatible with glibc.
24213         * doc/posix-functions/getopt.texi (getopt): Likewise.
24214
24215         getopt-gnu: add another test
24216         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24217         guarantee behavior relied on by m4.
24218         * tests/test-getopt.c (main): Use it.
24219         * modules/getopt-posix-tests (Depends-on): Add setenv.
24220         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24221
24222         getopt: fix compilation on darwin
24223         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24224         include.
24225         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24226         Reported by Ludovic Courtès.
24227
24228 2009-10-06  Bruno Haible  <bruno@clisp.org>
24229
24230         * modules/size_max (Description): Discourage its use.
24231         Reported by Simon Josefsson.
24232
24233 2009-10-06  Jim Meyering  <meyering@redhat.com>
24234
24235         linkat: avoid compilation failure
24236         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24237
24238 2009-10-05  Eric Blake  <ebb9@byu.net>
24239
24240         linkat: support Linux 2.6.17
24241         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24242         linkat on Linux, but allow cache variable override.
24243         * lib/linkat.c (rpl_linkat): Define override.
24244         * modules/linkat (Depends-on): Add symlinkat.
24245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24246         * modules/unistd (Makefile.am): Substitute it.
24247         * lib/unistd.in.h (linkat): Declare replacement.
24248         Reported by Pádraig Brady.
24249
24250         quotearg: port test to systems with C.UTF-8 locale
24251         * tests/test-quotearg.c (struct result_strings): Add another
24252         member, differentiating between C.ASCII and C.UTF-8 handling.
24253         (compare_strings): Add parameter.
24254         (main): Adjust all callers.
24255
24256         getopt: avoid clash with FreeBSD _getopt_internal
24257         * lib/getopt.in.h (_getopt_internal): Override the name.
24258         * lib/getopt_int.h (includes): Pick up any overrides.
24259         Reported by Reuben Thomas.
24260
24261         hash: allow C89 compilation
24262         * lib/hash.c (check_tuning): Move declaration before statement.
24263         Reported by Reuben Thomas.
24264
24265 2009-10-05  Karl Berry  <karl@gnu.org>
24266
24267         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24268
24269 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24270             Bruno Haible  <bruno@clisp.org>
24271
24272         * lib/uname.c (uname): Use a table-driven algorithm to compute
24273         Windows NT versions.
24274
24275 2009-10-04  Bruno Haible  <bruno@clisp.org>
24276
24277         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24278         program_invocation_short_name.
24279         * modules/progname (configure.ac): Test for presence of
24280         program_invocation_short_name.
24281         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24282
24283 2009-10-04  Bruno Haible  <bruno@clisp.org>
24284
24285         * lib/progname.c (set_program_name): Fix comment.
24286         Reported by Jim Meyering.
24287
24288 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24289             Bruno Haible  <bruno@clisp.org>
24290
24291         * lib/uname.c: Include <string.h>.
24292         (uname): Do only one call to GetVersionEx in the common case.
24293
24294 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24295             Bruno Haible  <bruno@clisp.org>
24296
24297         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24298         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24299         (uname): Add support for Windows CE and various non-x86 CPU types.
24300
24301 2009-10-03  Bruno Haible  <bruno@clisp.org>
24302
24303         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24304         invocation to tests/configure.ac.
24305         Reported by Ian Beckwith <ianb@erislabs.net>.
24306
24307 2009-10-02  Eric Blake  <ebb9@byu.net>
24308
24309         fchdir: avoid compiler warning
24310         * lib/fchdir.c (canonicalize_file_name)
24311         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24312
24313         test-open: support mingw errno values
24314         * tests/test-open.h (test_open): Relax test.
24315         * tests/test-fopen.h (test_fopen): Likewise.
24316         * tests/test-openat-safer.c (main): Likewise.
24317
24318         open: fix opening directory on mingw
24319         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24320
24321         test-open: on GNU/Hurd, /dev/null is a directory
24322         * tests/test-fopen.h (main): Rename...
24323         (test_fopen): ...to this.  Use a guaranteed non-directory when
24324         confirming open behavior on trailing slash.
24325         * tests/test-openat-safer.c (main): Likewise.
24326         * tests/test-open.h (main): Likewise....
24327         (test_open): ...to this.
24328         * tests/test-fopen.c (main): Adjust caller.
24329         * tests/test-fopen-safer.c (main): Likewise.
24330         * tests/test-open.c (main): Likewise.
24331         * tests/test-fcntl-safer.c (main): Likewise.
24332         Reported by Samuel Thibault.
24333
24334         rename, fchdir: don't ignore chdir failure
24335         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24336         * lib/rename.c (rpl_rename) [W32]: Likewise.
24337         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24338         an empty destination directory if source cannot be renamed,
24339         although there is still possibility for failure.
24340         * doc/posix-functions/rename.texi (rename): Document the race.
24341         Reported by Jim Meyering.
24342
24343         maint: cleanup whitespace in recent commits
24344         * lib/rename.c (rpl_rename): Remove tabs.
24345         * tests/test-link.h (test_link): Likewise.
24346         * lib/fchdir.c (get_name): Likewise.
24347         Reported by Jim Meyering.
24348
24349 2009-10-02  Ben Pfaff  <blp@gnu.org>
24350
24351         relocatable-prog-wrapper: Add missing dependency on
24352         double-slash-root.
24353         * modules/relocatable-prog-wrapper: Add dependency.
24354         Reported by Ian Beckwith <ianb@erislabs.net>.
24355
24356 2009-10-02  Eric Blake  <ebb9@byu.net>
24357
24358         renameat: fix Solaris bugs
24359         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24360         needed fixing.
24361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24362         * modules/stdio (Makefile.am): Substitute it.
24363         * lib/stdio.in.h (renameat): Declare replacement.
24364         * lib/renameat.c (rpl_renameat): Implement fix.
24365
24366         renameat: new module
24367         * modules/renameat: New file.
24368         * lib/renameat.c (renameat): Likewise.
24369         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24371         * modules/stdio (Makefile.am): Substitute them.
24372         * lib/stdio.in.h (renameat): Declare it.
24373         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24374         * doc/posix-functions/renameat.texi (renameat): Likewise.
24375         * modules/renameat-tests: New test.
24376         * tests/test-renameat.c: Likewise.
24377
24378         rename: fix mingw bugs
24379         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24380         directory overwrite bugs.
24381
24382         rename: fix another cygwin 1.5 bug
24383         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24384         checks.
24385         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24386         unnecessary cygwin workarounds.  Also work around bug with moving
24387         full directory onto an empty one.
24388         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24389
24390         rename-dest-slash: merge into rename module
24391         * modules/rename-dest-slash (Status): Mark obsolete.
24392         (Depends-on): Add rename.
24393         (Files): Let rename do it all.
24394         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24395         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24396         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24397         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24398         * lib/rename.c (rpl_rename): Update comments.
24399
24400         rename: fix cygwin 1.5.x bugs
24401         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24402         * lib/rename.c (rpl_rename): Work around them.
24403         * modules/rename (Depends-on): Add same-inode.
24404
24405         rename: fix Solaris 10 bug
24406         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24407         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24408         was the only bug.
24409
24410         rename: fix Solaris 9 bug
24411         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24412         on non-directory.  Avoid calling exit.
24413         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24414         strdup.
24415         * modules/rename-tests (Depends-on): Drop lstat.
24416         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24417         (gl_PREREQ_RENAME): Delete unused macro.
24418
24419         rename-dest-slash: fix NetBSD bug
24420         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24421         links.
24422         * modules/rename-dest-slash (Depends-on): Add same-inode.
24423
24424         rename-tests: new test, exposes several platform bugs
24425         * modules/rename-tests: New file.
24426         * tests/test-rename.h: Likewise.
24427         * tests/test-rename.c: Likewise.
24428         * doc/posix-functions/rename.texi (rename): Improve documentation,
24429         including bugs that will eventually be fixed in gnulib.
24430
24431 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24432
24433         * lib/uname.c: Include <stdlib.h>
24434         (uname): Assume version info is available.
24435
24436 2009-10-02  Jim Meyering  <meyering@redhat.com>
24437
24438         gnu-web-doc-update: correct --help output
24439         * build-aux/gnu-web-doc-update: Make --help output relevant.
24440
24441         gnu-web-doc-update: add standard options
24442         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24443
24444         gnu-web-doc-update: New module.
24445         Use this script to automatically update the on-line web documentation
24446         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24447         * modules/gnu-web-doc-update: New file, from coreutils.
24448         * build-aux/gnu-web-doc-update: New script.
24449
24450 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24451
24452         link: LoadLibrary is not needed.
24453         * lib/link.c: Use GetModuleHandle.
24454
24455 2009-10-01  Eric Blake  <ebb9@byu.net>
24456
24457         getopt: bump serial number
24458         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24459         change.
24460
24461         tests: tighten link, rmdir, and remove tests
24462         * tests/test-link.h (includes): No need to use <config.h> here.
24463         Clean up if directory hard link was created, otherwise test for
24464         trailing '.'.
24465         * tests/test-linkat.c (main): Simplify.
24466         * tests/test-remove.c (main): Enhance test for trailing '.'.
24467         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24468
24469 2009-10-01  Jim Meyering  <meyering@redhat.com>
24470
24471         maint.mk: requiring "make major" was annoying, for a "minor" release.
24472         What is intended is "stable", to contrast with alpha and beta,
24473         so require "make stable", not "make major".
24474         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24475         (get_tool_versions): Likewise.
24476         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24477
24478 2009-09-30  Ben Pfaff  <blp@gnu.org>
24479
24480         Fix broken build of replacement for Windows tmpfile().
24481         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24482         flags argument added along with the 'mkostemp' module.
24483
24484 2009-09-28  Bruno Haible  <bruno@clisp.org>
24485
24486         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24487         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24488         to 'remove_elt'.
24489         (gl_list_remove): Update.
24490         * lib/gl_list.c (gl_list_remove): Update.
24491         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24492         to 'remove_elt'.
24493         (gl_oset_remove): Update.
24494         * lib/gl_list.c (gl_oset_remove): Update.
24495         Reported by Eric Blake.
24496
24497 2009-09-28  Eric Blake  <ebb9@byu.net>
24498
24499         doc: mention yet more cygwin 1.7 status
24500         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24501         cygwin.
24502         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24503         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24504
24505         argp: fix test failure
24506         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24507         that are not upper-case.  Pass correct range to tolower.
24508
24509 2009-09-27  Jim Meyering  <meyering@redhat.com>
24510
24511         test-yesno: work around sparc-dash here-document infelicity
24512         Without this change, the literal \177 byte in a here document
24513         would make dash 0.5.5.1-3 access uninitialized memory.
24514         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24515         Instead, use a marker, "@", and filter through tr to create the desired
24516         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24517
24518 2009-09-27  Bruno Haible  <bruno@clisp.org>
24519
24520         Disable untested support for new flavours of ACLs on AIX.
24521         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24522         progress.
24523         * lib/set-mode-acl.c (qset_acl): Likewise.
24524
24525 2008-12-07  Bruno Haible  <bruno@clisp.org>
24526
24527         Add support for new flavours of ACLs on AIX. (Untested.)
24528         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24529         (file_has_acl): Add support for newer AIX.
24530         * lib/set-mode-acl.c (qset_acl): Likewise.
24531         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24532         Rainer Tammer <tammer@tammer.net>.
24533
24534 2009-09-26  Eric Blake  <ebb9@byu.net>
24535
24536         argp: fix compilation of getopt
24537         * lib/getopt.in.h (includes): Use different guard than glibc.
24538         Reported by Sergey Poznyakoff.
24539
24540         doc: mention more cygwin 1.7 status
24541         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24542         bug.
24543         * doc/posix-functions/execl.texi (execl): Likewise.
24544         * doc/posix-functions/execle.texi (execle): Likewise.
24545         * doc/posix-functions/execlp.texi (execlp): Likewise.
24546         * doc/posix-functions/execv.texi (execv): Likewise.
24547         * doc/posix-functions/execve.texi (execve): Likewise.
24548         * doc/posix-functions/execvp.texi (execvp): Likewise.
24549         * doc/glibc-functions/canonicalize_file_name.texi
24550         (canonicalize_file_name): Cygwin 1.7 now provides this.
24551         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24552         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24553         on AT_SYMLINK_NOFOLLOW.
24554
24555 2009-09-24  Eric Blake  <ebb9@byu.net>
24556
24557         test-linkat: make test more robust
24558         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24559
24560         getopt: fix inclusion guards for cygwin
24561         * modules/getopt-posix (Depends-on): Add include-next.
24562         (Makefile.am): Substitute more items in replacement header.
24563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24564         <getopt.h>.
24565         * lib/getopt.in.h (includes): Use split inclusion guard, and
24566         prefer <getopt.h> over include <unistd.h> when one is present.
24567         (option): Also override name of 'struct option'.
24568
24569         same-inode: revert prior change; it is not yet ready
24570         * NEWS: Undo mention of this change.
24571         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24572         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24573         * lib/cycle-check.c (cycle_check): Likewise.
24574         * lib/same.c (same_name): Likewise.
24575         * lib/at-func2.c (at_func2): Likewise.
24576
24577 2009-09-23  Eric Blake  <ebb9@byu.net>
24578
24579         linkat: new module
24580         * modules/linkat: New file.
24581         * lib/at-func2.c (at_func2): Likewise.
24582         * lib/linkat.c (linkat): Likewise.
24583         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24584         * lib/openat-priv.h (at_func2): Add declaration.
24585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24586         * modules/unistd (Makefile.am): Substitute them.
24587         * lib/unistd.in.h (linkat): Declare it.
24588         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24589         * doc/posix-functions/linkat.texi (linkat): Likewise.
24590         * doc/posix-functions/link.texi (link): Tweak wording.
24591         * tests/test-link.c (main): Move guts...
24592         * tests/test-link.h (test_link): ...into new file.
24593         * modules/linkat-tests: New test.
24594         * tests/test-linkat.c: Likewise.
24595         * modules/link-tests (Files): Ship new file.
24596         (Depends-on): Add stdbool.
24597
24598         dirname: add library-safe mdir_name
24599         * lib/dirname.h (mdir_name): New prototype.
24600         * lib/dirname.c (dir_name): Move guts...
24601         (mdir_name): ...to new function that avoids xalloc_die.
24602
24603         fchdir: another mingw fix
24604         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24605         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24606         on mingw (where it has not yet been ported), and make it optional
24607         elsewhere.
24608         (_gl_register_fd): Use it.
24609
24610         same-inode: make SAME_INODE tri-state, to port to mingw
24611         * NEWS: Mention this change.
24612         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24613         st_ino always being 0.
24614         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24615         * lib/cycle-check.c (cycle_check): Likewise.
24616         * lib/same.c (same_name): Likewise.
24617
24618         lstat: avoid mingw compilation error
24619         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24620         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24621         lstat ourselves.
24622         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24623         was adequate.
24624         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24625         the checks for lstat.
24626         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24627
24628         link: fix test failure on Solaris 9
24629         * lib/link.c (rpl_link): Don't assume link will catch bogus
24630         trailing slash on source.
24631
24632         test-symlinkat: enhance test
24633         * tests/test-readlink.c (main): Move guts...
24634         * tests/test-readlink.h (test_readlink): ...into new file.
24635         * tests/test-symlink.c (main): Move guts...
24636         * tests/test-symlink.h (test_symlink): ...into new file.
24637         * tests/test-symlinkat.c (main): Use new files for further
24638         coverage.
24639         (do_symlink, do_readlink): New helper functions.
24640         * modules/symlink-tests (Files): Ship new file.
24641         (Depends-on): Add stdbool.
24642         * modules/readlink-tests (Files): Ship new file.
24643         (Depends-on): Add stdbool.
24644         * modules/symlinkat-tests (Files): Use new files.
24645
24646 2009-09-23  Eric Blake  <ebb9@byu.net>
24647
24648         readlink: document portability issue with symlink length
24649         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24650         systems have bogus st_size on symlinks, and mention the
24651         areadlink-with-size module.
24652         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24653         * doc/posix-functions/readlink.texi (readlink): Mention the
24654         areadlink module, and ERANGE failure.
24655         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24656         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24657
24658         readlink: fix Solaris 9 bug with trailing slash
24659         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24660         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24661         * doc/posix-functions/readlink.texi (readlink): Document this.
24662         * modules/readlink-tests: New test.
24663         * tests/test-readlink.c: Likewise.
24664
24665         readlink: fix cygwin 1.5.x bug with return type
24666         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24667         * lib/unistd.in.h (readlink): Use ssize_t.
24668         * lib/readlink.c (readlink): Likewise.
24669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24670         * modules/unistd (Makefile.am): Substitute it.
24671         * lib/unistd.in.h (readlink): Declare replacement.
24672         * doc/posix-functions/readlink.texi (readlink): Document this.
24673
24674         symlink: use throughout gnulib
24675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24676         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24677         symlink is not used.
24678         * modules/symlinkat (Depends-on): Add symlink.
24679         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24680         * modules/canonicalize-tests (Depends-on): Likewise.
24681         * modules/lstat-tests (Depends-on): Likewise.
24682         * modules/openat-tests (Depends-on): Likewise.
24683         * modules/remove-tests (Depends-on): Likewise.
24684         * modules/rmdir-tests (Depends-on): Likewise.
24685         * modules/unlink-tests (Depends-on): Likewise.
24686         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24687         * tests/test-canonicalize.c (symlink): Likewise.
24688         * tests/test-fstatat.c (symlink): Likewise.
24689         * tests/test-lstat.c (symlink): Likewise.
24690         * tests/test-remove.c (symlink): Likewise.
24691         * tests/test-rmdir.c (symlink): Likewise.
24692         * tests/test-unlink.c (symlink): Likewise.
24693         * tests/test-unlinkat.c (symlink): Likewise.
24694
24695         symlink: new module, for Solaris 9 bug
24696         * modules/symlink: New file.
24697         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24698         * lib/symlink.c: Likewise.
24699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24700         * modules/unistd (Makefile.am): Substitute them.
24701         * lib/unistd.in.h (symlink): Declare replacement.
24702         * MODULES.html.sh (File system functions): Mention it.
24703         * doc/posix-functions/symlink.texi (symlink): Likewise.
24704         * modules/symlink-tests: New test.
24705         * tests/test-symlink.c: Likewise.
24706
24707 2009-09-23  Bruno Haible  <bruno@clisp.org>
24708
24709         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24710         when needed.
24711         Test case: gnulib-tool --import --with-tests atexit inttypes.
24712         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24713
24714 2009-09-23  Bruno Haible  <bruno@clisp.org>
24715
24716         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24717         subcommand, not in a subshell.
24718
24719 2009-09-22  Eric Blake  <ebb9@byu.net>
24720
24721         unistd: sort replacement declarations
24722         * lib/unistd.in.h: Sort declarations.
24723
24724         open, openat: minor optimization
24725         * lib/open.c (open): If open succeeded, len is non-zero.
24726         * lib/openat.c (rpl_openat): Likewise.
24727
24728         link-follow: ensure correct result
24729         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24730         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24731         distinguish between possible failures.
24732
24733 2009-09-21  Eric Blake  <ebb9@byu.net>
24734
24735         fts: avoid compiler warning
24736         * lib/fts.c (dirent_inode_sort_may_be_useful)
24737         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24738
24739 2009-09-19  Bruno Haible  <bruno@clisp.org>
24740
24741         * lib/progreloc.c (canonicalize_file_name): New declaration.
24742
24743 2009-09-19  Eric Blake  <ebb9@byu.net>
24744
24745         link: fix quoting
24746         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24747
24748         openat: fix openat bugs on Solaris 9
24749         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24750         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24751         * modules/openat (Depends-on): Add open.
24752         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24753         * modules/fcntl-h (Makefile.am): Substitute it.
24754         * lib/fcntl.in.h (openat): Declare replacement.
24755         * doc/posix-functions/openat.texi (openat): Document this.
24756
24757         openat: move fstatat and unlinkat into correct files
24758         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24759         compiled.
24760         * lib/openat.c (fstatat, unlinkat): Move...
24761         * lib/fstatat.c (fstatat): ...into correct files.
24762         * lib/unlinkat.c (unlinkat): Likewise.
24763
24764         openat: fix unlinkat bugs on Solaris 9
24765         * lib/unlinkat.c (unlinkat): New file.
24766         * modules/openat (Depends-on): Add unlink.
24767         (Files): Distribute it.
24768         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24769         trailing slash behavior is broken.
24770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24771         * modules/unistd (Makefile.am): Substitute it.
24772         * lib/unistd.in.h (unlinkat): Declare replacement.
24773         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24774
24775         openat: fix fstatat bugs on Solaris 9
24776         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24777         stat.
24778         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24779
24780         test-unlinkat: enhance test, to expose Solaris 9 bug
24781         * tests/test-unlink.c (main): Factor guts...
24782         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24783         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24784         * tests/test-rmdir.c (main): Adjust caller.
24785         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24786         (unlinker): New helper function.
24787         (rmdirat): Enhance check.
24788         * modules/rmdir-tests (Depends-on): Add stdbool.
24789         * modules/unlink-tests (Depends-on): Likewise.
24790         (Files): Add test-unlink.h.
24791         * modules/openat-tests (Files): Likewise.
24792         (Depends-on): Add unlinkdir.
24793
24794         test-fstatat: new test, to expose Solaris 9 bugs
24795         * tests/test-stat.c (main): Factor guts...
24796         * tests/test-stat.h (test_stat_func): ...into new file.
24797         * tests/test-lstat.c (main): Factor guts...
24798         * tests/test-lstat.h (test_lstat_func): ...into new file.
24799         * tests/test-fstatat.c: New file.
24800         * modules/stat-tests (Files): Add test-stat.h.
24801         * modules/lstat-tests (Files): Add test-lstat.h.
24802         (Depends-on): Add stdbool.
24803         * modules/openat-tests (Depends-on): Add pathmax.
24804         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24805         (Makefile.am): Run new test.
24806
24807         remove: new module, for mingw and Solaris 9 bugs
24808         * modules/remove: New file.
24809         * lib/remove.c: Likewise.
24810         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24812         * modules/stdio (Makefile.am): Use them.
24813         * lib/stdio.in.h (remove): Declare replacement.
24814         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24815         * doc/posix-functions/remove.texi (remove): Likewise.
24816         * modules/remove-tests: New test.
24817         * tests/test-remove.c: Likewise.
24818
24819         unlink: new module, for Solaris 9 bug
24820         * modules/unlink: New file.
24821         * lib/unlink.c: Likewise.
24822         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24824         * modules/unistd (Makefile.am): Use them.
24825         * lib/unistd.in.h (stat): Declare replacement.
24826         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24827         * doc/posix-functions/unlink.texi (unlink): Likewise.
24828         * modules/unlink-tests: New test.
24829         * tests/test-unlink.c: Likewise.
24830
24831         lstat: fix Solaris 9 bug
24832         * lib/lstat.c (lstat): Also check for trailing slash on
24833         non-symlink, non-directories.  Use stat module to simplify logic.
24834         * doc/posix-functions/lstat.texi (lstat): Document it.
24835         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24836         (configure.ac): Check for symlink.
24837         * tests/test-lstat.c (main): Add more tests.
24838
24839         stat: add as dependency to other modules
24840         * modules/chown (Depends-on): Add stat.
24841         * modules/euidaccess (Depends-on): Likewise.
24842         * modules/fchdir (Depends-on): Likewise.
24843         * modules/isdir (Depends-on): Likewise.
24844         * modules/link (Depends-on): Likewise.
24845         * modules/lstat (Depends-on): Likewise.
24846         * modules/mkdir-p (Depends-on): Likewise.
24847         * modules/modechange (Depends-on): Likewise.
24848         * modules/open (Depends-on): Likewise.
24849         * modules/readlink (Depends-on): Likewise.
24850         * modules/same (Depends-on): Likewise.
24851
24852         stat: fix Solaris 9 bug
24853         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24854         slash.
24855         * lib/stat.c (rpl_stat): Work around it.
24856         * doc/posix-functions/stat.texi (stat): Update documentation.
24857
24858         stat: new module, for mingw bug
24859         * modules/stat: New file.
24860         * lib/stat.c: Likewise.
24861         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24863         * modules/sys_stat (Makefile.am): Use them.
24864         * lib/sys_stat.in.h (stat): Declare replacement.
24865         * lib/openat.c (fstatat): Deal with lstat and stat being function
24866         macros.
24867         * modules/openat (Depends-on): Add inline.
24868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24869         * doc/posix-functions/stat.texi (stat): Likewise.
24870         * modules/stat-tests: New test.
24871         * tests/test-stat.c: Likewise.
24872
24873 2009-09-19  Jim Meyering  <meyering@redhat.com>
24874
24875         syntax-check: detect unnecessary inclusion of canonicalize.h
24876         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24877
24878 2009-09-19  Eric Blake  <ebb9@byu.net>
24879
24880         canonicalize-lgpl: adjust clients to use correct header
24881         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24882         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24883         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24884         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24885         * lib/progreloc.c (includes): Likewise.
24886
24887 2009-09-19  Jim Meyering  <meyering@redhat.com>
24888
24889         test-posixtm.c: correct a comment
24890         * tests/test-posixtm.c: Correct first-line comment.
24891         Spotted by Eric Blake.
24892
24893 2009-09-16  Jim Meyering  <meyering@redhat.com>
24894
24895         posixtm-tests: make T const-correct; add a test case
24896         * tests/test-posixtm.c (T): Declare const.
24897         Add a test for -(2^31+1).
24898         Remove useless can-succeed-only-in-2002 test.
24899
24900         posixtm-tests: adjust the sole failing test
24901         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24902         expected output matches what mktime now produces.  Cross-checked via
24903         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24904
24905         posixtm: move #ifdef'd tests into a new module
24906         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24907         * tests/test-posixtm.c: ... this new file.
24908         * modules/posixtm-tests: New module.
24909
24910 2009-09-19  Eric Blake  <ebb9@byu.net>
24911
24912         openat: simplify use of at-func.c
24913         * lib/at-func.c (includes): Include prerequisites here, to
24914         simplify requirements on client files.
24915         * lib/openat-priv.h: Add double-inclusion guard.
24916         * lib/faccessat.c (includes): Simplify.
24917         * lib/fchmodat.c (includes): Likewise.
24918         * lib/fchownat.c (includes): Likewise.
24919         * lib/mkdirat.c (includes): Likewise.
24920         * lib/mkfifoat.c (includes): Likewise.
24921         * lib/symlinkat.c (includes): Likewise.
24922
24923         openat: allow return of fd 0
24924         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24925         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24926         unistd-safer.
24927         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24928         <fcntl.h>; this module does not leak fds.
24929         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24930         must be allowed to return 0, leaving openat_safer to add the
24931         safety.
24932         (openat_permissive): Avoid writing to just-opened fd 2 if
24933         restoring the current directory fails.
24934         * lib/openat-die.c (openat_restore_fail): Add comment.
24935         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24936         (save_cwd): Guarantee safe fd, but without use of open_safer.
24937         * tests/test-openat.c: New test.
24938         * modules/openat-tests (Files, Makefile.am): Distribute and build
24939         new file.
24940
24941         relocatable-prog-wrapper: fix build
24942         * modules/relocatable-prog-wrapper (Files): Update name of
24943         canonicalize m4 file, broken on 2009-09-17.
24944         Reported by emad hajjar <aleppos@hotmail.com>.
24945
24946 2009-09-19  Bruno Haible  <bruno@clisp.org>
24947
24948         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24949         * lib/safe-alloc.c: Likewise.
24950         Reported by Ian Beckwith <ianb@erislabs.net>.
24951
24952 2009-09-18  Bruno Haible  <bruno@clisp.org>
24953
24954         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24955         Reported by <erobles@sensacd.com.mx>.
24956
24957 2009-09-17  Eric Blake  <ebb9@byu.net>
24958
24959         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24960         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24961         slashes when checking if last component is missing.
24962         * tests/test-canonicalize.c (main): Test this.
24963
24964         canonicalize, canonicalize-lgpl: honor // if distinct from /
24965         * modules/canonicalize (Files): Add double-slash-root.m4.
24966         * modules/canonicalize-lgpl (Files): Likewise.
24967         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24968         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24969         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24970         fallback definition.
24971         (canonicalize_filename_mode): Use it to protect //.
24972         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24973         (__realpath): Likewise.
24974         * tests/test-canonicalize.c (main): Test this.
24975         * tests/test-canonicalize-lgpl.c (main): Likewise.
24976         * modules/canonicalize-tests (Depends-on): Add same-inode.
24977         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24978
24979         canonicalize-lgpl: fix glibc bug with trailing slash
24980         * m4/canonicalize-lgpl.m4: Move contents...
24981         * m4/canonicalize.m4: ...here.
24982         (gl_CANONICALIZE_LGPL): Factor realpath check...
24983         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24984         glibc 2.3.5 bug, fixed 2005-04-27.
24985         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24986         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24987         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24988         * modules/canonicalize-lgpl (Files): Manage file rename.
24989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24990         * modules/stdlib (Makefile.am): Substitute witness.
24991         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24992         is needed.
24993         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24994         replacement is required.
24995         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24996         * doc/glibc-functions/canonicalize_file_name.texi
24997         (canonicalize_file_name): Document this.
24998         * doc/posix-functions/realpath.texi (realpath): Likewise.
24999
25000         canonicalize-lgpl: reject non-directory with trailing slash
25001         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25002         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25003         catches failures in glibc 2.3.5.
25004         * tests/test-canonicalize.c (main): Likewise.
25005
25006         canonicalize-lgpl: use native realpath if it works
25007         * lib/canonicalize-lgpl.c (realpath): Guard with
25008         FUNC_REALPATH_WORKS.
25009         * lib/stdlib.in.h (realpath): Make declaration optional based on
25010         HAVE_REALPATH.
25011         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25012         native realpath works.
25013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25014         * modules/stdlib (Makefile.am): Substitute witness.
25015
25016         canonicalize, canonicalize-lgpl: use <stdlib.h>
25017         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25018         (Include): Mention <stdlib.h>.
25019         (configure.ac): Mention functions we provide.
25020         * modules/canonicalize (configure.ac): Likewise.
25021         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25022         realpath if canonicalize_file_name is missing.
25023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25024         * modules/stdlib (Makefile.am): Substitute witnesses.
25025         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25026         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25027         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25028         * NEWS: Document this.
25029         * doc/glibc-functions/canonicalize_file_name.texi
25030         (canonicalize_file_name): Likewise.
25031         * doc/posix-functions/realpath.texi (realpath): Likewise.
25032         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25033
25034         test-canonicalize: consolidate into single C program
25035         * tests/test-canonicalize.sh: Delete; move setup into...
25036         * tests/test-canonicalize.c (main): ...the program, making it
25037         easier to run in debugger.  Add some tests.
25038         * modules/canonicalize-tests (Files): Remove unused file.
25039         (Depends-on): Add progname.
25040         (configure.ac, Makefile.am): Simplify.
25041
25042         test-canonicalize-lgpl: consolidate into single C program
25043         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25044         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25045         easier to run in debugger.  Add some tests.
25046         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25047         (configure.ac, Makefile.am): Simplify.
25048
25049         canonicalize: avoid resolvepath
25050         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25051         unnecessary checks.
25052         * lib/canonicalize.c (includes): Simplify.
25053         (canonicalize_file_name): Drop resolvepath implementation.
25054         * modules/canonicalize (Depends-on): Drop filenamecat.
25055
25056         canonicalize: don't lose errno
25057         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25058         over calls to free.
25059
25060         canonicalize: simplify errno handling
25061         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25062         assignment.
25063
25064         canonicalize, canonicalize-lgpl: update module dependencies
25065         * modules/canonicalize (Depends-on): Add extensions, lstat,
25066         pathmax, stdlib.
25067         (Files): Drop pathmax.h.
25068         (configure.ac): Adjust macro name.
25069         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25070         lstat, stdlib, sys_stat.
25071         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25072         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25073         extensions.
25074         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25075         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25076         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25077         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25078         declaration, if available.
25079         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25080         we can rely on the readlink module.
25081         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25082         (includes): Use <unistd.h> unconditionally.
25083
25084 2009-09-17  Eric Blake  <ebb9@byu.net>
25085
25086         maint: make Include sections of modules consistent
25087         * modules/alloca: Use only header name; no need to list #include.
25088         * modules/alloca-opt: Likewise.
25089         * modules/arpa_inet: Likewise.
25090         * modules/canon-host: Likewise.
25091         * modules/configmake: Likewise.
25092         * modules/dirent: Likewise.
25093         * modules/eealloc: Likewise.
25094         * modules/environ: Likewise.
25095         * modules/fchdir: Likewise.
25096         * modules/fcntl: Likewise.
25097         * modules/fcntl-h: Likewise.
25098         * modules/gethrxtime: Likewise.
25099         * modules/gettime: Likewise.
25100         * modules/ignore-value: Likewise.
25101         * modules/inet_ntop: Likewise.
25102         * modules/inet_pton: Likewise.
25103         * modules/inttypes: Likewise.
25104         * modules/isnand-nolibm: Likewise.
25105         * modules/isnanf-nolibm: Likewise.
25106         * modules/mbchar: Likewise.
25107         * modules/mbfile: Likewise.
25108         * modules/mbiter: Likewise.
25109         * modules/mbuiter: Likewise.
25110         * modules/netdb: Likewise.
25111         * modules/netinet_in: Likewise.
25112         * modules/nproc: Likewise.
25113         * modules/pagealign_alloc: Likewise.
25114         * modules/poll: Likewise.
25115         * modules/printf-frexp: Likewise.
25116         * modules/pthread: Likewise.
25117         * modules/putenv: Likewise.
25118         * modules/random_r: Likewise.
25119         * modules/relocatable-prog: Likewise.
25120         * modules/search: Likewise.
25121         * modules/select: Likewise.
25122         * modules/selinux-h: Likewise.
25123         * modules/settime: Likewise.
25124         * modules/signal: Likewise.
25125         * modules/size_max: Likewise.
25126         * modules/socklen: Likewise.
25127         * modules/ssize_t: Likewise.
25128         * modules/stdarg: Likewise.
25129         * modules/stdbool: Likewise.
25130         * modules/stddef: Likewise.
25131         * modules/stdint: Likewise.
25132         * modules/stdio: Likewise.
25133         * modules/stdlib: Likewise.
25134         * modules/string: Likewise.
25135         * modules/strings: Likewise.
25136         * modules/sys_file: Likewise.
25137         * modules/sys_ioctl: Likewise.
25138         * modules/sys_select: Likewise.
25139         * modules/sys_socket: Likewise.
25140         * modules/sys_stat: Likewise.
25141         * modules/sys_time: Likewise.
25142         * modules/sys_times: Likewise.
25143         * modules/sys_utsname: Likewise.
25144         * modules/sys_wait: Likewise.
25145         * modules/sysexits: Likewise.
25146         * modules/time: Likewise.
25147         * modules/times: Likewise.
25148         * modules/tmpfile: Likewise.
25149         * modules/trim: Likewise.
25150         * modules/unistd: Likewise.
25151         * modules/wchar: Likewise.
25152         * modules/wctype: Likewise.
25153
25154 2009-09-17  Bruno Haible  <bruno@clisp.org>
25155
25156         Make getdate.y compile on QNX and NetBSD 5 / i386.
25157         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25158         TIME_T_FITS_IN_LONG_INT.
25159         * lib/getdate.y (long_time_t): New type.
25160         (relative_time): Change type of 'seconds' field to long_time_t.
25161         (get_date): Update types of local variables. Check against overflow
25162         during conversion from long_time_t to time_t.
25163         Reported by Matt Kraai <kraai@ftbfs.org>
25164         and Hasso Tepper <hasso@netbsd.org>.
25165
25166 2009-09-17  Bruno Haible  <bruno@clisp.org>
25167
25168         * modules/COPYING: Update copyright years.
25169         * modules/README: Likeiwse.
25170         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25171         Reported by Ian Beckwith <ianb@erislabs.net>.
25172
25173 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25174
25175         * users.txt: Update references for gnuit package.
25176
25177 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25178
25179         * m4/getdelim.m4: Fix typo in copyright line.
25180
25181 2009-09-17  Bruno Haible  <bruno@clisp.org>
25182
25183         * lib/atoll.c: Use the standard header with GPL copyright.
25184         * lib/argz.in.h: Likewise.
25185         * lib/glob.c: Likewise.
25186         * lib/glob-libc.h: Likewise.
25187         * lib/random_r.c: Likewise.
25188         * lib/siglist.h: Likewise.
25189         * lib/strsignal.c: Likewise.
25190         Reported by Ian Beckwith <ianb@erislabs.net>.
25191
25192 2009-09-17  Eric Blake  <ebb9@byu.net>
25193
25194         rmdir: ensure correct dependency order
25195         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25196
25197 2009-09-17  Bruno Haible  <bruno@clisp.org>
25198
25199         Disable assertion that fails on NetBSD 5 / i386.
25200         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25201         Reported by Sam Steingold <sds@gnu.org>
25202         and Hasso Tepper <hasso@netbsd.org>.
25203
25204 2009-09-16  Eric Blake  <ebb9@byu.net>
25205
25206         unlinkdir: port to mingw
25207         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25208         on which no one can unlink a directory.
25209
25210         stdlib: sort witness names
25211         * modules/stdlib (Makefile.am): Sort replacements.
25212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25213         * lib/stdlib.in.h: Likewise.
25214
25215         parse-duration-tests: avoid link failure
25216         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25217         LIBINTL.
25218         Reported by Tom G. Christensen.
25219
25220         openat-tests: ensure unlinkat behaves like rmdir
25221         * tests/test-rmdir.c (main): Factor guts...
25222         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25223         * modules/rmdir-tests (Files): Ship new file.
25224         * modules/openat-tests: New test.
25225         * tests/test-unlinkat.c: Likewise.
25226
25227         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25228         * modules/rmdir-errno (Status, Notice): Now obsolete.
25229
25230         rmdir: work around cygwin 1.5.x and mingw bugs
25231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25232         * lib/rmdir.c (rmdir): Work around it.
25233         * modules/rmdir (Status, Notice): No longer obsolete.
25234         (Files): Add dos.m4.
25235         (Depends-on): Add unistd.
25236         (configure.ac): Set witnesses.
25237         (License): Relax to LGPLv2+.
25238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25239         * modules/unistd (Makefile.am): Substitute witnesses.
25240         * lib/unistd.in.h (rmdir): Declare replacement.
25241         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25242         * modules/rmdir-tests: New tests.
25243         * tests/test-rmdir.c: Likewise.
25244
25245 2009-09-15  Eric Blake  <ebb9@byu.net>
25246
25247         fchdir: improve use of replacement functions
25248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25251         REPLACE_CLOSEDIR.
25252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25253         * modules/sys_stat (Makefile.am): Substitute correct witness.
25254         * modules/dirent (Makefile.am): Likewise.
25255         * modules/unistd (Makefile.am): Likewise.
25256         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25257         * lib/unistd.in.h (dup): Likewise.
25258         * lib/sys_stat.in.h (fstat): Likewise.
25259
25260         maint: ignore gnulib-tool temp files
25261         * .gitignore: Ignore files created during gnulib-tool --test.
25262
25263 2009-09-13  Jim Meyering  <meyering@redhat.com>
25264
25265         posixtm: don't reject a time that specify "60" as the number of seconds
25266         * lib/posixtm.c (posixtime): The code to reject invalid dates
25267         would also reject a time specified with the .60 suffix.
25268         But POSIX allows that, in order to accommodate leap seconds.
25269         So don't reject it.
25270         (main): Adjust tests accordingly.
25271         * modules/posixtm (Depends-on): Add stpcpy.
25272
25273 2009-09-11  Jim Meyering  <meyering@redhat.com>
25274
25275         announce-gen: include [$release_type] in emitted Subject:
25276         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25277         e.g., [stable] in the emitted Subject: line.
25278
25279 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25280
25281         Remove obsolete macros from several modules.
25282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25283         obsolete Autoconf macros with their modern counterparts.
25284         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25285         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25287         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25288         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25289         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25291         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25292         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25293         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25294         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25296         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25297         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25298         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25299         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25300         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25301         * m4/time_r.m4 (gl_TIME_R): Likewise.
25302         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25303         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25304         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25305
25306         Fix copyright header in build-aux scripts.
25307         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25308         recommendation.
25309         * build-aux/ncftpput-ftp: Likewise.
25310         * build-aux/update-copyright: Likewise.
25311
25312 2009-09-09  Eric Blake  <ebb9@byu.net>
25313
25314         test-link: allow Linux choice of errno
25315         * tests/test-link.c (main): Relax test for alternate error.
25316
25317         strndup: fix improper m4 caching
25318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25319         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25320         (gl_PREREQ_STRNDUP): Delete.
25321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25322         * modules/string (Makefile.am): Substitute it.
25323         * lib/string.in.h (strndup): Modernize prototype.
25324
25325         getcwd: port to mingw
25326         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25327         different from the POSIX assumptions made throughout the getcwd
25328         module; fortunately, the mingw getcwd does not need replacement.
25329         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25330         * modules/getcwd-tests: New test.
25331         * tests/test-getcwd.c: Likewise.
25332
25333         link: fix platform bugs
25334         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25335         * lib/link.c (link): Work around them.  Fix related mingw bug.
25336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25337         * modules/unistd (Makefile.am): Substitute it.
25338         * lib/unistd.in.h (link): Declare replacement.
25339         * doc/posix-functions/link.texi (link): Document this.
25340         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25341
25342         test-link: consolidate into single C program, test more cases
25343         * tests/test-link.sh: Delete.
25344         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25345         at least Cygwin and Solaris.
25346         * modules/link-tests (Files): Remove unused file.
25347         (Depends-on): Add errno, sys_stat.
25348         (Makefile.am): Simplify.
25349
25350 2009-09-08  Bruno Haible  <bruno@clisp.org>
25351
25352         Work around towlower, towupper bug on mingw.
25353         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25354         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25355         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25356         * doc/posix-functions/towupper.texi: Likewise.
25357         Reported by Eric Blake.
25358
25359 2009-09-08  Jim Meyering  <meyering@redhat.com>
25360
25361         build: don't try to run autoheader if we don't use it
25362         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25363         is not used in configure.ac.
25364
25365 2009-09-08  Eric Blake  <ebb9@byu.net>
25366
25367         euidaccess: fix compilation error
25368         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25369
25370         rawmemchr: relax license
25371         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25372         okay.
25373         Reported by Jim Meyering.
25374
25375         mkfifoat: new module
25376         * modules/mkfifoat: New file.
25377         * lib/mkfifoat.c: Likewise.
25378         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25380         * modules/sys_stat (Makefile.am): Use them.
25381         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25382         * MODULES.html.sh (File system functions): Mention module.
25383         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25384         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25385         * modules/mkfifoat-tests: New test.
25386         * tests/test-mkfifoat.c: Likewise.
25387
25388         strchrnul: relax license
25389         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25390         okay.
25391         Reported by Jim Meyering.
25392
25393 2009-09-08  Eric Blake  <ebb9@byu.net>
25394
25395         fstatat: fix compilation on Solaris
25396         * lib/fstatat.c (includes): Add fcntl.h.
25397         Reported by Pádraig Brady.
25398
25399 2009-09-07  Eric Blake  <ebb9@byu.net>
25400
25401         rename: modernize replacement
25402         * modules/rename (Depends-on): Add stdio.
25403         (configure.ac): Declare witness.
25404         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25405         stdio take care of replacement.
25406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25407         * modules/stdio (Makefile.am): Substitute them.
25408         * lib/stdio.in.h (rename): Declare replacement.
25409         * lib/rename.c (includes): Allow cross-compilation to non-windows
25410         machines.
25411         * doc/posix-functions/rename.texi (rename): Improve
25412         documentation.
25413
25414         stdio: sort witness names
25415         * modules/stdio (Makefile.am): Sort replacements.
25416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25417         * lib/stdio.in.h: Likewise.
25418
25419         getcwd: minor cleanups
25420         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25421         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25422
25423         openat: provide more convenience names
25424         * modules/faccessat (configure.ac): Add C witness.
25425         * lib/unistd.in.h (readlinkat): Fix typo.
25426         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25427         convenience wrappers.
25428         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25429         wrappers in syntax checks.
25430
25431 2009-09-06  Eric Blake  <ebb9@byu.net>
25432
25433         doc: fix comments in recent patches
25434         * lib/faccessat.c: Mention correct function.
25435         * lib/fchmodat.c: Likewise.
25436         * lib/fchownat.c: Likewise.
25437         * lib/symlinkat.c: Likewise.
25438         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25439         constants.
25440
25441         faccessat, symlinkat: continue cleanup of previous patch
25442         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25443         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25444         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25446         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25447         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25448         set.
25449
25450 2009-09-06  Bruno Haible  <bruno@clisp.org>
25451
25452         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25453         (fstatat): Declare if GNULIB_FSTATAT is set.
25454         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25455         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25456         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25457         * modules/fcntl-h (Files): Remove m4/openat.m4.
25458         * modules/sys_stat (Files): Remove m4/openat.m4.
25459         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25460         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25461         * modules/unistd (Files): Remove m4/openat.m4.
25462         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25463         GNULIB_OPENAT.
25464         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25465         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25467         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25468         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25469         gl_OPENAT_DEFAULTS.
25470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25471         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25472         Don't require gl_OPENAT_DEFAULTS.
25473         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25474         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25475         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25476         (gl_OPENAT_DEFAULTS): Remove macro.
25477
25478 2009-09-06  Bruno Haible  <bruno@clisp.org>
25479
25480         * modules/openat (configure.ac): Remove unneeded witness.
25481
25482 2009-09-06  Bruno Haible  <bruno@clisp.org>
25483
25484         Set errno to ENOSYS when a function is entirely unsupported.
25485         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25486         EOPNOTSUPP.
25487         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25488         * modules/chown (Depends-on): Remove errno.
25489
25490 2009-09-06  Bruno Haible  <bruno@clisp.org>
25491
25492         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25493
25494 2009-09-06  Bruno Haible  <bruno@clisp.org>
25495
25496         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25497
25498 2009-09-06  Ben Pfaff  <blp@gnu.org>
25499             Bruno Haible  <bruno@clisp.org>
25500
25501         Work around a glibc bug in strtok_r.
25502         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25503         Undefine if UNDEFINE_STRTOK_R is set.
25504         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25506         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25508         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25509         UNDEFINE_STRTOK_R.
25510         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25511
25512 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25513
25514         exclude: minor fix
25515         * lib/exclude.c: Include wctype.h
25516
25517 2009-09-06  Akim Demaille  <demaille@gostai.com>
25518
25519         bootstrap: improve error message
25520         * build-aux/bootstrap (find_tool): Upon failure, report the list
25521         of candidates.
25522         Honor the initial value of the envvar.
25523
25524 2009-09-05  Eric Blake  <ebb9@byu.net>
25525
25526         symlinkat: new module
25527         * modules/symlinkat: New file.
25528         * lib/symlinkat.c: Likewise.
25529         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25531         * modules/unistd (Makefile.am): Use them.
25532         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25533         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25534         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25535         * MODULES.html.sh (File system functions): Mention module.
25536         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25537         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25538         * modules/symlinkat-tests: New test.
25539         * tests/test-symlinkat.c: Likewise.
25540
25541         test-openat-safer: add more checks
25542         * tests/test-openat-safer.c (main): Check more code paths.
25543
25544 2009-09-05  Jim Meyering  <meyering@redhat.com>
25545
25546         syntax-check: detect unnecessary inclusion of openat.h
25547         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25548
25549 2009-09-05  Bruno Haible  <bruno@clisp.org>
25550
25551         Support towlower, towupper.
25552         * doc/posix-functions/towlower.texi: Mention module wctype.
25553         * doc/posix-functions/towupper.texi: Likewise.
25554         * lib/wctype.in.h (towlower, towupper): New functions.
25555         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25556         (ASSERT): New macro.
25557         (e): New variable.
25558         (main): Test also towlower, towupper. Test WEOF argument.
25559         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25560
25561 2009-09-05  Bruno Haible  <bruno@clisp.org>
25562
25563         Fix conversion behaviour when the input is invalid.
25564         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25565         mark occurring in first pass of indirect conversion.
25566         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25567         input.
25568         Found by clang's static analyzer.
25569
25570 2009-09-05  Bruno Haible  <bruno@clisp.org>
25571
25572         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25573         where direct conversion is possible.
25574
25575 2009-09-04  Eric Blake  <ebb9@byu.net>
25576
25577         openat: fail with ENOENT on empty name
25578         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25579         buffer.
25580
25581         link-follow: fix logic bug in prior patch
25582         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25583         reversed sense of yes and no in prior patch.  Avoid confusing
25584         compilation failure with desired semantics.
25585
25586         link-follow: accomodate mingw and cross-compilation
25587         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25588         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25589         cross-compilation results to -1, to make linkat easier to
25590         implement when cross-compiling.  Trivially support mingw.
25591         * modules/link-follow (configure.ac): Call new name.
25592         * NEWS: Mention this.
25593
25594 2009-09-03  Eric Blake  <ebb9@byu.net>
25595
25596         faccessat: compile replacement
25597         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25598         needed.
25599
25600         fts: fix compilation error
25601         * lib/fts.c (includes): Re-add "openat.h", for
25602         openat_needs_fchdir.
25603
25604         faccessat: new module
25605         * modules/faccessat: New file.
25606         * lib/faccessat.c: Likewise.
25607         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25609         * modules/unistd (Makefile.am): Use it.
25610         * lib/unistd.in.h (faccessat): Declare it.
25611         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25612         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25613         * MODULES.html.sh (File system functions): Mention it.
25614         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25615         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25616
25617         euidaccess: prefer POSIX over non-standard implementation
25618         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25619         * lib/euidaccess.c (euidaccess): Use it if available.
25620
25621         openat: make template easier to use
25622         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25623         AT_FUNC_F2 to be undefined.
25624         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25625         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25626         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25627         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25628         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25629         Likewise.
25630         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25631         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25632         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25633         Likewise.
25634
25635         openat: declare in POSIX headers
25636         * NEWS: Mention this.
25637         * modules/openat (configure.ac): Declare witnesses.
25638         (Depends-on): Add fcntl-h, sys_stat, unistd.
25639         (Include): Mention correct headers.
25640         * modules/fcntl-h (Depends-on): Add link-warning.
25641         (Files): Add openat.m4.
25642         (Makefile.am): Substitute witnesses.
25643         * modules/sys_stat (Files, Makefile.am): Likewise.
25644         * modules/unistd (Files, Makefile.am): Likewise.
25645         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25646         (gl_OPENAT_DEFAULTS): New macro.
25647         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25649         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25650         (SYS_STAT_H): Remove unused variable.
25651         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25652         * lib/fcntl--.h (includes): Remove unneeded header.
25653         * lib/openat-safer.c (includes): Likewise.
25654         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25655         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25656         appropriate headers.
25657         (__OPENAT_PREFIX): Delete.
25658         * lib/fcntl.in.h (openat): Provide declaration.
25659         (AT_FDCWD): Fix Solaris bug.
25660         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25661         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25662         * lib/fchmodat.c (includes):  Adjust to find declaration.
25663         * lib/fchownat.c (includes): Likewise.
25664         * lib/mkdirat.c (includes): Likewise.
25665         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25666         still visible.
25667
25668 2009-09-02  Eric Blake  <ebb9@byu.net>
25669
25670         errno: use consistently
25671         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25672         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25673         * lib/canonicalize.c (ELOOP): Likewise.
25674         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25675         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25676         * lib/lchown.c (EOPNOTSUPP): Likewise.
25677         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25678         * lib/savewd.c (ESTALE): Likewise.
25679         * lib/settime.c (ENOSYS): Likewise.
25680         * lib/utimens.c (ENOSYS): Likewise.
25681         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25682         * lib/chdir-safer.c (ELOOP): Likewise.
25683         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25684         * modules/c-stack (Depends-on): Add errno.
25685         * modules/canonicalize (Depends-on): Likewise.
25686         * modules/chdir-safer (Depends-on): Likewise.
25687         * modules/fdopendir (Depends-on): Likewise.
25688         * modules/inet_ntop (Depends-on): Likewise.
25689         * modules/inet_pton (Depends-on): Likewise.
25690         * modules/lchown (Depends-on): Likewise.
25691         * modules/openat (Depends-on): Likewise.
25692         * modules/savewd (Depends-on): Likewise.
25693         * modules/settime (Depends-on): Likewise.
25694         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25695
25696         fts: avoid leaking fds
25697         * modules/fts (Depends-on): Add cloexec.
25698         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25699         flag.
25700
25701         fts: make directory fds more robust
25702         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25703         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25704
25705         backupfile, chdir-long, fts, savedir: make safer
25706         * lib/backupfile.c (includes): Use "dirent--.h", since
25707         numbered_backup can write to stderr during readdir.
25708         * lib/savedir.c (includes): Likewise.
25709         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25710         emulation can write to stderr on failure.
25711         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25712         * lib/getcwd.c: Document why opendir_safer is unused.
25713         * lib/glob.c: Likewise.
25714         * lib/scandir.c: Likewise.
25715         * lib/openat-proc.c: Likewise, for open_safer.
25716         * modules/backupfile (Depends-on): Add dirent-safer.
25717         * modules/savedir (Depends-on): Likewise.
25718         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25719         * modules/chdir-long (Depends-on): Add openat-safer.
25720
25721         openat-safer: new module
25722         * modules/openat-safer: New file.
25723         * lib/openat-safer.c: Likewise.
25724         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25725         * lib/fcntl-safer.h (openat_safer): Declare.
25726         * lib/fcntl--.h (openat): Override.
25727         * MODULES.html.sh (File descriptor based I/O): Mention it.
25728         * lib/openat.h: Add double-inclusion guards.
25729         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25730         "fcntl--.h", so we can implement openat.
25731         * modules/openat-safer-tests: New test.
25732         * tests/test-openat-safer.c: New file.
25733
25734         dirent-safer: new module
25735         * modules/dirent-safer: New file.
25736         * lib/dirent--.h: Likewise.
25737         * lib/dirent-safer.h: Likewise.
25738         * lib/opendir-safer.c: Likewise.
25739         * m4/dirent-safer.m4: Likewise.
25740         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25741         * modules/dirent-safer-tests: New test.
25742         * tests/test-dirent-safer.c: New file.
25743         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25744
25745         fdopendir: optimize on mingw
25746         * lib/unistd.in.h (_gl_directory_name): New prototype.
25747         * lib/fchdir.c (_gl_directory_name): Implement it.
25748         (fchdir): Use it to simplify implementation.
25749         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25750         fchdir, when available, to avoid calling [f]chdir().
25751
25752         fdopendir: split into its own module
25753         * lib/openat.c (fdopendir): Move...
25754         * lib/fdopendir.c: ...into new file.
25755         * modules/fdopendir: New module.
25756         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25757         * modules/openat (Depends-on): Add fdopendir.
25758         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25759         fdopendir here.
25760         * modules/savedir (Depends-on): Only need fdopendir, not full
25761         openat.
25762         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25763         * lib/openat.h (fdopendir): Drop prototype.
25764         * lib/dirent.in.h (fdopendir): Provide prototype.
25765         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25766         * modules/dirent (Makefile.am): Substitute them.
25767         * MODULES.html.sh (File system functions): Mention it.
25768         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25769         * modules/fdopendir-tests: New file.
25770         * tests/test-fdopendir.c: Likewise.
25771
25772         fchdir: use more consistent macro convention
25773         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25774         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25775         REPLACE_FCHDIR, rather than relying on config.h macros.
25776         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25777         inside a single make-time REPLACE_FCHDIR block, rather than using
25778         the config.h FCHDIR_REPLACEMENT.
25779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25780         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25781         Manage fstat replacement.
25782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25783         REPLACE_FCHDIR.
25784         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25785         (Makefile.am): Substitute REPLACE_FCHDIR.
25786         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25787         FCHDIR_REPLACEMENT.
25788         * lib/dup-safer.c (dup_safer): Likewise.
25789         * lib/dup2.c (rpl_dup2): Likewise.
25790         * lib/dup3.c (rpl_dup3): Likewise.
25791         * lib/open.c (rpl_open): Likewise.
25792
25793         fchdir: simplify error handling, and support dup3
25794         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25795         stdbool, malloc-posix, realloc-posix.
25796         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25797         (ensure_dirs_slot): Return false on allocation failure.
25798         (rpl_dup2): Delete.
25799         (_gl_register_dup): New function.
25800         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25801         (_gl_register_fd): Close fd on allocation failure.
25802         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25803         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25804         prototype.
25805         (rpl_dup2_fchdir): Delete prototype.
25806         * lib/open.c (open): Update caller.
25807         * lib/dup2.c (dup2): Track fchdir metadata.
25808         * lib/dup3.c (dup3): Likewise.
25809         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25811
25812 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25813
25814         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25815         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25816         don't pass arguments to AC_OUTPUT.
25817
25818 2009-09-02  Bruno Haible  <bruno@clisp.org>
25819
25820         * modules/mkdtemp (License): Relicense under LGPLv2+.
25821         Reported by Paolo Bonzini.
25822
25823 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25824
25825         Replace uses of obsolete autoconf macros in Jim's modules.
25826         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25827         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25828         can evoke a warning from autoconf when run with -Wobsolete
25829         enabled.  They were declared obsolete for good reasons (see
25830         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25831         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25832         should not continue using the deprecated macros.
25833         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25834         obsolete Autoconf macros with modern counterparts.
25835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25836         * m4/dos.m4 (gl_AC_DOS): Likewise.
25837         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25838         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25839         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25840         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25841         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25842         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25843         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25844         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25846         Likewise.
25847         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25848         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25849         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25850         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25851         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25853
25854 2009-09-01  Eric Blake  <ebb9@byu.net>
25855
25856         fchdir: fix off-by-one bug in previous patch
25857         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25858         (_gl_unregister_fd): Delete useless if.
25859
25860 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25861
25862         maint.mk: sort the list of syntax-check rules
25863         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25864         easier to get a sense of progress when the rules are run sequentially
25865         and take a long time.
25866
25867 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25868
25869         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25870         * modules/netinet_in: Likewise.
25871         * modules/sys_file: Likewise.
25872         * modules/sys_ioctl: Likewise.
25873         * modules/sys_select: Likewise.
25874         * modules/sys_socket: Likewise.
25875         * modules/sys_stat: Likewise.
25876         * modules/sys_time: Likewise.
25877         * modules/sys_times: Likewise.
25878         * modules/sys_utsname: Likewise.
25879         * modules/sys_wait: Likewise.
25880
25881 2009-09-01  Jim Meyering  <meyering@redhat.com>
25882
25883         fts: help ensure that return values are not ignored
25884         * lib/fts_.h (__GNUC_PREREQ): Define.
25885         (__attribute_warn_unused_result__): Define.
25886         (fts_children, fts_close, fts_open, fts_read): Declare with
25887         __attribute_warn_unused_result__.
25888
25889         fts: fts_close now fails also when closing a dir file descriptor fails
25890         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25891         and propagate to caller, along with errno.
25892
25893         announce-gen: correct formatting in --help output
25894         * build-aux/announce-gen (usage): Move the one-line description in
25895         --help output "up", to where it belongs, just after Usage:.
25896
25897 2009-08-31  Eric Blake  <ebb9@byu.net>
25898
25899         fchdir: port to mingw
25900         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25901         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25902         opened, then use a substitute.
25903         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25904         replacement.
25905         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25906         (_gl_register_fd): No need to check stat if open already filters
25907         all directories.
25908         (fchdir): Fix error condition to match POSIX.
25909         * modules/fchdir (Depends-on): Add sys_stat.
25910         * doc/posix-functions/open.texi (open): Document the limitation.
25911         * modules/fchdir-tests: New file.
25912         * tests/test-fchdir.c: Likewise.
25913
25914         canonicalize: allow cross-testing from cygwin to mingw
25915         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25916         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25917         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25918         Likewise.
25919         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25920         target does not support symlinks.
25921         * tests/test-canonicalize-lgpl.sh: Likewise.
25922
25923         chown: avoid compilation warning on mingw
25924         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25925         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25926         mingw.
25927         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25928         * modules/chown (Depends-on): Add errno.
25929
25930 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25931
25932         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25933         command.
25934
25935 2009-08-31  Jim Meyering  <meyering@redhat.com>
25936
25937         canonicalize: remove useless initialization
25938         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25939         initialization of local, "end".
25940
25941 2009-08-30  Bruno Haible  <bruno@clisp.org>
25942
25943         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25944         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25945         ENOSYS.
25946
25947 2009-08-30  Bruno Haible  <bruno@clisp.org>
25948
25949         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25950         /usr/xpg4/bin/tr when it exists.
25951         * tests/test-pipe-filter-gi1.sh: Likewise.
25952
25953 2009-08-30  Bruno Haible  <bruno@clisp.org>
25954
25955         Work around deficient /usr/bin/id program on Solaris.
25956         * tests/test-file-has-acl.sh (ID): New variable.
25957         * tests/test-set-mode-acl.sh (ID): Likewise.
25958         * tests/test-copy-acl.sh (ID): Likewise.
25959         * tests/test-copy-file.sh (ID): Likewise.
25960
25961 2009-08-30  Bruno Haible  <bruno@clisp.org>
25962
25963         New module 'xstriconveh'.
25964         * lib/xstriconveh.h: New file.
25965         * lib/xstriconveh.c: New file.
25966         * modules/xstriconveh: New file.
25967
25968 2009-08-30  Bruno Haible  <bruno@clisp.org>
25969
25970         Make it easier to use mem_cd_iconveh.
25971         * lib/striconveh.h (iconveh_t): New type.
25972         (iconveh_open, iconveh_close): New declarations.
25973         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25974         with a single 'const iconveh_t *' argument.
25975         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25976         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25977         with a single 'const iconveh_t *' argument.
25978         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25979         * tests/test-striconveh.c (main): Update.
25980         * NEWS: Mention the change.
25981
25982 2009-08-30  Bruno Haible  <bruno@clisp.org>
25983
25984         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25985         problem.
25986
25987 2009-08-30  Bruno Haible  <bruno@clisp.org>
25988
25989         Work around iconv_open problem on Solaris.
25990         * lib/iconv_open-solaris.gperf: New file.
25991         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25992         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25993         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25994         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25995         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25996         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25997
25998 2009-08-29  Jim Meyering  <meyering@redhat.com>
25999
26000         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26001         * top/maint.mk (cvs-check): Remove target; it was just an alias
26002         to the better-named vc-diff-check.
26003         (maintainer-distcheck): Remove rule.  It was used only from
26004         the (alpha/beta/major) target, and all of its commands but one
26005         were coreutils-specific.
26006         (vc-dist): Remove rule.
26007         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26008         Run vc-diff-check, not vc-dist.
26009         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26010
26011 2009-08-27  Bruno Haible  <bruno@clisp.org>
26012
26013         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26014         of 0.
26015
26016 2009-08-27  Bruno Haible  <bruno@clisp.org>
26017
26018         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26019         compilers.
26020         * doc/func.texi: Document the SunPRO C bug.
26021
26022 2009-08-27  Bruno Haible  <bruno@clisp.org>
26023
26024         Fix link error on Solaris.
26025         * tests/test-parse-duration.c (xstrdup): Remove function.
26026
26027 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26028
26029         ignore-value: handle pointer types, too
26030         * lib/ignore-value.h (__attribute__): Remove definition.
26031         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26032         of a more concise and more-often effective "(void) i" statement.
26033         (ignore_ptr): New function to suppress warnings from functions that
26034         return pointers, and to make it explicit that one function doesn't
26035         handle all cases.
26036
26037 2009-08-25  Bruno Haible  <bruno@clisp.org>
26038
26039         dup2: work around a Linux bug.
26040         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26041         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26042         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26043         Reported by Simon Josefsson.
26044
26045 2009-08-25  Jim Meyering  <meyering@redhat.com>
26046
26047         libguestfs uses gnulib
26048         * users.txt: Add libguestfs.
26049
26050 2009-08-24  Eric Blake  <ebb9@byu.net>
26051
26052         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26053         * lib/pipe2.c (includes): Add binary-io.h.
26054         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26055
26056 2009-08-24  Bruno Haible  <bruno@clisp.org>
26057
26058         Tolerate declared but missing accept4 syscall.
26059         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26060         available.
26061         * lib/sys_socket.in.h (accept4): If the function is already present,
26062         override it.
26063         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26064         * modules/accept4 (Makefile.am): Compile accept4.c always.
26065         Reported by Paolo Bonzini and Eric Blake.
26066
26067 2009-08-23  Bruno Haible  <bruno@clisp.org>
26068
26069         New module 'accept4'.
26070         * lib/sys_socket.in.h (accept4): New declaration.
26071         * lib/accept4.c: New file.
26072         * m4/accept4.m4: New file.
26073         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26074         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26075         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26076         HAVE_ACCEPT4.
26077         * modules/accept4: New file.
26078         * doc/glibc-functions/accept4.texi: Mention the new module.
26079
26080 2009-08-24  Jim Meyering  <meyering@redhat.com>
26081
26082         progname: also set global program_invocation_name, when possible
26083         Before this change, a libtool-enabled program that calls glibc's
26084         error function would report the program name as
26085         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26086         * modules/progname (configure.ac): Check for a declaration of
26087         program_invocation_name.
26088         * lib/progname.c:  Include <errno.h>.
26089         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26090         Set program_invocation_name.
26091
26092 2009-08-23  Bruno Haible  <bruno@clisp.org>
26093
26094         * lib/dup3.c: Include <string.h>.
26095
26096 2009-08-23  Bruno Haible  <bruno@clisp.org>
26097
26098         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26099         * lib/pipe2.c (pipe2): Likewise.
26100         Suggested by Eric Blake.
26101
26102 2009-08-23  Bruno Haible  <bruno@clisp.org>
26103
26104         Tolerate declared but missing dup3 syscall.
26105         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26106         * lib/unistd.in.h (dup3): If the function is already present,
26107         override it.
26108         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26109         * modules/dup3 (Makefile.am): Compile dup3.c always.
26110         Reported by Paolo Bonzini.
26111
26112 2009-08-23  Bruno Haible  <bruno@clisp.org>
26113
26114         Tolerate declared but missing pipe2 syscall.
26115         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26116         available.
26117         * lib/unistd.in.h (pipe2): If the function is already present,
26118         override it.
26119         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26120         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26121         Reported by Paolo Bonzini.
26122
26123 2009-08-23  Bruno Haible  <bruno@clisp.org>
26124
26125         * lib/pipe2.c (pipe2): Move #ifs inside function.
26126
26127 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26128
26129         quotearg: document limitations of quote_these_too
26130         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26131         those limitations are created.
26132         * lib/quotearg.h (set_char_quoting): Document that digits and
26133         letters that are special after backslash are not permitted.
26134         (quotearg_char): Cross-reference set_char_quoting documentation.
26135
26136 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26137
26138         quotearg: implement custom_quoting_style
26139         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26140         right_quote fields.
26141         (set_custom_quoting): New public function.
26142         (quotearg_buffer_restyled): Add left_quote and right_quote
26143         arguments, handle them very much like locale quoting, and update
26144         all uses.
26145         (quotearg_n_custom): New public function.
26146         (quotearg_n_custom_mem): New public function.
26147         (quotearg_custom): New public function.
26148         (quotearg_custom_mem): New public function.
26149         * lib/quotearg.h: Prototype and document new public functions.
26150         (enum quoting_style): For escape_quoting_style and
26151         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26152         ignored even though they're otherwise like c_quoting_style.
26153         Add custom_quoting_style member and document with comparison to
26154         clocale_quoting_style.
26155         * tests/test-quotearg.c (custom_quotes): New array.
26156         (custom_results): New array.
26157         (main): Extend to test custom quoting.
26158
26159 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26160
26161         quotearg: fix right quote escaping when it's in quote_these_too
26162         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26163         quote, be sure to prepend only one backslash.
26164         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26165         (main): Test it.
26166
26167 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26168
26169         quotearg-tests: test escaping of embedded locale quotes
26170         * tests/test-quotearg.c (struct result_strings): Add member for
26171         new input.
26172         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26173         (inputs): Add new input.
26174         (results_g): Add expected results.
26175         (flag_results): Likewise.
26176         (locale_results): Likewise.
26177         (compare_strings): Check those.
26178
26179 2009-08-23  Bruno Haible  <bruno@clisp.org>
26180
26181         Tests for module 'dup3'.
26182         * modules/dup3-tests: New file.
26183         * tests/test-dup3.c: New file.
26184
26185         New module 'dup3'.
26186         * lib/unistd.in.h (dup3): New declaration.
26187         * lib/dup3.c: New file.
26188         * m4/dup3.m4: New file.
26189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26190         HAVE_DUP3.
26191         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26192         * modules/dup3: New file.
26193         * doc/glibc-functions/dup3.texi: Mention the new module.
26194
26195 2009-08-23  Bruno Haible  <bruno@clisp.org>
26196
26197         Tweak the dup2 test.
26198         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26199         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26200         the test file is still empty. Fix argument order of lseek.
26201
26202 2009-08-23  Bruno Haible  <bruno@clisp.org>
26203
26204         Avoid test link errors when the modules getopt-gnu, gettext are used.
26205         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26207
26208 2009-08-23  Bruno Haible  <bruno@clisp.org>
26209
26210         Fix getdtablesize() on mingw.
26211         * lib/getdtablesize.c (getdtablesize): Implement differently.
26212         * lib/unistd.in.h (getdtablesize): Improve comment.
26213
26214 2009-08-23  Bruno Haible  <bruno@clisp.org>
26215
26216         New module 'mkostemp'.
26217         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26218         * lib/stdlib.in.h (mksotemp): New declaration.
26219         * lib/mkostemp.c: New file, from glibc with modifications.
26220         * lib/tempname.h (GT_FILE): Remove outdated comment.
26221         (gen_tempname): Add flags argument.
26222         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26223         (__GT_FILE): Map to 1.
26224         (small_open, large_open): Remove macros.
26225         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26226         * lib/mkstemp.c (mkstemp): Update.
26227         * lib/mkdtemp.c (mkdtemp): Likewise.
26228         * m4/mkostemp.m4: New file.
26229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26230         HAVE_MKOSTEMP.
26231         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26232         HAVE_MKOSTEMP.
26233         * modules/mkostemp: New file, based on modules/mkstemp.
26234         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26235         * NEWS: Mention the change.
26236
26237 2009-08-23  Bruno Haible  <bruno@clisp.org>
26238
26239         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26240         Reported by Eric Blake.
26241
26242 2009-08-23  Bruno Haible  <bruno@clisp.org>
26243
26244         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26245         Reported by Eric Blake.
26246
26247 2009-08-23  Bruno Haible  <bruno@clisp.org>
26248
26249         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26250         * modules/pipe2 (Depends-on): Likewise.
26251
26252 2009-08-23  Eric Blake  <ebb9@byu.net>
26253
26254         fcntl-h: add O_TTY_INIT support
26255         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26256         * tests/test-fcntl-h.c (o): Test it.
26257         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26258
26259         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26260         * modules/fcntl: Move <fcntl.h> header replacement...
26261         * modules/fcntl-h: ...to new name, so as not to collide with
26262         like-named function.
26263         * tests/test-fcntl.c: Rename...
26264         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26265         * modules/fcntl-tests: Rename...
26266         * modules/fcntl-h-tests: ...to this.  Update test file name.
26267         * modules/chdir-long (Depends-on): Update clients.
26268         * modules/chdir-safer (Depends-on): Likewise.
26269         * modules/fcntl-safer (Depends-on): Likewise.
26270         * modules/fts (Depends-on): Likewise.
26271         * modules/mkancesdirs (Depends-on): Likewise.
26272         * modules/mkdir-p (Depends-on): Likewise.
26273         * modules/open (Depends-on): Likewise.
26274         * modules/savewd (Depends-on): Likewise.
26275         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26276         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26277
26278 2009-08-22  Bruno Haible  <bruno@clisp.org>
26279
26280         * modules/binary-io (License): Relicense under LGPL.
26281         * modules/pipe2 (License): Likewise.
26282
26283 2009-08-22  Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26286         return value.
26287         * lib/pipe-filter-gi.c (filter_init): Likewise.
26288         Reported by Eric Blake.
26289
26290 2009-08-22  Bruno Haible  <bruno@clisp.org>
26291
26292         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26293         * modules/pipe (Depends-on): Add pipe2.
26294
26295 2009-08-22  Bruno Haible  <bruno@clisp.org>
26296
26297         Tests for module 'pipe2'.
26298         * modules/pipe2-tests: New file.
26299         * tests/test-pipe2.c: New file.
26300
26301         New module 'pipe2'.
26302         * lib/unistd.in.h (pipe2): New declaration.
26303         * lib/pipe2.c: New file.
26304         * m4/pipe2.m4: New file.
26305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26306         HAVE_PIPE2.
26307         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26308         * modules/pipe2: New file.
26309         * doc/glibc-functions/pipe2.texi: Mention the new module.
26310
26311 2009-08-22  Bruno Haible  <bruno@clisp.org>
26312
26313         Reference some new glibc functions.
26314         * doc/glibc-functions/accept4.texi: New file.
26315         * doc/glibc-functions/dup3.texi: New file.
26316         * doc/glibc-functions/mkostemp.texi: New file.
26317         * doc/glibc-functions/pipe2.texi: New file.
26318         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26319         (Glibc sys/socket.h): Refer to accept4.
26320         (Glibc unistd.h): Refer to dup3, pipe2.
26321         Reported by Eric Blake.
26322
26323 2009-08-22  Jim Meyering  <meyering@redhat.com>
26324             Bruno Haible  <bruno@clisp.org>
26325
26326         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26327         This makes it so packages using automake-1.11's silent-rules option
26328         can print e.g., a single "GEN    configmake.h" line, rather than
26329         the 30+ statements that perform the job.  If you want to see the
26330         actual commands, you can still run "make V=1".
26331         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26332         so that make output is abbreviated when those variables are defined
26333         appropriately.
26334         * modules/argz: Likewise.
26335         * modules/arpa_inet: Likewise.
26336         * modules/byteswap: Likewise.
26337         * modules/configmake: Likewise.
26338         * modules/dirent: Likewise.
26339         * modules/errno: Likewise.
26340         * modules/fcntl: Likewise.
26341         * modules/float: Likewise.
26342         * modules/fnmatch: Likewise.
26343         * modules/getopt-posix: Likewise.
26344         * modules/glob: Likewise.
26345         * modules/iconv_open: Likewise.
26346         * modules/inttypes: Likewise.
26347         * modules/localcharset: Likewise.
26348         * modules/locale: Likewise.
26349         * modules/math: Likewise.
26350         * modules/netdb: Likewise.
26351         * modules/netinet_in: Likewise.
26352         * modules/poll: Likewise.
26353         * modules/posix_spawnp-tests: Likewise.
26354         * modules/sched: Likewise.
26355         * modules/search: Likewise.
26356         * modules/selinux-h: Likewise.
26357         * modules/signal: Likewise.
26358         * modules/spawn: Likewise.
26359         * modules/stdarg: Likewise.
26360         * modules/stdbool: Likewise.
26361         * modules/stddef: Likewise.
26362         * modules/stdint: Likewise.
26363         * modules/stdio: Likewise.
26364         * modules/stdlib: Likewise.
26365         * modules/string: Likewise.
26366         * modules/strings: Likewise.
26367         * modules/sys_file: Likewise.
26368         * modules/sys_ioctl: Likewise.
26369         * modules/sys_select: Likewise.
26370         * modules/sys_socket: Likewise.
26371         * modules/sys_stat: Likewise.
26372         * modules/sys_time: Likewise.
26373         * modules/sys_times: Likewise.
26374         * modules/sys_utsname: Likewise.
26375         * modules/sys_wait: Likewise.
26376         * modules/sysexits: Likewise.
26377         * modules/time: Likewise.
26378         * modules/unistd: Likewise.
26379         * modules/wchar: Likewise.
26380         * modules/wctype: Likewise.
26381
26382 2009-08-22  Jim Meyering  <meyering@redhat.com>
26383
26384         announce-gen: detect write failure
26385         * build-aux/announce-gen: Add Coda at end.
26386         Remove equivalent-but-more-verbose block at top.
26387
26388 2009-08-19  Akim Demaille  <demaille@gostai.com>
26389
26390         bootstrap: --help to stdout.
26391         * bootstrap (usage): Don't send --help to stderr.
26392         Use a here doc instead of a long string.
26393
26394 2009-08-21  Eric Blake  <ebb9@byu.net>
26395
26396         test-popen-safer: split from test-popen
26397         * tests/test-popen.c (main): Move...
26398         * tests/test-popen.h: ...into new file.
26399         * tests/test-popen-safer2.c: New file.
26400         * modules/popen-tests (Files): Add test-popen.h.
26401         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26402         Suggested by Bruno Haible.
26403
26404         test-fcntl-safer: split from test-open
26405         * tests/test-open.c (main): Move...
26406         * tests/test-open.h: ...into new file.
26407         * tests/test-fcntl-safer.c: New file.
26408         * modules/open-tests (Files): Add test-open.h.
26409         * modules/fcntl-safer-tests: New file.
26410         Suggested by Bruno Haible.
26411
26412         test-fopen-safer: split from test-fopen
26413         * tests/test-fopen.c (main): Move...
26414         * tests/test-fopen.h: ...into new file.
26415         * tests/test-fopen-safer.c: New file.
26416         * modules/fopen-tests (Files): Add test-fopen.h.
26417         * modules/fopen-safer-tests: New file.
26418         Suggested by Bruno Haible.
26419
26420 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26421
26422         popen-safer: test O_CLOEXEC at run-time.
26423         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26424
26425 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26426
26427         fcntl: move more flags to the header
26428         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26429         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26430         * lib/fcntl.in.h: Do both things here.
26431
26432 2009-08-21  Jim Meyering  <meyering@redhat.com>
26433
26434         consistently remove $@-t before redirecting to it
26435         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26436         * modules/alloca-opt: Likewise.
26437         * modules/byteswap: Likewise.
26438         * modules/fnmatch: Likewise.
26439         * modules/getopt-posix: Likewise.
26440         * modules/glob: Likewise.
26441         * modules/poll: Likewise.
26442         * modules/posix_spawnp-tests: Likewise.
26443         * modules/sys_socket: Likewise.
26444         * modules/sysexits: Likewise.
26445
26446 2009-08-21  Eric Blake  <ebb9@byu.net>
26447
26448         popen: simplify access to original popen
26449         * lib/popen.c (rpl_popen): No need to worry about popen being a
26450         macro.
26451         Reported by Bruno Haible.
26452
26453 2009-08-20  Eric Blake  <ebb9@byu.net>
26454
26455         build: avoid some compiler warnings
26456         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26457         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26458         type.
26459         (new_exclude_segment, excluded_file_pattern_p)
26460         (excluded_file_name_p): Reduce scope.
26461         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26462         old-style declaration.
26463
26464 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26465
26466         * tests/test-exclude1.sh: Handle Windows EOL.
26467         * tests/test-exclude2.sh: Likewise.
26468         * tests/test-exclude3.sh: Likewise.
26469         * tests/test-exclude4.sh: Likewise.
26470         * tests/test-exclude5.sh: Likewise.
26471         * tests/test-exclude6.sh: Likewise.
26472         * tests/test-exclude7.sh: Likewise.
26473
26474 2009-08-19  Akim Demaille  <demaille@gostai.com>
26475
26476         bootstrap: find sha1sum when named gsha1sum.
26477         * bootstrap (find_tool): New.
26478         ($SHA1SUM): New.
26479         Use it.
26480
26481 2009-08-20  Jim Meyering  <meyering@redhat.com>
26482
26483         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26484         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26485         expression that converts "." in a file name to "\." in the resulting
26486         regexp.  Start with a dummy statement, so that prior shell variable
26487         definitions are expanded portably.  Reported by Simon Josefsson.
26488
26489 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26490
26491         Fix polling for writeability of a screen buffer.
26492         * lib/poll.c: Distinguish input and screen buffers for the
26493         Win32 implementation.
26494         * lib/select.c: Likewise.
26495
26496 2009-08-19  Eric Blake  <ebb9@byu.net>
26497
26498         popen-safer: prevent popen from clobbering std descriptors
26499         * modules/popen-safer: New file.
26500         * lib/popen-safer.c: Likewise.
26501         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26502         * lib/stdio--.h (popen): Provide override.
26503         * lib/stdio-safer.h (popen_safer): Provide declaration.
26504         * tests/test-popen.c (includes): Partially test this.
26505         * modules/popen-safer-tests: New file, for more tests.
26506         * tests/test-popen-safer.c: Likewise.
26507         * MODULES.html.sh (file stream based Input/Output): Mention it.
26508
26509         tests: test some of the *-safer modules
26510         * modules/fopen-safer (Depends-on): Add fopen.
26511         * modules/fcntl-safer (Depends-on): Add fcntl.
26512         * modules/stdlib-safer (Depends-on): Add stdlib.
26513         (configure.ac): Set indicator.
26514         * modules/unistd-safer (configure.ac): Likewise.
26515         * modules/tmpfile-safer (configure.ac): Likewise.
26516         (Depends-on): Add tmpfile.
26517         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26518         active.
26519         * tests/test-fopen.c (includes): Test safer versions when they are
26520         in use.
26521         * tests/test-open.c (includes): Likewise.
26522
26523         popen: fix cygwin 1.5 bug when stdin closed
26524         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26525         * modules/popen: New file.
26526         * modules/popen-tests: Likewise.
26527         * tests/test-popen.c: Likewise.
26528         * m4/popen.m4: Likewise.
26529         * lib/popen.c: Likewise.
26530         * lib/stdio.in.h (popen): New declaration.
26531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26532         * modules/stdio (Makefile.am): Likewise.
26533         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26534
26535 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26536
26537         maint.mk: give full control over update-copyright exclusions
26538         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26539         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26540         (update-copyright): Don't force inclusion of top-level
26541         ChangeLog.  Don't force exclusion of all COPYING files, but make
26542         them the default exclusion instead.
26543
26544 2009-08-16  Bruno Haible  <bruno@clisp.org>
26545
26546         Fix test failures on Solaris 10.
26547         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26548         tests when Solaris iconv() is used.
26549         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26550         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26551         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26552         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26553         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26554
26555 2009-08-16  Bruno Haible  <bruno@clisp.org>
26556
26557         Fix test failures on Solaris 10.
26558         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26559         'tr' program and pass it as first argument.
26560         * tests/test-pipe-filter-gi1.sh: Likewise.
26561         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26562         program as first argument.
26563         * tests/test-pipe-filter-gi1.c (main): Likewise.
26564
26565 2009-08-16  Eric Blake  <ebb9@byu.net>
26566
26567         fpurge: fix previous commits
26568         * modules/fpurge (Makefile.am): Make replacement conditional,
26569         partially reverting 2007-04-29 change; missed in previous
26570         attempt.
26571         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26572         is missing.
26573
26574 2009-08-16  Bruno Haible  <bruno@clisp.org>
26575
26576         Clarify fpurge's effect on the file position.
26577         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26578         * tests/test-fpurge.c (main): Make a second pass for checking the file
26579         position.
26580
26581 2009-08-16  Bruno Haible  <bruno@clisp.org>
26582
26583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26584         declaration of fpurge is missing.
26585         * tests/test-fpurge.c (main): Check that the file has not more contents
26586         than expected. Close the file before removing it.
26587
26588 2009-08-15  Eric Blake  <ebb9@byu.net>
26589
26590         fpurge: don't wrap working cygwin implementation
26591         * lib/fpurge.c (fpurge): Fix comment typo.
26592         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26593         1.7 to avoid replacement.
26594         * tests/test-fpurge.c (main): Enhance test.
26595
26596 2009-08-15  Eric Blake  <ebb9@byu.net>
26597         and Jim Meyering  <meyering@redhat.com>
26598
26599         test-update-copyright: skip if perl is insufficient
26600         * tests/test-update-copyright.sh: Failure to run maintainer tool
26601         should not cause testsuite failure on cygwin 1.5.
26602
26603 2009-08-14  Eric Blake  <ebb9@byu.net>
26604
26605         doc: mention more functions added in cygwin 1.7.0
26606         * doc/posix-headers/limits.texi (limits.h): Update for recent
26607         cygwin additions.
26608         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26609         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26610         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26611         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26612         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26613
26614 2009-08-14  Eric Blake  <ebb9@byu.net>
26615
26616         maint.mk: simplify update-copyright rule
26617         * top/maint.mk (update-copyright-local): Delete, and document how
26618         to do it in cfg.mk instead.
26619         (update-copyright-exclude-regexp): Delete, and document how to do
26620         it in .x-update-copyright instead.
26621         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26622         exclude ChangeLog.
26623
26624 2009-08-14  Bruno Haible  <bruno@clisp.org>
26625
26626         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26627
26628 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26629
26630         maint.mk: support update-copyright-env
26631         * top/maint.mk (update-copyright-env): Define place-holder.
26632         (update-copyright): Expand $(update-copyright-env) before
26633         invoking update-copyright.
26634
26635 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26636
26637         update-copyright: implement forced reformatting
26638         * build-aux/update-copyright: Implement and document
26639         UPDATE_COPYRIGHT_FORCE.
26640         * tests/test-update-copyright.sh: Test it.
26641
26642 2009-08-14  Eric Blake  <ebb9@byu.net>
26643         and Bruno Haible  <bruno@clisp.org>
26644
26645         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26646         * tests/test-locale.c: Revert previous patch related to NULL.
26647         * tests/test-stdio.c: Likewise.
26648         * tests/test-stdlib.c: Likewise.
26649         * tests/test-string.c: Likewise.
26650         * tests/test-unistd.c: Likewise.
26651         * modules/time-tests (Depends-on): Add verify.
26652         * modules/wchar-tests (Depends-on): Likewise.
26653         * tests/test-time.c: Test for NULL compliance.
26654         * tests/test-wchar.c: Likewise.
26655         * modules/locale (Depends-on): Add stddef.
26656         * modules/stdio (Depends-on): Likewise.
26657         * modules/stdlib (Depends-on): Likewise.
26658         * modules/string (Depends-on): Likewise.
26659         * modules/time (Depends-on): Likewise.
26660         * modules/unistd (Depends-on): Likewise.
26661         * modules/wchar (Depends-on): Likewise.
26662         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26663         * lib/stdlib.in.h (includes): Likewise.
26664         * lib/string.in.h (includes): Likewise.
26665         * lib/time.in.h (includes): Likewise.
26666         * lib/unistd.in.h (includes): Likewise.
26667         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26668         replaced.
26669         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26670         * m4/stddef_h.m4: New file.
26671         * modules/stddef: Likewise.
26672         * lib/stddef.in.h: Likewise.
26673         * modules/stddef-tests: Likewise.
26674         * tests/test-stddef.c: Likewise.
26675         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26676         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26677         * doc/posix-headers/locale.texi (locale.h): Likewise.
26678         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26679         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26680         * doc/posix-headers/string.texi (string.h): Likewise.
26681         * doc/posix-headers/time.texi (time.h): Likewise.
26682         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26683         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26684
26685 2009-08-14  Eric Blake  <ebb9@byu.net>
26686
26687         doc: improve git diff of texinfo files
26688         * .gitattributes: Add rule for *.texi files, with hint on how to
26689         use it.
26690         Copied from m4, and based on a report by Bruno Haible.
26691
26692 2009-08-14  Bruno Haible  <bruno@clisp.org>
26693
26694         Disable multithread support by default on Cygwin 1.5.x for real.
26695         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26696
26697 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26698
26699         update-copyright: much ado about intervals
26700         * build-aux/update-copyright: Implement and document
26701         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26702         of copyright year intervals.
26703         Also, document UPDATE_COPYRIGHT_YEAR.
26704         * tests/test-update-copyright.sh: Test it.
26705
26706         update-copyright: convert 2-digit to 4-digit years
26707         * build-aux/update-copyright: Implement and document.
26708         * tests/test-update-copyright.sh: Update.
26709
26710 2009-08-14  Jim Meyering  <meyering@redhat.com>
26711
26712         test-exclude: avoid coreutils "make check" failure
26713         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26714         just as in test-argmatch.c.
26715
26716 2009-08-13  Eric Blake  <ebb9@byu.net>
26717
26718         test-dup2: fix bad assumption
26719         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26720         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26721
26722         test-version-etc: fix CRLF portability issue
26723         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26724         recognize \r.
26725         * tests/test-argp-version-etc-1.sh: Likewise.
26726
26727         getopt: update client modules
26728         * modules/argp (Depends-on): Use getopt-gnu.
26729         * modules/git-merge-changelog (Depends-on): Likewise.
26730         * modules/long-options (Depends-on): Likewise.
26731         * modules/xstrtol (Depends-on): Likewise.
26732
26733 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26734
26735         * tests/test-version-etc.sh: Don't fail on different
26736         project/version.  Don't fail on CRLF differences.  Rewrite to use
26737         multiple -e instead of multiple sed forks, suggested by Eric Blake
26738         <ebb9@byu.net>.
26739         * tests/test-argp-version-etc-1.sh: Likewise.
26740
26741 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26742
26743         * tests/test-version-etc.sh: Don't fail on different
26744         project/version.
26745
26746 2009-08-12  Bruno Haible  <bruno@clisp.org>
26747
26748         Tests for modules 'getopt-posix', 'getopt-gnu'.
26749         * modules/getopt-posix-tests: New file.
26750         * tests/test-getopt.c: New file.
26751         * tests/test-getopt.h: New file.
26752         * tests/test-getopt_long.h: New file.
26753
26754         New modules 'getopt-posix', 'getopt-gnu'.
26755         * modules/getopt-gnu: New file, renamed from modules/getopt.
26756         * modules/getopt-posix: New file.
26757         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26758         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26759         (gl_GETOPT): Remove macro.
26760         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26761         Disable the test against BSD systems that declare optreset. Test
26762         against mingw bug. Test against lack of support of optional arguments
26763         on many platforms.
26764         * doc/glibc-headers/getopt.texi: Update module name and list of
26765         relevant platforms.
26766         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26767         'getopt-gnu' and more portability problems.
26768         * NEWS: Mention the changes.
26769
26770 2009-08-12  Bruno Haible  <bruno@clisp.org>
26771
26772         Ensure that optarg etc. get declared by <unistd.h>.
26773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26774         AC_USE_SYSTEM_EXTENSIONS.
26775         * modules/getopt (Depends-on): Add 'extensions'.
26776
26777 2009-08-12  Bruno Haible  <bruno@clisp.org>
26778
26779         Avoid test link errors.
26780         * modules/pipe-filter-ii-tests (Makefile.am): Define
26781         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26782         * modules/pipe-filter-gi-tests (Makefile.am): Define
26783         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26785
26786 2009-08-12  Bruno Haible  <bruno@clisp.org>
26787
26788         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26789         gl_GETOPT_SUBSTITUTE before.
26790         (gl_GETOPT): Use it.
26791         * m4/argp.m4 (gl_ARGP): Update.
26792         Reported by Sergey Poznyakoff.
26793
26794         * m4/getopt.m4: Reorder macros.
26795         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26796         (gl_GETOPT_SUBSTITUTE): Remove macro.
26797
26798 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26799
26800         Minor improvement in gitlog-to-changelog
26801
26802         * build-aux/gitlog-to-changelog: New option `--format' makes
26803         output format string configurable.
26804
26805 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26806
26807         Optimize exclude: use hash tables for non-wildcard patterns.
26808
26809         * lib/exclude.c: Include hash.h and mbuiter.h
26810         (struct exclude_pattern, exclude_segment): New data types.
26811         (struct exclude): Rewrite.
26812         (fnmatch_pattern_has_wildcards): New function.
26813         (new_exclude_segment, free_exclude_segment): New functions.
26814         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26815         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26816         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26817         * modules/exclude: Depend on hash and mbuiter.
26818
26819         * modules/exclude-tests: New file.
26820         * tests/test-exclude.c: New file.
26821         * tests/test-exclude1.sh: New file.
26822         * tests/test-exclude2.sh: New file.
26823         * tests/test-exclude3.sh: New file.
26824         * tests/test-exclude4.sh: New file.
26825         * tests/test-exclude5.sh: New file.
26826         * tests/test-exclude6.sh: New file.
26827         * tests/test-exclude7.sh: New file.
26828
26829 2009-08-12  Bruno Haible  <bruno@clisp.org>
26830
26831         Ensure that getopt() gets declared by <unistd.h>.
26832         * lib/unistd.in.h: Conditionally include getopt.h.
26833         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26834         Set GNULIB_UNISTD_H_GETOPT.
26835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26836         GNULIB_UNISTD_H_GETOPT.
26837         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26838
26839 2009-08-12  Bruno Haible  <bruno@clisp.org>
26840
26841         Clarify logic.
26842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26843         gl_replace_getopt instead of GETOPT_H.
26844
26845 2009-08-12  Bruno Haible  <bruno@clisp.org>
26846
26847         * m4/getopt.m4: Add comments.
26848
26849 2009-08-12  Bruno Haible  <bruno@clisp.org>
26850
26851         Disable multithread support by default on Cygwin 1.5.x.
26852         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26853         set gl_use_threads=no if not specified otherwise.
26854
26855 2009-08-11  Bruno Haible  <bruno@clisp.org>
26856
26857         Avoid compilation error on NetBSD 5.0.
26858         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26859         * tests/test-stdio.c: Likewise.
26860         * tests/test-stdlib.c: Likewise.
26861         * tests/test-string.c: Likewise.
26862         * tests/test-unistd.c: Likewise.
26863         Reported by Greg Troxel <gdt@ir.bbn.com>
26864         at <https://savannah.gnu.org/support/?106973>.
26865
26866 2009-08-11  Bruno Haible  <bruno@clisp.org>
26867
26868         * modules/dup2-tests (Depends-on): Remove close.
26869
26870         Undo 2009-07-19 commit.
26871         * modules/acl-tests (Depends-on): Remove close.
26872         * modules/binary-io-tests (Depends-on): Likewise.
26873         * modules/closein-tests (Depends-on): Likewise.
26874         * modules/flock-tests (Depends-on): Likewise.
26875         * modules/fsync-tests (Depends-on): Likewise.
26876         * modules/lseek-tests (Depends-on): Likewise.
26877         * modules/pipe-tests (Depends-on): Likewise.
26878         * modules/posix_spawn-tests (Depends-on): Likewise.
26879         * modules/posix_spawnp-tests (Depends-on): Likewise.
26880         * modules/stat-time-tests (Depends-on): Likewise.
26881         * modules/yesno-tests (Depends-on): Likewise.
26882
26883 2009-08-10  Bruno Haible  <bruno@clisp.org>
26884
26885         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26886
26887 2009-08-10  Bruno Haible  <bruno@clisp.org>
26888
26889         Fix a gcc warning.
26890         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26891
26892 2009-08-10  Bruno Haible  <bruno@clisp.org>
26893
26894         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26895         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26896         not only the first time.
26897         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26898         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26899         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26900         is 1, not only the the first time.
26901
26902 2009-08-10  Bruno Haible  <bruno@clisp.org>
26903
26904         Make it possible to use module 'gethostname' without module 'close'.
26905         * lib/unistd.in.h (close): Evoke a link error only if
26906         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26908         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26909         * modules/unistd (Makefile.am): Substitute
26910         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26911         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26912         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26913         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26914         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26915         * modules/sys_ioctl (Makefile.am): Substitute
26916         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26917         * modules/socket (configure.ac): On native Windows, set
26918         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26919         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26920         Reported by Sam Steingold <sds@gnu.org>.
26921
26922 2009-08-10  Bruno Haible  <bruno@clisp.org>
26923
26924         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26925         * modules/ioctl (configure.ac): Likewise.
26926
26927 2009-08-10  Bruno Haible  <bruno@clisp.org>
26928
26929         Avoid collision between gnulib wrapper and libintl wrapper.
26930         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26931         already defined in intl/printf.c.
26932         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26933         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26934
26935 2009-08-09  Bruno Haible  <bruno@clisp.org>
26936
26937         Make <sys/select.h> really self-contained, also on Solaris 10.
26938         * lib/sys_select.in.h: Include <string.h>.
26939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26940         Solaris 10 problem.
26941         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26942         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26943         Reported by Jim Meyering.
26944
26945 2009-08-09  Bruno Haible  <bruno@clisp.org>
26946
26947         Avoid warnings from 'aclocal' that are due to a use of macro name
26948         AM_XGETTEXT_OPTION that is not defined in automake.
26949         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26950         automake.
26951         * modules/error (configure.ac): Likewise.
26952         * modules/propername (configure.ac): Likewise.
26953         * modules/vasprintf (configure.ac): Likewise.
26954         * modules/verror (configure.ac): Likewise.
26955         * modules/xprintf (configure.ac): Likewise.
26956         * modules/xvasprintf (configure.ac): Likewise.
26957
26958 2009-08-08  Bruno Haible  <bruno@clisp.org>
26959
26960         Avoid compilation error in C++ mode.
26961         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26962         Reported by Sam Steingold <sds@gnu.org>.
26963
26964 2009-08-08  Bruno Haible  <bruno@clisp.org>
26965
26966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26967         for the various Unix platforms.
26968         * doc/posix-headers/limits.texi: Update platforms list regarding
26969         HOST_NAME_MAX.
26970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26971
26972 2009-08-07  Jim Meyering  <meyering@redhat.com>
26973
26974         selinux-at: fix typo in a comment
26975         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26976         Spotted by Paolo Bonzini.
26977
26978         selinux-at: remove redundant m4 code, add documentation
26979         * modules/selinux-at (configure.ac): Remove redundant code.
26980         LIB_SELINUX is already set via the dependent module, selinux-h.
26981         (Include): Add quotes around selinux-at.h.
26982         * lib/selinux-at.h: Add documentation.
26983         Reported by Bruno Haible in
26984         http://marc.info/?l=gnulib-bug&m=124958988300749
26985
26986 2009-08-07  Bruno Haible  <bruno@clisp.org>
26987
26988         Avoid link error on MacOS X 10.3 and 10.4.
26989         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26990         on non-ELF systems.
26991         * lib/argp-pv.c (argp_program_version): Likewise.
26992         Reported by Simon Josefsson.
26993
26994 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26995
26996         * tests/test-version-etc.sh: Use $EXEEXT.
26997
26998 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26999
27000         update-copyright: update documentation to point to maint.mk
27001         * build-aux/update-copyright: Here.
27002
27003 2009-08-06  Jim Meyering  <meyering@redhat.com>
27004
27005         maint.mk: support update-copyright-local
27006         * top/maint.mk (update-copyright-local): Define place-holder.
27007         (update-copyright): Depend on $(update-copyright-local).
27008
27009 2009-08-06  Jim Meyering  <meyering@redhat.com>
27010
27011         selinux-at: new module
27012         Initially written for coreutils, this module will soon be
27013         used by findutils, too.
27014         * MODULES.html.sh [Misc]: Add selinux-at.
27015         * lib/selinux-at.h: New file, from coreutils.
27016         * lib/selinux-at.c: Likewise.
27017         * modules/selinux-at: Likewise.
27018         (License): Change from LGPL to GPL, since it depends
27019         on the GPL'd openat module.
27020
27021         doc: update README
27022         * README: Remove references to cogito.
27023         Remove cvs-repo-updating instructions from 2007.
27024         Don't imply that CVS is better if you have limited disk space.
27025
27026 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27027
27028         update-copyright: support C-style comments
27029         * build-aux/update-copyright: Implement and document.
27030         * tests/test-update-copyright.sh: Test.
27031
27032 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27033
27034         update-copyright: support omitted "(C)"
27035         * build-aux/update-copyright: Implement and document.  Also,
27036         allow variable whitespace before "(C)".
27037         * tests/test-update-copyright.sh: Test.
27038
27039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27040
27041         update-copyright: don't trip on non-FSF copyright statements
27042         * build-aux/update-copyright: Fix so that the first correctly
27043         formatted FSF copyright statement is recognized no matter what
27044         appears before it.  Update documentation.
27045         * tests/test-update-copyright.sh: Test that.
27046
27047 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27048
27049         update-copyright: clean up code a little
27050         * build-aux/update-copyright: Append "_re" to the name of any
27051         variable holding a regular expression.
27052         Replace "old" and "new" with "stmt" in variable names.
27053         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27054         handled correctly.
27055         Format code more consistently.
27056
27057 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27058
27059         update-copyright-tests: improve portability
27060         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27061         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27062
27063 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27064
27065         update-copyright: support @copyright{} and &copy;
27066         * build-aux/update-copyright: Implement and document.
27067         * tests/test-update-copyright.sh: Test.
27068
27069 2009-08-04  Jim Meyering  <meyering@redhat.com>
27070
27071         update-copyright-tests: correctly test EOL=\r\n handling
27072         * tests/test-update-copyright.sh: Put \r at the end of some lines
27073         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27074
27075         maint.mk: make update-copyright exclusion list more configurable
27076         * top/maint.mk (update-copyright): Default to excluding COPYING,
27077         but allow an override, in case someone does want to update that file.
27078
27079         maint.mk: don't update copyright date in COPYING
27080         * top/maint.mk (update-copyright): Exclude COPYING.
27081
27082         maint.mk: add a copyright-updating rule
27083         * top/maint.mk (update-copyright): New rule.
27084         Derived from coreutils/Makefile.am.
27085
27086         update-copyright: rename some variables
27087         * build-aux/update-copyright: Rename a few variables for clarity.
27088         Tweak syntax.  List Joel E. Denny as coauthor.
27089
27090 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27091
27092         update-copyright: fix bug for 2-digit last year and add tests
27093         * build-aux/update-copyright: Fix bug.
27094         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27095         specified.
27096         * modules/update-copyright-tests: New
27097         * tests/test-update-copyright.sh: New.
27098
27099 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27100
27101         update-copyright: handle leading tabs in line prefix
27102         * build-aux/update-copyright: Count leading tabs as 8 spaces
27103         when computing margin.  This helps with the formatting of
27104         ChangeLogs, for example.
27105         Fix documentation a little.
27106
27107 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27108
27109         update-copyright: support EOL=\r\n
27110         * build-aux/update-copyright: Implement that.
27111
27112 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27113
27114         update-copyright: automatically format copyright statements
27115         * build-aux/update-copyright: Implement that.
27116         Also, be a little more predictable and safer by always failing
27117         when the full copyright format is not perfectly recognized as an
27118         unbroken whole.  Discussed at
27119         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27120         Rewrite documentation.
27121
27122 2009-08-03  Bruno Haible  <bruno@clisp.org>
27123
27124         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27125
27126 2009-08-02  Bruno Haible  <bruno@clisp.org>
27127
27128         Tests for module 'uname'.
27129         * modules/uname-tests: New file.
27130         * tests/test-uname.c: New file.
27131
27132         New module 'uname'.
27133         * lib/uname.c: New file.
27134         * m4/uname.m4: New file.
27135         * modules/uname: New file.
27136         * doc/posix-functions/uname.texi: Mention the new module.
27137
27138 2009-08-02  Bruno Haible  <bruno@clisp.org>
27139
27140         Tests for module 'sys_utsname'.
27141         * modules/sys_utsname-tests: New file.
27142         * tests/test-sys_utsname.c: New file.
27143
27144         New module 'sys_utsname'.
27145         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27146         * m4/sys_utsname_h.m4: New file.
27147         * modules/sys_utsname: New file.
27148         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27149
27150 2009-08-02  Bruno Haible  <bruno@clisp.org>
27151
27152         Implicitly initialize the sockets library.
27153         * lib/gethostname.c: Include sockets.h.
27154         (rpl_gethostname): Invoke gl_sockets_startup.
27155         * lib/socket.c: Include sockets.h.
27156         (rpl_socket): Invoke gl_sockets_startup.
27157         * modules/gethostname (Depends-on): Add sockets.
27158         * modules/socket (Depends-on): Likewise.
27159         * tests/test-poll.c: Don't include sockets.h.
27160         (main): Don't invoke gl_sockets_startup.
27161         * tests/test-select.c: Don't include sockets.h.
27162         (main): Don't invoke gl_sockets_startup.
27163
27164 2009-08-02  Bruno Haible  <bruno@clisp.org>
27165
27166         Allow multiple calls to gl_sockets_startup.
27167         * lib/sockets.c (initialized_sockets_version): New variable.
27168         (gl_sockets_startup): Do nothing if already called for this or a higher
27169         version.
27170         (gl_sockets_cleanup): Reset initialized_sockets_version.
27171
27172 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27173
27174         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27175         different project/version.
27176
27177 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27178             Bruno Haible  <bruno@clisp.org>
27179
27180         Tests for module 'pipe-filter-gi'.
27181         * modules/pipe-filter-gi-tests: New file.
27182         * tests/test-pipe-filter-gi1.sh: New file.
27183         * tests/test-pipe-filter-gi1.c: New file.
27184         * tests/test-pipe-filter-gi2.sh: New file.
27185         * tests/test-pipe-filter-gi2-main.c: New file.
27186         * tests/test-pipe-filter-gi2-child.c: New file.
27187
27188         New module 'pipe-filter-gi'.
27189         * lib/pipe-filter-gi.c: New file.
27190         * modules/pipe-filter-gi: New file.
27191
27192 2009-08-02  Bruno Haible  <bruno@clisp.org>
27193             Paolo Bonzini  <bonzini@gnu.org>
27194
27195         Tests for module 'pipe-filter-ii'.
27196         * modules/pipe-filter-ii-tests: New file.
27197         * tests/test-pipe-filter-ii1.sh: New file.
27198         * tests/test-pipe-filter-ii1.c: New file.
27199         * tests/test-pipe-filter-ii2.sh: New file.
27200         * tests/test-pipe-filter-ii2-main.c: New file.
27201         * tests/test-pipe-filter-ii2-child.c: New file.
27202
27203         New module 'pipe-filter-ii'.
27204         * lib/pipe-filter.h: New file.
27205         * lib/pipe-filter-ii.c: New file.
27206         * lib/pipe-filter-aux.h: New file.
27207         * modules/pipe-filter-ii: New file.
27208
27209 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27210
27211         * lib/gc-libgcrypt.c: Change copyright to FSF.
27212         * lib/gc-gnulib.c: Likewise.
27213
27214 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27215
27216         * lib/gethostname.c: Include limits.h.
27217
27218 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27219             Bruno Haible  <bruno@clisp.org>
27220
27221         Ensure HOST_NAME_MAX as part of the gethostname module.
27222         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27223         define also HOST_NAME_MAX.
27224         * tests/test-gethostname.c: Include <limits.h>.
27225         (main): Check also HOST_NAME_MAX.
27226         * doc/posix-headers/limits.texi: Document the mingw problem.
27227
27228 2009-08-02  Bruno Haible  <bruno@clisp.org>
27229
27230         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27231         Add comments.
27232
27233 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27234
27235         * lib/gethostname.c: Add Windows wrapper.
27236         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27237         * modules/gethostname: Depend on sys_socket & errno, for also
27238         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27239         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27240
27241 2009-07-31  Jim Meyering  <meyering@redhat.com>
27242
27243         getloadavg: fix symbol name in comment
27244         * lib/getloadavg.c: Correct a typo I introduced when adding
27245         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27246         Matt Kraai spotted the problem.
27247
27248 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27249
27250         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27251         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27252         code also if ! defined N_NAME_POINTER.
27253         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27254         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27255         but the n_name member is a 12-byte array.
27256
27257 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27258
27259         update-copyright: generalize comment handling
27260         * build-aux/update-copyright: Handle copyright statements
27261         within more comment styles.
27262         Document usage.
27263         Report any file with an external copyright holder or parse failure.
27264
27265 2009-07-29  Jim Meyering  <meyering@redhat.com>
27266
27267         mktime: correct setting of REPLACE_MKTIME
27268         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27269
27270         update-copyright: new module
27271         * modules/update-copyright: New file.
27272         * build-aux/update-copyright: New file.
27273         * MODULES.html.sh (maint+release support): Add update-copyright.
27274
27275 2009-07-27  Bruno Haible  <bruno@clisp.org>
27276
27277         Fix compilation error when <ctime> is used and mktime is replaced.
27278         * lib/time.in.h (mktime): New declaration.
27279         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27280         REPLACE_MKTIME instead of defining mktime in config.h.
27281         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27282         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27283         Reported by Ross McFarland <rwmcfa1@neces.com>.
27284
27285 2009-07-27  Bruno Haible  <bruno@clisp.org>
27286
27287         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27288         Reported by Matt Kraai <mkraai@beckman.com>.
27289
27290 2009-07-25  Jim Meyering  <meyering@redhat.com>
27291
27292         maint.mk: avoid warnings about missing files
27293         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27294         diagnostic when .prev-version does not exist.
27295         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27296         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27297         nonexistent cfg.mk.
27298         Suggestions from Simon Josefsson.
27299
27300 2009-07-25  Bruno Haible  <bruno@clisp.org>
27301
27302         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27303         defined as macros. Needed on QNX 6.4.1.
27304         Reported by Matt Kraai <mkraai@beckman.com>.
27305
27306 2009-07-23  Jim Meyering  <meyering@redhat.com>
27307
27308         maint.mk: invoke "make dist" with a working value of XZ_OPT
27309         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27310
27311 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27312
27313         Make fseeko.c compile on QNX.
27314         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27315
27316 2009-07-22  Peter Simons  <simons@cryp.to>
27317
27318         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27319         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27320         * lib/md4.h: Likewise.
27321         * lib/md5.h: Likewise.
27322         * lib/sha1.h: Likewise.
27323         * lib/sha256.h: Likewise.
27324         * lib/sha512.h: Likewise.
27325
27326         tests-sha1: don't assign literal string to 'char *' variable
27327         * tests/test-sha1.c (main): Declare locals with "const" to match
27328         attributes of the right hand side.
27329
27330 2009-07-21  Eric Blake  <ebb9@byu.net>
27331
27332         dup2: fix more mingw problems
27333         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27334         fd to itself.
27335         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27336         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27337         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27338         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27339         care of mingw bugs.
27340
27341 2009-07-21  Jim Meyering  <meyering@redhat.com>
27342
27343         vc-list-files: avoid failure when /bin/sh is dash
27344         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27345         On some Debian based systems, /bin/sh is a symlink to dash, and running
27346         this command would omit the "/" following each 'tests' prefix:
27347           dash -x build-aux/vc-list-files -C . tests
27348         That is because bash and dash work differently:
27349           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27350           bash ok
27351           dash odd
27352
27353 2009-07-21  Eric Blake  <ebb9@byu.net>
27354
27355         dup2-tests: test previous patch
27356         * modules/dup2-tests: New file.
27357         * tests/test-dup2.c: Likewise.
27358         * tests/test-open.c (main): Avoid unspecified behavior.
27359         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27360         test.
27361
27362         dup2: work around mingw and cygwin 1.5 bug
27363         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27365         * modules/unistd (Makefile.am): Substitute it.
27366         * lib/unistd.in.h (dup2): Declare the replacement.
27367         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27368         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27369         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27370         * modules/execute (Depends-on): Add dup2.
27371         * modules/fseterr (Depends-on): Likewise.
27372         * modules/pipe (Depends-on): Likewise.
27373         * modules/posix_spawn-internal (Depends-on): Likewise.
27374
27375 2009-07-21  Bruno Haible  <bruno@clisp.org>
27376
27377         * modules/.gitattributes: New file.
27378
27379 2009-07-20  Bruno Haible  <bruno@clisp.org>
27380
27381         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27382         (main): Use it.
27383
27384 2009-07-20  Eric Blake  <ebb9@byu.net>
27385
27386         test-pipe: make a bit more robust.
27387         * tests/test-pipe.c (myerr): Allow error messages regardless of
27388         what we do to stderr.
27389         (test_pipe): Rearrange to avoid deadlock.
27390         (child_main): Try a larger read, to ensure we avoided deadlock.
27391         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27392         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27393         if misused.
27394
27395 2009-07-19  Jim Meyering  <meyering@redhat.com>
27396
27397         fts: avoid false-positive cycle-detection
27398         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27399         for each new command line argument.
27400
27401 2009-07-19  Bruno Haible  <bruno@clisp.org>
27402
27403         Fix build error on mingw with the modules sys_select and unistd.
27404         * modules/acl-tests (Depends-on): Add close.
27405         * modules/binary-io-tests (Depends-on): Likewise.
27406         * modules/closein-tests (Depends-on): Likewise.
27407         * modules/flock-tests (Depends-on): Likewise.
27408         * modules/fsync-tests (Depends-on): Likewise.
27409         * modules/lseek-tests (Depends-on): Likewise.
27410         * modules/pipe-tests (Depends-on): Likewise.
27411         * modules/posix_spawn-tests (Depends-on): Likewise.
27412         * modules/posix_spawnp-tests (Depends-on): Likewise.
27413         * modules/stat-time-tests (Depends-on): Likewise.
27414         * modules/yesno-tests (Depends-on): Likewise.
27415
27416 2009-07-19  Bruno Haible  <bruno@clisp.org>
27417
27418         Unify conditionals.
27419         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27420         macros, not at the compiler macros.
27421         * lib/pipe.c: Likewise.
27422         * lib/execute.c: Likewise.
27423         * lib/spawni.c: Likewise.
27424
27425 2009-07-19  Bruno Haible  <bruno@clisp.org>
27426
27427         Fix handling of closed stdin/stdout/stderr on mingw.
27428         * lib/w32spawn.h: Include unistd.h.
27429         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27430         file descriptor with O_NOINHERIT flag.
27431         (fd_safer_noinherit): New function, based on fd-safer.c.
27432         (dup_safer_noinherit): New function, based on dup-safer.c.
27433         (undup_safer_noinherit): New function.
27434         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27435         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27436         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27437         instead of fd_safer.
27438         * tests/test-pipe.c: Include <windows.h>.
27439         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27440         result.
27441
27442         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27443         from main.
27444         (test_pipe): Pass an extra argument for disambiguation.
27445         (main): Invoke parent_main or child_main.
27446
27447         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27448         consistently.
27449
27450 2009-07-18  Eric Blake  <ebb9@byu.net>
27451
27452         test-pipe: fix mingw build
27453         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27454
27455 2009-07-18  Bruno Haible  <bruno@clisp.org>
27456
27457         * modules/pipe-tests (Makefile.am): Fix typo.
27458
27459 2009-07-18  Eric Blake  <ebb9@byu.net>
27460
27461         error: fix mingw build
27462         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27463         Reported by Bruno Haible.
27464
27465         error: avoid undefined use of stdout
27466         * lib/error.c (error, error_at_line): Check that fd 1 is open
27467         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27468         is handling faults and the close_stdout module wants to report the
27469         detection of closed stdout as an error.
27470
27471 2009-07-17  Eric Blake  <ebb9@byu.net>
27472
27473         pipe: be robust in face of closed fds
27474         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27475         should cause child to misbehave.
27476         * modules/pipe-tests: New module.
27477         * tests/test-pipe.c: New file.
27478         * tests/test-pipe.sh: New file.
27479         Reported by Akim Demaille.
27480
27481 2009-07-14  Bruno Haible  <bruno@clisp.org>
27482
27483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27484         Reported by anonymous kc.
27485
27486 2009-07-07  Jim Meyering  <meyering@redhat.com>
27487
27488         maint.mk: don't look for translatable strings in *.m4 or *.mk
27489         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27490         when searching for translatable strings.
27491
27492 2009-07-05  Jim Meyering  <meyering@redhat.com>
27493
27494         remove superfluous parentheses in STREQ definition
27495         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27496         * lib/getugroups.c (STREQ): Likewise.
27497         * lib/fnmatch.c (STREQ): Likewise.
27498         Spotted by Bruno Haible.
27499
27500 2009-07-04  Jim Meyering  <meyering@redhat.com>
27501
27502         argv-iter: new module
27503         * MODULES.html.sh: Add argv-iter.
27504         * lib/argv-iter.c, lib/argv-iter.h: New files.
27505         * modules/argv-iter: New file.
27506         * modules/argv-iter-tests: New file.
27507         * tests/test-argv-iter.c: Test it.
27508
27509 2009-07-04  Bruno Haible  <bruno@clisp.org>
27510
27511         Fix assertion.
27512         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27513         contains more exact copies of a given entry than file2, leave the extra
27514         copies unpaired rather than aborting.
27515         Reported by Eric Blake.
27516
27517 2009-07-02  Bruno Haible  <bruno@clisp.org>
27518
27519         Speedup git-merge-changelog for git cherry-pick.
27520         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27521         (entries_mapping_get): New function, extracted from compute_mapping.
27522         (entries_mapping_reverse_get): New function.
27523         (compute_mapping): Add a 'full' argument. Return the result in a
27524         'struct entries_mapping'.
27525         (main): Update. Access the mappings through entries_mapping_get.
27526         Reported by Eric Blake.
27527
27528 2009-07-02  Bruno Haible  <bruno@clisp.org>
27529
27530         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27531         best_i.
27532
27533 2009-07-02  Bruno Haible  <bruno@clisp.org>
27534
27535         Speed up approximate search for matching ChangeLog entries.
27536         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27537         argument. Call fstrcmp_bounded instead of fstrcmp.
27538         (compute_mapping, try_split_merged_entry, main): Update callers.
27539
27540 2009-07-02  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27543
27544 2009-06-30  Bruno Haible  <bruno@clisp.org>
27545
27546         Reduce the number of uc_is_cased calls.
27547         * lib/unicase.h (casing_suffix_context_t): Add
27548         'first_char_except_ignorable' field.
27549         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27550         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27551         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27552         Update initializer.
27553         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27554         case-ignorable characters.
27555         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27556         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27557         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27558         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27559         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27560
27561 2009-06-30  Bruno Haible  <bruno@clisp.org>
27562
27563         Tests for module 'unicase/ignorable'.
27564         * modules/unicase/ignorable-tests: New file.
27565         * tests/unicase/test-ignorable.c: New file, generated by
27566         gen-uni-tables.
27567
27568         Tests for module 'unicase/cased'.
27569         * modules/unicase/cased-tests: New file.
27570         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27571         * tests/unicase/test-predicate-part1.h: New file, derived from
27572         tests/unictype/test-predicate-part1.h.
27573         * tests/unicase/test-predicate-part2.h: New file, same as
27574         tests/unictype/test-predicate-part2.h.
27575
27576         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27577         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27578         (output_casing_properties): New function.
27579         (main): Call it.
27580         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27581         * lib/unicase/cased.c: Include unictype/bitmap.h.
27582         (uc_is_cased): Define through a bitmap lookup.
27583         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27584         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27585         (uc_is_case_ignorable): Define through a bitmap lookup.
27586         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27587         lib/unictype/bitmap.h.
27588         (Depends-on): Add inline. Clean up.
27589         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27590         lib/unictype/bitmap.h.
27591         (Depends-on): Add inline. Clean up.
27592         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27593         recognition.
27594         * tests/unicase/test-u16-tolower.c (main): Likewise.
27595         * tests/unicase/test-u32-tolower.c (main): Likewise.
27596
27597 2009-06-30  Bruno Haible  <bruno@clisp.org>
27598
27599         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27600         * lib/unicase/u16-casemap.c: Likewise.
27601         * lib/unicase/u32-casemap.c: Likewise.
27602
27603 2009-06-29  Bruno Haible  <bruno@clisp.org>
27604
27605         Define u32_casefold as a wrapper around u32_ct_casefold.
27606         * lib/unicase/u32-casefold.c: Update.
27607         * modules/unicase/u32-casefold (Depends-on): Add
27608         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27609         unicase/empty-suffix-context. Clean up.
27610
27611         Define u16_casefold as a wrapper around u16_ct_casefold.
27612         * lib/unicase/u16-casefold.c: Update.
27613         * modules/unicase/u16-casefold (Depends-on): Add
27614         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27615         unicase/empty-suffix-context. Clean up.
27616
27617         Define u8_casefold as a wrapper around u8_ct_casefold.
27618         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27619         * lib/unicase/u8-casefold.c: Update.
27620         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27621         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27622
27623         Define u32_totitle as a wrapper around u32_ct_totitle.
27624         * lib/unicase/u32-totitle.c: Update.
27625         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27626         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27627
27628         Define u16_totitle as a wrapper around u16_ct_totitle.
27629         * lib/unicase/u16-totitle.c: Update.
27630         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27631         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27632
27633         Define u8_totitle as a wrapper around u8_ct_totitle.
27634         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27635         functions.
27636         (FUNC): Delegate to U_CT_TOTITLE.
27637         * lib/unicase/u8-totitle.c: Update.
27638         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27639         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27640
27641         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27642         invocation.
27643         * modules/unicase/u32-tolower (Depends-on): Add
27644         unicase/empty-prefix-context, unicase/empty-suffix-context.
27645
27646         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27647         invocation.
27648         * modules/unicase/u16-tolower (Depends-on): Add
27649         unicase/empty-prefix-context, unicase/empty-suffix-context.
27650
27651         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27652         * modules/unicase/u8-tolower (Depends-on): Add
27653         unicase/empty-prefix-context, unicase/empty-suffix-context.
27654
27655         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27656         invocation.
27657         * modules/unicase/u32-toupper (Depends-on): Add
27658         unicase/empty-prefix-context, unicase/empty-suffix-context.
27659
27660         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27661         invocation.
27662         * modules/unicase/u16-toupper (Depends-on): Add
27663         unicase/empty-prefix-context, unicase/empty-suffix-context.
27664
27665         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27666         * modules/unicase/u8-toupper (Depends-on): Add
27667         unicase/empty-prefix-context, unicase/empty-suffix-context.
27668
27669         New module 'unicase/u32-ct-casefold'.
27670         * lib/unicase/u32-ct-casefold.c: New file.
27671         * modules/unicase/u32-ct-casefold: New file.
27672
27673         New module 'unicase/u16-ct-casefold'.
27674         * lib/unicase/u16-ct-casefold.c: New file.
27675         * modules/unicase/u16-ct-casefold: New file.
27676
27677         New module 'unicase/u8-ct-casefold'.
27678         * lib/unicase/u8-ct-casefold.c: New file.
27679         * lib/unicase/u-ct-casefold.h: New file, derived from
27680         lib/unicase/u-casefold.h.
27681         * modules/unicase/u8-ct-casefold: New file.
27682
27683         New module 'unicase/u32-ct-totitle'.
27684         * lib/unicase/u32-ct-totitle.c: New file.
27685         * modules/unicase/u32-ct-totitle: New file.
27686
27687         New module 'unicase/u16-ct-totitle'.
27688         * lib/unicase/u16-ct-totitle.c: New file.
27689         * modules/unicase/u16-ct-totitle: New file.
27690
27691         New module 'unicase/u8-ct-totitle'.
27692         * lib/unicase/u8-ct-totitle.c: New file.
27693         * lib/unicase/u-ct-totitle.h: New file, derived from
27694         lib/unicase/u-totitle.h.
27695         * modules/unicase/u8-ct-totitle: New file.
27696
27697         New module 'unicase/u32-ct-tolower'.
27698         * lib/unicase/u32-ct-tolower.c: New file.
27699         * modules/unicase/u32-ct-tolower: New file.
27700
27701         New module 'unicase/u16-ct-tolower'.
27702         * lib/unicase/u16-ct-tolower.c: New file.
27703         * modules/unicase/u16-ct-tolower: New file.
27704
27705         New module 'unicase/u8-ct-tolower'.
27706         * lib/unicase/u8-ct-tolower.c: New file.
27707         * modules/unicase/u8-ct-tolower: New file.
27708
27709         New module 'unicase/u32-ct-toupper'.
27710         * lib/unicase/u32-ct-toupper.c: New file.
27711         * modules/unicase/u32-ct-toupper: New file.
27712
27713         New module 'unicase/u16-ct-toupper'.
27714         * lib/unicase/u16-ct-toupper.c: New file.
27715         * modules/unicase/u16-ct-toupper: New file.
27716
27717         New module 'unicase/u8-ct-toupper'.
27718         * lib/unicase/u8-ct-toupper.c: New file.
27719         * modules/unicase/u8-ct-toupper: New file.
27720
27721         Add context arguments to u*_casemap functions.
27722         * lib/unicase/unicasemap.h: Include unicase.h.
27723         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27724         suffix_context arguments.
27725         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27726         functions.
27727         (FUNC): Add prefix_context and suffix_context arguments. Use
27728         uc_is_cased and uc_is_case_ignorable.
27729         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27730         * lib/unicase/u16-casemap.c: Likewise.
27731         * lib/unicase/u32-casemap.c: Likewise.
27732         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27733         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27734         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27735         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27736         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27737         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27738
27739         New module 'unicase/u32-suffix-context'.
27740         * lib/unicase/u32-suffix-context.c: New file.
27741         * modules/unicase/u32-suffix-context: New file.
27742
27743         New module 'unicase/u16-suffix-context'.
27744         * lib/unicase/u16-suffix-context.c: New file.
27745         * modules/unicase/u16-suffix-context: New file.
27746
27747         New module 'unicase/u8-suffix-context'.
27748         * lib/unicase/u8-suffix-context.c: New file.
27749         * lib/unicase/u-suffix-context.h: New file.
27750         * modules/unicase/u8-suffix-context: New file.
27751
27752         New module 'unicase/empty-suffix-context'.
27753         * lib/unicase/empty-suffix-context.c: New file.
27754         * modules/unicase/empty-suffix-context: New file.
27755
27756         New module 'unicase/u32-prefix-context'.
27757         * lib/unicase/u32-prefix-context.c: New file.
27758         * modules/unicase/u32-prefix-context: New file.
27759
27760         New module 'unicase/u16-prefix-context'.
27761         * lib/unicase/u16-prefix-context.c: New file.
27762         * modules/unicase/u16-prefix-context: New file.
27763
27764         New module 'unicase/u8-prefix-context'.
27765         * lib/unicase/u8-prefix-context.c: New file.
27766         * lib/unicase/u-prefix-context.h: New file.
27767         * lib/unicase/context.h: New file.
27768         * modules/unicase/u8-prefix-context: New file.
27769
27770         New module 'unicase/empty-prefix-context'.
27771         * lib/unicase/empty-prefix-context.c: New file.
27772         * modules/unicase/empty-prefix-context: New file.
27773
27774         New module 'unicase/ignorable'.
27775         * lib/unicase/ignorable.c: New file.
27776         * modules/unicase/ignorable: New file.
27777
27778         New module 'unicase/cased'.
27779         * lib/unicase/caseprop.h: New file.
27780         * lib/unicase/cased.c: New file.
27781         * modules/unicase/cased: New file.
27782
27783         New functions for case mapping of substrings.
27784         * lib/unicase.h (casing_prefix_context_t): New type.
27785         (unicase_empty_prefix_context): New variable.
27786         (u8_casing_prefix_context, u16_casing_prefix_context,
27787         u32_casing_prefix_context, u8_casing_prefixes_context,
27788         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27789         declarations.
27790         (casing_suffix_context_t): New type.
27791         (unicase_empty_suffix_context): New variable.
27792         (u8_casing_suffix_context, u16_casing_suffix_context,
27793         u32_casing_suffix_context, u8_casing_suffixes_context,
27794         u16_casing_suffixes_context, u32_casing_suffixes_context,
27795         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27796         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27797         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27798         declarations.
27799
27800 2009-06-28  Jim Meyering  <meyering@redhat.com>
27801
27802         boostrap: indent only with spaces
27803         * build-aux/bootstrap: Indent only with spaces, never TABs.
27804
27805         bootstrap: split long lines
27806         * build-aux/bootstrap: Keep line length < 80.
27807
27808         bootstrap: sync from coreutils
27809         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27810         just as autoreconf does.  Verify a list of prerequisite
27811         package-name,version-number pairs if defined in bootstrap.conf.
27812         Refer to README-prereq, if prerequisites are not satisfied.
27813
27814 2009-06-27  Eric Blake  <ebb9@byu.net>
27815
27816         tests: add test for bogus NULL definition
27817         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27818         * tests/test-stdlib.c: Likewise.
27819         * tests/test-string.c: Likewise.
27820         * tests/test-locale.c: Likewise.
27821         * tests/test-unistd.c: Likewise.
27822         * modules/stdio-tests (Depends-on): Add verify.
27823         * modules/stdlib-tests (Depends-on): Likewise.
27824         * modules/string-tests (Depends-on): Likewise.
27825         * modules/locale-tests (Depends-on): Likewise.
27826         * modules/unistd-tests (Depends-on): Likewise.
27827
27828 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27829
27830         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27831         self-explaining comment.
27832         * m4/selinux-selinux-h: Update serial.
27833         (gl_LIBSELINUX): New macro, adding a warning for missing development
27834         packages to code extracted from...
27835         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27836         Add warning for missing development packages here, too.
27837
27838 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27839
27840         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27841
27842 2009-06-25  Eric Blake  <ebb9@byu.net>
27843
27844         version-etc: fix regression
27845         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27846         gcc.
27847         (version_etc): Use it, to catch bugs with trailing NULL.
27848         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27849         (version_etc_va): Fix logic bug.
27850         * modules/version-etc-tests: Add test.
27851         * tests/test-version-etc.c: New file.
27852         * tests/test-version-etc.sh: Likewise.
27853
27854 2009-06-25  Sam Steingold  <sds@gnu.org>
27855
27856         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27857         mbtowc declaration.
27858
27859 2009-06-25  Eric Blake  <ebb9@byu.net>
27860
27861         fpurge: migrate into <stdio.h>
27862         * lib/fpurge.h: Delete...
27863         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27864         * lib/fpurge.c (fpurge): Change declaring header.
27865         * modules/fpurge (Files): Drop deleted file.
27866         (Depends-on): Add stdio.
27867         (configure.ac): Set witness.
27868         * modules/stdio (Makefile.am): Support fpurge macros.
27869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27870         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27871         * lib/fflush.c: Update client.
27872         * tests/test-fpurge.c: Likewise.
27873         * NEWS: Mention the change.
27874
27875 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27876
27877         * lib/argp-version-etc.c (program_authors): Add const
27878         qualifier.
27879         * lib/version-etc.c: Fix typos in the comments.
27880         * modules/argp-version-etc: Depends on version-etc.
27881
27882 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27883
27884         argp-version-etc: new module.
27885
27886         * lib/argp-version-etc.c: New file.
27887         * lib/argp-version-etc.h: New file.
27888         * modules/argp-version-etc: New file.
27889         * modules/argp-version-etc-tests: New file.
27890         * tests/test-argp-version-etc.c: New test.
27891         * tests/test-argp-version-etc-1.sh: New test.
27892
27893 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27894
27895         Provide additional interfaces and documentation for version-etc
27896         module.
27897
27898         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27899         interfaces.
27900         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27901         prototypes.
27902
27903 2009-06-24  Bruno Haible  <bruno@clisp.org>
27904
27905         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27906         HAVE_LIB${NAME} macro.
27907         Reported by Sam Steingold <sds@gnu.org>.
27908
27909 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27910
27911         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27912         needed.
27913
27914 2009-06-21  Bruno Haible  <bruno@clisp.org>
27915
27916         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27917         work.
27918         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27919         together with LIB${NAME}, LTLIB${NAME}.
27920         Reported by Sam Steingold <sds@gnu.org>.
27921
27922 2009-06-20  Jim Meyering  <meyering@redhat.com>
27923
27924         tests: make sc_require_test_exit_idiom more generic
27925         * top/maint.mk (Exit_witness_file): New overridable variable.
27926         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27927         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27928
27929 2009-06-19  Jim Meyering  <meyering@redhat.com>
27930
27931         hash: reverse order of src/dst parameters in an internal interface
27932         * lib/hash.c (transfer_entries): Reverse order of parameters to
27933         put DST before SRC.  Adjust callers.
27934
27935         tests: test-hash: avoid wholesale duplication
27936         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27937         Instead, use a loop and add a single conditional.
27938
27939         tests: test-hash: allow seed selection via a command line argument
27940         * tests/test-hash.c (get_seed): New function.
27941         (main): Use it.
27942
27943 2009-06-19  Eric Blake  <ebb9@byu.net>
27944
27945         hash: avoid memory leak on allocation failure
27946         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27947         failure.  Factor repeated algorithm...
27948         (transfer_entries): ...into new helper routine.
27949         (hash_delete): React to hash_rehash return value.
27950
27951         hash: reduce memory pressure in hash_rehash no-op case
27952         * lib/hash.c (next_prime): Avoid overflow.
27953         (hash_initialize): Factor bucket size computation...
27954         (compute_bucket_size): ...into new helper function.
27955         (hash_rehash): Use new function and open coding to reduce memory
27956         pressure, and avoid a memory leak in USE_OBSTACK code.
27957         Reported by Jim Meyering.
27958
27959 2009-06-18  Eric Blake  <ebb9@byu.net>
27960
27961         hash: make rotation more obvious
27962         * modules/hash (Depends-on): Add bitrotate and stdint.
27963         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27964         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27965         (SIZE_MAX): Rely on headers for definition.
27966         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27967         (raw_hasher): Use rotr_sz.
27968         Suggested by Jim Meyering.
27969
27970         hash: fix memory leak in last patch
27971         * lib/hash.c (hash_rehash): Avoid memory leak.
27972
27973         hash: avoid no-op rehashing
27974         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27975
27976         hash: provide default callback functions
27977         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27978         (hash_initialize): Use them as defaults.
27979         * tests/test-hash.c (main): Test this.
27980
27981         hash: minor optimization
27982         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27983         when possible.
27984         (hash_initialize): Document this promise.
27985         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27986         * tests/test-hash.c (hash_compare_strings): Test this.
27987
27988 2009-06-18  Bruno Haible  <bruno@clisp.org>
27989
27990         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27991         going to be replaced anyway.
27992
27993 2009-06-18  Bruno Haible  <bruno@clisp.org>
27994
27995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27996         in one place.
27997         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27998         be replaced anyway.
27999
28000 2009-06-18  Eric Blake  <ebb9@byu.net>
28001
28002         hash: check for resize before insertion
28003         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28004         threshold before insertion, so that a pathological hash_rehash
28005         that fills every bucket can still trigger another rehash.
28006
28007 2009-06-18  Jim Meyering  <meyering@redhat.com>
28008
28009         hash-tests: add a loop around the small tests
28010         * tests/test-hash.c (main): Repeat small tests with selected
28011         small initial table sizes.
28012
28013 2009-06-17  Eric Blake  <ebb9@byu.net>
28014
28015         hash: minor cleanups
28016         * lib/hash.h (hash_entry): Make opaque, by moving...
28017         * lib/hash.c (hash_entry): ...here.
28018         (hash_insert): Clarify restrictions on what can be inserted.
28019         (hash_get_next): Clarify when it is safe to remove an element
28020         during traversal.
28021         (check_tuning): Skip verification when tuning is known safe.
28022         (hash_initialize): Clarify restrictions on tuning.
28023
28024 2009-06-17  Jim Meyering  <jim@meyering.net>
28025         and Eric Blake  <ebb9@byu.net>
28026
28027         hash-tests: new module
28028         * modules/hash-tests: New file.
28029         * tests/test-hash.c: New file.
28030
28031 2009-06-17  Eric Blake  <ebb9@byu.net>
28032
28033         strstr-simple: document new module
28034         * MODULES.html.sh: Document new module.
28035
28036         strstr, strcasestr: replace on platforms with broken memchr
28037         * modules/strstr: Split into...
28038         * modules/strstr-simple: ...new module that does not care about
28039         performance, but does care about glibc bug.
28040         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28041         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28042         if platform memchr is broken, per Debian bug 521737.
28043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28044         memchr.
28045         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28046         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28047         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28048         * modules/mountlist (Depends-on): Add strstr-simple.
28049         * modules/gen-uni-tables (Depends-on): Likewise.
28050         * modules/argz (Depends-on): Add strstr.
28051
28052 2009-06-17  Bruno Haible  <bruno@clisp.org>
28053
28054         * modules/posix_spawn-internal (Depends-on): Add errno.
28055
28056 2009-06-17  Bruno Haible  <bruno@clisp.org>
28057
28058         Define missing ESTALE on Interix 3.5.
28059         * lib/errno.in.h (ESTALE): Assign a value if missing.
28060         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28061         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28062         missing.
28063         * doc/posix-headers/errno.texi: Mention the Interix bug.
28064         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28065
28066 2009-06-15  Eric Blake  <ebb9@byu.net>
28067
28068         memchr, memchr2: add valgrind exception
28069         * lib/memchr.valgrind: New file.
28070         * lib/memchr2.valgrind: New file.
28071         * modules/memchr (Files): Distribute valgrind file.
28072         * modules/memchr2 (Files): Likewise.
28073
28074         docs: memchr is no longer obsolete
28075         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28076         * lib/string.in.h (memchr): Simplify logic.
28077
28078 2009-06-14  Jim Meyering  <meyering@redhat.com>
28079
28080         link-follow: fix the "checking..." message to not mention trailing slash
28081         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28082         never considered trailing slashes.
28083
28084 2009-06-14  Bruno Haible  <bruno@clisp.org>
28085
28086         * m4/memchr.m4: Mention also the bug on IA-64.
28087         * doc/posix-functions/memchr.texi: Likewise.
28088
28089 2009-06-12  Eric Blake  <ebb9@byu.net>
28090
28091         memchr: detect broken x86_64 and alpha implementations
28092         * modules/memchr-tests (Depends-on): Move mmap detection...
28093         * modules/memchr (Depends-on): ...here.
28094         (configure.ac): Set indicator.
28095         * lib/string.in.h (memchr): Declare replacement.
28096         * modules/string (Makefile.am): Trigger replacement.
28097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28098         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28099         bugs.
28100         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28101         * modules/getpagesize (License): Relax license.
28102
28103 2009-06-11  Bruno Haible  <bruno@clisp.org>
28104
28105         * lib/idpriv.h: Add more references.
28106
28107 2009-06-08  Bruno Haible  <bruno@clisp.org>
28108
28109         Tests for module 'idpriv-droptemp'.
28110         * modules/idpriv-droptemp-tests: New file.
28111         * tests/test-idpriv-droptemp.sh: New file.
28112         * tests/test-idpriv-droptemp.su.sh: New file.
28113         * tests/test-idpriv-droptemp.c: New file.
28114
28115         New module 'idpriv-droptemp'.
28116         * lib/idpriv-droptemp.c: New file.
28117         * modules/idpriv-droptemp: New file.
28118
28119 2009-06-08  Bruno Haible  <bruno@clisp.org>
28120
28121         Tests for module 'idpriv-drop'.
28122         * modules/idpriv-drop-tests: New file.
28123         * tests/test-idpriv-drop.sh: New file.
28124         * tests/test-idpriv-drop.su.sh: New file.
28125         * tests/test-idpriv-drop.c: New file.
28126
28127         New module 'idpriv-drop'.
28128         * lib/idpriv.h: New file.
28129         * lib-idpriv-drop.c: New file.
28130         * m4/idpriv.m4: New file.
28131         * modules/idpriv-drop: New file.
28132
28133 2009-06-08  Bruno Haible  <bruno@clisp.org>
28134
28135         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28136         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28137         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28138         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28139         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28140         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28141         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28142
28143 2009-06-08  Eric Blake  <ebb9@byu.net>
28144
28145         test-strstr: use memory fence, when possible
28146         * tests/test-strstr.c (main): Use memory fence, in order to be
28147         more likely to trigger Debian bug 521737.
28148         * modules/strstr-tests (Files): Pull in additional files.
28149
28150         memchr: no longer obsolete, for wider field testing
28151         * modules/memchr (Status, Notice): Delete, this module is no
28152         longer obsolete.
28153         * modules/vasnprintf (Depends-on): Add memchr.
28154
28155 2009-06-07  Jim Meyering  <meyering@redhat.com>
28156
28157         hash: declare some functions with the warn_unused_result attribute
28158         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28159
28160 2009-06-07  Bruno Haible  <bruno@clisp.org>
28161
28162         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28163         Reported by Eric Blake.
28164
28165 2009-06-06  Eric Blake  <ebb9@byu.net>
28166
28167         test-alignof: fix typo with long double
28168         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28169         compiler error.
28170
28171 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28172
28173         Escape non-texinfo { and }s.
28174         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28175         markup error.
28176
28177 2009-06-04  Jim Meyering  <meyering@redhat.com>
28178
28179         gitlog-to-changelog: don't infloop on an empty commit log
28180         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28181         Reported by Boris Petersen <transacid@centerim.org>.
28182
28183 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28184
28185         version-etc: extend for packagers
28186         Add three new configure options, intended for packagers:
28187           --with-packager="packager name"
28188           --with-packager-version="packager-specific version"
28189           --with-packager-bug-reports="packager bug reporting"
28190         An example with coreutils:
28191           $ ./configure \
28192             --with-packager=Gentoo \
28193             --with-packager-bug-report=http://bugs.gentoo.org/ \
28194             --with-packager-version="patchset 1.6"
28195           $ ./src/ls --version | head -n2
28196           ls (GNU coreutils) 7.1-dirty
28197           Packaged by Gentoo (patchset 1.6)
28198         Note that the bug reporting info via --help doesn't show up because
28199         coreutils uses its own custom emit_bug_reporting_address() implementation
28200         in src/system.h.  If it didn't, it'd look like:
28201           $ ./src/ls --help | tail -n4
28202           Report bugs to <bug-coreutils@gnu.org>.
28203           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28204           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28205           General help using GNU software: <http://www.gnu.org/gethelp/>.
28206         * lib/version-etc.c: Print new information, if provided.
28207         * m4/version-etc.m4: New file.
28208         * modules/version-etc (Files): Add m4/version-etc.m4.
28209         (configure.ac): Add gl_VERSION_ETC.
28210
28211 2009-05-31  Bruno Haible  <bruno@clisp.org>
28212
28213         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28214         and 'int64_t'.
28215         * modules/alignof-tests (Dependencies): Add stdint.
28216         Reported by Eric Blake.
28217
28218 2009-05-31  Bruno Haible  <bruno@clisp.org>
28219
28220         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28221         restriction due to compiler bugs.
28222         Reported by Eric Blake.
28223
28224 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28225             Bruno Haible  <bruno@clisp.org>
28226
28227         Fix test-alignof failure.
28228         * lib/alignof.h (alignof_slot): New macro.
28229         (alignof_type): New macro, with the same semantics as the previous
28230         'alignof'.
28231         (alignof): Alias to alignof_slot.
28232         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28233         check that the results are usable as constant expressions.
28234
28235 2009-05-31  Bruno Haible  <bruno@clisp.org>
28236
28237         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28238         * tests/test-memchr.c (main): Check that memchr does not read past the
28239         first occurrence of the byte.
28240         * tests/test-strstr.c (main): Update comment.
28241         Suggested by Eric Blake.
28242
28243 2009-05-30  Bruno Haible  <bruno@clisp.org>
28244
28245         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28246         detail how to use dumpbin.
28247         Reported by David Byron <dbyron@dbyron.com>.
28248
28249 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28250
28251         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28252
28253 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28254
28255         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28256
28257 2009-05-28  Bruno Haible  <bruno@clisp.org>
28258
28259         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28260         build-aux/ files.
28261
28262 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28263
28264         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28265
28266 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28267
28268         * gnulib-tool (sed_transform_main_lib_file)
28269         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28270         regexps.
28271
28272 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28273
28274         * tests/test-strstr.c: Add another self-test.
28275         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28276         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28277
28278 2009-05-23  Bruno Haible  <bruno@clisp.org>
28279
28280         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28281         change.
28282
28283 2009-05-21  Bruno Haible  <bruno@clisp.org>
28284
28285         Simplify use of mode_t varargs.
28286         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28287         uses 'mode_t' or 'int'.
28288         * lib/openat.c (openat): Likewise.
28289         * lib/open-safer.c (open_safer): Likewise.
28290         * m4/mode_t.m4: New file.
28291         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28292         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28293         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28294         * modules/open (Files): Add m4/mode_t.m4.
28295         * modules/openat (Files): Likewise.
28296         * modules/fcntl-safer (Files): Likewise.
28297         Suggested by Eric Blake.
28298
28299 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28300
28301         * doc/glibc-functions/fallocate.texi: New file.
28302         * doc/gnulib.texi: Include it.
28303
28304 2009-05-21  Eric Blake  <ebb9@byu.net>
28305             Bruno Haible  <bruno@clisp.org>
28306
28307         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28308         invocations.
28309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28310
28311 2009-05-21  Eric Blake  <ebb9@byu.net>
28312             Bruno Haible  <bruno@clisp.org>
28313
28314         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28315         include_next. Fix of 2008-11-20 commit.
28316         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28317         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28318         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28319         NEXT_MATH_H.
28320         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28321         instead of NEXT_MATH_H.
28322
28323 2009-05-21  Bruno Haible  <bruno@clisp.org>
28324
28325         Avoid redefinition warnings for SIZE_MAX.
28326         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28327         Reported by Simon Josefsson.
28328
28329 2009-05-21  Bruno Haible  <bruno@clisp.org>
28330
28331         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28332         AC_CACHE_VAL.
28333
28334 2009-05-20  Bruno Haible  <bruno@clisp.org>
28335
28336         Make zeroptr.h work on mingw.
28337         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28338         mprotect.
28339         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28340         * modules/memchr2-tests (configure.ac): Likewise.
28341         * modules/memcmp-tests (configure.ac): Likewise.
28342         * modules/memmem-tests (configure.ac): Likewise.
28343         * modules/memrchr-tests (configure.ac): Likewise.
28344         Reported by Simon Josefsson.
28345
28346 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28347
28348         * tests/test-glob.c: Include string.h for strcmp prototype.
28349
28350 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28351
28352         * modules/getdelim (Depends-on): Add explicit stdint, although it
28353         was implicitly already pulled in via realloc-posix.
28354         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28355
28356 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28357
28358         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28359         G. Christensen" <tgc@jupiterrise.com>.
28360         * m4/sys_socket_h.m4: Check for sa_family_t.
28361         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28362         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28363         * tests/test-sys_socket.c: Check that sa_family_t works.
28364
28365 2009-05-18  Eric Blake  <ebb9@byu.net>
28366
28367         maint.mk: allow gnulib_dir in VPATH build
28368         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28369
28370 2009-05-15  Jim Meyering  <meyering@redhat.com>
28371
28372         maint.mk: Give gnulib_dir a default definition.
28373         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28374         Thus, most packages no longer need to specify this variable in cfg.mk
28375
28376 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28377
28378         rename.m4: fix typos that would make non-mingw cross-configure fail
28379         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28380
28381 2009-05-13  Eric Blake  <ebb9@byu.net>
28382
28383         mmap-anon: avoid out-of-order autoconf expansion
28384         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28385         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28386         * modules/memchr-tests (Depends-on): Add extensions.
28387         * modules/memchr2-tests (Depends-on): Add extensions.
28388         * modules/memcmp-tests (Depends-on): Add extensions.
28389         * modules/memmem-tests (Depends-on): Add extensions.
28390         * modules/memrchr-tests (Depends-on): Add extensions.
28391
28392 2009-05-13  Bruno Haible  <bruno@clisp.org>
28393
28394         Make some tests ISO C 99 compliant.
28395         * tests/zerosize-ptr.h: New file.
28396         * tests/test-memchr.c: Include zerosize-ptr.h.
28397         (main): Use a zero-size object pointer instead of NULL.
28398         * tests/test-memchr2.c: Include zerosize-ptr.h.
28399         (main): Use a zero-size object pointer instead of NULL.
28400         * tests/test-memcmp.c: Include zerosize-ptr.h.
28401         (main): Use a zero-size object pointer instead of NULL.
28402         * tests/test-memmem.c: Include zerosize-ptr.h.
28403         (main): Use a zero-size object pointer instead of NULL.
28404         * tests/test-memrchr.c: Include zerosize-ptr.h.
28405         (main): Use a zero-size object pointer instead of NULL.
28406         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28407         m4/mmap-anon.m4.
28408         (Depends-on): Add getpagesize.
28409         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28410         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28411         m4/mmap-anon.m4.
28412         (Depends-on): Add getpagesize.
28413         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28414         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28415         m4/mmap-anon.m4.
28416         (Depends-on): Add getpagesize.
28417         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28418         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28419         m4/mmap-anon.m4.
28420         (Depends-on): Add getpagesize.
28421         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28422         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28423         m4/mmap-anon.m4.
28424         (Depends-on): Add getpagesize.
28425         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28426
28427 2009-05-12  Bruno Haible  <bruno@clisp.org>
28428
28429         Tests for module 'alignof'.
28430         * modules/alignof-tests: New file.
28431         * tests/test-alignof.c: New file.
28432
28433 2009-05-12  Bruno Haible  <bruno@clisp.org>
28434
28435         Fix alignof macro.
28436         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28437         vendor compilers that are always correct.
28438
28439 2009-05-12  Bruno Haible  <bruno@clisp.org>
28440
28441         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28442         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28443         not whether its fully works.
28444
28445 2009-05-12  Bruno Haible  <bruno@clisp.org>
28446
28447         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28448
28449 2009-05-12  Jim Meyering  <meyering@redhat.com>
28450
28451         * top/maint.mk: Adjust backslash alignment.
28452
28453 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28454
28455         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28456
28457 2009-05-11  Eric Blake  <ebb9@byu.net>
28458
28459         argp: avoid undefined behavior
28460         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28461         macros.
28462
28463 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28464
28465         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28466         user.name to prevent git commit from complaining.
28467
28468 2009-05-10  Bruno Haible  <bruno@clisp.org>
28469
28470         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28471         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28472         it rewrites every file name only once.
28473         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28474
28475 2009-05-08  Bruno Haible  <bruno@clisp.org>
28476
28477         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28478         instead of 'max'.
28479
28480 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28481
28482         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28483         sockaddr_storage test.
28484
28485 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28486
28487         * modules/sys_socket (Makefile.am): Substitute
28488         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28489         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28490         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28491         * tests/test-sys_socket.c: Check sockaddr_storage.
28492
28493 2009-05-08  Bruno Haible  <bruno@clisp.org>
28494
28495         New module 'alignof'.
28496         * lib/alignof.h: New file.
28497         * modules/alignof: New file.
28498
28499 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28500             Bruno Haible  <bruno@clisp.org>
28501
28502         Fix test-file-has-acl on FreeBSD.
28503         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28504         mask is implicitly added.
28505         * tests/test-file-has-acl.c: Include <signal.h>.
28506         (main): Terminate the test after 5 seconds.
28507         * modules/acl-tests (configure.ac): Check for alarm function.
28508
28509 2009-05-04  Bruno Haible  <bruno@clisp.org>
28510
28511         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28512         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28513         * modules/errno (configure.ac): Drop AC_REQUIRE.
28514         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28515         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28516
28517 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28518
28519         * modules/glob-tests: New module.
28520         * tests/test-glob.c: Add.
28521
28522 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28523
28524         * modules/fnmatch-tests: New module.
28525         * tests/test-fnmatch.c: Add.
28526
28527 2009-05-04  Eric Blake  <ebb9@byu.net>
28528
28529         maint: make the new no-submodule-changes rule VPATH-safe
28530         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28531
28532 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28533             Bruno Haible  <bruno@clisp.org>
28534
28535         acl: Fix infinite loop on FreeBSD.
28536         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28537         of return value from acl_get_entry.
28538         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28539         Likewise.
28540
28541 2009-05-03  Bruno Haible  <bruno@clisp.org>
28542
28543         * lib/acl-internal.h (acl_entries): Clarify return value.
28544         * lib/acl_entries.c (acl_entries): Likewise.
28545
28546 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28547
28548         Bug fix in acl module.
28549         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28550
28551 2009-05-03  Bruno Haible  <bruno@clisp.org>
28552
28553         Create gperf-generated file in the source dir, not in the build dir.
28554         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28555         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28556         * modules/unicase/locale-language (unicase/locale-languages.h):
28557         Likewise.
28558         * modules/unicase/special-casing (unicase/special-casing-table.h):
28559         Likewise.
28560         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28561         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28562         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28563         Reported by Ralf Wildenhues.
28564
28565 2009-05-03  Bruno Haible  <bruno@clisp.org>
28566
28567         * modules/fnmatch (Description, configure.ac): Taken from
28568         fnmatch-posix.
28569         * modules/fnmatch-posix: Turn into a symbolic reference to the
28570         'fnmatch' module, and deprecate.
28571         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28572
28573 2009-05-03  Bruno Haible  <bruno@clisp.org>
28574
28575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28576         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28577         Reported by Ralf Wildenhues.
28578
28579 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28580
28581         * m4/fnmatch.m4: Fix fnmatch re-define.
28582
28583 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28584
28585         priv-set: new module and tests; adapt write-any-file
28586         * lib/priv-set.c: New file.
28587         * lib/priv-set.h: New file.
28588         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28589         * lib/write-any-file.c: Simplify by using priv-set module.
28590         * m4/priv-set.m4: New file.
28591         * modules/priv-set: New file.
28592         * modules/unlinkdir: Add dependency on priv-set module.
28593         * modules/write-any-file: Likewise.
28594
28595         Tests for module 'priv-set'.
28596         * modules/priv-set-tests: New file.
28597         * tests/test-priv-set.c: New file.
28598
28599 2009-05-03  Jim Meyering  <meyering@redhat.com>
28600             Bruno Haible  <bruno@clisp.org>
28601
28602         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28603         use the converted UTF-8 variant of the name instead.
28604
28605 2009-05-03  Jim Meyering  <meyering@redhat.com>
28606
28607         tests: tighten some getdate tests
28608         * tests/test-getdate.c (main): Tighten tests: require equality,
28609         not just greater than.  Set TZ envvar to UTC0.
28610
28611 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28612
28613         getdate: correctly interpret "next monday" when run on a Monday
28614         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28615         that e.g., "next tues" (when run on a tuesday) results in a date
28616         that is one week in the future, and not today's date.
28617         I.e., add a week when the wday is the same as the current one.
28618         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28619         and earlier by Martin Bernreuther and Jan Minář.
28620         * tests/test-getdate.c (main): Check that "next DAY" is always in
28621         the future and that "last DAY" is always in the past.
28622
28623 2009-05-02  Jim Meyering  <meyering@redhat.com>
28624
28625         build: ensure that a release build fails when a submodule is unclean
28626         * top/maint.mk (no-submodule-changes): New rule.
28627         (alpha beta major): Depend on it.
28628
28629 2009-05-02  Bruno Haible  <bruno@clisp.org>
28630
28631         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28632         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28633         shell variable gl_fnmatch_required to detect which variant is
28634         requested.
28635         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28636         gl_FUNC_FNMATCH_POSIX.
28637         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28638         exclude fnmatch-posix.
28639
28640 2009-05-02  Bruno Haible  <bruno@clisp.org>
28641
28642         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28643         * modules/mbsrtowcs (License): Change to LGPLv2+.
28644         * modules/strnlen1 (License): Likewise.
28645         Reported by Simon Josefsson.
28646
28647 2009-05-02  Bruno Haible  <bruno@clisp.org>
28648
28649         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28650         "cross".
28651         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28652         gnulib-tool was called with option --source-base=lib.
28653
28654 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28655
28656         Use automake *-local hooks without commands, for extensibility.
28657         * modules/localcharset (Makefile.am): Rename install-exec-local
28658         rule to install-exec-localcharset, and make it a prerequisite of
28659         install-exec-local.  Likewise, rename the uninstall-local rule to
28660         uninstall-localcharset, and make it a prerequisite of the former.
28661
28662 2009-05-01  Bruno Haible  <bruno@clisp.org>
28663
28664         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28665         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28666         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28668         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28669         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28670         m4/locale-zh.m4, m4/codeset.m4.
28671
28672         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28673         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28674         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28675         m4/locale-zh.m4.
28676
28677         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28678         REPLACE_WCRTOMB if mbstate_t must be replaced.
28679         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28680         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28681
28682 2009-05-01  Bruno Haible  <bruno@clisp.org>
28683
28684         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28685         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28686         dngettext, dcngettext, textdomain, bindtextdomain,
28687         bind_textdomain_codeset): Undefine before redefining.
28688
28689 2009-04-30  Bruno Haible  <bruno@clisp.org>
28690
28691         Fix bug introduced on 2009-04-25.
28692         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28693         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28694         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28695         is defined.
28696         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28697         is defined.
28698         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28699         is defined.
28700         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28701
28702 2009-04-28  Bruno Haible  <bruno@clisp.org>
28703
28704         Comment tweaks.
28705         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28706         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28707         * lib/unicase.h (u*_casexfrm): Likewise.
28708         Reported by Paolo Bonzini.
28709
28710 2009-04-28  Bruno Haible  <bruno@clisp.org>
28711
28712         Fix a compilation error.
28713         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28714         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28715         Reported by Jim Meyering.
28716
28717 2009-04-27  Bruno Haible  <bruno@clisp.org>
28718
28719         New module 'libunistring'.
28720         * modules/libunistring: New file.
28721         * m4/libunistring.m4: New file.
28722         * MODULES.html.sh (Unicode string functions): Add it.
28723
28724 2009-04-27  Eric Blake  <ebb9@byu.net>
28725
28726         maint.mk: allow package-specific header to provide <config.h>
28727         * top/maint.mk (sc_require_config_h): New variable.
28728         (sc_require_config_h, sc_require_config_h_first): Use it.
28729
28730 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28731
28732         * top/maint.mk (sc_avoid_if_before_free): Except
28733         useless-if-before-free script.
28734
28735 2009-04-27  Eric Blake  <ebb9@byu.net>
28736
28737         maintainer-makefile: depend on all required helper scripts
28738         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28739         useless-if-before-free.
28740         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28741         version, rather than assuming gnulib checkout is available.
28742         Reported by Simen Josefsson.
28743
28744 2009-04-26  Bruno Haible  <bruno@clisp.org>
28745
28746         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28747         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28748         "../" or "..".
28749
28750 2009-04-26  Bruno Haible  <bruno@clisp.org>
28751
28752         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28753         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28754         AC_LIB_HAVE_LINKFLAGS.
28755
28756 2009-04-26  Bruno Haible  <bruno@clisp.org>
28757
28758         Simplify calling convention of u*_conv_from_encoding.
28759         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28760         u32_conv_from_encoding): Expect a resultbuf argument and return the
28761         result directly as a pointer.
28762         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28763         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28764         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28765         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28766         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28767         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28768         Update.
28769         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28770         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28771         * lib/vasnprintf.c (VASNPRINTF): Update.
28772         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28773         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28774         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28775         * NEWS: Mention the change.
28776
28777 2009-04-26  Bruno Haible  <bruno@clisp.org>
28778
28779         Simplify calling convention of u*_conv_to_encoding.
28780         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28781         u32_conv_to_encoding): Expect a resultbuf argument and return the
28782         result directly as a pointer.
28783         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28784         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28785         freeing scaled_offsets if mem_iconveha failed.
28786         * lib/unicase/u-casexfrm.h (FUNC): Update.
28787         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28788         * lib/vasnprintf.c (VASNPRINTF): Update.
28789         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28790         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28791         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28792         * NEWS: Mention the change.
28793
28794 2009-04-26  Bruno Haible  <bruno@clisp.org>
28795
28796         Avoid test failures on AIX and OSF/1.
28797         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28798         malloc(0).
28799         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28800         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28801         Likewise.
28802         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28803         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28804         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28805         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28806         * doc/posix-functions/malloc.texi: Document the portability problem
28807         related to malloc(0).
28808
28809 2009-04-26  Bruno Haible  <bruno@clisp.org>
28810
28811         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28812         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28813         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28814
28815 2009-04-25  Bruno Haible  <bruno@clisp.org>
28816
28817         Avoid link error when creating a namespace clean library.
28818         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28819         as macro with arguments if already defined as an alias.
28820         * lib/signbitf.c (gl_signbitf): Don't undefine.
28821         * lib/signbitd.c (gl_signbitd): Don't undefine.
28822         * lib/signbitl.c (gl_signbitl): Don't undefine.
28823
28824 2009-04-25  Jim Meyering  <meyering@redhat.com>
28825
28826         vc-list-files: fix another quoting bug
28827         * build-aux/vc-list-files: Avoid sed backslash expansion
28828         of pathological directory names.
28829
28830 2009-04-25  Eric Blake  <ebb9@byu.net>
28831
28832         vc-list-files: fix shell quoting error
28833         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28834         timestamp.
28835
28836 2009-04-25  Jim Meyering  <meyering@redhat.com>
28837
28838         vc-list-files: restore lost functionality with subdir argument
28839         * build-aux/vc-list-files: When given a non-"." sub-directory
28840         argument, substitute the $dir/ prefix back onto each resulting name.
28841         Otherwise, coreutils' root_tests check would fail.
28842
28843 2009-04-24  Eric Blake  <ebb9@byu.net>
28844
28845         vc-list-files: ignore git symlinks
28846         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28847         than ls-files, to ignore git symlinks.
28848
28849         maint.mk: import improvements from m4
28850         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28851         (move_if_change): Delete unused macro.
28852         (news-date-check, vc-diff-check): Support VPATH builds.
28853         (announcement): Likewise.  Split --bootstrap-tools list...
28854         (boostrap-tools): ...into separate list, which can be overridden
28855         in cfg.mk.
28856         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28857         requiring dependency on useless-if-before-free module.
28858         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28859         Support VPATH builds.
28860
28861 2009-04-24  Jim Meyering  <meyering@redhat.com>
28862
28863         maint.mk: remove coreutils-specific rules and variables
28864         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28865         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28866         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28867
28868         maint.mk: remove obsolete rule
28869         * top/maint.mk (rel-check): Remove rule.
28870         (WGET, WGETFLAGS): Remove now-unused variables.
28871
28872 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28873
28874         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28875         consistency.
28876
28877         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28878         '$(PATH_SEPARATOR)' instead of ':'.
28879
28880 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28881
28882         * lib/getopt1.c (main): Use 'const' for static array.
28883
28884 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28885
28886         * top/maint.mk: Sync with coreutils.
28887         * NEWS: Explain incompatibilities.
28888
28889 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28890             Bruno Haible  <bruno@clisp.org>
28891
28892         Fix cross-compilation results.
28893         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28894         statement, as third argument of AC_TRY_RUN.
28895         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28896         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28897         Likewise.
28898         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28899         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28900         Likewise.
28901         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28902         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28903         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28904
28905 2009-04-20  Bruno Haible  <bruno@clisp.org>
28906
28907         Avoid test failure on mingw.
28908         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28909
28910 2009-04-20  Bruno Haible  <bruno@clisp.org>
28911
28912         Avoid compilation error on mingw.
28913         * modules/localename-tests (Depends-on): Add locale.
28914
28915 2009-04-19  Bruno Haible  <bruno@clisp.org>
28916
28917         Support for building a shared library on Windows platforms.
28918         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28919         (main): Test the presence of UNINORM_NFC here.
28920         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28921         (main): Test the presence of UNINORM_NFD here.
28922         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28923         (main): Test the presence of UNINORM_NFKC here.
28924         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28925         (main): Test the presence of UNINORM_NFKD here.
28926
28927 2009-04-19  Bruno Haible  <bruno@clisp.org>
28928
28929         Avoid a compiler warning.
28930         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28931         Change type of variable 'sequence'.
28932
28933 2009-04-19  Bruno Haible  <bruno@clisp.org>
28934
28935         * modules/configmake (Makefile.am): When the contents of configmake.h
28936         does not change, arrange to preserve its modification time.
28937
28938 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28939
28940         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28941         gettext domain.
28942
28943 2009-04-16  Jim Meyering  <meyering@redhat.com>
28944
28945         useless-if-before-free: improve conversion code
28946         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28947         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28948
28949 2009-04-14  Bruno Haible  <bruno@clisp.org>
28950
28951         * modules/fcntl (Depends-on): Add extensions.
28952         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28953
28954 2009-04-12  Ben Pfaff  <blp@gnu.org>
28955
28956         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28957         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28958
28959 2009-03-20  Ben Pfaff  <blp@gnu.org>
28960
28961         Make rename replace existing destinations on Windows.
28962         * m4/rename.m4: Add test for Mingw.
28963         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28964         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28965         * doc/posix-functions/rename.texi: Document.
28966
28967 2009-04-10  Bruno Haible  <bruno@clisp.org>
28968
28969         New include file "iconveh.h".
28970         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28971         * lib/striconveh.h: Include it.
28972         (enum iconv_ilseq_handler): Remove definition.
28973         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28974         striconveh.h.
28975         * lib/striconveha.c: Include striconveh.h.
28976         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28977         * modules/striconveh (Files): Add lib/iconveh.h.
28978         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28979         lib/striconveh.h.
28980
28981 2009-04-10  Bruno Haible  <bruno@clisp.org>
28982
28983         * lib/uniconv.h: Update comment.
28984
28985 2009-04-10  Bruno Haible  <bruno@clisp.org>
28986
28987         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28988         always.
28989         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28990         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28991         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28992         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28993         "unistring-notinline.h", so that the function gets defined always.
28994         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28995         * lib/unistr/u8-uctomb.c: Likewise.
28996         * lib/unistr/u16-mbtouc.c: Likewise.
28997         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28998         * lib/unistr/u16-uctomb.c: Likewise.
28999         * lib/unistr/u32-mbtouc.c: Likewise.
29000         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29001         * lib/unistr/u32-uctomb.c: Likewise.
29002
29003 2009-04-10  Bruno Haible  <bruno@clisp.org>
29004
29005         Mark 'utime' obsolete.
29006         * modules/utime (Status, Notice): New sections.
29007         Suggested by Jim Meyering.
29008
29009         Fix cross-compile guess for utime test.
29010         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29011         autoconf.
29012         * doc/posix-functions/utime.texi: Give more precisions.
29013         Reported by Jan <ipif@ymail.com>.
29014
29015 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29016
29017         filevercmp: correct today's change
29018         * lib/filevercmp.c: Also handle coreutils' test inputs.
29019         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29020
29021         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29022         for reporting it.
29023         * lib/filevercmp.c: Special handle for "", "." and "..".
29024         * tests/test-filevercmp.c: Enlarge the set suite.
29025
29026 2009-04-07  Jim Meyering  <meyering@redhat.com>
29027
29028         useless-if-before-free: show how to remove braced useless free, too
29029         * build-aux/useless-if-before-free: still only in a comment, though.
29030
29031 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29032
29033         maint.mk: import changes to syntax-check macros from coreutils
29034         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29035         Use them in the relevant macros.
29036
29037 2009-04-06  Bruno Haible  <bruno@clisp.org>
29038
29039         Fix unportable use of bit-fields.
29040         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29041         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29042         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29043
29044 2009-04-06  Bruno Haible  <bruno@clisp.org>
29045
29046         Avoid test failures on AIX and OSF/1.
29047         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29048         that malloc(0) = NULL.
29049         * tests/unicase/test-u8-tolower.c (check): Likewise.
29050         * tests/unicase/test-u8-totitle.c (check): Likewise.
29051         * tests/unicase/test-u8-toupper.c (check): Likewise.
29052         * tests/unicase/test-u16-casefold.c (check): Likewise.
29053         * tests/unicase/test-u16-tolower.c (check): Likewise.
29054         * tests/unicase/test-u16-totitle.c (check): Likewise.
29055         * tests/unicase/test-u16-toupper.c (check): Likewise.
29056         * tests/unicase/test-u32-casefold.c (check): Likewise.
29057         * tests/unicase/test-u32-tolower.c (check): Likewise.
29058         * tests/unicase/test-u32-totitle.c (check): Likewise.
29059         * tests/unicase/test-u32-toupper.c (check): Likewise.
29060         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29061         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29062         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29063         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29064         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29065         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29066         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29067         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29068         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29069         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29070         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29071         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29072
29073 2009-04-05  Bruno Haible  <bruno@clisp.org>
29074
29075         Work around an autoconf limitation.
29076         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29077         comment line if it would be longer than 3 KB.
29078
29079 2009-04-05  Bruno Haible  <bruno@clisp.org>
29080
29081         Avoid test failure with libiconv-1.13.
29082         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29083         of the expected test results.
29084
29085 2009-04-05  Bruno Haible  <bruno@clisp.org>
29086
29087         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29088         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29089         that it should be installed.
29090
29091 2009-04-05  Bruno Haible  <bruno@clisp.org>
29092
29093         * gnulib-tool: New option --copy-file.
29094         (func_usage): Document it.
29095         (func_dest_tmpfilename): Moved out of func_import.
29096         (func_add_file, func_update_file): New functions, extracted from
29097         func_import.
29098         (func_import): Update.
29099
29100 2009-04-05  Karl Berry  <karl@gnu.org>
29101
29102         * README: prominently mention gnulib-tool.
29103         Rearrange sections so getting the code is near the top.
29104
29105 2009-04-05  Bruno Haible  <bruno@clisp.org>
29106
29107         * lib/unicase.h: Mention u*_cmp2.
29108         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29109         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29110         * lib/unicase/ulc-casecmp.c: Likewise.
29111         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29112         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29113         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29114         unistr/u8-cmp.
29115         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29116         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29117         unistr/u16-cmp.
29118         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29119         unistr/u32-cmp.
29120
29121         * lib/uninorm.h: Mention u*_cmp2.
29122         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29123         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29124         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29125         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29126         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29127         unistr/u8-cmp.
29128         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29129         unistr/u16-cmp.
29130         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29131         unistr/u32-cmp.
29132
29133         New module 'unistr/u32-cmp2'.
29134         * lib/unistr/u32-cmp2.c: New file.
29135         * modules/unistr/u32-cmp2: New file.
29136
29137         New module 'unistr/u16-cmp2'.
29138         * lib/unistr/u16-cmp2.c: New file.
29139         * modules/unistr/u16-cmp2: New file.
29140
29141         New module 'unistr/u8-cmp2'.
29142         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29143         * lib/unistr/u8-cmp2.c: New file.
29144         * lib/unistr/u-cmp2.h: New file.
29145         * modules/unistr/u8-cmp2: New file.
29146
29147 2009-04-05  Bruno Haible  <bruno@clisp.org>
29148
29149         * lib/unictype.h (uc_property_is_valid): New macro.
29150         * tests/unictype/test-pr_byname.c (main): Use it.
29151
29152         * lib/unistr.h: Doc fixes.
29153         * lib/uniconv.h: Doc fixes.
29154         * lib/unictype.h: Doc fixes.
29155
29156 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29157
29158         Port coreutils 7.2 to Solaris 8.
29159
29160         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29161         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29162         for Solaris 8.  This is a bit of a hack, as it means it's the
29163         caller's responsibility to add -lnsl if needed, but most likely it
29164         won't be needed since only getaddrinfo uses this and getaddrinfo
29165         isn't needed on Solaris 8.
29166
29167         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29168         problem to Solaris 8 encountered with coreutils 7.2, which
29169         resulted in a message "fnmatch.c:292: warning: passing argument 4
29170         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29171         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29172
29173 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29174
29175         * m4/ld-version-script.m4: Add FIXME comment.
29176
29177 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29178
29179         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29180         SOVERSION variable.
29181
29182 2009-04-02  Bruno Haible  <bruno@clisp.org>
29183
29184         * Makefile (info, html, dvi, pdf): Combine the rules.
29185         Suggested by Jim Meyering.
29186
29187 2009-04-01  Bruno Haible  <bruno@clisp.org>
29188
29189         * Makefile (info, html, dvi, pdf): New targets.
29190         Reported by Reuben Thomas <rrt@sc3d.org>.
29191
29192 2009-04-01  Bruno Haible  <bruno@clisp.org>
29193
29194         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29195         can be put into PATH.
29196         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29197
29198 2009-04-01  Bruno Haible  <bruno@clisp.org>
29199
29200         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29201
29202 2009-04-01  Bruno Haible  <bruno@clisp.org>
29203
29204         Rename module 'visibility'.
29205         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29206         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29207         * doc/gnulib.texi: Update.
29208         * MODULES.html.sh (Misc): Update.
29209         * NEWS: Mention the change.
29210
29211 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29212
29213         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29214         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29215         Eric Blake <ebb9@byu.net> for review.
29216         * MODULES.html.sh: Add lib-msvc-compat.
29217         * doc/gnulib.texi: Link to new section.
29218         * m4/ld-output-def.m4: New file.
29219         * doc/ld-output-def.texi: New file.
29220
29221 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29222
29223         Rename ld-version-script to lib-symbol-versions.  Suggested by
29224         Bruno Haible <bruno@clisp.org>.
29225         * modules/ld-version-script: Renamed to lib-symbol-versions.
29226         * doc/ld-version-script.texi: Fix module name.
29227         * MODULES.html.sh: Add lib-symbol-versions.
29228
29229 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29230
29231         * modules/u64-tests: New file.
29232         * tests/test-u64.c: New file.
29233
29234 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29235
29236         * MODULES.html.sh: Mention u64.
29237         * modules/u64: New module.
29238         * modules/crypto/sha512: Depend on u64 module instead of providing
29239         u64.h.
29240
29241 2009-03-27  Eric Blake  <ebb9@byu.net>
29242
29243         test-strerror: make debugging EAI_SYSTEM easier
29244         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29245         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29246         failure was EAI_SYSTEM.
29247
29248 2009-03-25  Bruno Haible  <bruno@clisp.org>
29249
29250         Fix a problem with --enable-relocatable on Solaris 7.
29251         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29252         since 2008-02-24.
29253
29254 2009-03-25  Eric Blake  <ebb9@byu.net>
29255
29256         test-sockets: avoid gcc warning
29257         * tests/test-sockets.c (main): Silence compiler warning.
29258
29259 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29260
29261         New modules nproc, pthread, contributed by Glen Lenker.
29262
29263         * MODULES.html.sh: Add pthread, nproc.
29264         * lib/nproc.c: New file.
29265         * lib/nproc.h: New file.
29266         * lib/pthread.in.h: New file.
29267         * m4/pthread.m4: New file.
29268         * modules/nproc: New file.
29269         * modules/pthread: New file.
29270
29271 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29272
29273         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29274         New variable.
29275
29276 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29277
29278         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29279         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29280         * tests/test-filevercmp.c: Add tests for backup suffixes.
29281
29282 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29283
29284         * modules/stdlib (Depends-on): Add stdint, needed when defining
29285         struct random_data on, for example, HP-UX 10.20.  Reported by
29286         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29287
29288 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29289
29290         * lib/readline.c (readline): Call fflush on stdout after printing
29291         prompt.
29292
29293 2009-03-20  Bruno Haible  <bruno@clisp.org>
29294
29295         Remove dependency from 'close' module to -lws2_32 on native Windows.
29296         * lib/close-hook.h: New file.
29297         * lib/close-hook.c: New file.
29298         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29299         w32sock.h.
29300         (_gl_close_fd_maybe_socket): Remove function.
29301         (rpl_close): Invoke execute_all_close_hooks instead of
29302         _gl_close_fd_maybe_socket.
29303         * lib/sockets.c: Include close-hook.h, w32sock.h.
29304         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29305         (close_sockets_hook): New variable.
29306         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29307         (gl_sockets_cleanup): Unregister it.
29308         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29309         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29310         * modules/close-hook: New file.
29311         * modules/close (Files): Remove lib/w32sock.h.
29312         (Depends-on): Add close-hook.
29313         (Link): Remove section.
29314         * modules/sockets (Files): Add lib/w32sock.h.
29315         (Depends-on): Add close-hook.
29316         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29317         invocation.
29318         * NEWS: Mention that LIB_CLOSE is gone.
29319
29320 2009-03-23  Eric Blake  <ebb9@byu.net>
29321
29322         signal-tests: test previous patch
29323         * tests/test-signal.c: New file.
29324         * modules/signal-tests: Likewise.
29325
29326         signal.h: always support 'volatile sig_atomic_t'
29327         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29328         (gl_SIGNAL_H_DEFAULTS): Add a default.
29329         * modules/signal (Makefile.am): Substitute if needed.
29330         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29331         users can blindly add volatile.
29332         * doc/posix-headers/signal.texi (signal.h): Document it.
29333         Reported by Matthew Woehlke.
29334
29335 2009-03-23  Jim Meyering  <meyering@redhat.com>
29336
29337         pathmax: PATH_MAX: use pathconf only when available
29338         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29339         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29340         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29341         This avoids a link failure in a PSP cross-compilation environment
29342         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29343
29344         * lib/vasnprintf.c (divide): Fix typo in comment.
29345
29346 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29347
29348         * gnulib-tool (func_filter_filelist): Fix comment.
29349
29350 2009-03-20  Bruno Haible  <bruno@clisp.org>
29351
29352         Make sockets.h self-contained.
29353         * lib/sockets.c: Include sockets.h first.
29354         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29355
29356 2009-03-19  Eric Blake  <ebb9@byu.net>
29357
29358         doc: mention more functions added in cygwin 1.7.0
29359         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29360         addition.
29361         * doc/posix-functions/log2f.texi: Likewise.
29362
29363 2009-03-19  Jim Meyering  <meyering@redhat.com>
29364
29365         fsusage: avoid syntax error due to statement-before-declaration
29366         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29367         after all declarations.  Reported by Matthew Woehlke in
29368         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29369
29370 2009-03-18  Eric Blake  <ebb9@byu.net>
29371
29372         build-aux/compile: sync from automake
29373         * build-aux/compile: New file, from automake.
29374         * config/srclist.txt: Mention build-aux/compile.
29375
29376 2009-03-17  Bruno Haible  <bruno@clisp.org>
29377
29378         * lib/git-merge-changelog.c: Fix typo in comment.
29379         Reported by Reuben Thomas <rrt@sc3d.org>.
29380
29381 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29382
29383         * m4/regex.m4: update and improve help for
29384         --without-included-regex.
29385
29386 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29387
29388         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29389         failure on missing include files.
29390
29391 2009-03-17  Eric Blake  <ebb9@byu.net>
29392
29393         doc: mention more functions added in cygwin 1.7.0
29394         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29395         addition.
29396         * doc/posix-functions/fwscanf.texi: Likewise.
29397         * doc/posix-functions/swprintf.texi: Likewise.
29398         * doc/posix-functions/swscanf.texi: Likewise.
29399         * doc/posix-functions/vfwprintf.texi: Likewise.
29400         * doc/posix-functions/vfwscanf.texi: Likewise.
29401         * doc/posix-functions/vswprintf.texi: Likewise.
29402         * doc/posix-functions/vswscanf.texi: Likewise.
29403         * doc/posix-functions/vwprintf.texi: Likewise.
29404         * doc/posix-functions/vwscanf.texi: Likewise.
29405         * doc/posix-functions/wcscasecmp.texi: Likewise.
29406         * doc/posix-functions/wcsdup.texi: Likewise.
29407         * doc/posix-functions/wcsftime.texi: Likewise.
29408         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29409         * doc/posix-functions/wprintf.texi: Likewise.
29410         * doc/posix-functions/wscanf.texi: Likewise.
29411         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29412
29413 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29414
29415         maint.mk: really add $(AM_MAKEFLAGS)
29416         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29417         was inadvertently omitted in the last commit.
29418         Spotted by Bruno Haible.
29419
29420         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29421         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29422         $(AM_MAKEFLAGS)' rather than plain `make'.
29423
29424         gnulib-tool: execute $MAKE not make
29425         * gnulib-tool: Default $MAKE to 'make'.
29426         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29427         than make.  Initialize $MAKE in the do-autobuild script.
29428
29429         gnulib-tool: use $MAKE not make in generated files
29430         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29431         make, in generated files.  Initialize $MAKE in the do-autobuild
29432         script.
29433
29434         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29435
29436         GNUmakefile: disable parallelism only for multiple, recursive targets
29437         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29438         additions in the Makefile.
29439         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29440         by Automake.
29441         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29442         are listed on the command line and at least one of them is
29443         listed in $(ALL_RECURSIVE_TARGETS).
29444
29445 2009-03-14  Bruno Haible  <bruno@clisp.org>
29446
29447         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29448         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29449         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29450         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29451         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29452         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29453         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29454         unistr/u8-uctomb.
29455         * modules/unistr/u8-strchr (Depends-on): Likewise.
29456         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29457         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29458         unistr/u16-uctomb.
29459         * modules/unistr/u16-strchr (Depends-on): Likewise.
29460         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29461
29462 2009-03-12  Bruno Haible  <bruno@clisp.org>
29463
29464         Work around select() bug on Interix 3.5.
29465         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29466         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29467         * m4/select.m4: New file.
29468         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29469         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29470         * modules/select (Files): Add m4/select.m4.
29471         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29472         * modules/nanosleep (Depends-on): Add select.
29473         * modules/poll (Depends-on): Likewise.
29474         * doc/posix-functions/select.texi: Mention the Interix bug.
29475         Reported by Markus Duft <mduft@gentoo.org>.
29476
29477         * lib/select.c: Renamed from lib/winsock-select.c.
29478         * modules/select (Files): Add lib/select.c, remove
29479         lib/winsock-select.c.
29480         (configure.ac): Update.
29481
29482 2009-03-12  Jim Meyering  <meyering@redhat.com>
29483
29484         avoid gcc warnings about unused macro definitions
29485         * lib/readtokens.c (STREQ): Remove unused definition.
29486         * lib/xmalloc.c (SIZE_MAX): Likewise.
29487         * lib/openat-die.c (N_): Likewise.
29488         * lib/mountlist.c (SIZE_MAX): Remove definition.
29489         Instead, include <stdint.h>.
29490         * lib/readutmp.c: Likewise.
29491         * modules/readutmp (Depends-on): Add stdint.
29492         * modules/mountlist (Depends-on): Add stdint.
29493         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29494
29495 2009-03-10  Bruno Haible  <bruno@clisp.org>
29496
29497         Tests for module 'mbmemcasecoll'.
29498         * modules/mbmemcasecoll-tests: New file.
29499         * tests/test-mbmemcasecoll1.sh: New file.
29500         * tests/test-mbmemcasecoll2.sh: New file.
29501         * tests/test-mbmemcasecoll3.sh: New file.
29502         * tests/test-mbmemcasecoll.c: New file.
29503
29504         New module 'mbmemcasecoll'.
29505         * lib/mbmemcasecoll.h: New file.
29506         * lib/mbmemcasecoll.c: New file.
29507         * modules/mbmemcasecoll: New file.
29508
29509         * tests/test-mbmemcasecmp.h: New file, extracted from
29510         tests/test-mbmemcasecmp.c.
29511         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29512         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29513         (main): Update.
29514         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29515
29516 2009-03-09  Bruno Haible  <bruno@clisp.org>
29517
29518         Tests for module 'mbmemcasecmp'.
29519         * modules/mbmemcasecmp-tests: New file.
29520         * tests/test-mbmemcasecmp1.sh: New file.
29521         * tests/test-mbmemcasecmp2.sh: New file.
29522         * tests/test-mbmemcasecmp3.sh: New file.
29523         * tests/test-mbmemcasecmp.c: New file.
29524
29525         New module 'mbmemcasecmp'.
29526         * lib/mbmemcasecmp.h: New file.
29527         * lib/mbmemcasecmp.c: New file.
29528         * modules/mbmemcasecmp: New file.
29529
29530 2009-03-09  Bruno Haible  <bruno@clisp.org>
29531
29532         Tests for module 'unicase/ulc-casecoll'.
29533         * modules/unicase/ulc-casecoll-tests: New file.
29534         * tests/unicase/test-ulc-casecoll1.sh: New file.
29535         * tests/unicase/test-ulc-casecoll2.sh: New file.
29536         * tests/unicase/test-ulc-casecoll.c: New file.
29537
29538         New module 'unicase/ulc-casecoll'.
29539         * lib/unicase.h (ulc_casecoll): New declaration.
29540         * lib/unicase/ulc-casecoll.c: New file.
29541         * modules/unicase/ulc-casecoll: New file.
29542
29543         New module 'unicase/ulc-casexfrm'.
29544         * lib/unicase.h (ulc_casexfrm): New declaration.
29545         * lib/unicase/ulc-casexfrm.c: New file.
29546         * modules/unicase/ulc-casexfrm: New file.
29547
29548 2009-03-09  Bruno Haible  <bruno@clisp.org>
29549
29550         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29551         invocations.
29552
29553         * m4/mbscasecmp.m4: Remove file.
29554         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29555         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29556
29557         * m4/mbscasestr.m4: Remove file.
29558         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29559         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29560
29561         * m4/mbschr.m4: Remove file.
29562         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29563         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29564
29565         * m4/mbscspn.m4: Remove file.
29566         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29567         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29568
29569         * m4/mbslen.m4: Remove file.
29570         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29571         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29572
29573         * m4/mbsncasecmp.m4: Remove file.
29574         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29575         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29576
29577         * m4/mbsnlen.m4: Remove file.
29578         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29579         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29580
29581         * m4/mbspbrk.m4: Remove file.
29582         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29583         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29584
29585         * m4/mbspcasecmp.m4: Remove file.
29586         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29587         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29588
29589         * m4/mbsrchr.m4: Remove file.
29590         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29591         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29592
29593         * m4/mbssep.m4: Remove file.
29594         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29595         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29596
29597         * m4/mbsspn.m4: Remove file.
29598         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29599         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29600
29601         * m4/mbsstr.m4: Remove file.
29602         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29603         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29604
29605         * m4/mbstok_r.m4: Remove file.
29606         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29607         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29608
29609         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29610
29611         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29612         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29613
29614         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29615
29616 2009-03-08  Bruno Haible  <bruno@clisp.org>
29617
29618         Tests for module 'unicase/ulc-casecmp'.
29619         * modules/unicase/ulc-casecmp-tests: New file.
29620         * tests/unicase/test-ulc-casecmp1.sh: New file.
29621         * tests/unicase/test-ulc-casecmp2.sh: New file.
29622         * tests/unicase/test-ulc-casecmp.c: New file.
29623
29624         New module 'unicase/ulc-casecmp'.
29625         * lib/unicase.h (ulc_casecmp): New declaration.
29626         * lib/unicase/ulc-casecmp.c: New file.
29627         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29628         'const SRC_UNIT *'.
29629         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29630         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29631         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29632         * modules/unicase/ulc-casecmp: New file.
29633
29634         Tests for module 'unicase/u32-is-cased'.
29635         * modules/unicase/u32-is-cased-tests: New file.
29636         * tests/unicase/test-u32-is-cased.c: New file.
29637
29638         Tests for module 'unicase/u16-is-cased'.
29639         * modules/unicase/u16-is-cased-tests: New file.
29640         * tests/unicase/test-u16-is-cased.c: New file.
29641
29642         Tests for module 'unicase/u8-is-cased'.
29643         * modules/unicase/u8-is-cased-tests: New file.
29644         * tests/unicase/test-u8-is-cased.c: New file.
29645         * tests/unicase/test-is-cased.h: New file.
29646
29647         New module 'unicase/u32-is-cased'.
29648         * lib/unicase/u32-is-cased.c: New file.
29649         * modules/unicase/u32-is-cased: New file.
29650
29651         New module 'unicase/u16-is-cased'.
29652         * lib/unicase/u16-is-cased.c: New file.
29653         * modules/unicase/u16-is-cased: New file.
29654
29655         New module 'unicase/u8-is-cased'.
29656         * lib/unicase/u8-is-cased.c: New file.
29657         * lib/unicase/u-is-cased.h: New file.
29658         * modules/unicase/u8-is-cased: New file.
29659
29660         Tests for module 'unicase/u32-is-casefolded'.
29661         * modules/unicase/u32-is-casefolded-tests: New file.
29662         * tests/unicase/test-u32-is-casefolded.c: New file.
29663
29664         Tests for module 'unicase/u16-is-casefolded'.
29665         * modules/unicase/u16-is-casefolded-tests: New file.
29666         * tests/unicase/test-u16-is-casefolded.c: New file.
29667
29668         Tests for module 'unicase/u8-is-casefolded'.
29669         * modules/unicase/u8-is-casefolded-tests: New file.
29670         * tests/unicase/test-u8-is-casefolded.c: New file.
29671         * tests/unicase/test-is-casefolded.h: New file.
29672
29673         New module 'unicase/u32-is-casefolded'.
29674         * lib/unicase/u32-is-casefolded.c: New file.
29675         * modules/unicase/u32-is-casefolded: New file.
29676
29677         New module 'unicase/u16-is-casefolded'.
29678         * lib/unicase/u16-is-casefolded.c: New file.
29679         * modules/unicase/u16-is-casefolded: New file.
29680
29681         New module 'unicase/u8-is-casefolded'.
29682         * lib/unicase/u8-is-casefolded.c: New file.
29683         * modules/unicase/u8-is-casefolded: New file.
29684
29685         Tests for module 'unicase/u32-is-titlecase'.
29686         * modules/unicase/u32-is-titlecase-tests: New file.
29687         * tests/unicase/test-u32-is-titlecase.c: New file.
29688
29689         Tests for module 'unicase/u16-is-titlecase'.
29690         * modules/unicase/u16-is-titlecase-tests: New file.
29691         * tests/unicase/test-u16-is-titlecase.c: New file.
29692
29693         Tests for module 'unicase/u8-is-titlecase'.
29694         * modules/unicase/u8-is-titlecase-tests: New file.
29695         * tests/unicase/test-u8-is-titlecase.c: New file.
29696         * tests/unicase/test-is-titlecase.h: New file.
29697
29698         New module 'unicase/u32-is-titlecase'.
29699         * lib/unicase/u32-is-titlecase.c: New file.
29700         * modules/unicase/u32-is-titlecase: New file.
29701
29702         New module 'unicase/u16-is-titlecase'.
29703         * lib/unicase/u16-is-titlecase.c: New file.
29704         * modules/unicase/u16-is-titlecase: New file.
29705
29706         New module 'unicase/u8-is-titlecase'.
29707         * lib/unicase/u8-is-titlecase.c: New file.
29708         * modules/unicase/u8-is-titlecase: New file.
29709
29710         Tests for module 'unicase/u32-is-lowercase'.
29711         * modules/unicase/u32-is-lowercase-tests: New file.
29712         * tests/unicase/test-u32-is-lowercase.c: New file.
29713
29714         Tests for module 'unicase/u16-is-lowercase'.
29715         * modules/unicase/u16-is-lowercase-tests: New file.
29716         * tests/unicase/test-u16-is-lowercase.c: New file.
29717
29718         Tests for module 'unicase/u8-is-lowercase'.
29719         * modules/unicase/u8-is-lowercase-tests: New file.
29720         * tests/unicase/test-u8-is-lowercase.c: New file.
29721         * tests/unicase/test-is-lowercase.h: New file.
29722
29723         New module 'unicase/u32-is-lowercase'.
29724         * lib/unicase/u32-is-lowercase.c: New file.
29725         * modules/unicase/u32-is-lowercase: New file.
29726
29727         New module 'unicase/u16-is-lowercase'.
29728         * lib/unicase/u16-is-lowercase.c: New file.
29729         * modules/unicase/u16-is-lowercase: New file.
29730
29731         New module 'unicase/u8-is-lowercase'.
29732         * lib/unicase/u8-is-lowercase.c: New file.
29733         * modules/unicase/u8-is-lowercase: New file.
29734
29735         Tests for module 'unicase/u32-is-uppercase'.
29736         * modules/unicase/u32-is-uppercase-tests: New file.
29737         * tests/unicase/test-u32-is-uppercase.c: New file.
29738
29739         Tests for module 'unicase/u16-is-uppercase'.
29740         * modules/unicase/u16-is-uppercase-tests: New file.
29741         * tests/unicase/test-u16-is-uppercase.c: New file.
29742
29743         Tests for module 'unicase/u8-is-uppercase'.
29744         * modules/unicase/u8-is-uppercase-tests: New file.
29745         * tests/unicase/test-u8-is-uppercase.c: New file.
29746         * tests/unicase/test-is-uppercase.h: New file.
29747
29748         New module 'unicase/u32-is-uppercase'.
29749         * lib/unicase/u32-is-uppercase.c: New file.
29750         * modules/unicase/u32-is-uppercase: New file.
29751
29752         New module 'unicase/u16-is-uppercase'.
29753         * lib/unicase/u16-is-uppercase.c: New file.
29754         * modules/unicase/u16-is-uppercase: New file.
29755
29756         New module 'unicase/u8-is-uppercase'.
29757         * lib/unicase/u8-is-uppercase.c: New file.
29758         * modules/unicase/u8-is-uppercase: New file.
29759
29760         New module 'unicase/u32-is-invariant'.
29761         * lib/unicase/u32-is-invariant.c: New file.
29762         * modules/unicase/u32-is-invariant: New file.
29763
29764         New module 'unicase/u16-is-invariant'.
29765         * lib/unicase/u16-is-invariant.c: New file.
29766         * modules/unicase/u16-is-invariant: New file.
29767
29768         New module 'unicase/u8-is-invariant'.
29769         * lib/unicase/u8-is-invariant.c: New file.
29770         * lib/unicase/invariant.h: New file.
29771         * lib/unicase/u-is-invariant.h: New file.
29772         * modules/unicase/u8-is-invariant: New file.
29773
29774         Tests for module 'unicase/u32-casecoll'.
29775         * modules/unicase/u32-casecoll-tests: New file.
29776         * tests/unicase/test-u32-casecoll.c: New file.
29777
29778         Tests for module 'unicase/u16-casecoll'.
29779         * modules/unicase/u16-casecoll-tests: New file.
29780         * tests/unicase/test-u16-casecoll.c: New file.
29781
29782         Tests for module 'unicase/u8-casecoll'.
29783         * modules/unicase/u8-casecoll-tests: New file.
29784         * tests/unicase/test-u8-casecoll.c: New file.
29785
29786         New module 'unicase/u32-casecoll'.
29787         * lib/unicase/u32-casecoll.c: New file.
29788         * modules/unicase/u32-casecoll: New file.
29789
29790         New module 'unicase/u16-casecoll'.
29791         * lib/unicase/u16-casecoll.c: New file.
29792         * modules/unicase/u16-casecoll: New file.
29793
29794         New module 'unicase/u8-casecoll'.
29795         * lib/unicase/u8-casecoll.c: New file.
29796         * lib/unicase/u-casecoll.h: New file.
29797         * modules/unicase/u8-casecoll: New file.
29798
29799         New module 'unicase/u32-casexfrm'.
29800         * lib/unicase/u32-casexfrm.c: New file.
29801         * modules/unicase/u32-casexfrm: New file.
29802
29803         New module 'unicase/u16-casexfrm'.
29804         * lib/unicase/u16-casexfrm.c: New file.
29805         * modules/unicase/u16-casexfrm: New file.
29806
29807         New module 'unicase/u8-casexfrm'.
29808         * lib/unicase/u8-casexfrm.c: New file.
29809         * lib/unicase/u-casexfrm.h: New file.
29810         * modules/unicase/u8-casexfrm: New file.
29811
29812         Tests for module 'unicase/u32-casecmp'.
29813         * modules/unicase/u32-casecmp-tests: New file.
29814         * tests/unicase/test-u32-casecmp.c: New file.
29815
29816         Tests for module 'unicase/u16-casecmp'.
29817         * modules/unicase/u16-casecmp-tests: New file.
29818         * tests/unicase/test-u16-casecmp.c: New file.
29819
29820         Tests for module 'unicase/u8-casecmp'.
29821         * modules/unicase/u8-casecmp-tests: New file.
29822         * tests/unicase/test-u8-casecmp.c: New file.
29823         * tests/unicase/test-casecmp.h: New file.
29824
29825         New module 'unicase/u32-casecmp'.
29826         * lib/unicase/u32-casecmp.c: New file.
29827         * modules/unicase/u32-casecmp: New file.
29828
29829         New module 'unicase/u16-casecmp'.
29830         * lib/unicase/u16-casecmp.c: New file.
29831         * modules/unicase/u16-casecmp: New file.
29832
29833         New module 'unicase/u8-casecmp'.
29834         * lib/unicase/u8-casecmp.c: New file.
29835         * lib/unicase/u-casecmp.h: New file.
29836         * modules/unicase/u8-casecmp: New file.
29837
29838         Tests for module 'unicase/u32-casefold'.
29839         * modules/unicase/u32-casefold-tests: New file.
29840         * tests/unicase/test-u32-casefold.c: New file.
29841
29842         Tests for module 'unicase/u16-casefold'.
29843         * modules/unicase/u16-casefold-tests: New file.
29844         * tests/unicase/test-u16-casefold.c: New file.
29845
29846         Tests for module 'unicase/u8-casefold'.
29847         * modules/unicase/u8-casefold-tests: New file.
29848         * tests/unicase/test-u8-casefold.c: New file.
29849
29850         New module 'unicase/u32-casefold'.
29851         * lib/unicase/u32-casefold.c: New file.
29852         * modules/unicase/u32-casefold: New file.
29853
29854         New module 'unicase/u16-casefold'.
29855         * lib/unicase/u16-casefold.c: New file.
29856         * modules/unicase/u16-casefold: New file.
29857
29858         New module 'unicase/u8-casefold'.
29859         * lib/unicase/u8-casefold.c: New file.
29860         * lib/unicase/u-casefold.h: New file.
29861         * modules/unicase/u8-casefold: New file.
29862
29863         New module 'unicase/tocasefold'.
29864         * lib/unicase/casefold.h: New file.
29865         * lib/unicase/tocasefold.c: New file.
29866         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29867         * modules/unicase/tocasefold: New file.
29868
29869         Tests for module 'unicase/u32-totitle'.
29870         * modules/unicase/u32-totitle-tests: New file.
29871         * tests/unicase/test-u32-totitle.c: New file.
29872
29873         Tests for module 'unicase/u16-totitle'.
29874         * modules/unicase/u16-totitle-tests: New file.
29875         * tests/unicase/test-u16-totitle.c: New file.
29876
29877         Tests for module 'unicase/u8-totitle'.
29878         * modules/unicase/u8-totitle-tests: New file.
29879         * tests/unicase/test-u8-totitle.c: New file.
29880
29881         New module 'unicase/u32-totitle'.
29882         * lib/unicase/u32-totitle.c: New file.
29883         * modules/unicase/u32-totitle: New file.
29884
29885         New module 'unicase/u16-totitle'.
29886         * lib/unicase/u16-totitle.c: New file.
29887         * modules/unicase/u16-totitle: New file.
29888
29889         New module 'unicase/u8-totitle'.
29890         * lib/unicase/u8-totitle.c: New file.
29891         * lib/unicase/u-totitle.h: New file.
29892         * modules/unicase/u8-totitle: New file.
29893
29894         Tests for module 'unicase/u32-tolower'.
29895         * modules/unicase/u32-tolower-tests: New file.
29896         * tests/unicase/test-u32-tolower.c: New file.
29897
29898         Tests for module 'unicase/u16-tolower'.
29899         * modules/unicase/u16-tolower-tests: New file.
29900         * tests/unicase/test-u16-tolower.c: New file.
29901
29902         Tests for module 'unicase/u8-tolower'.
29903         * modules/unicase/u8-tolower-tests: New file.
29904         * tests/unicase/test-u8-tolower.c: New file.
29905
29906         New module 'unicase/u32-tolower'.
29907         * lib/unicase/u32-tolower.c: New file.
29908         * modules/unicase/u32-tolower: New file.
29909
29910         New module 'unicase/u16-tolower'.
29911         * lib/unicase/u16-tolower.c: New file.
29912         * modules/unicase/u16-tolower: New file.
29913
29914         New module 'unicase/u8-tolower'.
29915         * lib/unicase/u8-tolower.c: New file.
29916         * modules/unicase/u8-tolower: New file.
29917
29918         Tests for module 'unicase/u32-toupper'.
29919         * modules/unicase/u32-toupper-tests: New file.
29920         * tests/unicase/test-u32-toupper.c: New file.
29921
29922         Tests for module 'unicase/u16-toupper'.
29923         * modules/unicase/u16-toupper-tests: New file.
29924         * tests/unicase/test-u16-toupper.c: New file.
29925
29926         Tests for module 'unicase/u8-toupper'.
29927         * modules/unicase/u8-toupper-tests: New file.
29928         * tests/unicase/test-u8-toupper.c: New file.
29929
29930         New module 'unicase/u32-toupper'.
29931         * lib/unicase/u32-toupper.c: New file.
29932         * modules/unicase/u32-toupper: New file.
29933
29934         New module 'unicase/u16-toupper'.
29935         * lib/unicase/u16-toupper.c: New file.
29936         * modules/unicase/u16-toupper: New file.
29937
29938         New module 'unicase/u8-toupper'.
29939         * lib/unicase/u8-toupper.c: New file.
29940         * modules/unicase/u8-toupper: New file.
29941
29942         New module 'unicase/u32-casemap'.
29943         * lib/unicase/u32-casemap.c: New file.
29944         * modules/unicase/u32-casemap: New file.
29945
29946         New module 'unicase/u16-casemap'.
29947         * lib/unicase/u16-casemap.c: New file.
29948         * modules/unicase/u16-casemap: New file.
29949
29950         New module 'unicase/u8-casemap'.
29951         * lib/unicase/unicasemap.h: New file.
29952         * lib/unicase/u8-casemap.c: New file.
29953         * lib/unicase/u-casemap.h: New file.
29954         * modules/unicase/u8-casemap: New file.
29955
29956         New module 'unicase/special-casing'.
29957         * lib/unicase/special-casing.h: New file.
29958         * lib/unicase/special-casing.c: New file.
29959         * lib/unicase/special-casing-table.gperf: New file, generated by
29960         gen-uni-tables.c.
29961         * modules/unicase/special-casing: New file.
29962
29963         Tests for module 'unicase/locale-language'.
29964         * modules/unicase/locale-language-tests: New file.
29965         * tests/unicase/test-locale-language.sh: New file.
29966         * tests/unicase/test-locale-language.c: New file.
29967
29968         New module 'unicase/locale-language'.
29969         * lib/unicase/locale-language.c: New file.
29970         * lib/unicase/locale-languages.gperf: New file.
29971         * modules/unicase/locale-language: New file.
29972
29973         Generate more tables for case conversion and case folding.
29974         * lib/gen-uni-tables.c (SCC_*): New enum items.
29975         (struct special_casing_rule): New type.
29976         (casing_rules, num_casing_rules, allocated_casing_rules): New
29977         variables.
29978         (add_casing_rule, fill_casing_rules): New functions.
29979         (struct casefold_rule): New type.
29980         (casefolding_rules, num_casefolding_rules,
29981         allocated_casefolding_rules): New variables.
29982         (fill_casefolding_rules): New function.
29983         (unicode_casefold): New variable.
29984         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29985         sort_casing_rules, output_casing_rules): New functions.
29986         (main): Accept to more arguments: SpecialCasing.txt and
29987         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29988         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29989         Output mapping for casefolding.
29990
29991         * lib/unicase.h: Include stdbool.h, uninorm.h.
29992         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29993         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29994         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29995         arguments.
29996         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29997         resultp arguments.
29998         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29999         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30000         resultp arguments.
30001         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30002         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30003         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30004         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30005         declarations.
30006         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30007
30008 2009-03-08  Bruno Haible  <bruno@clisp.org>
30009
30010         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30011         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30012         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30013         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30014
30015 2009-03-07  Bruno Haible  <bruno@clisp.org>
30016
30017         Adjust u*_normcmp, u*_normcoll API.
30018         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30019         u16_normcoll, u32_normcoll): Change failure conventions.
30020         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30021         errno and return -1.
30022         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30023
30024 2009-03-07  Bruno Haible  <bruno@clisp.org>
30025
30026         Tests for module 'uninorm/u32-normcoll'.
30027         * modules/uninorm/u32-normcoll-tests: New file.
30028         * tests/uninorm/test-u32-normcoll.c: New file.
30029
30030         Tests for module 'uninorm/u16-normcoll'.
30031         * modules/uninorm/u16-normcoll-tests: New file.
30032         * tests/uninorm/test-u16-normcoll.c: New file.
30033
30034         Tests for module 'uninorm/u8-normcoll'.
30035         * modules/uninorm/u8-normcoll-tests: New file.
30036         * tests/uninorm/test-u8-normcoll.c: New file.
30037
30038 2009-03-07  Bruno Haible  <bruno@clisp.org>
30039
30040         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30041         tests/uninorm/test-u32-normcmp.c.
30042         * tests/uninorm/test-u32-normcmp.c: Include it.
30043         (test_nonascii): New function, extracted from main. Add some more
30044         tests.
30045         (main): Invoke test_ascii and test_nonascii.
30046         * modules/uninorm/u32-normcmp-tests (Files): Add
30047         tests/uninorm/test-u32-normcmp.h.
30048         (Depends-on): Remove uninorm/u32-normcmp.
30049
30050         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30051         tests/uninorm/test-u16-normcmp.c.
30052         * tests/uninorm/test-u16-normcmp.c: Include it.
30053         (test_nonascii): New function, extracted from main. Add some more
30054         tests.
30055         (main): Invoke test_ascii and test_nonascii.
30056         * modules/uninorm/u16-normcmp-tests (Files): Add
30057         tests/uninorm/test-u16-normcmp.h.
30058         (Depends-on): Remove uninorm/u16-normcmp.
30059
30060         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30061         tests/uninorm/test-u8-normcmp.c.
30062         * tests/uninorm/test-u8-normcmp.c: Include it.
30063         (test_nonascii): New function, extracted from main. Add some more
30064         tests.
30065         (main): Invoke test_ascii and test_nonascii.
30066         * modules/uninorm/u8-normcmp-tests (Files): Add
30067         tests/uninorm/test-u8-normcmp.h.
30068         (Depends-on): Remove uninorm/u8-normcmp.
30069
30070 2009-03-07  Bruno Haible  <bruno@clisp.org>
30071
30072         New module 'uninorm/u32-normcoll'.
30073         * lib/uninorm/u32-normcoll.c: New file.
30074         * modules/uninorm/u32-normcoll: New file.
30075
30076         New module 'uninorm/u16-normcoll'.
30077         * lib/uninorm/u16-normcoll.c: New file.
30078         * modules/uninorm/u16-normcoll: New file.
30079
30080         New module 'uninorm/u8-normcoll'.
30081         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30082         declarations.
30083         * lib/uninorm/u8-normcoll.c: New file.
30084         * lib/uninorm/u-normcoll.h: New file.
30085         * modules/uninorm/u8-normcoll: New file.
30086
30087         New module 'uninorm/u32-normxfrm'.
30088         * lib/uninorm/u32-normxfrm.c: New file.
30089         * modules/uninorm/u32-normxfrm: New file.
30090
30091         New module 'uninorm/u16-normxfrm'.
30092         * lib/uninorm/u16-normxfrm.c: New file.
30093         * modules/uninorm/u16-normxfrm: New file.
30094
30095         New module 'uninorm/u8-normxfrm'.
30096         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30097         declarations.
30098         * lib/uninorm/u8-normxfrm.c: New file.
30099         * lib/uninorm/u-normxfrm.h: New file.
30100         * modules/uninorm/u8-normxfrm: New file.
30101
30102 2009-03-07  Bruno Haible  <bruno@clisp.org>
30103
30104         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30105         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30106         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30107
30108 2009-03-07  Bruno Haible  <bruno@clisp.org>
30109
30110         New module 'memxfrm'.
30111         * lib/memxfrm.h: New file.
30112         * lib/memxfrm.c: New file.
30113         * modules/memxfrm: New file.
30114
30115 2009-03-07  Bruno Haible  <bruno@clisp.org>
30116
30117         New module 'memcmp2'.
30118         * lib/memcmp2.h: New file.
30119         * lib/memcmp2.c: New file.
30120         * modules/memcmp2: New file.
30121
30122 2009-03-07  Bruno Haible  <bruno@clisp.org>
30123
30124         Tests for module 'uninorm/decomposing-form'.
30125         * modules/uninorm/decomposing-form-tests: New file.
30126         * tests/uninorm/test-decomposing-form.c: New file.
30127
30128         New module 'uninorm/decomposing-form'.
30129         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30130         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30131         Add 'decomposing_variant' field.
30132         * lib/uninorm/decomposing-form.c: New file.
30133         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30134         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30135         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30136         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30137         * modules/uninorm/decomposing-form: New file.
30138         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30139         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30140
30141 2009-03-07  Bruno Haible  <bruno@clisp.org>
30142
30143         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30144         strings.
30145
30146 2009-03-06  Bruno Haible  <bruno@clisp.org>
30147
30148         Tests for module 'uninorm/u32-normcmp'.
30149         * tests/uninorm/test-u32-normcmp.c: New file.
30150         * modules/uninorm/u32-normcmp-tests: New file.
30151
30152         Tests for module 'uninorm/u16-normcmp'.
30153         * tests/uninorm/test-u16-normcmp.c: New file.
30154         * modules/uninorm/u16-normcmp-tests: New file.
30155
30156         Tests for module 'uninorm/u8-normcmp'.
30157         * tests/uninorm/test-u8-normcmp.c: New file.
30158         * modules/uninorm/u8-normcmp-tests: New file.
30159
30160         New module 'uninorm/u32-normcmp'.
30161         * lib/uninorm/u32-normcmp.c: New file.
30162         * modules/uninorm/u32-normcmp: New file.
30163
30164         New module 'uninorm/u16-normcmp'.
30165         * lib/uninorm/u16-normcmp.c: New file.
30166         * modules/uninorm/u16-normcmp: New file.
30167
30168         New module 'uninorm/u8-normcmp'.
30169         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30170         declarations.
30171         * lib/uninorm/u8-normcmp.c: New file.
30172         * lib/uninorm/u-normcmp.h: New file.
30173         * modules/uninorm/u8-normcmp: New file.
30174
30175 2009-03-06  Bruno Haible  <bruno@clisp.org>
30176
30177         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30178         Reported by Eric Blake.
30179
30180 2009-03-06  Eric Blake  <ebb9@byu.net>
30181             Bruno Haible  <bruno@clisp.org>
30182
30183         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30184         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30185         condition.
30186         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30187         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30188         condition.
30189         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30190
30191 2009-03-06  Eric Blake  <ebb9@byu.net>
30192
30193         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30194         to avoid compiler warnings.
30195         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30196
30197 2009-03-05  Bruno Haible  <bruno@clisp.org>
30198
30199         * tests/test-ftell.c (main): Disable test beyond end of file on
30200         FreeMiNT.
30201         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30202
30203 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30204
30205         * lib/filevercmp.c: Move hidden files up in ordering.
30206         * tests/test-filevercmp.c: Add tests for hidden files.
30207
30208 2009-03-04  Bruno Haible  <bruno@clisp.org>
30209
30210         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30211         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30212         AM_CFLAGS.
30213         Reported by Simon Josefsson.
30214
30215 2009-03-03  Bruno Haible  <bruno@clisp.org>
30216
30217         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30218         Reported by Simon Josefsson.
30219
30220         * doc/ld-version-script.texi: Update node reference.
30221
30222 2009-03-03  Bruno Haible  <bruno@clisp.org>
30223
30224         * modules/visibility (License): Change to 'unlimited'.
30225         Suggested by Simon Josefsson.
30226
30227 2009-03-03  Jim Meyering  <meyering@redhat.com>
30228
30229         unlinkdir: cannot_unlink_dir may modify process state
30230         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30231         it's neither thread-safe nor appropriate for use in a library.
30232
30233 2009-03-03  Eric Blake  <ebb9@byu.net>
30234
30235         test-closein: silence test under Darwin
30236         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30237         care if it dies from EPIPE or EBADF.
30238
30239 2009-03-03  Bruno Haible  <bruno@clisp.org>
30240
30241         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30242         earlier.
30243         * doc/visibility.texi: Fix @node and @section.
30244
30245 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30246
30247         * doc/gnulib.texi: Link to sections for ld version script and
30248         visibility.
30249         * doc/visibility.texi: Add @node and @section.
30250         * modules/ld-version-script: New module.
30251         * m4/ld-version-script.m4: New file.
30252         * doc/ld-version-script.texi: New file.
30253
30254 2009-03-02  David Lutterkort  <lutter@redhat.com>
30255
30256         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30258
30259 2009-03-02  Bruno Haible  <bruno@clisp.org>
30260
30261         * doc/visibility.texi: Mention libtool's -export-symbols option.
30262
30263 2009-03-02  Jim Meyering  <meyering@redhat.com>
30264
30265         announce-gen: new option: --no-print-checksums
30266         * build-aux/announce-gen (usage): Describe it.
30267         (print_checksums): Print a newline here, not in the [*] footnote.
30268         (main): Honor it.
30269
30270 2009-03-01  Bruno Haible  <bruno@clisp.org>
30271
30272         Use socklen_t in the native Windows replacements prototypes.
30273         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30274         instead of 'int'.
30275         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30276         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30277         * modules/getsockopt (Depends-on): Add socklen.
30278         * modules/setsockopt (Depends-on): Add socklen.
30279
30280 2009-03-01  Bruno Haible  <bruno@clisp.org>
30281
30282         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30283         least 4.2.
30284
30285 2009-03-01  Eric Blake  <ebb9@byu.net>
30286             Bruno Haible  <bruno@clisp.org>
30287
30288         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30289         error messages.
30290         * lib/wait-process.c (wait_subprocess): Omit error message about
30291         deadly signal sent to the child of termsigp != NULL.
30292
30293 2009-03-01  Eric Blake  <ebb9@byu.net>
30294
30295         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30296
30297 2009-03-01  Bruno Haible  <bruno@clisp.org>
30298
30299         Avoid a gcc warning.
30300         * tests/test-sched.c (b): Make global.
30301         Reported by Eric Blake.
30302
30303 2009-01-19  Martin Lambers  <marlam@marlam.de>
30304
30305         Provide POSIX semantics for socket timeout options on W32.
30306         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30307         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30308         * modules/setsockopt: Depend on sys_time module for struct timeval.
30309         * modules/getsockopt: Depend on sys_time module for struct timeval.
30310
30311 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30312
30313         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30314         __USE_GNU, for consistency with netdb.in.h.
30315         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30316
30317 2009-03-01  Bruno Haible  <bruno@clisp.org>
30318
30319         More support for FreeMiNT.
30320         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30321         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30322
30323 2009-03-01  Bruno Haible  <bruno@clisp.org>
30324
30325         More support for FreeMiNT.
30326         * lib/fpurge.c (fpurge): Correct last commit.
30327         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30328
30329 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30330
30331         Fix unportable awk script in vc-list-files.
30332         * build-aux/vc-list-files: In the replacement awk script, use
30333         substr with a second argument of 1, not zero.
30334         Report by Simon Josefsson.
30335
30336 2009-02-28  Bruno Haible  <bruno@clisp.org>
30337
30338         More support for FreeMiNT.
30339         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30340         to FreeMiNT today.
30341         * lib/fwriting.c (fwriting): Likewise.
30342         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30343
30344 2009-02-28  Bruno Haible  <bruno@clisp.org>
30345
30346         * tests/test-freadseek.c (main): Disable test beyond end of file on
30347         FreeMiNT.
30348         * tests/test-ftello.c (main): Likewise.
30349         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30350
30351 2009-02-28  Bruno Haible  <bruno@clisp.org>
30352
30353         Add tentative support for FreeMiNT.
30354         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30355         * lib/fpurge.c (fpurge): Likewise.
30356         * lib/freadable.c (freadable): Likewise.
30357         * lib/freading.c (freading): Likewise.
30358         * lib/freadptr.c (freadptr): Likewise.
30359         * lib/freadseek.c (freadptrinc): Likewise.
30360         * lib/fseeko.c (rpl_fseeko): Likewise.
30361         * lib/fseterr.c (fseterr): Likewise.
30362         * lib/fwritable.c (fwritable): Likewise.
30363         * lib/fwriting.c (fwriting): Likewise.
30364         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30365         Hourihane.
30366         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30367
30368 2009-02-28  Bruno Haible  <bruno@clisp.org>
30369
30370         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30371         SIGCHLD.
30372         Reported by Jim Meyering.
30373
30374 2009-02-28  Bruno Haible  <bruno@clisp.org>
30375
30376         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30377         Mention the results of these tests on various platforms.
30378         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30379         order.
30380         * doc/posix-functions/printf.texi: Likewise.
30381         * doc/posix-functions/snprintf.texi: Likewise.
30382         * doc/posix-functions/sprintf.texi: Likewise.
30383         * doc/posix-functions/vfprintf.texi: Likewise.
30384         * doc/posix-functions/vprintf.texi: Likewise.
30385         * doc/posix-functions/vsnprintf.texi: Likewise.
30386         * doc/posix-functions/vsprintf.texi: Likewise.
30387         * doc/glibc-functions/obstack_printf.texi: Likewise.
30388         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30389
30390 2009-02-28  Bruno Haible  <bruno@clisp.org>
30391
30392         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30393         Reported by Loïc Minier <lool@dooz.org>.
30394
30395 2009-02-27  Bruno Haible  <bruno@clisp.org>
30396
30397         * gnulib-tool (func_import): Make the sed expression used to create the
30398         sed script for updating the .gitignore file POSIX compliant.
30399         Reported by Eric Blake.
30400
30401 2009-02-27  Bruno Haible  <bruno@clisp.org>
30402
30403         * gnulib-tool (sed): Don't alias as "sed --posix".
30404         Reported by Eric Blake.
30405
30406 2009-02-27  Bruno Haible  <bruno@clisp.org>
30407
30408         Avoid test link errors.
30409         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30410         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30411         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30412         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30414
30415 2009-02-27  Bruno Haible  <bruno@clisp.org>
30416
30417         Avoid spurious "(cached)" in configure output.
30418         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30419         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30420         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30421         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30422         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30423         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30424         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30425         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30426         Reported by Eric Blake.
30427
30428 2009-02-27  Eric Blake  <ebb9@byu.net>
30429
30430         printf: fix regression in previous patch
30431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30432
30433 2009-02-27  Bruno Haible  <bruno@clisp.org>
30434
30435         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30436         value.
30437         * lib/stdint.in.h: Likewise.
30438         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30439
30440 2009-02-27  Eric Blake  <ebb9@byu.net>
30441
30442         doc: mention more functions added in cygwin 1.7.0
30443         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30444         addition.
30445         * doc/posix-functions/open_wmemstream.texi: Likewise.
30446         * doc/posix-functions/wcsnlen.texi: Likewise.
30447         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30448         * doc/posix-functions/wcstod.texi: Likewise.
30449         * doc/posix-functions/wcstof.texi: Likewise.
30450         * doc/posix-functions/wcstoimax.texi: Likewise.
30451         * doc/posix-functions/wcstok.texi: Likewise.
30452         * doc/posix-functions/wcstoumax.texi: Likewise.
30453
30454         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30456         * doc/posix-functions/fprintf.texi: Update.
30457         * doc/posix-functions/printf.texi: Update.
30458         * doc/posix-functions/snprintf.texi: Update.
30459         * doc/posix-functions/sprintf.texi: Update.
30460         * doc/posix-functions/vfprintf.texi: Update.
30461         * doc/posix-functions/vprintf.texi: Update.
30462         * doc/posix-functions/vsnprintf.texi: Update.
30463         * doc/posix-functions/vsprintf.texi: Update.
30464         * doc/glibc-functions/obstack_printf.texi: Update.
30465         * doc/glibc-functions/obstack_vprintf.texi: Update.
30466
30467 2009-02-26  Eric Blake  <ebb9@byu.net>
30468
30469         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30470         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30471         compilation bug by using runtime conversion.
30472         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30473         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30474         * modules/ceill-tests (Files): Use nan.h.
30475         * modules/floorl-tests (Files): Likewise.
30476         * modules/frexpl-tests (Files): Likewise.
30477         * modules/isnanl-tests (Files): Likewise.
30478         * modules/ldexpl-tests (Files): Likewise.
30479         * modules/roundl-tests (Files): Likewise.
30480         * modules/truncl-tests (Files): Likewise.
30481         * tests/test-ceill.c (main): Use a working NaN.
30482         * tests/test-floorl.c (main): Likewise.
30483         * tests/test-frexpl.c (main): Likewise.
30484         * tests/test-isnan.c (test_long_double): Likewise.
30485         * tests/test-isnanl.h (main): Likewise.
30486         * tests/test-ldexpl.h (main): Likewise.
30487         * tests/test-roundl.h (main): Likewise.
30488         * tests/test-truncl.h (main): Likewise.
30489         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30490
30491 2009-02-26  Eric Blake  <ebb9@byu.net>
30492             Bruno Haible  <bruno@clisp.org>
30493
30494         Work around a *printf bug with %ls on Solaris.
30495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30496         precision is specified, sprintf stops converting the wide string
30497         argument when the number of bytes that have been produced by this
30498         conversion equals or exceeds the precision.
30499         * doc/posix-functions/fprintf.texi: Update.
30500         * doc/posix-functions/printf.texi: Update.
30501         * doc/posix-functions/snprintf.texi: Update.
30502         * doc/posix-functions/sprintf.texi: Update.
30503         * doc/posix-functions/vfprintf.texi: Update.
30504         * doc/posix-functions/vprintf.texi: Update.
30505         * doc/posix-functions/vsnprintf.texi: Update.
30506         * doc/posix-functions/vsprintf.texi: Update.
30507         * doc/glibc-functions/obstack_printf.texi: Update.
30508         * doc/glibc-functions/obstack_vprintf.texi: Update.
30509
30510 2009-02-26  Eric Blake  <ebb9@byu.net>
30511
30512         stdlib: favor compiler check of random.h
30513         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30514         to avoid an ObjC random.h installed by Swarm.
30515
30516 2009-02-26  Bruno Haible  <bruno@clisp.org>
30517
30518         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30519         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30520         Reported by Gary V. Vaughan <gary@gnu.org>.
30521
30522 2009-02-26  Bruno Haible  <bruno@clisp.org>
30523
30524         Fix *printf behaviour regarding the %ls directive.
30525         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30526         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30527         NEED_PRINTF_DIRECTIVE_LS.
30528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30529         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30531         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30532         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30533         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30534         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30539         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30543         * doc/posix-functions/fprintf.texi: Update.
30544         * doc/posix-functions/printf.texi: Update.
30545         * doc/posix-functions/snprintf.texi: Update.
30546         * doc/posix-functions/sprintf.texi: Update.
30547         * doc/posix-functions/vfprintf.texi: Update.
30548         * doc/posix-functions/vprintf.texi: Update.
30549         * doc/posix-functions/vsnprintf.texi: Update.
30550         * doc/posix-functions/vsprintf.texi: Update.
30551         * doc/glibc-functions/obstack_printf.texi: Update.
30552         * doc/glibc-functions/obstack_vprintf.texi: Update.
30553         Reported by Eric Blake.
30554
30555 2009-02-25  Bruno Haible  <bruno@clisp.org>
30556
30557         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30558         with known value.
30559         Reported by Gary V. Vaughan <gary@gnu.org>.
30560
30561 2009-02-25  Bruno Haible  <bruno@clisp.org>
30562
30563         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30564         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30565         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30566         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30567         Reported by Gary V. Vaughan <gary@gnu.org>.
30568
30569 2009-02-25  Bruno Haible  <bruno@clisp.org>
30570
30571         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30572         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30573         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30574         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30575         Reported by Gary V. Vaughan <gary@gnu.org>.
30576
30577 2009-02-25  Eric Blake  <ebb9@byu.net>
30578
30579         tests: skip fseek/ftell tests if ungetc is broken
30580         * m4/ungetc.m4: New file.
30581         * modules/fseek-tests: Split test, so ungetc dependency is
30582         separate from rest of test.
30583         * modules/fseeko-tests: Likewise.
30584         * modules/ftell-tests: Likewise.
30585         * modules/ftello-tests: Likewise.
30586         * tests/test-fseek.c (main): Isolate ungetc dependency.
30587         * tests/test-fseeko.c (main): Likewise.
30588         * tests/test-ftell.c (main): Likewise.
30589         * tests/test-ftello.c (main): Likewise.
30590         * tests/test-fseek2.sh: New file.
30591         * tests/test-fseeko2.sh: Likewise.
30592         * tests/test-ftell2.sh: Likewise.
30593         * tests/test-ftello2.sh: Likewise.
30594
30595 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30596
30597         test-getaddrinfo: fix usage of skip return code 77
30598         * tests/test-gettaddrinfo.c: Return skip code 77 only
30599         for first occurance of skip (4x77 is not 77)
30600
30601 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30602
30603         strtod: avoid C99 decl-after-statement
30604         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30605
30606 2009-02-24  Eric Blake  <ebb9@byu.net>
30607
30608         strtod: detect HP-UX 11.31 bug
30609         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30610         Reported by Gary V. Vaughan.
30611
30612 2009-02-23  Bruno Haible  <bruno@clisp.org>
30613
30614         Fix invalid read past end of memory block.
30615         * lib/vasnprintf.c (DCHAR_SET): Define.
30616         (local_wcslen): Define only when needed.
30617         (local_strnlen, local_wcsnlen): New functions.
30618         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30619         directives that involve a conversion ourselves.
30620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30621         wcsnlen, mbrtowc, wcrtomb.
30622         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30623         * tests/test-vasprintf-posix.c (test_function): Likewise.
30624         * tests/test-snprintf-posix.h (test_function): Likewise.
30625         * tests/test-sprintf-posix.h (test_function): Likewise.
30626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30627
30628 2009-02-22  Bruno Haible  <bruno@clisp.org>
30629
30630         Implement new clarified decomposition of Hangul syllables.
30631         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30632         of type LTV, return only a pairwise decomposition.
30633         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30634         Likewise.
30635         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30636         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30637         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30638
30639 2009-02-22  Bruno Haible  <bruno@clisp.org>
30640
30641         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30642         zero-length results and shrink excess allocated memory.
30643         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30644         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30645         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30646         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30647         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30648         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30649         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30650         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30651         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30652         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30653         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30654         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30655
30656 2009-02-21  Bruno Haible  <bruno@clisp.org>
30657
30658         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30659         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30660         spaces after a period. Put a space between a macro name and its
30661         argument list. Trivial rewordings.
30662         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30663         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30664         (main): Return 0 explicitly.
30665
30666 2009-02-21  Bruno Haible  <bruno@clisp.org>
30667
30668         Tests for module 'uninorm/filter'.
30669         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30670         * modules/uninorm/filter-tests: New file.
30671
30672         New module 'uninorm/filter'.
30673         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30674         uninorm_filter_flush, uninorm_filter_free): New declarations.
30675         * lib/uninorm/uninorm-filter.c: New file.
30676         * modules/uninorm/filter: New file.
30677
30678 2009-02-21  Bruno Haible  <bruno@clisp.org>
30679
30680         Tests for module 'uninorm/nfkc'.
30681         * tests/uninorm/test-nfkc.c: New file.
30682         * tests/uninorm/test-u8-nfkc.c: New file.
30683         * tests/uninorm/test-u16-nfkc.c: New file.
30684         * tests/uninorm/test-u32-nfkc.c: New file.
30685         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30686         * tests/uninorm/test-u32-nfkc-big.c: New file.
30687         * modules/uninorm/nfkc-tests: New file.
30688
30689         New module 'uninorm/nfkc'.
30690         * lib/uninorm/nfkc.c: New file.
30691         * modules/uninorm/nfkc: New file.
30692
30693         Tests for module 'uninorm/nfkd'.
30694         * tests/uninorm/test-nfkd.c: New file.
30695         * tests/uninorm/test-u8-nfkd.c: New file.
30696         * tests/uninorm/test-u16-nfkd.c: New file.
30697         * tests/uninorm/test-u32-nfkd.c: New file.
30698         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30699         * tests/uninorm/test-u32-nfkd-big.c: New file.
30700         * modules/uninorm/nfkd-tests: New file.
30701
30702         New module 'uninorm/nfkd'.
30703         * lib/uninorm/nfkd.c: New file.
30704         * modules/uninorm/nfkd: New file.
30705
30706         Tests for module 'uninorm/nfc'.
30707         * tests/uninorm/test-nfc.c: New file.
30708         * tests/uninorm/test-u8-nfc.c: New file.
30709         * tests/uninorm/test-u16-nfc.c: New file.
30710         * tests/uninorm/test-u32-nfc.c: New file.
30711         * tests/uninorm/test-u32-nfc-big.sh: New file.
30712         * tests/uninorm/test-u32-nfc-big.c: New file.
30713         * modules/uninorm/nfc-tests: New file.
30714
30715         New module 'uninorm/nfc'.
30716         * lib/uninorm/nfc.c: New file.
30717         * modules/uninorm/nfc: New file.
30718
30719         Tests for module 'uninorm/nfd'.
30720         * tests/uninorm/test-nfd.c: New file.
30721         * tests/uninorm/test-u8-nfd.c: New file.
30722         * tests/uninorm/test-u16-nfd.c: New file.
30723         * tests/uninorm/test-u32-nfd.c: New file.
30724         * tests/uninorm/test-u32-nfd-big.sh: New file.
30725         * tests/uninorm/test-u32-nfd-big.c: New file.
30726         * tests/uninorm/test-u32-normalize-big.h: New file.
30727         * tests/uninorm/test-u32-normalize-big.c: New file.
30728         * tests/uninorm/NormalizationTest.txt: New file, created from
30729         Unicode 5.1.0 NormalizationTest.txt.
30730         * modules/uninorm/nfd-tests: New file.
30731
30732         New module 'uninorm/nfd'.
30733         * lib/uninorm/nfd.c: New file.
30734         * modules/uninorm/nfd: New file.
30735
30736         New module 'uninorm/u32-normalize'.
30737         * lib/uninorm/u32-normalize.c: New file.
30738         * modules/uninorm/u32-normalize: New file.
30739
30740         New module 'uninorm/u16-normalize'.
30741         * lib/uninorm/u16-normalize.c: New file.
30742         * modules/uninorm/u16-normalize: New file.
30743
30744         New module 'uninorm/u8-normalize'.
30745         * lib/uninorm/u8-normalize.c: New file.
30746         * lib/uninorm/normalize-internal.h: New file.
30747         * lib/uninorm/u-normalize-internal.h: New file.
30748         * modules/uninorm/u8-normalize: New file.
30749
30750         New module 'uninorm/decompose-internal'.
30751         * lib/uninorm/decompose-internal.c: New file.
30752         * modules/uninorm/decompose-internal: New file.
30753
30754         Tests for module 'uninorm/composition'.
30755         * tests/uninorm/test-composition.c: New file.
30756         * modules/uninorm/composition-tests: New file.
30757
30758         New module 'uninorm/composition'.
30759         * lib/uninorm/composition.c: New file.
30760         * lib/uninorm/composition-table.gperf: New file, generated by
30761         gen-uni-tables.
30762         * modules/uninorm/composition: New file.
30763
30764         Tests for module 'uninorm/compat-decomposition'.
30765         * tests/uninorm/test-compat-decomposition.c: New file.
30766         * modules/uninorm/compat-decomposition-tests: New file.
30767
30768         New module 'uninorm/compat-decomposition'.
30769         * lib/uninorm/decompose-internal.h: New file.
30770         * lib/uninorm/compat-decomposition.c: New file.
30771         * modules/uninorm/compat-decomposition: New file.
30772
30773         Tests for module 'uninorm/canonical-decomposition'.
30774         * tests/uninorm/test-canonical-decomposition.c: New file.
30775         * modules/uninorm/canonical-decomposition-tests: New file.
30776
30777         New module 'uninorm/canonical-decomposition'.
30778         * lib/uninorm/canonical-decomposition.c: New file.
30779         * modules/uninorm/canonical-decomposition: New file.
30780
30781         Tests for module 'uninorm/decomposition'.
30782         * tests/uninorm/test-decomposition.c: New file.
30783         * modules/uninorm/decomposition-tests: New file.
30784
30785         New module 'uninorm/decomposition'.
30786         * lib/uninorm/decomposition.c: New file.
30787         * modules/uninorm/decomposition: New file.
30788
30789         New module 'uninorm/decomposition-table'.
30790         * lib/uninorm/decomposition-table.h: New file.
30791         * lib/uninorm/decomposition-table.c: New file.
30792         * lib/uninorm/decomposition-table1.h: New file, generated by
30793         gen-uni-tables.
30794         * lib/uninorm/decomposition-table2.h: New file, generated by
30795         gen-uni-tables.
30796         * modules/uninorm/decomposition-table: New file.
30797
30798         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30799         (UC_DECOMP_*): New enumeration items.
30800         (get_decomposition): New function.
30801         (struct decomp_table): New type.
30802         (output_decomposition, output_decomposition_tables): New functions.
30803         (unicode_composition_exclusions): New variable.
30804         (fill_composition_exclusions, debug_output_composition_tables): New
30805         functions.
30806         (main): Accept one more argument. Invoke fill_composition_exclusions.
30807         Output decomposition and composition tables.
30808
30809         New module 'uninorm/base'.
30810         * lib/uninorm.h: New file.
30811         * lib/unictype.h: Update comment.
30812         * modules/uninorm/base: New file.
30813
30814 2009-02-21  David Lutterkort  <lutter@redhat.com>
30815
30816         Tests for module 'safe-alloc'.
30817         * tests/test-safe-alloc.c: New file.
30818         * modules/safe-alloc-tests: New file.
30819
30820         New module 'safe-alloc'.
30821         * lib/safe-alloc.h: New file.
30822         * lib/safe-alloc.c: New file.
30823         * m4/safe-alloc.m4: New file.
30824         * modules/safe-alloc: New file.
30825         * doc/safe-alloc.texi: New file.
30826         * doc/gnulib.texi: Include it.
30827         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30828         safe-alloc.
30829
30830 2009-02-18  Bruno Haible  <bruno@clisp.org>
30831
30832         Fix link error on non-glibc systems.
30833         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30834         variable.
30835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30836
30837 2009-02-18  Jim Meyering  <meyering@redhat.com>
30838
30839         fts: avoid used-uninitialized error due to recent change
30840         * lib/fts.c (fts_read): Guard uses of the new member,
30841         parent->fts_n_dirs_remaining, since it's not relevant for
30842         the parent of a directory specified on the command-line.
30843
30844 2009-02-17  James Youngman  <jay@gnu.org>
30845             Bruno Haible  <bruno@clisp.org>
30846
30847         * m4/include_next.m4: Reformulate comment.
30848
30849 2009-02-16  Jim Meyering  <meyering@redhat.com>
30850
30851         fts: add #if guards so that the fts_lgpl module still builds
30852         * lib/fts.c: Guard just-added hash-table-using parts with
30853         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30854         Reported by Simon Josefsson.
30855
30856 2009-02-15  Bruno Haible  <bruno@clisp.org>
30857
30858         * modules/array-mergesort-tests: New file.
30859         * tests/test-array-mergesort.c: New file.
30860
30861         New module 'array-mergesort'.
30862         * modules/array-mergesort: New file.
30863         * lib/array-mergesort.h: New file.
30864
30865 2009-02-15  Bruno Haible  <bruno@clisp.org>
30866
30867         Fix 2009-02-07 commit.
30868         * lib/gen-uni-tables.c (output_predicate, output_category,
30869         output_combclass, output_bidi_category, output_decimal_digit,
30870         output_digit, output_numeric, output_mirror, output_scripts,
30871         output_ident_category, output_simple_mapping): Fix format directives.
30872         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30873
30874 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30875
30876         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30877         fixes are available from IBM.
30878
30879 2009-02-13  Jim Meyering  <meyering@redhat.com>
30880
30881         fts: arrange not to stat non-directories in more cases
30882         This makes GNU find (when it doesn't need to stat each file)
30883         *much* more efficient at traversing reiserfs file systems.
30884         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30885         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30886         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30887         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30888         (leaf_optimization_applies): New function.
30889         (LCO_hash, LCO_compare): New helper functions.
30890         (link_count_optimize_ok): New function.
30891         (fts_stat): Initialize new member (if dir).
30892         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30893         we've just stat'ed a directory.  Skip the stat call when possible.
30894         ---
30895         Note this AFS-related exchange:
30896         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30897         and note find's pioctl call in find/fstype.c.
30898         But that is necessary only if you want to enable the
30899         optimization for AFS, and for now, I don't.
30900
30901         fts: move a function definition "up" (no semantic change)
30902         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30903         "up" to precede upcoming use of a related function.
30904
30905 2009-02-11  Jim Meyering  <meyering@redhat.com>
30906
30907         fts: correct internal computation of nlinks (optimization-related)
30908         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30909         whether the current entry is a directory, so don't test it.
30910
30911 2009-02-10  Bruno Haible  <bruno@clisp.org>
30912
30913         Tests for module 'uniwbrk/ulc-wordbreaks'.
30914         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30915         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30916         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30917
30918         Tests for module 'uniwbrk/u32-wordbreaks'.
30919         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30920         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30921
30922         Tests for module 'uniwbrk/u16-wordbreaks'.
30923         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30924         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30925
30926         Tests for module 'uniwbrk/u8-wordbreaks'.
30927         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30928         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30929
30930 2009-02-10  Bruno Haible  <bruno@clisp.org>
30931
30932         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30933         property.
30934         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30935         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30936         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30937
30938 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30939
30940         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30941         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30942
30943 2009-02-10  Bruno Haible  <bruno@clisp.org>
30944
30945         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30946         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30947         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30948         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30949         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30950         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30951
30952 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30953
30954         * lib/sockets.h (gl_fd_to_handle): New function.
30955
30956         * tests/test-sockets.c: Call gl_fd_to_handle.
30957
30958 2009-02-09  Bruno Haible  <bruno@clisp.org>
30959
30960         * doc/havelib.texi: Document the conventions on bi-arch systems.
30961
30962 2009-02-08  Bruno Haible  <bruno@clisp.org>
30963
30964         Document the AC_LIB_LINKFLAGS macro.
30965         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30966         * doc/gnulib.texi: Include it.
30967
30968 2009-02-08  Bruno Haible  <bruno@clisp.org>
30969
30970         Fix wrong order of sections, compared to TOC.
30971         * doc/gnulib.texi: Include relocatable-maint.texi after the
30972         "Regular expressions" node, not before.
30973
30974 2009-02-08  Bruno Haible  <bruno@clisp.org>
30975
30976         Tests for module 'unicase/totitle'.
30977         * modules/unicase/totitle-tests: New file.
30978
30979         Tests for module 'unicase/tolower'.
30980         * modules/unicase/tolower-tests: New file.
30981
30982         Tests for module 'unicase/toupper'.
30983         * modules/unicase/toupper-tests: New file.
30984         * tests/unicase/test-mapping-part1.h: New file.
30985         * tests/unicase/test-mapping-part2.h: New file.
30986
30987         New module 'unicase/totitle'.
30988         * modules/unicase/totitle: New file.
30989         * lib/unicase/totitle.c: New file.
30990
30991         New module 'unicase/tolower'.
30992         * modules/unicase/tolower: New file.
30993         * lib/unicase/tolower.c: New file.
30994
30995         New module 'unicase/toupper'.
30996         * modules/unicase/toupper: New file.
30997         * lib/unicase/toupper.c: New file.
30998         * lib/unicase/simple-mapping.h: New file.
30999
31000         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31001         (mapping_table): New structure.
31002         (output_simple_mapping): New function.
31003         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31004         * modules/gen-uni-tables (Description): Update.
31005         * lib/unicase/toupper.h: New file, automatically generated by
31006         gen-uni-tables.
31007         * lib/unicase/tolower.h: New file, automatically generated by
31008         gen-uni-tables.
31009         * lib/unicase/totitle.h: New file, automatically generated by
31010         gen-uni-tables.
31011         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31012         gen-uni-tables.
31013         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31014         gen-uni-tables.
31015         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31016         gen-uni-tables.
31017
31018         New module 'unicase/base'.
31019         * modules/unicase/base: New file.
31020         * lib/unicase.h: New file.
31021
31022 2009-02-08  Bruno Haible  <bruno@clisp.org>
31023
31024         New module 'uniwbrk/ulc-wordbreaks'.
31025         * modules/uniwbrk/ulc-wordbreaks: New file.
31026         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31027
31028         New module 'uniwbrk/u32-wordbreaks'.
31029         * modules/uniwbrk/u32-wordbreaks: New file.
31030         * lib/uniwbrk/u32-wordbreaks.c: New file.
31031
31032         New module 'uniwbrk/u16-wordbreaks'.
31033         * modules/uniwbrk/u16-wordbreaks: New file.
31034         * lib/uniwbrk/u16-wordbreaks.c: New file.
31035
31036         New module 'uniwbrk/u8-wordbreaks'.
31037         * modules/uniwbrk/u8-wordbreaks: New file.
31038         * lib/uniwbrk/u8-wordbreaks.c: New file.
31039         * lib/uniwbrk/u-wordbreaks.h: New file.
31040
31041         New module 'uniwbrk/table'.
31042         * modules/uniwbrk/table: New file.
31043         * lib/uniwbrk/wbrktable.h: New file.
31044         * lib/uniwbrk/wbrktable.c: New file.
31045
31046         New module 'uniwbrk/wordbreak-property'.
31047         * modules/uniwbrk/wordbreak-property: New file.
31048         * lib/uniwbrk/wordbreak-property.c: New file.
31049
31050         * lib/gen-uni-tables.c (WBP_*): New enum items.
31051         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31052         (unicode_org_wbp): New variable.
31053         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31054         New functions.
31055         (wbp_table): New structure.
31056         (output_wbp, output_wbrk_tables): New functions.
31057         (main): Accept additional argument. Invoke fill_org_wbp,
31058         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31059         output_wbrk_tables.
31060         * modules/gen-uni-tables (Description): Update.
31061         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31062         gen-uni-tables.
31063
31064         New module 'uniwbrk/base'.
31065         * modules/uniwbrk/base: New file.
31066         * lib/uniwbrk.h: New file.
31067
31068 2009-02-08  Bruno Haible  <bruno@clisp.org>
31069
31070         Update to Unicode 5.1.0.
31071         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31072         U+2185..U+2188.
31073         (is_property_default_ignorable_code_point): Don't include characters
31074         of category Cc or Cs and not-a-characters.
31075         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31076         U+0D79, U+109E, U+109F, U+A60C.
31077         * lib/unictype/bidi_of.h: Regenerated.
31078         * lib/unictype/blocks.h: Regenerated.
31079         * lib/unictype/categ_C.h: Regenerated.
31080         * lib/unictype/categ_Cf.h: Regenerated.
31081         * lib/unictype/categ_Cn.h: Regenerated.
31082         * lib/unictype/categ_L.h: Regenerated.
31083         * lib/unictype/categ_Ll.h: Regenerated.
31084         * lib/unictype/categ_Lm.h: Regenerated.
31085         * lib/unictype/categ_Lo.h: Regenerated.
31086         * lib/unictype/categ_Lu.h: Regenerated.
31087         * lib/unictype/categ_M.h: Regenerated.
31088         * lib/unictype/categ_Mc.h: Regenerated.
31089         * lib/unictype/categ_Me.h: Regenerated.
31090         * lib/unictype/categ_Mn.h: Regenerated.
31091         * lib/unictype/categ_N.h: Regenerated.
31092         * lib/unictype/categ_Nd.h: Regenerated.
31093         * lib/unictype/categ_Nl.h: Regenerated.
31094         * lib/unictype/categ_No.h: Regenerated.
31095         * lib/unictype/categ_P.h: Regenerated.
31096         * lib/unictype/categ_Pd.h: Regenerated.
31097         * lib/unictype/categ_Pe.h: Regenerated.
31098         * lib/unictype/categ_Pf.h: Regenerated.
31099         * lib/unictype/categ_Pi.h: Regenerated.
31100         * lib/unictype/categ_Po.h: Regenerated.
31101         * lib/unictype/categ_Ps.h: Regenerated.
31102         * lib/unictype/categ_S.h: Regenerated.
31103         * lib/unictype/categ_Sk.h: Regenerated.
31104         * lib/unictype/categ_Sm.h: Regenerated.
31105         * lib/unictype/categ_So.h: Regenerated.
31106         * lib/unictype/categ_of.h: Regenerated.
31107         * lib/unictype/combining.h: Regenerated.
31108         * lib/unictype/ctype_alnum.h: Regenerated.
31109         * lib/unictype/ctype_alpha.h: Regenerated.
31110         * lib/unictype/ctype_graph.h: Regenerated.
31111         * lib/unictype/ctype_lower.h: Regenerated.
31112         * lib/unictype/ctype_print.h: Regenerated.
31113         * lib/unictype/ctype_punct.h: Regenerated.
31114         * lib/unictype/ctype_upper.h: Regenerated.
31115         * lib/unictype/decdigit.h: Regenerated.
31116         * lib/unictype/digit.h: Regenerated.
31117         * lib/unictype/mirror.h: Regenerated.
31118         * lib/unictype/numeric.h: Regenerated.
31119         * lib/unictype/pr_alphabetic.h: Regenerated.
31120         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31121         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31122         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31123         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31124         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31125         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31126         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31127         * lib/unictype/pr_combining.h: Regenerated.
31128         * lib/unictype/pr_dash.h: Regenerated.
31129         * lib/unictype/pr_decimal_digit.h: Regenerated.
31130         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31131         * lib/unictype/pr_deprecated.h: Regenerated.
31132         * lib/unictype/pr_diacritic.h: Regenerated.
31133         * lib/unictype/pr_extender.h: Regenerated.
31134         * lib/unictype/pr_format_control.h: Regenerated.
31135         * lib/unictype/pr_grapheme_base.h: Regenerated.
31136         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31137         * lib/unictype/pr_grapheme_link.h: Regenerated.
31138         * lib/unictype/pr_id_continue.h: Regenerated.
31139         * lib/unictype/pr_id_start.h: Regenerated.
31140         * lib/unictype/pr_ideographic.h: Regenerated.
31141         * lib/unictype/pr_ignorable_control.h: Regenerated.
31142         * lib/unictype/pr_lowercase.h: Regenerated.
31143         * lib/unictype/pr_math.h: Regenerated.
31144         * lib/unictype/pr_numeric.h: Regenerated.
31145         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31146         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31147         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31148         * lib/unictype/pr_other_id_continue.h: Regenerated.
31149         * lib/unictype/pr_other_lowercase.h: Regenerated.
31150         * lib/unictype/pr_other_math.h: Regenerated.
31151         * lib/unictype/pr_punctuation.h: Regenerated.
31152         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31153         * lib/unictype/pr_soft_dotted.h: Regenerated.
31154         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31155         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31156         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31157         * lib/unictype/pr_uppercase.h: Regenerated.
31158         * lib/unictype/pr_xid_continue.h: Regenerated.
31159         * lib/unictype/pr_xid_start.h: Regenerated.
31160         * lib/unictype/pr_zero_width.h: Regenerated.
31161         * lib/unictype/scripts.h: Regenerated.
31162         * lib/unictype/scripts_byname.gperf: Regenerated.
31163         * lib/unictype/sy_java_ident.h: Regenerated.
31164         * lib/unilbrk/lbrkprop1.h: Regenerated.
31165         * lib/unilbrk/lbrkprop2.h: Regenerated.
31166         * tests/unictype/test-categ_C.c: Regenerated.
31167         * tests/unictype/test-categ_Cf.c: Regenerated.
31168         * tests/unictype/test-categ_Cn.c: Regenerated.
31169         * tests/unictype/test-categ_L.c: Regenerated.
31170         * tests/unictype/test-categ_Ll.c: Regenerated.
31171         * tests/unictype/test-categ_Lm.c: Regenerated.
31172         * tests/unictype/test-categ_Lo.c: Regenerated.
31173         * tests/unictype/test-categ_Lu.c: Regenerated.
31174         * tests/unictype/test-categ_M.c: Regenerated.
31175         * tests/unictype/test-categ_Mc.c: Regenerated.
31176         * tests/unictype/test-categ_Me.c: Regenerated.
31177         * tests/unictype/test-categ_Mn.c: Regenerated.
31178         * tests/unictype/test-categ_N.c: Regenerated.
31179         * tests/unictype/test-categ_Nd.c: Regenerated.
31180         * tests/unictype/test-categ_Nl.c: Regenerated.
31181         * tests/unictype/test-categ_No.c: Regenerated.
31182         * tests/unictype/test-categ_P.c: Regenerated.
31183         * tests/unictype/test-categ_Pd.c: Regenerated.
31184         * tests/unictype/test-categ_Pe.c: Regenerated.
31185         * tests/unictype/test-categ_Pf.c: Regenerated.
31186         * tests/unictype/test-categ_Pi.c: Regenerated.
31187         * tests/unictype/test-categ_Po.c: Regenerated.
31188         * tests/unictype/test-categ_Ps.c: Regenerated.
31189         * tests/unictype/test-categ_S.c: Regenerated.
31190         * tests/unictype/test-categ_Sk.c: Regenerated.
31191         * tests/unictype/test-categ_Sm.c: Regenerated.
31192         * tests/unictype/test-categ_So.c: Regenerated.
31193         * tests/unictype/test-ctype_alnum.c: Regenerated.
31194         * tests/unictype/test-ctype_alpha.c: Regenerated.
31195         * tests/unictype/test-ctype_graph.c: Regenerated.
31196         * tests/unictype/test-ctype_lower.c: Regenerated.
31197         * tests/unictype/test-ctype_print.c: Regenerated.
31198         * tests/unictype/test-ctype_punct.c: Regenerated.
31199         * tests/unictype/test-ctype_upper.c: Regenerated.
31200         * tests/unictype/test-decdigit.h: Regenerated.
31201         * tests/unictype/test-digit.h: Regenerated.
31202         * tests/unictype/test-numeric.h: Regenerated.
31203         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31204         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31205         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31206         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31207         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31208         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31209         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31210         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31211         * tests/unictype/test-pr_combining.c: Regenerated.
31212         * tests/unictype/test-pr_dash.c: Regenerated.
31213         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31214         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31215         * tests/unictype/test-pr_deprecated.c: Regenerated.
31216         * tests/unictype/test-pr_diacritic.c: Regenerated.
31217         * tests/unictype/test-pr_extender.c: Regenerated.
31218         * tests/unictype/test-pr_format_control.c: Regenerated.
31219         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31220         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31221         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31222         * tests/unictype/test-pr_id_continue.c: Regenerated.
31223         * tests/unictype/test-pr_id_start.c: Regenerated.
31224         * tests/unictype/test-pr_ideographic.c: Regenerated.
31225         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31226         * tests/unictype/test-pr_lowercase.c: Regenerated.
31227         * tests/unictype/test-pr_math.c: Regenerated.
31228         * tests/unictype/test-pr_numeric.c: Regenerated.
31229         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31230         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31231         Regenerated.
31232         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31233         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31234         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31235         * tests/unictype/test-pr_other_math.c: Regenerated.
31236         * tests/unictype/test-pr_punctuation.c: Regenerated.
31237         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31238         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31239         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31240         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31241         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31242         * tests/unictype/test-pr_uppercase.c: Regenerated.
31243         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31244         * tests/unictype/test-pr_xid_start.c: Regenerated.
31245         * tests/unictype/test-pr_zero_width.c: Regenerated.
31246
31247         Update to Unicode 5.1.0.
31248         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31249         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31250         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31251         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31252         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31253         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31254         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31255         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31256         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31257         (nonspacing_table_ind): Update.
31258         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31259
31260         Update to Unicode 5.1.0.
31261         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31262         code transform.
31263         * lib/uniname/uniname.c (unicode_character_name,
31264         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31265         * lib/uniname/uninames.h: Regenerated.
31266         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31267
31268 2009-02-07  Bruno Haible  <bruno@clisp.org>
31269
31270         Merge gen-ctype and gen-lbrk into a single program.
31271         * lib/gen-uni-tables.c: New file, incorporating
31272         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31273         Add directory prefixes to the names of the generated files.
31274         * lib/unictype/gen-ctype.c: Remove file.
31275         * lib/unilbrk/gen-lbrk.c: Remove file.
31276         * modules/gen-uni-tables: New file.
31277         * modules/unictype/gen-ctype: Remove file.
31278         * modules/unilbrk/gen-lbrk: Remove file.
31279
31280 2009-02-07  Bruno Haible  <bruno@clisp.org>
31281
31282         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31283
31284         New module 'unistr/u32-strcoll'.
31285         * modules/unistr/u32-strcoll: New file.
31286         * lib/unistr/u32-strcoll.c: New file.
31287
31288         New module 'unistr/u16-strcoll'.
31289         * modules/unistr/u16-strcoll: New file.
31290         * lib/unistr/u16-strcoll.c: New file.
31291
31292         New module 'unistr/u8-strcoll'.
31293         * modules/unistr/u8-strcoll: New file.
31294         * lib/unistr/u8-strcoll.c: New file.
31295         * lib/unistr/u-strcoll.h: New file.
31296
31297 2009-02-07  Bruno Haible  <bruno@clisp.org>
31298
31299         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31300         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31301         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31302         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31303         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31304         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31305
31306 2009-02-07  Bruno Haible  <bruno@clisp.org>
31307
31308         Make 64-bit clean.
31309         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31310         output_combclass, output_bidi_category, output_decimal_digit,
31311         output_digit, output_numeric, output_mirror, output_scripts,
31312         output_ident_category): Use proper width specifier in format strings.
31313
31314 2009-02-07  Bruno Haible  <bruno@clisp.org>
31315
31316         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31317         failure behaviour.
31318
31319 2009-02-07  Jim Meyering  <meyering@redhat.com>
31320
31321         regex: avoid compilation failure with upcoming gcc-4.4
31322         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31323         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31324         "... error: integer overflow in preprocessor expression".
31325
31326 2009-02-05  Ben Pfaff  <blp@gnu.org>
31327
31328         Fix link errors on Windows when close module is used.
31329         * modules/close: Add $(LIB_CLOSE) to Link section.
31330         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31331         $(LIB_CLOSE) on Windows.
31332
31333 2009-02-05  Jim Meyering  <meyering@redhat.com>
31334
31335         still avoid unused-parameter warnings, but do it cleanly
31336         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31337         (get_fs_usage): Cast to void instead.
31338         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31339         (dev_from_mount_options, read_file_system_list): Cast to void.
31340         Prompted by Bruno Haible.
31341
31342 2009-02-04  Jim Meyering  <meyering@redhat.com>
31343
31344         fsusage.c: correct copyright year
31345         * lib/fsusage.c: Reflect year in which the change is pushed into
31346
31347         avoid misc. warnings
31348         * lib/fsusage.c (UNUSED_PARAM): Define.
31349         (get_fs_usage): Mark parameter "disk" as unused.
31350         * lib/getugroups.c (getgrent): Use "void" in prototype.
31351         * lib/mountlist.c: Mark unused parameters.
31352         (read_file_system_list): Declare a local with "const".
31353         * lib/nanosleep.c (getnow): Declare static.
31354         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31355
31356         dirfd: set errno upon failure
31357         * lib/dirfd.c: Include <errno.h>.
31358         Set errno to ENOTSUP when returning -1.
31359         * modules/dirfd (Depends-on): Add errno.
31360         Suggested by John Kodis <kodis@comcast.net>.
31361
31362 2009-02-01  Bruno Haible  <bruno@clisp.org>
31363
31364         Don't assume sizeof (long) >= sizeof (void *).
31365         * lib/memcmp.c: Include stdint.h.
31366         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31367         srcp2 to 'const byte *'.
31368         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31369         types to uintptr_t.
31370         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31371         * modules/memcmp (Depends-on): Add stdint.
31372         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31373
31374 2009-01-30  Eric Blake  <ebb9@byu.net>
31375
31376         fix more require-before-expand issues
31377         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31378         expand, AC_PROG_AWK.
31379         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31380
31381 2009-01-28  Eric Blake  <ebb9@byu.net>
31382
31383         version-etc: use consistent URL formatting
31384         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31385         Improve formatting.  Use fputs for string without %.
31386
31387 2009-01-28  Jim Meyering  <meyering@redhat.com>
31388
31389         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31390         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31391         "underquoted definition of NAME" from autoconf-2.59.
31392
31393 2009-01-28  Bruno Haible  <bruno@clisp.org>
31394
31395         * doc/gnulib.texi: Add "Obsolete modules" to index.
31396
31397 2009-01-28  Jim Meyering  <meyering@redhat.com>
31398
31399         useless-if-before-free: recognize more variants
31400         * build-aux/useless-if-before-free: Also recognize e.g.,
31401         if (NULL != p) free (p);
31402
31403 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31404
31405         test-getaddrinfo: skip (don't fail) this test when there's no network
31406         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31407         on the presumption that it means you lack network access.
31408
31409 2009-01-26  Jim Meyering  <meyering@redhat.com>
31410
31411         fflush: avoid warnings on modern systems
31412         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31413         pos and result, into scopes where they're used.
31414
31415 2009-01-26  Eric Blake  <ebb9@byu.net>
31416
31417         Silence warning reintroduced by recent extensions patch.
31418         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31419         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31420         autoconf.
31421
31422         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31423         * m4/00gnulib.m4: New file.
31424         * gnulib-tool (func_get_filelist): Always use it.
31425         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31426         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31427
31428 2009-01-25  Bruno Haible  <bruno@clisp.org>
31429
31430         Make test-quotearg work on MacOS X and AIX.
31431         * tests/test-quotearg.sh: New file.
31432         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31433         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31434         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31435         include <libintl.h>.
31436         (fake_locale): Remove variable.
31437         (gettext, dgettext, dcgettext): Remove functions.
31438         (main): Instead of setting a fake locale, set a real locale. Call
31439         textdomain and bindtextdomain.
31440         * modules/quotearg-tests (Files): Add the new files.
31441         (Depends-on): Add gettext, setenv, unsetenv.
31442         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31443         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31444         Augment TESTS_ENVIRONMENT.
31445
31446 2009-01-25  Bruno Haible  <bruno@clisp.org>
31447
31448         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31449         fr_FR.ISO8859-1 locale on MacOS X.
31450         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31451         ja_JP.eucJP locale on MacOS X.
31452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31453         zh_CN.GB18030 locale on MacOS X.
31454
31455 2009-01-25  Bruno Haible  <bruno@clisp.org>
31456
31457         Avoid link errors on MacOS X 10.3.
31458         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31459         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31460
31461 2009-01-25  Bruno Haible  <bruno@clisp.org>
31462
31463         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31464         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31465         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31466         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31467         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31468         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31469         posix_spawnattr_init, posix_spawnattr_setsigmask,
31470         posix_spawnattr_setflags, posix_spawnattr_destroy.
31471
31472         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31473         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31474         * modules/execute (Files): Remove m4/posix_spawn.m4.
31475         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31476         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31477         posix_spawnattr_init, posix_spawnattr_setsigmask,
31478         posix_spawnattr_setflags, posix_spawnattr_destroy.
31479
31480 2009-01-25  Bruno Haible  <bruno@clisp.org>
31481
31482         * lib/glthread/threadlib.c: Include <stdlib.h>.
31483
31484 2009-01-25  Bruno Haible  <bruno@clisp.org>
31485
31486         * lib/glthread/threadlib.c (dummy): New declaration.
31487
31488 2009-01-25  Bruno Haible  <bruno@clisp.org>
31489
31490         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31491         multibyte characters also for the GB18030 encoding. Don't crash when
31492         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31493
31494 2009-01-25  Bruno Haible  <bruno@clisp.org>
31495
31496         Avoid redefining 'struct random_data' on OSF/1 5.1.
31497         * lib/stdlib.in.h: Include <random.h> if it exists.
31498         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31499         HAVE_RANDOM_H. Include <random.h> when testing whether
31500         'struct random_data' exists.
31501         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31502
31503 2009-01-25  Bruno Haible  <bruno@clisp.org>
31504
31505         Don't install charset.alias on MacOS X >= 10.3.
31506         * lib/localcharset.c (DARWIN7): New macro.
31507         (get_charset_aliases): Hardcode the result for Darwin7.
31508         * modules/localcharset (install-exec-local): Don't install
31509         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31510
31511 2009-01-25  Bruno Haible  <bruno@clisp.org>
31512
31513         Don't install charset.alias on mingw and Cygwin.
31514         * modules/localcharset (install-exec-local): Don't install
31515         charset.alias on mingw and Cygwin, if the file does not yet exist.
31516         The result for these platforms is hardcoded in localcharset.c.
31517
31518 2009-01-25  Bruno Haible  <bruno@clisp.org>
31519
31520         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31522         before requiring AC_USE_SYSTEM_EXTENSIONS.
31523
31524 2009-01-25  Jim Meyering  <meyering@redhat.com>
31525
31526         c-strtod: avoid warnings
31527         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31528         "assignment discards qualifiers from pointer target type" warnings.
31529
31530 2009-01-24  Bruno Haible  <bruno@clisp.org>
31531
31532         Add support for non-UTF-8 locales on MacOS X.
31533         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31534         canonical encodings. For Darwin 7 and newer, don't map traditional
31535         encodings to UTF-8.
31536         Reported by Vincent Lefevre <vincent@vinc17.org>
31537         at <http://savannah.gnu.org/bugs/?25235>.
31538
31539 2009-01-24  Bruno Haible  <bruno@clisp.org>
31540
31541         * doc/gnulib.texi (Obsolete modules): New section.
31542         Reported by Mike Frysinger <vapier@gentoo.org>.
31543
31544 2009-01-24  Bruno Haible  <bruno@clisp.org>
31545
31546         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31547         (%.dvi): New rule.
31548
31549 2009-01-24  Bruno Haible  <bruno@clisp.org>
31550
31551         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31552         Reported by Eric Blake.
31553
31554 2009-01-24  Bruno Haible  <bruno@clisp.org>
31555
31556         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31557         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31558         Reported by Gary V. Vaughan <gary@gnu.org>.
31559
31560 2009-01-24  Bruno Haible  <bruno@clisp.org>
31561
31562         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31563
31564 2009-01-23  Bruno Haible  <bruno@clisp.org>
31565
31566         Make c-strtod, c-strtold usable in libraries.
31567         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31568         (C_STRTOD): Call strdup instead of xstrdup.
31569         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31570         * modules/c-strtold (Depends-on): Likewise.
31571         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31572         * NEWS: Mention the change.
31573         Reported by Michael Gold <mgold@ncf.ca>.
31574
31575 2009-01-23  Jim Meyering  <meyering@redhat.com>
31576
31577         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31578         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31579         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31580
31581 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31582
31583         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31584         GNU CoreUtils.
31585         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31586         * modules/version-etc (Description): Update.
31587
31588 2009-01-22  Bruno Haible  <bruno@clisp.org>
31589
31590         Cache the C locale object.
31591         * lib/c-strtod.c (c_locale_cache): New variable.
31592         (c_locale): New function.
31593         (C_STRTOD): Use it, and don't call freelocale.
31594         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31595         Suggested by Paolo Bonzini.
31596
31597 2009-01-21  Bruno Haible  <bruno@clisp.org>
31598
31599         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31600         conditions other than overflow.
31601
31602 2009-01-21  Bruno Haible  <bruno@clisp.org>
31603
31604         * lib/c-strtod.c: Include errno.h.
31605         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31606         value from STRTOD_L and STRTOD.
31607
31608 2009-01-21  Bruno Haible  <bruno@clisp.org>
31609         and Jim Meyering  <meyering@redhat.com>
31610
31611         nanosleep: skip configure test (fail it) for apple universal builds
31612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31613         universal builds, assume that nanosleep does not work.
31614         * modules/nanosleep (Depends-on): Add multiarch.
31615
31616         mktime: skip configure test (fail it) for apple universal builds
31617         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31618         universal builds, assume that mktime does not work.
31619         * modules/mktime (Depends-on): Add multiarch.
31620
31621 2009-01-21  Eric Blake  <ebb9@byu.net>
31622
31623         multiarch: avoid expand-before-require warning
31624         * modules/multiarch (configure.ac): Require, rather than expand,
31625         gl_MULTIARCH.
31626         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31627         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31628         enforce that all clients require it.  Partial reversion of
31629         2008-12-29 patch.
31630
31631         error: avoid expand-before-require warning
31632         * modules/errno (configure.ac): Require, rather than expand,
31633         gl_HEADER_ERRNO_H.
31634         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31635         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31636         enforce that all clients require it.
31637
31638         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31639         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31640         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31641         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31642
31643 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31644
31645         Revert:
31646         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31647
31648         regex: do not depend on obsolete modules.
31649         * modules/regex: Remove memcmp and memmove.
31650
31651 2009-01-20  Bruno Haible  <bruno@clisp.org>
31652
31653         Make the 'link' module link on Windows NT 4.
31654         * lib/link.c (_WIN32_WINNT): Don't define.
31655         (CreateHardLinkFuncType): New type.
31656         (CreateHardLinkFunc, initialized): New variables.
31657         (initialize): New function.
31658         (link): Invoke CreateHardLink indirectly through the function pointer.
31659
31660 2009-01-20  Bruno Haible  <bruno@clisp.org>
31661
31662         Fix compilation failure on mingw.
31663         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31664
31665 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31666
31667         * doc/c-strtod.texi: Mention a couple of restrictions.
31668
31669 2009-01-20  Jim Meyering  <meyering@redhat.com>
31670
31671         gettimeofday: move more declarations out of functions
31672         * lib/gettimeofday.c: Move extern declarations of tzset and
31673         gmtime out of containing functions.  Prompted by Bruno Haible.
31674
31675 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31676
31677         regex: do not depend on obsolete modules.
31678         * modules/regex: Remove memcmp and memmove.
31679
31680 2009-01-19  Bruno Haible  <bruno@clisp.org>
31681
31682         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31683         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31684         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31685         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31686         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31687
31688 2009-01-19  Bruno Haible  <bruno@clisp.org>
31689
31690         * tests/test-link.c: Include <errno.h>.
31691         (main): Exit with code 77 when a hard link cannot be created due to
31692         the file system.
31693         * tests/test-link.sh: Skip test when a hard link cannot be created due
31694         to the file system.
31695         Suggested by Eric Blake.
31696
31697 2009-01-19  Martin Lambers  <marlam@marlam.de>
31698
31699         * modules/link-tests: New file.
31700         * tests/test-link.sh: New file.
31701         * tests/test-link.c: New file.
31702
31703 2009-01-19  Eric Blake  <ebb9@byu.net>
31704
31705         doc: mention another function added in cygwin 1.7.0
31706         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31707         Another new function in cygwin 1.7.
31708
31709 2009-01-19  Bruno Haible  <bruno@clisp.org>
31710
31711         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31712         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31713         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31714         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31715         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31716         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31717         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31718         * m4/md4.m4 (gl_MD4): Likewise.
31719         * m4/md5.m4 (gl_MD5): Likewise.
31720         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31721         * m4/sha1.m4 (gl_SHA1): Likewise.
31722         * m4/sha256.m4 (gl_SHA256): Likewise.
31723         * m4/sha512.m4 (gl_SHA512): Likewise.
31724
31725 2009-01-19  Bruno Haible  <bruno@clisp.org>
31726
31727         * modules/uniname/uniname-tests (Depends-on): Add progname.
31728         * tests/uniname/test-uninames.c: Include progname.h.
31729         (main): Call set_program_name.
31730
31731         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31732         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31733         (main): Call set_program_name.
31734
31735         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31736         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31737         (main): Call set_program_name.
31738
31739         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31740         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31741         (main): Call set_program_name.
31742
31743         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31744         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31745         (main): Call set_program_name.
31746
31747         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31748         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31749         (main): Call set_program_name.
31750
31751         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31752         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31753         (main): Call set_program_name.
31754
31755         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31756         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31757         (main): Call set_program_name.
31758
31759         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31760         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31761         (main): Call set_program_name.
31762
31763 2009-01-19  Eric Blake  <ebb9@byu.net>
31764
31765         test-unistd: test previous patch
31766         * tests/test-unistd.c: Test *_FILENO macros.
31767
31768         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31769         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31770         Guarantee a definition.
31771         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31772         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31773         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31774         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31775         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31776         Likewise.
31777         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31778         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31779         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31780         Likewise.
31781         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31782         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31783         (STDERR_FILENO): Likewise.
31784         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31785         (STDERR_FILENO): Likewise.
31786         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31787         (STDERR_FILENO): Likewise.
31788         Reported by Elbert Pol.
31789
31790 2009-01-19  Eric Blake  <ebb9@byu.net>
31791
31792         doc: mention more functions added in cygwin 1.7.0
31793         * doc/posix-functions/abort.texi (abort): Update wording related
31794         to cygwin.
31795         * doc/posix-functions/daylight.texi (daylight): Likewise.
31796         * doc/posix-functions/optarg.texi (optarg): Likewise.
31797         * doc/posix-functions/optarg.texi (opterr): Likewise.
31798         * doc/posix-functions/optarg.texi (optind): Likewise.
31799         * doc/posix-functions/optarg.texi (optopt): Likewise.
31800         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31801         worked in 1.5.x, and was withdrawn in 1.7.
31802         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31803         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31804         cygwin versions.
31805         * doc/posix-functions/perror.texi (perror): Likewise.
31806         * doc/posix-functions/printf.texi (printf): Likewise.
31807         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31808         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31809         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31810         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31811         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31812         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31813         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31814         Likewise.
31815         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31816         Likewise.
31817         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31818         this function.
31819         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31820         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31821         Likewise.
31822         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31823         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31824         * doc/posix-functions/confstr.texi (confstr): Likewise.
31825         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31826         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31827         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31828         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31829         * doc/posix-functions/fputws.texi (fputws): Likewise.
31830         * doc/posix-functions/fwide.texi (fwide): Likewise.
31831         * doc/posix-functions/getwc.texi (getwc): Likewise.
31832         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31833         * doc/posix-functions/putwc.texi (putwc): Likewise.
31834         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31835         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31836         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31837         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31838         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31839         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31840         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31841         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31842         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31843         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31844         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31845
31846 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31847
31848         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31849         * lib/ioctl.c: Include <sys/ioctl.h>.
31850
31851 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31852
31853         * modules/getdate-tests (Depends-on): Add progname.
31854         * tests/test-getdate.c: Use progname module, to avoid link errors
31855         on non-glibc systems.
31856
31857 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31858
31859         * modules/filenamecat-tests (Depends-on): Add progname.
31860         * modules/fstrcmp-tests (Depends-on): Likewise.
31861
31862         * tests/test-filenamecat.c: Use progname module, to avoid link
31863         errors on non-glibc systems.
31864         * tests/test-fstrcmp.c: Likewise.
31865
31866 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31867
31868         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31869         * lib/gettimeofday.c: Move extern declaration out of function.
31870
31871 2009-01-18  Bruno Haible  <bruno@clisp.org>
31872
31873         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31874         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31875         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31876
31877 2009-01-18  Bruno Haible  <bruno@clisp.org>
31878
31879         * lib/strftime.c (MEMPCPY): Remove unused macro.
31880         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31881
31882 2009-01-18  Martin Lambers  <marlam@marlam.de>
31883
31884         New module 'link'.
31885         * lib/unistd.in.h (link): New declaration.
31886         * lib/link.c: New file.
31887         * m4/link.m4: New file.
31888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31889         HAVE_LINK.
31890         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31891         * modules/link: New file.
31892         * doc/posix-functions/link.texi: Mention the new module.
31893
31894 2009-01-18  Bruno Haible  <bruno@clisp.org>
31895
31896         * tests/test-avltree_list.c (main): Call set_program_name.
31897         * tests/test-avltree_oset.c (main): Likewise.
31898         * tests/test-obstack-printf.c: Include progname.h.
31899         (main): Call set_program_name.
31900         * tests/test-quotearg.c: Include progname.h.
31901         (main): Call set_program_name.
31902         * tests/test-xmemdup0.c: Include progname.h.
31903         (main): Call set_program_name.
31904
31905 2009-01-18  Bruno Haible  <bruno@clisp.org>
31906
31907         New module 'alphasort'.
31908         * lib/dirent.in.h (alphasort): New declaration.
31909         * lib/alphasort.c: New file, from glibc with modifications.
31910         * m4/alphasort.m4: New file.
31911         * modules/alphasort: New file.
31912         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31913         HAVE_ALPHASORT.
31914         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31915         HAVE_ALPHASORT.
31916         * doc/posix-functions/alphasort.texi: Mention the new module and the
31917         portability problems.
31918
31919 2009-01-18  Bruno Haible  <bruno@clisp.org>
31920
31921         New module 'scandir'.
31922         * lib/dirent.in.h (scandir): New declaration.
31923         * lib/scandir.c: New file, from glibc with modifications.
31924         * m4/scandir.m4: New file.
31925         * modules/scandir: New file.
31926         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31927         HAVE_SCANDIR.
31928         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31929         HAVE_SCANDIR.
31930         * doc/posix-functions/scandir.texi: Mention the new module and the
31931         portability problems.
31932
31933 2009-01-17  Bruno Haible  <bruno@clisp.org>
31934
31935         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31936         Update documentation.
31937         (func_remove_suffix): Escape all dots in the suffix. Update
31938         documentation.
31939         (func_filter_filelist): Update documentation.
31940         Reported by Ralf Wildenhues.
31941
31942 2009-01-17  Bruno Haible  <bruno@clisp.org>
31943
31944         * modules/dprintf-posix-tests: New file.
31945         * tests/test-dprintf-posix.sh: New file.
31946         * tests/test-dprintf-posix.c: New file.
31947
31948         New modules 'dprintf', 'dprintf-posix'.
31949         * lib/stdio.in.h (dprintf): New declaration.
31950         * lib/dprintf.c: New file.
31951         * m4/dprintf.m4: New file.
31952         * m4/dprintf-posix.m4: New file.
31953         * modules/dprintf: New file.
31954         * modules/dprintf-posix: New file.
31955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31956         HAVE_DPRINTF, REPLACE_DPRINTF.
31957         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31958         HAVE_DPRINTF, REPLACE_DPRINTF.
31959         * doc/posix-functions/dprintf.texi: Mention the new modules.
31960
31961 2009-01-17  Bruno Haible  <bruno@clisp.org>
31962
31963         * modules/vdprintf-posix-tests: New file.
31964         * tests/test-vdprintf-posix.sh: New file.
31965         * tests/test-vdprintf-posix.c: New file.
31966
31967         New modules 'vdprintf', 'vdprintf-posix'.
31968         * lib/stdio.in.h (vdprintf): New declaration.
31969         * lib/vdprintf.c: New file.
31970         * m4/vdprintf.m4: New file.
31971         * m4/vdprintf-posix.m4: New file.
31972         * modules/vdprintf: New file.
31973         * modules/vdprintf-posix: New file.
31974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31975         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31976         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31977         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31978         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31979
31980 2009-01-17  Bruno Haible  <bruno@clisp.org>
31981
31982         Fix replacement of fopen on mingw.
31983         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31984         mingw.
31985
31986 2009-01-17  Bruno Haible  <bruno@clisp.org>
31987
31988         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31989         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31990
31991 2009-01-17  Bruno Haible  <bruno@clisp.org>
31992
31993         Avoid test-fflush2.sh failure on mingw.
31994         * tests/test-fflush2.c: Include binary-io.h.
31995         (main): Put standard input into binary mode.
31996         * modules/fflush-tests (Depends-on): Add binary-io.
31997
31998 2009-01-17  Bruno Haible  <bruno@clisp.org>
31999
32000         * lib/wchar.in.h: In another particular situation, include only the
32001         system's <wchar.h> file.
32002         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32003         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32004         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32005
32006 2009-01-17  Bruno Haible  <bruno@clisp.org>
32007
32008         Support for stripping executables in --enable-relocatable.
32009         * build-aux/install-reloc: Expect one more argument, or an environment
32010         variable RELOC_STRIP_PROG. If set, strip the destination program and
32011         its wrapper.
32012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32013         RELOC_STRIP_PROG.
32014         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32015         to set RELOCATABLE_STRIP.
32016         * NEWS: Mention the new Makefile requirement.
32017
32018 2009-01-17  Bruno Haible  <bruno@clisp.org>
32019
32020         * build-aux/install-reloc: Remove debugging information left over by
32021         C compiler on MacOS X.
32022
32023 2009-01-17  Bruno Haible  <bruno@clisp.org>
32024
32025         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32026         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32027         _NSGetExecutablePath.
32028
32029 2009-01-16  Jim Meyering  <meyering@redhat.com>
32030
32031         strerror: avoid warnings about discarding "const"
32032         * lib/strerror.c (rpl_strerror): Instead of returning a const
32033         string from each and every "case", use a variable, and add a single
32034         cast after the switch.
32035
32036 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32037
32038         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32039
32040 2009-01-16  Bruno Haible  <bruno@clisp.org>
32041
32042         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32043         array initializer syntax that also works in C++ mode.
32044         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32045
32046 2009-01-16  Jim Meyering  <meyering@redhat.com>
32047
32048         poll: suppress a warning
32049         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32050         to ignore "...unsigned expression < 0 is always false" warnings.
32051
32052 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32053
32054         poll: remove declarations of unused variables
32055         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32056         sockbuf and optlen.
32057
32058 2009-01-15  Bruno Haible  <bruno@clisp.org>
32059
32060         Make fflush-after-ungetc POSIX compliant on BSD systems.
32061         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32062         (clear_ungetc_buffer): Implement also for other systems.
32063         (rpl_fflush): On glibc systems, invoke
32064         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32065         clear_ungetc_buffer after fetching the stream's position, not before.
32066
32067 2009-01-15  Bruno Haible  <bruno@clisp.org>
32068
32069         Make fflush-after-ungetc POSIX compliant on glibc systems.
32070         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32071         after ungetc.
32072         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32073         (rpl_fflush): On glibc systems, simply call the system's fflush
32074         function after clearing the ungetc buffer.
32075         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32076         Instead, lseek only to the end of file, then use the system's fseeko
32077         for the rest. On glibc systems, reset the EOF indicator bit.
32078
32079 2009-01-15  Jim Meyering  <meyering@redhat.com>
32080
32081         openmp.m4: revert quote-adding change, for portability to older autoconf
32082         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32083         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32084         Simon Josefsson noticed the problem when using autoconf-2.61.
32085
32086 2009-01-15  Bruno Haible  <bruno@clisp.org>
32087
32088         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32089         * tests/test-fflush2.c (ASSERT): Always fail.
32090         (main): Add two tests for fflush() after ungetc(), taking into account
32091         the Austin Group's clarification.
32092         Suggested by Eric Blake.
32093
32094 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32095
32096         mktime.m4: remove K&R-style function prototypes
32097         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32098         for the Sun C++ compiler.
32099
32100 2009-01-14  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32103         while including <wchar.h>.
32104         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32105         the system's <wchar.h> file.
32106         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32107
32108 2009-01-14  Bruno Haible  <bruno@clisp.org>
32109
32110         * m4/csharp.m4: Don't mention gettext on the serial number line.
32111         * m4/csharpexec.m4: Likewise.
32112         * m4/eaccess.m4: Likewise.
32113         * m4/javaexec.m4: Likewise.
32114         * m4/sig_atomic_t.m4: Likewise.
32115         * m4/tmpdir.m4: Likewise.
32116         * m4/intldir.m4: Bump gettext version.
32117         * m4/lib-ld.m4: Likewise.
32118
32119 2009-01-14  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/progname.c (set_program_name): Add more comments.
32122         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32123
32124 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32125
32126         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32127         were sys/stat.h does not define it.
32128
32129 2009-01-14  Jim Meyering  <meyering@redhat.com>
32130
32131         many *.m4 files: improve m4 quoting
32132         99% of this change was performed by running the following commands:
32133         git ls-files | grep '\.m4$' | xargs perl -pi \
32134           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32135           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32136           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32137           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32138         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32139         The remainder were to add Copyright dates, increment serial numbers,
32140         undo some changes in comments, exclude m4/intl.m4, and add quotes
32141         around the "1" in ",1" where the unusual spacing prohibited the
32142         above regexps from doing the job.  For more details, see
32143         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32144         * m4/acl.m4: Modified.
32145         * m4/afs.m4: Likewise.
32146         * m4/alloca.m4: Likewise.
32147         * m4/argp.m4: Likewise.
32148         * m4/argz.m4: Likewise.
32149         * m4/atexit.m4: Likewise.
32150         * m4/bison-i18n.m4: Likewise.
32151         * m4/bison.m4: Likewise.
32152         * m4/byteswap.m4: Likewise.
32153         * m4/c-stack.m4: Likewise.
32154         * m4/c-strtod.m4: Likewise.
32155         * m4/calloc.m4: Likewise.
32156         * m4/canonicalize-lgpl.m4: Likewise.
32157         * m4/chown.m4: Likewise.
32158         * m4/clock_time.m4: Likewise.
32159         * m4/codeset.m4: Likewise.
32160         * m4/copy-file.m4: Likewise.
32161         * m4/csharp.m4: Likewise.
32162         * m4/csharpcomp.m4: Likewise.
32163         * m4/csharpexec.m4: Likewise.
32164         * m4/d-ino.m4: Likewise.
32165         * m4/d-type.m4: Likewise.
32166         * m4/dirfd.m4: Likewise.
32167         * m4/double-slash-root.m4: Likewise.
32168         * m4/eaccess.m4: Likewise.
32169         * m4/eealloc.m4: Likewise.
32170         * m4/environ.m4: Likewise.
32171         * m4/errno_h.m4: Likewise.
32172         * m4/euidaccess.m4: Likewise.
32173         * m4/execute.m4: Likewise.
32174         * m4/fatal-signal.m4: Likewise.
32175         * m4/fchdir.m4: Likewise.
32176         * m4/fcntl_h.m4: Likewise.
32177         * m4/fileblocks.m4: Likewise.
32178         * m4/filenamecat.m4: Likewise.
32179         * m4/findprog.m4: Likewise.
32180         * m4/flexmember.m4: Likewise.
32181         * m4/fnmatch.m4: Likewise.
32182         * m4/fopen.m4: Likewise.
32183         * m4/fpending.m4: Likewise.
32184         * m4/fprintf-posix.m4: Likewise.
32185         * m4/free.m4: Likewise.
32186         * m4/frexp.m4: Likewise.
32187         * m4/frexpl.m4: Likewise.
32188         * m4/fsusage.m4: Likewise.
32189         * m4/ftruncate.m4: Likewise.
32190         * m4/gc-camellia.m4: Likewise.
32191         * m4/gc-random.m4: Likewise.
32192         * m4/gc.m4: Likewise.
32193         * m4/getaddrinfo.m4: Likewise.
32194         * m4/getcwd-abort-bug.m4: Likewise.
32195         * m4/getcwd-path-max.m4: Likewise.
32196         * m4/getdate.m4: Likewise.
32197         * m4/getdomainname.m4: Likewise.
32198         * m4/getgroups.m4: Likewise.
32199         * m4/gethostname.m4: Likewise.
32200         * m4/gethrxtime.m4: Likewise.
32201         * m4/getline.m4: Likewise.
32202         * m4/getloadavg.m4: Likewise.
32203         * m4/getndelim2.m4: Likewise.
32204         * m4/getpass.m4: Likewise.
32205         * m4/gettext.m4: Likewise.
32206         * m4/gettime.m4: Likewise.
32207         * m4/gettimeofday.m4: Likewise.
32208         * m4/gnulib-common.m4: Likewise.
32209         * m4/group-member.m4: Likewise.
32210         * m4/host-os.m4: Likewise.
32211         * m4/iconv.m4: Likewise.
32212         * m4/iconv_open.m4: Likewise.
32213         * m4/inet_ntop.m4: Likewise.
32214         * m4/inet_pton.m4: Likewise.
32215         * m4/inline.m4: Likewise.
32216         * m4/intldir.m4: Likewise.
32217         * m4/intlmacosx.m4: Likewise.
32218         * m4/intmax.m4: Likewise.
32219         * m4/intmax_t.m4: Likewise.
32220         * m4/inttypes.m4: Likewise.
32221         * m4/inttypes_h.m4: Likewise.
32222         * m4/inttypes-pri.m4: Likewise.
32223         * m4/isapipe.m4: Likewise.
32224         * m4/isnand.m4: Likewise.
32225         * m4/isnanf.m4: Likewise.
32226         * m4/isnanl.m4: Likewise.
32227         * m4/javacomp.m4: Likewise.
32228         * m4/javaexec.m4: Likewise.
32229         * m4/jm-winsz1.m4: Likewise.
32230         * m4/jm-winsz2.m4: Likewise.
32231         * m4/lchown.m4: Likewise.
32232         * m4/lcmessage.m4: Likewise.
32233         * m4/ldexpl.m4: Likewise.
32234         * m4/lib-ld.m4: Likewise.
32235         * m4/lib-link.m4: Likewise.
32236         * m4/libsigsegv.m4: Likewise.
32237         * m4/link-follow.m4: Likewise.
32238         * m4/localcharset.m4: Likewise.
32239         * m4/locale-fr.m4: Likewise.
32240         * m4/locale-ja.m4: Likewise.
32241         * m4/locale-tr.m4: Likewise.
32242         * m4/locale-zh.m4: Likewise.
32243         * m4/lock.m4: Likewise.
32244         * m4/longlong.m4: Likewise.
32245         * m4/ls-mntd-fs.m4: Likewise.
32246         * m4/lstat.m4: Likewise.
32247         * m4/malloc.m4: Likewise.
32248         * m4/mathl.m4: Likewise.
32249         * m4/mbrtowc.m4: Likewise.
32250         * m4/mbstate_t.m4: Likewise.
32251         * m4/mbswidth.m4: Likewise.
32252         * m4/memchr.m4: Likewise.
32253         * m4/memcmp.m4: Likewise.
32254         * m4/memcpy.m4: Likewise.
32255         * m4/memmem.m4: Likewise.
32256         * m4/memmove.m4: Likewise.
32257         * m4/mempcpy.m4: Likewise.
32258         * m4/memrchr.m4: Likewise.
32259         * m4/memset.m4: Likewise.
32260         * m4/minmax.m4: Likewise.
32261         * m4/mkdir-slash.m4: Likewise.
32262         * m4/mkdtemp.m4: Likewise.
32263         * m4/mktime.m4: Likewise.
32264         * m4/mmap-anon.m4: Likewise.
32265         * m4/mountlist.m4: Likewise.
32266         * m4/nanosleep.m4: Likewise.
32267         * m4/nls.m4: Likewise.
32268         * m4/nocrash.m4: Likewise.
32269         * m4/open.m4: Likewise.
32270         * m4/openat.m4: Likewise.
32271         * m4/openmp.m4: Likewise.
32272         * m4/pathmax.m4: Likewise.
32273         * m4/perl.m4: Likewise.
32274         * m4/physmem.m4: Likewise.
32275         * m4/pipe.m4: Likewise.
32276         * m4/po.m4: Likewise.
32277         * m4/poll.m4: Likewise.
32278         * m4/posixtm.m4: Likewise.
32279         * m4/posixver.m4: Likewise.
32280         * m4/printf-frexp.m4: Likewise.
32281         * m4/printf-frexpl.m4: Likewise.
32282         * m4/printf-posix.m4: Likewise.
32283         * m4/printf-posix-rpl.m4: Likewise.
32284         * m4/printf.m4: Likewise.
32285         * m4/progtest.m4: Likewise.
32286         * m4/putenv.m4: Likewise.
32287         * m4/readline.m4: Likewise.
32288         * m4/readlink.m4: Likewise.
32289         * m4/readutmp.m4: Likewise.
32290         * m4/realloc.m4: Likewise.
32291         * m4/regex.m4: Likewise.
32292         * m4/relocatable.m4: Likewise.
32293         * m4/relocatable-lib.m4: Likewise.
32294         * m4/rename-dest-slash.m4: Likewise.
32295         * m4/rename.m4: Likewise.
32296         * m4/rmdir-errno.m4: Likewise.
32297         * m4/rmdir.m4: Likewise.
32298         * m4/roundf.m4: Likewise.
32299         * m4/roundl.m4: Likewise.
32300         * m4/rpmatch.m4: Likewise.
32301         * m4/save-cwd.m4: Likewise.
32302         * m4/selinux-selinux-h.m4: Likewise.
32303         * m4/setenv.m4: Likewise.
32304         * m4/settime.m4: Likewise.
32305         * m4/sig2str.m4: Likewise.
32306         * m4/sig_atomic_t.m4: Likewise.
32307         * m4/signalblocking.m4: Likewise.
32308         * m4/signbit.m4: Likewise.
32309         * m4/sigpipe.m4: Likewise.
32310         * m4/sockets.m4: Likewise.
32311         * m4/sockpfaf.m4: Likewise.
32312         * m4/st_dm_mode.m4: Likewise.
32313         * m4/stat-time.m4: Likewise.
32314         * m4/stdbool.m4: Likewise.
32315         * m4/stdint.m4: Likewise.
32316         * m4/stdint_h.m4: Likewise.
32317         * m4/stpcpy.m4: Likewise.
32318         * m4/stpncpy.m4: Likewise.
32319         * m4/strcase.m4: Likewise.
32320         * m4/strchrnul.m4: Likewise.
32321         * m4/strcspn.m4: Likewise.
32322         * m4/strdup.m4: Likewise.
32323         * m4/strftime.m4: Likewise.
32324         * m4/strndup.m4: Likewise.
32325         * m4/strnlen.m4: Likewise.
32326         * m4/strpbrk.m4: Likewise.
32327         * m4/strptime.m4: Likewise.
32328         * m4/strsep.m4: Likewise.
32329         * m4/strtod.m4: Likewise.
32330         * m4/strtoimax.m4: Likewise.
32331         * m4/strtok_r.m4: Likewise.
32332         * m4/strtol.m4: Likewise.
32333         * m4/strtoll.m4: Likewise.
32334         * m4/strtoul.m4: Likewise.
32335         * m4/strtoull.m4: Likewise.
32336         * m4/strtoumax.m4: Likewise.
32337         * m4/strverscmp.m4: Likewise.
32338         * m4/threadlib.m4: Likewise.
32339         * m4/timegm.m4: Likewise.
32340         * m4/tm_gmtoff.m4: Likewise.
32341         * m4/tmpdir.m4: Likewise.
32342         * m4/tmpfile.m4: Likewise.
32343         * m4/tzset.m4: Likewise.
32344         * m4/uintmax_t.m4: Likewise.
32345         * m4/unlinkdir.m4: Likewise.
32346         * m4/unlocked-io.m4: Likewise.
32347         * m4/uptime.m4: Likewise.
32348         * m4/userspec.m4: Likewise.
32349         * m4/utimbuf.m4: Likewise.
32350         * m4/utime.m4: Likewise.
32351         * m4/utimes-null.m4: Likewise.
32352         * m4/utimes.m4: Likewise.
32353         * m4/vararrays.m4: Likewise.
32354         * m4/vasnprintf.m4: Likewise.
32355         * m4/vfprintf-posix.m4: Likewise.
32356         * m4/vprintf-posix.m4: Likewise.
32357         * m4/wait-process.m4: Likewise.
32358         * m4/wchar_t.m4: Likewise.
32359         * m4/wint_t.m4: Likewise.
32360         * m4/write-any-file.m4: Likewise.
32361         * m4/yield.m4: Likewise.
32362
32363 2009-01-13  Bruno Haible  <bruno@clisp.org>
32364
32365         Avoid test-copy-file.sh failures when ACL support insufficient.
32366         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32367         TESTS_ENVIRONMENT.
32368         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32369         Reported by Jim Meyering.
32370
32371 2009-01-13  Bruno Haible  <bruno@clisp.org>
32372
32373         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32374         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32375         * modules/unistdio/u8-printf-parse (Files): Likewise.
32376         * modules/unistdio/u32-printf-parse (Files): Likewise.
32377         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32378
32379 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32380
32381         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32382         and m4/inttypes_h.m4 too.
32383
32384 2009-01-12  Eric Blake  <ebb9@byu.net>
32385
32386         tests: IRIX 6.2 cc can't compile -0.0 into .data
32387         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32388         rather than at compile-time.
32389         * tests/test-floorl.c (minus_zero): Likewise.
32390         * tests/test-frexpl.c (minus_zero): Likewise.
32391         * tests/test-isnan.c (minus_zerol): Likewise.
32392         * tests/test-isnanl.h (minus_zero): Likewise.
32393         * tests/test-ldexpl.c (minus_zero): Likewise.
32394         * tests/test-roundl.c (minus_zero): Likewise.
32395         * tests/test-signbit.c (minus_zerol): Likewise.
32396         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32397         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32398         * tests/test-truncl.c (minus_zero): Likewise.
32399         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32400         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32401         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32402
32403 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32404
32405         regex: fix glibc bug 9697
32406         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32407         handling.
32408
32409 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32410
32411         regex: fix glibc bug 697
32412         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32413         being NULL also if there are no backreferences.
32414
32415 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32416
32417         regex: merge glibc changes
32418         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32419         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32420         re_string_skip_chars, re_string_reconstruct): Likewise.
32421         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32422
32423 2009-01-07  Jim Meyering  <meyering@redhat.com>
32424
32425         poll: filter through cppi
32426         * lib/poll.c: Indent cpp directives to reflect nesting.
32427
32428 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32429
32430         poll: don't return uninitialized
32431         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32432
32433 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32434
32435         avoid compile failure on AIX 6.1
32436         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32437         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32438
32439 2009-01-04  Jim Meyering  <meyering@redhat.com>
32440
32441         remove duplicate inclusion of <stdio.h>
32442         * tests/test-fprintf-posix.c: Likewise.
32443         * tests/test-printf-posix.c: Likewise.
32444         * tests/test-snprintf-posix.c: Likewise.
32445         * tests/test-sprintf-posix.c: Likewise.
32446         * tests/test-vasprintf-posix.c: Likewise.
32447         * tests/test-vfprintf-posix.c: Likewise.
32448         * tests/test-vprintf-posix.c: Likewise.
32449         * tests/test-vsnprintf-posix.c: Likewise.
32450         * tests/test-vsprintf-posix.c: Likewise.
32451
32452 2009-01-03  Jim Meyering  <meyering@redhat.com>
32453
32454         gnulib-tool: fix sed-based filtering
32455         * gnulib-tool (func_filter_filelist): Remove extra backslash
32456         in sed_fff_filter definition.
32457
32458 2009-01-02  Jim Meyering  <meyering@redhat.com>
32459
32460         strftime: avoid compilation failure on Solaris 2.6
32461         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32462         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32463         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32464         be available.  Reported by Tom G. Christensen.  Details in
32465         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32466
32467 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32468             Bruno Haible  <bruno@clisp.org>
32469
32470         Speed up gnulib-tool by doing more string processing through shell
32471         built-ins.
32472         * gnulib-tool (fast_func_append): New variable.
32473         (func_remove_prefix, func_remove_suffix): New functions.
32474         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32475         (func_filter_filelist): New function.
32476         (func_get_dependencies): Use func_remove_suffix instead of sed.
32477         (func_get_automake_snippet): Use func_filter_filelist instead of a
32478         subshell and sed invocation.
32479
32480 2009-01-01  Bruno Haible  <bruno@clisp.org>
32481
32482         Fix a security bug.
32483         * gnulib-tool (func_import, import, update): Don't allow the characters
32484         '"', '$', '`', '\' in macro arguments that become part of commands that
32485         are evaluated.
32486
32487 2009-01-01  Bruno Haible  <bruno@clisp.org>
32488
32489         * gnulib-tool (func_reset_sigpipe): Add more comments.
32490
32491 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32492
32493         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32494         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32495         already know the answer.
32496
32497 2009-01-01  Jim Meyering  <meyering@redhat.com>
32498
32499         * lib/version-etc.c (version_etc_va): Update copyright year.
32500
32501 2008-12-30  Bruno Haible  <bruno@clisp.org>
32502
32503         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32504         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32505         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32506
32507 2008-12-29  Eric Blake  <ebb9@byu.net>
32508
32509         multiarch: avoid autoconf AC_REQUIRE bug
32510         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32511         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32512         2.63 and older.
32513         Reported by Bruno Haible, and analyzed in
32514         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32515
32516 2008-12-29  Bruno Haible  <bruno@clisp.org>
32517
32518         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32519         files in subdirectories correctly.
32520         Reported by Ralf Wildenhues.
32521
32522 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32523
32524         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32525         rather than 'join FILE -', for Solaris join.
32526
32527 2008-12-29  Bruno Haible  <bruno@clisp.org>
32528
32529         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32530         quoting.
32531         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32532         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32533         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32534         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32535         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32536         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32537         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32538         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32539         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32540         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32541         * m4/nls.m4 (AM_NLS): Likewise.
32542         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32543         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32544         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32545         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32546         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32547         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32548         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32549         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32550         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32551         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32552         * m4/xsize.m4 (gl_XSIZE): Likewise.
32553         Suggested by Jim Meyering.
32554
32555 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32556
32557         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32558         * lib/parse-duration.c: use a switch instead of cascading if's.
32559
32560 2008-12-29  Eric Blake  <ebb9@byu.net>
32561
32562         wchar.h: supply WEOF on Irix 5.3
32563         * lib/wchar.in.h (wint_t): Also supply WEOF.
32564         * lib/wctype.in.h (wint_t): Likewise.
32565         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32566         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32567         Reported by Tom G. Christensen.
32568
32569 2008-12-26  Bruno Haible  <bruno@clisp.org>
32570
32571         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32572         i486, i586, i686.
32573
32574 2008-12-26  Bruno Haible  <bruno@clisp.org>
32575
32576         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32577
32578 2008-12-26  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32581         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32582         not __STDC_CONSTANT_MACROS.
32583         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32584
32585 2008-12-25  Bruno Haible  <bruno@clisp.org>
32586
32587         Add support for universal builds to vasnprintf.
32588         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32589         universal builds, guess no.
32590         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32591         * modules/vasprintf-posix (Depends-on): Likewise.
32592         * modules/fprintf-posix (Depends-on): Likewise.
32593         * modules/vfprintf-posix (Depends-on): Likewise.
32594         * modules/snprintf-posix (Depends-on): Likewise.
32595         * modules/vsnprintf-posix (Depends-on): Likewise.
32596         * modules/sprintf-posix (Depends-on): Likewise.
32597         * modules/vsprintf-posix (Depends-on): Likewise.
32598         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32599         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32600         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32601         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32602         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32603         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32605
32606         Add support for universal builds to <inttypes.h>.
32607         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32608         _SCNu64_PREFIX): In Apple
32609         universal builds, define directly, using _LP64.
32610         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32611         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32612         * modules/inttypes (Depends-on): Add multiarch.
32613         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32614
32615         Add support for universal builds to <stdint.h>.
32616         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32617         universal builds, define directly, using _LP64.
32618         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32619         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32620         and size_t.
32621         * modules/stdint (Depends-on): Add multiarch.
32622         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32623
32624         New module 'multiarch'.
32625         * modules/multiarch: New file.
32626         * m4/multiarch.m4: New file.
32627
32628 2008-12-25  Bruno Haible  <bruno@clisp.org>
32629
32630         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32631
32632 2008-12-25  Bruno Haible  <bruno@clisp.org>
32633
32634         * modules/btowc (License): Relicense under LGPLv2+.
32635         * modules/mbsinit (License): Likewise.
32636         * modules/mbrtowc (License): Likewise.
32637         * modules/wcrtomb (License): Likewise.
32638         * modules/streq (License): Likewise.
32639         Reported by David Lutterkort <lutter@redhat.com>.
32640
32641 2008-12-23  Bruno Haible  <bruno@clisp.org>
32642
32643         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32644
32645 2008-12-23  Bruno Haible  <bruno@clisp.org>
32646
32647         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32648         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32649         GETADDRINFO_LIB, not in LIBS.
32650         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32651         * modules/canon-host (Link): Likewise.
32652         * NEWS: Mention the change.
32653         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32654         GETADDRINFO_LIB.
32655
32656 2008-12-22  Bruno Haible  <bruno@clisp.org>
32657
32658         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32659         * doc/posix-functions/iswalpha_l.texi: Likewise.
32660         * doc/posix-functions/iswblank_l.texi: Likewise.
32661         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32662         * doc/posix-functions/iswctype_l.texi: Likewise.
32663         * doc/posix-functions/iswdigit_l.texi: Likewise.
32664         * doc/posix-functions/iswgraph_l.texi: Likewise.
32665         * doc/posix-functions/iswlower_l.texi: Likewise.
32666         * doc/posix-functions/iswprint_l.texi: Likewise.
32667         * doc/posix-functions/iswpunct_l.texi: Likewise.
32668         * doc/posix-functions/iswspace_l.texi: Likewise.
32669         * doc/posix-functions/iswupper_l.texi: Likewise.
32670         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32671         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32672         * doc/posix-functions/open_wmemstream.texi: Likewise.
32673         * doc/posix-functions/swscanf.texi: Likewise.
32674         * doc/posix-functions/towctrans_l.texi: Likewise.
32675         * doc/posix-functions/towlower.texi: Likewise.
32676         * doc/posix-functions/towlower_l.texi: Likewise.
32677         * doc/posix-functions/towupper.texi: Likewise.
32678         * doc/posix-functions/towupper_l.texi: Likewise.
32679         * doc/posix-functions/vfwprintf.texi: Likewise.
32680         * doc/posix-functions/vfwscanf.texi: Likewise.
32681         * doc/posix-functions/vswscanf.texi: Likewise.
32682         * doc/posix-functions/vwprintf.texi: Likewise.
32683         * doc/posix-functions/vwscanf.texi: Likewise.
32684         * doc/posix-functions/wcpcpy.texi: Likewise.
32685         * doc/posix-functions/wcpncpy.texi: Likewise.
32686         * doc/posix-functions/wcscasecmp.texi: Likewise.
32687         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32688         * doc/posix-functions/wcscoll_l.texi: Likewise.
32689         * doc/posix-functions/wcsdup.texi: Likewise.
32690         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32691         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32692         * doc/posix-functions/wcsnlen.texi: Likewise.
32693         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32694         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32695         * doc/posix-functions/wctrans_l.texi: Likewise.
32696         * doc/posix-functions/wctype_l.texi: Likewise.
32697         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32698         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32699         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32700         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32701         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32702         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32703         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32704         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32705         * doc/glibc-functions/wcschrnul.texi: Likewise.
32706         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32707         * doc/glibc-functions/wcstod_l.texi: Likewise.
32708         * doc/glibc-functions/wcstof_l.texi: Likewise.
32709         * doc/glibc-functions/wcstol_l.texi: Likewise.
32710         * doc/glibc-functions/wcstold_l.texi: Likewise.
32711         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32712         * doc/glibc-functions/wcstoq.texi: Likewise.
32713         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32714         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32715         * doc/glibc-functions/wcstouq.texi: Likewise.
32716         * doc/glibc-functions/wmempcpy.texi: Likewise.
32717
32718 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32719             Eric Blake  <ebb9@byu.net>
32720             Paolo Bonzini  <bonzini@gnu.org>
32721             Bruno Haible  <bruno@clisp.org>
32722
32723         Make c-stack work on Haiku.
32724         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32725         (c_stack_action): Use SA_ONSTACK flag.
32726
32727 2008-12-22  Bruno Haible  <bruno@clisp.org>
32728
32729         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32730
32731 2008-12-22  Bruno Haible  <bruno@clisp.org>
32732
32733         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32734         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32735         being overridden.
32736         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32737         New macros.
32738         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32740         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32741         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32742
32743 2008-12-22  Bruno Haible  <bruno@clisp.org>
32744
32745         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32746         from test code.
32747
32748 2008-12-22  Eric Blake  <ebb9@byu.net>
32749
32750         Avoid gcc warnings on cygwin.
32751         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32752         Avoid unused variable.
32753         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32754         Likewise.
32755
32756 2008-12-22  Bruno Haible  <bruno@clisp.org>
32757
32758         Remove HAVE_MBRTOWC conditionals.
32759         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32760         (mbscasecmp): Assume mbrtowc function.
32761         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32762         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32763         * lib/mbschr.c: Include mbuiter.h unconditionally.
32764         (mbschr): Assume mbrtowc function.
32765         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32766         (mbscspn): Assume mbrtowc function.
32767         * lib/mbslen.c: Include mbuiter.h unconditionally.
32768         (mbslen): Assume mbrtowc function.
32769         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32770         (mbsncasecmp): Assume mbrtowc function.
32771         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32772         (mbsnlen): Assume mbrtowc function.
32773         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32774         (mbspbrk): Assume mbrtowc function.
32775         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32776         (mbspcasecmp): Assume mbrtowc function.
32777         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32778         (mbsrchr): Assume mbrtowc function.
32779         * lib/mbssep.c: Include mbuiter.h unconditionally.
32780         (mbssep): Assume mbrtowc function.
32781         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32782         (mbsspn): Assume mbrtowc function.
32783         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32784         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32785         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32786         (mbstok_r): Assume mbrtowc function.
32787         * lib/propername.c: Include mbuiter.h unconditionally.
32788         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32789         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32790         (trim2): Assume mbrtowc function.
32791         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32792         (mbsnwidth): Assume mbrtowc function.
32793         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32794         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32795         fallback definitions.
32796         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32797
32798 2008-12-22  Bruno Haible  <bruno@clisp.org>
32799
32800         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32801
32802 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32803
32804         * modules/regex: Request emulations for the mb*/wc* functions we need.
32805         * m4/regex.m4: Don't look for those functions here.
32806         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32807
32808 2008-12-22  Bruno Haible  <bruno@clisp.org>
32809
32810         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32811
32812 2008-12-21  Bruno Haible  <bruno@clisp.org>
32813
32814         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32815         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32816         (Include): Remove conditionalization.
32817         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32818         (Include): Remove conditionalization.
32819         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32820         (Include): Remove conditionalization.
32821         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32822         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32823         * NEWS: Mention the change.
32824         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32825         via Sergey Poznyakoff <gray@gnu.org.ua>.
32826
32827 2008-12-21  Bruno Haible  <bruno@clisp.org>
32828
32829         * MODULES.html.sh (Extended multibyte and wide character utilities
32830         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32831         wcrtomb, wcsrtombs.
32832         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32833         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32834         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32835         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32836
32837 2008-12-21  Bruno Haible  <bruno@clisp.org>
32838
32839         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32840
32841 2008-12-21  Bruno Haible  <bruno@clisp.org>
32842
32843         * modules/wcsnrtombs-tests: New file.
32844         * tests/test-wcsnrtombs1.sh: New file.
32845         * tests/test-wcsnrtombs2.sh: New file.
32846         * tests/test-wcsnrtombs3.sh: New file.
32847         * tests/test-wcsnrtombs4.sh: New file.
32848         * tests/test-wcsnrtombs.c: New file.
32849
32850         New module 'wcsnrtombs'.
32851         * lib/wchar.in.h (wcsnrtombs): New declaration.
32852         * lib/wcsnrtombs.c: New file.
32853         * lib/wcsrtombs-state.c: New file.
32854         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32855         (internal_state): Remove variable.
32856         * m4/wcsnrtombs.m4: New file.
32857         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32858         compilation units.
32859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32860         HAVE_WCSNRTOMBS.
32861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32862         HAVE_WCSNRTOMBS.
32863         * modules/wcsnrtombs: New file.
32864         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32865         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32866
32867 2008-12-21  Bruno Haible  <bruno@clisp.org>
32868
32869         * modules/wcsrtombs-tests: New file.
32870         * tests/test-wcsrtombs1.sh: New file.
32871         * tests/test-wcsrtombs2.sh: New file.
32872         * tests/test-wcsrtombs3.sh: New file.
32873         * tests/test-wcsrtombs4.sh: New file.
32874         * tests/test-wcsrtombs.c: New file.
32875
32876         New module 'wcsrtombs'.
32877         * lib/wchar.in.h (wcsrtombs): New declaration.
32878         * lib/wcsrtombs.c: New file.
32879         * m4/wcsrtombs.m4: New file.
32880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32881         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32883         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32884         * modules/wcsrtombs: New file.
32885         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32886         bugs.
32887
32888 2008-12-21  Bruno Haible  <bruno@clisp.org>
32889
32890         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32891         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32892         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32893         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32894         if not correct.
32895         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32896         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32897         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32898         m4/locale-zh.m4, m4/codeset.m4.
32899         * doc/posix-functions/wcrtomb.texi: Document the bug.
32900
32901 2008-12-21  Bruno Haible  <bruno@clisp.org>
32902
32903         Work around a btowc() bug on IRIX 6.5.
32904         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32905         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32906         REPLACE_WTOBC if not.
32907         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32908         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32909         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32910
32911 2008-12-21  Bruno Haible  <bruno@clisp.org>
32912
32913         * modules/wcrtomb-tests: New file.
32914         * tests/test-wcrtomb.sh: New file.
32915         * tests/test-wcrtomb.c: New file.
32916
32917         New module 'wcrtomb'.
32918         * lib/wchar.in.h (wcrtomb): New declaration.
32919         * lib/wcrtomb.c: New file.
32920         * m4/wcrtomb.m4: New file.
32921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32922         HAVE_WCRTOMB.
32923         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32924         HAVE_WCRTOMB.
32925         * modules/wcrtomb: New file.
32926         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32927
32928 2008-12-21  Bruno Haible  <bruno@clisp.org>
32929
32930         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32931         * modules/mbsrtowcs (Files): Likewise.
32932         * modules/wctob (Files): Likewise.
32933         * modules/c-strcase-tests (Files): Likewise.
32934         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32935         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32936         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32937         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32938         * modules/vasnprintf-posix-tests (Files): Likewise.
32939
32940 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32941
32942         gitlog-to-changelog: pass all command-line arguments to git-log
32943         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32944         it is sometimes convenient to filter the commits in various ways.
32945         gitlog-to-changelog only allows --since to specify a start date,
32946         but git-log itself supports many other filtering mechanisms.
32947         At the moment, I want to filter by branch name.  Rather than
32948         adding a --branch option to gitlog-to-changelog, it seems more
32949         flexible to simply pass all options directly to git-log and let
32950         git do the work.  Notice that this effectively makes --since a
32951         redundant option for gitlog-to-changelog, but removing it would
32952         require current usage to change since calls would then require
32953         an additional '--'.
32954
32955 2008-12-21  Bruno Haible  <bruno@clisp.org>
32956
32957         * modules/mbsnrtowcs-tests: New file.
32958         * tests/test-mbsnrtowcs1.sh: New file.
32959         * tests/test-mbsnrtowcs2.sh: New file.
32960         * tests/test-mbsnrtowcs3.sh: New file.
32961         * tests/test-mbsnrtowcs4.sh: New file.
32962         * tests/test-mbsnrtowcs.c: New file.
32963
32964         New module 'mbsnrtowcs'.
32965         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32966         * lib/mbsnrtowcs.c: New file.
32967         * lib/mbsrtowcs-state.c: New file.
32968         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32969         (internal_state): Remove variable.
32970         * m4/mbsnrtowcs.m4: New file.
32971         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32972         compilation units.
32973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32974         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32975         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32976         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32977         * modules/mbsnrtowcs: New file.
32978         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32979         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32980         portability problem.
32981
32982 2008-12-21  Bruno Haible  <bruno@clisp.org>
32983
32984         Work around mbsrtowcs bug.
32985         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32986         (gl_FUNC_MBSRTOWCS): Invoke it.
32987         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32988         m4/locale-zh.m4.
32989         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32990
32991 2008-12-21  Bruno Haible  <bruno@clisp.org>
32992
32993         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32994
32995 2008-12-21  Bruno Haible  <bruno@clisp.org>
32996
32997         Update doc for AIX.
32998         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32999         16-bit wchar_t type.
33000         * doc/posix-functions/btowc.texi: Likewise.
33001         * doc/posix-functions/fgetwc.texi: Likewise.
33002         * doc/posix-functions/fgetws.texi: Likewise.
33003         * doc/posix-functions/fputwc.texi: Likewise.
33004         * doc/posix-functions/fputws.texi: Likewise.
33005         * doc/posix-functions/fwide.texi: Likewise.
33006         * doc/posix-functions/fwprintf.texi: Likewise.
33007         * doc/posix-functions/fwscanf.texi: Likewise.
33008         * doc/posix-functions/getwchar.texi: Likewise.
33009         * doc/posix-functions/getwc.texi: Likewise.
33010         * doc/posix-functions/iswalnum.texi: Likewise.
33011         * doc/posix-functions/iswalpha.texi: Likewise.
33012         * doc/posix-functions/iswblank.texi: Likewise.
33013         * doc/posix-functions/iswcntrl.texi: Likewise.
33014         * doc/posix-functions/iswctype.texi: Likewise.
33015         * doc/posix-functions/iswdigit.texi: Likewise.
33016         * doc/posix-functions/iswgraph.texi: Likewise.
33017         * doc/posix-functions/iswlower.texi: Likewise.
33018         * doc/posix-functions/iswprint.texi: Likewise.
33019         * doc/posix-functions/iswpunct.texi: Likewise.
33020         * doc/posix-functions/iswspace.texi: Likewise.
33021         * doc/posix-functions/iswupper.texi: Likewise.
33022         * doc/posix-functions/iswxdigit.texi: Likewise.
33023         * doc/posix-functions/mbrtowc.texi: Likewise.
33024         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33025         * doc/posix-functions/mbstowcs.texi: Likewise.
33026         * doc/posix-functions/mbtowc.texi: Likewise.
33027         * doc/posix-functions/putwchar.texi: Likewise.
33028         * doc/posix-functions/putwc.texi: Likewise.
33029         * doc/posix-functions/swprintf.texi: Likewise.
33030         * doc/posix-functions/tolower.texi: Likewise.
33031         * doc/posix-functions/toupper.texi: Likewise.
33032         * doc/posix-functions/towctrans.texi: Likewise.
33033         * doc/posix-functions/ungetwc.texi: Likewise.
33034         * doc/posix-functions/vswprintf.texi: Likewise.
33035         * doc/posix-functions/wcrtomb.texi: Likewise.
33036         * doc/posix-functions/wcscat.texi: Likewise.
33037         * doc/posix-functions/wcschr.texi: Likewise.
33038         * doc/posix-functions/wcscmp.texi: Likewise.
33039         * doc/posix-functions/wcscoll.texi: Likewise.
33040         * doc/posix-functions/wcscpy.texi: Likewise.
33041         * doc/posix-functions/wcscspn.texi: Likewise.
33042         * doc/posix-functions/wcsftime.texi: Likewise.
33043         * doc/posix-functions/wcslen.texi: Likewise.
33044         * doc/posix-functions/wcsncat.texi: Likewise.
33045         * doc/posix-functions/wcsncmp.texi: Likewise.
33046         * doc/posix-functions/wcsncpy.texi: Likewise.
33047         * doc/posix-functions/wcspbrk.texi: Likewise.
33048         * doc/posix-functions/wcsrchr.texi: Likewise.
33049         * doc/posix-functions/wcsrtombs.texi: Likewise.
33050         * doc/posix-functions/wcsspn.texi: Likewise.
33051         * doc/posix-functions/wcsstr.texi: Likewise.
33052         * doc/posix-functions/wcstod.texi: Likewise.
33053         * doc/posix-functions/wcstof.texi: Likewise.
33054         * doc/posix-functions/wcstoimax.texi: Likewise.
33055         * doc/posix-functions/wcstok.texi: Likewise.
33056         * doc/posix-functions/wcstold.texi: Likewise.
33057         * doc/posix-functions/wcstoll.texi: Likewise.
33058         * doc/posix-functions/wcstol.texi: Likewise.
33059         * doc/posix-functions/wcstombs.texi: Likewise.
33060         * doc/posix-functions/wcstoull.texi: Likewise.
33061         * doc/posix-functions/wcstoul.texi: Likewise.
33062         * doc/posix-functions/wcstoumax.texi: Likewise.
33063         * doc/posix-functions/wcswidth.texi: Likewise.
33064         * doc/posix-functions/wcsxfrm.texi: Likewise.
33065         * doc/posix-functions/wctob.texi: Likewise.
33066         * doc/posix-functions/wctomb.texi: Likewise.
33067         * doc/posix-functions/wctrans.texi: Likewise.
33068         * doc/posix-functions/wctype.texi: Likewise.
33069         * doc/posix-functions/wcwidth.texi: Likewise.
33070         * doc/posix-functions/wmemchr.texi: Likewise.
33071         * doc/posix-functions/wmemcmp.texi: Likewise.
33072         * doc/posix-functions/wmemcpy.texi: Likewise.
33073         * doc/posix-functions/wmemmove.texi: Likewise.
33074         * doc/posix-functions/wmemset.texi: Likewise.
33075         * doc/posix-functions/wprintf.texi: Likewise.
33076         * doc/posix-functions/wscanf.texi: Likewise.
33077
33078 2008-12-21  Bruno Haible  <bruno@clisp.org>
33079
33080         Update doc for HP-UX 11.11.
33081         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33082         in HP-UX version 11.00, not in all versions of HP-UX 11.
33083         * doc/posix-functions/fwide.texi: Likewise.
33084         * doc/posix-functions/fwprintf.texi: Likewise.
33085         * doc/posix-functions/fwscanf.texi: Likewise.
33086         * doc/posix-functions/inet_ntop.texi: Likewise.
33087         * doc/posix-functions/inet_pton.texi: Likewise.
33088         * doc/posix-functions/mbrlen.texi: Likewise.
33089         * doc/posix-functions/mbrtowc.texi: Likewise.
33090         * doc/posix-functions/mbsinit.texi: Likewise.
33091         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33092         * doc/posix-functions/swprintf.texi: Likewise.
33093         * doc/posix-functions/swscanf.texi: Likewise.
33094         * doc/posix-functions/towctrans.texi: Likewise.
33095         * doc/posix-functions/vfwprintf.texi: Likewise.
33096         * doc/posix-functions/vswprintf.texi: Likewise.
33097         * doc/posix-functions/vwprintf.texi: Likewise.
33098         * doc/posix-functions/wcrtomb.texi: Likewise.
33099         * doc/posix-functions/wcsrtombs.texi: Likewise.
33100         * doc/posix-functions/wcsstr.texi: Likewise.
33101         * doc/posix-functions/wctob.texi: Likewise.
33102         * doc/posix-functions/wctrans.texi: Likewise.
33103         * doc/posix-functions/wmemchr.texi: Likewise.
33104         * doc/posix-functions/wmemcmp.texi: Likewise.
33105         * doc/posix-functions/wmemcpy.texi: Likewise.
33106         * doc/posix-functions/wmemmove.texi: Likewise.
33107         * doc/posix-functions/wmemset.texi: Likewise.
33108         * doc/posix-functions/wprintf.texi: Likewise.
33109         * doc/posix-functions/wscanf.texi: Likewise.
33110
33111 2008-12-21  Bruno Haible  <bruno@clisp.org>
33112
33113         Work around a portability problem.
33114         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33115         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33116
33117 2008-12-20  Bruno Haible  <bruno@clisp.org>
33118
33119         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33120         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33121         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33123         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33124
33125         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33126         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33127         set.
33128         (GNULIB_defined_mbstate_t): New macro.
33129         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33130         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33131         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33132         reuses the system's mbrtowc function but works around the bugs.
33133         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33134         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33135         macros.
33136         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33137         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33138         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33139         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33140         REPLACE_MBSINIT if mbsinit needs to be overridden.
33141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33142         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33143         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33144         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33145         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33146         m4/locale-zh.m4.
33147         (Depends): Add mbsinit.
33148         * modules/mbsinit (Depends): Add mbrtowc.
33149         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33150
33151 2008-12-20  Bruno Haible  <bruno@clisp.org>
33152
33153         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33154         so that there are no conversion errors on AIX.
33155         * tests/test-mbsrtowcs.c (main): LIkewise.
33156
33157 2008-12-20  Bruno Haible  <bruno@clisp.org>
33158
33159         Work around wctob bug on Solaris <= 9.
33160         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33161         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33163         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33164         * modules/wctob (Files): Add m4/locale-fr.m4.
33165         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33166
33167 2008-12-20  Bruno Haible  <bruno@clisp.org>
33168
33169         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33170         /dev/null.
33171         * tests/test-select-in.sh: Likewise.
33172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33173
33174 2008-12-20  Bruno Haible  <bruno@clisp.org>
33175
33176         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33177         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33178         Cygwin 1.5.x.
33179
33180 2008-12-20  Bruno Haible  <bruno@clisp.org>
33181
33182         Ensure mbstate_t is defined on HP-UX 11.11.
33183         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33184         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33185         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33186         AC_USE_SYSTEM_EXTENSIONS.
33187         * modules/fnmatch (Depends-on): Add extensions.
33188         * modules/mbrlen (Depends-on): Likewise.
33189         * modules/mbrtowc (Depends-on): Likewise.
33190         * modules/mbsinit (Depends-on): Likewise.
33191         * modules/mbsrtowcs (Depends-on): Likewise.
33192         * modules/mbswidth (Depends-on): Likewise.
33193         * modules/quotearg (Depends-on): Likewise.
33194         * modules/strftime (Depends-on): Likewise.
33195
33196 2008-12-20  Bruno Haible  <bruno@clisp.org>
33197
33198         Ensure wctob is declared on IRIX 6.5.
33199         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33200         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33201         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33203         of HAVE_WCTOB.
33204         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33205         HAVE_WCTOB.
33206         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33207
33208 2008-12-19  Bruno Haible  <bruno@clisp.org>
33209
33210         * modules/mbsrtowcs-tests: New file.
33211         * tests/test-mbsrtowcs1.sh: New file.
33212         * tests/test-mbsrtowcs2.sh: New file.
33213         * tests/test-mbsrtowcs3.sh: New file.
33214         * tests/test-mbsrtowcs4.sh: New file.
33215         * tests/test-mbsrtowcs.c: New file.
33216
33217         New module 'mbsrtowcs'.
33218         * lib/wchar.in.h (mbsrtowcs): New declaration.
33219         * lib/mbsrtowcs.c: New file.
33220         * m4/mbsrtowcs.m4: New file.
33221         * modules/mbsrtowcs: New file.
33222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33223         HAVE_MBSRTOWCS.
33224         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33225         HAVE_MBSRTOWCS.
33226         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33227
33228 2008-12-19  Bruno Haible  <bruno@clisp.org>
33229
33230         New module 'mbrlen'.
33231         * lib/wchar.in.h (mbrlen): New declaration.
33232         * lib/mbrlen.c: New file.
33233         * m4/mbrlen.m4: New file.
33234         * modules/mbrlen: New file.
33235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33236         HAVE_MBRLEN.
33237         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33238         HAVE_MBRLEN.
33239         * doc/posix-functions/mbrlen.texi: Document the new module.
33240
33241 2008-12-19  Bruno Haible  <bruno@clisp.org>
33242
33243         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33244         * modules/mbrtowc (Depends-on): Add verify.
33245         Suggested by Paul Eggert.
33246
33247 2008-12-18  Bruno Haible  <bruno@clisp.org>
33248
33249         * modules/mbsinit-tests: New file.
33250         * tests/test-mbsinit.sh: New file.
33251         * tests/test-mbsinit.c: New file.
33252
33253 2008-12-18  Bruno Haible  <bruno@clisp.org>
33254
33255         * modules/mbrtowc-tests: New file.
33256         * tests/test-mbrtowc1.sh: New file.
33257         * tests/test-mbrtowc2.sh: New file.
33258         * tests/test-mbrtowc3.sh: New file.
33259         * tests/test-mbrtowc4.sh: New file.
33260         * tests/test-mbrtowc.c: New file.
33261
33262         New module 'mbrtowc'.
33263         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33264         mbsinit and mbrtowc.
33265         (mbrtowc): New declaration.
33266         * lib/mbrtowc.c: New file.
33267         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33268         * modules/mbrtowc: New file.
33269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33270         HAVE_MBRTOWC.
33271         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33272         HAVE_MBRTOWC.
33273         * doc/posix-functions/mbrtowc.texi: Document the new module.
33274
33275 2008-12-18  Bruno Haible  <bruno@clisp.org>
33276
33277         New module 'wctob'.
33278         * lib/wchar.in.h (wctob): New declaration.
33279         * lib/wctob.c: New file.
33280         * m4/wctob.m4: New file.
33281         * modules/wctob: New file.
33282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33283         HAVE_WCTOB.
33284         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33285         * doc/posix-functions/wctob.texi: Document the new module.
33286
33287 2008-12-18  Bruno Haible  <bruno@clisp.org>
33288
33289         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33290         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33291
33292 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33293
33294         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33295         G. Christensen" <tgc@jupiterrise.com>.
33296
33297         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33298         G. Christensen" <tgc@jupiterrise.com>.
33299
33300         * lib/flock.c: Need to include string.h.  Reported by "Tom
33301         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33302         <ebb9@byu.net>.
33303
33304 2008-12-18  Bruno Haible  <bruno@clisp.org>
33305
33306         * m4/locale-ja.m4: New file, from GNU gettext.
33307
33308 2008-12-17  Bruno Haible  <bruno@clisp.org>
33309
33310         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33311         Suggested by Eric Blake.
33312
33313 2008-12-17  Bruno Haible  <bruno@clisp.org>
33314
33315         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33316
33317 2008-12-17  Bruno Haible  <bruno@clisp.org>
33318
33319         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33320         * modules/mbsinit (Depends-on): Add verify.
33321         Suggested by Paul Eggert.
33322
33323 2008-12-17  Bruno Haible  <bruno@clisp.org>
33324
33325         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33326         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33327         gl_FUNC_MBRTOWC.
33328         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33329         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33330         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33331         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33332         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33333         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33334         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33335         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33336         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33337         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33338         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33339         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33340         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33341         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33342         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33343         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33344         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33345         * modules/trim (configure.ac): Likewise.
33346
33347 2008-12-17  Bruno Haible  <bruno@clisp.org>
33348
33349         * modules/btowc-tests: New file.
33350         * tests/test-btowc1.sh: New file.
33351         * tests/test-btowc2.sh: New file.
33352         * tests/test-btowc.c: New file.
33353
33354         New module 'btowc'.
33355         * lib/wchar.in.h (btowc): New declaration.
33356         * lib/btowc.c: New file.
33357         * m4/btowc.m4: New file.
33358         * modules/btowc: New file.
33359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33360         HAVE_BTOWC.
33361         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33362         * doc/posix-functions/btowc.texi: Document the new module.
33363
33364 2008-12-17  Bruno Haible  <bruno@clisp.org>
33365
33366         New module 'mbsinit'.
33367         * lib/wchar.in.h (mbsinit): New declaration.
33368         * lib/mbsinit.c: New file.
33369         * m4/mbsinit.m4: New file.
33370         * modules/mbsinit: New file.
33371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33372         HAVE_MBSINIT.
33373         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33374         HAVE_MBSINIT.
33375         * doc/posix-functions/mbsinit.texi: Document the new module.
33376
33377 2008-12-16  Bruno Haible  <bruno@clisp.org>
33378
33379         * lib/unistd.in.h: Add comment.
33380         * tests/test-environ.c: Don't include <stdlib.h>.
33381
33382 2008-12-16  Bruno Haible  <bruno@clisp.org>
33383
33384         * lib/parse-duration.h (parse_duration): Document return value
33385         convention.
33386         * lib/parse-duration.c: Include specification header first. Add
33387         comments.
33388         (_): Remove macro.
33389         (parse_year_month_day, parse_hour_minute_second): Move side effects
33390         outside of strchr call.
33391         (parse_non_iso8601): Move side effects outside of isspace call.
33392         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33393         call.
33394
33395 2008-12-16  Bruno Haible  <bruno@clisp.org>
33396
33397         * tests/test-parse-duration.sh: Produce no output when the test
33398         succeeds.
33399
33400 2008-12-16  Bruno Haible  <bruno@clisp.org>
33401
33402         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33403         expressions.
33404
33405 2008-12-15  Bruno Haible  <bruno@clisp.org>
33406
33407         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33408         * doc/glibc-functions/flistxattr.texi: Likewise.
33409         * doc/glibc-functions/fopencookie.texi: Likewise.
33410         * doc/glibc-functions/fremovexattr.texi: Likewise.
33411         * doc/glibc-functions/fsetxattr.texi: Likewise.
33412         * doc/glibc-functions/getxattr.texi: Likewise.
33413         * doc/glibc-functions/lgetxattr.texi: Likewise.
33414         * doc/glibc-functions/listxattr.texi: Likewise.
33415         * doc/glibc-functions/llistxattr.texi: Likewise.
33416         * doc/glibc-functions/lremovexattr.texi: Likewise.
33417         * doc/glibc-functions/lsetxattr.texi: Likewise.
33418         * doc/glibc-functions/removexattr.texi: Likewise.
33419         * doc/glibc-functions/setxattr.texi: Likewise.
33420         * doc/posix-functions/open_memstream.texi: Likewise.
33421
33422 2008-12-15  Eric Blake  <ebb9@byu.net>
33423
33424         Update doc for cygwin 1.7.
33425         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33426         functions.
33427         * doc/posix-functions/fchmodat.texi: Likewise.
33428         * doc/posix-functions/fchownat.texi: Likewise.
33429         * doc/posix-functions/fdopendir.texi: Likewise.
33430         * doc/posix-functions/fmemopen.texi: Likewise.
33431         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33432         * doc/posix-functions/fstatat.texi: Likewise.
33433         * doc/posix-functions/futimens.texi: Likewise.
33434         * doc/posix-functions/gai_strerror.texi: Likewise.
33435         * doc/posix-functions/getaddrinfo.texi: Likewise.
33436         * doc/posix-functions/getnameinfo.texi: Likewise.
33437         * doc/posix-functions/if_freenameindex.texi: Likewise.
33438         * doc/posix-functions/if_indextoname.texi: Likewise.
33439         * doc/posix-functions/if_nameindex.texi: Likewise.
33440         * doc/posix-functions/if_nametoindex.texi: Likewise.
33441         * doc/posix-functions/insque.texi: Likewise.
33442         * doc/posix-functions/linkat.texi: Likewise.
33443         * doc/posix-functions/llrint.texi: Likewise.
33444         * doc/posix-functions/llrintf.texi: Likewise.
33445         * doc/posix-functions/llrintl.texi: Likewise.
33446         * doc/posix-functions/lockf.texi: Likewise.
33447         * doc/posix-functions/lrintl.texi: Likewise.
33448         * doc/posix-functions/mkdirat.texi: Likewise.
33449         * doc/posix-functions/mkfifoat.texi: Likewise.
33450         * doc/posix-functions/mknodat.texi: Likewise.
33451         * doc/posix-functions/mq_close.texi: Likewise.
33452         * doc/posix-functions/mq_getattr.texi: Likewise.
33453         * doc/posix-functions/mq_notify.texi: Likewise.
33454         * doc/posix-functions/mq_open.texi: Likewise.
33455         * doc/posix-functions/mq_receive.texi: Likewise.
33456         * doc/posix-functions/mq_send.texi: Likewise.
33457         * doc/posix-functions/mq_setattr.texi: Likewise.
33458         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33459         * doc/posix-functions/mq_timedsend.texi: Likewise.
33460         * doc/posix-functions/mq_unlink.texi: Likewise.
33461         * doc/posix-functions/open_memstream.texi: Likewise.
33462         * doc/posix-functions/openat.texi: Likewise.
33463         * doc/posix-functions/posix_fadvise.texi: Likewise.
33464         * doc/posix-functions/posix_fallocate.texi: Likewise.
33465         * doc/posix-functions/posix_madvise.texi: Likewise.
33466         * doc/posix-functions/posix_memalign.texi: Likewise.
33467         * doc/posix-functions/posix_openpt.texi: Likewise.
33468         * doc/posix-functions/readlinkat.texi: Likewise.
33469         * doc/posix-functions/remque.texi: Likewise.
33470         * doc/posix-functions/renameat.texi: Likewise.
33471         * doc/posix-functions/rintl.texi: Likewise.
33472         * doc/posix-functions/sem_unlink.texi: Likewise.
33473         * doc/posix-functions/shm_open.texi: Likewise.
33474         * doc/posix-functions/shm_unlink.texi: Likewise.
33475         * doc/posix-functions/signgam.texi: Likewise.
33476         * doc/posix-functions/sigset.texi: Likewise.
33477         * doc/posix-functions/stpcpy.texi: Likewise.
33478         * doc/posix-functions/stpncpy.texi: Likewise.
33479         * doc/posix-functions/strerror.texi: Likewise.
33480         * doc/posix-functions/strtod.texi: Likewise.
33481         * doc/posix-functions/symlinkat.texi: Likewise.
33482         * doc/posix-functions/unlinkat.texi: Likewise.
33483         * doc/posix-functions/utimensat.texi: Likewise.
33484         * doc/glibc-functions/bindresvport.texi: Likewise.
33485         * doc/glibc-functions/dn_expand.texi: Likewise.
33486         * doc/glibc-functions/exp10.texi: Likewise.
33487         * doc/glibc-functions/exp10f.texi: Likewise.
33488         * doc/glibc-functions/fgetxattr.texi: Likewise.
33489         * doc/glibc-functions/flistxattr.texi: Likewise.
33490         * doc/glibc-functions/fopencookie.texi: Likewise.
33491         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33492         * doc/glibc-functions/fremovexattr.texi: Likewise.
33493         * doc/glibc-functions/fsetxattr.texi: Likewise.
33494         * doc/glibc-functions/getifaddrs.texi: Likewise.
33495         * doc/glibc-functions/getxattr.texi: Likewise.
33496         * doc/glibc-functions/lgetxattr.texi: Likewise.
33497         * doc/glibc-functions/listxattr.texi: Likewise.
33498         * doc/glibc-functions/llistxattr.texi: Likewise.
33499         * doc/glibc-functions/lremovexattr.texi: Likewise.
33500         * doc/glibc-functions/lsetxattr.texi: Likewise.
33501         * doc/glibc-functions/pow10.texi: Likewise.
33502         * doc/glibc-functions/pow10f.texi: Likewise.
33503         * doc/glibc-functions/rcmd_af.texi: Likewise.
33504         * doc/glibc-functions/removexattr.texi: Likewise.
33505         * doc/glibc-functions/res_init.texi: Likewise.
33506         * doc/glibc-functions/res_mkquery.texi: Likewise.
33507         * doc/glibc-functions/res_query.texi: Likewise.
33508         * doc/glibc-functions/res_querydomain.texi: Likewise.
33509         * doc/glibc-functions/res_send.texi: Likewise.
33510         * doc/glibc-functions/rresvport_af.texi: Likewise.
33511         * doc/glibc-functions/setxattr.texi: Likewise.
33512         * doc/glibc-functions/strcasestr.texi: Likewise.
33513
33514 2008-12-15  Bruno Haible  <bruno@clisp.org>
33515
33516         Fix compilation error on OSF/1 4.0.
33517         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33518         <sys/time.h>, simply delegate to the system header.
33519         Reported by Daniel Richard G. <oss@teragram.com>.
33520
33521 2008-12-15  Bruno Haible  <bruno@clisp.org>
33522
33523         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33524         * doc/posix-functions/fchmodat.texi: Likewise.
33525         * doc/posix-functions/fchownat.texi: Likewise.
33526         * doc/posix-functions/fdopendir.texi: Likewise.
33527         * doc/posix-functions/fstatat.texi: Likewise.
33528         * doc/posix-functions/mkdirat.texi: Likewise.
33529         * doc/posix-functions/unlinkat.texi: Likewise.
33530
33531 2008-12-14  Bruno Haible  <bruno@clisp.org>
33532
33533         Update doc for POSIX:2008.
33534         * doc/posix-functions/faccessat.texi: New file.
33535         * doc/posix-functions/fchmodat.texi: New file.
33536         * doc/posix-functions/fchownat.texi: New file.
33537         * doc/posix-functions/fdopendir.texi: New file.
33538         * doc/posix-functions/fstatat.texi: New file.
33539         * doc/posix-functions/futimens.texi: New file.
33540         * doc/posix-functions/linkat.texi: New file.
33541         * doc/posix-functions/mkdirat.texi: New file.
33542         * doc/posix-functions/mkfifoat.texi: New file.
33543         * doc/posix-functions/mknodat.texi: New file.
33544         * doc/posix-functions/open_wmemstream.texi: New file.
33545         * doc/posix-functions/openat.texi: New file.
33546         * doc/posix-functions/psiginfo.texi: New file.
33547         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33548         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33549         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33550         * doc/posix-functions/readlinkat.texi: New file.
33551         * doc/posix-functions/renameat.texi: New file.
33552         * doc/posix-functions/strerror_l.texi: New file.
33553         * doc/posix-functions/symlinkat.texi: New file.
33554         * doc/posix-functions/unlinkat.texi: New file.
33555         * doc/posix-functions/utimensat.texi: New file.
33556         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33557
33558 2008-12-14  Bruno Haible  <bruno@clisp.org>
33559
33560         Update doc for POSIX:2008.
33561         * doc/posix-functions/alphasort.texi: Renamed from
33562         doc/glibc-functions/alphasort.texi.
33563         * doc/posix-functions/dirfd.texi: Renamed from
33564         doc/glibc-functions/dirfd.texi.
33565         * doc/posix-functions/dprintf.texi: Renamed from
33566         doc/glibc-functions/dprintf.texi.
33567         * doc/posix-functions/duplocale.texi: Renamed from
33568         doc/glibc-functions/duplocale.texi.
33569         * doc/posix-functions/fexecve.texi: Renamed from
33570         doc/glibc-functions/fexecve.texi.
33571         * doc/posix-functions/fmemopen.texi: Renamed from
33572         doc/glibc-functions/fmemopen.texi.
33573         * doc/posix-functions/freelocale.texi: Renamed from
33574         doc/glibc-functions/freelocale.texi.
33575         * doc/posix-functions/getdate_err.texi: Renamed from
33576         doc/glibc-functions/getdate_err.texi.
33577         * doc/posix-functions/isalnum_l.texi: Renamed from
33578         doc/glibc-functions/isalnum_l.texi.
33579         * doc/posix-functions/isalpha_l.texi: Renamed from
33580         doc/glibc-functions/isalpha_l.texi.
33581         * doc/posix-functions/isblank_l.texi: Renamed from
33582         doc/glibc-functions/isblank_l.texi.
33583         * doc/posix-functions/iscntrl_l.texi: Renamed from
33584         doc/glibc-functions/iscntrl_l.texi.
33585         * doc/posix-functions/isdigit_l.texi: Renamed from
33586         doc/glibc-functions/isdigit_l.texi.
33587         * doc/posix-functions/isgraph_l.texi: Renamed from
33588         doc/glibc-functions/isgraph_l.texi.
33589         * doc/posix-functions/islower_l.texi: Renamed from
33590         doc/glibc-functions/islower_l.texi.
33591         * doc/posix-functions/isprint_l.texi: Renamed from
33592         doc/glibc-functions/isprint_l.texi.
33593         * doc/posix-functions/ispunct_l.texi: Renamed from
33594         doc/glibc-functions/ispunct_l.texi.
33595         * doc/posix-functions/isspace_l.texi: Renamed from
33596         doc/glibc-functions/isspace_l.texi.
33597         * doc/posix-functions/isupper_l.texi: Renamed from
33598         doc/glibc-functions/isupper_l.texi.
33599         * doc/posix-functions/iswalnum_l.texi: Renamed from
33600         doc/glibc-functions/iswalnum_l.texi.
33601         * doc/posix-functions/iswalpha_l.texi: Renamed from
33602         doc/glibc-functions/iswalpha_l.texi.
33603         * doc/posix-functions/iswblank_l.texi: Renamed from
33604         doc/glibc-functions/iswblank_l.texi.
33605         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33606         doc/glibc-functions/iswcntrl_l.texi.
33607         * doc/posix-functions/iswctype_l.texi: Renamed from
33608         doc/glibc-functions/iswctype_l.texi.
33609         * doc/posix-functions/iswdigit_l.texi: Renamed from
33610         doc/glibc-functions/iswdigit_l.texi.
33611         * doc/posix-functions/iswgraph_l.texi: Renamed from
33612         doc/glibc-functions/iswgraph_l.texi.
33613         * doc/posix-functions/iswlower_l.texi: Renamed from
33614         doc/glibc-functions/iswlower_l.texi.
33615         * doc/posix-functions/iswprint_l.texi: Renamed from
33616         doc/glibc-functions/iswprint_l.texi.
33617         * doc/posix-functions/iswpunct_l.texi: Renamed from
33618         doc/glibc-functions/iswpunct_l.texi.
33619         * doc/posix-functions/iswspace_l.texi: Renamed from
33620         doc/glibc-functions/iswspace_l.texi.
33621         * doc/posix-functions/iswupper_l.texi: Renamed from
33622         doc/glibc-functions/iswupper_l.texi.
33623         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33624         doc/glibc-functions/iswxdigit_l.texi.
33625         * doc/posix-functions/isxdigit_l.texi: Renamed from
33626         doc/glibc-functions/isxdigit_l.texi.
33627         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33628         doc/glibc-functions/mbsnrtowcs.texi.
33629         * doc/posix-functions/mkdtemp.texi: Renamed from
33630         doc/glibc-functions/mkdtemp.texi.
33631         * doc/posix-functions/newlocale.texi: Renamed from
33632         doc/glibc-functions/newlocale.texi.
33633         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33634         doc/glibc-functions/nl_langinfo_l.texi.
33635         * doc/posix-functions/open_memstream.texi: Renamed from
33636         doc/glibc-functions/open_memstream.texi.
33637         * doc/posix-functions/opterr.texi: Renamed from
33638         doc/glibc-functions/opterr.texi.
33639         * doc/posix-functions/optind.texi: Renamed from
33640         doc/glibc-functions/optind.texi.
33641         * doc/posix-functions/optopt.texi: Renamed from
33642         doc/glibc-functions/optopt.texi.
33643         * doc/posix-functions/psignal.texi: Renamed from
33644         doc/glibc-functions/psignal.texi.
33645         * doc/posix-functions/scandir.texi: Renamed from
33646         doc/glibc-functions/scandir.texi.
33647         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33648         doc/glibc-functions/sched_get_priority_min.texi.
33649         * doc/posix-functions/signgam.texi: Renamed from
33650         doc/glibc-functions/signgam.texi.
33651         * doc/posix-functions/stpcpy.texi: Renamed from
33652         doc/glibc-functions/stpcpy.texi.
33653         * doc/posix-functions/stpncpy.texi: Renamed from
33654         doc/glibc-functions/stpncpy.texi.
33655         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33656         doc/glibc-functions/strcasecmp_l.texi.
33657         * doc/posix-functions/strcoll_l.texi: Renamed from
33658         doc/glibc-functions/strcoll_l.texi.
33659         * doc/posix-functions/strfmon_l.texi: Renamed from
33660         doc/glibc-functions/strfmon_l.texi.
33661         * doc/posix-functions/strftime_l.texi: Renamed from
33662         doc/glibc-functions/strftime_l.texi.
33663         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33664         doc/glibc-functions/strncasecmp_l.texi.
33665         * doc/posix-functions/strndup.texi: Renamed from
33666         doc/glibc-functions/strndup.texi.
33667         * doc/posix-functions/strnlen.texi: Renamed from
33668         doc/glibc-functions/strnlen.texi.
33669         * doc/posix-functions/strsignal.texi: Renamed from
33670         doc/glibc-functions/strsignal.texi.
33671         * doc/posix-functions/strxfrm_l.texi: Renamed from
33672         doc/glibc-functions/strxfrm_l.texi.
33673         * doc/posix-functions/timer_gettime.texi: Renamed from
33674         doc/glibc-functions/timer_gettime.texi.
33675         * doc/posix-functions/tolower_l.texi: Renamed from
33676         doc/glibc-functions/tolower_l.texi.
33677         * doc/posix-functions/toupper_l.texi: Renamed from
33678         doc/glibc-functions/toupper_l.texi.
33679         * doc/posix-functions/towctrans_l.texi: Renamed from
33680         doc/glibc-functions/towctrans_l.texi.
33681         * doc/posix-functions/towlower_l.texi: Renamed from
33682         doc/glibc-functions/towlower_l.texi.
33683         * doc/posix-functions/towupper_l.texi: Renamed from
33684         doc/glibc-functions/towupper_l.texi.
33685         * doc/posix-functions/uselocale.texi: Renamed from
33686         doc/glibc-functions/uselocale.texi.
33687         * doc/posix-functions/vdprintf.texi: Renamed from
33688         doc/glibc-functions/vdprintf.texi.
33689         * doc/posix-functions/wcpcpy.texi:
33690         Renamed from doc/glibc-functions/wcpcpy.texi.
33691         * doc/posix-functions/wcpncpy.texi: Renamed from
33692         doc/glibc-functions/wcpncpy.texi.
33693         * doc/posix-functions/wcscasecmp.texi: Renamed from
33694         doc/glibc-functions/wcscasecmp.texi.
33695         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33696         doc/glibc-functions/wcscasecmp_l.texi.
33697         * doc/posix-functions/wcscoll_l.texi: Renamed from
33698         doc/glibc-functions/wcscoll_l.texi.
33699         * doc/posix-functions/wcsdup.texi: Renamed from
33700         doc/glibc-functions/wcsdup.texi.
33701         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33702         doc/glibc-functions/wcsncasecmp.texi.
33703         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33704         doc/glibc-functions/wcsncasecmp_l.texi.
33705         * doc/posix-functions/wcsnlen.texi: Renamed from
33706         doc/glibc-functions/wcsnlen.texi.
33707         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33708         doc/glibc-functions/wcsnrtombs.texi.
33709         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33710         doc/glibc-functions/wcsxfrm_l.texi.
33711         * doc/posix-functions/wctrans_l.texi: Renamed from
33712         doc/glibc-functions/wctrans_l.texi.
33713         * doc/posix-functions/wctype_l.texi: Renamed from
33714         doc/glibc-functions/wctype_l.texi.
33715         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33716         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33717         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33718         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33719         these subsections.
33720         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33721         Remove sections.
33722
33723 2008-12-14  Bruno Haible  <bruno@clisp.org>
33724
33725         Update doc for POSIX:2008.
33726         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33727
33728 2008-12-14  Bruno Haible  <bruno@clisp.org>
33729
33730         Update doc for POSIX:2008.
33731         * doc/pastposix-functions/bcmp.texi: Renamed from
33732         doc/posix-functions/bcmp.texi.
33733         * doc/pastposix-functions/bcopy.texi: Renamed from
33734         doc/posix-functions/bcopy.texi.
33735         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33736         doc/posix-functions/bsd_signal.texi.
33737         * doc/pastposix-functions/bzero.texi: Renamed from
33738         doc/posix-functions/bzero.texi.
33739         * doc/pastposix-functions/ecvt.texi: Renamed from
33740         doc/posix-functions/ecvt.texi.
33741         * doc/pastposix-functions/fcvt.texi: Renamed from
33742         doc/posix-functions/fcvt.texi.
33743         * doc/pastposix-functions/ftime.texi: Renamed from
33744         doc/posix-functions/ftime.texi.
33745         * doc/pastposix-functions/gcvt.texi: Renamed from
33746         doc/posix-functions/gcvt.texi.
33747         * doc/pastposix-functions/getcontext.texi: Renamed from
33748         doc/posix-functions/getcontext.texi.
33749         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33750         doc/posix-functions/gethostbyaddr.texi.
33751         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33752         doc/posix-functions/gethostbyname.texi.
33753         * doc/pastposix-functions/getwd.texi: Renamed from
33754         doc/posix-functions/getwd.texi.
33755         * doc/pastposix-functions/h_errno.texi: Renamed from
33756         doc/posix-functions/h_errno.texi.
33757         * doc/pastposix-functions/index.texi: Renamed from
33758         doc/posix-functions/index.texi.
33759         * doc/pastposix-functions/makecontext.texi: Renamed from
33760         doc/posix-functions/makecontext.texi.
33761         * doc/pastposix-functions/mktemp.texi: Renamed from
33762         doc/posix-functions/mktemp.texi.
33763         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33764         doc/posix-functions/pthread_attr_getstackaddr.texi.
33765         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33766         doc/posix-functions/pthread_attr_setstackaddr.texi.
33767         * doc/pastposix-functions/rindex.texi: Renamed from
33768         doc/posix-functions/rindex.texi.
33769         * doc/pastposix-functions/scalb.texi: Renamed from
33770         doc/posix-functions/scalb.texi.
33771         * doc/pastposix-functions/setcontext.texi: Renamed from
33772         doc/posix-functions/setcontext.texi.
33773         * doc/pastposix-functions/swapcontext.texi: Renamed from
33774         doc/posix-functions/swapcontext.texi.
33775         * doc/pastposix-functions/ualarm.texi: Renamed from
33776         doc/posix-functions/ualarm.texi.
33777         * doc/pastposix-functions/usleep.texi: Renamed from
33778         doc/posix-functions/usleep.texi.
33779         * doc/pastposix-functions/vfork.texi: Renamed from
33780         doc/posix-functions/vfork.texi.
33781         * doc/pastposix-functions/wcswcs.texi: Renamed from
33782         doc/posix-functions/wcswcs.texi.
33783         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33784         (Function Substitutes): Update.
33785
33786 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33787
33788         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33789         m4/strerror.m4.
33790
33791 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33792             Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33795
33796 2008-12-13  Bruno Haible  <bruno@clisp.org>
33797
33798         * modules/strtoull (Depends-on): Remove unistd.
33799
33800 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33801
33802         * modules/strtoull (Depends-on): Add stdlib.
33803
33804 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33805
33806         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33807
33808 2008-12-10  Jim Meyering  <meyering@redhat.com>
33809
33810         gl_ASSERT: don't say assertions are disabled when they're not
33811         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33812         "checking whether to enable assertions... no", when they are in
33813         fact enabled.  This is solely a bug in the output of configure.
33814         In spite of saying "no", NDEBUG was not defined in that case.
33815         Also, as noted by Eric Blake, leave assertions enabled upon
33816         --enable-assert=INVALID.
33817
33818 2008-12-10  Bruno Haible  <bruno@clisp.org>
33819
33820         Change MODULES.html to refer to POSIX:2008 where possible.
33821         * MODULES.html.sh (POSIX2008_URL): New variable.
33822         (posix_headers): Remove sys/timeb, ucontext.
33823         (posix2001_headers): New variable.
33824         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33825         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33826         index, makecontext, mktemp, pthread_attr_getstackaddr,
33827         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33828         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33829         (posix2001_functions): New variable.
33830         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33831         otherwise.
33832
33833 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33834
33835         add missing include to parse-duration.c
33836         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33837         * modules/parse-duration (Depends-on): Add xalloc.
33838
33839         fix sed script reading maint.mk
33840         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33841         (syntax-check-rules): Use it.
33842
33843 2008-12-09  Bruno Haible  <bruno@clisp.org>
33844
33845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33846         MacOS X 10.4/PowerPC.
33847         Reported by Simon Josefsson.
33848
33849 2008-12-08  Jim Meyering  <meyering@redhat.com>
33850
33851         work around mingw's lack of some S_IF definitions
33852         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33853         Reported by Simon Josefsson.
33854
33855 2008-12-08  Bruno Haible  <bruno@clisp.org>
33856
33857         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33858         applied to variables. Needed on MacOS X 10.4/PowerPC.
33859         Reported by Simon Josefsson.
33860
33861 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33862         and Eric Blake  <ebb9@byu.net>
33863
33864         assert: honor --enable-assert
33865         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33866         order to honor --enable-assert, rather than treating it as a
33867         synonym for --disable-assert.
33868
33869 2008-12-08  Jim Meyering  <meyering@redhat.com>
33870
33871         * lib/posixtm.c: Remove now-useless declaration of mktime.
33872
33873         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33874
33875 2008-12-07  Bruno Haible  <bruno@clisp.org>
33876
33877         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33878         test_once): Mark functions as static.
33879         * tests/test-tls.c (test_tls): Likewise.
33880
33881 2008-12-07  Bruno Haible  <bruno@clisp.org>
33882
33883         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33884         iconv_register_autodetect.
33885
33886 2008-12-07  Jim Meyering  <meyering@redhat.com>
33887
33888         posixtm.c: avoid a warning
33889         * lib/posixtm.c (posixtime): Don't initialize tm0.
33890         It's no longer needed to placate gcc4's -Wuninitialized,
33891         and the attempt to placate would elicit a new warning.
33892
33893         unicodeio.c: mark unused parameters
33894         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33895         (fallback_failure_callback): Likewise.
33896
33897 2008-12-07  Bruno Haible  <bruno@clisp.org>
33898
33899         * gnulib-tool (func_create_testdir): When building the tests
33900         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33901         Reported by Simon Josefsson.
33902
33903 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33904
33905         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33906
33907 2008-12-06  Bruno Haible  <bruno@clisp.org>
33908
33909         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33910         Suggested by Eric Blake.
33911
33912 2008-12-06  Bruno Haible  <bruno@clisp.org>
33913
33914         Fix a c-stack test failure on MacOS X.
33915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33916         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33917         handler for SIGBUS as well.
33918         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33919         install a signal handler for SIGBUS as well.
33920         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33921
33922 2008-12-06  Bruno Haible  <bruno@clisp.org>
33923
33924         Advocacy documentation.
33925         * doc/gnulib-intro.texi (Benefits): New section.
33926         * doc/gnulib.texi: Update.
33927
33928 2008-12-06  Bruno Haible  <bruno@clisp.org>
33929
33930         Document the 'manywarnings' module.
33931         * doc/manywarnings.texi: New file.
33932         * doc/gnulib.texi: Include it.
33933
33934 2008-12-05  Eric Blake  <ebb9@byu.net>
33935
33936         tests: silence some gcc warnings
33937         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33938         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33939         type mismatches.
33940
33941 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33942             Bruno Haible  <bruno@clisp.org>
33943
33944         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33945
33946 2008-11-29  Jim Meyering  <meyering@redhat.com>
33947
33948         unicodeio.c: mark unused parameters
33949         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33950         (fallback_failure_callback): Likewise.
33951
33952         fts: fix a thinko
33953         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33954         (set_stat_type): Return S_IF*-valued "type" directly.
33955         Prompted by James Youngman's spotting a related bug.
33956         Confirmed by further testing through find.
33957
33958         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33959         * lib/fts.c (D_TYPE): Define.
33960         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33961         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33962         (s_ifmt_shift_bits): New function.
33963         (set_stat_type): New function.
33964         (fts_build): When not calling fts_stat, call set_stat_type
33965         to propagate dirent.d_type info to fts_read caller.
33966         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33967         fts_statp->st_mode type information may be valid.
33968
33969 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33970
33971         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33972         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33973         <sds@gnu.org>.
33974
33975 2008-11-20  Bruno Haible  <bruno@clisp.org>
33976
33977         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33978         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33979         INCLUDE_NEXT.
33980         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33981         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33982         * modules/math (Makefile.am): Substitute
33983         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33984         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33985
33986 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33987             Bruno Haible  <bruno@clisp.org>
33988
33989         * lib/stdint.in.h: Define all type macros so that their expansion is
33990         a single typedef'ed token. Fixes a compilation failure in Boost which
33991         does "using ::int8_t;".
33992
33993 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33994
33995         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33996         gl_MANYWARN_ALL_GCC.
33997         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33998         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33999         * modules/manywarnings: New file.
34000         * MODULES.html.sh: Mention manywarnings module.
34001
34002 2008-11-18  Bruno Haible  <bruno@clisp.org>
34003
34004         * doc/gnulib-tool.texi (Unit tests): New section.
34005
34006 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34007
34008         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34009         paths like 'lib/po/foo.po'.
34010
34011 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34012
34013         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34014         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34015
34016 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34017
34018         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34019         parameter works.
34020
34021 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34022
34023         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34024
34025 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34026
34027         * modules/parse-duration-tests: New file.
34028         * tests/test-parse-duration.sh: New file.
34029         * tests/test-parse-duration.c: New file.
34030
34031         New module 'parse-duration'.
34032         * lib/parse-duration.h: New file.
34033         * lib/parse-duration.c: New file.
34034         * modules/parse-duration: New file.
34035
34036 2008-11-17  Bruno Haible  <bruno@clisp.org>
34037
34038         * tests/test-select-out.sh: Comment out the first pipe test.
34039         Reported by Simon Josefsson.
34040
34041 2008-11-17  Bruno Haible  <bruno@clisp.org>
34042
34043         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34044         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34045         gl_HOSTENT.
34046
34047 2008-11-17  Bruno Haible  <bruno@clisp.org>
34048
34049         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34050         -lnetwork and -lnet. Needed for Haiku and BeOS.
34051
34052 2008-11-16  Bruno Haible  <bruno@clisp.org>
34053
34054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34055
34056 2008-11-16  Bruno Haible  <bruno@clisp.org>
34057
34058         Avoid test failure on Haiku.
34059         * tests/test-fsync.c: Include <errno.h>.
34060         (main): Don't require that fsync (0) fails.
34061
34062 2008-11-15  Bruno Haible  <bruno@clisp.org>
34063
34064         New module 'hostent'.
34065         * modules/hostent: New file.
34066         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34067
34068 2008-11-15  Bruno Haible  <bruno@clisp.org>
34069
34070         New module 'servent'.
34071         * modules/servent: New file.
34072         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34073
34074 2008-11-15  Bruno Haible  <bruno@clisp.org>
34075
34076         Avoid generating same test program with two different rules.
34077         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34078         test-frexp to test-frexp-nolibm.
34079         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34080         test-frexpl to test-frexpl-nolibm.
34081
34082 2008-11-15  Bruno Haible  <bruno@clisp.org>
34083
34084         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34085         $(FREXPL_LIBM).
34086
34087 2008-11-15  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/netdb.in.h: Activate the definitions also when the system's
34090         <netdb.h> has 'struct addrinfo'.
34091         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34092         EAI_OVERFLOW or AI_NUMERICSERV.
34093         * doc/posix-headers/netdb.texi: Document the problem.
34094
34095 2008-11-15  Bruno Haible  <bruno@clisp.org>
34096
34097         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34098
34099         Make the 'sched' module work on platforms where <sched.h> exists but
34100         is incomplete (such as Haiku).
34101         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34102         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34103         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34104         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34105         HAVE_STRUCT_SCHED_PARAM.
34106         * modules/sched (Depends-on): Add include_next.
34107         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34108         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34109         * doc/posix-headers/sched.texi: Document the issue.
34110
34111 2008-11-13  Jim Meyering  <meyering@redhat.com>
34112
34113         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34114         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34115         test would fail due to the difference in the Report bugs to ...
34116         line.  The expected address is empty, "<>", while the actual
34117         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34118
34119 2008-11-12  Bruno Haible  <bruno@clisp.org>
34120
34121         lstat: don't compile lstat.c on systems lacking lstat
34122         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34123         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34124         Reported by Daniel P. Berrange via Jim Meyering.
34125
34126 2008-11-12  Jim Meyering  <meyering@redhat.com>
34127
34128         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34129
34130 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34131
34132         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34133         instead.
34134
34135 2008-11-12  Bruno Haible  <bruno@clisp.org>
34136
34137         * lib/unicodeio.c: Include unistr.h.
34138         (utf8_wctomb): Remove function.
34139         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34140
34141 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34142
34143         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34144         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34145         <bruno@clisp.org>.
34146         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34147
34148 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34149
34150         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34151         * doc/gnulib.texi: Add section for warnings.
34152
34153 2008-11-11  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/sockets.h: Add a comment.
34156
34157 2008-11-11  Karl Berry  <karl@gnu.org>
34158
34159         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34160
34161 2008-11-11  Eric Blake  <ebb9@byu.net>
34162
34163         fdl.texi: avoid git symlinks
34164         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34165
34166 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34167
34168         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34169
34170 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34171
34172         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34173         (gl_WARN_ADD): Substitute $2 if literal.
34174
34175 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34176
34177         * m4/warning.m4: Remove.
34178
34179 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34180
34181         * m4/warnings.m4: Almost complete rewrite. :-)
34182
34183 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34184
34185         * modules/warnings: New module.
34186         * m4/warnings.m4: New file.
34187         * MODULES.html.sh: Mention warnings module.
34188         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34189         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34190
34191 2008-11-10  Eric Blake  <ebb9@byu.net>
34192
34193         fdl.texi: make a symlink to the latest version
34194         * doc/standards.texi: Revert today's earlier change.
34195         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34196         * doc/fdl.texi: ...and replace this with a symlink to the newer
34197         fdl-1.3.texi.
34198
34199 2008-11-10  Bruno Haible  <bruno@clisp.org>
34200
34201         * tests/test-select-fd.c (main): Accept the result file name as fourth
34202         argument.
34203         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34204         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34205
34206 2008-11-10  Bruno Haible  <bruno@clisp.org>
34207
34208         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34209         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34210         as autoconf-substituted macros.
34211         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34212         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34213         gl_NETDB_H_DEFAULTS. Set these variables.
34214         * modules/netdb (Makefile.am): Substitute these variables.
34215
34216 2008-11-10  Eric Blake  <ebb9@byu.net>
34217
34218         standards.texi: include correct file for FDL 1.3
34219         * doc/standards.texi (GNU Free Documentation License): Change
34220         include file to pull in FDL 1.3, not 1.2.
34221
34222         fdl.texi: revert accidental change to license
34223         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34224
34225 2008-11-10  Bruno Haible  <bruno@clisp.org>
34226
34227         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34228         cross-compiling guesses also when the native compile gives no result.
34229
34230 2008-11-10  Bruno Haible  <bruno@clisp.org>
34231
34232         * lib/spawni.c (__spawni): Force variable into the stack.
34233
34234 2008-11-10  Bruno Haible  <bruno@clisp.org>
34235
34236         Add support for Haiku.
34237         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34238         glibc and BeOS, but also on Haiku.
34239         * lib/fpurge.c (fpurge): Likewise.
34240         * lib/freadable.c (freadable): Likewise.
34241         * lib/freadahead.c (freadahead): Likewise.
34242         * lib/freading.c (freading): Likewise.
34243         * lib/freadptr.c (freadptr): Likewise.
34244         * lib/freadseek.c (freadptrinc): Likewise.
34245         * lib/fseeko.c (rpl_fseeko): Likewise.
34246         * lib/fseterr.c (fseterr): Likewise.
34247         * lib/fwritable.c (fwritable): Likewise.
34248         * lib/fwriting.c (fwriting): Likewise.
34249         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34250
34251 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34252
34253         * lib/config.charset: Treat Haiku like BeOS.
34254
34255 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34256
34257         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34258         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34259
34260 2008-11-08  Bruno Haible  <bruno@clisp.org>
34261
34262         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34263         AC_CACHE_CHECK.
34264
34265 2008-11-08  Bruno Haible  <bruno@clisp.org>
34266
34267         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34268
34269 2008-11-08  Bruno Haible  <bruno@clisp.org>
34270
34271         * tests/test-select-fd.c: New file.
34272         * tests/test-select-in.sh: New file.
34273         * tests/test-select-out.sh: New file.
34274         * tests/test-select-stdin.c: New file.
34275         * modules/select-tests (Files): Add the new files.
34276         (Depends-on): Add gettimeofday.
34277         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34278         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34279         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34280
34281 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34282             Bruno Haible  <bruno@clisp.org>
34283
34284         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34285
34286 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34287
34288         * build-aux/pmccabe2html: Added support for C++ source files.
34289
34290 2008-11-05  Ben Pfaff  <blp@gnu.org>
34291
34292         Fix lib/close.c build on Windows.
34293         * modules/close (Files): Add lib/w32sock.h.
34294
34295 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34296
34297         Accept Bison's NEWS format.
34298         * build-aux/announce-gen (print_news_deltas): Tweak
34299         $re_prefix.
34300
34301 2008-11-04  Bruno Haible  <bruno@clisp.org>
34302
34303         * modules/random_r (Maintainer): Add glibc.
34304
34305 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34306
34307         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34308         by karl@freefriends.org (Karl Berry).
34309         * doc/alloca.texi: Likewise.
34310         * doc/c-ctype.texi: Likewise.
34311         * doc/c-strcase.texi: Likewise.
34312         * doc/c-strcaseeq.texi: Likewise.
34313         * doc/c-strcasestr.texi: Likewise.
34314         * doc/c-strstr.texi: Likewise.
34315         * doc/c-strtod.texi: Likewise.
34316         * doc/c-strtold.texi: Likewise.
34317         * doc/ctime.texi: Likewise.
34318         * doc/error.texi: Likewise.
34319         * doc/fdl.texi: Likewise.
34320         * doc/gcd.texi: Likewise.
34321         * doc/getdate.texi: Likewise.
34322         * doc/gnulib-intro.texi: Likewise.
34323         * doc/gnulib-tool.texi: Likewise.
34324         * doc/gnulib.texi: Likewise.
34325         * doc/inet_ntoa.texi: Likewise.
34326         * doc/maintain.texi: Likewise.
34327         * doc/make-stds.texi: Likewise.
34328         * doc/quote.texi: Likewise.
34329         * doc/regexprops-generic.texi: Likewise.
34330         * doc/standards.texi: Likewise.
34331         * doc/verify.texi: Likewise.
34332         * doc/visibility.texi: Likewise.
34333         * doc/gnulib.texi (GNU Free Documentation License): Include
34334         fdl-1.3.texi instead of fdl.texi.
34335
34336 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34337
34338         * doc/fdl-1.3.texi: New file, from
34339         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34340         * modules/fdl-1.3: Add.
34341         * MODULES.html.sh: Add fdl-1.3.
34342
34343 2008-11-03  Bruno Haible  <bruno@clisp.org>
34344
34345         Make determination of absolute name of header file work with AIX xlc.
34346         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34347         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34348         preprocessing.
34349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34350         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34351
34352 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34353
34354         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34355         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34356         <ludo@gnu.org>.
34357
34358 2008-11-02  Bruno Haible  <bruno@clisp.org>
34359
34360         Mark 'strpbrk' obsolete.
34361         * modules/strpbrk (Status, Notice): New sections.
34362         * modules/strtok_r (Depends-on): Add strpbrk.
34363
34364 2008-11-02  Bruno Haible  <bruno@clisp.org>
34365
34366         Mark 'strdup' obsolete.
34367         * modules/strdup (Status, Notice): New sections.
34368         * modules/findprog (Depends-on): Add strdup.
34369         * modules/getaddrinfo (Depends-on): Likewise.
34370         * modules/localename (Depends-on): Likewise.
34371         * modules/relocatable-lib (Depends-on): Likewise.
34372         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34373         * modules/relocatable-prog (Depends-on): Likewise.
34374         * modules/trim (Depends-on): Likewise.
34375         * modules/unictype/gen-ctype (Depends-on): Likewise.
34376         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34377
34378 2008-11-02  Bruno Haible  <bruno@clisp.org>
34379
34380         Mark 'strcspn' obsolete.
34381         * modules/strcspn (Status, Notice): New sections.
34382
34383 2008-11-02  Bruno Haible  <bruno@clisp.org>
34384
34385         Mark 'rmdir' obsolete.
34386         * modules/rmdir (Status, Notice): New sections.
34387         * modules/clean-temp (Depends-on): Add rmdir.
34388         * modules/openat (Depends-on): Likewise.
34389
34390 2008-11-02  Bruno Haible  <bruno@clisp.org>
34391
34392         Mark 'raise' obsolete.
34393         * modules/raise (Status, Notice): New sections.
34394         (Include): Specify <signal.h>.
34395         * modules/stdio (Depends-on): Add raise.
34396         * modules/write (Depends-on): Likewise.
34397
34398 2008-11-02  Bruno Haible  <bruno@clisp.org>
34399
34400         Mark 'memset' obsolete.
34401         * modules/memset (Status, Notice): New sections.
34402
34403 2008-11-02  Bruno Haible  <bruno@clisp.org>
34404
34405         Mark 'memmove' obsolete.
34406         * modules/memmove (Status, Notice): New sections.
34407         * modules/argp (Depends-on): Add memmove.
34408         * modules/argz (Depends-on): Likewise.
34409         * modules/canonicalize (Depends-on): Likewise.
34410         * modules/canonicalize-lgpl (Depends-on): Likewise.
34411         * modules/fts (Depends-on): Likewise.
34412         * modules/getcwd (Depends-on): Likewise.
34413         * modules/human (Depends-on): Likewise.
34414         * modules/regex (Depends-on): Likewise.
34415         * modules/striconveh (Depends-on): Likewise.
34416         * modules/trim (Depends-on): Likewise.
34417         * modules/unistr/u8-move (Depends-on): Likewise.
34418         * modules/unistr/u16-move (Depends-on): Likewise.
34419         * modules/unistr/u32-move (Depends-on): Likewise.
34420
34421 2008-11-02  Bruno Haible  <bruno@clisp.org>
34422
34423         Mark 'memcpy' obsolete.
34424         * modules/memcpy (Status, Notice): New sections.
34425
34426 2008-11-02  Bruno Haible  <bruno@clisp.org>
34427
34428         Mark 'memcmp' obsolete.
34429         * modules/memcmp (Status, Notice): New sections.
34430         * modules/argmatch (Depends-on): Add memchr.
34431         * modules/backupfile (Depends-on): Likewise.
34432         * modules/c-strcasestr (Depends-on): Likewise.
34433         * modules/crypto/des (Depends-on): Likewise.
34434         * modules/csharpcomp (Depends-on): Likewise.
34435         * modules/fnmatch (Depends-on): Likewise.
34436         * modules/git-merge-changelog (Depends-on): Likewise.
34437         * modules/isnand (Depends-on): Likewise.
34438         * modules/isnand-nolibm (Depends-on): Likewise.
34439         * modules/isnanf (Depends-on): Likewise.
34440         * modules/isnanf-nolibm (Depends-on): Likewise.
34441         * modules/isnanl (Depends-on): Likewise.
34442         * modules/isnanl-nolibm (Depends-on): Likewise.
34443         * modules/mbchar (Depends-on): Likewise.
34444         * modules/memcoll (Depends-on): Likewise.
34445         * modules/quotearg (Depends-on): Likewise.
34446         * modules/regex (Depends-on): Likewise.
34447         * modules/relocatable-prog (Depends-on): Likewise.
34448         * modules/same (Depends-on): Likewise.
34449         * modules/signbit (Depends-on): Likewise.
34450         * modules/strcasestr-simple (Depends-on): Likewise.
34451         * modules/unictype/gen-ctype (Depends-on): Likewise.
34452         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34453         * modules/uniname/uniname (Depends-on): Likewise.
34454         * modules/unistr/u8-cmp (Depends-on): Likewise.
34455
34456 2008-11-02  Bruno Haible  <bruno@clisp.org>
34457
34458         Mark 'memchr' obsolete.
34459         * modules/memchr (Status, Notice): New sections.
34460         * modules/argp (Depends-on): Add memchr.
34461         * modules/base64 (Depends-on): Likewise.
34462         * modules/c-strcasestr (Depends-on): Likewise.
34463         * modules/chdir-long (Depends-on): Likewise.
34464         * modules/fnmatch (Depends-on): Likewise.
34465         * modules/getsubopt (Depends-on): Likewise.
34466         * modules/git-merge-changelog (Depends-on): Likewise.
34467         * modules/glob (Depends-on): Likewise.
34468         * modules/strcasestr-simple (Depends-on): Likewise.
34469         * modules/strnlen (Depends-on): Likewise.
34470
34471 2008-11-02  Bruno Haible  <bruno@clisp.org>
34472
34473         Mark 'atexit' obsolete.
34474         * modules/atexit (Status, Notice): New sections.
34475         * modules/chdir-long (Depends-on): Add atexit.
34476         * modules/wait-process (Depends-on): Likewise.
34477
34478 2008-11-02  Bruno Haible  <bruno@clisp.org>
34479
34480         * gnulib-tool: New option --with-obsolete.
34481         (func_usage): Document it.
34482         (func_modules_transitive_closure): Drop obsolete dependencies if
34483         incobsolete is not true.
34484         (func_import): Read and save the incobsolete variable to the cache.
34485
34486 2008-11-02  Bruno Haible  <bruno@clisp.org>
34487
34488         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34489         * gnulib-tool: New option --extract-status.
34490         (func_usage): Document it.
34491         (sed_extract_prog): Recognize it.
34492         (func_get_status): New function.
34493
34494 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34495
34496         * modules/sockets (License): Change from LGPL to LGPLv2+.
34497
34498 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34499
34500         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34501
34502 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34503
34504         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34505         Mention times and sys_times.
34506         * modules/sys_times, modules/sys_times-tests: New modules.
34507         * modules/times, modules/times-tests: Likewise
34508         * m4/sys_times_h.m4: New file.
34509         * lib/sys_times.in.h: Likewise
34510         * lib/times.c: Likewise.
34511         * tests/test-sys_times.c: Likewise.
34512         * tests/test-times.c: Likewise.
34513         * doc/posix-headers/sys_times.texi: Update.
34514         * doc/posix-functions/times.texi: Update.
34515
34516 2008-10-28  Jim Meyering  <meyering@redhat.com>
34517
34518         * modules/tempname (Depends-on): Add lstat.
34519
34520         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34521
34522 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34523
34524         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34525         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34526         using idiom used elsewhere in gnulib.
34527
34528 2008-10-27  Jim Meyering  <meyering@redhat.com>
34529
34530         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34531
34532 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34533
34534         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34535         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34536         programs.
34537         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34538
34539 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34540
34541         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34542
34543 2008-10-27  Bruno Haible  <bruno@clisp.org>
34544
34545         * tests/test-lstat.c: Include <stdio.h>.
34546
34547 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34548
34549         * modules/lstat-tests: New module.
34550         * tests/test-lstat.c: New file.
34551
34552 2008-10-26  Jim Meyering  <meyering@redhat.com>
34553
34554         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34555
34556 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34557             Bruno Haible  <bruno@clisp.org>
34558
34559         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34560         * modules/configmake (Include): Add a note that the include must come
34561         after all system headers.
34562         * lib/javaversion.c: Include configmake.h after all other includes.
34563
34564 2008-10-26  Bruno Haible  <bruno@clisp.org>
34565
34566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34567         HAVE_STRUCT_RANDOM_DATA to 1.
34568         (gl_STDLIB_H): Simplify.
34569
34570 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34571
34572         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34573         substitute HAVE_STRUCT_RANDOM_DATA.
34574         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34575         random_data.
34576         * modules/stdlib (Makefile.am): Substitute
34577         HAVE_STRUCT_RANDOM_DATA.
34578
34579 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34580
34581         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34582         * doc/gnulib-intro.texi (Copyright): Likewise.
34583
34584 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34585
34586         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34587         findings.
34588
34589 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34590             Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/unistd.in.h: Include <winsock2.h>.
34593         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34594         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34595         Provide dummy declarations.
34596         (gethostname): Override.
34597         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34599         gl_PREREQ_SYS_H_WINSOCK2.
34600         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34601         * doc/posix-functions/gethostname.texi: More details.
34602
34603 2008-10-25  Bruno Haible  <bruno@clisp.org>
34604
34605         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34606         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34607         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34608
34609         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34610         here ...
34611         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34612         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34613         gl_UNISTD_H_DEFAULTS.
34614
34615 2008-10-25  Eric Blake  <ebb9@byu.net>
34616
34617         signbit: avoid spurious compiler failure
34618         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34619         declarations inside function.
34620
34621 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34622             Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34625         * modules/random_r (Depends-on): Add stdint.
34626
34627 2008-10-24  Bruno Haible  <bruno@clisp.org>
34628
34629         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34630         Eggert.
34631         * modules/strerror (License): Likewise.
34632
34633 2008-10-24  Jim Meyering  <meyering@redhat.com>
34634
34635         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34636         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34637
34638 2008-10-24  Eric Blake  <ebb9@byu.net>
34639
34640         getgroups: fix compilation when getgroups is available
34641         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34642         but with <config.h> override of getgroups disabled.
34643
34644 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34645
34646         * doc/gnulib.texi (Header files): Add note about C++ problems.
34647         Explained by Bruno Haible <bruno@clisp.org>.
34648
34649 2008-10-23  Bruno Haible  <bruno@clisp.org>
34650
34651         Define a dummy SA_NODEFER macro on Interix.
34652         * lib/signal.in.h (SA_NODEFER): Define fallback.
34653         Reported by Aleksey Cheusov <cheusov@tut.by> via
34654         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34655
34656 2008-10-23  Bruno Haible  <bruno@clisp.org>
34657
34658         * modules/freadahead (License): Change to LGPLv2+.
34659         Suggested by Simon Josefsson.
34660
34661 2008-10-23  Jim Meyering  <meyering@redhat.com>
34662
34663         random_r: new module
34664         * modules/random_r: New file.
34665         * m4/random_r.m4: New file.
34666         * lib/random_r.c: New file, from glibc.
34667         * modules/random_r-tests: New file.
34668         * tests/test-random_r.c: New file.
34669         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34670          Declare.
34671         (RAND_MAX): Define.
34672         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34673         * modules/stdlib: Substitute them, too.
34674         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34675         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34676         * doc/glibc-functions/random_r.texi: Likewise.
34677         * doc/glibc-functions/setstate_r.texi: Likewise.
34678         * doc/glibc-functions/srandom_r.texi: Likewise.
34679         * config/srclist.txt: Mention it.
34680
34681 2008-10-23  David Lutterkort  <lutter@redhat.com>
34682
34683         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34684         link requirement
34685
34686 2008-10-23  Jim Meyering  <meyering@redhat.com>
34687
34688         selinux-h: mark parameters of stub functions as intentionally unused
34689         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34690         * lib/se-context.in.h: Likewise.
34691
34692 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34693
34694         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34695
34696 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34697
34698         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34699
34700 2008-10-22  Eric Blake  <ebb9@byu.net>
34701
34702         glthread/thread: avoid compiler warning
34703         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34704         Add unreachable abort to silence compiler.
34705
34706 2008-10-22  Eric Blake  <ebb9@byu.net>
34707
34708         netdb: also supply struct addrinfo for cygwin 1.5.x
34709         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34710         older cygwin.
34711         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34712         cygwin.
34713         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34714
34715 2008-10-22  Bruno Haible  <bruno@clisp.org>
34716
34717         * users.txt: Update entry about pspp.
34718
34719 2008-10-21  Bruno Haible  <bruno@clisp.org>
34720
34721         Simplification.
34722         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34723         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34724
34725         Simplification.
34726         * lib/ioctl.c (ioctl): Don't undefine.
34727         * lib/socket.c (socket): Don't undefine.
34728
34729         Remove unused module indicator macros.
34730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34731         GNULIB_$1 as a C macro.
34732
34733         * doc/posix-functions/close.texi: Undo last change.
34734         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34735         Windows platforms.
34736
34737 2008-10-21  Bruno Haible  <bruno@clisp.org>
34738
34739         Add gethostname() declaration to <unistd.h>.
34740         * lib/unistd.in.h (gethostname): New declaration.
34741         * lib/gethostname.c: Include <unistd.h>.
34742         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34743         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34745         and HAVE_GETHOSTNAME.
34746         * modules/gethostname (Depends-on): Add unistd.
34747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34748         (Include): Specify <unistd.h>.
34749         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34750         HAVE_GETHOSTNAME.
34751         * tests/test-gethostname.c: Include <unistd.h> first.
34752
34753 2008-10-21  Bruno Haible  <bruno@clisp.org>
34754
34755         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34756         * modules/select-tests (Depends-on): Likewise.
34757         Reported by Simon Josefsson.
34758
34759 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34760
34761         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34762         * lib/accept.c: New file, based on winsock.c.
34763         * lib/bind.c: New file, based on winsock.c.
34764         * lib/connect.c: New file, based on winsock.c.
34765         * lib/getpeername.c: New file, based on winsock.c.
34766         * lib/getsockname.c: New file, based on winsock.c.
34767         * lib/getsockopt.c: New file, based on winsock.c.
34768         * lib/ioctl.c: New file, based on winsock.c.
34769         * lib/listen.c: New file, based on winsock.c.
34770         * lib/recv.c: New file, based on winsock.c.
34771         * lib/recvfrom.c: New file, based on winsock.c.
34772         * lib/send.c: New file, based on winsock.c.
34773         * lib/sendto.c: New file, based on winsock.c.
34774         * lib/setsockopt.c: New file, based on winsock.c.
34775         * lib/shutdown.c: New file, based on winsock.c.
34776         * lib/socket.c: New file, based on winsock.c.
34777         * lib/w32sock.h: New file, based on winsock.c.
34778         * lib/winsock.c: Remove file.
34779         * modules/accept: Likewise.
34780         * modules/bind: Likewise.
34781         * modules/connect: Likewise.
34782         * modules/getpeername: Likewise.
34783         * modules/getsockname: Likewise.
34784         * modules/getsockopt: Likewise.
34785         * modules/ioctl: Likewise.
34786         * modules/listen: Likewise.
34787         * modules/recv: Likewise.
34788         * modules/recvfrom: Likewise.
34789         * modules/send: Likewise.
34790         * modules/sendto: Likewise.
34791         * modules/setsockopt: Likewise.
34792         * modules/shutdown: Likewise.
34793         * modules/socket: Use socket.c instead of winsock.c.
34794         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34795         * doc/posix-functions/accept.texi: Doc fix.
34796         * doc/posix-functions/bind.texi: Doc fix.
34797         * doc/posix-functions/close.texi: Doc fix.
34798         * doc/posix-functions/connect.texi: Doc fix.
34799         * doc/posix-functions/getpeername.texi: Doc fix.
34800         * doc/posix-functions/getsockname.texi: Doc fix.
34801         * doc/posix-functions/getsockopt.texi: Doc fix.
34802         * doc/posix-functions/ioctl.texi: Doc fix.
34803         * doc/posix-functions/listen.texi: Doc fix.
34804         * doc/posix-functions/recv.texi: Doc fix.
34805         * doc/posix-functions/recvfrom.texi: Doc fix.
34806         * doc/posix-functions/send.texi: Doc fix.
34807         * doc/posix-functions/sendto.texi: Doc fix.
34808         * doc/posix-functions/setsockopt.texi: Doc fix.
34809         * doc/posix-functions/shutdown.texi: Doc fix.
34810         * doc/posix-functions/socket.texi: Doc fix.
34811
34812 2008-10-20  Bruno Haible  <bruno@clisp.org>
34813
34814         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34815         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34816         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34817         as an alias for SIGABRT.
34818         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34819         (sigaction): Map it to SIGABRT.
34820         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34821
34822 2008-10-20  Bruno Haible  <bruno@clisp.org>
34823
34824         * lib/fts.c: Don't include lstat.h.
34825         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34826
34827         Move the lstat() declaration to <sys/stat.h>.
34828         * lib/lstat.h: Remove file.
34829         * lib/sys_stat.in.h: Add special invocation convention.
34830         (lstat): New declaration.
34831         * lib/lstat.c (orig_lstat): New function.
34832         (rpl_lstat): Use orig_lstat instead of lstat.
34833         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34834         AC_C_INLINE. Set REPLACE_LSTAT.
34835         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34836         and REPLACE_LSTAT.
34837         * modules/lstat (Files): Remove lib/lstat.h.
34838         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34839         (Include): Specify <sys/stat.h> instead of lstat.h.
34840         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34841         REPLACE_LSTAT.
34842         * NEWS: Mention the change.
34843
34844 2008-10-20  Bruno Haible  <bruno@clisp.org>
34845
34846         * modules/posix_spawn-tests: New file.
34847         * tests/test-posix_spawn3.c: New file.
34848
34849 2008-10-20  Bruno Haible  <bruno@clisp.org>
34850
34851         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34852         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34853         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34854         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34855         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34856
34857 2008-10-20  Bruno Haible  <bruno@clisp.org>
34858
34859         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34860         of posix_spawn on AIX 5.3.
34861
34862 2008-10-20  Bruno Haible  <bruno@clisp.org>
34863
34864         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34865
34866 2008-10-20  Bruno Haible  <bruno@clisp.org>
34867
34868         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34869         of AC_LANG_PROGRAM.
34870
34871 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34872
34873         * lib/netdb.in.h: Don't define GNU specific constants until they
34874         are supported or needed.  Reported by Bruno Haible
34875         <bruno@clisp.org>.
34876
34877 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34878
34879         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34880
34881 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34882
34883         * lib/getaddrinfo.h: Remove file.
34884         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34885         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34886         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34887         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34888         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34889         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34890         * tests/test-getaddrinfo.c: Likewise.
34891         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34892         * NEWS: Mention change.
34893
34894 2008-10-19  Bruno Haible  <bruno@clisp.org>
34895
34896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34897
34898 2008-10-19  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/wait-process.c: Include simply <sys/wait.h>.
34901         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34902         WIFSTOPPED): Remove fallback definitions.
34903         * modules/wait-process (Depends-on): Add sys_wait.
34904
34905         New module 'sys_wait'.
34906         * modules/sys_wait: New file.
34907         * lib/sys_wait.in.h: New file, partially copied from
34908         lib/wait-process.c.
34909         * m4/sys_wait_h.m4: New file.
34910         * doc/posix-headers/sys_wait.texi: Mention the new module.
34911
34912 2008-10-19  Bruno Haible  <bruno@clisp.org>
34913
34914         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34915
34916 2008-10-19  Bruno Haible  <bruno@clisp.org>
34917
34918         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34919         * lib/wait-process.c (WAIT_T): Remove type.
34920         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34921         (wait_subprocess): Update.
34922
34923 2008-10-19  Bruno Haible  <bruno@clisp.org>
34924
34925         New module 'atoll'.
34926         * modules/atoll: New file.
34927         * lib/stdlib.in.h (atoll): New declaration.
34928         * lib/atoll.c: New file, from glibc with modifications.
34929         * m4/atoll.m4: New file.
34930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34931         HAVE_ATOLL.
34932         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34933         * doc/posix-functions/atoll.texi: Mention the new module.
34934
34935 2008-10-19  Bruno Haible  <bruno@clisp.org>
34936
34937         Add strtoull() declaration to <stdlib.h>.
34938         * lib/stdlib.in.h (strtoull): New declaration.
34939         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34940         Set HAVE_STRTOULL.
34941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34942         HAVE_STRTOULL.
34943         * modules/strtoull (Depends-on): Add stdlib.
34944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34945         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34946         HAVE_STRTOULL.
34947
34948 2008-10-19  Bruno Haible  <bruno@clisp.org>
34949
34950         Add strtoll() declaration to <stdlib.h>.
34951         * lib/stdlib.in.h (strtoll): New declaration.
34952         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34953         Set HAVE_STRTOLL.
34954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34955         HAVE_STRTOLL.
34956         * modules/strtoll (Depends-on): Add stdlib.
34957         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34958         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34959
34960 2008-10-19  Bruno Haible  <bruno@clisp.org>
34961
34962         * modules/bcopy (Depends-on): Add strings.
34963         (Include): Specify <strings.h>.
34964
34965 2008-10-19  Bruno Haible  <bruno@clisp.org>
34966
34967         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34968
34969 2008-10-19  Bruno Haible  <bruno@clisp.org>
34970
34971         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34972         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34973         mingw.
34974
34975 2008-10-19  Bruno Haible  <bruno@clisp.org>
34976
34977         * lib/atanl.c: Don't include isnanl.h.
34978         * lib/cosl.c: Likewise.
34979         * lib/ldexpl.c: Likewise.
34980         * lib/logl.c: Likewise.
34981         * lib/sinl.c: Likewise.
34982         * lib/sqrtl.c: Likewise.
34983         * lib/tanl.c: Likewise.
34984
34985         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34986         * lib/isnanf.h: Remove file.
34987         * lib/isnand.h: Remove file.
34988         * lib/isnanl.h: Remove file.
34989         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34990         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34991         macros.
34992         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34993         HAVE_ISNANF, don't define it as a C macro.
34994         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34995         HAVE_ISNAND, don't define it as a C macro.
34996         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34997         HAVE_ISNANL, don't define it as a C macro.
34998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34999         HAVE_ISNAN[FDL].
35000         * modules/isnanf (Files): Remove lib/isnanf.h.
35001         (Depends-on): Add math.
35002         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35003         (Include): Specify <math.h> instead of isnanf.h.
35004         * modules/isnand (Files): Remove lib/isnand.h.
35005         (Depends-on): Add math.
35006         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35007         (Include): Specify <math.h> instead of isnand.h.
35008         * modules/isnanl (Files): Remove lib/isnanl.h.
35009         (Depends-on): Add math.
35010         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35011         (Include): Specify <math.h> instead of isnanl.h.
35012         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35013         HAVE_ISNAN[FDL].
35014         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35015         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35016         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35017         * NEWS: Mention the change.
35018
35019 2008-10-18  Bruno Haible  <bruno@clisp.org>
35020
35021         Add getusershell(), setusershell(), endusershell() declarations to
35022         <unistd.h>.
35023         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35024         declarations.
35025         * lib/getusershell.c: Include unistd.h.
35026         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35027         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35028         HAVE_GETUSERSHELL.
35029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35030         and HAVE_GETUSERSHELL.
35031         * modules/getusershell (Depends-on): Add unistd, extensions.
35032         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35033         (Include): Specify <unistd.h>.
35034         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35035         HAVE_GETUSERSHELL.
35036
35037 2008-10-18  Bruno Haible  <bruno@clisp.org>
35038
35039         Add a getloadavg() declaration to <stdlib.h>.
35040         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35041         getloadavg declaration.
35042         (getloadavg): New declaration.
35043         * lib/getloadavg.c: Include <stdlib.h> first.
35044         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35045         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35046         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35048         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35049         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35051         (Include): Specify <stdlib.h>.
35052         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35053         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35054
35055 2008-10-18  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/dirchownmod.c: Don't include lchmod.h.
35058
35059         Move the lchmod() declaration to <sys/stat.h>.
35060         * lib/lchmod.h: Remove file.
35061         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35062         (lchmod): New declaration, moved here from lib/lchown.h.
35063         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35064         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35065         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35066         and HAVE_LCHMOD.
35067         * modules/lchmod (Files): Remove lib/lchmod.h.
35068         (Depends-on): Add sys_stat, extensions.
35069         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35070         (Include): Specify <sys/stat.h> instead of lchmod.h.
35071         * modules/sys_stat (Depends-on): Add link-warning.
35072         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35073         definition of GL_LINK_WARNING.
35074         * NEWS: Mention the change.
35075
35076 2008-10-18  Bruno Haible  <bruno@clisp.org>
35077
35078         * lib/fchdir.c: Don't include dirfd.h.
35079         * lib/fts.c: Likewise.
35080         * lib/getcwd.c: Likewise.
35081         * lib/glob.c: Likewise.
35082
35083         Move the dirfd() declaration to <dirent.h>.
35084         * lib/dirfd.h: Remove file.
35085         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35086         (dirfd): New declaration.
35087         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35089         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35090         HAVE_DECL_DIRFD.
35091         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35092         HAVE_DECL_DIRFD.
35093         * modules/dirfd (Files): Remove lib/dirfd.h.
35094         (Depends-on): Add dirent, extensions.
35095         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35096         (Include): Specify <dirent.h> instead of dirfd.h.
35097         * modules/dirent (Depends-on): Add link-warning.
35098         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35099         definition of GL_LINK_WARNING.
35100         * NEWS: Mention the change.
35101
35102 2008-10-18  Bruno Haible  <bruno@clisp.org>
35103
35104         Move the euidaccess() declaration to <unistd.h>.
35105         * lib/euidaccess.h: Remove file.
35106         * lib/unistd.in.h (euidaccess): New declaration.
35107         * lib/euidaccess.c: Don't include euidaccess.h.
35108         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35109         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35111         and HAVE_EUIDACCESS.
35112         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35113         (Depends-on): Add unistd.
35114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35115         (Include): Specify <unistd.h> instead of euidaccess.h.
35116         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35117         HAVE_EUIDACCESS.
35118         * NEWS: Mention the change.
35119
35120 2008-10-18  Bruno Haible  <bruno@clisp.org>
35121
35122         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35123
35124         Move the getdomainname() declaration to <unistd.h>.
35125         * lib/getdomainname.h: Remove file.
35126         * lib/unistd.in.h (getdomainname): New declaration.
35127         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35128         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35129         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35130         HAVE_GETDOMAINNAME.
35131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35132         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35133         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35134         (Depends-on): Add unistd, extensions.
35135         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35136         (Includes): Specify <unistd.h> instead of getdomainname.h.
35137         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35138         HAVE_GETDOMAINNAME.
35139         * NEWS: Mention the change.
35140
35141 2008-10-18  Bruno Haible  <bruno@clisp.org>
35142
35143         * modules/dirent: New file.
35144         * m4/dirent_h.m4: New file.
35145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35146         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35147         * modules/fchdir (Files): Remove lib/dirent.in.h.
35148         (Depends-on): Add dirent.
35149         (Makefile.am): Move rules to modules/dirent.
35150         * doc/posix-headers/dirent.texi: Mention the new module.
35151
35152 2008-10-18  Bruno Haible  <bruno@clisp.org>
35153
35154         Avoid -Wunused-parameter warnings in public gnulib header files.
35155         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35156         macro.
35157         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35158
35159 2008-10-18  Bruno Haible  <bruno@clisp.org>
35160
35161         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35162         * doc/glibc-functions/error.texi: Mention the module 'error'.
35163         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35164         * doc/glibc-functions/getdomainname.texi: Mention the module
35165         'getdomainname'.
35166         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35167         * doc/glibc-functions/getpagesize.texi: Mention the module
35168         'getpagesize'.
35169         * doc/glibc-functions/getusershell.texi: Mention the module
35170         'getusershell'.
35171         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35172         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35173         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35174         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35175         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35176         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35177         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35178         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35179         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35180         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35181         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35182         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35183         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35184         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35185
35186 2008-10-17  Bruno Haible  <bruno@clisp.org>
35187
35188         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35189         HP-UX and IRIX, use -0.0L.
35190         * tests/test-ceill.c (minus_zero): Likewise.
35191         * tests/test-floorl.c (minus_zero): Likewise.
35192         * tests/test-frexpl.c (minus_zero): Likewise.
35193         * tests/test-isnan.c (minus_zerol): Likewise.
35194         * tests/test-isnanl.h (minus_zero): Likewise.
35195         * tests/test-ldexpl.c (minus_zero): Likewise.
35196         * tests/test-roundl.c (minus_zero): Likewise.
35197         * tests/test-signbit.c (minus_zerol): Likewise.
35198         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35199         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35200         * tests/test-truncl.c (minus_zero): Likewise.
35201         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35202         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35203         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35204         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35205
35206 2008-10-17  Bruno Haible  <bruno@clisp.org>
35207
35208         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35209         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35210         that it gets activated only for gcc >= 3.0.
35211         * lib/dirent.in.h: Likewise.
35212         * lib/errno.in.h: Likewise.
35213         * lib/fcntl.in.h: Likewise.
35214         * lib/float.in.h: Likewise.
35215         * lib/iconv.in.h: Likewise.
35216         * lib/inttypes.in.h: Likewise.
35217         * lib/locale.in.h: Likewise.
35218         * lib/math.in.h: Likewise.
35219         * lib/netdb.in.h: Likewise.
35220         * lib/netinet_in.in.h: Likewise.
35221         * lib/search.in.h: Likewise.
35222         * lib/signal.in.h: Likewise.
35223         * lib/spawn.in.h: Likewise.
35224         * lib/stdarg.in.h: Likewise.
35225         * lib/stdint.in.h: Likewise.
35226         * lib/stdio.in.h: Likewise.
35227         * lib/stdlib.in.h: Likewise.
35228         * lib/string.in.h: Likewise.
35229         * lib/strings.in.h: Likewise.
35230         * lib/sys_file.in.h: Likewise.
35231         * lib/sys_ioctl.in.h: Likewise.
35232         * lib/sys_select.in.h: Likewise.
35233         * lib/sys_socket.in.h: Likewise.
35234         * lib/sys_stat.in.h: Likewise.
35235         * lib/sys_time.in.h: Likewise.
35236         * lib/sysexits.in.h: Likewise.
35237         * lib/time.in.h: Likewise.
35238         * lib/unistd.in.h: Likewise.
35239         * lib/wchar.in.h: Likewise.
35240         * lib/wctype.in.h: Likewise.
35241         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35242
35243 2008-10-17  Jim Meyering  <meyering@redhat.com>
35244
35245         ignore-value: don't depend on inline module
35246         * modules/ignore-value (Depends-on): Remove 'inline'.
35247         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35248         Suggestion from Bruno Haible.
35249
35250 2008-10-17  Bruno Haible  <bruno@clisp.org>
35251
35252         New implementation of condition variables for Win32.
35253         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35254         (gl_linked_waitqueue_t): New type.
35255         (gl_cond_t): Use it.
35256         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35257         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35258         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35259         (glthread_cond_init_func, glthread_cond_wait_func,
35260         glthread_cond_timedwait_func, glthread_cond_signal_func,
35261         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35262         Reimplemented on the basis of gl_linked_waitqueue_t.
35263         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35264         gl_waitqueue_t.
35265         (gl_rwlock_t): Update.
35266         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35267
35268 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35269
35270         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35271         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35272
35273 2008-10-17  Jim Meyering  <meyering@redhat.com>
35274
35275         ignore-value: new module
35276         * modules/ignore-value: New file.
35277         * lib/ignore-value.h: New file.
35278         * MODULES.html.sh (Compiler warning management): New section,
35279         just for this module.  More to come.
35280
35281 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35282
35283         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35284         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35285         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35286
35287 2008-10-16  Jim Meyering  <meyering@redhat.com>
35288
35289         openat-die.c: avoid 'no previous prototype' warning
35290         * lib/openat-die.c: Include "openat.h".
35291         Reported by Reuben Thomas <rrt@sc3d.org>.
35292
35293 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35294
35295         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35296         * lib/netdb.in.h: Fix typo.
35297         Reported by Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/netdb.in.h: Include sys/socket.h for platforms without
35300         netdb.h, to get structures like hostent on MinGW.
35301         * modules/netdb (Depends-on): Add sys_socket.
35302
35303 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35304
35305         * modules/netdb, modules/netdb-tests: New file.
35306         * m4/netdb_h.m4: New file.
35307         * lib/netdb.in.h: Add, currently just an empty file pending
35308         definitions.
35309         * tests/test-netdb.c: New file.
35310         * doc/posix-headers/netdb.texi: Mention that we replace it if
35311         needed.
35312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35313         netdb.
35314
35315 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35316
35317         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35318         with code.
35319
35320 2008-10-13  Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/glthread/cond.c (glthread_cond_wait_func,
35323         glthread_cond_timedwait_func): Add a comment.
35324
35325 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35326
35327         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35328         * tests/test-select.c: Likewise,
35329
35330 2008-10-13  Bruno Haible  <bruno@clisp.org>
35331
35332         * lib/glthread/cond.c (glthread_cond_wait_func,
35333         glthread_cond_timedwait_func): Fix variable name.
35334         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35335
35336 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35337
35338         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35340         struct sockaddr.sa_len.
35341         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35342
35343 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35344
35345         * build-aux/pmccabe2html: Add css and css_url parameters.
35346
35347 2008-10-12  Bruno Haible  <bruno@clisp.org>
35348
35349         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35350         calling aclx_get.
35351         Reported by Rainer Tammer <tammer@tammer.net>.
35352
35353 2008-10-12  Bruno Haible  <bruno@clisp.org>
35354
35355         Use msvcrt aware primitives for creation/termination of Win32 threads.
35356         * lib/glthread/thread.c: Include <process.h>.
35357         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35358         (wrapper_func): Update signature.
35359         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35360
35361 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35362             Bruno Haible  <bruno@clisp.org>
35363
35364         Provide a Win32 implementation of the 'cond' module.
35365         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35366         * lib/glthread/cond.c (glthread_cond_init_func,
35367         glthread_cond_wait_func, glthread_cond_timedwait_func,
35368         glthread_cond_signal_func, glthread_cond_broadcast_func,
35369         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35370         * modules/cond (Dependencies): Add gettimeofday.
35371
35372 2008-10-11  Bruno Haible  <bruno@clisp.org>
35373
35374         Make sleep work on older versions of mingw.
35375         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35376         only whether it exists.
35377         * doc/posix-functions/sleep.texi: Mention the problem with older
35378         versions of mingw.
35379
35380 2008-10-11  Bruno Haible  <bruno@clisp.org>
35381
35382         New module 'shutdown'.
35383         * modules/shutdown: New file.
35384         * lib/sys_socket.in.h (shutdown): New declaration.
35385         * lib/winsock.c (shutdown): New function.
35386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35387         GNULIB_SHUTDOWN.
35388         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35389         * doc/posix-functions/shutdown.texi: Document the new module.
35390
35391 2008-10-11  Jim Meyering  <meyering@redhat.com>
35392
35393         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35394
35395 2008-10-11  Bruno Haible  <bruno@clisp.org>
35396
35397         New module 'fclose'.
35398         * modules/fclose: New file.
35399         * lib/stdio.in.h (fclose): New declaration.
35400         * lib/fclose.c: New file.
35401         * m4/fclose.m4: New file.
35402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35403         REPLACE_FCLOSE.
35404         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35405         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35406         REPLACE_FCLOSE.
35407         * modules/close (Depends-on): fclose.
35408         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35409
35410 2008-10-11  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35413         set errno and don't call _close.
35414
35415 2008-10-10  Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35418         ACL, not afterwards. Fixes test failure on Cygwin.
35419
35420 2008-10-09  Ben Pfaff  <blp@gnu.org>
35421
35422         * build-aux/announce-gen: Fix gnulib version related part of usage
35423         message.  Die with a useful error message if no tarballs are
35424         found.
35425
35426 2008-10-10  Jim Meyering  <meyering@redhat.com>
35427
35428         bootstrap: use git's --depth=N option only if it's supported
35429         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35430         recognize the --depth option.  Reported by Pádraig Brady.
35431
35432 2008-10-09  Bruno Haible  <bruno@clisp.org>
35433
35434         New module 'ioctl'.
35435         * modules/ioctl: New file.
35436         * lib/sys_socket.in.h (ioctl): Remove declaration.
35437         * lib/winsock.c: Include <sys/ioctl.h>.
35438         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35439         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35440         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35441         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35442         * doc/posix-functions/ioctl.texi: Mention the new module.
35443
35444 2008-10-09  Bruno Haible  <bruno@clisp.org>
35445
35446         New module 'sys_ioctl'.
35447         * lib/sys_ioctl.in.h: New file.
35448         * m4/sys_ioctl_h.m4: New file.
35449         * modules/sys_ioctl: New file.
35450         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35451
35452 2008-10-09  Bruno Haible  <bruno@clisp.org>
35453
35454         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35455         * lib/winsock.c: Include <stdarg.h>.
35456         (rpl_ioctl): Change to second argument 'int' and then varargs.
35457
35458 2008-10-09  Bruno Haible  <bruno@clisp.org>
35459
35460         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35461         when the sys_socket module is present and the system has <winsock2.h>.
35462
35463 2008-10-09  Bruno Haible  <bruno@clisp.org>
35464
35465         * doc/posix-functions/close.texi: Mention module 'close' instead of
35466         module 'sys_socket'.
35467
35468 2008-10-09  Bruno Haible  <bruno@clisp.org>
35469
35470         * doc/glibc-headers/sys_ioctl.texi: New file.
35471         * doc/gnulib.texi: Include it.
35472
35473 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35474             Bruno Haible  <bruno@clisp.org>
35475
35476         Combine the two replacements of 'close'.
35477         * lib/sys_socket.in.h (close): Define to a reminder to include
35478         <unistd.h>.
35479         (_gl_close_fd_maybe_socket): New declaration.
35480         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35481         * lib/winsock.c (close): Remove undefinition.
35482         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35483         needed for the gnulib module 'close'.
35484         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35485         define to an error symbol or to a warning, if suitable.
35486         * lib/close.c: Include <sys/socket.h>.
35487         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35488         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35489         UNISTD_H_HAVE_WINSOCK2_H.
35490         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35492         UNISTD_H_HAVE_WINSOCK2_H.
35493         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35494         (configure.ac): Set a module indicator.
35495         (Makefile.am): Substitute GNULIB_CLOSE.
35496         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35497         * modules/poll-tests (Depends-on): Add close.
35498         * modules/select-tests (Depends-on): Likewise.
35499
35500 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35501             Bruno Haible  <bruno@clisp.org>
35502
35503         New module 'close'.
35504         * modules/close: New file.
35505         * lib/unistd.in.h (close): Move declaration out of the
35506         FCHDIR_REPLACEMENT scope.
35507         (_gl_unregister_fd): New declaration.
35508         * lib/close.c: New file.
35509         * lib/fchdir.c (rpl_close): Remove function.
35510         * m4/close.m4: New file.
35511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35512         close.
35513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35514         REPLACE_CLOSE.
35515         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35516         REPLACE_CLOSE.
35517         * modules/fchdir (Depends-on): Add close.
35518
35519 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35520             Bruno Haible  <bruno@clisp.org>
35521
35522         * lib/fcntl.in.h (open): Simplify conditionals.
35523         (_gl_register_fd): New declaration.
35524         * lib/fchdir.c (rpl_open): Remove function.
35525         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35526         also.
35527         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35529         open.
35530
35531 2008-10-09  Jim Meyering  <meyering@redhat.com>
35532
35533         GNUmakefile: use the more name-space-friendly "_version"
35534         * top/GNUmakefile (_dummy): Update.
35535         (_version): Rename from "version".
35536
35537 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35538             Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35541         rpl_close.
35542         (_gl_register_fd): New function, extracted from rpl_open.
35543         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35544         (rpl_open, rpl_opendir): Use _gl_register_fd.
35545
35546 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35547
35548         Fix organization of 'open' replacement.
35549         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35550         (gl_FUNC_OPEN): Use it.
35551         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35552
35553 2008-10-08  Bruno Haible  <bruno@clisp.org>
35554
35555         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35556
35557 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35558
35559         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35560         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35561         listen).
35562
35563 2008-10-08  Eric Blake  <ebb9@byu.net>
35564
35565         GNUmakefile: add 'make version' target
35566         * top/GNUmakefile (_curr-ver): Split version update rules...
35567         (version): ...into a target.
35568
35569 2008-10-07  Bruno Haible  <bruno@clisp.org>
35570
35571         Use a more portable replacement expression for -0.0L.
35572         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35573         instead of -0.0L. Fix m4 quotation.
35574
35575         * tests/test-signbit.c: Include <float.h>.
35576         (minus_zero): New variable.
35577         (test_signbitl): Use minus_zero instead of -zero.
35578         * modules/signbit-tests (Depends-on): Add float.
35579
35580         * tests/test-ceill.c: Include <float.h>.
35581         (zero): Remove variable.
35582         (minus_zero): New variable.
35583         (main): Use minus_zero instead of -zero.
35584         * modules/ceill-tests (Depends-on): Add float.
35585
35586         * tests/test-floorl.c: Include <float.h>.
35587         (zero): Remove variable.
35588         (minus_zero): New variable.
35589         (main): Use minus_zero instead of -zero.
35590         * modules/floorl-tests (Depends-on): Add float.
35591
35592         * tests/test-roundl.c: Include <float.h>.
35593         (zero): Remove variable.
35594         (minus_zero): New variable.
35595         (main): Use minus_zero instead of -zero.
35596         * modules/roundl-tests (Depends-on): Add float.
35597
35598         * tests/test-truncl.c: Include <float.h>.
35599         (zero): Remove variable.
35600         (minus_zero): New variable.
35601         (main): Use minus_zero instead of -zero.
35602         * modules/truncl-tests (Depends-on): Add float.
35603
35604         * tests/test-frexpl.c (zero): Remove variable.
35605         (minus_zero): New variable.
35606         (main): Use minus_zero instead of -zero.
35607         * modules/frexpl-tests (Depends-on): Add float.
35608
35609         * tests/test-isnan.c (zerol): Remove variable.
35610         (minus_zerol): New variable.
35611         (test_long_double): Use minus_zerol instead of -zerol.
35612         * modules/isnan-tests (Depends-on): Add float.
35613
35614         * tests/test-isnanl.h (zero): Remove variable.
35615         (minus_zero): New variable.
35616         (main): Use minus_zero instead of -zero.
35617         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35618         * modules/isnanl-tests (Depends-on): Add float.
35619
35620         * tests/test-ldexpl.c (zero): Remove variable.
35621         (minus_zero): New variable.
35622         (main): Use minus_zero instead of -zero.
35623         * modules/ldexpl-tests (Depends-on): Add float.
35624
35625         * tests/test-snprintf-posix.h (zerol): Remove variable.
35626         (minus_zerol): New variable.
35627         (test_function): Use minus_zerol instead of -zerol.
35628         * modules/snprintf-posix-tests (Depends-on): Add float.
35629         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35630
35631         * tests/test-sprintf-posix.h (zerol): Remove variable.
35632         (minus_zerol): New variable.
35633         (test_function): Use minus_zerol instead of -zerol.
35634         * modules/sprintf-posix-tests (Depends-on): Add float.
35635         * modules/vsprintf-posix-tests (Depends-on): Add float.
35636
35637         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35638         (minus_zerol): New variable.
35639         (test_function): Use minus_zerol instead of -zerol.
35640         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35641
35642         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35643         (minus_zerol): New variable.
35644         (test_function): Use minus_zerol instead of -zerol.
35645         * modules/vasprintf-posix-tests (Depends-on): Add float.
35646
35647 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35648
35649         * MODULES.html.sh (Support for building documentation): Mention
35650         pmccabe2html.  Sort entries.
35651
35652         Add pmccabe2html module, from gnupdf.
35653         * build-aux/pmccabe.css: New file.
35654         * build-aux/pmccabe2html: New file.
35655         * m4/pmccabe2html.m4: New file.
35656         * modules/pmccabe2html: New file.
35657
35658 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35659
35660         flock: new module
35661         * MODULES.html.sh: Add to list of modules.
35662         * lib/flock.c: flock implementation for Windows and Unix systems
35663         which have fcntl.
35664         * doc/glibc-functions/flock.texi: Update documentation.
35665         * lib/sys_file.in.h: <sys/file.h> header file.
35666         * m4/flock.m4: M4 macros.
35667         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35668         * modules/flock: flock module.
35669         * modules/flock-tests: flock tests module.
35670         * modules/sys_file: sys/file.h module.
35671         * tests/test-flock.c: test suite for flock.
35672
35673 2008-10-06  Jim Meyering  <meyering@redhat.com>
35674
35675         bootstrap: check for LT_INIT more portably still ;-)
35676         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35677         Spotted by Bruno Haible.
35678
35679 2008-10-06  Eric Blake  <ebb9@byu.net>
35680
35681         test-signbit: avoid tripping Irix cc bug on -0.0L
35682         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35683         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35684         entire testsuite consistent and avoids an Irix 6.2 bug.
35685
35686 2008-10-05  Bruno Haible  <bruno@clisp.org>
35687             Jim Meyering  <jim@meyering.net>
35688
35689         Add an option for ignoring EPIPE during close_stdout.
35690         * lib/closeout.h: Include <stdbool.h>.
35691         (close_stdout_set_ignore_EPIPE): New declaration.
35692         * lib/closeout.c: Include <stdbool.h>.
35693         (ignore_EPIPE): New variable.
35694         (close_stdout_set_ignore_EPIPE): New function.
35695         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35696         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35697         failure.
35698         * modules/closeout (Depends-on): Add stdbool.
35699
35700 2008-10-05  Bruno Haible  <bruno@clisp.org>
35701
35702         * modules/accept: New file.
35703         * modules/bind: New file.
35704         * modules/connect: New file.
35705         * modules/getpeername: New file.
35706         * modules/getsockname: New file.
35707         * modules/getsockopt: New file.
35708         * modules/listen: New file.
35709         * modules/recv: New file.
35710         * modules/recvfrom: New file.
35711         * modules/send: New file.
35712         * modules/sendto: New file.
35713         * modules/setsockopt: New file.
35714         * modules/socket: New file.
35715         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35716         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35717         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35718         the particular module is requested. Add a link warning when the
35719         particular module is not requested.
35720         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35721         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35722         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35723         the particular module is requested.
35724         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35725         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35726         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35727         * modules/sys_socket (Depends-on): Add link-warning.
35728         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35729         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35730         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35731         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35732         GL_LINK_WARNING.
35733         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35734         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35735         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35736         * doc/posix-functions/getpeername.texi: Mention the new module
35737         'getpeername'.
35738         * doc/posix-functions/getsockname.texi: Mention the new module
35739         'getsockname'.
35740         * doc/posix-functions/getsockopt.texi: Mention the new module
35741         'getsockopt'.
35742         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35743         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35744         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35745         * doc/posix-functions/send.texi: Mention the new module 'send'.
35746         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35747         * doc/posix-functions/setsockopt.texi: Mention the new module
35748         'setsockopt'.
35749         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35750         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35751         listen, connect, accept.
35752         * modules/select-tests (Depends-on): Likewise.
35753
35754 2008-10-05  Bruno Haible  <bruno@clisp.org>
35755
35756         * lib/winsock.c (strerror): Remove unused #undef.
35757         (rpl_close): Remove unused local variable.
35758
35759         * modules/sys_socket (Depends-on); Add errno.
35760
35761 2008-10-05  Bruno Haible  <bruno@clisp.org>
35762
35763         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35764         (select): Add a link warning when the 'select' module is not used.
35765         * modules/sys_select (Depends-on): Add link-warning.
35766         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35767         Suggested by Paolo Bonzini.
35768
35769 2008-10-05  Jim Meyering  <meyering@redhat.com>
35770
35771         bootstrap: check for LT_INIT more portably
35772         * build-aux/bootstrap: Avoid using grep -E, since it's not
35773         portable enough.  Suggestion from Bruno Haible.
35774
35775 2008-10-05  Bruno Haible  <bruno@clisp.org>
35776
35777         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35778         as being fixed by gnulib.
35779
35780 2008-10-05  Bruno Haible  <bruno@clisp.org>
35781
35782         * modules/select-tests: New file, mostly copied from
35783         modules/sys_select-tests.
35784         * tests/test-select.c: New file, mostly copied from
35785         tests/test-sys_select.c.
35786         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35787         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35788         (Makefile.am): Remove test_sys_select_LDADD.
35789
35790         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35791         to an undefined symbol, for an error message.
35792         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35793         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35794         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35795         winsock-select.c here.
35796         * modules/sys_select (Files): Remove lib/winsock-select.c.
35797         (Depends-on): Remove alloca.
35798         (Makefile.am): Substitute GNULIB_SELECT.
35799         * modules/select: New file.
35800         * doc/posix-functions/select.texi: Update.
35801
35802 2008-10-05  Bruno Haible  <bruno@clisp.org>
35803
35804         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35805         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35806         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35807         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35808         getdtablesize.
35809         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35810         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35811
35812 2008-10-05  Bruno Haible  <bruno@clisp.org>
35813
35814         * modules/getdtablesize-tests: New file.
35815         * tests/test-getdtablesize.c: New file.
35816
35817         New module 'getdtablesize'.
35818         * lib/unistd.in.h (getdtablesize): New declaration.
35819         * lib/getdtablesize.c: New file.
35820         * m4/getdtablesize.m4: New file.
35821         * modules/getdtablesize: New file.
35822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35823         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35824         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35825         HAVE_GETDTABLESIZE.
35826         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35827
35828 2008-10-05  Bruno Haible  <bruno@clisp.org>
35829
35830         * modules/sched (Makefile.am): Fix typo.
35831         Reported by Simon Josefsson.
35832
35833 2008-10-05  Jim Meyering  <meyering@redhat.com>
35834
35835         bootstrap: check for LT_INIT, too
35836         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35837         are deprecated.  Suggestion from Ralf Wildenhues.
35838
35839 2008-10-05  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35842         overriding them by ours.
35843         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35844
35845 2008-10-05  Jim Meyering  <meyering@redhat.com>
35846
35847         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35848         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35849         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35850
35851 2008-10-04  Bruno Haible  <bruno@clisp.org>
35852
35853         * modules/dup2 (License): Change to LGPLv2+.
35854         * modules/sleep (License): Likewise.
35855         * modules/perror (License): Likewise.
35856         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35857         Blake.
35858         * modules/signal (License): Likewise.
35859         * modules/sigprocmask (License): Likewise.
35860         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35861         Meyering.
35862
35863 2008-10-04  Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35866         Reported by Rainer Tammer <tammer@tammer.net>.
35867
35868 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35869             Bruno Haible  <bruno@clisp.org>
35870
35871         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35872         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35873         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35874
35875 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35876
35877         filevercmp: new module
35878         * lib/filevercmp.h: New function filevercmp comparing version strings.
35879         * lib/filevercmp.c: Implementation of filevercmp function.
35880         * modules/filevercmp: Module metadata.
35881         * tests/test-filevercmp.c: Unit test for new module.
35882         * modules/filevercmp-tests: Unit test metadata.
35883         * MODULES.html.sh: Add filevercmp module.
35884
35885 2008-10-03  Bruno Haible  <bruno@clisp.org>
35886
35887         * lib/c-ctype.h: Add comment.
35888         Reported by Jim Meyering.
35889
35890 2008-10-02  Bruno Haible  <bruno@clisp.org>
35891
35892         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35893
35894 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35895
35896         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35897         name of bootstrap.conf accordingly.
35898
35899 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35900
35901         * build-aux/bootstrap: Install git-merge-changelog configuration
35902         items into .gitconfig if needed.
35903
35904 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35905
35906         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35907         git repository, and initialize/update it accordingly.
35908
35909 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35910
35911         * modules/fsync-tests: New file.
35912         * tests/test-fsync.c: New file.
35913
35914         New module 'fsync'.
35915         * lib/fsync.c: New file.
35916         * m4/fsync.m4: New file.
35917         * modules/fsync: New file.
35918         * lib/unistd.in.h (fsync): New declaration.
35919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35920         GNULIB_FSYNC and HAVE_FSYNC.
35921         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35922         * MODULES.html.sh (posix_functions): Add fsync.
35923         * doc/posix-functions/fsync.texi: Mention the new module.
35924
35925 2008-10-02  Jim Meyering  <meyering@redhat.com>
35926
35927         fts.c: sync with similar code from coreutils' remove.c
35928         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35929         Guard also with "#if defined __linux__", since for now at least,
35930         this code is Linux-kernel-specific.
35931
35932 2008-10-02  Jim Meyering  <meyering@redhat.com>
35933
35934         fts: bug fixes
35935         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35936         Include <sys/vfs.h>, not <sys/statfs.h>.
35937
35938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35939         Include <sys/vfs.h>, not <sys/statfs.h>.
35940
35941 2008-10-01  Bruno Haible  <bruno@clisp.org>
35942
35943         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35945         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35946         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35947         * doc/posix-functions/posix_spawnp.texi: Likewise.
35948         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35949         whether posix_spawn actually works.
35950         * m4/pipe.m4 (gl_PIPE): Likewise.
35951         * modules/execute (Files): Add m4/posix_spawn.m4.
35952         * modules/pipe (Files): Add m4/posix_spawn.m4.
35953         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35954
35955 2008-10-01  Jim Meyering  <meyering@redhat.com>
35956
35957         remove trailing spaces
35958         * NEWS: Likewise.
35959         * lib/poll.c (poll): Likewise.
35960         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35961         * lib/winsock.c (rpl_close): Likewise.
35962         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35963         * modules/yield: Likewise.
35964         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35965         * tests/test-sys_select.c (connect_to_socket): Likewise.
35966
35967         fts.c: adjust a new interface to be more generally useful
35968         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35969         (fts_build): Adjust caller.
35970
35971 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35972
35973         * modules/cond-tests: New file.
35974         * tests/test-cond.c: New file.
35975
35976 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35977             Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/cond (Dependencies): Add errno, time.
35980         * lib/glthread/cond.h: Include <time.h>.
35981         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35982         across platforms.
35983
35984 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35985             Bruno Haible  <bruno@clisp.org>
35986
35987         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35988
35989 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35990             Bruno Haible  <bruno@clisp.org>
35991
35992         * modules/tls-tests (Depends-on): Add thread, yield.
35993         (configure.ac): Remove all checks.
35994         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35995         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35996         gl_thread_self): Remove definitions. Include glthread/thread.h and
35997         glthread/yield.h instead.
35998         (test_tls): Pass an additional NULL argument to gl_thread_join.
35999
36000 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36001             Bruno Haible  <bruno@clisp.org>
36002
36003         * modules/lock-tests (Depends-on): Add thread, yield.
36004         (configure.ac): Remove all checks.
36005         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36006         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36007         gl_thread_self): Remove definitions. Include glthread/thread.h and
36008         glthread/yield.h instead.
36009         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36010         additional NULL argument to gl_thread_join.
36011
36012 2008-09-30  Bruno Haible  <bruno@clisp.org>
36013
36014         Fix the Win32 implementation of the 'thread' module.
36015         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36016         pointer type.
36017         (gl_thread_self): Invoke gl_thread_self_func.
36018         (gl_thread_self_func): New declaration.
36019         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36020         (do_init_self_key, init_self_key): New functions.
36021         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36022         Remove some fields.
36023         (running_threads, running_lock): Remove variables.
36024         (get_current_thread_handle): New function.
36025         (gl_thread_self_func, wrapper_func, glthread_create_func,
36026         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36027         simplified.
36028
36029 2008-09-30  Bruno Haible  <bruno@clisp.org>
36030
36031         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36032         files.
36033
36034 2008-09-30  Jim Meyering  <meyering@redhat.com>
36035
36036         fts.m4: correct the test for statfs.f_type
36037         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36038         when checking for statfs.f_type.
36039
36040 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36041
36042         tests: avoid some compiler warnings
36043         * tests/test-memchr.c (main): Pass NULL indirectly.
36044         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36045
36046 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36047
36048         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36049         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36050         exactly specified dayshifts.
36051         (dayshift): New rule.
36052         (rel): Add dayshift.
36053         (relative_time_table) [tomorrow, yesterday, today, now]:
36054         Use tDAY_SHIFT in place of tDAY_UNIT.
36055         * tests/test-getdate.c: Add tests for now-disallowed countable
36056         dayshifts, e.g., "4 yesterday ago".
36057
36058 2008-09-29  Bruno Haible  <bruno@clisp.org>
36059
36060         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36061         * tests/test-posix_spawn1.in.sh: Renamed from
36062         tests/test-posix_spawn.in.sh.
36063         * tests/test-posix_spawn2.c: New file.
36064         * tests/test-posix_spawn2.in.sh: New file.
36065         * modules/posix_spawnp-tests (Files): Update.
36066         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36067
36068 2008-09-29  Bruno Haible  <bruno@clisp.org>
36069
36070         Propagate effects of putenv/setenv/unsetenv to child processes.
36071         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36072         * lib/pipe.c (create_pipe): Likewise.
36073
36074 2008-09-29  Bruno Haible  <bruno@clisp.org>
36075
36076         Enable use of shell scripts as executables in mingw.
36077         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36078         run the program as a shell script.
36079         * lib/pipe.c (create_pipe): Likewise.
36080         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36081         resulting array.
36082
36083 2008-09-29  Eric Blake  <ebb9@byu.net>
36084
36085         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36086
36087 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36088
36089         * doc/posix-functions/accept.texi: Update mingw problems.
36090         * doc/posix-functions/bind.texi: Update mingw problems.
36091         * doc/posix-functions/close.texi: Update mingw problems.
36092         * doc/posix-functions/connect.texi: Update mingw problems.
36093         * doc/posix-functions/getpeername.texi: Update mingw problems.
36094         * doc/posix-functions/getsockname.texi: Update mingw problems.
36095         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36096         * doc/posix-functions/ioctl.texi: Update mingw problems.
36097         * doc/posix-functions/listen.texi: Update mingw problems.
36098         * doc/posix-functions/recv.texi: Update mingw problems.
36099         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36100         * doc/posix-functions/select.texi: Update mingw problems.
36101         * doc/posix-functions/send.texi: Update mingw problems.
36102         * doc/posix-functions/sendto.texi: Update mingw problems.
36103         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36104         * doc/posix-functions/socket.texi: Update mingw problems.
36105
36106 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36107             Bruno Haible  <bruno@clisp.org>
36108
36109         * lib/sys_select.in.h: Include sys/time.h.
36110         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36111         * modules/sys_select: Depend on sys_time.
36112         * tests/test-sys_select.c: Test that sys/select.h defines struct
36113         timeval fully.
36114
36115 2008-09-29  Bruno Haible  <bruno@clisp.org>
36116
36117         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36118         * lib/sys_select.in.h: Likewise.
36119
36120 2008-09-29  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36123
36124 2008-09-29  Bruno Haible  <bruno@clisp.org>
36125
36126         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36127         Set LIBSOCKET instead of augmenting LIBS.
36128         * modules/sockets (Link): New section.
36129         * modules/sockets-tests (test_sockets_LDADD): New variable.
36130         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36131         * modules/poll-tests (test_poll_LDADD): New variable.
36132         * NEWS: Document the change.
36133
36134 2008-09-29  Bruno Haible  <bruno@clisp.org>
36135
36136         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36137         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36138         ARPA_INET_H directly.
36139         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36140
36141 2008-09-28  Bruno Haible  <bruno@clisp.org>
36142
36143         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36144         from gl_HEADER_SYS_SOCKET.
36145         (gl_HEADER_SYS_SOCKET): Invoke it.
36146         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36147
36148 2008-09-28  Bruno Haible  <bruno@clisp.org>
36149
36150         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36151         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36152         Needed on OSF/1 4.0.
36153
36154 2008-09-28  Bruno Haible  <bruno@clisp.org>
36155
36156         Override open more carefully.
36157         * lib/open.c (orig_open): New function.
36158         (rpl_open): Use orig_open instead of open.
36159         * lib/fcntl.in.h: Add special invocation convention.
36160         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36161         (gl_FUNC_OPEN): Invoke it.
36162
36163         Override freopen more carefully.
36164         * lib/freopen.c (orig_freopen): New function.
36165         (rpl_freopen): Use orig_freopen instead of freopen.
36166         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36167         (gl_FUNC_FREOPEN): Invoke it.
36168
36169         Override fopen more carefully.
36170         * lib/fopen.c (orig_fopen): New function.
36171         (rpl_fopen): Use orig_fopen instead of fopen.
36172         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36173         (gl_FUNC_FOPEN): Invoke it.
36174         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36175
36176 2008-09-28  Bruno Haible  <bruno@clisp.org>
36177
36178         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36179         SIGPIPE.
36180
36181 2008-09-28  Bruno Haible  <bruno@clisp.org>
36182
36183         * tests/test-sigaction.c (handler, main): Disable the check whether
36184         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36185         glibc systems with LinuxThreads.
36186
36187 2008-09-28  Bruno Haible  <bruno@clisp.org>
36188
36189         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36190
36191         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36192         with AIX xlc.
36193         * lib/fcntl.in.h (open): Likewise.
36194         Reported by Rainer Tammer <tammer@tammer.net>.
36195
36196 2008-09-28  Bruno Haible  <bruno@clisp.org>
36197
36198         * modules/posix_spawnp-tests: New file.
36199         * tests/test-posix_spawn.c: New file.
36200         * tests/test-posix_spawn.in.sh: New file.
36201
36202         New module 'posix_spawnp'.
36203         * modules/posix_spawnp: New file.
36204         * lib/spawnp.c: New file, from GNU libc with modifications.
36205         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36206
36207         New module 'posix_spawn'.
36208         * modules/posix_spawn: New file.
36209         * lib/spawn.c: New file, from GNU libc with modifications.
36210         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36211
36212         New module 'posix_spawnattr_destroy'.
36213         * modules/posix_spawnattr_destroy: New file.
36214         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36215         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36216         module.
36217
36218         New module 'posix_spawnattr_setsigmask'.
36219         * modules/posix_spawnattr_setsigmask: New file.
36220         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36221         modifications.
36222         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36223         new module.
36224
36225         New module 'posix_spawnattr_getsigmask'.
36226         * modules/posix_spawnattr_getsigmask: New file.
36227         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36228         modifications.
36229         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36230         new module.
36231
36232         New module 'posix_spawnattr_setsigdefault'.
36233         * modules/posix_spawnattr_setsigdefault: New file.
36234         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36235         modifications.
36236         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36237         new module.
36238
36239         New module 'posix_spawnattr_getsigdefault'.
36240         * modules/posix_spawnattr_getsigdefault: New file.
36241         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36242         modifications.
36243         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36244         new module.
36245
36246         New module 'posix_spawnattr_setschedpolicy'.
36247         * modules/posix_spawnattr_setschedpolicy: New file.
36248         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36249         modifications.
36250         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36251         new module.
36252
36253         New module 'posix_spawnattr_getschedpolicy'.
36254         * modules/posix_spawnattr_getschedpolicy: New file.
36255         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36256         modifications.
36257         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36258         new module.
36259
36260         New module 'posix_spawnattr_setschedparam'.
36261         * modules/posix_spawnattr_setschedparam: New file.
36262         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36263         modifications.
36264         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36265         new module.
36266
36267         New module 'posix_spawnattr_getschedparam'.
36268         * modules/posix_spawnattr_getschedparam: New file.
36269         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36270         modifications.
36271         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36272         new module.
36273
36274         New module 'posix_spawnattr_setpgroup'.
36275         * modules/posix_spawnattr_setpgroup: New file.
36276         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36277         modifications.
36278         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36279         module.
36280
36281         New module 'posix_spawnattr_getpgroup'.
36282         * modules/posix_spawnattr_getpgroup: New file.
36283         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36284         modifications.
36285         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36286         module.
36287
36288         New module 'posix_spawnattr_setflags'.
36289         * modules/posix_spawnattr_setflags: New file.
36290         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36291         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36292         module.
36293
36294         New module 'posix_spawnattr_getflags'.
36295         * modules/posix_spawnattr_getflags: New file.
36296         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36297         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36298         module.
36299
36300         New module 'posix_spawnattr_init'.
36301         * modules/posix_spawnattr_init: New file.
36302         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36303         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36304         module.
36305
36306         New module 'posix_spawn_file_actions_destroy'.
36307         * modules/posix_spawn_file_actions_destroy: New file.
36308         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36309         modifications.
36310         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36311         the new module.
36312
36313         New module 'posix_spawn_file_actions_addopen'.
36314         * modules/posix_spawn_file_actions_addopen: New file.
36315         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36316         modifications.
36317         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36318         the new module.
36319
36320         New module 'posix_spawn_file_actions_adddup2'.
36321         * modules/posix_spawn_file_actions_adddup2: New file.
36322         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36323         modifications.
36324         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36325         the new module.
36326
36327         New module 'posix_spawn_file_actions_addclose'.
36328         * modules/posix_spawn_file_actions_addclose: New file.
36329         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36330         modifications.
36331         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36332         the new module.
36333
36334         New module 'posix_spawn_file_actions_init'.
36335         * modules/posix_spawn_file_actions_init: New file.
36336         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36337         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36338         new module.
36339
36340         New module 'posix_spawn-internal'.
36341         * modules/posix_spawn-internal: New file.
36342         * lib/spawn_int.h: New file, from GNU libc with modifications.
36343         * lib/spawni.c: New file, from GNU libc with modifications.
36344         * m4/posix_spawn.m4: New file.
36345
36346         New module 'spawn'.
36347         * modules/spawn: New file.
36348         * lib/spawn.in.h: New file, from GNU libc with modifications.
36349         * m4/spawn_h.m4: New file.
36350         * doc/posix-headers/spawn.texi: Mention the new module.
36351
36352 2008-09-28  Bruno Haible  <bruno@clisp.org>
36353
36354         * modules/sched-tests: New file.
36355         * tests/test-sched.c: New file.
36356
36357         New module 'sched'.
36358         * modules/sched: New file.
36359         * lib/sched.in.h: New file.
36360         * m4/sched_h.m4: New file.
36361         * doc/posix-headers/sched.texi: Mention the new module.
36362
36363 2008-09-27  Eric Blake  <ebb9@byu.net>
36364
36365         Fix previous patch, and tweak references to $0.
36366         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36367         (func_version, func_gnulib_dir): Don't call this program
36368         gnulib-tool.
36369         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36370         with using $0 in function.
36371         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36372         (func_fatal_error): Reuse the name the user invoked us with.
36373
36374 2008-09-27  Bruno Haible  <bruno@clisp.org>
36375
36376         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36377         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36378         (gl_ICONV_H): Not here.
36379         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36380         instead of assigning ICONV_H directly.
36381
36382         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36384         WCHAR_H directly.
36385
36386 2008-09-27  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36389         * modules/arpa_inet (Depends-on): Add link-warning.
36390         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36391         * modules/unistd (Makefile.am): Likewise.
36392
36393 2008-09-26  Bruno Haible  <bruno@clisp.org>
36394
36395         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36396         variables.
36397         (func_version): Essentially copied from gnulib-tool.
36398         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36399         func_readlink): Copied from gnulib-tool.
36400
36401 2008-09-26  Bruno Haible  <bruno@clisp.org>
36402
36403         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36404         invoking git-version-gen.
36405
36406 2008-09-26  Bruno Haible  <bruno@clisp.org>
36407
36408         * posix-modules: Update to directory names changed on 2008-01-19.
36409         Remove commas in output before splitting into words. No more need to
36410         avoid 'ftruncate' since 2007-02-19.
36411
36412 2008-09-26  Bruno Haible  <bruno@clisp.org>
36413
36414         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36415
36416 2008-09-26  Bruno Haible  <bruno@clisp.org>
36417
36418         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36419         * modules/fwriteerror (Depends-on): Add errno.
36420
36421 2008-09-26  Bruno Haible  <bruno@clisp.org>
36422
36423         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36424         * tests/test-vc-list-files-cvs.sh: Likewise.
36425
36426 2008-09-26  Bruno Haible  <bruno@clisp.org>
36427
36428         * doc/posix-headers/sys_resource.texi: Reorder items.
36429
36430 2008-09-26  Jim Meyering  <meyering@redhat.com>
36431
36432         fts: tweak inode comparison function
36433         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36434         inode numbers, as documented.
36435
36436         fts: sort dirent entries on inode number before traversing
36437         This avoids a quadratic, seek-related performance penalty when
36438         operating on a directory containing many entries (measurable at 10k;
36439         3.5 hours at 2 million entries with a cold cache) on certain types
36440         of file systems, including ext3 and ext4, but not tmpfs.
36441         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36442         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36443         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36444         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36445         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36446         (fts_build): Set the stat.st_ino member from D_INO.
36447         If it is likely to be useful, sort dirent entries on inode number.
36448
36449         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36450         and the struct statfs.f_type member.
36451         * modules/fts (Depends-on): Add d-ino.
36452
36453 2008-09-26  Bruno Haible  <bruno@clisp.org>
36454
36455         * modules/sigpipe-die (Depends-on): Add sigpipe.
36456
36457         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36458         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36459         and GNULIB_STDIO_H_SIGPIPE are set.
36460         * lib/stdio-write.c: New file.
36461         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36462         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36463         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36464         REPLACE_STDIO_WRITE_FUNCS.
36465         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36466         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36467         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36468         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36469         * modules/stdio (Files): Add lib/stdio-write.c.
36470         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36471         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36472         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36473         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36474         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36475         REPLACE_FPRINTF_POSIX.
36476         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36477         REPLACE_PRINTF_POSIX.
36478         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36479         REPLACE_VFPRINTF_POSIX.
36480         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36481         REPLACE_VPRINTF_POSIX.
36482         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36483         SIGPIPE issue.
36484         * doc/posix-functions/fputc.texi: Likewise.
36485         * doc/posix-functions/fputs.texi: Likewise.
36486         * doc/posix-functions/fwrite.texi: Likewise.
36487         * doc/posix-functions/printf.texi: Likewise.
36488         * doc/posix-functions/putc.texi: Likewise.
36489         * doc/posix-functions/putchar.texi: Likewise.
36490         * doc/posix-functions/puts.texi: Likewise.
36491         * doc/posix-functions/vfprintf.texi: Likewise.
36492         * doc/posix-functions/vprintf.texi: Likewise.
36493
36494         * modules/safe-write (Depends-on): Add write.
36495
36496         * modules/sigpipe-tests: New file.
36497         * tests/test-sigpipe.c: New file.
36498         * tests/test-sigpipe.sh: New file.
36499
36500         * modules/write: New file.
36501         * lib/unistd.in.h: Include <sys/types.h>.
36502         (write): New declaration.
36503         * lib/write.c: New file.
36504         * m4/write.m4: New file.
36505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36506         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36507         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36508         GNULIB_WRITE, REPLACE_WRITE.
36509         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36510         and the SIGPIPE issue.
36511
36512         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36513         (raise): New declaration.
36514         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36515         (ext_signal): New function.
36516         (rpl_raise): New function.
36517         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36518         GNULIB_SIGNAL_H_SIGPIPE.
36519         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36520         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36521
36522         * modules/sigpipe: New file.
36523         * m4/sigpipe.m4: New file.
36524
36525 2008-09-25  Derek Price  <derek@ximbiot.com>
36526             Bruno Haible  <bruno@clisp.org>
36527
36528         * gnulib-tool (func_import): Report all license incompatibilities, not
36529         just the first one.
36530
36531 2008-09-25  Bruno Haible  <bruno@clisp.org>
36532
36533         * gnulib-tool (func_import): When computing the edits, consider not
36534         only the Makefile.ams that exist but also those that will be generated.
36535
36536 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36537
36538         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36539         fixes gnulib-tool --test warning about duplicate dependency.
36540
36541 2008-09-25  Bruno Haible  <bruno@clisp.org>
36542
36543         * gnulib-tool: Don't ask the user to perform edits in the generated
36544         Makefile.ams.
36545         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36546         apply to the Makefile.am being generated.
36547         (func_emit_tests_Makefile_am): Execute edits that apply to the
36548         Makefile.am being generated.
36549         (func_import): Setup list of Makefile.am edits before emitting the
36550         Makefile.ams, not at the end.
36551         (func_create_testdir): Update.
36552         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36553
36554 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36555
36556         * gnulib-tool (func_import): Store the --tests-base option in the
36557         comment in gnulib-cache.m4.
36558
36559 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36560
36561         * NEWS: Document increased portability that sys_select now provides.
36562
36563         * lib/sys_select.in.h: Install select wrapper.
36564         * lib/sys_socket.in.h: Use more descriptive name when there is no
36565         select wrapper.
36566         * lib/winsock-select.c: New.
36567         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36568         Require gl_HEADER_SYS_SOCKET.
36569         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36570         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36571         * tests/test-sys_select.c: Add functional tests.
36572
36573 2008-09-24  Eric Blake  <ebb9@byu.net>
36574
36575         open, fopen: close fd leak in last patch
36576         * lib/open.c (rpl_open): Close fd before returning error.
36577         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36578         * doc/posix-functions/open.texi (open): Document that Irix also
36579         has the bug.
36580         * doc/posix-functions/fopen.texi (fopen): Likewise.
36581         Reported by Paolo Bonzini.
36582
36583 2008-09-24  Bruno Haible  <bruno@clisp.org>
36584
36585         Ensure that a filename ending in a slash cannot be used to access a
36586         non-directory.
36587         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36588         to check whether it's really a directory.
36589         * lib/fopen.c: Include fcntl.h, unistd.h.
36590         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36591         and fdopen().
36592         * modules/fopen (Depends-on): Add unistd.
36593         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36594         * tests/test-fopen.c (main): Likewise.
36595         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36596         * doc/posix-functions/fopen.texi: Likewise.
36597         Reported by Eric Blake.
36598
36599 2008-09-23  Eric Blake  <ebb9@byu.net>
36600
36601         c-stack: avoid compiler optimizations when provoking overflow
36602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36603         recursion harder to optimize, to ensure a stack overflow occurs.
36604         * tests/test-c-stack.c (recurse): Likewise.
36605         Borrowed from libsigsegv.
36606
36607         c-stack: work around Irix sigaltstack bug
36608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36609         whether sigaltstack uses wrong end of stack_t (copied in part from
36610         libsigsegv).
36611         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36612         Irix bug, without requiring an over-allocation.
36613         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36614         bug.
36615
36616         fopen: document mingw bug on directories
36617         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36618         not allowing a stream visiting a directory, even though reading
36619         from such a stream is not portable.
36620
36621 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36622
36623         * lib/poll.c: Rewrite.
36624         * modules/poll: Depend on alloca.
36625
36626 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36627
36628         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36629         instead define prototypes for a full set of wrappers.  Ensure
36630         that Cygwin does not use the compatibility code, which is only
36631         for MinGW.
36632         * lib/winsock.c: New.
36633         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36634         * modules/sys_socket: Add lib/winsock.c.
36635
36636         * modules/poll-tests: Add errno and perror.
36637         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36638
36639 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36640
36641         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36642
36643 2008-09-23  Bruno Haible  <bruno@clisp.org>
36644
36645         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36646         * doc/glibc-functions/*: Likewise.
36647
36648 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36649
36650         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36651         success.
36652
36653 2008-09-22  Eric Blake  <ebb9@byu.net>
36654             Bruno Haible  <bruno@clisp.org>
36655
36656         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36657         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36658         supply %A but mishandle pseudo-NaN.
36659         Reported by Simon Josefsson.
36660
36661 2008-09-21  Bruno Haible  <bruno@clisp.org>
36662
36663         * tests/test-lock.c (main): Tweak skip message.
36664         * tests/test-tls.c (main): Likewise.
36665
36666 2008-09-21  Bruno Haible  <bruno@clisp.org>
36667
36668         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36669         whether 'struct sigaction' has sa_sigaction here...
36670         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36671         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36672
36673 2008-09-21  Bruno Haible  <bruno@clisp.org>
36674
36675         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36676         section.
36677         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36678         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36679         the new section.
36680         (Support for obsolete systems lacking POSIX:2001): New section.
36681         (String handling <string.h>): Move strdup to the new section.
36682         Suggested by Simon Josefsson and Paolo Bonzini.
36683
36684 2008-09-21  Bruno Haible  <bruno@clisp.org>
36685
36686         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36687         exponents in %e and %g results on 'long double'. Needed for mingw's
36688         improved *printf functions.
36689         * tests/test-vasprintf-posix.c (test_function): Likewise.
36690         * tests/test-snprintf-posix.h (test_function): Likewise.
36691         * tests/test-sprintf-posix.h (test_function): Likewise.
36692         Reported by Eric Blake.
36693
36694 2008-09-21  Bruno Haible  <bruno@clisp.org>
36695
36696         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36697         * tests/test-sprintf-posix.h (test_function): Likewise.
36698
36699 2008-09-21  Bruno Haible  <bruno@clisp.org>
36700
36701         * modules/getpass (Depends-on): Add strdup-posix.
36702
36703         New module 'strdup-posix'.
36704         * modules/strdup-posix: New file.
36705         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36706         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36708         REPLACE_STRDUP.
36709         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36710         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36712         strdup-posix.
36713
36714         * modules/strdup (Depends-on): Remove malloc-posix.
36715
36716 2008-09-20  Bruno Haible  <bruno@clisp.org>
36717
36718         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36719         Wildenhues.
36720
36721 2008-09-20  Bruno Haible  <bruno@clisp.org>
36722
36723         Ensure that wint_t gets defined on IRIX 5.3.
36724         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36725         * lib/wctype.in.h (wint_t): Likewise.
36726         (__wctype_wint_t): Remove type.
36727         (isw*): Use wint_t instead of __wctype_wint_t.
36728         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36729         * modules/wchar (Files): Add m4/wint_t.m4.
36730         (Makefile.am): Substitute HAVE_WINT_T.
36731         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36732         * tests/test-wctype.c: Check that wint_t is defined.
36733         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36734         * doc/posix-headers/wctype.texi: Likewise.
36735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36736
36737 2008-09-18  Bruno Haible  <bruno@clisp.org>
36738
36739         * gnulib-tool (func_exit): Update comment.
36740
36741 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36742
36743         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36744         assumes strdup exists and does not depend on strdup to return
36745         ENOMEM on out of memory conditions.
36746
36747 2008-09-18  Bruno Haible  <bruno@clisp.org>
36748
36749         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36750         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36751         digits for the exponent.
36752
36753 2008-09-18  Jim Meyering  <meyering@redhat.com>
36754             Bruno Haible  <bruno@clisp.org>
36755
36756         * lib/vasnprintf.c (decimal_point_char): Define also if
36757         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36758
36759 2008-09-16  Bruno Haible  <bruno@clisp.org>
36760         and Eric Blake  <ebb9@byu.net>
36761
36762         vasnprintf: support Irix 5.3
36763         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36764         that mishandle long double infinity.
36765         Reported by Tom G. Christensen.
36766
36767 2008-09-16  Bruno Haible  <bruno@clisp.org>
36768
36769         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36770         Solaris 9.
36771         * doc/glibc-functions/alphasort.texi: Likewise.
36772         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36773
36774 2008-09-16  Jim Meyering  <meyering@redhat.com>
36775
36776         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36777         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36778         a umask modification leak out of a subshell.  Otherwise, the
36779         opensolaris /bin/sh would be accepted and thus cause unwarranted
36780         failures in the coreutils test suite.
36781
36782 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36783
36784         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36785         to succeed.
36786
36787 2008-09-16  Jim Meyering  <meyering@redhat.com>
36788
36789         avoid spurious test failure when library is built without ACL support
36790         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36791         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36792         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36793         * tests/test-copy-acl.sh: Likewise.
36794
36795 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36796
36797         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36798         based on character occurrence counts.
36799
36800 2008-09-15  Eric Blake  <ebb9@byu.net>
36801
36802         tests: avoid some compiler warnings
36803         * tests/test-memchr.c (main): Pass NULL indirectly.
36804         * tests/test-closein.c (main): Avoid unused variable.
36805
36806 2008-09-15  Bruno Haible  <bruno@clisp.org>
36807
36808         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36809         are missing on OpenBSD 4.0 individually.
36810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36811
36812 2008-09-15  Bruno Haible  <bruno@clisp.org>
36813
36814         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36815         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36816         * doc/posix-functions/perror.texi: Likewise.
36817         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36818         is missing.
36819         Reported by Eric Blake.
36820
36821         * lib/errno.in.h: Use replacement values >= 2000.
36822         Reported by Eric Blake.
36823
36824 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36825
36826         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36827         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36828         limit.
36829         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36830         compareseq was aborted.
36831
36832 2008-09-14  Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36835         yvec_edit_count.
36836         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36837         (fstrcmp_bounded): Simplify result computation accordingly.
36838
36839 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36840
36841         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36842         (fstrcmp): Define in terms of fstrcmp_bounded.
36843         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36844         lower_bound argument.
36845         Return quickly if the result is certainly < lower_bound.
36846         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36847
36848 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36849
36850         * lib/diffseq.h (EARLY_ABORT): New macro.
36851         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36852         evaluates to true.
36853
36854 2008-09-14  Bruno Haible  <bruno@clisp.org>
36855
36856         * modules/perror-tests: New file.
36857         * tests/test-perror.sh: New file.
36858         * tests/test-perror.c: New file.
36859
36860         New module 'perror'.
36861         * lib/stdio.in.h (perror): New declaration.
36862         * lib/perror.c: New file.
36863         * m4/perror.m4: New file.
36864         * modules/perror: New file.
36865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36866         * doc/posix-functions/perror.texi: Mention the perror module.
36867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36868         REPLACE_PERROR.
36869         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36870         REPLACE_PERROR.
36871
36872 2008-09-14  Bruno Haible  <bruno@clisp.org>
36873
36874         * modules/stdio (Makefile.am): Reorder to match the order in
36875         lib/stdio.in.h.
36876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36877
36878 2008-09-13  Bruno Haible  <bruno@clisp.org>
36879
36880         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36881
36882 2008-09-13  Bruno Haible  <bruno@clisp.org>
36883
36884         Extend strerror to cover the added errno values.
36885         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36886         (rpl_strerror): Provide error messages for the added errno values and
36887         for the WSA* values.
36888         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36889         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36890         strerror.
36891         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36892         * modules/strerror (Depends-on): Add errno.
36893         * doc/posix-functions/strerror.texi: Document the change.
36894         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36895         and EOVERFLOW.
36896
36897 2008-09-13  Bruno Haible  <bruno@clisp.org>
36898
36899         * modules/EOVERFLOW: Remove file.
36900         * m4/eoverflow.m4: Remove file.
36901         * modules/EOVERFLOW-tests: Remove file.
36902         * tests/test-EOVERFLOW.c: Remove file.
36903         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36904         * modules/ftell (Depends-on): Likewise.
36905         * modules/getdelim (Depends-on): Likewise.
36906         * modules/getugroups (Depends-on): Likewise.
36907         * modules/poll (Depends-on): Likewise.
36908         * modules/snprintf (Depends-on): Likewise.
36909         * modules/sprintf-posix (Depends-on): Likewise.
36910         * modules/vasnprintf (Depends-on): Likewise.
36911         * modules/vasprintf (Depends-on): Likewise.
36912         * modules/vfprintf-posix (Depends-on): Likewise.
36913         * modules/vsnprintf (Depends-on): Likewise.
36914         * modules/vsprintf-posix (Depends-on): Likewise.
36915         * modules/xvasprintf (Depends-on): Likewise.
36916         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36917         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36918         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36919         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36920         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36921         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36922         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36923         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36924         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36925         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36926         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36927         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36928         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36929         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36930         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36931         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36932         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36933         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36934         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36935         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36936         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36937         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36938         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36939         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36940         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36941         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36942         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36943         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36944         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36945         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36946         * MODULES.html.sh: Remove EOVERFLOW.
36947         * NEWS: Mention the change.
36948
36949 2008-09-13  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/errno-tests: New file.
36952         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36953
36954         * lib/errno.in.h: New file.
36955         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36956         * modules/errno: New file.
36957         * doc/posix-headers/errno.texi: Update documentation.
36958         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36959
36960 2008-09-13  Bruno Haible  <bruno@clisp.org>
36961
36962         * tests/test-poll.c: Use #if for native Windows, rather than testing
36963         __MSVCRT__.
36964
36965 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36966             Bruno Haible  <bruno@clisp.org>
36967
36968         * lib/glob.c: Don't include <pwd.h> on native Windows.
36969         (WINDOWS32): New macro.
36970         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36971
36972 2008-09-13  Bruno Haible  <bruno@clisp.org>
36973
36974         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36975         (ETIMEDOUT): Remove macro.
36976         (glthread_cond_timedwait_multithreaded): New declaration.
36977         (glthread_cond_timedwait): Use it.
36978         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36979         (glthread_cond_timedwait_multithreaded): New function.
36980
36981 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36982
36983         * modules/poll-tests: Do not check for io.h.
36984         * tests/test-poll.c: Check for __MSVCRT__ instead.
36985
36986 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36987
36988         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36989         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36990         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36991
36992 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36993
36994         * modules/poll-tests: New.
36995         * tests/test-poll.c: New.
36996
36997 2008-09-12  Eric Blake  <ebb9@byu.net>
36998
36999         frexp: test for NetBSD failure on -0.0
37000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37001         not all, bugs from NetBSD 3.0 have been fixed.
37002         * doc/posix-functions/frexp.texi (frexp): Document bug.
37003         Reported by Thomas Klausner.
37004
37005         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37006         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37007         literal -0.0.
37008         Reported by Jonathan C. Patschke <jp@centtech.com>.
37009
37010 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37011
37012         * lib/glthread/cond.h: Use dummy implementation also if
37013         USE_WIN32_THREADS.
37014
37015 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37016
37017         * modules/fnmatch-posix (License): Change to LGPLv2+.
37018         * modules/fnmatch-gnu (License): Likewise.
37019
37020 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37021
37022         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37023
37024 2008-09-11  Jim Meyering  <meyering@redhat.com>
37025
37026         * users.txt: Add gtk-vnc.
37027
37028 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37029
37030         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37031         rotate amounts.
37032
37033         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37034         required for 16-bit and 8-bit rotates.
37035         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37036         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37037         UINT8_MAX instead of hard-coded constants.
37038         Suggested by Paul Eggert.
37039
37040 2008-09-07  Bruno Haible  <bruno@clisp.org>
37041
37042         * tests/test-striconveh.c (main): Check behaviour when converting from
37043         UTF-7.
37044
37045         Make striconveh work better with stateful encodings.
37046         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37047         that iconv does not increment the inptr when returning -1/EINVAL.
37048
37049 2008-09-07  Bruno Haible  <bruno@clisp.org>
37050
37051         * build-aux/config.rpath: Update according to libtool-2.2.6.
37052         * build-aux/config.libpath: Likewise.
37053
37054 2008-09-06  Bruno Haible  <bruno@clisp.org>
37055
37056         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37057         * lib/freadptr.c (freadptr): Likewise.
37058         * lib/freadseek.c (freadptrinc): Likewise.
37059         Reported by Simon Josefsson.
37060
37061 2008-09-06  Bruno Haible  <bruno@clisp.org>
37062
37063         * modules/freadptr (License): Change to LGPLv2+.
37064         * modules/freadseek (License): Likewise.
37065         Suggested by Eric Blake.
37066
37067         * modules/memchr2 (License): Change to LGPLv2+.
37068         Approved by Eric Blake.
37069
37070 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37071             Bruno Haible  <bruno@clisp.org>
37072
37073         Make gnulib-tool work with native 'sed' on AIX.
37074         * gnulib-tool (sed_noop): New variable.
37075         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37076         func_add_or_update, func_create_testdir): Use it to initialize sed
37077         script variables.
37078         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37079
37080 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37081             Bruno Haible  <bruno@clisp.org>
37082
37083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37084         also works after #include directives.
37085
37086 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37087
37088         getdate.y: reject an out-of-range timezone value
37089         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37090         the range [-24...+24].  When specified with only one or two digits,
37091         * tests/test-getdate.c: Tests for the fix.
37092         * doc/getdate.texi: Document this change.
37093
37094 2008-09-03  Bruno Haible  <bruno@clisp.org>
37095
37096         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37097
37098 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37099
37100         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37101         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37102         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37103         Blake <ebb9@byu.net>.
37104
37105         * tests/test-bitrotate.c: Add more test vectors.
37106
37107 2008-09-02  Eric Blake  <ebb9@byu.net>
37108
37109         vasnprintf-posix: handle large precision via %.*d
37110         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37111         when handling it ourselves.
37112         * tests/test-vasnprintf-posix.c (test_function): Add test.
37113         * tests/test-snprintf-posix.h (test_function): Likewise.
37114         * tests/test-sprintf-posix.h (test_function): Likewise.
37115         * tests/test-vasprintf-posix.c (test_function): Likewise.
37116         Reported by Alain Guibert.
37117
37118 2008-09-01  Eric Blake  <ebb9@byu.net>
37119
37120         c-stack: make configure-time check more robust
37121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37122         successful sigaction call.
37123         Reported by Tom G. Christensen.
37124
37125 2008-09-01  Bruno Haible  <bruno@clisp.org>
37126
37127         New module 'findprog-lgpl'.
37128         * modules/findprog-lgpl: New file.
37129         * lib/findprog-lgpl.c: New file.
37130         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37131         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37132         to decide whether to use strdup or xstrdup, concatenated_filename or
37133         xconcatenated_filename.
37134
37135 2008-09-01  Bruno Haible  <bruno@clisp.org>
37136
37137         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37138         'xconcat-filename' (GPL).
37139         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37140         (License): Change to LGPLv2+.
37141         * modules/xconcat-filename: New file.
37142         * lib/concat-filename.h (concatenated_filename): Change specification.
37143         (xconcatenated_filename): New declaration.
37144         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37145         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37146         memory situations.
37147         * lib/xconcat-filename.c: New file.
37148         * NEWS: Mention the change.
37149         * lib/findprog.c: Include concat-filename.h, not filename.h.
37150         (find_in_path): Use xconcatenated_filename instead of
37151         concatenated_filename.
37152         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37153         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37154         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37155         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37156         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37157         instead of concatenated_filename.
37158         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37159         (execute_java_class): Use xconcatenated_filename instead of
37160         concatenated_filename.
37161         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37162         * modules/javacomp (Depends-on): Likewise.
37163         * modules/javaexec (Depends-on): Likewise.
37164
37165 2008-09-01  Bruno Haible  <bruno@clisp.org>
37166
37167         Split module 'filename' into 'filename' and 'concat-filename'.
37168         * modules/filename: Keep only lib/filename.h.
37169         (License): Change to LGPLv2+.
37170         * modules/concat-filename: New file, extracted from modules/filename.
37171         * lib/filename.h (concatenated_filename): Remove declaration.
37172         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37173         * lib/concat-filename.c: Include concat-filename.h.
37174         * NEWS: Mention the change.
37175
37176 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37177
37178         * lib/bitrotate.h (rotl8, rotr8): Add.
37179
37180         * modules/bitrotate (configure.ac): Need
37181         AC_REQUIRE([AC_C_INLINE]).
37182         (Description): Mention stdint.h.  Reported by Bruno Haible
37183         <bruno@clisp.org>.
37184
37185         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37186         Paolo Bonzini <bonzini@gnu.org>.
37187
37188 2008-08-31  Bruno Haible  <bruno@clisp.org>
37189
37190         Assume Solaris specific bi-arch conventions on Solaris systems.
37191         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37192         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37193         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37194         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37195         like acl_libdirstem.
37196         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37197         acl_libdirstem.
37198         * NEWS: Mention the change.
37199         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37200
37201 2008-08-31  Jim Meyering  <meyering@redhat.com>
37202
37203         * lib/strftime.h: Add comments describing the two added arguments.
37204
37205         remove duplicate #include directives
37206         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37207         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37208
37209 2008-08-31  Bruno Haible  <bruno@clisp.org>
37210
37211         New module 'sigpipe-die'.
37212         * modules/sigpipe-die: New file.
37213         * lib/sigpipe-die.h: New file.
37214         * lib/sigpipe-die.c: New file.
37215         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37216
37217 2008-08-31  Bruno Haible  <bruno@clisp.org>
37218
37219         Don't override previously installed signal handlers.
37220         * lib/fatal-signal.c (saved_sigactions): New variable.
37221         (uninstall_handlers): Reset the signal to the saved handler, not
37222         to SIG_DFL (except when ignored).
37223         (install_handlers): Save the previous handlers.
37224
37225 2008-08-30  Bruno Haible  <bruno@clisp.org>
37226
37227         * gnulib-tool (func_reset_sigpipe): New function.
37228         (func_get_automake_snippet, func_modules_transitive_closure,
37229         func_import): Invoke it before a join command that reads from stdin,
37230         to avoid "echo: write error: Broken pipe" error messages on stderr.
37231         Reported by Sam Steingold <sds@gnu.org>.
37232
37233 2008-08-30  Bruno Haible  <bruno@clisp.org>
37234
37235         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37236         Code copied from m4/open.m4.
37237         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37238         access and the filename ends in a slash. Code copied from lib/open.c.
37239         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37240         * tests/test-fopen.c (main): Check against bug with trailing slash.
37241
37242 2008-08-29  Bruno Haible  <bruno@clisp.org>
37243
37244         Avoid some "gcc -pedantic" warnings.
37245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37246         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37247         * lib/dirent.in.h: Likewise.
37248         * lib/fcntl.in.h: Likewise.
37249         * lib/float.in.h: Likewise.
37250         * lib/iconv.in.h: Likewise.
37251         * lib/inttypes.in.h: Likewise.
37252         * lib/locale.in.h: Likewise.
37253         * lib/math.in.h: Likewise.
37254         * lib/netinet_in.in.h: Likewise.
37255         * lib/search.in.h: Likewise.
37256         * lib/signal.in.h: Likewise.
37257         * lib/stdarg.in.h: Likewise.
37258         * lib/stdint.in.h: Likewise.
37259         * lib/stdio.in.h: Likewise.
37260         * lib/stdlib.in.h: Likewise.
37261         * lib/string.in.h: Likewise.
37262         * lib/strings.in.h: Likewise.
37263         * lib/sys_select.in.h: Likewise.
37264         * lib/sys_socket.in.h: Likewise.
37265         * lib/sys_stat.in.h: Likewise.
37266         * lib/sys_time.in.h: Likewise.
37267         * lib/sysexits.in.h: Likewise.
37268         * lib/time.in.h: Likewise.
37269         * lib/unistd.in.h: Likewise.
37270         * lib/wchar.in.h: Likewise.
37271         * lib/wctype.in.h: Likewise.
37272         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37273         * modules/fchdir (Makefile.am): Likewise.
37274         * modules/fcntl (Makefile.am): Likewise.
37275         * modules/float (Makefile.am): Likewise.
37276         * modules/iconv_open (Makefile.am): Likewise.
37277         * modules/inttypes (Makefile.am): Likewise.
37278         * modules/locale (Makefile.am): Likewise.
37279         * modules/math (Makefile.am): Likewise.
37280         * modules/netinet_in (Makefile.am): Likewise.
37281         * modules/search (Makefile.am): Likewise.
37282         * modules/signal (Makefile.am): Likewise.
37283         * modules/stdarg (Makefile.am): Likewise.
37284         * modules/stdint (Makefile.am): Likewise.
37285         * modules/stdio (Makefile.am): Likewise.
37286         * modules/stdlib (Makefile.am): Likewise.
37287         * modules/string (Makefile.am): Likewise.
37288         * modules/strings (Makefile.am): Likewise.
37289         * modules/sys_select (Makefile.am): Likewise.
37290         * modules/sys_socket (Makefile.am): Likewise.
37291         * modules/sys_stat (Makefile.am): Likewise.
37292         * modules/sys_time (Makefile.am): Likewise.
37293         * modules/sysexits (Makefile.am): Likewise.
37294         * modules/time (Makefile.am): Likewise.
37295         * modules/unistd (Makefile.am): Likewise.
37296         * modules/wchar (Makefile.am): Likewise.
37297         * modules/wctype (Makefile.am): Likewise.
37298         Reported by Reuben Thomas <rrt@sc3d.org>.
37299
37300 2008-08-29  Bruno Haible  <bruno@clisp.org>
37301
37302         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37303         any more.
37304
37305 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37306
37307         * MODULES.html.sh (Misc): Add bitrotate.
37308
37309         * modules/bitrotate: New file.
37310
37311         * lib/bitrotate.h: New file.
37312
37313         * modules/bitrotate-tests: New file.
37314
37315         * tests/test-bitrotate.c: New file.
37316
37317         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37318         on the bitrotate module.
37319
37320         * lib/arctwo.c: Use new bitrotate module.
37321
37322 2008-08-29  Jim Meyering  <meyering@redhat.com>
37323
37324         bootstrap: merge changes from coreutils
37325         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37326         of copied files.  Remove a kludge, now that this is fixed.
37327         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37328         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37329         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37330
37331 2008-08-29  Bruno Haible  <bruno@clisp.org>
37332
37333         * MODULES.html.sh: Remove --cvs-urls option.
37334
37335 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37336
37337         maint.mk: adjust to file name change
37338         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37339
37340 2008-08-28  Jim Meyering  <meyering@redhat.com>
37341
37342         * modules/getndelim2 (License): Relicense to LGPLv2+.
37343         Approved by Richard Stallman for the version of 1995, and by
37344         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37345
37346 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37347
37348         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37349         dummy if one is not available.  Do not touch them if
37350         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37351         (getc_maybe_unlocked): New.
37352         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37353
37354 2008-08-26  Eric Blake  <ebb9@byu.net>
37355
37356         doc/INSTALL: resync from autoconf
37357         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37358         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37359         moving...
37360         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37361         * INSTALL: Regenerate.
37362         * INSTALL.ISO: New file.
37363         * INSTALL.UTF-8: Likewise.
37364
37365 2008-08-26  Jim Meyering  <meyering@redhat.com>
37366
37367         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37368         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37369         these definitions conditional, so that they may be overridden, too.
37370
37371 2008-08-26  Bruno Haible  <bruno@clisp.org>
37372
37373         Generate INSTALL file variants with prettier quotes.
37374         * doc/Makefile (INSTALL_PRELUDE): New macro.
37375         (INSTALL): Use it.
37376         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37377
37378 2008-08-26  Bruno Haible  <bruno@clisp.org>
37379
37380         Run makeinfo in an English locale.
37381         * doc/Makefile (MAKEINFO): New variable.
37382
37383 2008-08-26  Bruno Haible  <bruno@clisp.org>
37384
37385         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37386         Suggested by Eric Blake.
37387
37388 2008-08-25  Bruno Haible  <bruno@clisp.org>
37389
37390         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37391
37392 2008-08-25  Eric Blake  <ebb9@byu.net>
37393
37394         c-stack: test that stack overflow can be caught
37395         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37396         that platform allows handling stack overflow; at least OS/2 EMX
37397         has sigaltstack, but crashes before transferring control to
37398         handler on stack overflow.
37399         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37400         check for HAVE_STACK_OVERFLOW_HANDLING.
37401         Reported by Elbert Pol.
37402
37403 2008-08-25  Bruno Haible  <bruno@clisp.org>
37404
37405         * doc/posix-functions/strftime.texi: Fix description of strftime
37406         module.
37407
37408 2008-08-24  Bruno Haible  <bruno@clisp.org>
37409
37410         * tests/uniwidth/test-uc_width2.c: New file.
37411         * tests/uniwidth/test-uc_width2.sh: New file.
37412         * modules/uniwidth/width-tests (Files): Add the new files.
37413         (TESTS): Add uniwidth/test-uc_width2.sh.
37414         (TESTS_ENVIRONMENT): New variable.
37415         (check_PROGRAMS): Add test-uc_width2.
37416         (test_uc_width2_SOURCES): New variable.
37417
37418         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37419         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37420         not 0x00AB.
37421         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37422
37423 2008-08-22  Eric Blake  <ebb9@byu.net>
37424
37425         test-lock, test-tls: mention why a test is skipped
37426         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37427         skipped.
37428         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37429
37430         count-one-bits: relax license
37431         * modules/count-one-bits (License): Relicense to LGPLv2+.
37432         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37433
37434 2008-08-22  Andreas Schwab  <schwab@suse.de>
37435
37436         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37437         Remove spurious space in assignment.
37438
37439 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37440
37441         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37442         Paul Eggert <eggert@CS.UCLA.EDU>.
37443
37444 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37445
37446         * modules/gettext: Add m4/threadlib.m4.
37447
37448 2008-08-19  Eric Blake  <ebb9@byu.net>
37449
37450         test-c-stack: fix compilation failure on FreeBSD 5.0
37451         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37452         headers before <sys/resource.h>.
37453         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37454         the bug.
37455         Reported by Nelson H. F. Beebe.
37456
37457         strverscmp: migrate from "strverscmp.h" to <string.h>
37458         * modules/string (Makefile.am): Add new hooks.
37459         * modules/strverscmp (Files): Remove strverscmp.h.
37460         (Depends-on): Add string.
37461         (configure.ac): Add indicator.
37462         (Include): Mention new header.
37463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37464         defaults.
37465         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37466         results.
37467         * lib/strverscmp.h: Delete.
37468         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37469         * tests/test-strverscmp.c (includes): Adjust client.
37470         * lib/check-version.c (includes): Likewise.
37471         * NEWS: Document the change.
37472
37473         strverscmp: add unit test
37474         * modules/strverscmp-tests: New file.
37475         * tests/test-strverscmp.c: Likewise.
37476
37477 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37478
37479         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37480         regarding Windows crypto stuff, from Mono.
37481
37482 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37483
37484         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37485         if present, for intel RND.  Return error on failures.
37486
37487 2008-08-18  Ben Pfaff  <blp@gnu.org>
37488
37489         gitlog-to-changelog: give better diagnostic for failed pipe-open
37490         * build-aux/gitlog-to-changelog: Improve error message: suggest
37491         that the version of Git may be too old.
37492
37493 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37494
37495         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37496         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37497
37498 2008-08-18  Bruno Haible  <bruno@clisp.org>
37499
37500         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37501         pthread_in_use().
37502
37503 2008-08-18  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/glthread/threadlib.c: Include <pthread.h>.
37506
37507 2008-08-18  Bruno Haible  <bruno@clisp.org>
37508
37509         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37510         glthread_recursive_lock_* macros.
37511         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37512         Fix syntax error.
37513
37514 2008-08-18  Bruno Haible  <bruno@clisp.org>
37515
37516         * lib/glthread/thread.c: Avoid forcing a context switch right after
37517         thread creation.
37518
37519 2008-08-17  Bruno Haible  <bruno@clisp.org>
37520
37521         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37522         * lib/glthread/thread.h: Provide Win32 specific implementation.
37523         * modules/thread (Files): Add lib/glthread/thread.c.
37524         (Depends-on): Add lock.
37525         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37526
37527 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37528
37529         New module 'yield'.
37530         * modules/yield: New file.
37531         * lib/glthread/yield.h: New file.
37532         * m4/yield.m4: New file.
37533         * MODULES.html.sh (Multithreading): Add yield.
37534
37535 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37536
37537         New module 'thread'.
37538         * modules/thread: New file.
37539         * lib/glthread/thread.h: New file.
37540         * m4/thread.m4: New file.
37541         * MODULES.html.sh (Multithreading): Add thread.
37542
37543 2008-08-17  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/glthread/lock.h: Include <stdlib.h> always.
37546         * lib/glthread/tls.h: Likewise.
37547         * lib/glthread/cond.h: Likewise.
37548
37549 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37550
37551         New module 'cond'.
37552         * modules/cond: New file.
37553         * lib/glthread/cond.h: New file.
37554         * lib/glthread/cond.c: New file.
37555         * m4/cond.m4: New file.
37556         * MODULES.html.sh (Multithreading): Add cond.
37557
37558 2008-08-16  Eric Blake  <ebb9@byu.net>
37559
37560         c-stack: fix regression on Irix 5.3 from 2008-06-21
37561         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37562         sa_sigaction...
37563         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37564         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37565         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37566         * modules/signal (Makefile.am): Use the value.
37567         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37568         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37569         * doc/posix-headers/signal.texi (signal.h): Document this
37570         portability issue.
37571         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37572         Reported by Tom G. Christensen.
37573
37574 2008-08-17  Bruno Haible  <bruno@clisp.org>
37575
37576         New module 'threadlib'.
37577         * modules/threadlib: New file.
37578         * lib/glthread/threadlib.c: New file, extracted from
37579         lib/glthread/lock.c.
37580         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37581         functions.
37582         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37583         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37584         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37585         macros.
37586         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37587         (gl_DISABLE_THREADS): Remove macro.
37588         * modules/lock (Files): Remove build-aux/config.rpath.
37589         (Depends-on): Remove havelib. Add threadlib.
37590         (configure.ac-early): Remove section.
37591         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37592         * modules/tls (Depends-on): Remove lock. Add threadlib.
37593         (Link): New section, copied from threadlib.
37594         * MODULES.html.sh (Multithreading): Add threadlib.
37595
37596 2008-08-14  Bruno Haible  <bruno@clisp.org>
37597
37598         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37599         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37600         glthread_rwlock_unlock, glthread_rwlock_destroy,
37601         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37602         glthread_recursive_lock_destroy): Define as macros always.
37603         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37604         glthread_lock_lock.
37605         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37606         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37607         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37608         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37609         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37610         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37611         (glthread_recursive_lock_lock_func): Renamed from
37612         glthread_recursive_lock_lock.
37613         (glthread_recursive_lock_unlock_func): Renamed from
37614         glthread_recursive_lock_unlock.
37615         (glthread_recursive_lock_destroy_func): Renamed from
37616         glthread_recursive_lock_destroy.
37617
37618 2008-08-14  Bruno Haible  <bruno@clisp.org>
37619
37620         * lib/glthread/lock.h: Renamed from lib/lock.h.
37621         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37622         * lib/glthread/tls.h: Renamed from lib/tls.h.
37623         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37624         * lib/fstrcmp.c: Update includes.
37625         * lib/strsignal.c: Update includes.
37626         * modules/lock (Files, Makefile.am): Update.
37627         (Include): Change to "glthread/lock.h".
37628         * modules/tls (Files, Makefile.am): Update.
37629         (Include): Change to "glthread/tls.h".
37630         * tests/test-lock.c: Update includes.
37631         * tests/test-tls.c: Update includes.
37632         * NEWS: Mention the renamed header files.
37633
37634 2008-08-11  Jim Meyering  <meyering@redhat.com>
37635
37636         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37637
37638 2008-08-11  Eric Blake  <ebb9@byu.net>
37639
37640         test-c-stack: avoid C99-ism
37641         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37642         before statement.
37643         Reported by Alain Guibert.
37644
37645 2008-08-10  Jim Meyering  <meyering@redhat.com>
37646
37647         ensure that return value of uinttostr et al are not ignored
37648         * lib/inttostr.h (__GNUC_PREREQ): Define.
37649         (__attribute_warn_unused_result__): Define.
37650         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37651
37652 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37653
37654         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37655         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37656
37657 2008-08-07  Jim Meyering  <meyering@redhat.com>
37658
37659         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37660
37661         * modules/mkstemp (License): Relicense under LGPLv2+.
37662         * modules/tempname (License): Likewise.
37663
37664 2008-08-06  Bruno Haible  <bruno@clisp.org>
37665
37666         * lib/poll.c (poll): Further micro-optimization.
37667
37668 2008-08-06  Jim Meyering  <meyering@redhat.com>
37669
37670         inet_pton.c: use locale-independent tolower
37671         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37672         (inet_pton6): Use c_tolower rather than tolower.
37673         * modules/inet_pton (Depends-on): Add c-ctype.
37674
37675 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37676
37677         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37678         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37679
37680 2008-08-06  Jim Meyering  <meyering@redhat.com>
37681
37682         * modules/inet_pton (License): Relicense under LGPLv2+.
37683
37684 2008-08-03  Bruno Haible  <bruno@clisp.org>
37685
37686         Additional non-aborting API for lock and tls.
37687         * lib/lock.h: Include <errno.h>.
37688         (glthread_lock_init): New macro/function.
37689         (gl_lock_init): Define as wrapper around glthread_lock_init.
37690         (glthread_lock_lock): New macro/function.
37691         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37692         (glthread_lock_unlock): New macro/function.
37693         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37694         (glthread_lock_destroy): New macro/function.
37695         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37696         (glthread_rwlock_init): New macro/function.
37697         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37698         (glthread_rwlock_rdlock): New macro/function.
37699         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37700         (glthread_rwlock_wrlock): New macro/function.
37701         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37702         (glthread_rwlock_unlock): New macro/function.
37703         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37704         (glthread_rwlock_destroy): New macro/function.
37705         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37706         (glthread_recursive_lock_init): New macro/function.
37707         (gl_recursive_lock_init): Define as wrapper around
37708         glthread_recursive_lock_init.
37709         (glthread_recursive_lock_lock): New macro/function.
37710         (gl_recursive_lock_lock): Define as wrapper around
37711         glthread_recursive_lock_lock.
37712         (glthread_recursive_lock_unlock): New macro/function.
37713         (gl_recursive_lock_unlock): Define as wrapper around
37714         glthread_recursive_lock_unlock.
37715         (glthread_recursive_lock_destroy): New macro/function.
37716         (gl_recursive_lock_destroy): Define as wrapper around
37717         glthread_recursive_lock_destroy.
37718         (glthread_once): New macro/function.
37719         (gl_once): Define as wrapper around glthread_once.
37720         Update function declarations.
37721         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37722         glthread_rwlock_init. Return error code.
37723         (glthread_rwlock_rdlock_multithreaded): Renamed from
37724         glthread_rwlock_rdlock. Return error code.
37725         (glthread_rwlock_wrlock_multithreaded): Renamed from
37726         glthread_rwlock_wrlock. Return error code.
37727         (glthread_rwlock_unlock_multithreaded): Renamed from
37728         glthread_rwlock_unlock. Return error code.
37729         (glthread_rwlock_destroy_multithreaded): Renamed from
37730         glthread_rwlock_destroy. Return error code.
37731         (glthread_recursive_lock_init_multithreaded): Renamed from
37732         glthread_recursive_lock_init. Return error code.
37733         (glthread_recursive_lock_lock_multithreaded): Renamed from
37734         glthread_recursive_lock_lock. Return error code.
37735         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37736         glthread_recursive_lock_unlock. Return error code.
37737         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37738         glthread_recursive_lock_destroy. Return error code.
37739         (glthread_once_call): Make static.
37740         (glthread_once_multithreaded): Renamed from glthread_once.
37741         * lib/tls.h: Include <errno.h>.
37742         (glthread_tls_key_init): New macro/function.
37743         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37744         (glthread_tls_set): New macro/function.
37745         (gl_tls_set): Define as wrapper around glthread_tls_set.
37746         (glthread_tls_key_destroy): New macro/function.
37747         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37748         Update function declarations.
37749         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37750         glthread_tls_get.
37751         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37752
37753 2008-08-04  Eric Blake  <ebb9@byu.net>
37754
37755         gnumakefile: use space, not TAB, outside of targets
37756         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37757
37758 2008-08-02  Jim Meyering  <meyering@redhat.com>
37759
37760         getdate.y: avoid locale-dependent date parsing failure
37761         In Turkish locales, getdate would fail to recognize keywords
37762         containing a lowercase "i".  The solution is not to rely on
37763         locale-sensitive case-conversion.
37764         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37765         (lookup_word): Use c_toupper in place of toupper.
37766         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37767         Reported by Vefa Bicakci <bicave@superonline.com> in
37768         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37769         * modules/getdate (Depends-on): Add c-ctype.
37770
37771 2008-08-02  Bruno Haible  <bruno@clisp.org>
37772
37773         * gnulib-tool (func_import): When updating or creating a .gitignore
37774         file, prepend each added line with a slash, and ignore leading slashes
37775         from the existing lines.
37776         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37777
37778 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37779
37780         Portability fix for GNU make 3.79.1.
37781         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37782         versions do not understand.
37783
37784 2008-08-01  Bruno Haible  <bruno@clisp.org>
37785
37786         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37787         * tests/test-isnanf.h (zero): New variable.
37788         (main): Avoid literal -0.0f.
37789         * tests/test-isnand.h (zero): New variable.
37790         (main): Avoid literal -0.0.
37791         * tests/test-isnanl.h (zero): New variable.
37792         (main): Avoid literal -0.0L.
37793         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37794         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37795         -0.0, -0.0L.
37796         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37797         (test_signbitd): Avoid literal -0.0.
37798         (test_signbitl): Avoid literal -0.0L.
37799         * tests/test-ceilf1.c (zero): New variable.
37800         (main): Avoid literal -0.0f.
37801         * tests/test-ceill.c (zero): New variable.
37802         (main): Avoid literal -0.0L.
37803         * tests/test-floorf1.c (zero): New variable.
37804         (main): Avoid literal -0.0f.
37805         * tests/test-floorl.c (zero): New variable.
37806         (main): Avoid literal -0.0L.
37807         * tests/test-roundf1.c (zero): New variable.
37808         (main): Avoid literal -0.0f.
37809         * tests/test-round1.c (zero): New variable.
37810         (main): Avoid literal -0.0.
37811         * tests/test-roundl.c (zero): New variable.
37812         (main): Avoid literal -0.0L.
37813         * tests/test-truncf1.c (zero): New variable.
37814         (main): Avoid literal -0.0f.
37815         * tests/test-trunc1.c (zero): New variable.
37816         (main): Avoid literal -0.0.
37817         * tests/test-truncl.c (zero): New variable.
37818         (main): Avoid literal -0.0L.
37819         * tests/test-frexp.c (zero): New variable.
37820         (main): Avoid literal -0.0.
37821         * tests/test-frexpl.c (zero): New variable.
37822         (main): Avoid literal -0.0L.
37823         * tests/test-ldexpl.c (zero): New variable.
37824         (main): Avoid literal -0.0L.
37825         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37826         (zerod, zerol): New variables.
37827         (test_function): Avoid literals -0.0, -0.0L.
37828         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37829         (zerod, zerol): New variables.
37830         (test_function): Avoid literals -0.0, -0.0L.
37831         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37832         (zerod, zerol): New variables.
37833         (test_function): Avoid literals -0.0, -0.0L.
37834         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37835         (zerod, zerol): New variables.
37836         (test_function): Avoid literals -0.0, -0.0L.
37837         * tests/test-strtod.c (zero): New variable.
37838         (main): Avoid literal -0.0.
37839         Reported by Jonathan C. Patschke <jp@centtech.com>.
37840
37841 2008-07-31  Jim Meyering  <meyering@redhat.com>
37842
37843         sha256.h: correct definition of SHA224_DIGEST_SIZE
37844         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37845         Reported by Paulie Pena IV <paulie4@gmail.com>.
37846         Define as 224 / 8, rather than as a literal.
37847         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37848         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37849         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37850
37851 2008-07-31  Bruno Haible  <bruno@clisp.org>
37852
37853         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37854         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37855         Reported by Jonathan Patschke <jp@centtech.com>.
37856
37857 2008-07-31  Bruno Haible  <bruno@clisp.org>
37858
37859         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37860         Reported by Paolo Bonzini <bonzini@gnu.org>.
37861
37862 2008-07-30  Eric Blake  <ebb9@byu.net>
37863
37864         test-strtod: allow compilation without -lm
37865         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37866         Reported by Dennis Clarke <blastwave@gmail.com>.
37867
37868 2008-07-28  Jim Meyering  <meyering@redhat.com>
37869
37870         bootstrap: work also when there are no .po files in po/
37871         * build-aux/bootstrap (update_po_files): Complete the change
37872         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37873
37874 2008-07-27  Jim Meyering  <meyering@redhat.com>
37875
37876         * users.txt: Add zile.
37877
37878 2008-07-26  Ben Pfaff  <blp@gnu.org>
37879
37880         Add missing dependencies on new m4/exponent[fdl].m4 files.
37881         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37882         * modules/isnand-nolibm: Add m4/exponentd.m4.
37883         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37884         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37885         m4/isnan[fdl].m4, because the macros actually used moved.
37886         Reported by Jim Meyering.
37887
37888 2008-07-14  Ben Pfaff  <blp@gnu.org>
37889
37890         Add isinf module.
37891         * lib/isinf.c: New file.
37892         * lib/math.in.h: Define isinf macro if we have decided to replace
37893         it.
37894         * m4/isinf.m4: New file.
37895         * m4/math_h.m4: Initialize and substitute variables for isinf
37896         module.
37897         * modules/isinf: New file.
37898         * modules/isinf-tests: New file.
37899         * modules/math: Add substitutions for new module.
37900         * tests/test-isinf.c: New file.
37901         * doc/posix-functions/isinf.texi: Mention new module.
37902         * MODULES.html.sh: Mention new module.
37903
37904 2008-07-14  Ben Pfaff  <blp@gnu.org>
37905
37906         Factor out some macros for use by additional modules.
37907         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37908         exponentf.m4.
37909         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37910         exponentd.m4.
37911         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37912         file exponentl.m4.
37913         * m4/exponentf.m4: New file.
37914         * m4/exponentd.m4: New file.
37915         * m4/exponentl.m4: New file.
37916         * modules/isnanf: Use new file m4/exponentf.m4.
37917         * modules/isnand: Use new file m4/exponentd.m4.
37918         * modules/isnanl: Use new file m4/exponentl.m4.
37919
37920 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37921
37922         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37923         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37924         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37925         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37926
37927         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37928         readlink on platforms without PATH_MAX.
37929
37930 2008-07-21  Eric Blake  <ebb9@byu.net>
37931
37932         Warn, not fail, on stale version.
37933         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37934
37935         Don't allow installation with stale devel version number.
37936         * top/GNUmakefile (_is-install-target): New macro.
37937         (_curr-ver): Forbid installation with stale version number.
37938
37939 2008-07-20  Bruno Haible  <bruno@clisp.org>
37940
37941         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37942         TESTS_ENVIRONMENT.
37943         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37944
37945 2008-07-20  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/c-stack.h (c_stack_action): Add documentation.
37948         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37949
37950 2008-07-20  Bruno Haible  <bruno@clisp.org>
37951
37952         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37953         * modules/readlink (License): Likewise.
37954
37955 2008-07-17  Eric Blake  <ebb9@byu.net>
37956
37957         * modules/c-stack (Link): Fix typo.
37958
37959         Make c-stack use libsigsegv, when available.
37960         * modules/c-stack (Depends-on): Add libsigsegv.
37961         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37962         needed.
37963         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37964         (segv_handler, overflow_handler, c_stack_action)
37965         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37966         implementation when libsigsegv is available, but only when using
37967         the library is necessary.
37968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37969         comment, explaining why XSI check fails on Linux.
37970         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37971         * tests/test-c-stack2.sh: Tweak skip message.
37972         * NEWS: Document new link-time requirements.
37973
37974 2008-07-16  Eric Blake  <ebb9@byu.net>
37975
37976         c-stack: Expose false positives when not using libsigsegv.
37977         * modules/c-stack-tests (Files): Expand test.
37978         * tests/test-c-stack.c (main): Add means to conditionally trigger
37979         non-overflow SIGSEGV.
37980         * tests/test-c-stack2.sh: New file.
37981
37982 2008-07-14  Bruno Haible  <bruno@clisp.org>
37983
37984         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37985         Reported by Eric Blake.
37986
37987 2008-07-14  Sam Steingold  <sds@gnu.org>
37988             Bruno Haible  <bruno@clisp.org>
37989
37990         New module libsigsegv.
37991         * modules/libsigsegv: New file.
37992         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37993         modifications.
37994         * MODULES.html.sh (Signal handling): New section.
37995
37996 2008-07-14  Bruno Haible  <bruno@clisp.org>
37997
37998         * modules/unictype/ctype-* (Description): Add the word "function".
37999         Improves the resulting doc in MODULES.html.
38000
38001 2008-07-12  Ben Pfaff  <blp@gnu.org>
38002
38003         Add longlong module.
38004         * modules/longlong: New file.
38005
38006 2008-07-12  Bruno Haible  <bruno@clisp.org>
38007
38008         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38009         to empty.
38010
38011 2008-07-10  Ben Pfaff  <blp@gnu.org>
38012
38013         Add isnan module.
38014         * doc/posix-functions/isnan.texi: Mention new module.
38015         * lib/math.in.h: Define isnan macro if we have decided to replace
38016         it.
38017         * m4/isnan.m4: New file.
38018         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38019         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38020         also.
38021         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38022         redundancy.
38023         * m4/math_h.m4: Initialize and substitute variables for isnan
38024         module.
38025         * modules/isnan: New file.
38026         * modules/isnan-tests: New file.
38027         * modules/math: Add substitutions for new module.
38028         * tests/test-isnan.c: New file.
38029         * MODULES.html.sh: Mention new module.
38030
38031 2008-07-10  Ben Pfaff  <blp@gnu.org>
38032
38033         Add isnanf module.
38034         * lib/isnanf.m4: New file.
38035         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38036         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38037         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38038         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38039         * modules/isnanf: New file.
38040         * modules/isnanf-tests: New file.
38041         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38042         files.
38043         * tests/test-isnanf-nolibm.c: factored most of its contents into
38044         new file tests/test-isnanf.h.
38045         * tests/test-isnanf.h: New file.
38046         * tests/test-isnanf.c: New file.
38047         * MODULES.html.sh: Mention new module.
38048         * doc/glibc-functions/isnanf.texi: Mention new module.
38049
38050 2008-07-10  Ben Pfaff  <blp@gnu.org>
38051
38052         Add isnand module.
38053         * lib/isnand.h: New file.
38054         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38055         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38056         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38057         functionality also.
38058         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38059         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38060         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38061         * modules/isnand: New file.
38062         * modules/isnand-tests: New file.
38063         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38064         files.
38065         * tests/test-isnand-nolibm.c: factored most of its contents into
38066         new file tests/test-isnand.h.
38067         * tests/test-isnand.h: New file.
38068         * tests/test-isnand.c: New file.
38069         * MODULES.html.sh: Mention new module.
38070
38071 2008-07-10  Ben Pfaff  <blp@gnu.org>
38072
38073         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38074         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38075         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38076         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38077         * modules/isnanf-nolibm: Update references to renamed files.
38078         * modules/isnand-nolibm: Likewise.
38079         * modules/isnanf-nolibm-tests: Likewise.
38080         * modules/isnand-nolibm-tests: Likewise.
38081         * lib/frexp.c: Likewise.
38082         * lib/isfinite.c: Likewise.
38083         * lib/signbitd.c: Likewise.
38084         * lib/signbitf.c: Likewise.
38085         * lib/vasnprintf.c: Likewise.
38086         * tests/test-ceilf1.c: Likewise.
38087         * tests/test-ceilf2.c: Likewise.
38088         * tests/test-floorf1.c: Likewise.
38089         * tests/test-floorf2.c: Likewise.
38090         * tests/test-frexp.c: Likewise.
38091         * tests/test-round1.c: Likewise.
38092         * tests/test-round2.c: Likewise.
38093         * tests/test-roundf1.c: Likewise.
38094         * tests/test-strtod.c: Likewise.
38095         * tests/test-trunc1.c: Likewise.
38096         * tests/test-trunc2.c: Likewise.
38097         * tests/test-truncf1.c: Likewise.
38098         * tests/test-truncf2.c: Likewise.
38099         * NEWS: Mention the renamed header files.
38100
38101 2008-07-11  Jim Meyering  <meyering@redhat.com>
38102
38103         vc-list-files: make the last-resort awk code more portable
38104         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38105         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38106         does not support it.
38107
38108 2008-07-10  Eric Blake  <ebb9@byu.net>
38109
38110         Work with tar's bootstrap.
38111         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38112         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38113         an m4 comment.
38114
38115 2008-07-09  Jim Meyering  <meyering@redhat.com>
38116
38117         posix-shell.m4: fix typo that made this test malfunction
38118         * m4/posix-shell.m4: Remove capitalization in variable name.
38119
38120 2008-07-08  Bruno Haible  <bruno@clisp.org>
38121
38122         * m4/onceonly.m4: Update comments.
38123         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38124
38125 2008-07-04  Jim Meyering  <meyering@redhat.com>
38126
38127         * users.txt: Add vc-dwim.
38128         (bison, coreutils): Use the gitweb URL.
38129
38130 2008-07-03  Jim Meyering  <meyering@redhat.com>
38131
38132         * users.txt: Add libffcall.  From Sam Steingold.
38133
38134 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38135
38136         getdate.y: do not ignore TZ with relative day, month or year offset
38137         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38138         relative-date-handling, since otherwise, the latter would clobber the
38139         sole output (an updated Start value) of the tz-handling block.
38140         * tests/test-getdate.c: Tests for the fix
38141
38142 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38143
38144         Recognize 'foo_LIBRARIES += libgnu.a'.
38145         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38146         makefile snippet has already specified an installation location,
38147         also using '+='.
38148
38149 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38150
38151         getdate.y: factor out common actions
38152         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38153         Use them in place of open-coded actions.
38154
38155 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38156
38157         Add self-test for getdate module.
38158         * modules/getdate-tests: New file.
38159         * tests/test-getdate.c: New file.
38160
38161 2008-06-29  Bruno Haible  <bruno@clisp.org>
38162
38163         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38164         .gitignore.
38165         Reported by Sylvain Beucler <beuc@beuc.net>.
38166
38167 2008-06-29  Bruno Haible  <bruno@clisp.org>
38168
38169         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38170         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38171
38172 2008-06-29  Bruno Haible  <bruno@clisp.org>
38173
38174         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38175         EXTRA_DIST.
38176         Reported by Sylvain Beucler <beuc@beuc.net>.
38177
38178 2008-06-26  Jim Meyering  <meyering@redhat.com>
38179
38180         make several modules depend on the "open" module
38181         This provides slightly increased consistency when opening-for-write
38182         the name of a non-directory spelled with a trailing slash.
38183         * modules/chdir-safer: Likewise.
38184         * modules/chown: Likewise.
38185         * modules/clean-temp: Likewise.
38186         * modules/copy-file: Likewise.
38187         * modules/fchdir: Likewise.
38188         * modules/fcntl-safer: Likewise.
38189         * modules/pipe: Likewise.
38190         * modules/utime: Likewise.
38191         Prompted by Eric Blake and Bruno Haible.
38192
38193 2008-06-24  Andreas Schwab  <schwab@suse.de>
38194
38195         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38196         literals can be used as initializers for global variables.
38197
38198 2008-06-23  Eric Blake  <ebb9@byu.net>
38199
38200         Make gnulib-cache.m4 easier to diff.
38201         * gnulib-tool (func_import): Allow newlines when reading cached
38202         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38203
38204 2008-06-23  Bruno Haible  <bruno@clisp.org>
38205
38206         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38207         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38208         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38209         m4/signalblocking.m4.
38210         (gl_PREREQ_SIGACTION): Don't invoke it.
38211         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38212         gl_PREREQ_SIG_HANDLER_H.
38213         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38214         Don't check for sigaction here.
38215
38216 2008-06-23  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38219         (install_handlers): Don't set the SA_RESETHAND flag.
38220
38221 2008-06-23  Bruno Haible  <bruno@clisp.org>
38222
38223         * m4/sigaction.m4: Comment fixes.
38224         * lib/signal.in.h: Likewise.
38225
38226 2008-06-23  Eric Blake  <ebb9@byu.net>
38227
38228         Fix typo.
38229         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38230
38231         Avoid SA_ namespace.
38232         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38233         Reported by Ralf Wildenhues.
38234
38235         Avoid test failure due to SA_RESTORER.
38236         * tests/test-sigaction.c (SA_MASK): New macro.
38237         (main): Avoid failing due to extension flags being set.
38238         Reported by Jim Meyering.
38239
38240         Revert use of sig-handler.h in sigprocmask.c.
38241         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38242         it requires the existence of struct sigaction.
38243         * lib/sigprocmask.c (handler_t): Restore typedef.
38244         (rpl_signal, old_handlers): Use local type.
38245
38246 2008-06-22  Bruno Haible  <bruno@clisp.org>
38247
38248         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38249         conditionally.
38250         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38251
38252 2008-06-22  Bruno Haible  <bruno@clisp.org>
38253
38254         * doc/posix-functions/siginterrupt.texi: Move note.
38255
38256         * lib/signal.in.h (SA_RESTART): New macro.
38257         * lib/sigaction.c: Update comment.
38258
38259         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38260
38261         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38262         (gl_PREREQ_SIGPROCMASK): Invoke it.
38263         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38264
38265         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38266
38267         * lib/sigprocmask.c: Update a comment.
38268
38269 2008-06-21  Eric Blake  <ebb9@byu.net>
38270
38271         Use sigaction module rather than signal().
38272         * modules/c-stack (Depends-on): Add sigaction.
38273         * modules/fatal-signal (Depends-on): Likewise.
38274         * modules/nanosleep (Depends-on): Likewise.
38275         * modules/sigprocmask (Files): Add sig-handler.h.
38276         * modules/sigaction (Files): Likewise.
38277         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38278         Eggert.
38279         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38280         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38281         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38282         (init_fatal_signals): Likewise.
38283         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38284         (siginterrupt): Delete fallback.
38285         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38286         instead.
38287         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38288         siginterrupt.
38289
38290         New module sigaction, for mingw.
38291         * modules/sigaction: New module...
38292         * modules/sigaction-tests: ...and its test.
38293         * m4/sigaction.m4: New file.
38294         * lib/sigaction.c: Likewise.
38295         * tests/test-sigaction.c: Likewise.
38296         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38297         * modules/signal (Makefile.am): Likewise.
38298         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38299         needed.
38300         * doc/posix-headers/signal.texi (signal.h): Mention provided
38301         types.
38302         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38303         that sigaction is preferable.
38304         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38305         module.
38306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38307         sigaction.
38308
38309         Improve robustness of sigprocmask by overriding signal.
38310         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38311         is in use.
38312         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38313         (SIGKILL, SIGSTOP): Provide fallbacks.
38314         (rpl_signal): Implement.
38315         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38316         signal can be called inside handlers.
38317
38318         Fix nanosleep module on mingw.
38319         * modules/nanosleep (Depends-on): Add sys_select.
38320         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38321
38322         Fix licensing of sigprocmask.
38323         * modules/raise (License): Relicense as LGPL.
38324
38325 2008-06-21  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38328         result if it contains question marks.
38329         Reported by Michael Geng <linux@michaelgeng.de>.
38330
38331 2008-06-19  Bruno Haible  <bruno@clisp.org>
38332
38333         Fix CVS-ism.
38334         * doc/gnulib.texi: Include updated-stamp.texi.
38335         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38336         (updated-stamp.texi): New rule.
38337         (gnulib.info): Depend on it.
38338         * doc/.gitignore: Add updated-stamp.texi.
38339         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38340
38341 2008-06-19  Bruno Haible  <bruno@clisp.org>
38342
38343         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38344         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38345
38346 2008-06-19  Eric Blake  <ebb9@byu.net>
38347
38348         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38349         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38350         Reported by Stepan Kasal.
38351
38352 2008-06-18  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38355         Reported by Eric Blake.
38356
38357 2008-06-18  Eric Blake  <ebb9@byu.net>
38358
38359         Work around cygwin 1.5.25 strsignal bug.
38360         * tests/test-strsignal.c: Allow for const char *.
38361         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38362
38363 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38364
38365         * users.txt: Update URL to article and add author/date
38366         information.
38367
38368 2008-06-17  Bruno Haible  <bruno@clisp.org>
38369
38370         New macro gl_DISABLE_THREADS.
38371         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38372         if the user did not pass --enable-threads or --disable-threads option.
38373         (gl_DISABLE_THREADS): New macro.
38374         Reported by Eric Blake <ebb9@byu.net>.
38375
38376 2008-06-17  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38379         when the macro ignores it.
38380         Based on a patch by Eric Blake <ebb9@byu.net>.
38381
38382 2008-06-17  Bruno Haible  <bruno@clisp.org>
38383
38384         * modules/tls (License): Change to LGPLv2+.
38385         Reported by Eric Blake.
38386
38387 2008-06-17  Eric Blake  <ebb9@byu.net>
38388
38389         Simplify c-stack prerequisites.
38390         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38391         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38392         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38393         check.
38394         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38395         <sys/resource.h>.
38396
38397         Move c-stack test into testsuite.
38398         * modules/c-stack-tests: New file.
38399         * lib/c-stack.c [DEBUG]: Move test program...
38400         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38401         fail test if sigaltstack is lacking.
38402         * tests/test-c-stack.sh: New driver file.
38403
38404 2008-06-16  Eric Blake  <ebb9@byu.net>
38405
38406         Use raise module consistently.
38407         * modules/fatal-signal (Depends-on): Add raise.
38408         * modules/sigprocmask (Depends-on): Likewise.
38409         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38410         * lib/sigprocmask.c (sigprocmask): Likewise.
38411         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38412         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38413
38414         Fix compliance bug in sigpending.
38415         * lib/sigprocmask.c (sigpending): Return pending array via
38416         parameter, not return value.
38417
38418 2008-06-14  Eric Blake  <ebb9@byu.net>
38419
38420         Improve obstack-printf test code.
38421         * tests/test-obstack-printf.c (test_function): Fix comment, and
38422         simplify usage of obstack_* in macros.  Add a test for coverage.
38423         Reported by Bruno Haible.
38424
38425 2008-06-14  Bruno Haible  <bruno@clisp.org>
38426
38427         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38428         array size as a constant, not as a const variable.
38429         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38430         AC_USE_SYSTEM_EXTENSIONS.
38431         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38432         Test whether the obstack_printf function actually exists.
38433         * modules/obstack-printf (Depends-on): Add extensions.
38434         (Include): Remove obstack.h.
38435         * modules/obstack-printf-posix (Depends-on): Add extensions.
38436         (Include): Remove obstack.h.
38437
38438 2008-06-13  Eric Blake  <ebb9@byu.net>
38439
38440         Add obstack-printf and obstack-printf-posix modules.
38441         * modules/obstack-printf: New file.
38442         * modules/obstack-printf-posix: Likewise.
38443         * MODULES.html.sh (Misc): Mention them.
38444         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38445         Likewise.
38446         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38447         Likewise.
38448         * modules/stdio (Makefile.am): Accomodate new modules.
38449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38450         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38451         Declare.
38452         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38453         functions.
38454         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38455         (gl_REPLACE_OBSTACK_PRINTF): New macros
38456         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38457         * tests/test-obstack-printf.c: New file.
38458         * modules/obstack-printf-tests: Likewise.
38459         * modules/obstack-printf-posix-tests: Likewise.
38460
38461 2008-06-11  Bruno Haible  <bruno@clisp.org>
38462
38463         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38464         * lib/open.c: Include errno.h.
38465         (open): Fail when attempting to write to a file that has a trailing
38466         slash.
38467         * tests/test-open.c (main): Test against trailing slash bug.
38468         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38469
38470 2008-06-10  Bruno Haible  <bruno@clisp.org>
38471
38472         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38473         for $? to work inside the trap command, with various /bin/sh-s.
38474         * tests/test-vc-list-files-cvs.sh: Likewise.
38475
38476 2008-06-10  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/acl-internal.h: Don't include gettext.h here.
38479         * lib/set-mode-acl.c: Include gettext.h here.
38480         * lib/copy-acl.c: Likewise.
38481
38482 2008-06-10  Bruno Haible  <bruno@clisp.org>
38483
38484         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38485         * lib/wait-process.c (wait_subprocess): Likewise.
38486         * lib/execute.h (execute): Add termsigp argument.
38487         * lib/execute.c (execute): Likewise.
38488         * lib/csharpcomp.c (compile_csharp_using_pnet,
38489         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38490         * lib/csharpexec.c (execute_csharp_using_pnet,
38491         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38492         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38493         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38494         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38495         is_jikes_present): Update.
38496         * lib/javaexec.c (execute_java_class): Update.
38497         * lib/javaversion.c (execute_and_read_line): Update.
38498         * NEWS: Document the changes.
38499         Reported by Eric Blake.
38500
38501 2008-06-10  Eric Blake  <ebb9@byu.net>
38502
38503         Add missing include.
38504         * tests/test-strstr.c (includes): Add <signal.h>.
38505         * tests/test-strcasestr.c (includes): Likewise.
38506         * tests/test-memmem.c (includes): Likewise.
38507
38508 2008-06-10  Bruno Haible  <bruno@clisp.org>
38509
38510         * lib/wait-process.c (wait_subprocess): Add an assertion.
38511
38512 2008-06-10  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38515
38516 2008-06-10  Bruno Haible  <bruno@clisp.org>
38517
38518         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38519         using alarm().
38520         * tests/test-strcasestr.c (main): Likewise.
38521         * tests/test-strstr.c (main): Likewise.
38522
38523 2008-06-09  Bruno Haible  <bruno@clisp.org>
38524
38525         Work around the Solaris 10 ACE ACLs ABI change.
38526         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38527         declare if ACL_NO_TRIVIAL is present.
38528         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38529         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38530         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38531         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38532         define if ACL_NO_TRIVIAL is present.
38533         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38534         and use the current ABI.
38535         (file_has_acl): Use same #if condition as elsewhere.
38536         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38537         in use, and use the current ABI.
38538         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38539         Reported by Jim Meyering.
38540
38541 2008-06-09  Eric Blake  <ebb9@byu.net>
38542
38543         Work around environments that (stupidly) ignore SIGALRM.
38544         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38545         before using alarm().
38546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38547         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38548         Reported by Ian Beckwith <ianb@erislabs.net>.
38549
38550         Produce autobuild blurb earlier in log.
38551         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38552
38553 2008-06-09  Jim Meyering  <meyering@redhat.com>
38554         and OndÅ™ej Vašík  <ovasik@redhat.com>
38555
38556         utimens.c: correct kernel bug work-around
38557         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38558         failure, not success, and the kernel bug we're trying to work
38559         around affects not just the utimensat call, but also the fallback
38560         futimens call.
38561         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38562         not success.
38563         [HAVE_FUTIMENS]: Use the same work-around, here.
38564
38565 2008-06-09  Jim Meyering  <meyering@redhat.com>
38566
38567         add more guards around definition of ACE_-related code
38568         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38569         ALLOW and ACE_OWNER are also defined.
38570
38571 2008-06-08  Bruno Haible  <bruno@clisp.org>
38572
38573         * lib/acl-internal.h: Add me as co-author.
38574         * lib/file-has-acl.c: Likewise.
38575         * lib/set-mode-acl.c: Likewise.
38576         * lib/copy-acl.c: Likewise.
38577
38578 2008-06-08  Bruno Haible  <bruno@clisp.org>
38579
38580         Add support for AIX ACLs.
38581         * lib/acl-internal.h (acl_nontrivial): New declaration.
38582         * lib/file-has-acl.c (acl_nontrivial): New function.
38583         (file_has_acl): Add implementation using AIX 4 ACL API.
38584         * lib/set-mode-acl.c (qset_acl): Likewise.
38585         * lib/copy-acl.c (qcopy_acl): Likewise.
38586
38587 2008-06-08  Bruno Haible  <bruno@clisp.org>
38588
38589         Add support for HP-UX ACLs.
38590         * lib/acl-internal.h (acl_nontrivial): New declaration.
38591         * lib/file-has-acl.c (acl_nontrivial): New function.
38592         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38593         * lib/set-mode-acl.c (qset_acl): Likewise.
38594         * lib/copy-acl.c (qcopy_acl): Likewise.
38595
38596 2008-06-08  Bruno Haible  <bruno@clisp.org>
38597
38598         Add support for Cygwin ACLs.
38599         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38600         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38601         the chmod_or_fchmod call.
38602         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38603
38604 2008-06-08  Bruno Haible  <bruno@clisp.org>
38605
38606         Fix bug with setuid modes in Solaris 10+ code.
38607         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38608         succeeded, when the mode contains some special bits.
38609
38610 2008-06-08  Bruno Haible  <bruno@clisp.org>
38611
38612         Add support for Solaris 7..10 ACLs.
38613         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38614         declarations.
38615         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38616         functions.
38617         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38618         * lib/set-mode-acl.c (qset_acl): Likewise.
38619         * lib/copy-acl.c (qcopy_acl): Likewise.
38620
38621 2008-06-08  Bruno Haible  <bruno@clisp.org>
38622
38623         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38624         declaration.
38625         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38626         (acl_access_nontrivial): Remove MacOS X case.
38627         (file_has_acl): Use acl_extended_nontrivial.
38628         * lib/copy-acl.c (qcopy_acl): Likewise.
38629
38630 2008-06-08  Bruno Haible  <bruno@clisp.org>
38631
38632         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38633
38634 2008-06-08  Jim Meyering  <meyering@redhat.com>
38635
38636         * modules/acl (Maintainer): Add Bruno Haible.
38637
38638 2008-06-07  Bruno Haible  <bruno@clisp.org>
38639
38640         Improve support for Tru64 ACLs.
38641         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38642         ACL on OSF/1.
38643
38644 2008-06-07  Bruno Haible  <bruno@clisp.org>
38645
38646         Add support for MacOS X ACLs.
38647         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38648         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38649         * lib/set-mode-acl.c (qset_acl): Likewise.
38650         * lib/copy-acl.c (qcopy_acl): Likewise.
38651
38652 2008-06-07  Bruno Haible  <bruno@clisp.org>
38653
38654         Fix memory leak introduced on 2008-05-22.
38655         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38656         use.
38657
38658 2008-06-07  Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38661         to construct an empty ACL.
38662
38663 2008-06-07  Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38666         precisely.
38667         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38668
38669 2008-06-07  Bruno Haible  <bruno@clisp.org>
38670
38671         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38672         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38673
38674 2008-06-07  Bruno Haible  <bruno@clisp.org>
38675
38676         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38677         regardless of POSIX.
38678         * doc/posix-functions/_longjmp.texi: Likewise.
38679         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38680         SystemV platform in this case.
38681
38682 2008-06-06  Eric Blake  <ebb9@byu.net>
38683
38684         Document abort() bugs.
38685         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38686
38687         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38688         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38689         sigsetjmp.
38690         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38691         siglongjmp, but only as a macro.
38692         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38693         is obsolete.
38694         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38695
38696         Tweak documentation to cover cygwin argz bugs.
38697         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38698         argz bug fix; no code change needed since no cygwin releases
38699         occurred between the last fix and the bug being tested.
38700         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38701         module and recently fixed cygwin bugs.
38702         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38703         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38704         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38705         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38706         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38707         Likewise.
38708         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38709         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38710         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38711         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38712         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38713         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38714         Likewise.
38715
38716         Avoid gcc warning on cygwin.
38717         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38718         !ACL_NO_TRIVIAL]: Avoid unused variable.
38719
38720 2008-06-05  Eric Blake  <ebb9@byu.net>
38721
38722         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38723         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38724         git-version-gen fails to come up with a version.
38725         Reported by Simon Josefsson.
38726
38727 2008-06-05  Jim Meyering  <meyering@redhat.com>
38728             Paul Eggert  <eggert@cs.ucla.edu>
38729
38730         utimens.c: work around a probable Linux kernel bug
38731         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38732         appears to be a kernel bug that causes utimensat to return 280
38733         instead of 0, indicating success.
38734
38735 2008-06-04  Bruno Haible  <bruno@clisp.org>
38736
38737         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38738         2008-06-01 commit.
38739
38740 2008-06-04  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38743         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38744         (file_has_acl): Use it. Save errno afterwards.
38745         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38746
38747 2008-06-03  Bruno Haible  <bruno@clisp.org>
38748
38749         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38750         draft code. Simplify #ifs.
38751         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38752         Put Solaris code after POSIX-draft code. Fix comments regarding
38753         Solaris 10, HP-UX. Mention Cygwin.
38754         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38755
38756 2008-06-03  Eric Blake  <ebb9@byu.net>
38757
38758         Provide fallback for older kernels.
38759         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38760         Provide runtime fallback if kernel lacks support.
38761         Reported by Mike Frysinger.
38762
38763 2008-06-02  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38766         it exists.
38767
38768 2008-06-02  Bruno Haible  <bruno@clisp.org>
38769
38770         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38771         * lib/copy-acl.c (qcopy_acl): Update comment.
38772
38773 2008-06-02  Bruno Haible  <bruno@clisp.org>
38774
38775         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38776         like ACL APIs.
38777
38778 2008-06-02  Bruno Haible  <bruno@clisp.org>
38779
38780         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38781         * tests/test-set-mode-acl.sh: Likewise.
38782         * tests/test-copy-acl.sh: Likewise.
38783         * tests/test-copy-file.sh: Likewise.
38784
38785 2008-06-02  Bruno Haible  <bruno@clisp.org>
38786
38787         * tests/test-file-has-acl.sh: Remove unused code.
38788
38789 2008-06-01  Bruno Haible  <bruno@clisp.org>
38790
38791         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38792         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38793         messages.
38794         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38795
38796 2008-06-01  Bruno Haible  <bruno@clisp.org>
38797
38798         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38799         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38800         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38801         APIs.
38802         * modules/acl-tests (configure.ac): Remove tests now contained in
38803         m4/acl.m4.
38804
38805 2008-06-02  Jim Meyering  <meyering@redhat.com>
38806
38807         announce-gen: use a better key-server host name
38808         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38809         it may be more consistently reliable.  Suggested by Werner Koch
38810         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38811
38812 2008-06-01  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38815         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38816
38817 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38818
38819         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38820
38821 2008-06-01  Bruno Haible  <bruno@clisp.org>
38822
38823         New ACL tests.
38824         * tests/test-file-has-acl.sh: New file.
38825         * tests/test-file-has-acl.c: New file.
38826         * tests/test-set-mode-acl.sh: New file.
38827         * tests/test-set-mode-acl.c: New file.
38828         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38829         * tests/test-copy-acl.c: New file.
38830         * modules/acl-tests: New file, based on modules/copy-file-tests.
38831         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38832         (Depends-on): Add acl-tests.
38833         (configure.ac): Remove checks.
38834         (Makefile.am): Don't create test-sameacls program here any more.
38835
38836 2008-06-01  Bruno Haible  <bruno@clisp.org>
38837
38838         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38839         * tests/test-sameacls.c: Include progname.h.
38840         (main): Invoke set_program_name. Portability fixes for MacOS X,
38841         Solaris, HP-UX.
38842
38843 2008-06-01  Bruno Haible  <bruno@clisp.org>
38844
38845         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38846         function.
38847         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38848
38849 2008-06-01  Bruno Haible  <bruno@clisp.org>
38850
38851         * modules/rpmatch (Depends-on): Add strdup.
38852
38853 2008-06-01  Bruno Haible  <bruno@clisp.org>
38854
38855         * lib/pipe.c: Include unistd-safer.h.
38856         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38857         * modules/pipe (Depends-on): Add unistd-safer.
38858
38859 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38860
38861         * modules/autobuild (configure.ac): Call AB_INIT.
38862
38863 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38864
38865         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38866         Suggested by Bruno Haible <bruno@clisp.org>.
38867
38868 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38869
38870         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38871         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38872         <bruno@clisp.org>.
38873
38874 2008-05-29  Eric Blake  <ebb9@byu.net>
38875
38876         Prefer new POSIX 200x interfaces over futimesat.
38877         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38878         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38879         when available.
38880         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38881
38882 2008-05-28  Bruno Haible  <bruno@clisp.org>
38883
38884         * modules/stpcpy (License): Change to LGPLv2+.
38885         Requested by David Lutterkort <dlutter@redhat.com>.
38886
38887 2008-05-27  Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38890         current mingw.
38891         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38892
38893 2008-05-27  Bruno Haible  <bruno@clisp.org>
38894
38895         * modules/iconv_open (Link): New section, from module 'iconv'.
38896         * modules/striconv (Link): Likewise.
38897         * modules/striconveh (Link): Likewise.
38898         * modules/xstriconv (Link): Likewise.
38899         * modules/unicodeio (Link): Likewise.
38900         * modules/propername (Link): Likewise.
38901         Reported by Jim Meyering.
38902
38903 2008-05-26  Jim Meyering  <meyering@redhat.com>
38904
38905         sha256: do not artificially restrict buffer length to be < 2^32
38906         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38907         uint32_t to size_t.
38908         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38909         to match.
38910
38911         avoid unaligned access errors, e.g., on sparc
38912         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38913         direct access through a possibly-unaligned uint64* pointer.
38914         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38915         direct access through a possibly-unaligned uint32* pointer.
38916         Prompted by this patch from Tom "spot" Callaway:
38917         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38918
38919         sha512.c: fix typo in comment
38920         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38921
38922 2008-05-25  Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38925         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38926         (Makefile.am): Update lib_SOURCES.
38927
38928 2008-05-25  Bruno Haible  <bruno@clisp.org>
38929
38930         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38931
38932 2008-05-25  Jim Meyering  <meyering@redhat.com>
38933
38934         useless-if-before-free: freed expr may have white-space differences
38935         * build-aux/useless-if-before-free: Recognize cases in which the
38936         freed expression differs from the tested one in embedded white
38937         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38938         $1 was used, so we can't make any regexp shy.  Improved tests now
38939         detect this.
38940
38941         useless-if-before-free: accept white space in the expression.
38942         * build-aux/useless-if-before-free: For now, any white space
38943         in the expression must be identical in the free argument.
38944
38945         useless-if-before-free: efficiency tweak
38946         * build-aux/useless-if-before-free: Make the expression-matching
38947         regexp "shy".
38948         Make the *outer* regexp shy, not the expr-matching one.
38949
38950         update code-in-comment to accept cast of free arg
38951         * build-aux/useless-if-before-free: Update regexp.
38952
38953 2008-05-25  Bruno Haible  <bruno@clisp.org>
38954
38955         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38956         * modules/copy-file-tests (Files, Makefile.am): Update.
38957         * tests/test-copy-file.c (func_test_copy): Update.
38958
38959 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38960
38961         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38962
38963 2008-05-23  Bruno Haible  <bruno@clisp.org>
38964
38965         Improve support for ACLs on OSF/1.
38966         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38967         Remove fallback for unknown flavors of ACLs.
38968
38969 2008-05-22  Bruno Haible  <bruno@clisp.org>
38970
38971         Add support for ACLs on OSF/1.
38972         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38973         replacements.
38974         (acl_free_text): New macro fallback.
38975         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38976         acl_free.
38977         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38978         acl_free_text function. Require AC_C_INLINE.
38979
38980 2008-05-22  Bruno Haible  <bruno@clisp.org>
38981
38982         Make copy_acl work on MacOS X 10.5.
38983         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38984         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38985         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38986         If MODE_INSIDE_ACL, don't assume that every system has the same text
38987         representation for ACLs as FreeBSD.
38988         * lib/copy-acl.c (copy_acl): Add support for platforms with
38989         !MODE_INSIDE_ACL.
38990         * lib/file-has-acl.c (file_has_acl): Likewise.
38991         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38992         FreeBSD, MacOS X, or IRIX, respectively.
38993
38994 2008-05-22  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/acl.h: Don't include <sys/acl.h>.
38997         (GETACLCNT): Move fallback to lib/acl-internal.h.
38998         * lib/acl-internal.h: Include <sys/acl.h> here.
38999         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39000
39001 2008-05-22  Bruno Haible  <bruno@clisp.org>
39002
39003         Split off copy_acl function to separate file.
39004         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39005         * lib/acl.c (copy_acl): Moved function to separate file.
39006         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39007         * modules/acl (Files): Add lib/copy-acl.c.
39008         (Makefiles.am): Augment lib_SOURCES.
39009
39010 2008-05-22  Bruno Haible  <bruno@clisp.org>
39011
39012         * modules/copy-file-tests: New file.
39013         * tests/test-copy-file.sh: New file.
39014         * tests/test-copy-file.c: New file.
39015         * tests/test-copy-file-sameacls.c: New file.
39016
39017 2008-05-22  Eric Blake  <ebb9@byu.net>
39018
39019         Avoid gcc warning.
39020         * tests/test-memcmp.c (main): Pass NULL indirectly.
39021
39022 2008-05-21  Bruno Haible  <bruno@clisp.org>
39023
39024         Add reference doc about ACLs.
39025         * doc/acl-resources.txt: New file.
39026         * doc/acl-cygwin.txt: New file.
39027
39028 2008-05-21  Bruno Haible  <bruno@clisp.org>
39029
39030         Avoid one more warning from gcc.
39031         * lib/vasnprintf.c (IF_LINT): Update comments.
39032         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39033
39034 2008-05-21  Jim Meyering  <meyering@redhat.com>
39035
39036         avoid a warning from gcc
39037         * lib/vasnprintf.c (IF_LINT): Define.
39038         (scale10_round_decimal_long_double):
39039         Use it to avoid a "may be used uninitialized" warning.
39040         (scale10_round_decimal_double): Likewise.
39041
39042 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39043
39044         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39045         declared.
39046
39047 2008-05-20  Bruno Haible  <bruno@clisp.org>
39048
39049         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39050         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39051
39052 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39053
39054         * modules/memcmp-tests: New file.
39055         * tests/test-memcmp.c: New file.
39056
39057 2008-05-19  Bruno Haible  <bruno@clisp.org>
39058
39059         * modules/propername (Notice, configure.ac): Put quoted "..." into
39060         --keyword option.
39061         * lib/propername.h: Update comments accordingly.
39062         Reported by Eric Blake.
39063
39064 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39065
39066         * modules/getpass-gnu (Depends-on): Add fseeko.
39067
39068 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39069
39070         * modules/base64-tests: New file.
39071
39072 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39073
39074         * lib/base64.c (base64_decode_ctx): If a decode context structure
39075         was passed in use it to ignore newlines.  If a context structure
39076         was _not_ passed in, continue to treat newlines as garbage (this
39077         is the historical behavior).  Formerly base64_decode.
39078         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39079         takes a decode context structure.
39080         * lib/base64.h (base64_decode): Macro for four-argument calls.
39081         (base64_decode_alloc): Likewise.
39082         * lib/base64.c (base64_decode_ctx): If a decode context structure
39083         was passed in use it to ignore newlines.  If a context structure
39084         was _not_ passed in, continue to treat newlines as garbage (this
39085         is the historical behavior).  Formerly base64_decode.
39086         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39087         takes a decode context structure.
39088         * lib/base64.h (base64_decode): Macro for four-argument calls.
39089         (base64_decode_alloc): Likewise.
39090
39091 2008-05-19  Jim Meyering  <meyering@redhat.com>
39092
39093         avoid a warning from gcc
39094         * lib/trim.c (IF_LINT): Define.
39095         (trim2): Use it to avoid a "may be used uninitialized" warning.
39096
39097         Fix doc typo.
39098         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39099
39100 2008-05-19  Bruno Haible  <bruno@clisp.org>
39101
39102         * doc/glibc-functions/getpass.texi: Document limits of other
39103         implementations.
39104
39105 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39106             Bruno Haible <bruno@clisp.org>
39107
39108         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39109
39110 2008-05-18  Bruno Haible  <bruno@clisp.org>
39111
39112         * modules/propername: New file, from GNU gettext.
39113         * lib/propername.h: New file, from GNU gettext.
39114         * lib/propername.c: New file, from GNU gettext.
39115         * MODULES.html.sh (Internationalization functions): Add propername.
39116
39117 2008-05-16  Jim Meyering  <meyering@redhat.com>
39118             Bruno Haible  <bruno@clisp.org>
39119
39120         Avoid some warnings from "gcc -Wshadow".
39121         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39122
39123 2008-05-15  Eric Blake  <ebb9@byu.net>
39124
39125         Extend previous patch to cygwin 1.7.0.
39126         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39127         fast implementation in cygwin >= 1.7.0.
39128         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39130
39131 2008-05-15  Bruno Haible  <bruno@clisp.org>
39132
39133         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39134         implementation in glibc >= 2.9.
39135         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39137
39138 2008-05-15  Bruno Haible  <bruno@clisp.org>
39139
39140         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39141         (Unicode string functions): Add unilbrk/*.
39142         Reported by Karl Berry.
39143
39144 2008-05-15  Eric Blake  <ebb9@byu.net>
39145
39146         Fix violation of <stdbool.h> replacement in regex.
39147         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39148         * lib/regexec.c (re_search_internal): Likewise.
39149         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39150
39151 2008-05-15  Jim Meyering  <meyering@redhat.com>
39152
39153         avoid distracting test output when git or cvs is not found
39154         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39155         * tests/test-vc-list-files-git.sh: Likewise.
39156
39157 2008-05-15  Eric Blake  <ebb9@byu.net>
39158
39159         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39160         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39161         glibc version.
39162         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39163         * doc/posix-functions/strstr.texi (strstr): Likewise.
39164         * lib/str-two-way.h (MAX): Sychronize with glibc.
39165
39166 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39167
39168         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39169         opr.ctx_type.
39170         (calc_first): Initialize constraint field.
39171         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39172         Fix grammar.
39173         (duplicate_node): Merge constraint field for all node types.
39174         (calc_eclosure_iter): Look at constraint field for all node types.
39175         * lib/regex_internal.c (create_cd_newstate): Don't look at
39176         opr.ctx_type.
39177
39178 2008-05-14  Bruno Haible  <bruno@clisp.org>
39179
39180         Help GCC to do better code generation.
39181         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39182         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39183         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39184         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39185         Declare with attribute 'malloc' if supported.
39186
39187 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39188
39189         use "echo STR|wc -c" rather than unportable "expr length STR"
39190         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39191         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39192
39193 2008-05-14  Jim Meyering  <meyering@redhat.com>
39194
39195         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39196         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39197         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39198         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39199         via Collin Lasse.
39200
39201 2008-05-14  Eric Blake  <ebb9@byu.net>
39202
39203         Avoid quadratic growth in gl_LIBSOURCES.
39204         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39205         Suggested by Bruno Haible.
39206
39207         Test xmemdup0.
39208         * modules/xmemdup0-tests: New file.
39209         * tests/test-xmemdup0.c: Likewise.
39210
39211 2008-05-13  Eric Blake  <ebb9@byu.net>
39212
39213         Split xmemdup0 into its own module.
39214         * modules/xmemdup0: New file.
39215         * lib/xmemdup0.h: Likewise.
39216         * lib/xmemdup0.c: Likewise.
39217         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39218         * lib/xalloc.h (xmemdup0): Remove.
39219         * lib/xmalloc.c (xmemdup0): Likewise.
39220
39221 2008-05-13  Eric Blake  <ebb9@byu.net>
39222             Bruno Haible  <bruno@clisp.org>
39223
39224         Reduce number of forks required during autoconf.
39225         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39226         and gl_LIBSOURCES_DIR.
39227         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39228         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39229         m4_syscmd per file.
39230         <m4_foreach_w>: Move...
39231         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39232
39233 2008-05-13  Eric Blake  <ebb9@byu.net>
39234
39235         * gnulib-tool: Fix various comment typos.
39236
39237 2008-05-12  Bruno Haible  <bruno@clisp.org>
39238
39239         Tailor the linebreaking algorithm.
39240         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39241
39242 2008-05-12  Bruno Haible  <bruno@clisp.org>
39243
39244         Update to Unicode 5.0.0.
39245         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39246         LBP_JV, LBP_JT. Redistribute values.
39247         (unilbrk_table): Change size.
39248         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39249         Unicode TR#14 rev. 22.
39250         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39251         LBP_JV, LBP_JT. Redistribute values.
39252         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39253         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39254         Update.
39255         * lib/unilbrk/lbrkprop1.h: Regenerated.
39256         * lib/unilbrk/lbrkprop2.h: Regenerated.
39257         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39258         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39259         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39260         Likewise.
39261         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39262         Likewise.
39263         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39264         result.
39265         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39266         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39267         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39268         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39269         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39270         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39271
39272 2008-05-11  Bruno Haible  <bruno@clisp.org>
39273
39274         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39275
39276 2008-05-11  Bruno Haible  <bruno@clisp.org>
39277
39278         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39279         * modules/unilbrk/gen-lbrk: New file.
39280
39281 2008-05-11  Bruno Haible  <bruno@clisp.org>
39282
39283         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39284         * m4/sha512.m4 (gl_SHA512): Likewise.
39285
39286 2008-05-11  Jim Meyering  <meyering@redhat.com>
39287
39288         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39289         * modules/crypto/sha256: New file.
39290         * modules/crypto/sha512: Likewise.
39291         * lib/sha256.c: Likewise.
39292         * lib/sha256.h: Likewise.
39293         * lib/sha512.c: Likewise.
39294         * lib/sha512.h: Likewise.
39295         * lib/u64.h: Likewise.
39296         * m4/sha256.m4: Likewise.
39297         * m4/sha512.m4: Likewise.
39298         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39299
39300 2008-05-10  Bruno Haible  <bruno@clisp.org>
39301
39302         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39303         (Input/Output <stdio.h>): Add xprintf.
39304         (Signal handling <signal.h>): Add strsignal.
39305         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39306         (Core language properties): Add func.
39307         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39308         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39309         strings.
39310         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39311         (Input/output): New section.
39312         (File system functions): Add openat-die, stat-macros.
39313         (Networking functions): Add sockets.
39314         (Unicode string functions): Add unictype/*.
39315         (Support for building libraries and executables): Add gperf.
39316         (Support for building documentation): Add agpl-3.0.
39317         (Misc): Add nocrash.
39318
39319 2008-05-10  Bruno Haible  <bruno@clisp.org>
39320
39321         * modules/unictype/gen-ctype: New file.
39322
39323 2008-05-10  Jim Meyering  <meyering@redhat.com>
39324
39325         Make chdir-safer.c more efficient on a system with no symlinks.
39326         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39327         also if ELOOP is zero.  Suggested by Bruno Haible.
39328
39329         Make chdir-safer.c slightly safer.
39330         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39331         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39332
39333         Avoid compile failure on systems without ELOOP (like mingw).
39334         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39335         Reported by Bruno Haible.
39336
39337 2008-05-10  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39340         (is_utf8_encoding): Use a case-insensitive comparison.
39341         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39342         streq.
39343
39344 2008-05-10  Bruno Haible  <bruno@clisp.org>
39345
39346         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39347         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39348         * lib/unilbrk/ulc-common.h (iconv_string_length,
39349         iconv_string_keeping_offsets): Remove declarations.
39350         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39351         Don't include <iconv.h>, streq.h, xsize.h.
39352         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39353         conversion.
39354         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39355         <iconv.h>, streq.h, xsize.h.
39356         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39357         conversion.
39358         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39359         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39360         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39361         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39362
39363 2008-05-10  Bruno Haible  <bruno@clisp.org>
39364
39365         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39366         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39367
39368         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39369         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39370
39371         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39372         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39373
39374         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39375         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39376
39377         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39378         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39379
39380         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39381         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39382
39383         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39384         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39385
39386         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39387         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39388
39389 2008-05-10  Bruno Haible  <bruno@clisp.org>
39390
39391         Split up 'linebreak' module.
39392         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39393         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39394         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39395         modifications.
39396         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39397         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39398         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39399         lib/linebreak.c.
39400         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39401         lib/linebreak.c.
39402         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39403         lib/linebreak.c.
39404         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39405         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39406         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39407         lib/linebreak.c.
39408         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39409         lib/linebreak.c.
39410         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39411         lib/linebreak.c.
39412         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39413         lib/linebreak.c.
39414         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39415         lib/linebreak.c.
39416         * modules/unilbrk/base: New file.
39417         * modules/unilbrk/tables: New file.
39418         * modules/unilbrk/u8-possible-linebreaks: New file.
39419         * modules/unilbrk/u16-possible-linebreaks: New file.
39420         * modules/unilbrk/u32-possible-linebreaks: New file.
39421         * modules/unilbrk/ulc-common: New file.
39422         * modules/unilbrk/ulc-possible-linebreaks: New file.
39423         * modules/unilbrk/u8-width-linebreaks: New file.
39424         * modules/unilbrk/u16-width-linebreaks: New file.
39425         * modules/unilbrk/u32-width-linebreaks: New file.
39426         * modules/unilbrk/ulc-width-linebreaks: New file.
39427         * lib/linebreak.h: Remove file.
39428         * lib/linebreak.c: Remove file.
39429         * m4/linebreak.m4: Remove file.
39430         * modules/linebreak: Remove file.
39431         * NEWS: Mention the changes.
39432
39433 2008-05-09  Eric Blake  <ebb9@byu.net>
39434
39435         Add xmemdup0.
39436         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39437         implementation.
39438         * lib/xmalloc.c (xmemdup0): New C implementation.
39439
39440 2008-05-08  Bruno Haible  <bruno@clisp.org>
39441
39442         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39443
39444 2008-05-07  Eric Blake  <ebb9@byu.net>
39445
39446         Support cross-compilation of <wctype.h>.
39447         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39448         AC_CACHE_CHECK.
39449
39450 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39451
39452         * build-aux/vc-list-files: Add support for bzr.
39453
39454 2008-05-03  Jim Meyering  <meyering@redhat.com>
39455
39456         avoid failed assertion with tight malloc
39457         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39458
39459 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39460
39461         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39462         are needed from arpa/inet.h.
39463         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39464         Reported by Bruno Haible.
39465
39466 2008-05-02  Jim Meyering  <meyering@redhat.com>
39467
39468         avoid compilation error on FreeBSD 6
39469         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39470
39471 2008-05-01  Jim Meyering  <meyering@redhat.com>
39472
39473         useless-if-before-free: correct --help's exit status description
39474         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39475         for one or more matches, etc.  Reported by Bruno Haible.
39476
39477         vc-list-files: make the stand-alone gnulib test work
39478         * modules/vc-list-files-tests (configure.ac):
39479         Define and AC_SUBST abs_aux_dir.
39480         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39481         $(abs_top_srcdir) to each script and having each of them
39482         duplicate the work of setting PATH, set PATH here, using
39483         the new variable, abs_aux_dir instead.
39484         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39485         * tests/test-vc-list-files-git.sh: Likewise.
39486         Reported by Bruno Haible.
39487
39488 2008-05-01  Bruno Haible  <bruno@clisp.org>
39489
39490         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39491         reallocation. Rename 'done' to 'found_delimiter'.
39492
39493 2008-05-01  Jim Meyering  <meyering@redhat.com>
39494
39495         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39496         * build-aux/vc-list-files: Use `...`, not $(...).
39497
39498 2008-04-30  Jim Meyering  <meyering@redhat.com>
39499
39500         add tests for vc-list-files
39501         * modules/vc-list-files-tests: New module.
39502         * tests/test-vc-list-files-cvs.sh: New file.
39503         * tests/test-vc-list-files-git.sh: New file.
39504
39505         avoid a warning from gcc
39506         * lib/getndelim2.c (IF_LINT): Define.
39507         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39508
39509         vc-list-files: work properly with build-aux/cvsu, too
39510         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39511         to all cvs-based clauses.
39512
39513         vc-list-files: work properly in the CVS+awk case, too
39514         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39515
39516         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39517         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39518         take more than one file argument, so .  Add quotes, just in case $dir
39519         ever contains a shell meta-character.  Prompted by Soren Hansen in
39520         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39521
39522 2008-04-29  Eric Blake  <ebb9@byu.net>
39523
39524         Optimize getndelim2 to use block operations when possible.
39525         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39526         freadseek, and memchr2.
39527         * lib/getndelim2.c (getndelim2): Use them for block reads.
39528
39529 2008-04-29  Bruno Haible  <bruno@clisp.org>
39530
39531         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39532         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39533         * modules/inet_ntop (Depends-on): Add extensions.
39534         * modules/inet_pton (Depends-on): Likewise.
39535         Reported by Simon Josefsson.
39536
39537 2008-04-29  Jim Meyering  <meyering@redhat.com>
39538
39539         When the is more than one match in a block, match all of them.
39540         * build-aux/useless-if-before-free: Iterate through each block
39541         until there are no more matches.
39542
39543         Fix broken useless-if-before-free script.
39544         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39545         the expression to match cast of argument to free-like function.
39546
39547 2008-04-29  Eric Blake  <ebb9@byu.net>
39548
39549         Use new header.
39550         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39551
39552 2008-04-29  Jim Meyering  <meyering@redhat.com>
39553
39554         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39555         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39556         by gnulib to exist and to declare e.g., inet_ntop.
39557         Don't include "inet_ntop.h", now removed.
39558
39559         * m4/arpa_inet_h.m4: Remove trailing blanks.
39560
39561 2008-04-29  Eric Blake  <ebb9@byu.net>
39562
39563         Silence valgrind on safe reads beyond potential array bounds.
39564         * lib/rawmemchr.valgrind: New file.
39565         * lib/strchrnul.valgrind: Likewise.
39566         * modules/rawmemchr (Files): Distribute new file.
39567         * modules/strchrnul (Files): Likewise.
39568         Suggested by Bruno Haible.
39569
39570 2008-04-29  Bruno Haible  <bruno@clisp.org>
39571
39572         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39573         (inet_ntop, inet_pton): Change portability warning's wording.
39574         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39575         Invoke gl_CHECK_NEXT_HEADERS.
39576         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39577         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39578         set ARPA_INET_H.
39579         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39580         * modules/arpa_inet (Description): No longer only for systems that
39581         lack it.
39582         (Depends-on): Add include_next.
39583         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39584         HAVE_ARPA_INET_H.
39585
39586 2008-04-29  Jim Meyering  <meyering@redhat.com>
39587
39588         * modules/mkdir (License): Re-license as LGPLv2+.
39589
39590 2008-04-29  Bruno Haible  <bruno@clisp.org>
39591
39592         * modules/rawmemchr (Maintainer): Set to Eric.
39593         * modules/strchrnul (Maintainer): Likewise.
39594
39595 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39596
39597         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39598         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39599
39600         * modules/arpa_inet (arpa/inet.h): Use them.
39601
39602 2008-04-28  Eric Blake  <ebb9@byu.net>
39603
39604         Test getndelim2.
39605         * modules/getndelim2-tests: New file.
39606         * tests/test-getndelim2.c: Likewise.
39607         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39608         stream.
39609         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39610
39611         * MODULES.html.sh: Document new module.
39612
39613 2008-04-20  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/c-stack.c (die): Use raise.
39616         * modules/c-stack (Depends-on): Add raise.
39617
39618 2008-04-28  Bruno Haible  <bruno@clisp.org>
39619
39620         Expect rpmatch to be declared.
39621         * lib/yesno.c (rpmatch): Remove declaration.
39622
39623         Declare rpmatch.
39624         * lib/stdlib.in.h (rpmatch): New declaration.
39625         * lib/rpmatch.c: Include <stdlib.h> first.
39626         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39627         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39629         HAVE_RPMATCH.
39630         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39631         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39632         (Include): Set to <stdlib.h>.
39633         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39634         HAVE_RPMATCH.
39635         * NEWS: Document the change.
39636
39637 2008-04-28  Bruno Haible  <bruno@clisp.org>
39638
39639         Change rpmatch to use nl_langinfo when appropriate.
39640         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39641         (N_): New macro.
39642         (localized_pattern): New function/macro.
39643         (try): Remove match, nomatch arguments. Copy the pattern into safe
39644         memory before caching it.
39645         (rpmatch): Use localized_pattern. Add translator comments.
39646         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39647         Suggested by Eric Blake.
39648         * modules/rpmatch (Depends-on): Add stdbool.
39649
39650 2008-04-28  Eric Blake  <ebb9@byu.net>
39651
39652         Add rawmemchr module, matching glibc.
39653         * modules/string (Makefile.am): New indicator.
39654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39655         * lib/string.in.h (rawmemchr): Declare when appropriate.
39656         * modules/rawmemchr: New file.
39657         * m4/rawmemchr.m4: Likewise.
39658         * lib/rawmemchr.c: Likewise.
39659         * modules/rawmemchr-tests: Likewise.
39660         * tests/test-rawmemchr.c: Likewise.
39661         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39662         module.
39663         * modules/strchrnul (Depends-on): Add rawmemchr.
39664         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39665
39666         Whitespace cleanup.
39667         * tests/test-strchrnul.c: Reindent.
39668         * lib/strchrnul.c: Likewise.
39669
39670         Optimize and test strchrnul.
39671         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39672         * modules/strchrnul-tests: New file.
39673         * tests/test-strchrnul.c: Likewise.
39674
39675         Remove intprops dependency.
39676         * modules/memchr (Depends-on): Remove intprops.
39677         * modules/memrchr (Depends-on): Likewise.
39678         * modules/memchr2 (Depends-on): Likewise.
39679         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39680         * lib/memrchr.c (__memrchr): Likewise.
39681         * lib/memrchr2.c (memchr2): Likewise.
39682         Reported by Simon Josefsson.
39683
39684 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39685
39686         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39687         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39688
39689 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39690
39691         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39692
39693         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39694
39695         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39696
39697         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39698         declarations.
39699         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39700
39701         * m4/inet_pton.m4: Don't check for header files.
39702
39703         * m4/inet_ntop.m4: Don't check for header files.
39704
39705 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39706
39707         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39708         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39709         trigger for cygwin).
39710         Reported by Bruno Haible  <bruno@clisp.org>.
39711
39712 2008-04-28  Bruno Haible  <bruno@clisp.org>
39713
39714         * doc/posix-functions/strdup.texi: Mention mingw problem.
39715
39716 2008-04-27  Bruno Haible  <bruno@clisp.org>
39717
39718         * modules/stat-time-tests (Depends-on): Add sleep.
39719         * tests/test-stat-time.c (force_unlink): New function.
39720         (cleanup): Use it.
39721         (test_mtime): Remove the ctime related tests.
39722         (test_ctime): New function, containing the ctime related tests.
39723         (main): Call test_ctime, except on native Windows platforms.
39724
39725 2008-04-27  Bruno Haible  <bruno@clisp.org>
39726
39727         * lib/rpmatch.c (rpmatch): Add some comments.
39728         Reported by James Youngman <jay@gnu.org>.
39729
39730 2008-04-27  Bruno Haible  <bruno@clisp.org>
39731
39732         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39733         quiet NaNs.
39734
39735 2008-04-27  Bruno Haible  <bruno@clisp.org>
39736
39737         Make test-yesno.sh work on mingw.
39738         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39739         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39740         (main): Set stdin to binary mode.
39741         * modules/yesno-tests (Depends-on): Add binary-io.
39742
39743 2008-04-27  Bruno Haible  <bruno@clisp.org>
39744
39745         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39746         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39747         argument that lie outside the IEEE 854 domain.
39748         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39749         (gl_ISFINITE): Use it.
39750         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39751
39752 2008-04-27  Bruno Haible  <bruno@clisp.org>
39753
39754         Allow local renaming in config.h.
39755         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39756
39757 2008-04-27  Bruno Haible  <bruno@clisp.org>
39758
39759         * lib/memchr.c (__memchr): Change type of 'i'.
39760         * lib/memchr2.c (memchr2): Likewise.
39761
39762 2008-04-26  Eric Blake  <ebb9@byu.net>
39763         and Bruno Haible  <bruno@clisp.org>
39764
39765         Optimize and test memrchr.
39766         * modules/memrchr (Depends-on): Add intprops.
39767         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39768         * modules/memrchr-tests: New file.
39769         * tests/test-memrchr.c: New file.
39770
39771 2008-04-26  Bruno Haible  <bruno@clisp.org>
39772
39773         Add tentative support for DragonFly BSD.
39774         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39775         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39776         fp.
39777         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39778         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39779         * lib/fpurge.c (fpurge): Likewise.
39780         * lib/freadable.c (freaadable): Likewise.
39781         * lib/freadahead.c (freadahead): Likewise.
39782         * lib/freading.c (freading): Likewise.
39783         * lib/freadptr.c (freadptr): Likewise.
39784         * lib/freadseek.c (freadptrinc): Likewise.
39785         * lib/fseeko.c (fseeko): Likewise.
39786         * lib/fseterr.c (fseterr): Likewise.
39787         * lib/fwritable.c (fwritable): Likewise.
39788         * lib/fwriting.c (fwriting): Likewise.
39789
39790 2008-04-26  Bruno Haible  <bruno@clisp.org>
39791
39792         * lib/stdio-impl.h: New file.
39793         * lib/fbufmode.c: Include stdio-impl.h.
39794         (fbufmode): Use fp_, remove redundant #defines.
39795         * lib/fflush.c: Include stdio-impl.h.
39796         (clear_ungetc_buffer): Remove redundant #defines.
39797         * lib/fpurge.c: Include stdio-impl.h.
39798         (fpurge): Remove redundant #defines.
39799         * lib/freadable.c: Include stdio-impl.h.
39800         (freadable): Remove redundant #defines.
39801         * lib/freadahead.c: Include stdio-impl.h.
39802         (freadahead): Remove redundant #defines.
39803         * lib/freading.c: Include stdio-impl.h.
39804         (freading): Remove redundant #defines.
39805         * lib/freadptr.c: Include stdio-impl.h.
39806         (freadptr): Remove redundant #defines.
39807         * lib/freadseek.c: Include stdio-impl.h.
39808         (freadptrinc): Remove redundant #defines.
39809         * lib/fseeko.c: Include stdio-impl.h.
39810         (rpl_fseeko): Remove redundant #defines.
39811         * lib/fseterr.c: Include stdio-impl.h.
39812         (fseterr): Remove redundant #defines.
39813         * lib/fwritable.c: Include stdio-impl.h.
39814         (fwritable: Remove redundant #defines.
39815         * lib/fwriting.c: Include stdio-impl.h.
39816         (fwriting): Remove redundant #defines.
39817         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39818         * modules/fflush (Files): Likewise.
39819         * modules/fpurge (Files): Likewise.
39820         * modules/freadable (Files): Likewise.
39821         * modules/freadahead (Files): Likewise.
39822         * modules/freading (Files): Likewise.
39823         * modules/freadptr (Files): Likewise.
39824         * modules/freadseek (Files): Likewise.
39825         * modules/fseeko (Files): Likewise.
39826         * modules/fseterr (Files): Likewise.
39827         * modules/fwritable (Files): Likewise.
39828         * modules/fwriting (Files): Likewise.
39829
39830 2008-04-26  Bruno Haible  <bruno@clisp.org>
39831
39832         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39833         restore_seek_optimization, update_fpos_cache): New functions, extracted
39834         from rpl_fflush.
39835         (rpl_fflush): Use them.
39836         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39837         (gl_REPLACE_FFLUSH): Use it.
39838
39839 2008-04-26  Bruno Haible  <bruno@clisp.org>
39840
39841         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39842         on Solaris.
39843         * tests/test-xstrtoimax.sh: Likewise.
39844         * tests/test-xstrtoumax.sh: Likewise.
39845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39846
39847 2008-04-26  Bruno Haible  <bruno@clisp.org>
39848
39849         * modules/memchr-tests: New file.
39850         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39851
39852 2008-04-26  Eric Blake  <ebb9@byu.net>
39853             Bruno Haible  <bruno@clisp.org>
39854
39855         * lib/memchr.c: Include intprops.h.
39856         (__memchr): Optimize parallel detection of matching bytes. Rename local
39857         variables. Add explanatory comments.
39858
39859 2008-04-26  Bruno Haible  <bruno@clisp.org>
39860
39861         Fix module 'memchr', broken since 2000-10-28.
39862         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39863
39864 2008-04-26  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39867         comments.
39868
39869 2008-04-25  Eric Blake  <ebb9@byu.net>
39870
39871         Use native fstatat on cygwin 1.7.0.
39872         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39873         first.
39874
39875 2008-04-23  Eric Blake  <ebb9@byu.net>
39876
39877         Improve memchr2 performance.
39878         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39879         NUL bytes.
39880         * modules/memchr2 (Depends-on): Use intprops.h.
39881
39882 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39883
39884         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39885         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39886         <blp@cs.stanford.edu>.
39887
39888 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39889
39890         * lib/arpa_inet.in.h: New file.
39891
39892         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39893         (Makefile.am): Sed in substitute header file.
39894
39895         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39896         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39897
39898         * modules/inet_ntop (configure.ac): Use
39899         gl_ARPA_INET_MODULE_INDICATOR.
39900
39901         * modules/inet_pton (configure.ac): Use
39902         gl_ARPA_INET_MODULE_INDICATOR.
39903
39904 2008-04-22  Jim Meyering  <meyering@redhat.com>
39905
39906         * modules/verify (License): Re-license as LGPLv2+.
39907
39908 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39909
39910         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39911         parameter to void* as per POSIX standard (MinGW uses char*).
39912
39913 2008-04-21  Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39916         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39917         Define to replacements if REPLACE_ISWCNTRL is 1.
39918         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39919         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39920         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39921         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39922         what it fixes.
39923         * doc/posix-functions/iswalpha.texi: Likewise.
39924         * doc/posix-functions/iswblank.texi: Likewise.
39925         * doc/posix-functions/iswcntrl.texi: Likewise.
39926         * doc/posix-functions/iswdigit.texi: Likewise.
39927         * doc/posix-functions/iswgraph.texi: Likewise.
39928         * doc/posix-functions/iswlower.texi: Likewise.
39929         * doc/posix-functions/iswprint.texi: Likewise.
39930         * doc/posix-functions/iswpunct.texi: Likewise.
39931         * doc/posix-functions/iswspace.texi: Likewise.
39932         * doc/posix-functions/iswupper.texi: Likewise.
39933         * doc/posix-functions/iswxdigit.texi: Likewise.
39934         Reported by Alain Guibert.
39935
39936 2008-04-21  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39939         Patch by Alain Guibert.
39940
39941 2008-04-21  Bruno Haible  <bruno@clisp.org>
39942
39943         Fix test failures on mingw.
39944         * tests/test-xstrtol.c (print_no_progname): New function.
39945         (main): Install it in error_print_progname hook.
39946         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39947         * tests/test-xstrtoimax.sh: Likewise.
39948         * tests/test-xstrtoumax.sh: Likewise.
39949
39950 2008-04-21  Bruno Haible  <bruno@clisp.org>
39951
39952         Fix test failure on mingw.
39953         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39954
39955 2008-04-21  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39958         Actually assign a value.
39959
39960 2008-04-20  Bruno Haible  <bruno@clisp.org>
39961
39962         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39963         take 2.
39964         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39965         'canonicalize-lgpl' module is also used.
39966         * lib/canonicalize-lgpl.c: Undo last change.
39967         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39968
39969 2008-04-20  Bruno Haible  <bruno@clisp.org>
39970
39971         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39972         config.h. Provide _mkdir based fallback for mingw.
39973         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39974         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39975         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39976         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39977         rather than defining mkdir in config.h.
39978         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39979         (gl_SYS_STAT_H_DEFAULTS): New macro.
39980         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39981         HAVE_IO_H any more.
39982         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39983         HAVE_DECL_MKDIR and HAVE_IO_H.
39984
39985 2008-04-20  Bruno Haible  <bruno@clisp.org>
39986
39987         * lib/isapipe.c: Port to native Windows platforms.
39988
39989 2008-04-20  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39992
39993 2008-04-21  Eric Blake  <ebb9@byu.net>
39994
39995         Work around preprocessors that don't handle UINTMAX_MAX.
39996         * lib/memchr2.c (memchr2): Avoid embedded #if.
39997         Reported by Alain Guibert, fix suggested by Bruno Haible.
39998
39999 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40000
40001         * doc/posix-functions/strftime.texi (strftime): Explain better
40002         Windows incompatibility.  Suggested by Micah Cowan
40003         <micah@cowan.name>.
40004
40005 2008-04-20  Bruno Haible  <bruno@clisp.org>
40006
40007         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40008         unistr/u8-mblen.
40009
40010 2008-04-20  Bruno Haible  <bruno@clisp.org>
40011
40012         Fix test failure on platforms with non-GNU iconv.
40013         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40014         (U_TO_U8): Use it, rather than u16_to_u8.
40015         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40016         units at the end of the input string.
40017         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40018
40019 2008-04-20  Bruno Haible  <bruno@clisp.org>
40020
40021         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40022         when the resulting length is 0.
40023         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40024
40025 2008-04-20  Bruno Haible  <bruno@clisp.org>
40026
40027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40028         works.
40029         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40030
40031 2008-04-20  Bruno Haible  <bruno@clisp.org>
40032
40033         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40034         * modules/tsearch-tests (configure.ac): Test for initstate function.
40035
40036 2008-04-20  Bruno Haible  <bruno@clisp.org>
40037
40038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40039         for nlink_t if missing.
40040         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40041
40042 2008-04-19  Bruno Haible  <bruno@clisp.org>
40043
40044         Work around snprintf bug on Linux libc5.
40045         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40047         gl_SNPRINTF_SIZE1.
40048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40049         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40050         that test failed.
40051         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40052         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40053         * modules/snprintf (Files): Add m4/printf.m4.
40054         * modules/vsnprintf (Files): Likewise.
40055         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40056         * doc/posix-functions/vsnprintf.texi: Likewise.
40057
40058 2008-04-19  Bruno Haible  <bruno@clisp.org>
40059
40060         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40061         from 0.0058 to less than 10^-7.
40062
40063 2008-04-19  Bruno Haible  <bruno@clisp.org>
40064
40065         Fix rounding when a precision is given.
40066         * lib/vasnprintf.c (is_borderline): New function.
40067         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40068         9...9x.
40069         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40070         %e, %g.
40071         * tests/test-vasprintf-posix.c (test_function): Likewise.
40072         * tests/test-snprintf-posix.h (test_function): Likewise.
40073         * tests/test-sprintf-posix.h (test_function): Likewise.
40074         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40075         * tests/test-printf-posix.h (test_function): Likewise.
40076         * tests/test-printf-posix.output: Update.
40077         Reported by John Darrington <john@darrington.wattle.id.au> via
40078         Ben Pfaff <blp@cs.stanford.edu>.
40079
40080 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40081
40082         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40083         Suggested by Bruno Haible <bruno@clisp.org>.
40084
40085 2008-04-17  Bruno Haible  <bruno@clisp.org>
40086
40087         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40088         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40089         implementation.
40090         Patch by Bruce Merry <bmerry@gmail.com>.
40091
40092 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40093
40094         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40095         doesn't work under Windows.
40096
40097 2008-04-16  Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40100         New macros.
40101         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40102         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40103         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40104         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40105         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40106         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40107         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40108         macros.
40109         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40110         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40111         Northern Sotho, Uighur.
40112
40113 2008-04-16  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40116         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40117         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40118         Reported by Daniel Bergström <daniel@octocode.com>.
40119
40120 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40121             Bruno Haible  <bruno@clisp.org>
40122
40123         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40124         function.
40125         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40126         New functions, mostly extracted from gl_locale_name_default.
40127         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40128
40129 2008-04-16  Eric Blake  <ebb9@byu.net>
40130
40131         Adjust strtod detection to catch glibc 2.7 bug.
40132         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40133         Reported by John Gatewood Ham.
40134
40135 2008-04-16  Bruno Haible  <bruno@clisp.org>
40136
40137         Add tentative support for Linux libc5.
40138         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40139         * lib/fpurge.c (fpurge): Likewise.
40140         * lib/freadable.c (freadable): Likewise.
40141         * lib/freadahead.c (freadahead): Likewise.
40142         * lib/freading.c (freading): Likewise.
40143         * lib/freadptr.c (freadptr): Likewise.
40144         * lib/freadseek.c (freadptrinc): Likewise.
40145         * lib/fseeko.c (rpl_fseeko): Likewise.
40146         * lib/fseterr.c (fseterr): Likewise.
40147         * lib/fwritable.c (fwritable): Likewise.
40148         * lib/fwriting.c (fwriting): Likewise.
40149         Reported by Alain Guibert <alguibert+bts@free.fr>.
40150
40151 2008-04-15  Bruno Haible  <bruno@clisp.org>
40152
40153         * modules/mathl (configure.ac): Define module indicator.
40154
40155 2008-04-15  Bruno Haible  <bruno@clisp.org>
40156
40157         * lib/logl.c (logl): Remove unused variables.
40158
40159 2008-04-15  Bruno Haible  <bruno@clisp.org>
40160
40161         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40162         fails.
40163
40164 2008-04-15  Bruno Haible  <bruno@clisp.org>
40165
40166         * lib/trim.c (trim2): Fix argument of isspace() macro.
40167
40168 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40169
40170         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40171         to 0.
40172         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40173
40174 2008-04-14  Bruno Haible  <bruno@clisp.org>
40175
40176         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40177         AC_LANG_PROGRAM argument.
40178         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40179         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40181         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40182         * m4/math_h.m4 (gl_MATH_H): Likewise.
40183         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40184         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40185         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40186         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40187         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40188         * m4/regex.m4 (gl_REGEX): Likewise.
40189         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40190         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40192         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40193         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40194         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40197
40198 2008-04-14  Jim Meyering  <meyering@redhat.com>
40199
40200         test-strtod: fix typos: s/abs/fabs/
40201         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40202
40203 2008-04-13  Bruno Haible  <bruno@clisp.org>
40204
40205         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40206         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40207         module is also used and while not building the reloc-wrapper.
40208
40209 2008-04-13  Bruno Haible  <bruno@clisp.org>
40210
40211         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40212
40213 2008-04-13  Bruno Haible  <bruno@clisp.org>
40214
40215         Fix AIX compilation failure introduced on 2008-04-02.
40216         * tests/test-frexp.c (exp): Undefine before redefining.
40217         * tests/test-frexpl.c (exp): Likewise.
40218
40219 2008-04-13  Bruno Haible  <bruno@clisp.org>
40220
40221         Work around a HP-UX stdio bug.
40222         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40223         * tests/test-ftello.c (main): Likewise.
40224         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40225         * doc/posix-functions/ftello.texi: Likewise.
40226
40227 2008-04-13  Bruno Haible  <bruno@clisp.org>
40228
40229         Make test-signbit pass on HP-UX/hppa.
40230         * tests/test-signbit.c (minus_zerol): New variable.
40231         (test_signbitl): Use it.
40232
40233 2008-04-13  Bruno Haible  <bruno@clisp.org>
40234
40235         Make truncl work on OSF/1 4.0.
40236         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40237         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40238         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40240         HAVE_DECL_TRUNCL.
40241         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40242         HAVE_DECL_TRUNCL.
40243         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40244
40245 2008-04-13  Bruno Haible  <bruno@clisp.org>
40246
40247         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40248
40249 2008-04-13  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40252         expression, so as to avoid HP-UX 11 cc compiler bug.
40253
40254 2008-04-13  Bruno Haible  <bruno@clisp.org>
40255
40256         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40257
40258 2008-04-13  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/git-merge-changelog.c: Remove empty declaration outside of
40261         functions.
40262
40263 2008-04-13  Bruno Haible  <bruno@clisp.org>
40264
40265         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40266
40267 2008-04-13  Bruno Haible  <bruno@clisp.org>
40268
40269         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40270         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40272         also if it exists but lacks definitions of the SHUT_* macros.
40273         * modules/sys_socket (Description): Update.
40274         Reported by Elbert Pol <e.pol@chello.nl>.
40275
40276 2008-04-13  Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/localcharset.c (OS2): Don't redefine if already defined.
40279         Reported by Elbert Pol <e.pol@chello.nl>.
40280
40281 2008-04-13  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/binary-io.h [__EMX__]: Include <io.h>.
40284         Reported by Elbert Pol <e.pol@chello.nl>.
40285
40286 2008-04-12  Bruno Haible  <bruno@clisp.org>
40287
40288         * lib/fpucw.h: Enable the definitions also for x86_64.
40289         Needed for NetBSD/x86_64.
40290         Reported by Thomas Klausner <tk@giga.or.at>.
40291
40292 2008-04-12  Bruno Haible  <bruno@clisp.org>
40293
40294         * tests/test-strtod.c: Include isnand.h.
40295         (main): Use isnand instead of isnan.
40296         Reported by Jim Meyering.
40297
40298 2008-04-12  Bruno Haible  <bruno@clisp.org>
40299
40300         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40301         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40302
40303 2008-04-12  Jim Meyering  <meyering@redhat.com>
40304
40305         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40306
40307 2008-04-12  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40310         Reported by Elbert Pol <e.pol@chello.nl>.
40311
40312 2008-04-12  Eric Blake  <ebb9@byu.net>
40313
40314         Work around Solaris 10 math.h bug.
40315         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40316         (gl_MATH_H_DEFAULTS): Set up default.
40317         * modules/math (Makefile.am): Replace new indicators.
40318         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40319         * tests/test-math.c (main): Test this.
40320         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40321         * doc/posix-headers/math.texi (math.h): Mention bug.
40322         Reported by Nelson H. F. Beebe and Jim Meyering.
40323
40324 2008-04-11  Bruno Haible  <bruno@clisp.org>
40325
40326         Adapt to future versions of Apple GCC.
40327         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40328         Reported by Peter O'Gorman <peter@pogma.com>.
40329
40330 2008-04-11  Bruno Haible  <bruno@clisp.org>
40331
40332         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40333
40334 2008-04-11  Bruno Haible  <bruno@clisp.org>
40335
40336         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40337
40338         * modules/getaddrinfo-tests (Makefile.am): Define
40339         test_getaddrinfo_LDADD.
40340
40341 2008-04-11  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40344         (init): Fix syntax error.
40345         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40346         is declared.
40347
40348 2008-04-11  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40351         * modules/glob (Depends-on): Add stdbool.
40352
40353 2008-04-11  Bruno Haible  <bruno@clisp.org>
40354
40355         * lib/trim.c: Include <string.h>.
40356
40357 2008-04-11  Eric Blake  <ebb9@byu.net>
40358
40359         Avoid compile failure on OS/2.
40360         * lib/regex_internal.h (internal_function): Disable optimization
40361         on OS/2 (__EMX__), where it caused compiler error.
40362         Reported by Elbert Pol.
40363
40364 2008-04-11  Bruno Haible  <bruno@clisp.org>
40365
40366         Flush the standard error stream before aborting. Needed on mingw.
40367         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40368         * tests/test-array_list.c (ASSERT): Likewise.
40369         * tests/test-array_oset.c (ASSERT): Likewise.
40370         * tests/test-avltree_list.c (ASSERT): Likewise.
40371         * tests/test-avltree_oset.c (ASSERT): Likewise.
40372         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40373         * tests/test-binary-io.c (ASSERT): Likewise.
40374         * tests/test-byteswap.c (ASSERT): Likewise.
40375         * tests/test-c-ctype.c (ASSERT): Likewise.
40376         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40377         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40378         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40379         * tests/test-c-strstr.c (ASSERT): Likewise.
40380         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40381         * tests/test-canonicalize.c (ASSERT): Likewise.
40382         * tests/test-carray_list.c (ASSERT): Likewise.
40383         * tests/test-ceilf1.c (ASSERT): Likewise.
40384         * tests/test-ceilf2.c (ASSERT): Likewise.
40385         * tests/test-ceill.c (ASSERT): Likewise.
40386         * tests/test-count-one-bits.c (ASSERT): Likewise.
40387         * tests/test-fbufmode.c (ASSERT): Likewise.
40388         * tests/test-fflush2.c (ASSERT): Likewise.
40389         * tests/test-floorf1.c (ASSERT): Likewise.
40390         * tests/test-floorf2.c (ASSERT): Likewise.
40391         * tests/test-floorl.c (ASSERT): Likewise.
40392         * tests/test-fopen.c (ASSERT): Likewise.
40393         * tests/test-fpending.c (ASSERT): Likewise.
40394         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40395         * tests/test-fpurge.c (ASSERT): Likewise.
40396         * tests/test-freadable.c (ASSERT): Likewise.
40397         * tests/test-freadahead.c (ASSERT): Likewise.
40398         * tests/test-freading.c (ASSERT): Likewise.
40399         * tests/test-freadptr.c (ASSERT): Likewise.
40400         * tests/test-freadptr2.c (ASSERT): Likewise.
40401         * tests/test-freadseek.c (ASSERT): Likewise.
40402         * tests/test-freopen.c (ASSERT): Likewise.
40403         * tests/test-frexp.c (ASSERT): Likewise.
40404         * tests/test-frexpl.c (ASSERT): Likewise.
40405         * tests/test-fseek.c (ASSERT): Likewise.
40406         * tests/test-fseeko.c (ASSERT): Likewise.
40407         * tests/test-fstrcmp.c (ASSERT): Likewise.
40408         * tests/test-ftell.c (ASSERT): Likewise.
40409         * tests/test-ftello.c (ASSERT): Likewise.
40410         * tests/test-func.c (ASSERT): Likewise.
40411         * tests/test-fwritable.c (ASSERT): Likewise.
40412         * tests/test-fwriting.c (ASSERT): Likewise.
40413         * tests/test-getdelim.c (ASSERT): Likewise.
40414         * tests/test-getline.c (ASSERT): Likewise.
40415         * tests/test-i-ring.c (ASSERT): Likewise.
40416         * tests/test-iconv-utf.c (ASSERT): Likewise.
40417         * tests/test-iconv.c (ASSERT): Likewise.
40418         * tests/test-isfinite.c (ASSERT): Likewise.
40419         * tests/test-isnand.c (ASSERT): Likewise.
40420         * tests/test-isnanf.c (ASSERT): Likewise.
40421         * tests/test-isnanl.h (ASSERT): Likewise.
40422         * tests/test-ldexpl.c (ASSERT): Likewise.
40423         * tests/test-linked_list.c (ASSERT): Likewise.
40424         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40425         * tests/test-localename.c (ASSERT): Likewise.
40426         * tests/test-lseek.c (ASSERT): Likewise.
40427         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40428         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40429         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40430         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40431         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40432         * tests/test-mbschr.c (ASSERT): Likewise.
40433         * tests/test-mbscspn.c (ASSERT): Likewise.
40434         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40435         * tests/test-mbspbrk.c (ASSERT): Likewise.
40436         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40437         * tests/test-mbsrchr.c (ASSERT): Likewise.
40438         * tests/test-mbsspn.c (ASSERT): Likewise.
40439         * tests/test-mbsstr1.c (ASSERT): Likewise.
40440         * tests/test-mbsstr2.c (ASSERT): Likewise.
40441         * tests/test-mbsstr3.c (ASSERT): Likewise.
40442         * tests/test-memchr2.c (ASSERT): Likewise.
40443         * tests/test-memmem.c (ASSERT): Likewise.
40444         * tests/test-open.c (ASSERT): Likewise.
40445         * tests/test-printf-frexp.c (ASSERT): Likewise.
40446         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40447         * tests/test-printf-posix.c (ASSERT): Likewise.
40448         * tests/test-quotearg.c (ASSERT): Likewise.
40449         * tests/test-rbtree_list.c (ASSERT): Likewise.
40450         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40451         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40452         * tests/test-round1.c (ASSERT): Likewise.
40453         * tests/test-roundf1.c (ASSERT): Likewise.
40454         * tests/test-roundl.c (ASSERT): Likewise.
40455         * tests/test-signbit.c (ASSERT): Likewise.
40456         * tests/test-sleep.c (ASSERT): Likewise.
40457         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40458         * tests/test-snprintf.c (ASSERT): Likewise.
40459         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40460         * tests/test-stat-time.c (ASSERT): Likewise.
40461         * tests/test-strcasestr.c (ASSERT): Likewise.
40462         * tests/test-strerror.c (ASSERT): Likewise.
40463         * tests/test-striconv.c (ASSERT): Likewise.
40464         * tests/test-striconveh.c (ASSERT): Likewise.
40465         * tests/test-striconveha.c (ASSERT): Likewise.
40466         * tests/test-strsignal.c (ASSERT): Likewise.
40467         * tests/test-strstr.c (ASSERT): Likewise.
40468         * tests/test-strtod.c (ASSERT): Likewise.
40469         * tests/test-trunc1.c (ASSERT): Likewise.
40470         * tests/test-trunc2.c (ASSERT): Likewise.
40471         * tests/test-truncf1.c (ASSERT): Likewise.
40472         * tests/test-truncf2.c (ASSERT): Likewise.
40473         * tests/test-truncl.c (ASSERT): Likewise.
40474         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40475         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40476         * tests/test-vasnprintf.c (ASSERT): Likewise.
40477         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40478         * tests/test-vasprintf.c (ASSERT): Likewise.
40479         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40480         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40481         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40482         * tests/test-vsnprintf.c (ASSERT): Likewise.
40483         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40484         * tests/test-wcwidth.c (ASSERT): Likewise.
40485         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40486         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40487         * tests/test-xvasprintf.c (ASSERT): Likewise.
40488         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40489         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40490         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40491         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40492         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40493         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40494         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40495         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40496         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40497         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40498         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40499         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40500         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40501         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40502         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40503         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40504         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40505         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40506         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40507         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40508         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40509         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40510         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40511         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40512         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40513         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40514         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40515         * tests/unictype/test-combining.c (ASSERT): Likewise.
40516         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40517         * tests/unictype/test-digit.c (ASSERT): Likewise.
40518         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40519         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40520         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40521         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40522         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40523         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40524         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40525         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40526         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40527         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40528         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40529         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40530         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40531         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40532         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40533         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40534         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40535         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40536         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40537         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40538         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40539         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40540         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40541         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40542         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40543         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40544         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40545         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40546         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40547         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40548         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40549         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40550         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40551         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40552         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40553         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40554         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40555         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40556         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40557         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40558         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40559         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40560         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40561         Reported by Eric Blake.
40562
40563 2008-04-11  Bruno Haible  <bruno@clisp.org>
40564
40565         * lib/wchar.in.h: Tweak comment.
40566
40567 2008-04-11  Bruno Haible  <bruno@clisp.org>
40568
40569         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40570         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40571         gl_COMMON.
40572         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40573
40574 2008-04-11  Bruno Haible  <bruno@clisp.org>
40575
40576         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40577
40578 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40579
40580         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40581         of attempting to use non-existing /dev/*random.  Based on patch
40582         from Adam Strzelecki <ono@java.pl> in
40583         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40584
40585 2008-04-08  Bruno Haible  <bruno@clisp.org>
40586
40587         Add tentative support for emx+gcc.
40588         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40589         * lib/fpurge.c (fpurge): Likewise.
40590         * lib/freadable.c (freadable): Likewise.
40591         * lib/freadahead.c (freadahead): Likewise.
40592         * lib/freading.c (freading): Likewise.
40593         * lib/freadptr.c (freadptr): Likewise.
40594         * lib/freadseek.c (freadptrinc): Likewise.
40595         * lib/fseeko.c (rpl_fseeko): Likewise.
40596         * lib/fseterr.c (fseterr): Likewise.
40597         * lib/fwritable.c (fwritable): Likewise.
40598         * lib/fwriting.c (fwriting): Likewise.
40599         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40600
40601 2008-04-09  Eric Blake  <ebb9@byu.net>
40602
40603         Avoid some autoconf warnings.
40604         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40605         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40606         * m4/afs.m4 (gl_AFS): Likewise.
40607         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40608         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40609         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40610         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40611         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40612         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40613         (AC_CHECK_DECLS_ONCE): Likewise.
40614         Rename file...
40615         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40616         gnulib-tool requires autoconf 2.59 or better.
40617         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40618
40619 2008-04-08  Eric Blake  <ebb9@byu.net>
40620
40621         Use 'git describe --match' if present (added in git 1.5.5).
40622         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40623         if possible.
40624
40625 2008-04-08  Bruno Haible  <bruno@clisp.org>
40626
40627         Add tentative support for OpenServer.
40628         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40629         _ptr, _cnt.
40630         * lib/fpurge.c (fpurge): Likewise.
40631         * lib/freadable.c (freadable): Likewise.
40632         * lib/freadahead.c (freadahead): Likewise.
40633         * lib/freading.c (freading): Likewise.
40634         * lib/freadptr.c (freadptr): Likewise.
40635         * lib/freadseek.c (freadptrinc): Likewise.
40636         * lib/fseeko.c (rpl_fseeko): Likewise.
40637         * lib/fseterr.c (fseterr): Likewise.
40638         * lib/fwritable.c (fwritable): Likewise.
40639         * lib/fwriting.c (fwriting): Likewise.
40640         Reported by Roger Cornelius <rac@tenzing.org> and
40641         Brian K. White <brian@aljex.com>.
40642
40643 2008-04-06  Jim Meyering  <meyering@redhat.com>
40644
40645         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40646
40647 2008-04-06  Bruno Haible  <bruno@clisp.org>
40648
40649         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40650         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40651         * tests/test-printf-posix.sh: Likewise.
40652         * tests/test-vfprintf-posix.sh: Likewise.
40653         * tests/test-vprintf-posix.sh: Likewise.
40654         * tests/test-xprintf-posix.sh: Likewise.
40655
40656 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40657
40658         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40659         hide error from 'ls', needed on OS/2.
40660         Report by Elbert Pol <elbert.pol@gmail.com>.
40661
40662 2008-04-04  Eric Blake  <ebb9@byu.net>
40663
40664         Make test-fseeko.c failures meaningful.
40665         * tests/test-fseeko.c: Print line number on failure.
40666         * tests/test-fseek.c: Likewise.
40667         Reported by Nelson H. F. Beebe.
40668
40669         Improve strtod bug detection check.
40670         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40671         required for Solaris 10.
40672         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40673
40674 2008-04-04  Bruno Haible  <bruno@clisp.org>
40675
40676         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40677         by m4/setenv.m4.
40678
40679 2008-04-03  Eric Blake  <ebb9@byu.net>
40680
40681         Ensure sane .version contents.
40682         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40683         version string.
40684         * build-aux/git-version-gen: Improve documentation.
40685
40686         Make GNU make output nicer.
40687         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40688         MAKECMDGOALS to enforce message for all command line targets.  Set
40689         srcdir for use in maint.mk.
40690
40691         Another maintainer tweak.
40692         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40693         a target that regenerates version.
40694
40695 2008-04-03  Jim Meyering  <meyering@redhat.com>
40696
40697         vc-list-files: don't cause coreutils "make po-check" failure
40698         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40699
40700 2008-04-03  Eric Blake  <ebb9@byu.net>
40701
40702         Allow VPATH usage of vc-list-files.
40703         * build-aux/vc-list-files (scriptversion): Add timestamp.
40704         (options): Add --help, --version, -C.
40705         (CVS): Support installed cvsu.
40706
40707 2008-04-02  Bruno Haible  <bruno@clisp.org>
40708
40709         Avoid some "statement with no effect" warnings from gcc.
40710         * tests/test-wctype.c (main): Explicitly ignore unused values.
40711         Reported by Jim Meyering.
40712
40713 2008-04-02  Jim Meyering  <meyering@redhat.com>
40714
40715         Avoid some warnings from "gcc -Wshadow".
40716         * tests/test-frexp.c (exp): Define to a different identifier.
40717         * tests/test-frexpl.c (exp): Likewise.
40718
40719 2008-04-03  Jim Meyering  <meyering@redhat.com>
40720
40721         bootstrap: remove dangling *.[ch] symlinks from lib
40722         * build-aux/bootstrap [dangling symlink removal]: Move find's
40723         -depth option to precede all others, to avoid a warning.
40724         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40725
40726 2008-04-02  Bruno Haible  <bruno@clisp.org>
40727
40728         Avoid some warnings from "gcc -Wshadow".
40729         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40730         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40731         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40732         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40733         Reported by Jim Meyering.
40734
40735 2008-04-01  Bruno Haible  <bruno@clisp.org>
40736
40737         Fix test to work on IRIX 6.5 with cc.
40738         * tests/test-math.c (numeric_equal): New function.
40739         (main): Use it.
40740
40741 2008-04-01  Bruno Haible  <bruno@clisp.org>
40742
40743         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40744
40745 2008-04-01  Bruno Haible  <bruno@clisp.org>
40746
40747         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40748         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40749         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40750         (Depends-on): Remove math.
40751
40752         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40753         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40754         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40755         (Depends-on): Remove math.
40756
40757         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40758         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40759         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40760         (Depends-on): Remove math.
40761         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40762         (Depends-on): Remove math.
40763
40764         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40765         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40766         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40767         (Depends-on): Remove math.
40768         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40769         (Depends-on): Remove math.
40770
40771         * tests/test-round1.c: Include nan.h.
40772         (main): Use NaNd instead of NAN.
40773         * modules/round-tests (Files): Add tests/nan.h.
40774
40775         * tests/test-trunc1.c: Include nan.h.
40776         (main): Use NaNd instead of NAN.
40777         * modules/trunc-tests (Files): Add tests/nan.h.
40778
40779         * tests/test-roundf1.c: Include nan.h.
40780         (main): Use NaNf instead of NAN.
40781         * modules/roundf-tests (Files): Add tests/nan.h.
40782
40783         * tests/test-truncf1.c: Include nan.h.
40784         (main): Use NaNf instead of NAN.
40785         * modules/truncf-tests (Files): Add tests/nan.h.
40786
40787         * tests/test-ceilf1.c: Include nan.h.
40788         (main): Use NaNf instead of NAN.
40789         * modules/ceilf-tests (Files): Add tests/nan.h.
40790
40791         * tests/test-floorf1.c: Include nan.h.
40792         (main): Use NaNf instead of NAN.
40793         * modules/floorf-tests (Files): Add tests/nan.h.
40794
40795         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40796         (main): Use NaNf instead of NAN.
40797         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40798
40799         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40800         (main): Use NaNd instead of NAN.
40801         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40802
40803         * tests/test-frexp.c: Include nan.h.
40804         (main): Use NaNd instead of NAN.
40805         * modules/frexp-tests (Files): Add tests/nan.h.
40806
40807         * lib/isnan.c: Don't include <math.h>.
40808         (FUNC): Don't use NAN macro.
40809         * modules/isnand-nolibm (Depends-on): Remove math.
40810         * modules/isnanf-nolibm (Depends-on): Remove math.
40811         * modules/isnanl (Depends-on): Remove math.
40812         * modules/isnanl-nolibm (Depends-on): Remove math.
40813
40814         * tests/nan.h: New file.
40815
40816 2008-04-01  Eric Blake  <ebb9@byu.net>
40817
40818         Fix typos.
40819         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40820         values to be the right type.
40821
40822         For now, cater to gnulib strtod inaccuracies.
40823         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40824         fractional results.  While not as nice from a QoI perspective, it
40825         is a quicker patch than correctly implementing decimal to binary
40826         rounding.
40827
40828 2008-03-31  Eric Blake  <ebb9@byu.net>
40829
40830         Guarantee a definition of NAN.
40831         * lib/math.in.h (NAN): Define if missing.
40832         * tests/test-math.c (main): Test it.
40833         * doc/posix-headers/math.texi (math.h): Document this.
40834         * lib/isnan.c (rpl_isnand): Use it.
40835         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40836         * tests/test-floorf1.c (NaN): Likewise.
40837         * tests/test-frexp.c (NaN): Likewise.
40838         * tests/test-isnand.c (NaN): Likewise.
40839         * tests/test-isnanf.c (NaN): Likewise.
40840         * tests/test-round1.c (NaN): Likewise.
40841         * tests/test-roundf1.c (NaN): Likewise.
40842         * tests/test-snprintf-posix.h (NaN): Likewise.
40843         * tests/test-sprintf-posix.h (NaN): Likewise.
40844         * tests/test-trunc1.c (NaN): Likewise.
40845         * tests/test-truncf1.c (NaN): Likewise.
40846         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40847         * tests/test-vasprintf-posix.c (NaN): Likewise.
40848         * modules/isnand-nolibm (Depends-on): Add math.
40849         * modules/isnanf-nolibm (Depends-on): Likewise.
40850         * modules/isnanl (Depends-on): Likewise.
40851         * modules/isnanl-nolibm (Depends-on): Likewise.
40852         * modules/snprintf-posix-tests (Depends-on): Likewise.
40853         * modules/sprintf-posix-tests (Depends-on): Likewise.
40854         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40855         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40856         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40857         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40858
40859 2008-03-31  Bruno Haible  <bruno@clisp.org>
40860
40861         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40862         * doc/posix-functions/strtod.texi: Likewise.
40863
40864 2008-03-31  Bruno Haible  <bruno@clisp.org>
40865
40866         * tests/test-strtod.c (main): Don't use C99 syntax.
40867
40868 2008-03-31  Bruno Haible  <bruno@clisp.org>
40869
40870         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40871         Reported by Eric Blake.
40872
40873 2008-03-31  Jim Meyering  <meyering@redhat.com>
40874
40875         Don't compare actual signbit return values.
40876         * tests/test-strtod.c (main): Rather, compare only their
40877         zero/non-zero nature.
40878
40879 2008-03-31  Eric Blake  <ebb9@byu.net>
40880
40881         More strtod documentation.
40882         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40883         failures as distinct bugs.
40884
40885 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40886
40887         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40888         Problem reported by Erik Benada in
40889         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40890
40891 2008-03-30  Bruno Haible  <bruno@clisp.org>
40892
40893         * tests/test-strtod.c: Add comments about which assertion fails on which
40894         platform.
40895         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40896
40897 2008-03-30  Eric Blake  <ebb9@byu.net>
40898
40899         Test signbit behavior on zeros.
40900         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40901         (test_signbitd, test_signbitl): Likewise.
40902
40903         More strtod touchups.
40904         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40905         sign of negative underflow, for now.  Use .5, not .1.
40906         * doc/posix-functions/strtod.texi (strtod): Mention these
40907         limitations.
40908         Reported by Jim Meyering.
40909
40910 2008-03-30  Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40913         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40914
40915 2008-03-30  Bruno Haible  <bruno@clisp.org>
40916
40917         Avoid failure when attempting to return empty iconv results on some
40918         platforms.
40919         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40920         allocation, don't report ENOMEM when the resulting string is empty.
40921
40922 2008-03-30  Bruno Haible  <bruno@clisp.org>
40923
40924         Fix buffer overrun.
40925         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40926         Don't consider the width for tmp_length. Check count against tmp_length
40927         before doing the padding. Ensure enough allocation during padding.
40928
40929 2008-03-30  Eric Blake  <ebb9@byu.net>
40930
40931         strtod touchups.
40932         * lib/strtod.c (strtod): Avoid compiler warnings.
40933         Reported by Jim Meyering.
40934
40935 2008-03-30  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40938         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40939         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40940         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40941         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40942         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40943         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40944         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40945
40946         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40947         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40948         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40949         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40950         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40951         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40952         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40953         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40954
40955         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40956         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40957         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40958         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40959         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40960         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40961         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40962         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40963
40964         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40965         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40966
40967         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40968         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40969
40970         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40971         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40972
40973         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40975         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40976
40977         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40979         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40980
40981         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40983         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40984
40985         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40987         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40988
40989         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40990         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40992         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40993         (Depends-on): Add EOVERFLOW.
40994         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40995         (Depends-on): Add EOVERFLOW.
40996         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40997         (Depends-on): Add EOVERFLOW.
40998         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40999         (Depends-on): Add EOVERFLOW.
41000         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41001         (Depends-on): Add EOVERFLOW.
41002         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41003         (Depends-on): Add EOVERFLOW.
41004         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41005         (Depends-on): Add EOVERFLOW.
41006         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41007         (Depends-on): Add EOVERFLOW.
41008
41009         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41010         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41011         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41012
41013         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41014         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41015         * modules/snprintf (Depends-on): Add EOVERFLOW.
41016
41017         * lib/poll.c (EOVERFLOW): Remove fallback.
41018         * modules/poll (Depends-on): Add EOVERFLOW.
41019
41020         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41021         * modules/getugroups (Depends-on): Add EOVERFLOW.
41022
41023         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41024         * modules/getdelim (Depends-on): Add EOVERFLOW.
41025
41026         * lib/ftell.c (EOVERFLOW): Remove fallback.
41027         * modules/ftell (Depends-on): Add EOVERFLOW.
41028
41029         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41030         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41031         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41032
41033         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41034
41035         * modules/EOVERFLOW-tests: New file.
41036         * tests/test-EOVERFLOW.c: New file.
41037
41038         * modules/EOVERFLOW: New file.
41039         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41040
41041 2008-03-30  Bruno Haible  <bruno@clisp.org>
41042
41043         Fix bug introduced on 2007-06-10.
41044         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41045         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41046
41047 2008-03-30  Bruno Haible  <bruno@clisp.org>
41048
41049         Improve freadseek's efficiency after ungetc.
41050         * lib/freadseek.c: Include freadahead.h.
41051         (freadptrinc): New function, extracted from freadseek.
41052         (freadseek): Use it in a loop. Use freadahead to determine the number
41053         of loop iterations.
41054         * modules/freadseek (Depends-on): Add freadahead.
41055         (configure.ac): Require AC_C_INLINE.
41056
41057 2008-03-30  Bruno Haible  <bruno@clisp.org>
41058
41059         * lib/freadseek.c (freadseek): Don't ignore the return value of
41060         freadptr.
41061
41062 2008-03-29  Eric Blake  <ebb9@byu.net>
41063
41064         Add hex float support.
41065         * modules/strtod (Depends-on): Add c-ctype.
41066         (Link): Mention POW_LIB.
41067         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41068         whitespace between 'e' and exponent.
41069         * tests/test-strtod.c (main): Enable hex float tests.
41070         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41071         now provides.
41072
41073         Document various strtod bugs, with some fixes.
41074         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41075         "-0x", "inf", "nan", and hex constants.
41076         * doc/posix-functions/atof.texi (atof): Likewise.
41077         * modules/stdlib (Makefile.am): Support strtod.
41078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41079         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41080         detect additional strtod bugs.
41081         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41082         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41083         bool where appropriate.  Parse 'inf' and 'nan'.
41084         * tests/test-strtod.c: New file.
41085         * modules/strtod (Depends-on): Add stdbool, stdlib.
41086         (configure.ac): Turn on module indicator.
41087         * modules/strtod-tests: New module.
41088
41089 2008-03-29  Eric Blake  <ebb9@byu.net>
41090
41091         Fix ftell on mingw.
41092         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41093         * modules/ftell-tests (Depends-on): Add binary-io.
41094         * modules/ftello-tests (Depends-on): Likewise.
41095         * tests/test-ftell.c (main): Enhance test to cover behavior after
41096         ungetc.  Enforce binary mode.
41097         * tests/test-ftello.c (main): Likewise.
41098
41099         Pass test-freadseek on cygwin.
41100         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41101         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41102         ungetc buffer.
41103
41104         * tests/test-fflush2.c (main): Fix typo.
41105
41106 2008-03-29  Bruno Haible  <bruno@clisp.org>
41107
41108         * tests/test-fflush2.c (main): Temporarily disable the contents of
41109         this test.
41110         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41111         Reported by Eric Blake.
41112
41113 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41114
41115         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41116         (GC_SHA224_DIGEST_SIZE): Add.
41117
41118         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41119         (gc_hash_digest_length): Likewise.
41120         (gc_hash_buffer): Likewise.
41121
41122 2008-03-25  Bruno Haible  <bruno@clisp.org>
41123
41124         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41125         detail which gettext release to use.
41126         Reported by Simon Josefsson.
41127
41128 2008-03-26  Jim Meyering  <meyering@redhat.com>
41129
41130         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41131         * modules/gnumakefile (clean-GNUmakefile): Also, use
41132         test ... && ... || : syntax rather than if-then ... fi.
41133
41134         gnumakefile: Don't double-quote-expand $(VPATH) value.
41135         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41136
41137 2008-03-24  Eric Blake  <ebb9@byu.net>
41138
41139         Alter GNUmakefile to install into top directory.
41140         * modules/maintainer-makefile: Split, and add dependency...
41141         * modules/gnumakefile: to this new module.
41142         * build-aux/GNUmakefile: Move...
41143         * top/GNUmakefile: ...here.
41144         * build-aux/maint.mk: Move...
41145         * top/maint.mk: ...here.
41146         * MODULES.html.sh (Support for maintaining...): Document new
41147         module.
41148
41149 2008-03-23  Bruno Haible  <bruno@clisp.org>
41150
41151         * gnulib-tool: New options --vc-files, --no-vc-files.
41152         (func_usage): Document them.
41153         (vc_files): New variable.
41154         (func_import): Consider vc_files.
41155         (func_create_testdir): Set vc_files to empty.
41156         Suggested by Jim Meyering and Karl Berry.
41157
41158 2008-03-23  Bruno Haible  <bruno@clisp.org>
41159
41160         Fix regex compilation error on HP-UX 11.
41161         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41162         * modules/regex (Files): Add m4/mbstate_t.m4.
41163         Reported by Ton Voon <ton.voon@altinity.com>.
41164
41165 2008-03-23  Bruno Haible  <bruno@clisp.org>
41166
41167         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41168
41169 2008-03-23  Eric Blake  <ebb9@byu.net>
41170             Bruno Haible  <bruno@clisp.org>
41171
41172         Install files from top/ in the destination directory.
41173         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41174         augmentation also for the files from top/.
41175         (func_import, func_create_testdir): Rewrite file names:
41176         top/filename -> filename.
41177
41178 2008-03-23  Bruno Haible  <bruno@clisp.org>
41179
41180         Tweak "gnulib --version" output.
41181         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41182
41183 2008-03-23  Bruno Haible  <bruno@clisp.org>
41184
41185         Tweak "gnulib --version" output.
41186         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41187         rather than contents of ChangeLog, when possible.
41188
41189 2008-03-21  Eric Blake  <ebb9@byu.net>
41190
41191         More --version tweaks.
41192         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41193         date of last ChangeLog entry.
41194
41195 2008-03-21  Jim Meyering  <meyering@redhat.com>
41196
41197         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41198
41199 2008-03-20  Eric Blake  <ebb9@byu.net>
41200
41201         VPATH fix.
41202         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41203
41204 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41205
41206         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41207         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41208
41209 2008-03-20  Eric Blake  <ebb9@byu.net>
41210
41211         Sync GNUmakefile with coreutils.
41212         * build-aux/GNUmakefile (have-Makefile): Rename...
41213         (_have-Makefile): ...to this, for namespace consideration.
41214         (GNUmakefile.cfg): Include, if present.
41215         (_autoreconf): Define a default.
41216         (_is-dist-target): New rule for rebuilds to pick up intra-release
41217         version.
41218         (maint-cfg.mk): Rename...
41219         (cfg.mk): ...to this.
41220
41221 2008-03-18  Jim Meyering  <meyering@redhat.com>
41222
41223         New script and module: mktempd
41224         * MODULES.html.sh (maint+release support): Add mktempd.
41225         * build-aux/mktempd: New file.
41226         * modules/mktempd: New file.
41227
41228 2008-03-15  Jim Meyering  <meyering@redhat.com>
41229
41230         Undo last change.
41231         * lib/sha1.c, lib/md5.c: 63 != ~63.
41232         Reported by Andreas Schwab.
41233
41234         sha1.c, md5.c: Hoist a redundant expression.
41235         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41236         "ctx->buflen" only once, before calling *_process_block.
41237         * lib/md5.c (md5_process_bytes): Likewise.
41238
41239 2008-03-14  Eric Blake  <ebb9@byu.net>
41240
41241         Bump copyright year in files generated by gnulib-tool.
41242         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41243         gnulib-tool, rather than hard-coding it.
41244
41245         Fix 'gnulib-tool --version' output to work with git.
41246         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41247         (startup): ...here.
41248         (func_version): Use it to invoke git-version-gen, rather than
41249         relying on CVS keyword expansion.  Modernize wording.
41250         (cvsdatestamp, last_checkin_date, version): Kill unused
41251         variables.
41252
41253 2008-03-12  Jim Meyering  <meyering@redhat.com>
41254
41255         Recognize optional cast of the argument to free.
41256         * build-aux/useless-if-before-free: Update regexps.
41257
41258         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41259
41260 2008-03-11  Bruno Haible  <bruno@clisp.org>
41261
41262         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41263         by a single package.
41264         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41265         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41266         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41267         Reported by Sam Steingold <sds@gnu.org>.
41268
41269 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41270
41271         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41272         repositories.
41273
41274 2008-03-11  Bruno Haible  <bruno@clisp.org>
41275
41276         Avoid conflicts between local macro definitions.
41277         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41278         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41279
41280 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41281             Bruno Haible  <bruno@clisp.org>
41282
41283         Make va_copy work with some version of xlc on AIX 5.1.
41284         * lib/stdarg.in.h: New file.
41285         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41286         On AIX, use a <stdarg.h> file substitute.
41287         * modules/stdarg (Files): Add lib/stdarg.in.h.
41288         (Depends-on): Add include_next.
41289         (Makefile.am): Build a stdarg.h substitute if requested.
41290         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41291
41292 2008-03-10  Bruno Haible  <bruno@clisp.org>
41293
41294         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41295         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41296         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41297
41298 2008-03-10  Bruno Haible  <bruno@clisp.org>
41299
41300         * modules/stdlib (Depends-on): Add include_next, remove
41301         absolute-header.
41302
41303 2008-03-09  Bruno Haible  <bruno@clisp.org>
41304
41305         * lib/freadahead.h (freadahead): Document more precisely.
41306         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41307         the sum of both buffer sizes.
41308         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41309         * NEWS: Document the change.
41310
41311 2008-03-09  Bruno Haible  <bruno@clisp.org>
41312
41313         Extend freadptr to return also the buffer size.
41314         * lib/freadptr.h (freadptr): Add sizep argument.
41315         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41316         (freadptr): Add sizep argument. Determine buffer size like freadahead
41317         does.
41318         * tests/test-freadptr.c: Don't include freadahead.h.
41319         (main): Adapt for new calling convention of freadptr.
41320         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41321         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41322         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41323         tests/test-freadptr2.sh.
41324         (Depends): Remove freadahead.
41325         (TESTS): Add test-freadptr2.sh.
41326         (check_PROGRAMS): Add test-freadptr2.
41327
41328 2008-03-09  Bruno Haible  <bruno@clisp.org>
41329
41330         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41331         Report and solution by Simon Josefsson.
41332
41333 2008-03-06  Bruno Haible  <bruno@clisp.org>
41334
41335         Make fflush after ungetc work on BSD platforms.
41336         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41337         * tests/test-fflush2.c: New file.
41338         * tests/test-fflush2.sh: New file.
41339         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41340         tests/test-fflush2.c.
41341         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41342         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41343
41344 2008-03-06  Eric Blake  <ebb9@byu.net>
41345
41346         Likewise for ftello.
41347         * modules/ftello (Dependencies): Add extensions.
41348         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41349
41350 2008-03-06  Bruno Haible  <bruno@clisp.org>
41351
41352         * modules/fseeko (Dependencies): Add extensions.
41353         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41354         Needed on glibc systems.
41355
41356 2008-03-06  Bruno Haible  <bruno@clisp.org>
41357
41358         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41359         email address.
41360         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41361
41362 2008-03-06  Bruno Haible  <bruno@clisp.org>
41363
41364         * users.txt: Add libgnupdf.
41365
41366 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41367
41368         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41369         (Header File Substitutes, Function Substitutes,
41370         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41371         (Build robot for gnulib): Fix typo.
41372
41373 2008-03-06  Bruno Haible  <bruno@clisp.org>
41374
41375         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41376         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41377
41378 2008-03-06  Bruno Haible  <bruno@clisp.org>
41379
41380         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41381         * doc/gnulib.texi: Include it.
41382
41383 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41384
41385         * modules/func (License): Change license to unlimited; there was
41386         no LGPL parts in the module anyway.
41387
41388 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41389
41390         * modules/__func__: Renamed to modules/func.
41391         * modules/__func__-tests: Renamed to modules/func-tests.
41392         * tests/test-__func__.c: Renamed to tests/test-func.c.
41393         * m4/__func__.m4: Renamed to m4/func.m4.
41394         * doc/gnulib.texi (__func__): Section renamed to func.
41395         Suggested by Eric Blake <ebb9@byu.net>.
41396
41397 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41398
41399         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41400         about __func__.  Make example self-contained.  Suggested by Eric
41401         Blake <ebb9@byu.net>.
41402
41403         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41404         Suggested by Eric Blake <ebb9@byu.net>.
41405
41406 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41407
41408         * modules/__func__: New file.
41409         * modules/__func__-tests: New file.
41410         * tests/test-__func__.c: New file.
41411         * m4/__func__.m4: New file.
41412         * doc/gnulib.texi (__func__): Document __func__ module.
41413
41414 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41415
41416         * modules/byteswap (License): Re-license as LGPLv2+.
41417
41418 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41419
41420         * doc/Makefile: Add pdf target.
41421
41422 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41423
41424         * modules/inline (License): Use 'unlimited', since there are only
41425         *.m4 files in this module.
41426
41427 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41428             Bruno Haible  <bruno@clisp.org>
41429
41430         Add support for HP C 7.1 on OpenVMS 8.3.
41431         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41432
41433 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41434
41435         Update VMS specifics.
41436         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41437
41438 2008-03-02  Jim Meyering  <meyering@redhat.com>
41439
41440         Remove the last dependency on the "free" module.
41441         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41442         Reported by Bob Proulx.
41443
41444         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41445
41446         Remove useless "if" tests before free.  Deprecate "free" module.
41447         * doc/posix-functions/free.texi: Mention that this
41448         module is no longer useful.
41449         * modules/free (Notice): Say this module is obsolete.
41450         * modules/readutmp (Depends-on): Remove free.
41451         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41452         * lib/putenv.c (putenv): Likewise.
41453         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41454         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41455         * tests/test-c-strcasestr.c (main): Likewise.
41456         * tests/test-c-strstr.c (main): Likewise.
41457         * tests/test-mbscasestr1.c (main): Likewise.
41458         * tests/test-mbscasestr2.c (main): Likewise.
41459         * tests/test-mbsstr1.c (main): Likewise.
41460         * tests/test-mbsstr2.c (main): Likewise.
41461         * tests/test-memmem.c (main): Likewise.
41462         * tests/test-strcasestr.c (main): Likewise.
41463         * tests/test-striconv.c (main): Likewise.
41464         * tests/test-striconveh.c (main): Likewise.
41465         * tests/test-striconveha.c (main): Likewise.
41466         * tests/test-strstr.c (main): Likewise.
41467
41468         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41469
41470         bootstrap: sync from coreutils again
41471         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41472
41473 2008-03-01  Jim Meyering  <meyering@redhat.com>
41474
41475         bootstrap: sync from coreutils
41476         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41477         also when the target doesn't exist.
41478
41479 2008-03-01  Eric Blake  <ebb9@byu.net>
41480
41481         Fix bugs in last patch.
41482         * lib/memchr2.c (memchr2): Fix typo.
41483         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41484         extension.
41485         Reported by Bruce Korb.
41486
41487         New module 'memchr2'.
41488         * modules/memchr2: New file.
41489         * modules/memchr2-tests: Likewise.
41490         * lib/memchr2.h: Likewise.
41491         * lib/memchr2.c: Likewise, based on memchr.c.
41492         * tests/test-memchr2.c: New test.
41493         * MODULES.html.sh (String handling): Add memchr2.
41494
41495 2008-02-29  Bruno Haible  <bruno@clisp.org>
41496
41497         * modules/freadseek-tests: New file.
41498         * tests/test-freadseek.sh: New file.
41499         * tests/test-freadseek.c: New file.
41500
41501         New module 'freadseek'.
41502         * modules/freadseek: New file.
41503         * lib/freadseek.h: New file.
41504         * lib/freadseek.c: New file.
41505         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41506
41507 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41508
41509         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41510         wydawca.
41511
41512         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41513         program_invocation_name and program_invocation_short_name are
41514         present.
41515
41516 2008-02-28  Bruno Haible  <bruno@clisp.org>
41517
41518         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41519         * tests/test-freadptr.sh: Also test non-seekable stdin.
41520
41521 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41522
41523         * build-aux/bootstrap (source_base, m4_base)
41524         (doc_base, tests_base): New variables.
41525         (gnulib_tool_options): Do not hardcode base directories, use
41526         the above variables instead.
41527
41528 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41529
41530         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41531
41532 2008-02-28  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/freadptr-tests: New file.
41535         * tests/test-freadptr.sh: New file.
41536         * tests/test-freadptr.c: New file.
41537
41538         New module 'freadptr'.
41539         * modules/freadptr: New file.
41540         * lib/freadptr.h: New file.
41541         * lib/freadptr.c: New file.
41542         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41543
41544 2008-02-26  Karl Berry  <karl@freefriends.org>
41545
41546         Sync from Libtool:
41547         * libltdl/argz.c (argz_add, argz_count): New functions.
41548         * libltdl/argz.in.h: Declare them.
41549         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41550
41551 2008-02-22  Bruno Haible  <bruno@clisp.org>
41552
41553         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41554         is a pointer type.  Needed for HP-UX 10.
41555         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41556         * doc/posix-functions/gmtime_r.texi: Likewise.
41557         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41558
41559 2008-02-24  Bruno Haible  <bruno@clisp.org>
41560
41561         * modules/environ-tests: New file.
41562         * tests/test-environ.c: New file.
41563
41564         New module 'environ'.
41565         * modules/environ: New file.
41566         * lib/unistd.in.h (environ): New declaration.
41567         * m4/environ.m4: New file.
41568         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41569         after use.
41570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41571         HAVE_DECL_ENVIRON.
41572         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41573         HAVE_DECL_ENVIRON.
41574         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41575         wrong claim that 'environ' is missing on some systems.
41576         * modules/execute (Depends-on): Add environ.
41577         * lib/execute.c (environ): Remove fallback declaration.
41578         * modules/pipe (Depends-on): Add environ.
41579         * lib/pipe.c (environ): Remove fallback declaration.
41580         * modules/setenv (Depends-on): Add environ.
41581         * lib/setenv.c (environ): Remove fallback declaration.
41582         * modules/unsetenv (Depends-on): Add environ.
41583         * lib/unsetenv.c (environ): Remove fallback declaration.
41584         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41585         m4/environ.m4.
41586         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41587         (gl_PREREQ_UNSETENV): Likewise.
41588
41589 2008-02-24  Bruno Haible  <bruno@clisp.org>
41590
41591         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41592
41593 2008-02-20  Bob Proulx  <bob@proulx.com>
41594
41595         Enable use of older two part flavor 'git describe'.
41596         * build-aux/git-version-gen: If using the older two part flavor of
41597         git version then recreate the third part now present in the
41598         newer three part flavor of git describe.
41599
41600 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41601
41602         * lib/fts.c (fts_build): Typo correction to comment.
41603
41604 2008-02-17  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41607         generating no-op conflicts.
41608
41609 2008-02-17  Bruno Haible  <bruno@clisp.org>
41610
41611         Speed up by 10%.
41612         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41613         result_entries, rather than an index-based loop.
41614
41615 2008-02-17  Bruno Haible  <bruno@clisp.org>
41616
41617         Speed up by 25%.
41618         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41619         'hashcode_cached'.
41620         (entry_create): New function.
41621         (entry_hashcode): Use the cached hashcode if possible.
41622         (read_changelog_file, try_split_merged_entry): Use entry_create.
41623
41624 2008-02-17  Bruno Haible  <bruno@clisp.org>
41625
41626         Speed up from O(n^2) to O(n) for long ChangeLog files.
41627         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41628         (read_changelog_file): Change implementation of entries_reversed list
41629         to rbtreehash.
41630         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41631
41632 2008-02-17  Bruno Haible  <bruno@clisp.org>
41633
41634         New option --split-merged-entry.
41635         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41636         (find_paragraph_end, try_split_merged_entry): New functions.
41637         (long_options): Add option --split-merged-entry.
41638         (usage): Document option --split-merged-entry.
41639         (main): Implement option --split-merged-entry.
41640         Reported by Eric Blake.
41641
41642 2008-02-17  Bruno Haible  <bruno@clisp.org>
41643
41644         * lib/git-merge-changelog.c: Include c-strstr.h.
41645         (main): Support the "git pull --rebase" situation.
41646         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41647         Reported by Eric Blake.
41648
41649 2008-02-16  Eric Blake  <ebb9@byu.net>
41650
41651         Avoid doubling \ in common case of "c-maybe" quoting style.
41652         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41653         eliding outer quotes.
41654         * lib/quotearg.h: Document this.
41655         * tests/test-quotearg.c (result_strings, inputs, results_g)
41656         (flag_results, locale_results): Test it by adding a new string to
41657         each test group.
41658         (compare_strings): Test new string.
41659
41660 2008-02-13  Eric Blake  <ebb9@byu.net>
41661
41662         Avoid trigraph quoting in default output.
41663         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41664         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41665         unless explicitly requested.
41666         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41667
41668 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41669
41670         Don't rely on signed integer overflowing to negative value.
41671         * lib/getugroups.c (getugroups): Include <limits.h>.
41672         Instead, compare against INT_MAX, and increment only if the test passes.
41673
41674 2008-02-13  Jim Meyering  <meyering@redhat.com>
41675         and Eric Blake  <ebb9@byu.net>
41676
41677         Avoid shadowing warning and compile errors on Linux.
41678         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41679         forwarding macros on Linux.
41680         (dcgettext): Define a stub, for Linux.
41681         (results_g, main): Avoid warnings.
41682
41683 2008-02-12  Eric Blake  <ebb9@byu.net>
41684
41685         Silence warning in last patch.
41686         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41687
41688         Quotearg part 4: add tests, fix c-maybe colon quoting.
41689         * lib/quotearg.h: Improve documentation.
41690         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41691         escapes when adding outer quotes.  When quoting trigraphs, use
41692         valid C notation.  When quoting NUL, omit extra characters if next
41693         character is not digit.  Alter prototype.
41694         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41695         callers.
41696         * modules/quotearg-tests: New module.
41697         * tests/test-quotearg.c: New test.
41698
41699 2008-02-07  Eric Blake  <ebb9@byu.net>
41700
41701         Quotearg part 3: add flag to control outer quote elision.
41702         * lib/quotearg.h (c_maybe_quoting_style): New style.
41703         (enum quoting_flags): Better documentation of flags.
41704         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41705         c-maybe style.
41706         (quotearg_buffer_restyled): Handle new flag to elide outer
41707         quotes.
41708
41709         Quotearg part 2: add flag that can control NUL elision.
41710         * lib/quotearg.h (set_quoting_flags): New prototype.
41711         * lib/quotearg.c (struct quoting_options): Add flag field.
41712         (set_quoting_flags): New function.
41713         (quotearg_buffer_restyled): Add flags parameter.
41714         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41715         (quotearg_n_options): Set the flag, since length cannot be
41716         returned.
41717         (quoting_options_from_style): Default flags correctly.
41718
41719         Quotearg part 1: more wrappers, restore quotearg_char state.
41720         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41721         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41722         (quotearg_colon_mem): New wrappers.
41723         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41724         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41725         functions.
41726         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41727         (quotearg_colon_mem): New functions.
41728
41729 2008-02-11  Bruno Haible  <bruno@clisp.org>
41730
41731         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41732         library in the current directory: it does not work with parallel make.
41733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41734
41735 2008-02-11  Bruno Haible  <bruno@clisp.org>
41736
41737         * .gitattributes: New file.
41738
41739 2008-02-11  Jim Meyering  <meyering@redhat.com>
41740
41741         useless-if-before-free: Fix reversed exit values.
41742         * build-aux/useless-if-before-free: Use correct values
41743         for EXIT_MATCH and EXIT_NO_MATCH.
41744
41745         * build-aux/useless-if-before-free: Close stdout carefully.
41746
41747 2008-02-10  Bruno Haible  <bruno@clisp.org>
41748
41749         New module 'git-merge-changelog'.
41750         * modules/git-merge-changelog: New file.
41751         * lib/git-merge-changelog.c: New file.
41752
41753 2008-02-10  Jim Meyering  <meyering@redhat.com>
41754
41755         useless-if-before-free: New option: --list (-l).
41756
41757         useless-if-before-free: Don't exit immediately upon open failure.
41758         * build-aux/useless-if-before-free: Exit 2 for errors.
41759         Upon failure to open a file, don't exit immediately.
41760         Rather, just warn and continue with any remaining files.
41761
41762 2008-02-10  Bruno Haible  <bruno@clisp.org>
41763
41764         New abstract list operation 'node_set_value'.
41765         * lib/gl_list.h (gl_list_node_set_value): New function.
41766         (struct gl_list_implementation): New field node_set_value.
41767         * lib/gl_list.c (gl_list_node_set_value): New function.
41768         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41769         (gl_array_list_implementation): Update.
41770         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41771         (gl_carray_list_implementation): Update.
41772         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41773         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41774         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41775         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41776         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41777         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41778         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41779         Update.
41780         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41781         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41782         (gl_sublist_list_implementation): Update.
41783
41784 2008-02-10  Bruno Haible  <bruno@clisp.org>
41785
41786         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41787         Needed when ELEMENT is #defined to 'some_type *'.
41788
41789 2008-02-10  Jim Meyering  <meyering@redhat.com>
41790
41791         New script and module: useless-if-before-free
41792         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41793         * build-aux/useless-if-before-free: New file.
41794         * modules/useless-if-before-free: New file.
41795
41796         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41797
41798         xstrtol_error: Fix typo.
41799         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41800         s/exit_failure/exit_status/.
41801
41802 2008-02-09  Jim Meyering  <meyering@redhat.com>
41803
41804         New script and module: gitlog-to-changelog
41805         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41806         * modules/gitlog-to-changelog: New file.
41807         * build-aux/gitlog-to-changelog: New file.
41808
41809 2008-02-08  Jim Meyering  <meyering@redhat.com>
41810
41811         Avoid two "parameter unused" warnings.
41812         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41813         Mark "st" as used.
41814
41815         Use "git COMMAND", not "git-COMMAND".
41816         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41817         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41818         * build-aux/git-version-gen: Use "git status", not "git-status".
41819
41820 2008-02-07  Bruno Haible  <bruno@clisp.org>
41821
41822         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41823         Avoids a crash on Windows Vista.
41824         Reported by Adam Strzelecki <ono@java.pl> via
41825         Simon Josefsson <simon@josefsson.org>.
41826
41827 2008-02-06  Bruno Haible  <bruno@clisp.org>
41828
41829         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41830         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41831         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41833         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41835         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41836         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41844         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41845         left-adjust flag.
41846         * tests/test-snprintf-posix.h (test_function): Likewise.
41847         * tests/test-sprintf-posix.h (test_function): Likewise.
41848         * tests/test-vasprintf-posix.c (test_function): Likewise.
41849         * doc/posix-functions/fprintf.texi: Update.
41850         * doc/posix-functions/printf.texi: Update.
41851         * doc/posix-functions/snprintf.texi: Update.
41852         * doc/posix-functions/sprintf.texi: Update.
41853         * doc/posix-functions/vfprintf.texi: Update.
41854         * doc/posix-functions/vprintf.texi: Update.
41855         * doc/posix-functions/vsnprintf.texi: Update.
41856         * doc/posix-functions/vsprintf.texi: Update.
41857         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41858
41859 2008-02-06  Bruno Haible  <bruno@clisp.org>
41860
41861         Fix bug introduced on 2008-01-26.
41862         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41863
41864 2008-02-06  Bruno Haible  <bruno@clisp.org>
41865
41866         Fix bug introduced on 2007-06-10.
41867         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41868         !NEED_PRINTF_FLAG_ZERO.
41869
41870 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41871
41872         getloadavg: use libperfstat on AIX5
41873         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41874
41875 2008-02-03  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/diffseq.h: Add comments about required #includes.
41878         Reported by Michael Biggs <gnulib@doubleplum.net>.
41879
41880 2008-02-01  Bruno Haible  <bruno@clisp.org>
41881
41882         * users.txt: Add gnuit.
41883
41884 2008-01-31  Bruno Haible  <bruno@clisp.org>
41885
41886         * lib/md4.c (set_uint32): Mark as inline.
41887         * lib/md5.c (set_uint32): Likewise.
41888         * lib/sha1.c (set_uint32): Likewise.
41889         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41890         * m4/md5.m4 (gl_MD5): Likewise.
41891         * m4/sha1.m4 (gl_SHA1): Likewise.
41892
41893 2008-01-31  Jim Meyering  <meyering@redhat.com>
41894
41895         Use "sizeof VAR", rather than a literal "4".
41896         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41897         * lib/md4.c (md4_read_ctx): Likewise.
41898         * lib/sha1.c (sha1_read_ctx): Likewise.
41899
41900 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41901
41902         * tests/test-sha1.c: New file, based on test-md5.c.
41903
41904         * modules/crypto/sha1-tests: New file.
41905
41906 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41907
41908         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41909
41910 2008-01-31  Jim Meyering  <meyering@redhat.com>
41911
41912         Prefer "sizeof v" over the equivalent "4".
41913         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41914         * lib/md5.c (set_uint32): Likewise.
41915         * lib/sha1.c (set_uint32): Likewise.
41916
41917 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41918
41919         * lib/sha1.c (set_uint32): Mark function as static.
41920
41921 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41922
41923         md2: clarify comments to say that alignment is not required.
41924         * lib/md2.h: Remove warning about alignment in comment.
41925         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41926         never been required.
41927
41928 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41929
41930         md4: adapt alignment constraint fix from sha1.
41931         * lib/md4.c (set_uint32): New function, from sha1.c
41932         (md4_read_ctx): Use it.
41933         (md4_finish_ctx): Doc fix.
41934         * lib/md4.h: Doc fix.
41935
41936 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41937
41938         md5: adapt alignment constraint fix from sha1.
41939         * lib/md5.c (set_uint32): New function, from sha1.c
41940         (md5_read_ctx): Use it.
41941         (md5_finish_ctx): Doc fix.
41942         * lib/md5.h: Doc fix.
41943
41944 2008-01-30  Peter Palfrader  <weasel@debian.org>
41945
41946         sha1: remove the result buffer alignment constraint
41947         * lib/sha1.c (set_uint32): New function.
41948         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41949         constraint.
41950         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41951         * lib/sha1.h: Likewise.
41952
41953 2008-01-30  Andreas Schwab  <schwab@suse.de>
41954             Bruno Haible  <bruno@clisp.org>
41955
41956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41957         correct definition of LDBL_MIN_EXP.
41958
41959 2008-01-30  Karl Berry  <karl@gnu.org>
41960
41961         * config/srclist-update: try to preserve x bit on updates.
41962         * config/srclistvars.sh: update for karl.
41963
41964 2008-01-29  Jim Meyering  <meyering@redhat.com>
41965
41966         vasnprintf.c: Avoid warning about unused label
41967         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41968         "overflow" label definition and associated code with the
41969         same cpp condition that guards the sole use of that label.
41970
41971 2008-01-26  Bruno Haible  <bruno@clisp.org>
41972
41973         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41974         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41975         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41976         * lib/isnanl-nolibm.h (isnanl): Likewise.
41977         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41978
41979 2008-01-26  Bruno Haible  <bruno@clisp.org>
41980
41981         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41982         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41983
41984 2008-01-26  Bruno Haible  <bruno@clisp.org>
41985
41986         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41987         GCC >= 4.0 built-in.
41988         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41989
41990 2008-01-26  Bruno Haible  <bruno@clisp.org>
41991
41992         Rename isnan, applicable to 'double' only, to isnand.
41993         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41994         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41995         (configure.ac): Update.
41996         (Include): Replace "isnan.h" with "isnand.h".
41997         * m4/isnand.m4: Renamed from m4/isnan.m4.
41998         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41999         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42000         instead of isnan.c.
42001         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42002         instead of HAVE_ISNAN_IN_LIBC.
42003         (isnand): Renamed from isnan.
42004         * lib/isnand.c: New file.
42005         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42006         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42007         (Makefile.am): Update.
42008         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42009         Include isnand.h instead of isnan.h.
42010         (main): Test isnand instead of isnan.
42011         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42012         isnan-nolibm.
42013         * modules/frexp (Depends-on): Likewise.
42014         * modules/frexp-tests (Depends-on): Likewise.
42015         * modules/frexp-nolibm (Depends-on): Likewise.
42016         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42017         * modules/isfinite (Depends-on): Likewise.
42018         * modules/round-tests (Depends-on): Likewise.
42019         * modules/signbit (Depends-on): Likewise.
42020         * modules/signbit-tests (Depends-on): Likewise.
42021         * modules/snprintf-posix (Depends-on): Likewise.
42022         * modules/sprintf-posix (Depends-on): Likewise.
42023         * modules/trunc-tests (Depends-on): Likewise.
42024         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42025         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42027         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42028         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42029         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42030         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42031         * modules/vasnprintf-posix (Depends-on): Likewise.
42032         * modules/vasprintf-posix (Depends-on): Likewise.
42033         * modules/vfprintf-posix (Depends-on): Likewise.
42034         * modules/vsnprintf-posix (Depends-on): Likewise.
42035         * modules/vsprintf-posix (Depends-on): Likewise.
42036         * lib/frexp.c: Include isnand.h instead of isnan.h.
42037         (ISNAN): Set to isnand instead of isnan.
42038         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42039         (gl_isfinited): Use isnand instead of isnan.
42040         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42041         (gl_signbitd): Use isnand instead of isnan.
42042         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42043         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42044         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42045         (main): Use isnand instead of isnan.
42046         * tests/test-round1.c: Include isnand.h.
42047         (main): Use isnand instead of isnan.
42048         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42049         (ISNAN): Set to isnand instead of isnan.
42050         * tests/test-trunc1.c: Include isnand.h.
42051         (main): Use isnand instead of isnan.
42052         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42053         (equal): Use isnand instead of isnan.
42054         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42055         isnand-nolibm.
42056         * NEWS: Mention the change.
42057
42058 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42059             Bruno Haible  <bruno@clisp.org>
42060
42061         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42062         the GCC builtins for signbits are present and set
42063         REPLACE_SIGNBIT_USING_GCC if so.
42064         * lib/math.in.h (signbit): Define using GCC builtins if
42065         REPLACE_SIGNBIT_USING_GCC is set.
42066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42067         REPLACE_SIGNBIT_USING_GCC.
42068         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42069
42070 2008-01-25  Jim Meyering  <meyering@redhat.com>
42071
42072         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42073         * lib/poll.c: Include <config.h>, not "config.h".
42074         * tests/test-getaddrinfo.c: Likewise.
42075
42076 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42077
42078         * modules/sockets-tests: New file.
42079
42080 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42081
42082         * modules/sockets: New module, can be used to call WSA_Startup and
42083         WSA_Cleanup when needed.
42084
42085         * lib/sockets.h, lib/sockets.c: New files.
42086
42087         * m4/sockets.m4: New file.
42088
42089         * tests/test-sockets.c: New file.
42090
42091 2008-01-19  Bruno Haible  <bruno@clisp.org>
42092
42093         * doc/posix-headers: Renamed from doc/headers.
42094         * doc/posix-functions: Renamed from doc/functions.
42095         * doc/gnulib.texi: Update.
42096
42097 2008-01-19  Bruno Haible  <bruno@clisp.org>
42098
42099         * doc/glibc-functions/strcasestr.texi: Include contents of
42100         doc/functions/strcasestr.texi, fixing the list of platforms.
42101         * doc/functions/strcasestr.texi: Remove file.
42102
42103 2008-01-19  Bruno Haible  <bruno@clisp.org>
42104
42105         * doc/glibc-functions/memmem.texi: Include contents of
42106         doc/functions/memmem.texi.
42107         * doc/functions/memmem.texi: Remove file.
42108
42109 2008-01-18  Bruno Haible  <bruno@clisp.org>
42110
42111         * doc/glibc-functions/*.texi: New files.
42112         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42113         to use the new files.
42114
42115 2008-01-17  Bruno Haible  <bruno@clisp.org>
42116
42117         * tests/test-gethostname.c (main): Fix printf statement.
42118
42119 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42120
42121         * modules/gethostname-tests: New file.
42122
42123         * tests/test-gethostname.c: New file.
42124
42125 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42126
42127         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42128         used by the UNAME case.  Reported by Bruno Haible
42129         <bruno@clisp.org>.
42130
42131 2008-01-17  Eric Blake  <ebb9@byu.net>
42132
42133         Convert c-strcasestr to be more efficient.
42134         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42135         (Depends-on): Add c-strcase, remove malloca, strnlen.
42136         * tests/test-c-strcasestr.c (main): Enhance test.
42137         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42138
42139 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42140
42141         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42142         Use it in creating po/Makevars.
42143
42144 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42145
42146         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42147         Applications that requires it should initialize libgcrypt
42148         manually.
42149
42150 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42151
42152         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42153
42154 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42155
42156         Fix problem with getdate on mingw32 reported by Simon Josefsson
42157         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42158         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42159         tzname", when deciding whether to declare tzname.
42160         * lib/strftime.c (tzname): Likewise.
42161
42162 2008-01-15  Bruno Haible  <bruno@clisp.org>
42163
42164         Work around a MacOS X 10.5 bug in frexpl().
42165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42166         * doc/functions/frexpl.texi: Document the bug.
42167         Reported by Elias Pipping <pipping@gentoo.org>.
42168
42169 2008-01-14  Eric Blake  <ebb9@byu.net>
42170
42171         Touch up previous patch.
42172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42173         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42174
42175         Convert strcasestr module to use Two-Way algorithm.
42176         * modules/strcasestr-simple: New module, based on the old
42177         strcasestr, but with Two-Way rather than KMP.
42178         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42179         * lib/string.in.h (rpl_strcasestr): Declare.
42180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42181         performance.
42182         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42183         * modules/string (Makefile.am): Support strcasestr.
42184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42185         * modules/strcasestr-tests (Depends-on): Check for alarm.
42186         * tests/test-strcasestr.c: Augment test.
42187         * lib/str-two-way.h: Clean up stray macro.
42188         * NEWS: Document new module.
42189         * MODULES.html.sh (string handling): Likewise.
42190         * doc/functions/strcasestr.texi: New file.
42191         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42192         here, since it is not a POSIX function.
42193
42194 2008-01-14  Colin Watson  <cjwatson@debian.org>
42195             Bruno Haible  <bruno@clisp.org>
42196
42197         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42198         works fine; if not, set REPLACE_STRSIGNAL.
42199         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42201         REPLACE_STRSIGNAL.
42202         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42203         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42204         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42205
42206 2008-01-14  Bruno Haible  <bruno@clisp.org>
42207
42208         * modules/strsignal (Include): Change to <string.h>.
42209
42210 2008-01-14  Colin Watson  <cjwatson@debian.org>
42211
42212         * modules/argp (Notice): Add a notice recommending to change
42213         XGETTEXT_OPTIONS.
42214         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42215
42216 2008-01-13  Colin Watson  <cjwatson@debian.org>
42217
42218         * modules/strsignal-tests: New file.
42219         * tests/test-strsignal.c: New file.
42220
42221         * lib/strsignal.c: New file, from glibc with modifications.
42222         * lib/siglist.h: New file, from glibc with modifications.
42223         * lib/string.in.h (strsignal): New declaration.
42224         * m4/strsignal.m4: New file.
42225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42226         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42227         * modules/strsignal: New file.
42228         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42229         HAVE_DECL_STRSIGNAL.
42230
42231 2008-01-13  Bruno Haible  <bruno@clisp.org>
42232
42233         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42234         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42235         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42236         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42237
42238 2008-01-13  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42241         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42242         * lib/argp.h (__attribute__): Likewise.
42243         * lib/c-stack.c (__attribute__): Likewise.
42244         * lib/error.h (__attribute__): Likewise.
42245         * lib/fts.c (__attribute__): Likewise.
42246         * lib/openat.h (__attribute__): Likewise.
42247         * lib/stdio.in.h (__attribute__): Likewise.
42248         * lib/string.in.h (__attribute__): Likewise.
42249         * lib/utimens.c (__attribute__): Likewise.
42250         * lib/vasnprintf.h (__attribute__): Likewise.
42251         * lib/xalloc.h (__attribute__): Likewise.
42252         * lib/xprintf.h (__attribute__): Likewise.
42253         * lib/xstrtol.h (__attribute__): Likewise.
42254         * lib/xvasprintf.h (__attribute__): Likewise.
42255
42256 2008-01-12  Bruno Haible  <bruno@clisp.org>
42257
42258         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42259         * doc/glibc-headers/a.out.texi: New file.
42260         * doc/glibc-headers/aliases.texi: New file.
42261         * doc/glibc-headers/alloca.texi: New file.
42262         * doc/glibc-headers/ar.texi: New file.
42263         * doc/glibc-headers/argp.texi: New file.
42264         * doc/glibc-headers/argz.texi: New file.
42265         * doc/glibc-headers/byteswap.texi: New file.
42266         * doc/glibc-headers/crypt.texi: New file.
42267         * doc/glibc-headers/endian.texi: New file.
42268         * doc/glibc-headers/envz.texi: New file.
42269         * doc/glibc-headers/err.texi: New file.
42270         * doc/glibc-headers/error.texi: New file.
42271         * doc/glibc-headers/execinfo.texi: New file.
42272         * doc/glibc-headers/fpu_control.texi: New file.
42273         * doc/glibc-headers/fstab.texi: New file.
42274         * doc/glibc-headers/fts.texi: New file.
42275         * doc/glibc-headers/getopt.texi: New file.
42276         * doc/glibc-headers/ieee754.texi: New file.
42277         * doc/glibc-headers/ifaddrs.texi: New file.
42278         * doc/glibc-headers/libintl.texi: New file.
42279         * doc/glibc-headers/mcheck.texi: New file.
42280         * doc/glibc-headers/mntent.texi: New file.
42281         * doc/glibc-headers/obstack.texi: New file.
42282         * doc/glibc-headers/paths.texi: New file.
42283         * doc/glibc-headers/printf.texi: New file.
42284         * doc/glibc-headers/pty.texi: New file.
42285         * doc/glibc-headers/resolv.texi: New file.
42286         * doc/glibc-headers/shadow.texi: New file.
42287         * doc/glibc-headers/sysexits.texi: New file.
42288         * doc/glibc-headers/ttyent.texi: New file.
42289
42290 2008-01-12  Jim Meyering  <meyering@redhat.com>
42291
42292         announce-gen: emit Gnulib's git-based version string.
42293         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42294         New option --gnulib-version=V, where V is expected to be
42295         the output of running git describe in the gnulib directory.
42296         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42297         not useful, and plan to stop publishing an xdelta file with each
42298         coreutils release.
42299
42300         * build-aux/announce-gen: Also check for lzma-compressed files.
42301
42302 2008-01-11  Bruno Haible  <bruno@clisp.org>
42303
42304         * tests/test-memmem.c (main): Increase maximum allowed time.
42305         * tests/test-strstr.c (main): Likewise.
42306
42307 2008-01-11  Bruno Haible  <bruno@clisp.org>
42308
42309         * doc/functions/memmem.texi: Add more precisions about platforms.
42310         * doc/functions/strstr.texi: Likewise.
42311
42312 2008-01-10  Eric Blake  <ebb9@byu.net>
42313
42314         * m4/strstr.m4: Delete cruft from copy-n-paste.
42315         Reported by Bruno Haible.
42316
42317 2008-01-10  Bruno Haible  <bruno@clisp.org>
42318
42319         Make c-strstr rely on strstr.
42320         * lib/c-strstr.c: Don't include str-kmp.h.
42321         (c_strstr): Define in terms of strstr.
42322         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42323         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42324
42325 2008-01-10  Bruno Haible  <bruno@clisp.org>
42326
42327         * doc/gnulib.texi (String Functions in C Locale): New section.
42328         * doc/c-ctype.texi: New file.
42329         * doc/c-strcase.texi: New file.
42330         * doc/c-strcaseeq.texi: New file.
42331         * doc/c-strcasestr.texi: New file.
42332         * doc/c-strstr.texi: New file.
42333         * doc/c-strtod.texi: New file.
42334         * doc/c-strtold.texi: New file.
42335
42336 2008-01-10  Eric Blake  <ebb9@byu.net>
42337
42338         * lib/relocatable.h: Fix a comment.
42339
42340 2008-01-10  Eric Blake  <ebb9@byu.net>
42341
42342         Share two-way algorithm.
42343         * lib/str-two-way.h: New file, merged from...
42344         * lib/memmem.c: ...here...
42345         * lib/strstr.c: ...and here.
42346         * modules/memmem (Files): Use it.
42347         * modules/strstr (Files): Likewise.
42348
42349         Avoid quadratic strstr implementations.
42350         * lib/strstr.c: New file.
42351         * m4/strstr.m4: Likewise.
42352         * modules/strstr: Likewise.
42353         * modules/strstr-tests: Likewise.
42354         * tests/test-strstr.c: Likewise.
42355         * lib/string.in.h (rpl_strstr): Declare.
42356         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42358         * modules/string (Makefile.am): Likewise.
42359         * MODULES.html.sh (string handling): Mention new module.
42360         * doc/functions/strstr.texi (strstr): Document the bug.
42361
42362 2008-01-10  Bruno Haible  <bruno@clisp.org>
42363
42364         * lib/relocatable.h (relocate): State whether result is freshly
42365         allocated or not.
42366         * lib/relocatable.c (relocate): Return a freshly allocated string
42367         instead of a pointer to a privately held string.
42368         Reported by Sylvain Beucler <beuc@gnu.org>.
42369
42370 2008-01-10  Colin Watson  <cjwatson@debian.org>
42371
42372         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42373         s/S_ISNLK/S_ISLNK/.
42374
42375 2008-01-09  Bruno Haible  <bruno@clisp.org>
42376
42377         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42378         and other files.
42379         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42380         if it's only a guess.
42381         * modules/memmem: Simplify by depending on memmem-simple.
42382
42383 2008-01-09  Bruno Haible  <bruno@clisp.org>
42384
42385         Work around OpenBSD 4.0 tdelete() bug.
42386         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42387         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42388         macros and don't redefine the enum values.
42389         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42390         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42391         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42392
42393 2008-01-09  Bruno Haible  <bruno@clisp.org>
42394
42395         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42396         (main): Don't perform the tests if setlocale did not install a UTF-8
42397         locale. Needed on OpenBSD 4.0.
42398         * modules/wcwidth-tests (Depends-on): Add localcharset.
42399
42400 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42401
42402         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42403         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42404         * NEWS: announce this.
42405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42406
42407 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42408         and Eric Blake  <ebb9@byu.net>
42409
42410         Add memmem-simple module.
42411         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42412         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42413         * modules/memmem-simple: New file.
42414         * modules/memmem (Description): Tweak.
42415         * MODULES.html.sh (string handling): Mention new module.
42416         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42417         addressed by memmem-simple.
42418         * NEWS: Document the difference.
42419
42420 2008-01-09  Eric Blake  <ebb9@byu.net>
42421
42422         Give gcc some memmem optimization hints.
42423         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42424         (strcasestr): Declare as pure.
42425         * modules/memmem (Maintainer): Claim my implementation.
42426
42427 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42428
42429         Support AIX 6.1 and higher.
42430         * build-aux/config.libpath: Likewise.
42431         * build-aux/config.rpath: Likewise.
42432
42433 2008-01-08  Jim Meyering  <meyering@redhat.com>
42434             Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42437         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42438         Reported by Peter Fales in
42439         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42440
42441 2008-01-08  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/unictype/category-of (Depends-on): Add
42444         unictype/category-none.
42445         * modules/unictype/category-and-tests (Depends-on): Add
42446         unictype/category-{L,N,Lu,Nd}.
42447         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42448         * modules/unictype/category-or-tests (Depends-on): Add
42449         unictype/category-{L,N}.
42450         * modules/unictype/category-name-tests (Depends-on): Add
42451         unictype/category-{Z,Nl}.
42452         Reported by Simon Josefsson.
42453
42454 2008-01-08  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42457         convention better.
42458         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42459         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42460         Reported by Peter Miller <millerp@canb.auug.org.au>.
42461
42462 2008-01-08  Eric Blake  <ebb9@byu.net>
42463
42464         Rewrite memmem to guarantee linear complexity without malloc.
42465         * lib/memmem.c (memmem): Use Two-Way rather than
42466         Knuth-Morris-Pratt, to allow O(1) space usage.
42467         (critical_factorization, two_way_short_needle)
42468         (two_way_long_needle): New functions.
42469         (knuth_morris_pratt): Delete.
42470         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42471         Add stdint.
42472         * tests/test-memmem.c (main): Add tests for periodic needle and
42473         sublinear performance.
42474         * doc/functions/memmem.texi (memmem): Document other deficiencies
42475         in cygwin and older glibc.
42476
42477 2008-01-08  Bruno Haible  <bruno@clisp.org>
42478
42479         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42480         augmentation.
42481
42482 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42483
42484         Add a configure time option: --disable-acl.
42485         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42486         AC_ARG_ENABLE(acl).
42487
42488 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42489
42490         * tests/test-localename.c: Don't include obsolete "setenv.h".
42491
42492         * modules/localename-tests (Depends-on): Need unsetenv.
42493
42494 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42495
42496         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42497
42498 2008-01-06  Colin Watson  <cjwatson@debian.org>
42499
42500         * users.txt: Add man-db.
42501
42502 2008-01-07  Bruno Haible  <bruno@clisp.org>
42503
42504         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42505         previous section name.
42506
42507 2008-01-07  Bruno Haible  <bruno@clisp.org>
42508
42509         * lib/progname.c (set_program_name): Don't strip off a leading
42510         "lt-" prefix outside a .libs directory.
42511         Suggested by Paul Eggert.
42512
42513 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42514             Bruno Haible  <bruno@clisp.org>
42515
42516         Improve memory cleanup in 'relocatable' module.
42517         * lib/relocatable.h (compute_curr_prefix): Change return type to
42518         'char *'.
42519         * lib/relocatable.c (compute_curr_prefix): Change return type to
42520         'char *'. Free curr_installdir after use.
42521         (relocate): Free curr_prefix_better after use.
42522         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42523
42524 2008-01-01  Bruno Haible  <bruno@clisp.org>
42525
42526         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42527         failure on older glibc systems.
42528         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42529
42530 2008-01-05  Eric Blake  <ebb9@byu.net>
42531
42532         Avoid quadratic system memmem.
42533         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42534         Reported by Ralf Wildenhues.
42535
42536         Fix memmem test for mingw.
42537         * modules/memmem-tests (configure.ac): Check for alarm.
42538         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42539         it.
42540         * doc/functions/memmem.texi: New file.
42541         * doc/gnulib.texi (Function Substitutes): Add memmem.
42542         Reported by Bruno Haible.
42543
42544 2008-01-04  Bruno Haible  <bruno@clisp.org>
42545
42546         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42547         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42548         gl_HEADER_STRING_H_DEFAULTS.
42549
42550 2008-01-04  Eric Blake  <ebb9@byu.net>
42551
42552         Shorten duration of memmem test.
42553         * tests/test-memmem.c (main): Use alarm to declare failure if test
42554         is taking too long.
42555         Reported by Ralf Wildenhues.
42556
42557 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42558
42559         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42560         string, needed by strerror.
42561
42562 2008-01-03  Colin Watson  <cjwatson@debian.org>
42563             Bruno Haible  <bruno@clisp.org>
42564
42565         * doc/gnulib-tool.texi (Localization): New section.
42566
42567 2008-01-02  Bruno Haible  <bruno@clisp.org>
42568
42569         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42570         variables to 'unsigned char *' type.
42571         Reported by Paul Eggert.
42572
42573 2008-01-02  Jim Meyering  <jim@meyering.net>
42574
42575         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42576
42577 2007-12-31  Jim Meyering  <jim@meyering.net>
42578
42579         Avoid use of private FTS type name.
42580         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42581
42582 2007-12-30  Karl Berry  <karl@gnu.org>
42583
42584         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42585         work around defect in Texinfo and/or the standalone Info browser.
42586
42587 2007-12-30  Bruno Haible  <bruno@clisp.org>
42588
42589         Unify 5 copies of the KMP code.
42590         * lib/str-kmp.h: New file.
42591         * lib/c-strcasestr.c: Include str-kmp.h.
42592         (knuth_morris_pratt): Remove function.
42593         (c_strcasestr): Update.
42594         * lib/c-strstr.c: Include str-kmp.h.
42595         (knuth_morris_pratt): Remove function.
42596         (c_strcasestr): Update.
42597         * lib/mbscasestr.c: Include str-kmp.h.
42598         (knuth_morris_pratt_unibyte): Remove function.
42599         * lib/mbsstr.c: Include str-kmp.h.
42600         (knuth_morris_pratt_unibyte): Remove function.
42601         * lib/strcasestr.c: Include str-kmp.h.
42602         (knuth_morris_pratt): Remove function.
42603         (strcasestr): Update.
42604         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42605         * modules/c-strstr (Files): Likewise.
42606         * modules/mbscasestr (Files): Likewise.
42607         * modules/mbsstr (Files): Likewise.
42608         * modules/strcasestr (Files): Likewise.
42609         Suggested by Paul Eggert.
42610
42611 2007-12-30  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42614         defined.
42615
42616 2007-12-30  Bruno Haible  <bruno@clisp.org>
42617
42618         * lib/xmalloca.h: Include xalloc.h.
42619         (xnmalloca): New macro.
42620
42621 2007-12-30  Bruno Haible  <bruno@clisp.org>
42622
42623         * lib/malloca.h (nmalloca): New macro.
42624         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42625         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42626         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42627         knuth_morris_pratt_multibyte): Likewise.
42628         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42629         knuth_morris_pratt_multibyte): Likewise.
42630         * lib/memmem.c (knuth_morris_pratt): Likewise.
42631         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42632
42633 2007-12-25  Bruno Haible  <bruno@clisp.org>
42634
42635         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42636         * lib/glob.c: Don't include openat.h.
42637         (link_exists2_p): Add back the code that deals with the
42638         !GLOB_ALTDIRFUNC case.
42639         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42640         let it do the filename concatenation.
42641         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42642         * modules/glob (Depends-on): Remove openat.
42643
42644 2007-12-31  Bruno Haible  <bruno@clisp.org>
42645
42646         * modules/dirfd (License): Change to LGPLv2+.
42647         Approved by Jim Meyering.
42648
42649 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42650
42651         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42652         when multiplying M by sizeof (size_t).
42653
42654 2007-12-10  Martin Lambers  <marlam@marlam.de>
42655
42656         Override getpagesize on mingw.
42657         * lib/getpagesize.c: New file.
42658         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42659         * modules/getpagesize (Files): Add lib/getpagesize.c.
42660         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42662         REPLACE_GETPAGESIZE.
42663         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42664
42665 2007-12-25  Bruno Haible  <bruno@clisp.org>
42666
42667         * modules/localcharset (Notice): New field.
42668         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42669         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42670
42671 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42672             Bruno Haible  <bruno@clisp.org>
42673
42674         Avoid using the syntax symbol() in formatted documentation.
42675         * MODULES.html.sh (func_module): When replacing symbol() with a
42676         hyperlink, remove the parentheses. Show an error if some remain.
42677         Recognize and render the '...' syntax.
42678         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42679         Rework. Add paragraph about GCC's inlining.
42680         * doc/alloca.texi: Likewise.
42681         * doc/error.texi: Remove parentheses from symbol reference.
42682         * doc/gnulib-intro.texi: Likewise.
42683         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42684         * modules/fnmatch (Description): Reword to say "the ... function".
42685         * modules/full-read (Description): Likewise.
42686         * modules/full-write (Description): Likewise.
42687         * modules/safe-read (Description): Likewise.
42688         * modules/safe-write (Description): Likewise.
42689         * modules/strchrnul (Description): Likewise.
42690         * modules/trim (Description): Likewise.
42691         * modules/error (Description): Remove parentheses from symbol
42692         references.
42693         * modules/verror (Description): Likewise.
42694         Reported by Karl Berry.
42695
42696 2007-12-25  Bruno Haible  <bruno@clisp.org>
42697
42698         Fixup after 2007-10-16 commit.
42699         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42700
42701 2007-12-24  Bruno Haible  <bruno@clisp.org>
42702
42703         Make --enable-relocatable work with DESTDIR.
42704         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42705         to compute installdir from destprog.
42706         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42707         also set the RELOC_DESTDIR variable.
42708         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42709
42710 2007-12-24  Bruno Haible  <bruno@clisp.org>
42711
42712         Fix link error due to xalloc_die().
42713         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42714         of xreadlink.
42715         * lib/relocwrapper.c: Update comments.
42716         * build-aux/install-reloc: Remove xreadlink.c from file list.
42717         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42718         xreadlink.c.
42719         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42720
42721 2007-12-24  Bruno Haible  <bruno@clisp.org>
42722
42723         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42724         * lib/setenv.h: Remove file.
42725         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42726         lib/setenv.h.
42727         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42728         (Depends-on): Add stdlib.
42729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42730         gl_FUNC_UNSETENV.
42731         (Include): Replace setenv.h with <stdlib.h>.
42732         * modules/unsetenv: New file.
42733         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42734         * lib/unsetenv.c: Include <stdlib.h> first.
42735         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42736         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42737         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42738         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42739         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42740         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42742         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42743         * doc/functions/unsetenv.texi: Update.
42744         * modules/xsetenv (Depends-on): Add unsetenv.
42745         * modules/getdate (Depends-on): Likewise.
42746         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42747         * lib/xsetenv.c: Don't include setenv.h.
42748         * lib/getdate.y: Likewise.
42749         * lib/relocwrapper.c: Likewise.
42750         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42751         (Depends-on): Add stdlib.
42752         * NEWS: Mention the changes.
42753         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42754
42755 2007-12-23  Bruno Haible  <bruno@clisp.org>
42756
42757         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42758         indentation.
42759
42760 2007-12-23  Bruno Haible  <bruno@clisp.org>
42761
42762         * lib/c-strcasestr.c: Add more comments.
42763         * lib/c-strstr.c: Likewise.
42764         * lib/mbscasestr.c: Likewise.
42765         * lib/mbsstr.c: Likewise.
42766         * lib/strcasestr.c: Likewise.
42767         * lib/memmem.c: Likewise.
42768
42769 2007-12-23  Bruno Haible  <bruno@clisp.org>
42770
42771         * tests/test-memmem.c: Include <string.h> first.
42772
42773 2007-12-22  Bruno Haible  <bruno@clisp.org>
42774
42775         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42776         the contents of $testsbase.
42777         Reported by Ralf Wildenhues.
42778
42779 2007-12-22  Bruno Haible  <bruno@clisp.org>
42780
42781         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42782         two variables local_ldadd_before, local_ldadd_last.
42783
42784 2007-12-20  Eric Blake  <ebb9@byu.net>
42785
42786         Work around circular library issue when cross-compiling.
42787         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42788         that progname.o does not need to pull in rpl_memcmp.
42789
42790 2007-12-19  Eric Blake  <ebb9@byu.net>
42791
42792         Fix memmem to avoid O(n^2) worst-case complexity.
42793         * lib/memmem.c (knuth_morris_pratt): New function.
42794         (memmem): Use it if first few naive iterations fail.
42795         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42796         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42797         * modules/memchr (License): Likewise.
42798         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42799         malloca.
42800         * tests/test-memmem.c: Rewrite, borrowing ideas from
42801         test-mbsstr1.c; the old version wouldn't even compile!
42802         * modules/memmem-tests: New file.
42803         * lib/string.in.h (rpl_memmem): Add declaration.
42804         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42806         REPLACE_MEMMEM.
42807
42808 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42809
42810         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42811         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42812         before any system include files, and undef after them all.  This
42813         should fix a problem on VMS reported by John E. Malmberg in
42814         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42815
42816 2007-12-17  Eric Blake  <ebb9@byu.net>
42817
42818         Revert addition of verify, for BSD/OS.
42819         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42820         can't handle large files, for the sake of obsolete platforms.
42821         * modules/fseeko (Depends-on): Remove verify.
42822         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42823         * doc/functions/ftello.texi (ftello): Likewise.
42824         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42825         Reported by Larry Jones.
42826
42827 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42828
42829         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42830         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42831
42832 2007-12-17  Jim Meyering  <meyering@redhat.com>
42833
42834         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42835         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42836         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42837         * modules/getcwd (Depends-on): Add openat.
42838         Reported by Petr Salinger.
42839
42840 2007-12-17  Bruno Haible  <bruno@clisp.org>
42841
42842         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42843         avoid a segmentation fault of the configure test on x86_64 systems.
42844
42845 2007-12-15  Jim Meyering  <meyering@redhat.com>
42846
42847         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42848
42849 2007-12-13  Eric Blake  <ebb9@byu.net>
42850
42851         Another fseek test.
42852         * tests/test-fseek.c (main): Also test ungetc handling.
42853         * tests/test-fseeko.c (main): Likewise.
42854         * modules/fseeko (Depends-on): Add verify.
42855         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42856         large.
42857         Reported by Larry Jones.
42858
42859         Fix fseeko on mingw.
42860         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42861         seek.
42862
42863         Beef up fseek tests.
42864         * tests/test-fseek.c (main): Also test eof handling.
42865         * tests/test-fseeko.c (main): Likewise.
42866         Reported by Larry Jones.
42867
42868 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42869
42870         Fix fseeko on BSD-based platforms.
42871         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42872         successful seek.
42873
42874 2007-12-12  Eric Blake  <ebb9@byu.net>
42875
42876         Allow circular dependency of separate libtests.a
42877         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42878         when use_libtests.
42879
42880 2007-12-11  Eric Blake  <ebb9@byu.net>
42881
42882         Fix bug with -0.0L in previous patch.
42883         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42884         * tests/test-isnan.c (main): Also test on zeroes.
42885         * tests/test-isnanf.c (main): Likewise.
42886         * tests/test-isnanl.h (main): Likewise.
42887
42888         Detect pseudo-denormals on x86 even when cross-compiling.
42889         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42890         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42891         invalid bit patterns that happen to satisfy ==.
42892
42893         Avoid link failures with separate libtests.a.
42894         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42895         last, to satisfy circular dependencies.
42896
42897 2007-12-11  Eric Blake  <ebb9@byu.net>
42898         and Bruno Haible  <bruno@clisp.org>
42899
42900         Fix OpenBSD 4.0 <float.h> handling of long double.
42901         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42902         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42903         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42904
42905 2007-12-11  Jim Meyering  <meyering@redhat.com>
42906
42907         * users.txt: Add libvirt.
42908
42909         Support versions of autoconf prior to 2.59c.
42910         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42911         if it is not already defined.
42912
42913 2007-12-09  Bruno Haible  <bruno@clisp.org>
42914
42915         Let 'gnulib-tool --import' collect sources needed for the tests in
42916         tests/ rather than in lib/.
42917         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42918         argument. If true, add rules to generate libtests.a, and put libtests.a
42919         into $(LDADD). Consider source files in subdirectories and set
42920         uses_subdirs.
42921         (func_emit_initmacro_start, func_emit_initmacro_end,
42922         func_emit_initmacro_done): Pass all arguments explicitly.
42923         (func_import): Determine two module lists main_modules,
42924         testsrelated_modules. Determine use_libtests. Determine two variables
42925         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42926         instead of just sed_transform_lib_file. Determine two variables
42927         main_files and testsrelated_files. Compute 'files' as the union of
42928         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42929         func_add_or_update. In the generated gnulib-comp.m4, collect the
42930         object files for tests/ in different variables than those for lib/.
42931         Substitute LIBTESTS_LIBDEPS.
42932         (func_create_testdir): Combine the uses_subdirs results from
42933         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42934
42935 2007-12-09  Bruno Haible  <bruno@clisp.org>
42936
42937         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42938         the build-aux directory.
42939
42940 2007-12-09  Bruno Haible  <bruno@clisp.org>
42941
42942         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42943         introduced on 2006-09-09.
42944
42945 2007-12-07  Jim Meyering  <meyering@redhat.com>
42946
42947         Let these macros work also with autoconf-2.59.
42948         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42949         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42950         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42951
42952 2007-12-06  Jim Meyering  <meyering@redhat.com>
42953
42954         Avoid a configure-time syntax error in gl_FUNC_ACL.
42955         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42956         function in each branch, before testing the cache variable.
42957
42958 2007-12-04  Eric Blake  <ebb9@byu.net>
42959
42960         Make scripts executable.
42961         * build-aux/config.guess: Add execute permissions.
42962         * build-aux/config.sub: Likewise.
42963         * build-aux/gendocs.sh: Likewise.
42964
42965         Fix frexp on mingw.
42966         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42967         cross-compiling.
42968         * doc/functions/frexp.texi (frexp): Document the bug.
42969
42970         Make cygwin fseeko check more reliable.
42971         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42972         version numbers, rather than unrelated feature check.
42973         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42974         * doc/functions/ftello.texi (ftello): Likewise.
42975         Reported by Bruno Haible.
42976
42977         * m4/strerror.m4: Bump version number.
42978
42979 2007-12-03  Bruno Haible  <bruno@clisp.org>
42980
42981         * doc/functions/mprotect.texi: Mention the mingw problem.
42982
42983 2007-12-03  Eric Blake  <ebb9@byu.net>
42984
42985         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42986         REPLACE_STRERROR is initialized before this macro.
42987
42988 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42989
42990         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42991         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42992         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42993         put -lsec in even for programs other than 'ls'.  This fixes a problem
42994         for gettext reported by Bruno Haible in
42995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42996         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42997         Add support for Solaris 10.  This isn't efficient, but should get the
42998         job done for now.
42999
43000 2007-12-03  James Youngman  <jay@gnu.org>
43001
43002         * doc/regexprops-generic.texi: change "an close-group" to "a
43003         close-group" and "illegal" to "not allowed".
43004
43005 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43006
43007         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43008         pr_byname.h. Needed for the rare case when the maintainer has done
43009         "make maintainer-clean" in the source directory and then attempts a
43010         build outside the source directory.
43011         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43012         scripts_byname.h.
43013
43014 2007-12-02  Martin Lambers <marlam@marlam.de>
43015             Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/getpagesize.h: Remove file.
43018         * lib/unistd.in.h: Include declaration of getpagesize here.
43019         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43020         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43021         HAVE_SYS_PARAM_H.
43022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43023         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43024         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43025         (Depends-on): Add unistd.
43026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43027         (Include): Use <unistd.h> instead of getpagesize.h.
43028         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43029         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43030         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43031         gl_GETPAGESIZE invocation, already handled by module dependency.
43032         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43033
43034 2007-12-02  Bruno Haible  <bruno@clisp.org>
43035
43036         * modules/strings-tests: New file.
43037         * tests/test-strings.c: New file.
43038
43039         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43040         * lib/strings.in.h: New file.
43041         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43042         * m4/strings_h.m4: New file.
43043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43044         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43045         * modules/strings: New file.
43046         * modules/string (Makefile.am): Update.
43047         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43048         Reported by Karl Berry.
43049
43050 2007-12-01  Eric Blake  <ebb9@byu.net>
43051
43052         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43053         accomodate fix in cygwin 1.5.25.
43054
43055 2007-12-01  Jim Meyering  <meyering@redhat.com>
43056
43057         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43058         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43059         that would inhibit utf8-optimization of a regexp containing line-
43060         or buffer-anchors, e.g., `^', `$'.
43061
43062 2007-11-30  Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43065         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43066         glthread_recursive_lock_init.
43067         * lib/lock.c (glthread_recursive_lock_init)
43068         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43069         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43070
43071 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43072
43073         New function qset_acl, like set_acl but with syscall semantics.
43074         * lib/acl.h (qset_acl): New decl.
43075         * lib/acl.c (qset_acl): New function.
43076         (set_acl): Use new function.  Use more-consistent diagnostics.
43077
43078 2007-11-28  Jim Meyering  <meyering@redhat.com>
43079
43080         * modules/physmem (License): Change from GPL to LGPLv2+.
43081
43082 2007-11-26  Bruno Haible  <bruno@clisp.org>
43083
43084         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43085         'long double' type has excess precision.
43086         Reported by Jim Meyering in
43087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43088
43089 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43090
43091         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43092         Sync from <http://gnu.org/licenses>.
43093         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43094         with license text from same location.
43095         * doc/maintain.texi, doc/standards.texi:  Sync from
43096         <http://savannah.gnu.org/projects/gnustandards>.
43097
43098 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43099         and Jim Meyering  <meyering@redhat.com>
43100
43101         Adjust getdate' grammar to accept a slightly more regular language.
43102         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43103         Before, the former was rejected.
43104         * lib/getdate.y (digits_to_date_time): New function, factored
43105         out of ...
43106         (number): ...here.  Just call digits_to_date_time.
43107         (hybrid): New non-terminal to handle an <unsigned number,
43108         signed relative offset> sequence consistently.
43109
43110 2007-11-18  Jim Meyering  <meyering@redhat.com>
43111
43112         Pull my changes from coreutils:
43113         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43114         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43115         use of $gnulib_tool_option_extras, so that it's separated from the
43116         preceding argument.
43117
43118         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43119         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43120         parent destination directories before copying a file into place.
43121
43122 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43123
43124         bootstrap: work also with 4-argument variant of AC_INIT
43125         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43126
43127 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43128
43129         Port test-getaddrinfo to Solaris.
43130         Problem reported by Bruno Haible in
43131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43132         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43133         explanation of setting 'hints'.
43134         Don't reject an implementation merely because it returns EAI_SERVICE.
43135         (EAI_SERVICE): Define to 0 if not defined.
43136
43137 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43138
43139         The license of gnu-make and posix-shell is now "GPLed build tool".
43140         * modules/gnu-make (License): Likewise.
43141         * modules/posix-shell (License): Likewise.
43142
43143         New module posix-shell, for determining a POSIX shell
43144         or perhaps something that is close enough to a POSIX shell.
43145         * m4/posix-shell.m4: New file.
43146         * modules/posix-shell: New file.
43147
43148         * MODULES.html.sh: Mention new module.
43149
43150         New module gnu-make, for determining whether we're using GNU Make.
43151         * m4/gnu-make.m4: New file.
43152         * modules/gnu-make: New file.
43153         * MODULES.html.sh: Mention new module.
43154
43155 2007-11-14  Jim Meyering  <meyering@redhat.com>
43156
43157         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43158         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43159         use this macro to create a function _definition_.
43160         Remove useless "#undef ARGMATCH_DIE".
43161
43162 2007-11-14  Bruno Haible  <bruno@clisp.org>
43163
43164         * lib/config.charset: Update for OpenBSD 4.1.
43165         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43166
43167 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43168
43169         Document 64-bit #if problems in stdint.texi.
43170         * doc/headers/stdint.texi (stdint.h): Mention problems with
43171         64-bit-#if, and how to work around them.
43172
43173         Don't insist on 'long long int' support in the preprocessor.  It
43174         breaks too many things.  For example, PRIdMAX still uses a 'long
43175         long int' format with the latest Sun compiler, even though
43176         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43177         preprocessor problem.  This causes the latest coreutils to dump
43178         core on Solaris 10 sparc with the Sun C compiler.
43179         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43180         the troublesome expressions at configure-time, not at #if-time.
43181         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43182         preprocessor.
43183         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43184         compile-time C checks, done at 'configure'-time.
43185         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43186         * modules/inttypes (Makefile): Substitute the new symbols that
43187         gl_INTTYPES_H now generates.
43188         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43189
43190 2007-11-12  Bruno Haible  <bruno@clisp.org>
43191
43192         Tests for Unicode character classification functions.
43193
43194         * modules/unictype/bidicategory-byname-tests: New file.
43195         * modules/unictype/bidicategory-name-tests: New file.
43196         * modules/unictype/bidicategory-of-tests: New file.
43197         * modules/unictype/bidicategory-test-tests: New file.
43198         * modules/unictype/block-list-tests: New file.
43199         * modules/unictype/block-of-tests: New file.
43200         * modules/unictype/block-test-tests: New file.
43201         * modules/unictype/category-C-tests: New file.
43202         * modules/unictype/category-Cc-tests: New file.
43203         * modules/unictype/category-Cf-tests: New file.
43204         * modules/unictype/category-Cn-tests: New file.
43205         * modules/unictype/category-Co-tests: New file.
43206         * modules/unictype/category-Cs-tests: New file.
43207         * modules/unictype/category-L-tests: New file.
43208         * modules/unictype/category-Ll-tests: New file.
43209         * modules/unictype/category-Lm-tests: New file.
43210         * modules/unictype/category-Lo-tests: New file.
43211         * modules/unictype/category-Lt-tests: New file.
43212         * modules/unictype/category-Lu-tests: New file.
43213         * modules/unictype/category-M-tests: New file.
43214         * modules/unictype/category-Mc-tests: New file.
43215         * modules/unictype/category-Me-tests: New file.
43216         * modules/unictype/category-Mn-tests: New file.
43217         * modules/unictype/category-N-tests: New file.
43218         * modules/unictype/category-Nd-tests: New file.
43219         * modules/unictype/category-Nl-tests: New file.
43220         * modules/unictype/category-No-tests: New file.
43221         * modules/unictype/category-P-tests: New file.
43222         * modules/unictype/category-Pc-tests: New file.
43223         * modules/unictype/category-Pd-tests: New file.
43224         * modules/unictype/category-Pe-tests: New file.
43225         * modules/unictype/category-Pf-tests: New file.
43226         * modules/unictype/category-Pi-tests: New file.
43227         * modules/unictype/category-Po-tests: New file.
43228         * modules/unictype/category-Ps-tests: New file.
43229         * modules/unictype/category-S-tests: New file.
43230         * modules/unictype/category-Sc-tests: New file.
43231         * modules/unictype/category-Sk-tests: New file.
43232         * modules/unictype/category-Sm-tests: New file.
43233         * modules/unictype/category-So-tests: New file.
43234         * modules/unictype/category-Z-tests: New file.
43235         * modules/unictype/category-Zl-tests: New file.
43236         * modules/unictype/category-Zp-tests: New file.
43237         * modules/unictype/category-Zs-tests: New file.
43238         * modules/unictype/category-and-not-tests: New file.
43239         * modules/unictype/category-and-tests: New file.
43240         * modules/unictype/category-byname-tests: New file.
43241         * modules/unictype/category-name-tests: New file.
43242         * modules/unictype/category-none-tests: New file.
43243         * modules/unictype/category-of-tests: New file.
43244         * modules/unictype/category-or-tests: New file.
43245         * modules/unictype/category-test-withtable-tests: New file.
43246         * modules/unictype/combining-class-tests: New file.
43247         * modules/unictype/ctype-alnum-tests: New file.
43248         * modules/unictype/ctype-alpha-tests: New file.
43249         * modules/unictype/ctype-blank-tests: New file.
43250         * modules/unictype/ctype-cntrl-tests: New file.
43251         * modules/unictype/ctype-digit-tests: New file.
43252         * modules/unictype/ctype-graph-tests: New file.
43253         * modules/unictype/ctype-lower-tests: New file.
43254         * modules/unictype/ctype-print-tests: New file.
43255         * modules/unictype/ctype-punct-tests: New file.
43256         * modules/unictype/ctype-space-tests: New file.
43257         * modules/unictype/ctype-upper-tests: New file.
43258         * modules/unictype/ctype-xdigit-tests: New file.
43259         * modules/unictype/decimal-digit-tests: New file.
43260         * modules/unictype/digit-tests: New file.
43261         * modules/unictype/mirror-tests: New file.
43262         * modules/unictype/numeric-tests: New file.
43263         * modules/unictype/property-alphabetic-tests: New file.
43264         * modules/unictype/property-ascii-hex-digit-tests: New file.
43265         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43266         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43267         * modules/unictype/property-bidi-block-separator-tests: New file.
43268         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43269         * modules/unictype/property-bidi-common-separator-tests: New file.
43270         * modules/unictype/property-bidi-control-tests: New file.
43271         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43272         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43273         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43274         * modules/unictype/property-bidi-european-digit-tests: New file.
43275         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43276         * modules/unictype/property-bidi-left-to-right-tests: New file.
43277         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43278         * modules/unictype/property-bidi-other-neutral-tests: New file.
43279         * modules/unictype/property-bidi-pdf-tests: New file.
43280         * modules/unictype/property-bidi-segment-separator-tests: New file.
43281         * modules/unictype/property-bidi-whitespace-tests: New file.
43282         * modules/unictype/property-byname-tests: New file.
43283         * modules/unictype/property-combining-tests: New file.
43284         * modules/unictype/property-composite-tests: New file.
43285         * modules/unictype/property-currency-symbol-tests: New file.
43286         * modules/unictype/property-dash-tests: New file.
43287         * modules/unictype/property-decimal-digit-tests: New file.
43288         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43289         * modules/unictype/property-deprecated-tests: New file.
43290         * modules/unictype/property-diacritic-tests: New file.
43291         * modules/unictype/property-extender-tests: New file.
43292         * modules/unictype/property-format-control-tests: New file.
43293         * modules/unictype/property-grapheme-base-tests: New file.
43294         * modules/unictype/property-grapheme-extend-tests: New file.
43295         * modules/unictype/property-grapheme-link-tests: New file.
43296         * modules/unictype/property-hex-digit-tests: New file.
43297         * modules/unictype/property-hyphen-tests: New file.
43298         * modules/unictype/property-id-continue-tests: New file.
43299         * modules/unictype/property-id-start-tests: New file.
43300         * modules/unictype/property-ideographic-tests: New file.
43301         * modules/unictype/property-ids-binary-operator-tests: New file.
43302         * modules/unictype/property-ids-trinary-operator-tests: New file.
43303         * modules/unictype/property-ignorable-control-tests: New file.
43304         * modules/unictype/property-iso-control-tests: New file.
43305         * modules/unictype/property-join-control-tests: New file.
43306         * modules/unictype/property-left-of-pair-tests: New file.
43307         * modules/unictype/property-line-separator-tests: New file.
43308         * modules/unictype/property-logical-order-exception-tests: New file.
43309         * modules/unictype/property-lowercase-tests: New file.
43310         * modules/unictype/property-math-tests: New file.
43311         * modules/unictype/property-non-break-tests: New file.
43312         * modules/unictype/property-not-a-character-tests: New file.
43313         * modules/unictype/property-numeric-tests: New file.
43314         * modules/unictype/property-other-alphabetic-tests: New file.
43315         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43316         * modules/unictype/property-other-grapheme-extend-tests: New file.
43317         * modules/unictype/property-other-id-continue-tests: New file.
43318         * modules/unictype/property-other-id-start-tests: New file.
43319         * modules/unictype/property-other-lowercase-tests: New file.
43320         * modules/unictype/property-other-math-tests: New file.
43321         * modules/unictype/property-other-uppercase-tests: New file.
43322         * modules/unictype/property-paired-punctuation-tests: New file.
43323         * modules/unictype/property-paragraph-separator-tests: New file.
43324         * modules/unictype/property-pattern-syntax-tests: New file.
43325         * modules/unictype/property-pattern-white-space-tests: New file.
43326         * modules/unictype/property-private-use-tests: New file.
43327         * modules/unictype/property-punctuation-tests: New file.
43328         * modules/unictype/property-quotation-mark-tests: New file.
43329         * modules/unictype/property-radical-tests: New file.
43330         * modules/unictype/property-sentence-terminal-tests: New file.
43331         * modules/unictype/property-soft-dotted-tests: New file.
43332         * modules/unictype/property-space-tests: New file.
43333         * modules/unictype/property-terminal-punctuation-tests: New file.
43334         * modules/unictype/property-test-tests: New file.
43335         * modules/unictype/property-titlecase-tests: New file.
43336         * modules/unictype/property-unassigned-code-value-tests: New file.
43337         * modules/unictype/property-unified-ideograph-tests: New file.
43338         * modules/unictype/property-uppercase-tests: New file.
43339         * modules/unictype/property-variation-selector-tests: New file.
43340         * modules/unictype/property-white-space-tests: New file.
43341         * modules/unictype/property-xid-continue-tests: New file.
43342         * modules/unictype/property-xid-start-tests: New file.
43343         * modules/unictype/property-zero-width-tests: New file.
43344         * modules/unictype/scripts-tests: New file.
43345         * modules/unictype/syntax-c-ident-tests: New file.
43346         * modules/unictype/syntax-c-whitespace-tests: New file.
43347         * modules/unictype/syntax-java-ident-tests: New file.
43348         * modules/unictype/syntax-java-whitespace-tests: New file.
43349         * tests/unictype/test-bidi_byname.c: New file.
43350         * tests/unictype/test-bidi_name.c: New file.
43351         * tests/unictype/test-bidi_of.c: New file.
43352         * tests/unictype/test-bidi_test.c: New file.
43353         * tests/unictype/test-block_list.c: New file.
43354         * tests/unictype/test-block_of.c: New file.
43355         * tests/unictype/test-block_test.c: New file.
43356         * tests/unictype/test-categ_and.c: New file.
43357         * tests/unictype/test-categ_and_not.c: New file.
43358         * tests/unictype/test-categ_byname.c: New file.
43359         * tests/unictype/test-categ_name.c: New file.
43360         * tests/unictype/test-categ_none.c: New file.
43361         * tests/unictype/test-categ_of.c: New file.
43362         * tests/unictype/test-categ_or.c: New file.
43363         * tests/unictype/test-categ_test_withtable.c: New file.
43364         * tests/unictype/test-combining.c: New file.
43365         * tests/unictype/test-decdigit.c: New file.
43366         * tests/unictype/test-digit.c: New file.
43367         * tests/unictype/test-mirror.c: New file.
43368         * tests/unictype/test-numeric.c: New file.
43369         * tests/unictype/test-pr_byname.c: New file.
43370         * tests/unictype/test-pr_test.c: New file.
43371         * tests/unictype/test-predicate-part1.h: New file.
43372         * tests/unictype/test-predicate-part2.h: New file.
43373         * tests/unictype/test-scripts.c: New file.
43374         * tests/unictype/test-sy_c_ident.c: New file.
43375         * tests/unictype/test-sy_java_ident.c: New file.
43376
43377         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43378         for Unicode 5.0.0.
43379         * tests/unictype/test-categ_Cc.c: Likewise.
43380         * tests/unictype/test-categ_Cf.c: Likewise.
43381         * tests/unictype/test-categ_Cn.c: Likewise.
43382         * tests/unictype/test-categ_Co.c: Likewise.
43383         * tests/unictype/test-categ_Cs.c: Likewise.
43384         * tests/unictype/test-categ_L.c: Likewise.
43385         * tests/unictype/test-categ_Ll.c: Likewise.
43386         * tests/unictype/test-categ_Lm.c: Likewise.
43387         * tests/unictype/test-categ_Lo.c: Likewise.
43388         * tests/unictype/test-categ_Lt.c: Likewise.
43389         * tests/unictype/test-categ_Lu.c: Likewise.
43390         * tests/unictype/test-categ_M.c: Likewise.
43391         * tests/unictype/test-categ_Mc.c: Likewise.
43392         * tests/unictype/test-categ_Me.c: Likewise.
43393         * tests/unictype/test-categ_Mn.c: Likewise.
43394         * tests/unictype/test-categ_N.c: Likewise.
43395         * tests/unictype/test-categ_Nd.c: Likewise.
43396         * tests/unictype/test-categ_Nl.c: Likewise.
43397         * tests/unictype/test-categ_No.c: Likewise.
43398         * tests/unictype/test-categ_P.c: Likewise.
43399         * tests/unictype/test-categ_Pc.c: Likewise.
43400         * tests/unictype/test-categ_Pd.c: Likewise.
43401         * tests/unictype/test-categ_Pe.c: Likewise.
43402         * tests/unictype/test-categ_Pf.c: Likewise.
43403         * tests/unictype/test-categ_Pi.c: Likewise.
43404         * tests/unictype/test-categ_Po.c: Likewise.
43405         * tests/unictype/test-categ_Ps.c: Likewise.
43406         * tests/unictype/test-categ_S.c: Likewise.
43407         * tests/unictype/test-categ_Sc.c: Likewise.
43408         * tests/unictype/test-categ_Sk.c: Likewise.
43409         * tests/unictype/test-categ_Sm.c: Likewise.
43410         * tests/unictype/test-categ_So.c: Likewise.
43411         * tests/unictype/test-categ_Z.c: Likewise.
43412         * tests/unictype/test-categ_Zl.c: Likewise.
43413         * tests/unictype/test-categ_Zp.c: Likewise.
43414         * tests/unictype/test-categ_Zs.c: Likewise.
43415         * tests/unictype/test-ctype_alnum.c: Likewise.
43416         * tests/unictype/test-ctype_alpha.c: Likewise.
43417         * tests/unictype/test-ctype_blank.c: Likewise.
43418         * tests/unictype/test-ctype_cntrl.c: Likewise.
43419         * tests/unictype/test-ctype_digit.c: Likewise.
43420         * tests/unictype/test-ctype_graph.c: Likewise.
43421         * tests/unictype/test-ctype_lower.c: Likewise.
43422         * tests/unictype/test-ctype_print.c: Likewise.
43423         * tests/unictype/test-ctype_punct.c: Likewise.
43424         * tests/unictype/test-ctype_space.c: Likewise.
43425         * tests/unictype/test-ctype_upper.c: Likewise.
43426         * tests/unictype/test-ctype_xdigit.c: Likewise.
43427         * tests/unictype/test-decdigit.h: Likewise.
43428         * tests/unictype/test-digit.h: Likewise.
43429         * tests/unictype/test-numeric.h: Likewise.
43430         * tests/unictype/test-pr_alphabetic.c: Likewise.
43431         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43432         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43433         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43434         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43435         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43436         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43437         * tests/unictype/test-pr_bidi_control.c: Likewise.
43438         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43439         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43440         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43441         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43442         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43443         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43444         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43445         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43446         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43447         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43448         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43449         * tests/unictype/test-pr_combining.c: Likewise.
43450         * tests/unictype/test-pr_composite.c: Likewise.
43451         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43452         * tests/unictype/test-pr_dash.c: Likewise.
43453         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43454         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43455         * tests/unictype/test-pr_deprecated.c: Likewise.
43456         * tests/unictype/test-pr_diacritic.c: Likewise.
43457         * tests/unictype/test-pr_extender.c: Likewise.
43458         * tests/unictype/test-pr_format_control.c: Likewise.
43459         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43460         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43461         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43462         * tests/unictype/test-pr_hex_digit.c: Likewise.
43463         * tests/unictype/test-pr_hyphen.c: Likewise.
43464         * tests/unictype/test-pr_id_continue.c: Likewise.
43465         * tests/unictype/test-pr_id_start.c: Likewise.
43466         * tests/unictype/test-pr_ideographic.c: Likewise.
43467         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43468         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43469         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43470         * tests/unictype/test-pr_iso_control.c: Likewise.
43471         * tests/unictype/test-pr_join_control.c: Likewise.
43472         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43473         * tests/unictype/test-pr_line_separator.c: Likewise.
43474         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43475         * tests/unictype/test-pr_lowercase.c: Likewise.
43476         * tests/unictype/test-pr_math.c: Likewise.
43477         * tests/unictype/test-pr_non_break.c: Likewise.
43478         * tests/unictype/test-pr_not_a_character.c: Likewise.
43479         * tests/unictype/test-pr_numeric.c: Likewise.
43480         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43481         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43482         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43483         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43484         * tests/unictype/test-pr_other_id_start.c: Likewise.
43485         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43486         * tests/unictype/test-pr_other_math.c: Likewise.
43487         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43488         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43489         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43490         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43491         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43492         * tests/unictype/test-pr_private_use.c: Likewise.
43493         * tests/unictype/test-pr_punctuation.c: Likewise.
43494         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43495         * tests/unictype/test-pr_radical.c: Likewise.
43496         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43497         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43498         * tests/unictype/test-pr_space.c: Likewise.
43499         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43500         * tests/unictype/test-pr_titlecase.c: Likewise.
43501         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43502         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43503         * tests/unictype/test-pr_uppercase.c: Likewise.
43504         * tests/unictype/test-pr_variation_selector.c: Likewise.
43505         * tests/unictype/test-pr_white_space.c: Likewise.
43506         * tests/unictype/test-pr_xid_continue.c: Likewise.
43507         * tests/unictype/test-pr_xid_start.c: Likewise.
43508         * tests/unictype/test-pr_zero_width.c: Likewise.
43509         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43510         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43511
43512 2007-11-12  Bruno Haible  <bruno@clisp.org>
43513
43514         Unicode character classification functions.
43515         * lib/unictype.h: New file.
43516         * modules/unictype/base: New file.
43517         * modules/unictype/category-L: New file.
43518         * modules/unictype/category-Lu: New file.
43519         * modules/unictype/category-Ll: New file.
43520         * modules/unictype/category-Lt: New file.
43521         * modules/unictype/category-Lm: New file.
43522         * modules/unictype/category-Lo: New file.
43523         * modules/unictype/category-M: New file.
43524         * modules/unictype/category-Mn: New file.
43525         * modules/unictype/category-Mc: New file.
43526         * modules/unictype/category-Me: New file.
43527         * modules/unictype/category-N: New file.
43528         * modules/unictype/category-Nd: New file.
43529         * modules/unictype/category-Nl: New file.
43530         * modules/unictype/category-No: New file.
43531         * modules/unictype/category-P: New file.
43532         * modules/unictype/category-Pc: New file.
43533         * modules/unictype/category-Pd: New file.
43534         * modules/unictype/category-Ps: New file.
43535         * modules/unictype/category-Pe: New file.
43536         * modules/unictype/category-Pi: New file.
43537         * modules/unictype/category-Pf: New file.
43538         * modules/unictype/category-Po: New file.
43539         * modules/unictype/category-S: New file.
43540         * modules/unictype/category-Sm: New file.
43541         * modules/unictype/category-Sc: New file.
43542         * modules/unictype/category-Sk: New file.
43543         * modules/unictype/category-So: New file.
43544         * modules/unictype/category-Z: New file.
43545         * modules/unictype/category-Zs: New file.
43546         * modules/unictype/category-Zl: New file.
43547         * modules/unictype/category-Zp: New file.
43548         * modules/unictype/category-C: New file.
43549         * modules/unictype/category-Cc: New file.
43550         * modules/unictype/category-Cf: New file.
43551         * modules/unictype/category-Cs: New file.
43552         * modules/unictype/category-Co: New file.
43553         * modules/unictype/category-Cn: New file.
43554         * modules/unictype/category-or: New file.
43555         * modules/unictype/category-of: New file.
43556         * modules/unictype/category-test: New file.
43557         * modules/unictype/category-test-withtable: New file.
43558         * modules/unictype/category-byname: New file.
43559         * modules/unictype/category-none: New file.
43560         * modules/unictype/category-and: New file.
43561         * modules/unictype/category-and-not: New file.
43562         * modules/unictype/category-name: New file.
43563         * modules/unictype/combining-class: New file.
43564         * modules/unictype/category-all: New file.
43565         * modules/unictype/bidicategory-all: New file.
43566         * modules/unictype/bidicategory-byname: New file.
43567         * modules/unictype/bidicategory-name: New file.
43568         * modules/unictype/bidicategory-of: New file.
43569         * modules/unictype/bidicategory-test: New file.
43570         * modules/unictype/decimal-digit: New file.
43571         * modules/unictype/digit: New file.
43572         * modules/unictype/numeric: New file.
43573         * modules/unictype/mirror: New file.
43574         * modules/unictype/property-white-space: New file.
43575         * modules/unictype/property-alphabetic: New file.
43576         * modules/unictype/property-other-alphabetic: New file.
43577         * modules/unictype/property-not-a-character: New file.
43578         * modules/unictype/property-default-ignorable-code-point: New file.
43579         * modules/unictype/property-other-default-ignorable-code-point: New
43580         file.
43581         * modules/unictype/property-deprecated: New file.
43582         * modules/unictype/property-logical-order-exception: New file.
43583         * modules/unictype/property-variation-selector: New file.
43584         * modules/unictype/property-private-use: New file.
43585         * modules/unictype/property-unassigned-code-value: New file.
43586         * modules/unictype/property-uppercase: New file.
43587         * modules/unictype/property-other-uppercase: New file.
43588         * modules/unictype/property-lowercase: New file.
43589         * modules/unictype/property-other-lowercase: New file.
43590         * modules/unictype/property-titlecase: New file.
43591         * modules/unictype/property-soft-dotted: New file.
43592         * modules/unictype/property-id-start: New file.
43593         * modules/unictype/property-other-id-start: New file.
43594         * modules/unictype/property-id-continue: New file.
43595         * modules/unictype/property-other-id-continue: New file.
43596         * modules/unictype/property-xid-start: New file.
43597         * modules/unictype/property-xid-continue: New file.
43598         * modules/unictype/property-pattern-white-space: New file.
43599         * modules/unictype/property-pattern-syntax: New file.
43600         * modules/unictype/property-join-control: New file.
43601         * modules/unictype/property-grapheme-base: New file.
43602         * modules/unictype/property-grapheme-extend: New file.
43603         * modules/unictype/property-other-grapheme-extend: New file.
43604         * modules/unictype/property-grapheme-link: New file.
43605         * modules/unictype/property-bidi-control: New file.
43606         * modules/unictype/property-bidi-left-to-right: New file.
43607         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43608         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43609         * modules/unictype/property-bidi-european-digit: New file.
43610         * modules/unictype/property-bidi-eur-num-separator: New file.
43611         * modules/unictype/property-bidi-eur-num-terminator: New file.
43612         * modules/unictype/property-bidi-arabic-digit: New file.
43613         * modules/unictype/property-bidi-common-separator: New file.
43614         * modules/unictype/property-bidi-block-separator: New file.
43615         * modules/unictype/property-bidi-segment-separator: New file.
43616         * modules/unictype/property-bidi-whitespace: New file.
43617         * modules/unictype/property-bidi-non-spacing-mark: New file.
43618         * modules/unictype/property-bidi-boundary-neutral: New file.
43619         * modules/unictype/property-bidi-pdf: New file.
43620         * modules/unictype/property-bidi-embedding-or-override: New file.
43621         * modules/unictype/property-bidi-other-neutral: New file.
43622         * modules/unictype/property-hex-digit: New file.
43623         * modules/unictype/property-ascii-hex-digit: New file.
43624         * modules/unictype/property-ideographic: New file.
43625         * modules/unictype/property-unified-ideograph: New file.
43626         * modules/unictype/property-radical: New file.
43627         * modules/unictype/property-ids-binary-operator: New file.
43628         * modules/unictype/property-ids-trinary-operator: New file.
43629         * modules/unictype/property-zero-width: New file.
43630         * modules/unictype/property-space: New file.
43631         * modules/unictype/property-non-break: New file.
43632         * modules/unictype/property-iso-control: New file.
43633         * modules/unictype/property-format-control: New file.
43634         * modules/unictype/property-dash: New file.
43635         * modules/unictype/property-hyphen: New file.
43636         * modules/unictype/property-punctuation: New file.
43637         * modules/unictype/property-line-separator: New file.
43638         * modules/unictype/property-paragraph-separator: New file.
43639         * modules/unictype/property-quotation-mark: New file.
43640         * modules/unictype/property-sentence-terminal: New file.
43641         * modules/unictype/property-terminal-punctuation: New file.
43642         * modules/unictype/property-currency-symbol: New file.
43643         * modules/unictype/property-math: New file.
43644         * modules/unictype/property-other-math: New file.
43645         * modules/unictype/property-paired-punctuation: New file.
43646         * modules/unictype/property-left-of-pair: New file.
43647         * modules/unictype/property-combining: New file.
43648         * modules/unictype/property-composite: New file.
43649         * modules/unictype/property-decimal-digit: New file.
43650         * modules/unictype/property-numeric: New file.
43651         * modules/unictype/property-diacritic: New file.
43652         * modules/unictype/property-extender: New file.
43653         * modules/unictype/property-ignorable-control: New file.
43654         * modules/unictype/property-test: New file.
43655         * modules/unictype/property-byname: New file.
43656         * modules/unictype/property-all: New file.
43657         * modules/unictype/scripts: New file.
43658         * modules/unictype/scripts-all: New file.
43659         * modules/unictype/block-of: New file.
43660         * modules/unictype/block-test: New file.
43661         * modules/unictype/block-list: New file.
43662         * modules/unictype/block-all: New file.
43663         * modules/unictype/syntax-c-whitespace: New file.
43664         * modules/unictype/syntax-java-whitespace: New file.
43665         * modules/unictype/syntax-c-ident: New file.
43666         * modules/unictype/syntax-java-ident: New file.
43667         * modules/unictype/ctype-alnum: New file.
43668         * modules/unictype/ctype-alpha: New file.
43669         * modules/unictype/ctype-cntrl: New file.
43670         * modules/unictype/ctype-digit: New file.
43671         * modules/unictype/ctype-graph: New file.
43672         * modules/unictype/ctype-lower: New file.
43673         * modules/unictype/ctype-print: New file.
43674         * modules/unictype/ctype-punct: New file.
43675         * modules/unictype/ctype-space: New file.
43676         * modules/unictype/ctype-upper: New file.
43677         * modules/unictype/ctype-xdigit: New file.
43678         * modules/unictype/ctype-blank: New file.
43679         * lib/unictype/bidi_byname.c: New file.
43680         * lib/unictype/bidi_name.c: New file.
43681         * lib/unictype/bidi_of.c: New file.
43682         * lib/unictype/bidi_test.c: New file.
43683         * lib/unictype/bitmap.h: New file.
43684         * lib/unictype/block_test.c: New file.
43685         * lib/unictype/blocks.c: New file.
43686         * lib/unictype/categ_C.c: New file.
43687         * lib/unictype/categ_Cc.c: New file.
43688         * lib/unictype/categ_Cf.c: New file.
43689         * lib/unictype/categ_Cn.c: New file.
43690         * lib/unictype/categ_Co.c: New file.
43691         * lib/unictype/categ_Cs.c: New file.
43692         * lib/unictype/categ_L.c: New file.
43693         * lib/unictype/categ_Ll.c: New file.
43694         * lib/unictype/categ_Lm.c: New file.
43695         * lib/unictype/categ_Lo.c: New file.
43696         * lib/unictype/categ_Lt.c: New file.
43697         * lib/unictype/categ_Lu.c: New file.
43698         * lib/unictype/categ_M.c: New file.
43699         * lib/unictype/categ_Mc.c: New file.
43700         * lib/unictype/categ_Me.c: New file.
43701         * lib/unictype/categ_Mn.c: New file.
43702         * lib/unictype/categ_N.c: New file.
43703         * lib/unictype/categ_Nd.c: New file.
43704         * lib/unictype/categ_Nl.c: New file.
43705         * lib/unictype/categ_No.c: New file.
43706         * lib/unictype/categ_P.c: New file.
43707         * lib/unictype/categ_Pc.c: New file.
43708         * lib/unictype/categ_Pd.c: New file.
43709         * lib/unictype/categ_Pe.c: New file.
43710         * lib/unictype/categ_Pf.c: New file.
43711         * lib/unictype/categ_Pi.c: New file.
43712         * lib/unictype/categ_Po.c: New file.
43713         * lib/unictype/categ_Ps.c: New file.
43714         * lib/unictype/categ_S.c: New file.
43715         * lib/unictype/categ_Sc.c: New file.
43716         * lib/unictype/categ_Sk.c: New file.
43717         * lib/unictype/categ_Sm.c: New file.
43718         * lib/unictype/categ_So.c: New file.
43719         * lib/unictype/categ_Z.c: New file.
43720         * lib/unictype/categ_Zl.c: New file.
43721         * lib/unictype/categ_Zp.c: New file.
43722         * lib/unictype/categ_Zs.c: New file.
43723         * lib/unictype/categ_and.c: New file.
43724         * lib/unictype/categ_and_not.c: New file.
43725         * lib/unictype/categ_byname.c: New file.
43726         * lib/unictype/categ_name.c: New file.
43727         * lib/unictype/categ_none.c: New file.
43728         * lib/unictype/categ_of.c: New file.
43729         * lib/unictype/categ_or.c: New file.
43730         * lib/unictype/categ_test.c: New file.
43731         * lib/unictype/combining.c: New file.
43732         * lib/unictype/ctype_alnum.c: New file.
43733         * lib/unictype/ctype_alpha.c: New file.
43734         * lib/unictype/ctype_blank.c: New file.
43735         * lib/unictype/ctype_cntrl.c: New file.
43736         * lib/unictype/ctype_digit.c: New file.
43737         * lib/unictype/ctype_graph.c: New file.
43738         * lib/unictype/ctype_lower.c: New file.
43739         * lib/unictype/ctype_print.c: New file.
43740         * lib/unictype/ctype_punct.c: New file.
43741         * lib/unictype/ctype_space.c: New file.
43742         * lib/unictype/ctype_upper.c: New file.
43743         * lib/unictype/ctype_xdigit.c: New file.
43744         * lib/unictype/decdigit.c: New file.
43745         * lib/unictype/digit.c: New file.
43746         * lib/unictype/identsyntaxmap.h: New file.
43747         * lib/unictype/mirror.c: New file.
43748         * lib/unictype/numeric.c: New file.
43749         * lib/unictype/pr_alphabetic.c: New file.
43750         * lib/unictype/pr_ascii_hex_digit.c: New file.
43751         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43752         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43753         * lib/unictype/pr_bidi_block_separator.c: New file.
43754         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43755         * lib/unictype/pr_bidi_common_separator.c: New file.
43756         * lib/unictype/pr_bidi_control.c: New file.
43757         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43758         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43759         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43760         * lib/unictype/pr_bidi_european_digit.c: New file.
43761         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43762         * lib/unictype/pr_bidi_left_to_right.c: New file.
43763         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43764         * lib/unictype/pr_bidi_other_neutral.c: New file.
43765         * lib/unictype/pr_bidi_pdf.c: New file.
43766         * lib/unictype/pr_bidi_segment_separator.c: New file.
43767         * lib/unictype/pr_bidi_whitespace.c: New file.
43768         * lib/unictype/pr_byname.c: New file.
43769         * lib/unictype/pr_byname.gperf: New file.
43770         * lib/unictype/pr_combining.c: New file.
43771         * lib/unictype/pr_composite.c: New file.
43772         * lib/unictype/pr_currency_symbol.c: New file.
43773         * lib/unictype/pr_dash.c: New file.
43774         * lib/unictype/pr_decimal_digit.c: New file.
43775         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43776         * lib/unictype/pr_deprecated.c: New file.
43777         * lib/unictype/pr_diacritic.c: New file.
43778         * lib/unictype/pr_extender.c: New file.
43779         * lib/unictype/pr_format_control.c: New file.
43780         * lib/unictype/pr_grapheme_base.c: New file.
43781         * lib/unictype/pr_grapheme_extend.c: New file.
43782         * lib/unictype/pr_grapheme_link.c: New file.
43783         * lib/unictype/pr_hex_digit.c: New file.
43784         * lib/unictype/pr_hyphen.c: New file.
43785         * lib/unictype/pr_id_continue.c: New file.
43786         * lib/unictype/pr_id_start.c: New file.
43787         * lib/unictype/pr_ideographic.c: New file.
43788         * lib/unictype/pr_ids_binary_operator.c: New file.
43789         * lib/unictype/pr_ids_trinary_operator.c: New file.
43790         * lib/unictype/pr_ignorable_control.c: New file.
43791         * lib/unictype/pr_iso_control.c: New file.
43792         * lib/unictype/pr_join_control.c: New file.
43793         * lib/unictype/pr_left_of_pair.c: New file.
43794         * lib/unictype/pr_line_separator.c: New file.
43795         * lib/unictype/pr_logical_order_exception.c: New file.
43796         * lib/unictype/pr_lowercase.c: New file.
43797         * lib/unictype/pr_math.c: New file.
43798         * lib/unictype/pr_non_break.c: New file.
43799         * lib/unictype/pr_not_a_character.c: New file.
43800         * lib/unictype/pr_numeric.c: New file.
43801         * lib/unictype/pr_other_alphabetic.c: New file.
43802         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43803         * lib/unictype/pr_other_grapheme_extend.c: New file.
43804         * lib/unictype/pr_other_id_continue.c: New file.
43805         * lib/unictype/pr_other_id_start.c: New file.
43806         * lib/unictype/pr_other_lowercase.c: New file.
43807         * lib/unictype/pr_other_math.c: New file.
43808         * lib/unictype/pr_other_uppercase.c: New file.
43809         * lib/unictype/pr_paired_punctuation.c: New file.
43810         * lib/unictype/pr_paragraph_separator.c: New file.
43811         * lib/unictype/pr_pattern_syntax.c: New file.
43812         * lib/unictype/pr_pattern_white_space.c: New file.
43813         * lib/unictype/pr_private_use.c: New file.
43814         * lib/unictype/pr_punctuation.c: New file.
43815         * lib/unictype/pr_quotation_mark.c: New file.
43816         * lib/unictype/pr_radical.c: New file.
43817         * lib/unictype/pr_sentence_terminal.c: New file.
43818         * lib/unictype/pr_soft_dotted.c: New file.
43819         * lib/unictype/pr_space.c: New file.
43820         * lib/unictype/pr_terminal_punctuation.c: New file.
43821         * lib/unictype/pr_test.c: New file.
43822         * lib/unictype/pr_titlecase.c: New file.
43823         * lib/unictype/pr_unassigned_code_value.c: New file.
43824         * lib/unictype/pr_unified_ideograph.c: New file.
43825         * lib/unictype/pr_uppercase.c: New file.
43826         * lib/unictype/pr_variation_selector.c: New file.
43827         * lib/unictype/pr_white_space.c: New file.
43828         * lib/unictype/pr_xid_continue.c: New file.
43829         * lib/unictype/pr_xid_start.c: New file.
43830         * lib/unictype/pr_zero_width.c: New file.
43831         * lib/unictype/scripts.c: New file.
43832         * lib/unictype/sy_c_ident.c: New file.
43833         * lib/unictype/sy_c_whitespace.c: New file.
43834         * lib/unictype/sy_java_ident.c: New file.
43835         * lib/unictype/sy_java_whitespace.c: New file.
43836
43837         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43838         Unicode 5.0.0.
43839         * lib/unictype/blocks.h: Likewise.
43840         * lib/unictype/categ_C.h: Likewise.
43841         * lib/unictype/categ_Cc.h: Likewise.
43842         * lib/unictype/categ_Cf.h: Likewise.
43843         * lib/unictype/categ_Cn.h: Likewise.
43844         * lib/unictype/categ_Co.h: Likewise.
43845         * lib/unictype/categ_Cs.h: Likewise.
43846         * lib/unictype/categ_L.h: Likewise.
43847         * lib/unictype/categ_Ll.h: Likewise.
43848         * lib/unictype/categ_Lm.h: Likewise.
43849         * lib/unictype/categ_Lo.h: Likewise.
43850         * lib/unictype/categ_Lt.h: Likewise.
43851         * lib/unictype/categ_Lu.h: Likewise.
43852         * lib/unictype/categ_M.h: Likewise.
43853         * lib/unictype/categ_Mc.h: Likewise.
43854         * lib/unictype/categ_Me.h: Likewise.
43855         * lib/unictype/categ_Mn.h: Likewise.
43856         * lib/unictype/categ_N.h: Likewise.
43857         * lib/unictype/categ_Nd.h: Likewise.
43858         * lib/unictype/categ_Nl.h: Likewise.
43859         * lib/unictype/categ_No.h: Likewise.
43860         * lib/unictype/categ_P.h: Likewise.
43861         * lib/unictype/categ_Pc.h: Likewise.
43862         * lib/unictype/categ_Pd.h: Likewise.
43863         * lib/unictype/categ_Pe.h: Likewise.
43864         * lib/unictype/categ_Pf.h: Likewise.
43865         * lib/unictype/categ_Pi.h: Likewise.
43866         * lib/unictype/categ_Po.h: Likewise.
43867         * lib/unictype/categ_Ps.h: Likewise.
43868         * lib/unictype/categ_S.h: Likewise.
43869         * lib/unictype/categ_Sc.h: Likewise.
43870         * lib/unictype/categ_Sk.h: Likewise.
43871         * lib/unictype/categ_Sm.h: Likewise.
43872         * lib/unictype/categ_So.h: Likewise.
43873         * lib/unictype/categ_Z.h: Likewise.
43874         * lib/unictype/categ_Zl.h: Likewise.
43875         * lib/unictype/categ_Zp.h: Likewise.
43876         * lib/unictype/categ_Zs.h: Likewise.
43877         * lib/unictype/categ_of.h: Likewise.
43878         * lib/unictype/combining.h: Likewise.
43879         * lib/unictype/ctype_alnum.h: Likewise.
43880         * lib/unictype/ctype_alpha.h: Likewise.
43881         * lib/unictype/ctype_blank.h: Likewise.
43882         * lib/unictype/ctype_cntrl.h: Likewise.
43883         * lib/unictype/ctype_digit.h: Likewise.
43884         * lib/unictype/ctype_graph.h: Likewise.
43885         * lib/unictype/ctype_lower.h: Likewise.
43886         * lib/unictype/ctype_print.h: Likewise.
43887         * lib/unictype/ctype_punct.h: Likewise.
43888         * lib/unictype/ctype_space.h: Likewise.
43889         * lib/unictype/ctype_upper.h: Likewise.
43890         * lib/unictype/ctype_xdigit.h: Likewise.
43891         * lib/unictype/decdigit.h: Likewise.
43892         * lib/unictype/digit.h: Likewise.
43893         * lib/unictype/mirror.h: Likewise.
43894         * lib/unictype/numeric.h: Likewise.
43895         * lib/unictype/pr_alphabetic.h: Likewise.
43896         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43897         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43898         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43899         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43900         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43901         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43902         * lib/unictype/pr_bidi_control.h: Likewise.
43903         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43904         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43905         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43906         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43907         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43908         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43909         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43910         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43911         * lib/unictype/pr_bidi_pdf.h: Likewise.
43912         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43913         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43914         * lib/unictype/pr_combining.h: Likewise.
43915         * lib/unictype/pr_composite.h: Likewise.
43916         * lib/unictype/pr_currency_symbol.h: Likewise.
43917         * lib/unictype/pr_dash.h: Likewise.
43918         * lib/unictype/pr_decimal_digit.h: Likewise.
43919         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43920         * lib/unictype/pr_deprecated.h: Likewise.
43921         * lib/unictype/pr_diacritic.h: Likewise.
43922         * lib/unictype/pr_extender.h: Likewise.
43923         * lib/unictype/pr_format_control.h: Likewise.
43924         * lib/unictype/pr_grapheme_base.h: Likewise.
43925         * lib/unictype/pr_grapheme_extend.h: Likewise.
43926         * lib/unictype/pr_grapheme_link.h: Likewise.
43927         * lib/unictype/pr_hex_digit.h: Likewise.
43928         * lib/unictype/pr_hyphen.h: Likewise.
43929         * lib/unictype/pr_id_continue.h: Likewise.
43930         * lib/unictype/pr_id_start.h: Likewise.
43931         * lib/unictype/pr_ideographic.h: Likewise.
43932         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43933         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43934         * lib/unictype/pr_ignorable_control.h: Likewise.
43935         * lib/unictype/pr_iso_control.h: Likewise.
43936         * lib/unictype/pr_join_control.h: Likewise.
43937         * lib/unictype/pr_left_of_pair.h: Likewise.
43938         * lib/unictype/pr_line_separator.h: Likewise.
43939         * lib/unictype/pr_logical_order_exception.h: Likewise.
43940         * lib/unictype/pr_lowercase.h: Likewise.
43941         * lib/unictype/pr_math.h: Likewise.
43942         * lib/unictype/pr_non_break.h: Likewise.
43943         * lib/unictype/pr_not_a_character.h: Likewise.
43944         * lib/unictype/pr_numeric.h: Likewise.
43945         * lib/unictype/pr_other_alphabetic.h: Likewise.
43946         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43947         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43948         * lib/unictype/pr_other_id_continue.h: Likewise.
43949         * lib/unictype/pr_other_id_start.h: Likewise.
43950         * lib/unictype/pr_other_lowercase.h: Likewise.
43951         * lib/unictype/pr_other_math.h: Likewise.
43952         * lib/unictype/pr_other_uppercase.h: Likewise.
43953         * lib/unictype/pr_paired_punctuation.h: Likewise.
43954         * lib/unictype/pr_paragraph_separator.h: Likewise.
43955         * lib/unictype/pr_pattern_syntax.h: Likewise.
43956         * lib/unictype/pr_pattern_white_space.h: Likewise.
43957         * lib/unictype/pr_private_use.h: Likewise.
43958         * lib/unictype/pr_punctuation.h: Likewise.
43959         * lib/unictype/pr_quotation_mark.h: Likewise.
43960         * lib/unictype/pr_radical.h: Likewise.
43961         * lib/unictype/pr_sentence_terminal.h: Likewise.
43962         * lib/unictype/pr_soft_dotted.h: Likewise.
43963         * lib/unictype/pr_space.h: Likewise.
43964         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43965         * lib/unictype/pr_titlecase.h: Likewise.
43966         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43967         * lib/unictype/pr_unified_ideograph.h: Likewise.
43968         * lib/unictype/pr_uppercase.h: Likewise.
43969         * lib/unictype/pr_variation_selector.h: Likewise.
43970         * lib/unictype/pr_white_space.h: Likewise.
43971         * lib/unictype/pr_xid_continue.h: Likewise.
43972         * lib/unictype/pr_xid_start.h: Likewise.
43973         * lib/unictype/pr_zero_width.h: Likewise.
43974         * lib/unictype/scripts.h: Likewise.
43975         * lib/unictype/scripts_byname.gperf: Likewise.
43976         * lib/unictype/sy_c_ident.h: Likewise.
43977         * lib/unictype/sy_c_whitespace.h: Likewise.
43978         * lib/unictype/sy_java_ident.h: Likewise.
43979         * lib/unictype/sy_java_whitespace.h: Likewise.
43980
43981         * lib/unictype/Makefile: New file.
43982         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43983         glibc.
43984         * lib/unictype/3level.h: New file, copied from glibc.
43985         * lib/unictype/3levelbit.h: New file.
43986
43987 2007-11-11  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/gperf: New file.
43990         * modules/iconv_open (Depends-on): Add it.
43991         (Makefile.am): Remove the GPERF definition.
43992
43993 2007-11-11  Bruno Haible  <bruno@clisp.org>
43994
43995         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43996         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43997
43998 2007-11-11  Bruno Haible  <bruno@clisp.org>
43999
44000         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44001         (usage): Remove function.
44002
44003 2007-11-11  Bruno Haible  <bruno@clisp.org>
44004
44005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44006         gl_FUNC_CEILF_LIBS.
44007         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44008         gl_FUNC_CEIL_LIBS.
44009         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44010         gl_FUNC_CEILL_LIBS.
44011         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44012         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44013         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44014
44015 2007-11-11  Bruno Haible  <bruno@clisp.org>
44016
44017         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44018         roundf were declared but do not exist on functions.
44019         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44020         roundl were declared but do not exist on functions.
44021         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44022         HAVE_FLOORL_AND_CEILL, respectively.
44023         Needed for Sun C on Solaris 10.
44024
44025 2007-11-11  Bruno Haible  <bruno@clisp.org>
44026
44027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44028         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44029         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44030         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44031         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44032         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44033         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44034         HAVE_DECL_ROUNDF.
44035         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44036         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44038         of HAVE_DECL_ROUND*.
44039         * modules/math (Makefile.am): Update.
44040
44041 2007-11-10  Bruno Haible  <bruno@clisp.org>
44042
44043         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44044         ptrdiff_t as m4/intl.m4.
44045
44046 2007-11-10  Jim Meyering  <meyering@redhat.com>
44047
44048         Avoid link failure for the argmatch test.
44049         * tests/test-argmatch.c (usage): Define function to avoid a link
44050         failure: argmatch_die requires a usage function.
44051
44052 2007-11-09  Bruno Haible  <bruno@clisp.org>
44053
44054         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44055         * doc/functions/vsnprintf.texi: Likewise.
44056         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44057         with a size argument < 2.
44058
44059 2007-11-09  Bruno Haible  <bruno@clisp.org>
44060
44061         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44062         buffer. Fixes an inefficiency introduced on 2007-11-03.
44063
44064 2007-11-09  Bruno Haible  <bruno@clisp.org>
44065
44066         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44067         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44068
44069 2007-11-08  Jim Meyering  <meyering@redhat.com>
44070
44071         Change cache variable name prefix "jm_" to "gl_" everywhere.
44072         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44073         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44074         * m4/uptime.m4: s/gl_/jm_/
44075
44076 2007-11-07  Bruno Haible  <bruno@clisp.org>
44077
44078         Update to GNU gettext 0.17.
44079         * m4/intl.m4: Update to GNU gettext 0.17.
44080         * m4/po.m4: Likewise.
44081         * modules/gettext (Files): Remove m4/ulonglong.m4.
44082         (configure.ac): Require gettext infrastructure from version 0.17.
44083
44084 2007-11-06  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44087         symbolic values are not defined in a public header.
44088         * lib/freadable.c (freadable) [QNX]: Likewise.
44089         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44090         * lib/freading.c (freading) [QNX]: Likewise.
44091         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44092         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44093         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44094         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44095         Reported by Alain Magloire.
44096
44097         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44098
44099 2007-11-05  Bruno Haible  <bruno@clisp.org>
44100
44101         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44102         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44103         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44104         Reported by Eric Blake.
44105
44106 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44107             Bruno Haible  <bruno@clisp.org>
44108
44109         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44110         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44111         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44112         (malloc): Undefine also before including <stdlib.h>.
44113         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44114         Needed on OSF/1 4.0.
44115
44116 2007-11-05  Jim Meyering  <meyering@redhat.com>
44117
44118         git-version-gen: sync from coreutils.
44119         * build-aux/git-version-gen: Add comments.
44120         Change the first '-' to '.' in the snapshot version string,
44121         e.g., 6.9-377-08144 -> 6.9.377-08144
44122         Remove first parameter.
44123         Don't declare a version "-dirty" merely because a time
44124         stamp has changed.
44125
44126 2007-11-04  Bruno Haible  <bruno@clisp.org>
44127
44128         * lib/lock.h: Protect all macro definitions containing an 'if'
44129         statement through a "do { ... } while (0)".
44130         * lib/tls.h: Likewise.
44131
44132 2007-11-04  Bruno Haible  <bruno@clisp.org>
44133
44134         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44135
44136 2007-11-04  Bruno Haible  <bruno@clisp.org>
44137
44138         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44139         * modules/fprintf-posix (Depends-on): Add nocrash.
44140         * modules/snprintf-posix (Depends-on): Likewise.
44141         * modules/sprintf-posix (Depends-on): Likewise.
44142         * modules/vasnprintf-posix (Depends-on): Likewise.
44143         * modules/vasprintf-posix (Depends-on): Likewise.
44144         * modules/vfprintf-posix (Depends-on): Likewise.
44145         * modules/vsnprintf-posix (Depends-on): Likewise.
44146         * modules/vsprintf-posix (Depends-on): Likewise.
44147         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44148         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44149         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44150         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44151         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44152         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44153         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44154
44155 2007-11-04  Bruno Haible  <bruno@clisp.org>
44156
44157         * modules/nocrash: New file.
44158         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44159         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44160
44161 2007-11-04  Bruno Haible  <bruno@clisp.org>
44162
44163         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44164         precision handling.
44165         * tests/test-vasprintf-posix.c (test_function): Likewise.
44166         * tests/test-snprintf-posix.h (test_function): Likewise.
44167         * tests/test-sprintf-posix.h (test_function): Likewise.
44168
44169         Fix *printf behaviour for large precisions on mingw and BeOS.
44170         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44171         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44173         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44174         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44175         gl_PRINTF_PRECISION and test its result. Invoke
44176         gl_PREREQ_VASNPRINTF_PRECISION.
44177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44183         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44184         * doc/functions/fprintf.texi: Update.
44185         * doc/functions/printf.texi: Update.
44186         * doc/functions/snprintf.texi: Update.
44187         * doc/functions/sprintf.texi: Update.
44188         * doc/functions/vfprintf.texi: Update.
44189         * doc/functions/vprintf.texi: Update.
44190         * doc/functions/vsnprintf.texi: Update.
44191         * doc/functions/vsprintf.texi: Update.
44192
44193 2007-11-04  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44196
44197 2007-11-04  Bruno Haible  <bruno@clisp.org>
44198
44199         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44200         Reported by Sylvain Beucler <beuc@gnu.org>.
44201
44202 2007-11-03  Bruno Haible  <bruno@clisp.org>
44203
44204         * tests/test-fprintf-posix2.sh: New file.
44205         * tests/test-fprintf-posix2.c: New file.
44206         * modules/fprintf-posix-tests (Files): Add them.
44207         (TESTS): Add test-fprintf-posix2.sh.
44208         (configure.ac): Check for getrlimit and setrlimit.
44209         (check_PROGRAMS): Add test-fprintf-posix2.
44210
44211         * tests/test-printf-posix2.sh: New file.
44212         * tests/test-printf-posix2.c: New file.
44213         * modules/printf-posix-tests (Files): Add them.
44214         (TESTS): Add test-printf-posix2.sh.
44215         (configure.ac): Check for getrlimit and setrlimit.
44216         (check_PROGRAMS): Add test-printf-posix2.
44217
44218         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44219         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44220         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44221         (decode_double): New function, copied from decode_long_double.
44222         (scale10_round_decimal_decoded): New function, extracted from
44223         scale10_round_decimal_long_double.
44224         (scale10_round_decimal_long_double): Use it.
44225         (scale10_round_decimal_double): New function.
44226         (floorlog10): New function.
44227         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44229         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44231         gl_PRINTF_ENOMEM and test its result. Invoke
44232         gl_PREREQ_VASNPRINTF_ENOMEM.
44233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44240         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44241         * modules/snprintf-posix (Depends-on): Likewise.
44242         * modules/sprintf-posix (Depends-on): Likewise.
44243         * modules/vasnprintf-posix (Depends-on): Likewise.
44244         * modules/vasprintf-posix (Depends-on): Likewise.
44245         * modules/vfprintf-posix (Depends-on): Likewise.
44246         * modules/vsnprintf-posix (Depends-on): Likewise.
44247         * modules/vsprintf-posix (Depends-on): Likewise.
44248         * doc/functions/fprintf.texi: Update.
44249         * doc/functions/printf.texi: Update.
44250         * doc/functions/snprintf.texi: Update.
44251         * doc/functions/sprintf.texi: Update.
44252         * doc/functions/vfprintf.texi: Update.
44253         * doc/functions/vprintf.texi: Update.
44254         * doc/functions/vsnprintf.texi: Update.
44255         * doc/functions/vsprintf.texi: Update.
44256
44257 2007-11-03  Bruno Haible  <bruno@clisp.org>
44258
44259         * modules/frexp-nolibm-tests: New file.
44260
44261         * modules/frexp-nolibm: New file.
44262         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44263
44264 2007-11-03  Bruno Haible  <bruno@clisp.org>
44265
44266         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44267         value is C99 compliant.
44268         Needed for OSF/1 5.1.
44269
44270 2007-11-03  Bruno Haible  <bruno@clisp.org>
44271
44272         Fix out-of-memory handling of vasnprintf.
44273         * lib/printf-parse.c: Include <errno.h>.
44274         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44275         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44276         is already set.
44277
44278 2007-11-02  Eric Blake  <ebb9@byu.net>
44279
44280         Fix tests on cygwin.
44281         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44282
44283 2007-11-01  Bruno Haible  <bruno@clisp.org>
44284
44285         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44286         warning.
44287         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44288         needed for POSIX compatibility.
44289
44290 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44291
44292         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44293         for compatibility with GNU.
44294
44295 2007-11-01  Bruno Haible  <bruno@clisp.org>
44296
44297         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44298         (putenv): Renamed from rpl_putenv. Change argument type from
44299         'const char *' to 'char *'.
44300         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44301         of defining putenv in config.h, just set REPLACE_PUTENV.
44302         * modules/putenv (Depends-on): Add stdlib.
44303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44304         (Include): Use <stdlib.h>.
44305         * lib/stdlib.in.h (putenv): New declaration.
44306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44307         REPLACE_PUTENV.
44308         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44309         REPLACE_PUTENV.
44310         Needed for MacOS X 10.5.0.
44311         Reported by Peter O'Gorman <peter@pogma.com>.
44312
44313 2007-11-01  Jim Meyering  <meyering@redhat.com>
44314
44315         Treat an empty date string exactly like "0".
44316         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44317         if the remaining date string (to be parsed) is empty, use "0".
44318         Reported by Mischa Molhoek and discussed in this thread:
44319         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44320
44321 2007-10-31  Bruno Haible  <bruno@clisp.org>
44322
44323         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44324         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44325         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44326         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44327         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44328         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44329
44330 2007-10-31  Bruno Haible  <bruno@clisp.org>
44331
44332         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44333         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44334         (AC_TYPE_LONG_LONG_INT): Use it.
44335         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44336         it as well.
44337         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44338         to m4/longlong.m4.
44339         * modules/stdint (Files): Remove m4/ulonglong.m4.
44340         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44341         m4/ulonglong.m4.
44342         * modules/strtoumax (Files): Likewise.
44343
44344 2007-10-30  Bruno Haible  <bruno@clisp.org>
44345
44346         * modules/xvasprintf-posix: New file.
44347         Suggested by Eric Blake.
44348
44349 2007-10-30  Bruno Haible  <bruno@clisp.org>
44350
44351         * modules/xprintf-posix-tests: New file.
44352         * tests/test-xprintf-posix.sh: New file.
44353         * tests/test-xprintf-posix.c: New file.
44354         * tests/test-xfprintf-posix.c: New file.
44355
44356         * modules/xprintf-posix: New file.
44357
44358 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44359
44360         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44361         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44362         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44363
44364 2007-10-29  Bruno Haible  <bruno@clisp.org>
44365
44366         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44367         contain the special marker '_cv_'.
44368         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44369         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44370         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44371         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44372         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44373         Reported by Ralf Wildenhues.
44374
44375 2007-10-29  Bruno Haible  <bruno@clisp.org>
44376
44377         * gnulib-tool (func_import): When --lgpl is not specified, set
44378         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44379         GPLv3.
44380         Reported by Simon Josefsson.
44381
44382 2007-10-28  Bruno Haible  <bruno@clisp.org>
44383
44384         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44385         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44386         HAVE_DECL_ISFINITE.
44387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44388         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44389         HAVE_DECL_ISFINITE.
44390
44391 2007-10-28  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44394         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44395
44396 2007-10-28  Bruno Haible  <bruno@clisp.org>
44397
44398         Fix link errors with Sun C 5.0 on Solaris 10.
44399         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44400         function is declared but not present in the compiler's libm.
44401         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44402         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44403         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44404         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44405         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44406         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44407         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44409         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44410         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44411         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44412         HAVE_DECL_FLOORL.
44413
44414 2007-10-28  Bruno Haible  <bruno@clisp.org>
44415
44416         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44417         gl_FUNC_FLOORL. Cache the result.
44418         (gl_FUNC_FLOORL): Use it.
44419         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44420         gl_FUNC_CEILL. Cache the result.
44421         (gl_FUNC_CEILL): Use it.
44422
44423         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44424         gl_FUNC_FLOOR. Cache the result.
44425         (gl_FUNC_FLOOR): Use it.
44426         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44427         gl_FUNC_CEIL. Cache the result.
44428         (gl_FUNC_CEIL): Use it.
44429
44430         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44431         gl_FUNC_FLOORF. Cache the result.
44432         (gl_FUNC_FLOORF): Use it.
44433         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44434         gl_FUNC_CEILF. Cache the result.
44435         (gl_FUNC_CEILF): Use it.
44436
44437 2007-10-28  Bruno Haible  <bruno@clisp.org>
44438
44439         * gnulib-tool: Allow specifying the LGPL version number through
44440         --lgpl=2 or --lgpl=3.
44441         (func_usage): Document --lgpl with argument.
44442         Handle --lgpl=... arguments.
44443         (func_import): Recognize also gl_LGPL calls with an argument. When
44444         --lgpl=2 is used and the module's license is just LGPL, report an
44445         error. Set sed_transform_lib_file according to the lgpl variable. In
44446         the generated files, use --lgpl or gl_LGPL invocations with argument,
44447         if necessary.
44448         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44449         an LGPv2+ license.
44450         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44451         gl_LGPL macro.
44452
44453 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44454             Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44457         (u16_uctomb_aux): Likewise.
44458         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44459         !HAVE_INLINE.
44460         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44461
44462 2007-10-28  Bruno Haible  <bruno@clisp.org>
44463
44464         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44465         Invoke AM_GETTEXT_OPTION if it exists.
44466         * modules/vasprintf: Likewise.
44467         * modules/verror: Likewise.
44468         * modules/xprintf: Likewise.
44469         * modules/xvasprintf: Likewise.
44470
44471 2007-10-27  Ben Pfaff  <blp@gnu.org>
44472
44473         * lib/math.in.h: Define isfinite macro and prototypes for
44474         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44475         implementations.
44476         * m4/math_h.m4: New substitutions for isfinite module.
44477         * lib/isfinite.c: New file.
44478         * m4/isfinite.m4: New file.
44479         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44480         * modules/isfinite: New file.
44481         * modules/isfinite-tests: New file.
44482         * tests/tests-isfinite.c: New file.
44483         * doc/functions/isfinite.texi: Mention isfinite module.
44484         * MODULES.html.sh: Mention new module.
44485
44486 2007-10-27  Ben Pfaff  <blp@gnu.org>
44487
44488         Ralf Wildenhues reported that Tru64 4.0D declares the round
44489         functions but does not have definitions.
44490         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44491         cannot be found in any library, set the output variable to
44492         "missing" instead of "".
44493         * m4/round.m4: Also use our substitute if we cannot find round in
44494         any library, even if it is declared.
44495         * m4/roundf.m4: Likewise for roundf.
44496         * m4/roundl.m4: Likewise for roundl.
44497         * lib/math.in.h: Undefine roundf, round, roundl before defining
44498         their replacements, to allow for hypothetical systems where these
44499         may be defined as macros but not available in libraries.
44500
44501 2007-10-27  Bruno Haible  <bruno@clisp.org>
44502
44503         * doc/gnulib.texi: Invoke @firstparagraphindent.
44504         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44505         changes in gnulib.
44506         (Source changes): New section.
44507
44508 2007-10-26  Bruno Haible  <bruno@clisp.org>
44509
44510         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44511         borrowed from autoconf.
44512
44513 2007-10-26  Bruno Haible  <bruno@clisp.org>
44514
44515         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44516         strerror returned the empty string. Needed on HP-UX 11.00.
44517
44518 2007-10-24  Micah Cowan  <micah@cowan.name>
44519
44520         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44521         * build-aux/bootstrap: Remove support for now-unnecessary option,
44522         --cvs-user, and envvars CVS_USER, CVS_RSH.
44523
44524 2007-10-24  Jim Meyering  <meyering@redhat.com>
44525
44526         Avoid diagnostics from sha1sum when there is no cached checksum.
44527         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44528         if the po.s1 file hasn't been created yet.
44529
44530         * build-aux/bootstrap: Sync from coreutils:
44531         2007-10-24  Jim Meyering  <meyering@redhat.com>
44532         Get gnulib from the git repository, not from an obsolete cvs one.
44533         * build-aux/bootstrap: Suggestion from Micah Cowan.
44534         2007-10-04  Jim Meyering  <jim@meyering.net>
44535         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44536         (update_po_files): Work also when there are no .po files in po/.
44537
44538 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44539
44540         * README: Append ".git" to git and cg examples.
44541         Problem reported by Benoit Sigoure.
44542
44543 2007-10-23  Micah Cowan  <micah@cowan.name>
44544
44545         * users.txt: Add wget.
44546
44547 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44548
44549         Fix linking of some unistdio tests on FreeBSD.
44550         * modules/unistdio/u16-vsnprintf-tests
44551         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44552         * modules/unistdio/u16-vsprintf-tests
44553         (test_u16_vsnprintf1_LDADD): Likewise.
44554         * modules/unistdio/u32-vsnprintf-tests
44555         (test_u32_vsnprintf1_LDADD): Likewise.
44556         * modules/unistdio/u32-vsprintf-tests
44557         (test_u32_vsprintf1_LDADD): Likewise.
44558         * modules/unistdio/u8-vsnprintf-tests
44559         (test_u8_vsnprintf1_LDADD): Likewise.
44560         * modules/unistdio/u8-vsprintf-tests
44561         (test_u8_vsprintf1_LDADD): Likewise.
44562         * modules/unistdio/ulc-vsnprintf-tests
44563         (test_ulc_vsnprintf1_LDADD): Likewise.
44564         * modules/unistdio/ulc-vsprintf-tests
44565         (test_ulc_vsprintf1_LDADD): Likewise.
44566
44567         Fix linking of some uniconv tests on FreeBSD.
44568         * modules/uniconv/u16-conv-from-enc-tests
44569         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44570         * modules/uniconv/u16-conv-to-enc-tests
44571         (test_u16_conv_to_enc_LDADD): Likewise.
44572         * modules/uniconv/u16-strconv-from-enc-tests
44573         (test_u16_strconv_from_enc_LDADD): Likewise.
44574         * modules/uniconv/u16-strconv-to-enc-tests
44575         (test_u16_strconv_to_enc_LDADD): Likewise.
44576         * modules/uniconv/u32-conv-from-enc-tests
44577         (test_u32_conv_from_enc_LDADD): Likewise.
44578         * modules/uniconv/u32-conv-to-enc-tests
44579         (test_u32_conv_to_enc_LDADD): Likewise.
44580         * modules/uniconv/u32-strconv-from-enc-tests
44581         (test_u32_strconv_from_enc_LDADD): Likewise.
44582         * modules/uniconv/u32-strconv-to-enc-tests
44583         (test_u32_strconv_to_enc_LDADD): Likewise.
44584         * modules/uniconv/u8-conv-from-enc-tests
44585         (test_u8_conv_from_enc_LDADD): Likewise.
44586         * modules/uniconv/u8-conv-to-enc-tests
44587         (test_u8_conv_to_enc_LDADD): Likewise.
44588         * modules/uniconv/u8-strconv-from-enc-tests
44589         (test_u8_strconv_from_enc_LDADD): Likewise.
44590         * modules/uniconv/u8-strconv-to-enc-tests
44591         (test_u8_strconv_to_enc_LDADD): Likewise.
44592
44593 2007-10-22  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44596         size.
44597
44598 2007-10-22  Eric Blake  <ebb9@byu.net>
44599
44600         Tweak x*printf documentation.
44601         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44602         variable name and comments.
44603         Suggested by Bruno Haible.
44604
44605 2007-10-22  Bruno Haible  <bruno@clisp.org>
44606
44607         * lib/acl.c (copy_acl): Fix file name in comment.
44608
44609 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44610
44611         Fix Tru64 problem with stdbool.h.
44612         * lib/stdbool.in.h (false, true):
44613         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44614         Don't declare as an enum in this situation; it runs afoul of Tru64.
44615         Problem reported by Steven M. Schweda in
44616         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44617
44618 2007-10-22  Eric Blake  <ebb9@byu.net>
44619
44620         Also wrap vf?printf.
44621         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44622         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44623         (xvprintf, xvfprintf): New functions.
44624
44625 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44626
44627         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44628         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44629
44630         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44631         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44632
44633 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44634
44635         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44636         by Bruno Haible.
44637
44638 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44639
44640         * lib/getloadavg.c
44641         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44642         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44643
44644         * tests/test-i-ring.c: Work for C89.
44645
44646 2007-10-22  Bruno Haible  <bruno@clisp.org>
44647
44648         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44649         -1u, in preprocessor expression, so that we don't test for the bug
44650         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44652
44653 2007-10-22  Eric Blake  <ebb9@byu.net>
44654
44655         * tests/test-yesno.sh: Silence stderr during test.
44656
44657 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44658
44659         * modules/crypto/gc-camellia: New file.
44660
44661         * m4/gc-camellia.m4: New file.
44662
44663         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44664
44665         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44666
44667 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44668
44669         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44670         --help to stdout.  Reported by sms@antinode.org (Steven
44671         M. Schweda).
44672
44673 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44674
44675         * users.txt: Fix link to libksba.
44676
44677 2007-10-21  Ben Pfaff  <blp@gnu.org>
44678
44679         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44680         round.c roundf implementation that depends on floorf and ceilf to
44681         be tested unconditionally.
44682
44683 2007-10-21  Ben Pfaff  <blp@gnu.org>
44684
44685         * m4/check-libm-func.m4: Removed.
44686         * m4/check-math-lib.m4: New file.
44687         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44688         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44689         definition and lack of AC_LIBOBJ([roundf]).
44690         * m4/roundl.m4: Ditto, and similarly for roundl.
44691         * modules/round: Reference new m4 file.
44692         * modules/roundf: Ditto.
44693         * modules/roundl: Ditto.
44694         * tests/test-round2.c (main): Use ROUND instead of round.
44695         Bug report from Bruno Haible.
44696
44697 2007-10-21  Bruno Haible  <bruno@clisp.org>
44698
44699         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44700         context.
44701
44702 2007-10-21  Bruno Haible  <bruno@clisp.org>
44703
44704         * tests/test-wcwidth.c (main): Allow negative result for some control
44705         characters.
44706
44707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44708         Needed on OSF/1 5.1.
44709
44710 2007-10-21  Bruno Haible  <bruno@clisp.org>
44711
44712         * tests/test-floorf1.c: Include isnanf.h.
44713         (main): Use isnanf() instead of isnan().
44714         * tests/test-ceilf1.c: Include isnanf.h.
44715         (main): Use isnanf() instead of isnan().
44716         * tests/test-truncf1.c: Include isnanf.h.
44717         (main): Use isnanf() instead of isnan().
44718         * tests/test-roundf1.c: Include isnanf.h.
44719         (main): Use isnanf() instead of isnan().
44720
44721 2007-10-21  Eric Blake  <ebb9@byu.net>
44722
44723         * users.txt: Update URL for m4.
44724
44725 2007-10-21  Bruno Haible  <bruno@clisp.org>
44726
44727         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44728
44729 2007-10-21  Bruno Haible  <bruno@clisp.org>
44730
44731         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44732         Git's management files if the CVS files are not present.
44733
44734 2007-10-20  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44737         gcc-3.4.x.
44738
44739 2007-10-20  Ben Pfaff  <blp@gnu.org>
44740
44741         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44742         implementations.
44743         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44744         * lib/round.c: New file.
44745         * lib/roundf.c: New file.
44746         * lib/roundl.c: New file.
44747         * m4/round.m4: New file.
44748         * m4/roundf.m4: New file.
44749         * m4/roundl.m4: New file.
44750         * m4/check-libm-func-m4: New file.
44751         * modules/math: Replace round, roundf, roundl related @VARS@ in
44752         math.in.h.
44753         * modules/round: New file.
44754         * modules/round-tests: New file.
44755         * modules/roundf: New file.
44756         * modules/roundf-tests: New file.
44757         * modules/roundl: New file.
44758         * modules/roundl-tests: New file.
44759         * tests/test-round1.c: New file.
44760         * tests/test-round2.c: New file.
44761         * tests/test-roundf1.c: New file.
44762         * tests/test-roundf2.c: New file.
44763         * tests/test-roundl.c: New file.
44764         * doc/functions/round.texi: Mention round module.
44765         * doc/functions/roundf.texi: Mention roundf module.
44766         * doc/functions/roundl.texi: Mention roundl module.
44767         * MODULES.html.sh: Mention new modules.
44768         Thanks to Bruno Haible for suggestions.
44769
44770 2007-10-20  Jim Meyering  <meyering@redhat.com>
44771
44772         * lib/xprintf.c: Include <config.h> unconditionally.
44773
44774         Change xprintf's license to GPL.
44775         * modules/xprintf (License): s/LGPL/GPL/, since this module
44776         depends on modules (exit and exitfail) which are GPL.
44777         Suggestion from Bruno Haible.
44778
44779         xprintf fixes.
44780         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44781         Use a clearer diagnostic.
44782         Patch from Bruno Haible.
44783
44784 2007-10-20  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44787         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44789
44790 2007-10-20  Bruno Haible  <bruno@clisp.org>
44791
44792         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44793         precision in the comparison result > x - 1 or similar.
44794         * tests/test-ceilf2.c (correct_result_p): Likewise.
44795         * tests/test-truncf2.c (correct_result_p): Likewise.
44796         * tests/test-trunc2.c (correct_result_p): Likewise.
44797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44798
44799 2007-10-20  Bruno Haible  <bruno@clisp.org>
44800
44801         * modules/ceil: New file.
44802         * m4/ceil.m4: New file.
44803         * doc/functions/ceil.texi: Mention the 'ceil' module.
44804
44805 2007-10-20  Bruno Haible  <bruno@clisp.org>
44806
44807         * modules/floor: New file.
44808         * m4/floor.m4: New file.
44809         * doc/functions/floor.texi: Mention the 'floor' module.
44810
44811 2007-10-20  Bruno Haible  <bruno@clisp.org>
44812
44813         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44814         of %a.
44815         * modules/floorf-tests (Depends-on): Likewise.
44816         * modules/truncf-tests (Depends-on): Likewise.
44817         * modules/trunc-tests (Depends-on): Likewise.
44818         Reported by Ben Pfaff.
44819
44820 2007-10-19  Jim Meyering  <meyering@redhat.com>
44821
44822         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44823         Don't bother testing specific errno values.  Just test ferror.
44824
44825         New module: xprintf
44826         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44827
44828 2007-10-19  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44831         syntax.
44832         * modules/javaexec (Makefile.am): Likewise.
44833         * modules/relocatable-prog (Makefile.am): Likewise.
44834         Suggested by Jim Meyering.
44835
44836 2007-10-18  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44839         Reported by Jim Meyering.
44840
44841 2007-10-18  Eric Blake  <ebb9@byu.net>
44842
44843         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44844
44845 2007-10-18  Bruno Haible  <bruno@clisp.org>
44846
44847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44848         the format string into writable memory. Needed in Fortify conditions.
44849
44850 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44851             Bruno Haible  <bruno@clisp.org>
44852
44853         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44854         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44855         * modules/trim (Depends-on): Add mbchar.
44856         (configure.ac): Add gl_FUNC_MBRTOWC.
44857         (Makefile.am): Augment lib_SOURCES.
44858
44859 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         Modify glob.c to use fstatat and dirfd, to simplify it.
44862         Suggested by Eric Blake.
44863         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44864         Don't include <stdbool.h>; not used.
44865         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44866         (link_exists_p): Simplify implementation, since we can now assume
44867         dirfd and fstatat.
44868         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44869
44870 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44871
44872         * gnulib-tool (func_get_dependencies): Fix sed script to
44873         match only tests.
44874
44875 2007-10-17  Bruno Haible  <bruno@clisp.org>
44876
44877         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44878         allow locale names without encoding suffix.
44879         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44880         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44881
44882 2007-10-16  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44885         * lib/getgroups.c (getgroups): Likewise.
44886         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44887
44888 2007-10-16  Bruno Haible  <bruno@clisp.org>
44889
44890         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44891         * modules/malloc-posix (License): Likewise.
44892         * modules/realloc-posix (License): Likewise.
44893         * modules/calloc-posix (License): Likewise.
44894         * modules/intprops (License): Change from GPL to LGPL, with
44895         Paul Eggert's approval.
44896
44897 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44898
44899         Merge glibc changes into lib/glob.c.
44900
44901         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44902         2007-10-15 04:59:03 UTC.  Here are the changes:
44903
44904         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44905
44906         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44907
44908         * lib/glob.c: Add some branch prediction throughout.
44909
44910         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44911
44912         [BZ #5103]
44913         * lib/glob.c (glob): Recognize patterns starting \/.
44914
44915         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44916
44917         [BZ #3996]
44918         * lib/glob.c (attribute_hidden): Define if not defined.
44919         (glob): Unescape dirname, filename or username when needed and not
44920         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44921         is NULL.  Handle unescaped [ in pattern without closing ].
44922         Don't pass GLOB_CHECK down to recursive glob for directories.
44923         (__glob_pattern_type): New function.
44924         (__glob_pattern_p): Implement using __glob_pattern_type.
44925         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44926         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44927         Remove unreachable code.
44928
44929         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44930
44931         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44932         explain why there are no leaks.
44933
44934         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44935
44936         [BZ #3253]
44937         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44938         time, rather allocate increasingly bigger arrays of pointers, if
44939         possible with alloca, if too large with malloc.
44940
44941 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44942
44943         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44944         Problem reported by H.Merijn Brand in
44945         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44947         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44948
44949 2007-10-15  Bruno Haible  <bruno@clisp.org>
44950
44951         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44952         with explicit rpl_ prefix.
44953         * lib/fopen.c (fopen): Likewise.
44954         * lib/freopen.c (freopen): Likewise.
44955         * lib/iconv.c (iconv): Likewise.
44956         * lib/iconv_close.c (iconv_close): Likewise.
44957
44958 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44959
44960         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44961
44962 2007-10-15  Bruno Haible  <bruno@clisp.org>
44963
44964         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44965         <stddef.h> instead of <stdlib.h> since we only need NULL.
44966         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44967
44968 2007-10-15  Bruno Haible  <bruno@clisp.org>
44969
44970         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44971         Replace paragraph talking about LIBOBJS.
44972         Reported by Colin Watson <cjwatson@debian.org>.
44973
44974 2007-10-15  Bruno Haible  <bruno@clisp.org>
44975
44976         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44977         <stdlib.h> before using NULL.
44978
44979 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44980
44981         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44982         Reported by Albert Chin <china@thewrittenword.com>.
44983
44984 2007-10-14  Bruno Haible  <bruno@clisp.org>
44985
44986         * modules/iconv_open-utf-tests: New file.
44987         * tests/test-iconv-utf.c: New file.
44988
44989         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44990         * modules/iconv_open-utf: New file.
44991         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44992         (iconv, iconv_close): New declarations.
44993         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44994         be defined.
44995         (iconv_open): Add special handling of conversion between UTF-8 and
44996         UTF-{16,32}{BE,LE}.
44997         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44998         * lib/iconv_close.c: New file.
44999         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45000         gl_FUNC_ICONV_OPEN.
45001         (gl_FUNC_ICONV_OPEN): Use it.
45002         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45003         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45004         and REPLACE_ICONV_UTF.
45005         * modules/iconv_open (Depends-on): Add c-strcase.
45006         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45007         ICONV_CONST.
45008         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45009
45010 2007-10-13  Albert Chin  <china@thewrittenword.com>
45011             Bruno Haible  <bruno@clisp.org>
45012
45013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45014         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45015
45016 2007-10-13  Bruno Haible  <bruno@clisp.org>
45017
45018         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45019         defined, use the ISO C99 inline semantics.
45020         * lib/argp.h (ARGP_EI): Likewise.
45021
45022 2007-10-13  Bruno Haible  <bruno@clisp.org>
45023
45024         Handle 'inline' change in gcc 4.3.0.
45025         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45026         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45027         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45028         argp_fmtstream_point): Disable 'extern' declaration if the function
45029         definition is going to be provided inline.
45030         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45031         semantics, not the ISO C99 inline semantics.
45032         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45033         'extern' declaration if the function definition is going to be provided
45034         inline.
45035         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45036         the GNU C inline semantics, not the ISO C99 inline semantics. With
45037         GCC 4.2, avoid a warning.
45038
45039 2007-10-13  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/freading.h (freading): Enable the use of __freading for
45042         glibc >= 2.7.
45043         * lib/freading.c (freading): Likewise.
45044
45045 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45046
45047         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45048         "warning: C99 inline functions are not supported; using GNU89".
45049
45050 2007-10-12  Bruno Haible  <bruno@clisp.org>
45051
45052         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45053         of 2.
45054         * tests/test-ceilf2.c: New file.
45055         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45056
45057         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45058         * modules/ceilf-tests: Update.
45059
45060 2007-10-12  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45063         of 2.
45064         * tests/test-floorf2.c: New file.
45065         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45066
45067         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45068         * modules/floorf-tests: Update.
45069
45070 2007-10-12  Bruno Haible  <bruno@clisp.org>
45071
45072         * tests/test-trunc2.c: New file.
45073         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45074
45075         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45076         * modules/trunc-tests: Update.
45077
45078 2007-10-12  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45081         of 2.
45082         * tests/test-truncf2.c: New file.
45083         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45084
45085         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45086         * modules/truncf-tests: Update.
45087
45088 2007-10-11  Eric Blake  <ebb9@byu.net>
45089
45090         Don't claim strerror is broken on Interix.
45091         * doc/functions/strerror.texi (strerror): Known broken systems are
45092         now Solaris 8, and not Interix.
45093         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45094         Interix on cross-compile.
45095         Reported by Martin Koeppe in
45096         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45097
45098 2007-10-11  Bruno Haible  <bruno@clisp.org>
45099
45100         * modules/i-ring-tests: New file.
45101         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45102         instead of assert.
45103
45104 2007-10-11  Bruno Haible  <bruno@clisp.org>
45105
45106         * modules/filenamecat-tests: New file.
45107         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45108         * lib/filenamecat.c: Remove test code.
45109
45110 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45111
45112         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45113
45114         * lib/strerror.c: Include <string.h> always, to test interface,
45115         and to remove the need for the dummy.
45116         Include intprops.h to compute width instead of doing it ourselves
45117         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45118         (strerror): Define it to return NULL if there's no system strerror.
45119         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45120         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45121         ancient pre-strerror Unix systems well any more.  Saying "unknown
45122         system error" is enough.
45123         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45124         simpler strerror.c implementation.
45125         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45126         Simplify the tests to reflect the simpler strerror implementation.
45127         * modules/strerror (Depends-on): Add intprops.
45128
45129 2007-10-09  Eric Blake  <ebb9@byu.net>
45130
45131         Silence test-fpending.
45132         * modules/fpending-tests (Files): Add wrapper script.
45133         * tests/test-fpending.sh: New file.
45134
45135 2007-10-09  Bruno Haible  <bruno@clisp.org>
45136
45137         * MODULES.html.sh (func_module): Don't create a hyperlink for
45138         function names like 'printf_frexp'.
45139         (Misc): Add crc, memxor.
45140         (Characteristics of floating types): New section.
45141         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45142         isnanf-nolibm, signbit, trunc, truncf, truncl.
45143         (Enhancements for ISO C 99 functions): New subsection Input/output.
45144         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45145         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45146         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45147         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45148         (Enhancements for POSIX:2001 functions): Add chdir-long.
45149         (File system functions): Add areadlink, chdir-safer, read-file.
45150         Remove cycle-check.
45151         (File system as inode set): New section.
45152         (Date and time): Add gethrxtime.
45153         (Multithreading): Add openmp.
45154         (Internationalization functions): Add localename.
45155         (Unicode string functions): Add unistr/u*-mbsnlen.
45156         (Support for maintaining and releasing projects): Add git-version-gen.
45157         (Lone files): Remove directories.
45158
45159 2007-10-08  Ben Pfaff  <blp@gnu.org>
45160
45161         * lib/xmalloca.h: Fix typo in comment.
45162
45163 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45164
45165         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45166         when avoiding problems with integer overflow.  Use a portable test
45167         instead.
45168
45169 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45170
45171         * modules/dummy (License): Change to LGPLv2+.
45172         * modules/float (License): Likewise
45173         * modules/realloc (License): Likewise
45174         * modules/stdlib (License): Likewise
45175
45176 2007-10-07  Bruno Haible  <bruno@clisp.org>
45177
45178         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45179         * floor.c (TWO_MANT_DIG): Likewise.
45180         * ceil.c (TWO_MANT_DIG): Likewise.
45181         Reported by Ben Pfaff.
45182
45183 2007-10-07  Bruno Haible  <bruno@clisp.org>
45184
45185         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45186         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45187         * lib/frexp.c (FUNC): Likewise.
45188         * lib/printf-frexp.h (printf_frexp): Likewise.
45189         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45190         * lib/printf-frexp.c (FUNC): Likewise.
45191         Suggested by Jim Meyering.
45192
45193 2007-10-07  Jim Meyering  <meyering@redhat.com>
45194
45195         Make xnanosleep's integer overflow test more robust.
45196         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45197         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45198
45199 2007-10-07  Bruno Haible  <bruno@clisp.org>
45200
45201         * NEWS: Mention the license change.
45202
45203         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45204         abbreviations in the modules files.
45205
45206         Change copyright notice from GPLv2+ to GPLv3+.
45207         * README: Change copyright notice.
45208         * MODULES.html.sh: Likewise.
45209         * build-aux/bootstrap.conf: Likewise.
45210         * build-aux/config.libpath: Likewise.
45211         * build-aux/csharpcomp.sh.in: Likewise.
45212         * build-aux/csharpexec.sh.in: Likewise.
45213         * build-aux/install-reloc: Likewise.
45214         * build-aux/javacomp.sh.in: Likewise.
45215         * build-aux/javaexec.sh.in: Likewise.
45216         * build-aux/ldd.sh.in: Likewise.
45217         * build-aux/reloc-ldflags: Likewise.
45218         * build-aux/relocatable.sh.in: Likewise.
45219         * build-aux/x-to-1.in: Likewise.
45220         * check-module: Likewise.
45221         * config/srclistvars.sh: Likewise.
45222         * gnulib-tool: Likewise.
45223         * lib/acl-internal.h: Likewise.
45224         * lib/acl.c: Likewise.
45225         * lib/acl.h: Likewise.
45226         * lib/acl_entries.c: Likewise.
45227         * lib/areadlink-with-size.c: Likewise.
45228         * lib/areadlink.c: Likewise.
45229         * lib/areadlink.h: Likewise.
45230         * lib/argmatch.c: Likewise.
45231         * lib/argmatch.h: Likewise.
45232         * lib/argp-ba.c: Likewise.
45233         * lib/argp-eexst.c: Likewise.
45234         * lib/argp-fmtstream.c: Likewise.
45235         * lib/argp-fmtstream.h: Likewise.
45236         * lib/argp-fs-xinl.c: Likewise.
45237         * lib/argp-help.c: Likewise.
45238         * lib/argp-namefrob.h: Likewise.
45239         * lib/argp-parse.c: Likewise.
45240         * lib/argp-pin.c: Likewise.
45241         * lib/argp-pv.c: Likewise.
45242         * lib/argp-pvh.c: Likewise.
45243         * lib/argp-xinl.c: Likewise.
45244         * lib/argp.h: Likewise.
45245         * lib/at-func.c: Likewise.
45246         * lib/atanl.c: Likewise.
45247         * lib/backupfile.c: Likewise.
45248         * lib/backupfile.h: Likewise.
45249         * lib/basename.c: Likewise.
45250         * lib/binary-io.h: Likewise.
45251         * lib/byteswap.in.h: Likewise.
45252         * lib/c-stack.c: Likewise.
45253         * lib/c-stack.h: Likewise.
45254         * lib/c-strcasestr.c: Likewise.
45255         * lib/c-strcasestr.h: Likewise.
45256         * lib/c-strstr.c: Likewise.
45257         * lib/c-strstr.h: Likewise.
45258         * lib/c-strtod.c: Likewise.
45259         * lib/calloc.c: Likewise.
45260         * lib/canon-host.c: Likewise.
45261         * lib/canon-host.h: Likewise.
45262         * lib/canonicalize-lgpl.c: Likewise.
45263         * lib/canonicalize.c: Likewise.
45264         * lib/canonicalize.h: Likewise.
45265         * lib/ceil.c: Likewise.
45266         * lib/ceilf.c: Likewise.
45267         * lib/ceill.c: Likewise.
45268         * lib/chdir-long.c: Likewise.
45269         * lib/chdir-long.h: Likewise.
45270         * lib/chdir-safer.c: Likewise.
45271         * lib/chdir-safer.h: Likewise.
45272         * lib/chown.c: Likewise.
45273         * lib/classpath.c: Likewise.
45274         * lib/classpath.h: Likewise.
45275         * lib/clean-temp.c: Likewise.
45276         * lib/clean-temp.h: Likewise.
45277         * lib/cloexec.c: Likewise.
45278         * lib/close-stream.c: Likewise.
45279         * lib/closein.c: Likewise.
45280         * lib/closein.h: Likewise.
45281         * lib/closeout.c: Likewise.
45282         * lib/closeout.h: Likewise.
45283         * lib/concat-filename.c: Likewise.
45284         * lib/copy-file.c: Likewise.
45285         * lib/copy-file.h: Likewise.
45286         * lib/count-one-bits.h: Likewise.
45287         * lib/crc.c: Likewise.
45288         * lib/crc.h: Likewise.
45289         * lib/creat-safer.c: Likewise.
45290         * lib/csharpcomp.c: Likewise.
45291         * lib/csharpcomp.h: Likewise.
45292         * lib/csharpexec.c: Likewise.
45293         * lib/csharpexec.h: Likewise.
45294         * lib/cycle-check.c: Likewise.
45295         * lib/cycle-check.h: Likewise.
45296         * lib/diacrit.c: Likewise.
45297         * lib/diacrit.h: Likewise.
45298         * lib/diffseq.h: Likewise.
45299         * lib/dirchownmod.c: Likewise.
45300         * lib/dirent.in.h: Likewise.
45301         * lib/dirfd.c: Likewise.
45302         * lib/dirfd.h: Likewise.
45303         * lib/dirname.c: Likewise.
45304         * lib/dirname.h: Likewise.
45305         * lib/dummy.c: Likewise.
45306         * lib/dup-safer.c: Likewise.
45307         * lib/dup2.c: Likewise.
45308         * lib/eealloc.h: Likewise.
45309         * lib/error.c: Likewise.
45310         * lib/error.h: Likewise.
45311         * lib/euidaccess.c: Likewise.
45312         * lib/exclude.c: Likewise.
45313         * lib/exclude.h: Likewise.
45314         * lib/execute.c: Likewise.
45315         * lib/execute.h: Likewise.
45316         * lib/exitfail.c: Likewise.
45317         * lib/exitfail.h: Likewise.
45318         * lib/expl.c: Likewise.
45319         * lib/fatal-signal.c: Likewise.
45320         * lib/fatal-signal.h: Likewise.
45321         * lib/fbufmode.c: Likewise.
45322         * lib/fbufmode.h: Likewise.
45323         * lib/fchdir.c: Likewise.
45324         * lib/fchmodat.c: Likewise.
45325         * lib/fchownat.c: Likewise.
45326         * lib/fcntl--.h: Likewise.
45327         * lib/fcntl-safer.h: Likewise.
45328         * lib/fcntl.in.h: Likewise.
45329         * lib/fd-safer.c: Likewise.
45330         * lib/fflush.c: Likewise.
45331         * lib/file-has-acl.c: Likewise.
45332         * lib/file-set.c: Likewise.
45333         * lib/file-type.c: Likewise.
45334         * lib/file-type.h: Likewise.
45335         * lib/fileblocks.c: Likewise.
45336         * lib/filemode.c: Likewise.
45337         * lib/filemode.h: Likewise.
45338         * lib/filename.h: Likewise.
45339         * lib/filenamecat.c: Likewise.
45340         * lib/filenamecat.h: Likewise.
45341         * lib/findprog.c: Likewise.
45342         * lib/findprog.h: Likewise.
45343         * lib/float.in.h: Likewise.
45344         * lib/floor.c: Likewise.
45345         * lib/floorf.c: Likewise.
45346         * lib/floorl.c: Likewise.
45347         * lib/fopen-safer.c: Likewise.
45348         * lib/fopen.c: Likewise.
45349         * lib/fpending.c: Likewise.
45350         * lib/fpending.h: Likewise.
45351         * lib/fprintf.c: Likewise.
45352         * lib/fprintftime.h: Likewise.
45353         * lib/fpucw.h: Likewise.
45354         * lib/fpurge.c: Likewise.
45355         * lib/fpurge.h: Likewise.
45356         * lib/freadable.c: Likewise.
45357         * lib/freadable.h: Likewise.
45358         * lib/freadahead.c: Likewise.
45359         * lib/freadahead.h: Likewise.
45360         * lib/freading.c: Likewise.
45361         * lib/freading.h: Likewise.
45362         * lib/free.c: Likewise.
45363         * lib/freopen.c: Likewise.
45364         * lib/frexp.c: Likewise.
45365         * lib/frexpl.c: Likewise.
45366         * lib/fseek.c: Likewise.
45367         * lib/fseterr.c: Likewise.
45368         * lib/fseterr.h: Likewise.
45369         * lib/fstatat.c: Likewise.
45370         * lib/fstrcmp.c: Likewise.
45371         * lib/fstrcmp.h: Likewise.
45372         * lib/fsusage.c: Likewise.
45373         * lib/fsusage.h: Likewise.
45374         * lib/ftell.c: Likewise.
45375         * lib/ftello.c: Likewise.
45376         * lib/fts-cycle.c: Likewise.
45377         * lib/fts.c: Likewise.
45378         * lib/fts_.h: Likewise.
45379         * lib/full-read.c: Likewise.
45380         * lib/full-read.h: Likewise.
45381         * lib/full-write.c: Likewise.
45382         * lib/full-write.h: Likewise.
45383         * lib/fwritable.c: Likewise.
45384         * lib/fwritable.h: Likewise.
45385         * lib/fwriteerror.c: Likewise.
45386         * lib/fwriteerror.h: Likewise.
45387         * lib/fwriting.c: Likewise.
45388         * lib/fwriting.h: Likewise.
45389         * lib/gcd.c: Likewise.
45390         * lib/gcd.h: Likewise.
45391         * lib/getcwd.c: Likewise.
45392         * lib/getdate.h: Likewise.
45393         * lib/getdate.y: Likewise.
45394         * lib/getdomainname.c: Likewise.
45395         * lib/getdomainname.h: Likewise.
45396         * lib/getgroups.c: Likewise.
45397         * lib/gethostname.c: Likewise.
45398         * lib/gethrxtime.c: Likewise.
45399         * lib/gethrxtime.h: Likewise.
45400         * lib/getloadavg.c: Likewise.
45401         * lib/getndelim2.c: Likewise.
45402         * lib/getndelim2.h: Likewise.
45403         * lib/getnline.c: Likewise.
45404         * lib/getnline.h: Likewise.
45405         * lib/getopt.c: Likewise.
45406         * lib/getopt.in.h: Likewise.
45407         * lib/getopt1.c: Likewise.
45408         * lib/getopt_int.h: Likewise.
45409         * lib/getpagesize.h: Likewise.
45410         * lib/getsubopt.c: Likewise.
45411         * lib/gettime.c: Likewise.
45412         * lib/getugroups.c: Likewise.
45413         * lib/getugroups.h: Likewise.
45414         * lib/getusershell.c: Likewise.
45415         * lib/gl_anyavltree_list1.h: Likewise.
45416         * lib/gl_anyavltree_list2.h: Likewise.
45417         * lib/gl_anyhash_list1.h: Likewise.
45418         * lib/gl_anyhash_list2.h: Likewise.
45419         * lib/gl_anylinked_list1.h: Likewise.
45420         * lib/gl_anylinked_list2.h: Likewise.
45421         * lib/gl_anyrbtree_list1.h: Likewise.
45422         * lib/gl_anyrbtree_list2.h: Likewise.
45423         * lib/gl_anytree_list1.h: Likewise.
45424         * lib/gl_anytree_list2.h: Likewise.
45425         * lib/gl_anytree_oset.h: Likewise.
45426         * lib/gl_anytreehash_list1.h: Likewise.
45427         * lib/gl_anytreehash_list2.h: Likewise.
45428         * lib/gl_array_list.c: Likewise.
45429         * lib/gl_array_list.h: Likewise.
45430         * lib/gl_array_oset.c: Likewise.
45431         * lib/gl_array_oset.h: Likewise.
45432         * lib/gl_avltree_list.c: Likewise.
45433         * lib/gl_avltree_list.h: Likewise.
45434         * lib/gl_avltree_oset.c: Likewise.
45435         * lib/gl_avltree_oset.h: Likewise.
45436         * lib/gl_avltreehash_list.c: Likewise.
45437         * lib/gl_avltreehash_list.h: Likewise.
45438         * lib/gl_carray_list.c: Likewise.
45439         * lib/gl_carray_list.h: Likewise.
45440         * lib/gl_linked_list.c: Likewise.
45441         * lib/gl_linked_list.h: Likewise.
45442         * lib/gl_linkedhash_list.c: Likewise.
45443         * lib/gl_linkedhash_list.h: Likewise.
45444         * lib/gl_list.c: Likewise.
45445         * lib/gl_list.h: Likewise.
45446         * lib/gl_oset.c: Likewise.
45447         * lib/gl_oset.h: Likewise.
45448         * lib/gl_rbtree_list.c: Likewise.
45449         * lib/gl_rbtree_list.h: Likewise.
45450         * lib/gl_rbtree_oset.c: Likewise.
45451         * lib/gl_rbtree_oset.h: Likewise.
45452         * lib/gl_rbtreehash_list.c: Likewise.
45453         * lib/gl_rbtreehash_list.h: Likewise.
45454         * lib/gl_sublist.c: Likewise.
45455         * lib/gl_sublist.h: Likewise.
45456         * lib/group-member.c: Likewise.
45457         * lib/group-member.h: Likewise.
45458         * lib/hard-locale.c: Likewise.
45459         * lib/hard-locale.h: Likewise.
45460         * lib/hash-pjw.c: Likewise.
45461         * lib/hash-pjw.h: Likewise.
45462         * lib/hash-triple.c: Likewise.
45463         * lib/hash.c: Likewise.
45464         * lib/hash.h: Likewise.
45465         * lib/human.c: Likewise.
45466         * lib/human.h: Likewise.
45467         * lib/i-ring.c: Likewise.
45468         * lib/i-ring.h: Likewise.
45469         * lib/idcache.c: Likewise.
45470         * lib/imaxabs.c: Likewise.
45471         * lib/imaxdiv.c: Likewise.
45472         * lib/inet_pton.c: Likewise.
45473         * lib/inet_pton.h: Likewise.
45474         * lib/intprops.h: Likewise.
45475         * lib/inttostr.c: Likewise.
45476         * lib/inttostr.h: Likewise.
45477         * lib/inttypes.in.h: Likewise.
45478         * lib/isapipe.c: Likewise.
45479         * lib/isdir.c: Likewise.
45480         * lib/isnan.c: Likewise.
45481         * lib/isnan.h: Likewise.
45482         * lib/isnanf.c: Likewise.
45483         * lib/isnanf.h: Likewise.
45484         * lib/isnanl-nolibm.h: Likewise.
45485         * lib/isnanl.c: Likewise.
45486         * lib/isnanl.h: Likewise.
45487         * lib/javacomp.c: Likewise.
45488         * lib/javacomp.h: Likewise.
45489         * lib/javaexec.c: Likewise.
45490         * lib/javaexec.h: Likewise.
45491         * lib/javaversion.c: Likewise.
45492         * lib/javaversion.h: Likewise.
45493         * lib/javaversion.java: Likewise.
45494         * lib/lbrkprop.h: Likewise.
45495         * lib/lchmod.h: Likewise.
45496         * lib/lchown.c: Likewise.
45497         * lib/ldexpl.c: Likewise.
45498         * lib/linebreak.c: Likewise.
45499         * lib/linebreak.h: Likewise.
45500         * lib/linebuffer.c: Likewise.
45501         * lib/linebuffer.h: Likewise.
45502         * lib/locale.in.h: Likewise.
45503         * lib/logl.c: Likewise.
45504         * lib/long-options.c: Likewise.
45505         * lib/long-options.h: Likewise.
45506         * lib/lstat.c: Likewise.
45507         * lib/lstat.h: Likewise.
45508         * lib/math.in.h: Likewise.
45509         * lib/mbchar.c: Likewise.
45510         * lib/mbchar.h: Likewise.
45511         * lib/mbfile.h: Likewise.
45512         * lib/mbiter.h: Likewise.
45513         * lib/mbscasecmp.c: Likewise.
45514         * lib/mbscasestr.c: Likewise.
45515         * lib/mbschr.c: Likewise.
45516         * lib/mbscspn.c: Likewise.
45517         * lib/mbslen.c: Likewise.
45518         * lib/mbsncasecmp.c: Likewise.
45519         * lib/mbsnlen.c: Likewise.
45520         * lib/mbspbrk.c: Likewise.
45521         * lib/mbspcasecmp.c: Likewise.
45522         * lib/mbsrchr.c: Likewise.
45523         * lib/mbssep.c: Likewise.
45524         * lib/mbsspn.c: Likewise.
45525         * lib/mbsstr.c: Likewise.
45526         * lib/mbstok_r.c: Likewise.
45527         * lib/mbswidth.c: Likewise.
45528         * lib/mbswidth.h: Likewise.
45529         * lib/mbuiter.h: Likewise.
45530         * lib/memcasecmp.c: Likewise.
45531         * lib/memcasecmp.h: Likewise.
45532         * lib/memchr.c: Likewise.
45533         * lib/memcmp.c: Likewise.
45534         * lib/memcoll.c: Likewise.
45535         * lib/memcoll.h: Likewise.
45536         * lib/memcpy.c: Likewise.
45537         * lib/memrchr.c: Likewise.
45538         * lib/mkancesdirs.c: Likewise.
45539         * lib/mkdir-p.c: Likewise.
45540         * lib/mkdir-p.h: Likewise.
45541         * lib/mkdir.c: Likewise.
45542         * lib/mkdirat.c: Likewise.
45543         * lib/mkdtemp.c: Likewise.
45544         * lib/mkstemp-safer.c: Likewise.
45545         * lib/mkstemp.c: Likewise.
45546         * lib/modechange.c: Likewise.
45547         * lib/modechange.h: Likewise.
45548         * lib/mountlist.c: Likewise.
45549         * lib/mountlist.h: Likewise.
45550         * lib/mpsort.c: Likewise.
45551         * lib/nanosleep.c: Likewise.
45552         * lib/obstack.c: Likewise.
45553         * lib/obstack.h: Likewise.
45554         * lib/open-safer.c: Likewise.
45555         * lib/open.c: Likewise.
45556         * lib/openat-die.c: Likewise.
45557         * lib/openat-priv.h: Likewise.
45558         * lib/openat-proc.c: Likewise.
45559         * lib/openat.c: Likewise.
45560         * lib/openat.h: Likewise.
45561         * lib/pagealign_alloc.c: Likewise.
45562         * lib/pagealign_alloc.h: Likewise.
45563         * lib/physmem.c: Likewise.
45564         * lib/physmem.h: Likewise.
45565         * lib/pipe-safer.c: Likewise.
45566         * lib/pipe.c: Likewise.
45567         * lib/pipe.h: Likewise.
45568         * lib/posixtm.c: Likewise.
45569         * lib/posixtm.h: Likewise.
45570         * lib/posixver.c: Likewise.
45571         * lib/printf-frexp.c: Likewise.
45572         * lib/printf-frexp.h: Likewise.
45573         * lib/printf-frexpl.c: Likewise.
45574         * lib/printf-frexpl.h: Likewise.
45575         * lib/printf.c: Likewise.
45576         * lib/progname.c: Likewise.
45577         * lib/progname.h: Likewise.
45578         * lib/progreloc.c: Likewise.
45579         * lib/putenv.c: Likewise.
45580         * lib/quote.c: Likewise.
45581         * lib/quote.h: Likewise.
45582         * lib/quotearg.c: Likewise.
45583         * lib/quotearg.h: Likewise.
45584         * lib/raise.c: Likewise.
45585         * lib/readline.c: Likewise.
45586         * lib/readline.h: Likewise.
45587         * lib/readlink.c: Likewise.
45588         * lib/readtokens.c: Likewise.
45589         * lib/readtokens.h: Likewise.
45590         * lib/readtokens0.c: Likewise.
45591         * lib/readtokens0.h: Likewise.
45592         * lib/readutmp.c: Likewise.
45593         * lib/readutmp.h: Likewise.
45594         * lib/realloc.c: Likewise.
45595         * lib/relocwrapper.c: Likewise.
45596         * lib/rename-dest-slash.c: Likewise.
45597         * lib/rename.c: Likewise.
45598         * lib/rmdir.c: Likewise.
45599         * lib/rpmatch.c: Likewise.
45600         * lib/safe-read.c: Likewise.
45601         * lib/safe-read.h: Likewise.
45602         * lib/safe-write.c: Likewise.
45603         * lib/safe-write.h: Likewise.
45604         * lib/same-inode.h: Likewise.
45605         * lib/same.c: Likewise.
45606         * lib/same.h: Likewise.
45607         * lib/save-cwd.c: Likewise.
45608         * lib/save-cwd.h: Likewise.
45609         * lib/savedir.c: Likewise.
45610         * lib/savedir.h: Likewise.
45611         * lib/savewd.c: Likewise.
45612         * lib/savewd.h: Likewise.
45613         * lib/search.in.h: Likewise.
45614         * lib/setenv.c: Likewise.
45615         * lib/setenv.h: Likewise.
45616         * lib/settime.c: Likewise.
45617         * lib/sh-quote.c: Likewise.
45618         * lib/sh-quote.h: Likewise.
45619         * lib/sig2str.c: Likewise.
45620         * lib/sig2str.h: Likewise.
45621         * lib/signal.in.h: Likewise.
45622         * lib/signbitd.c: Likewise.
45623         * lib/signbitf.c: Likewise.
45624         * lib/signbitl.c: Likewise.
45625         * lib/sigprocmask.c: Likewise.
45626         * lib/sincosl.c: Likewise.
45627         * lib/sleep.c: Likewise.
45628         * lib/sprintf.c: Likewise.
45629         * lib/sqrtl.c: Likewise.
45630         * lib/stat-time.h: Likewise.
45631         * lib/stdio--.h: Likewise.
45632         * lib/stdio-safer.h: Likewise.
45633         * lib/stdlib--.h: Likewise.
45634         * lib/stdlib-safer.h: Likewise.
45635         * lib/stdlib.in.h: Likewise.
45636         * lib/stpcpy.c: Likewise.
45637         * lib/stpncpy.c: Likewise.
45638         * lib/strchrnul.c: Likewise.
45639         * lib/strcspn.c: Likewise.
45640         * lib/strerror.c: Likewise.
45641         * lib/strftime.c: Likewise.
45642         * lib/strftime.h: Likewise.
45643         * lib/striconveh.c: Likewise.
45644         * lib/striconveh.h: Likewise.
45645         * lib/striconveha.c: Likewise.
45646         * lib/striconveha.h: Likewise.
45647         * lib/stripslash.c: Likewise.
45648         * lib/strnlen1.c: Likewise.
45649         * lib/strnlen1.h: Likewise.
45650         * lib/strtod.c: Likewise.
45651         * lib/strtoimax.c: Likewise.
45652         * lib/strtok_r.c: Likewise.
45653         * lib/strtol.c: Likewise.
45654         * lib/strtoll.c: Likewise.
45655         * lib/strtoul.c: Likewise.
45656         * lib/strtoull.c: Likewise.
45657         * lib/sysexits.in.h: Likewise.
45658         * lib/tempname.c: Likewise.
45659         * lib/tempname.h: Likewise.
45660         * lib/timespec.h: Likewise.
45661         * lib/tls.c: Likewise.
45662         * lib/tls.h: Likewise.
45663         * lib/tmpdir.c: Likewise.
45664         * lib/tmpdir.h: Likewise.
45665         * lib/tmpfile-safer.c: Likewise.
45666         * lib/tmpfile.c: Likewise.
45667         * lib/trigl.c: Likewise.
45668         * lib/trigl.h: Likewise.
45669         * lib/trim.c: Likewise.
45670         * lib/trim.h: Likewise.
45671         * lib/trunc.c: Likewise.
45672         * lib/truncf.c: Likewise.
45673         * lib/truncl.c: Likewise.
45674         * lib/tsearch.c: Likewise.
45675         * lib/unicodeio.c: Likewise.
45676         * lib/unicodeio.h: Likewise.
45677         * lib/unistd--.h: Likewise.
45678         * lib/unistd-safer.h: Likewise.
45679         * lib/unistdio/ulc-fprintf.c: Likewise.
45680         * lib/unistdio/ulc-vfprintf.c: Likewise.
45681         * lib/unlinkdir.c: Likewise.
45682         * lib/unlinkdir.h: Likewise.
45683         * lib/unlocked-io.h: Likewise.
45684         * lib/unsetenv.c: Likewise.
45685         * lib/userspec.c: Likewise.
45686         * lib/utime.c: Likewise.
45687         * lib/utimecmp.c: Likewise.
45688         * lib/utimecmp.h: Likewise.
45689         * lib/utimens.c: Likewise.
45690         * lib/verify.h: Likewise.
45691         * lib/verror.c: Likewise.
45692         * lib/verror.h: Likewise.
45693         * lib/version-etc-fsf.c: Likewise.
45694         * lib/version-etc.c: Likewise.
45695         * lib/version-etc.h: Likewise.
45696         * lib/vfprintf.c: Likewise.
45697         * lib/vprintf.c: Likewise.
45698         * lib/vsprintf.c: Likewise.
45699         * lib/w32spawn.h: Likewise.
45700         * lib/wait-process.c: Likewise.
45701         * lib/wait-process.h: Likewise.
45702         * lib/wcwidth.c: Likewise.
45703         * lib/write-any-file.c: Likewise.
45704         * lib/xalloc-die.c: Likewise.
45705         * lib/xalloc.h: Likewise.
45706         * lib/xasprintf.c: Likewise.
45707         * lib/xgetcwd.c: Likewise.
45708         * lib/xgetcwd.h: Likewise.
45709         * lib/xgetdomainname.c: Likewise.
45710         * lib/xgetdomainname.h: Likewise.
45711         * lib/xgethostname.c: Likewise.
45712         * lib/xmalloc.c: Likewise.
45713         * lib/xmalloca.c: Likewise.
45714         * lib/xmalloca.h: Likewise.
45715         * lib/xmemcoll.c: Likewise.
45716         * lib/xnanosleep.c: Likewise.
45717         * lib/xreadlink.c: Likewise.
45718         * lib/xreadlink.h: Likewise.
45719         * lib/xsetenv.c: Likewise.
45720         * lib/xsetenv.h: Likewise.
45721         * lib/xstriconv.c: Likewise.
45722         * lib/xstriconv.h: Likewise.
45723         * lib/xstrndup.c: Likewise.
45724         * lib/xstrndup.h: Likewise.
45725         * lib/xstrtod.c: Likewise.
45726         * lib/xstrtod.h: Likewise.
45727         * lib/xstrtol-error.c: Likewise.
45728         * lib/xstrtol.c: Likewise.
45729         * lib/xstrtol.h: Likewise.
45730         * lib/xtime.h: Likewise.
45731         * lib/xvasprintf.c: Likewise.
45732         * lib/xvasprintf.h: Likewise.
45733         * lib/yesno.c: Likewise.
45734         * lib/yesno.h: Likewise.
45735         * posix-modules: Likewise.
45736         * tests/test-alloca-opt.c: Likewise.
45737         * tests/test-arcfour.c: Likewise.
45738         * tests/test-arctwo.c: Likewise.
45739         * tests/test-argmatch.c: Likewise.
45740         * tests/test-argp-2.sh: Likewise.
45741         * tests/test-argp.c: Likewise.
45742         * tests/test-arpa_inet.c: Likewise.
45743         * tests/test-array_list.c: Likewise.
45744         * tests/test-array_oset.c: Likewise.
45745         * tests/test-atexit.c: Likewise.
45746         * tests/test-avltree_list.c: Likewise.
45747         * tests/test-avltree_oset.c: Likewise.
45748         * tests/test-avltreehash_list.c: Likewise.
45749         * tests/test-base64.c: Likewise.
45750         * tests/test-binary-io.c: Likewise.
45751         * tests/test-byteswap.c: Likewise.
45752         * tests/test-c-ctype.c: Likewise.
45753         * tests/test-c-strcasecmp.c: Likewise.
45754         * tests/test-c-strcasestr.c: Likewise.
45755         * tests/test-c-strncasecmp.c: Likewise.
45756         * tests/test-c-strstr.c: Likewise.
45757         * tests/test-canonicalize-lgpl.c: Likewise.
45758         * tests/test-canonicalize.c: Likewise.
45759         * tests/test-carray_list.c: Likewise.
45760         * tests/test-ceilf.c: Likewise.
45761         * tests/test-ceill.c: Likewise.
45762         * tests/test-count-one-bits.c: Likewise.
45763         * tests/test-crc.c: Likewise.
45764         * tests/test-dirname.c: Likewise.
45765         * tests/test-fbufmode.c: Likewise.
45766         * tests/test-fcntl.c: Likewise.
45767         * tests/test-fflush.c: Likewise.
45768         * tests/test-floorf.c: Likewise.
45769         * tests/test-floorl.c: Likewise.
45770         * tests/test-fopen.c: Likewise.
45771         * tests/test-fprintf-posix.c: Likewise.
45772         * tests/test-fprintf-posix.h: Likewise.
45773         * tests/test-fpurge.c: Likewise.
45774         * tests/test-freadable.c: Likewise.
45775         * tests/test-freadahead.c: Likewise.
45776         * tests/test-freading.c: Likewise.
45777         * tests/test-freopen.c: Likewise.
45778         * tests/test-frexp.c: Likewise.
45779         * tests/test-frexpl.c: Likewise.
45780         * tests/test-fseek.c: Likewise.
45781         * tests/test-fseeko.c: Likewise.
45782         * tests/test-fseterr.c: Likewise.
45783         * tests/test-fstrcmp.c: Likewise.
45784         * tests/test-ftell.c: Likewise.
45785         * tests/test-ftello.c: Likewise.
45786         * tests/test-fwritable.c: Likewise.
45787         * tests/test-fwriting.c: Likewise.
45788         * tests/test-getaddrinfo.c: Likewise.
45789         * tests/test-getpass.c: Likewise.
45790         * tests/test-gettimeofday.c: Likewise.
45791         * tests/test-hmac-md5.c: Likewise.
45792         * tests/test-hmac-sha1.c: Likewise.
45793         * tests/test-iconv.c: Likewise.
45794         * tests/test-iconvme.c: Likewise.
45795         * tests/test-inttypes.c: Likewise.
45796         * tests/test-isnan.c: Likewise.
45797         * tests/test-isnanf.c: Likewise.
45798         * tests/test-isnanl-nolibm.c: Likewise.
45799         * tests/test-isnanl.c: Likewise.
45800         * tests/test-isnanl.h: Likewise.
45801         * tests/test-ldexpl.c: Likewise.
45802         * tests/test-linked_list.c: Likewise.
45803         * tests/test-linkedhash_list.c: Likewise.
45804         * tests/test-locale.c: Likewise.
45805         * tests/test-localename.c: Likewise.
45806         * tests/test-lock.c: Likewise.
45807         * tests/test-lseek.c: Likewise.
45808         * tests/test-malloca.c: Likewise.
45809         * tests/test-math.c: Likewise.
45810         * tests/test-mbscasecmp.c: Likewise.
45811         * tests/test-mbscasestr1.c: Likewise.
45812         * tests/test-mbscasestr2.c: Likewise.
45813         * tests/test-mbscasestr3.c: Likewise.
45814         * tests/test-mbscasestr4.c: Likewise.
45815         * tests/test-mbschr.c: Likewise.
45816         * tests/test-mbscspn.c: Likewise.
45817         * tests/test-mbsncasecmp.c: Likewise.
45818         * tests/test-mbspbrk.c: Likewise.
45819         * tests/test-mbspcasecmp.c: Likewise.
45820         * tests/test-mbsrchr.c: Likewise.
45821         * tests/test-mbsspn.c: Likewise.
45822         * tests/test-mbsstr1.c: Likewise.
45823         * tests/test-mbsstr2.c: Likewise.
45824         * tests/test-mbsstr3.c: Likewise.
45825         * tests/test-md5.c: Likewise.
45826         * tests/test-memmem.c: Likewise.
45827         * tests/test-netinet_in.c: Likewise.
45828         * tests/test-open.c: Likewise.
45829         * tests/test-printf-frexp.c: Likewise.
45830         * tests/test-printf-frexpl.c: Likewise.
45831         * tests/test-printf-posix.c: Likewise.
45832         * tests/test-printf-posix.h: Likewise.
45833         * tests/test-rbtree_list.c: Likewise.
45834         * tests/test-rbtree_oset.c: Likewise.
45835         * tests/test-rbtreehash_list.c: Likewise.
45836         * tests/test-read-file.c: Likewise.
45837         * tests/test-rijndael.c: Likewise.
45838         * tests/test-search.c: Likewise.
45839         * tests/test-signbit.c: Likewise.
45840         * tests/test-sleep.c: Likewise.
45841         * tests/test-snprintf-posix.c: Likewise.
45842         * tests/test-snprintf-posix.h: Likewise.
45843         * tests/test-snprintf.c: Likewise.
45844         * tests/test-sprintf-posix.c: Likewise.
45845         * tests/test-sprintf-posix.h: Likewise.
45846         * tests/test-stat-time.c: Likewise.
45847         * tests/test-stdbool.c: Likewise.
45848         * tests/test-stdint.c: Likewise.
45849         * tests/test-stdio.c: Likewise.
45850         * tests/test-stdlib.c: Likewise.
45851         * tests/test-stpncpy.c: Likewise.
45852         * tests/test-strcasestr.c: Likewise.
45853         * tests/test-striconv.c: Likewise.
45854         * tests/test-striconveh.c: Likewise.
45855         * tests/test-striconveha.c: Likewise.
45856         * tests/test-string.c: Likewise.
45857         * tests/test-sys_select.c: Likewise.
45858         * tests/test-sys_socket.c: Likewise.
45859         * tests/test-sys_stat.c: Likewise.
45860         * tests/test-sys_time.c: Likewise.
45861         * tests/test-sysexits.c: Likewise.
45862         * tests/test-time.c: Likewise.
45863         * tests/test-tls.c: Likewise.
45864         * tests/test-trunc.c: Likewise.
45865         * tests/test-truncf.c: Likewise.
45866         * tests/test-truncl.c: Likewise.
45867         * tests/test-unistd.c: Likewise.
45868         * tests/test-vasnprintf-posix.c: Likewise.
45869         * tests/test-vasnprintf-posix2.c: Likewise.
45870         * tests/test-vasnprintf.c: Likewise.
45871         * tests/test-vasprintf-posix.c: Likewise.
45872         * tests/test-vasprintf.c: Likewise.
45873         * tests/test-verify.c: Likewise.
45874         * tests/test-vfprintf-posix.c: Likewise.
45875         * tests/test-vprintf-posix.c: Likewise.
45876         * tests/test-vsnprintf-posix.c: Likewise.
45877         * tests/test-vsnprintf.c: Likewise.
45878         * tests/test-vsprintf-posix.c: Likewise.
45879         * tests/test-wchar.c: Likewise.
45880         * tests/test-wctype.c: Likewise.
45881         * tests/test-wcwidth.c: Likewise.
45882         * tests/test-xstrtol.c: Likewise.
45883         * tests/test-xvasprintf.c: Likewise.
45884         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45885         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45886         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45887         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45888         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45889         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45890         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45891         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45892         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45893         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45894         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45895         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45896         * tests/uniname/test-uninames.c: Likewise.
45897         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45898         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45899         * tests/unistdio/test-u16-printf1.h: Likewise.
45900         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45901         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45902         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45903         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45904         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45905         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45906         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45907         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45908         * tests/unistdio/test-u32-printf1.h: Likewise.
45909         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45910         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45911         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45912         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45913         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45914         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45915         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45916         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45917         * tests/unistdio/test-u8-printf1.h: Likewise.
45918         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45919         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45920         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45921         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45922         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45923         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45924         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45925         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45926         * tests/unistdio/test-ulc-printf1.h: Likewise.
45927         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45928         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45929         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45930         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45931         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45932         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45933         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45934         * tests/uniwidth/test-u16-width.c: Likewise.
45935         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45936         * tests/uniwidth/test-u32-width.c: Likewise.
45937         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45938         * tests/uniwidth/test-u8-width.c: Likewise.
45939         * tests/uniwidth/test-uc_width.c: Likewise.
45940         * config/srclist-update: Likewise.
45941         (fixlicense): Update to GPLv3+.
45942
45943         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45944         * tests/test-tsearch.c: Change copyright notice.
45945
45946         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45947         * lib/c-strcaseeq.h: Change copyright notice.
45948         * lib/streq.h: Likewise.
45949         * lib/uniconv.h: Likewise.
45950         * lib/uniconv/u-conv-from-enc.h: Likewise.
45951         * lib/uniconv/u-conv-to-enc.h: Likewise.
45952         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45953         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45954         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45955         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45956         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45957         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45958         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45959         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45960         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45961         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45962         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45963         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45964         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45965         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45966         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45967         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45968         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45969         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45970         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45971         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45972         * lib/uniname.h: Likewise.
45973         * lib/uniname/uniname.c: Likewise.
45974         * lib/unistdio.h: Likewise.
45975         * lib/unistdio/u-asnprintf.h: Likewise.
45976         * lib/unistdio/u-asprintf.h: Likewise.
45977         * lib/unistdio/u-printf-args.c: Likewise.
45978         * lib/unistdio/u-printf-args.h: Likewise.
45979         * lib/unistdio/u-printf-parse.h: Likewise.
45980         * lib/unistdio/u-snprintf.h: Likewise.
45981         * lib/unistdio/u-sprintf.h: Likewise.
45982         * lib/unistdio/u-vasprintf.h: Likewise.
45983         * lib/unistdio/u-vsnprintf.h: Likewise.
45984         * lib/unistdio/u-vsprintf.h: Likewise.
45985         * lib/unistdio/u16-asnprintf.c: Likewise.
45986         * lib/unistdio/u16-asprintf.c: Likewise.
45987         * lib/unistdio/u16-printf-parse.c: Likewise.
45988         * lib/unistdio/u16-snprintf.c: Likewise.
45989         * lib/unistdio/u16-sprintf.c: Likewise.
45990         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45991         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45992         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45993         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45994         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45995         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45996         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45997         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45998         * lib/unistdio/u16-vasnprintf.c: Likewise.
45999         * lib/unistdio/u16-vasprintf.c: Likewise.
46000         * lib/unistdio/u16-vsnprintf.c: Likewise.
46001         * lib/unistdio/u16-vsprintf.c: Likewise.
46002         * lib/unistdio/u32-asnprintf.c: Likewise.
46003         * lib/unistdio/u32-asprintf.c: Likewise.
46004         * lib/unistdio/u32-printf-parse.c: Likewise.
46005         * lib/unistdio/u32-snprintf.c: Likewise.
46006         * lib/unistdio/u32-sprintf.c: Likewise.
46007         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46008         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46009         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46010         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46011         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46012         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46013         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46014         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46015         * lib/unistdio/u32-vasnprintf.c: Likewise.
46016         * lib/unistdio/u32-vasprintf.c: Likewise.
46017         * lib/unistdio/u32-vsnprintf.c: Likewise.
46018         * lib/unistdio/u32-vsprintf.c: Likewise.
46019         * lib/unistdio/u8-asnprintf.c: Likewise.
46020         * lib/unistdio/u8-asprintf.c: Likewise.
46021         * lib/unistdio/u8-printf-parse.c: Likewise.
46022         * lib/unistdio/u8-snprintf.c: Likewise.
46023         * lib/unistdio/u8-sprintf.c: Likewise.
46024         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46025         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46026         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46027         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46028         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46029         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46030         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46031         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46032         * lib/unistdio/u8-vasnprintf.c: Likewise.
46033         * lib/unistdio/u8-vasprintf.c: Likewise.
46034         * lib/unistdio/u8-vsnprintf.c: Likewise.
46035         * lib/unistdio/u8-vsprintf.c: Likewise.
46036         * lib/unistdio/ulc-asnprintf.c: Likewise.
46037         * lib/unistdio/ulc-asprintf.c: Likewise.
46038         * lib/unistdio/ulc-printf-parse.c: Likewise.
46039         * lib/unistdio/ulc-snprintf.c: Likewise.
46040         * lib/unistdio/ulc-sprintf.c: Likewise.
46041         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46042         * lib/unistdio/ulc-vasprintf.c: Likewise.
46043         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46044         * lib/unistdio/ulc-vsprintf.c: Likewise.
46045         * lib/unistr.h: Likewise.
46046         * lib/unistr/u-cpy-alloc.h: Likewise.
46047         * lib/unistr/u-cpy.h: Likewise.
46048         * lib/unistr/u-endswith.h: Likewise.
46049         * lib/unistr/u-move.h: Likewise.
46050         * lib/unistr/u-set.h: Likewise.
46051         * lib/unistr/u-startswith.h: Likewise.
46052         * lib/unistr/u-stpcpy.h: Likewise.
46053         * lib/unistr/u-stpncpy.h: Likewise.
46054         * lib/unistr/u-strcat.h: Likewise.
46055         * lib/unistr/u-strcpy.h: Likewise.
46056         * lib/unistr/u-strcspn.h: Likewise.
46057         * lib/unistr/u-strdup.h: Likewise.
46058         * lib/unistr/u-strlen.h: Likewise.
46059         * lib/unistr/u-strncat.h: Likewise.
46060         * lib/unistr/u-strncpy.h: Likewise.
46061         * lib/unistr/u-strnlen.h: Likewise.
46062         * lib/unistr/u-strpbrk.h: Likewise.
46063         * lib/unistr/u-strspn.h: Likewise.
46064         * lib/unistr/u-strstr.h: Likewise.
46065         * lib/unistr/u-strtok.h: Likewise.
46066         * lib/unistr/u16-check.c: Likewise.
46067         * lib/unistr/u16-chr.c: Likewise.
46068         * lib/unistr/u16-cmp.c: Likewise.
46069         * lib/unistr/u16-cpy-alloc.c: Likewise.
46070         * lib/unistr/u16-cpy.c: Likewise.
46071         * lib/unistr/u16-endswith.c: Likewise.
46072         * lib/unistr/u16-mblen.c: Likewise.
46073         * lib/unistr/u16-mbsnlen.c: Likewise.
46074         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46075         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46076         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46077         * lib/unistr/u16-mbtouc.c: Likewise.
46078         * lib/unistr/u16-mbtoucr.c: Likewise.
46079         * lib/unistr/u16-move.c: Likewise.
46080         * lib/unistr/u16-next.c: Likewise.
46081         * lib/unistr/u16-prev.c: Likewise.
46082         * lib/unistr/u16-set.c: Likewise.
46083         * lib/unistr/u16-startswith.c: Likewise.
46084         * lib/unistr/u16-stpcpy.c: Likewise.
46085         * lib/unistr/u16-stpncpy.c: Likewise.
46086         * lib/unistr/u16-strcat.c: Likewise.
46087         * lib/unistr/u16-strchr.c: Likewise.
46088         * lib/unistr/u16-strcmp.c: Likewise.
46089         * lib/unistr/u16-strcpy.c: Likewise.
46090         * lib/unistr/u16-strcspn.c: Likewise.
46091         * lib/unistr/u16-strdup.c: Likewise.
46092         * lib/unistr/u16-strlen.c: Likewise.
46093         * lib/unistr/u16-strmblen.c: Likewise.
46094         * lib/unistr/u16-strmbtouc.c: Likewise.
46095         * lib/unistr/u16-strncat.c: Likewise.
46096         * lib/unistr/u16-strncmp.c: Likewise.
46097         * lib/unistr/u16-strncpy.c: Likewise.
46098         * lib/unistr/u16-strnlen.c: Likewise.
46099         * lib/unistr/u16-strpbrk.c: Likewise.
46100         * lib/unistr/u16-strrchr.c: Likewise.
46101         * lib/unistr/u16-strspn.c: Likewise.
46102         * lib/unistr/u16-strstr.c: Likewise.
46103         * lib/unistr/u16-strtok.c: Likewise.
46104         * lib/unistr/u16-to-u32.c: Likewise.
46105         * lib/unistr/u16-to-u8.c: Likewise.
46106         * lib/unistr/u16-uctomb-aux.c: Likewise.
46107         * lib/unistr/u16-uctomb.c: Likewise.
46108         * lib/unistr/u32-check.c: Likewise.
46109         * lib/unistr/u32-chr.c: Likewise.
46110         * lib/unistr/u32-cmp.c: Likewise.
46111         * lib/unistr/u32-cpy-alloc.c: Likewise.
46112         * lib/unistr/u32-cpy.c: Likewise.
46113         * lib/unistr/u32-endswith.c: Likewise.
46114         * lib/unistr/u32-mblen.c: Likewise.
46115         * lib/unistr/u32-mbsnlen.c: Likewise.
46116         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46117         * lib/unistr/u32-mbtouc.c: Likewise.
46118         * lib/unistr/u32-mbtoucr.c: Likewise.
46119         * lib/unistr/u32-move.c: Likewise.
46120         * lib/unistr/u32-next.c: Likewise.
46121         * lib/unistr/u32-prev.c: Likewise.
46122         * lib/unistr/u32-set.c: Likewise.
46123         * lib/unistr/u32-startswith.c: Likewise.
46124         * lib/unistr/u32-stpcpy.c: Likewise.
46125         * lib/unistr/u32-stpncpy.c: Likewise.
46126         * lib/unistr/u32-strcat.c: Likewise.
46127         * lib/unistr/u32-strchr.c: Likewise.
46128         * lib/unistr/u32-strcmp.c: Likewise.
46129         * lib/unistr/u32-strcpy.c: Likewise.
46130         * lib/unistr/u32-strcspn.c: Likewise.
46131         * lib/unistr/u32-strdup.c: Likewise.
46132         * lib/unistr/u32-strlen.c: Likewise.
46133         * lib/unistr/u32-strmblen.c: Likewise.
46134         * lib/unistr/u32-strmbtouc.c: Likewise.
46135         * lib/unistr/u32-strncat.c: Likewise.
46136         * lib/unistr/u32-strncmp.c: Likewise.
46137         * lib/unistr/u32-strncpy.c: Likewise.
46138         * lib/unistr/u32-strnlen.c: Likewise.
46139         * lib/unistr/u32-strpbrk.c: Likewise.
46140         * lib/unistr/u32-strrchr.c: Likewise.
46141         * lib/unistr/u32-strspn.c: Likewise.
46142         * lib/unistr/u32-strstr.c: Likewise.
46143         * lib/unistr/u32-strtok.c: Likewise.
46144         * lib/unistr/u32-to-u16.c: Likewise.
46145         * lib/unistr/u32-to-u8.c: Likewise.
46146         * lib/unistr/u32-uctomb.c: Likewise.
46147         * lib/unistr/u8-check.c: Likewise.
46148         * lib/unistr/u8-chr.c: Likewise.
46149         * lib/unistr/u8-cmp.c: Likewise.
46150         * lib/unistr/u8-cpy-alloc.c: Likewise.
46151         * lib/unistr/u8-cpy.c: Likewise.
46152         * lib/unistr/u8-endswith.c: Likewise.
46153         * lib/unistr/u8-mblen.c: Likewise.
46154         * lib/unistr/u8-mbsnlen.c: Likewise.
46155         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46156         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46157         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46158         * lib/unistr/u8-mbtouc.c: Likewise.
46159         * lib/unistr/u8-mbtoucr.c: Likewise.
46160         * lib/unistr/u8-move.c: Likewise.
46161         * lib/unistr/u8-next.c: Likewise.
46162         * lib/unistr/u8-prev.c: Likewise.
46163         * lib/unistr/u8-set.c: Likewise.
46164         * lib/unistr/u8-startswith.c: Likewise.
46165         * lib/unistr/u8-stpcpy.c: Likewise.
46166         * lib/unistr/u8-stpncpy.c: Likewise.
46167         * lib/unistr/u8-strcat.c: Likewise.
46168         * lib/unistr/u8-strchr.c: Likewise.
46169         * lib/unistr/u8-strcmp.c: Likewise.
46170         * lib/unistr/u8-strcpy.c: Likewise.
46171         * lib/unistr/u8-strcspn.c: Likewise.
46172         * lib/unistr/u8-strdup.c: Likewise.
46173         * lib/unistr/u8-strlen.c: Likewise.
46174         * lib/unistr/u8-strmblen.c: Likewise.
46175         * lib/unistr/u8-strmbtouc.c: Likewise.
46176         * lib/unistr/u8-strncat.c: Likewise.
46177         * lib/unistr/u8-strncmp.c: Likewise.
46178         * lib/unistr/u8-strncpy.c: Likewise.
46179         * lib/unistr/u8-strnlen.c: Likewise.
46180         * lib/unistr/u8-strpbrk.c: Likewise.
46181         * lib/unistr/u8-strrchr.c: Likewise.
46182         * lib/unistr/u8-strspn.c: Likewise.
46183         * lib/unistr/u8-strstr.c: Likewise.
46184         * lib/unistr/u8-strtok.c: Likewise.
46185         * lib/unistr/u8-to-u16.c: Likewise.
46186         * lib/unistr/u8-to-u32.c: Likewise.
46187         * lib/unistr/u8-uctomb-aux.c: Likewise.
46188         * lib/unistr/u8-uctomb.c: Likewise.
46189         * lib/unitypes.h: Likewise.
46190         * lib/uniwidth.h: Likewise.
46191         * lib/uniwidth/cjk.h: Likewise.
46192         * lib/uniwidth/u16-strwidth.c: Likewise.
46193         * lib/uniwidth/u16-width.c: Likewise.
46194         * lib/uniwidth/u32-strwidth.c: Likewise.
46195         * lib/uniwidth/u32-width.c: Likewise.
46196         * lib/uniwidth/u8-strwidth.c: Likewise.
46197         * lib/uniwidth/u8-width.c: Likewise.
46198         * lib/uniwidth/width.c: Likewise.
46199
46200 2007-10-07  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46203         The file is still under LGPL (see modules/inttypes).
46204
46205 2007-10-06  Bruno Haible  <bruno@clisp.org>
46206
46207         * modules/trunc (Dependencies): Add 'extensions'.
46208         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46209         Reported by Ben Pfaff <blp@gnu.org>.
46210
46211 2007-10-06  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/freopen-tests: New file.
46214         * tests/test-freopen.c: New file.
46215
46216         * modules/fopen-tests: New file.
46217         * tests/test-fopen.c: New file.
46218
46219         * modules/fopen: New file.
46220         * lib/fopen.c: New file.
46221         * m4/fopen.m4: New file.
46222         * modules/freopen: New file.
46223         * lib/freopen.c: New file.
46224         * m4/freopen.m4: New file.
46225         * lib/stdio.in.h (fopen, freopen): New declarations.
46226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46227         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46228         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46229         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46230         * doc/functions/fopen.texi: Mention the 'fopen' module.
46231         * doc/functions/freopen.texi: Mention the 'freopen' module.
46232
46233 2007-10-06  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/open-tests: New file.
46236         * tests/test-open.c: New file.
46237
46238         * modules/open: New file.
46239         * lib/open.c: New file.
46240         * m4/open.m4: New file.
46241         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46242         lib/open.c does.
46243         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46244         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46245         macros.
46246         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46247         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46248         REPLACE_OPEN.
46249         * doc/functions/open.texi: Mention the 'open' module.
46250
46251 2007-10-04  Bruno Haible  <bruno@clisp.org>
46252
46253         * modules/ceill-tests: New file.
46254         * tests/test-ceill.c: New file.
46255
46256         * modules/ceill: New file.
46257         * lib/ceill.c: Replace entire file.
46258         * m4/ceill.m4: New file.
46259         * lib/math.in.h (ceill): Replace declaration.
46260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46261         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46262         * doc/functions/ceill.texi: Mention the 'ceill' module.
46263         * modules/mathl (Files): Remove lib/ceill.c.
46264         (Depends-on): Add ceill.
46265
46266 2007-10-04  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/ceilf-tests: New file.
46269         * tests/test-ceilf.c: New file.
46270
46271         * modules/ceilf: New file.
46272         * lib/ceil.c: New file.
46273         * lib/ceilf.c: New file.
46274         * m4/ceilf.m4: New file.
46275         * lib/math.in.h (ceilf): New declaration.
46276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46277         HAVE_DECL_CEILF.
46278         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46279         HAVE_DECL_CEILF.
46280         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46281
46282 2007-10-04  Bruno Haible  <bruno@clisp.org>
46283
46284         * modules/floorl-tests: New file.
46285         * tests/test-floorl.c: New file.
46286
46287         * modules/floorl: New file.
46288         * lib/floorl.c: Replace entire file.
46289         * m4/floorl.m4: New file.
46290         * lib/math.in.h (floorl): Replace declaration.
46291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46292         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46293         * doc/functions/floorl.texi: Mention the 'floorl' module.
46294         * modules/mathl (Files): Remove lib/floorl.c.
46295         (Depends-on): Add floorl.
46296
46297 2007-10-04  Bruno Haible  <bruno@clisp.org>
46298
46299         * modules/floorf-tests: New file.
46300         * tests/test-floorf.c: New file.
46301
46302         * modules/floorf: New file.
46303         * lib/floor.c: New file.
46304         * lib/floorf.c: New file.
46305         * m4/floorf.m4: New file.
46306         * lib/math.in.h (floorf): New declaration.
46307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46308         HAVE_DECL_FLOORF.
46309         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46310         HAVE_DECL_FLOORF.
46311         * doc/functions/floorf.texi: Mention the 'floorf' module.
46312
46313 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46314             Bruno Haible  <bruno@clisp.org>
46315
46316         Advertise for the Git server instead of the CVS server.
46317         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46318         repository instead of the CVS one.
46319         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46320         about all VCS systems generically.
46321         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46322
46323 2007-10-04  Bruno Haible  <bruno@clisp.org>
46324
46325         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46326         means.
46327         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46328
46329 2007-10-04  Bruno Haible  <bruno@clisp.org>
46330
46331         * modules/truncl-tests: New file.
46332         * tests/test-truncl.c: New file.
46333
46334         * modules/truncl: New file.
46335         * lib/truncl.c: New file.
46336         * m4/truncl.m4: New file.
46337         * lib/math.in.h (truncl): New declaration.
46338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46339         HAVE_DECL_TRUNCL.
46340         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46341         HAVE_DECL_TRUNCL.
46342         * doc/functions/truncl.texi: Mention the 'truncl' module.
46343
46344 2007-10-04  Bruno Haible  <bruno@clisp.org>
46345
46346         * modules/truncf-tests: New file.
46347         * tests/test-truncf.c: New file.
46348
46349         * modules/truncf: New file.
46350         * lib/trunc.c: Make paramerizable through USE_* macros.
46351         * lib/truncf.c: New file.
46352         * m4/truncf.m4: New file.
46353         * lib/math.in.h (truncf): New declaration.
46354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46355         HAVE_DECL_TRUNCF.
46356         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46357         HAVE_DECL_TRUNCF.
46358         * doc/functions/truncf.texi: Mention the 'truncf' module.
46359
46360 2007-10-03  Bruno Haible  <bruno@clisp.org>
46361
46362         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46363         augmentation also for tests modules.
46364         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46365         * modules/atexit-tests (Makefile.am): Likewise.
46366         * modules/binary-io-tests (Makefile.am): Likewise.
46367         * modules/c-strcase-tests (Makefile.am): Likewise.
46368         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46369         * modules/canonicalize-tests (Makefile.am): Likewise.
46370         * modules/closein-tests (Makefile.am): Likewise.
46371         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46372         * modules/freadahead-tests (Makefile.am): Likewise.
46373         * modules/fseek-tests (Makefile.am): Likewise.
46374         * modules/fseeko-tests (Makefile.am): Likewise.
46375         * modules/ftell-tests (Makefile.am): Likewise.
46376         * modules/ftello-tests (Makefile.am): Likewise.
46377         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46378         * modules/isnanl-tests (Makefile.am): Likewise.
46379         * modules/lseek-tests (Makefile.am): Likewise.
46380         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46381         * modules/mbscasestr-tests (Makefile.am): Likewise.
46382         * modules/mbschr-tests (Makefile.am): Likewise.
46383         * modules/mbscspn-tests (Makefile.am): Likewise.
46384         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46385         * modules/mbspbrk-tests (Makefile.am): Likewise.
46386         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46387         * modules/mbsrchr-tests (Makefile.am): Likewise.
46388         * modules/mbsspn-tests (Makefile.am): Likewise.
46389         * modules/mbsstr-tests (Makefile.am): Likewise.
46390         * modules/printf-posix-tests (Makefile.am): Likewise.
46391         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46392         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46393         * modules/tsearch-tests (Makefile.am): Likewise.
46394         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46395         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46396         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46397         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46398         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46399         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46400         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46401         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46402         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46403         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46404         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46405         * modules/xstrtol-tests (Makefile.am): Likewise.
46406         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46407         * modules/yesno-tests (Makefile.am): Likewise.
46408
46409 2007-10-03  Bruno Haible  <bruno@clisp.org>
46410
46411         * modules/trunc-tests: New file.
46412         * tests/test-trunc.c: New file.
46413
46414         * modules/trunc: New file.
46415         * lib/trunc.c: New file.
46416         * m4/trunc.m4: New file.
46417         * lib/math.in.h (trunc): New declaration.
46418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46419         HAVE_DECL_TRUNC.
46420         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46421         HAVE_DECL_TRUNC.
46422         * doc/functions/trunc.texi: Mention the 'trunc' module.
46423
46424 2007-10-03  Bruno Haible  <bruno@clisp.org>
46425
46426         * tests/test-fpending.c: New file, mostly copied
46427         from coreutils/lib/t-fpending.c.
46428         * modules/fpending-tests: New file.
46429
46430 2007-10-03  Bruno Haible  <bruno@clisp.org>
46431
46432         Port the stdio extensions to QNX (untested).
46433         * lib/fseterr.c (fseterr): Add support for QNX.
46434         * lib/fbufmode.c (fbufmode): Likewise.
46435         * lib/freadable.c (freadable): Likewise.
46436         * lib/fwritable.c (fwritable): Likewise.
46437         * lib/freading.c (freading): Likewise.
46438         * lib/fwriting.c (fwriting): Likewise.
46439         * lib/freadahead.c (freadahed): Likewise.
46440         * lib/fpurge.c (fpurge): Likewise.
46441         * lib/fseeko.c (rpl_fseeko): Likewise.
46442
46443 2007-10-03  Bruno Haible  <bruno@clisp.org>
46444             Jim Meyering  <jim@meyering.net>
46445             Eric Blake  <ebb9@byu.net>
46446
46447         * doc/relocatable.texi: Use @command instead of @program.
46448
46449 2007-10-02  Jim Meyering  <jim@meyering.net>
46450
46451         Perform one more "_.h" -> ".in.h" substitution.
46452         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46453         instead of unistd_.h here, too.
46454
46455 2007-10-01  Bruno Haible  <bruno@clisp.org>
46456
46457         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46458         Needed for the alloca-opt module.
46459
46460 2007-09-30  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46463         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46464         alloca_.h.
46465         * lib/argz.in.h: Renamed from lib/argz_.h.
46466         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46467         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46468         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46469         byteswap_.h.
46470         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46471         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46472         dirent_.h.
46473         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46474         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46475         fcntl_.h.
46476         * lib/float.in.h: Renamed from lib/float_.h.
46477         * modules/float (Files, Makefile.am): Use float.in.h instead of
46478         float_.h.
46479         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46480         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46481         fnmatch_.h.
46482         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46483         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46484         getopt_.h.
46485         * lib/glob.in.h: Renamed from lib/glob_.h.
46486         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46487         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46488         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46489         iconv_.h.
46490         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46491         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46492         inttypes_.h.
46493         * lib/locale.in.h: Renamed from lib/locale_.h.
46494         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46495         locale_.h.
46496         * lib/math.in.h: Renamed from lib/math_.h.
46497         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46498         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46499         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46500         of netinet_in_.h. Add dependency.
46501         * lib/poll.in.h: Renamed from lib/poll_.h.
46502         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46503         * lib/search.in.h: Renamed from lib/search_.h.
46504         * modules/search (Files, Makefile.am): Use search.in.h instead of
46505         search_.h.
46506         * lib/signal.in.h: Renamed from lib/signal_.h.
46507         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46508         _signal.h.
46509         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46510         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46511         stdbool_.h.
46512         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46513         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46514         stdint_.h.
46515         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46516         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46517         stdio_.h.
46518         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46519         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46520         stdlib_.h.
46521         * lib/string.in.h: Renamed from lib/string_.h.
46522         * modules/string (Files, Makefile.am): Use string.in.h instead of
46523         string_.h.
46524         * doc/gnulib-tool.texi (Initial import): Update.
46525         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46526         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46527         of sys_select_.h. Add dependency.
46528         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46529         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46530         of sys_socket_.h.
46531         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46532         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46533         sys_stat_.h.
46534         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46535         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46536         sys_time_.h.
46537         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46538         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46539         sysexits_.h.
46540         * lib/time.in.h: Renamed from lib/time_.h.
46541         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46542         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46543         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46544         unistd_.h.
46545         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46546         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46547         wchar_.h.
46548         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46549         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46550         wctype_.h.
46551         * build-aux/bootstrap (slurp): Update.
46552         * lib/.cppi-disable: Update.
46553
46554 2007-09-30  Bruno Haible  <bruno@clisp.org>
46555
46556         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46557         Needed on BeOS.
46558
46559 2007-09-30  Bruno Haible  <bruno@clisp.org>
46560
46561         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46562
46563 2007-09-29  Bruno Haible  <bruno@clisp.org>
46564
46565         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46566
46567 2007-09-29  Bruno Haible  <bruno@clisp.org>
46568
46569         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46570         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46571         * build-aux/install-reloc: Compile also areadlink.c.
46572         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46573
46574 2007-09-29  Bruno Haible  <bruno@clisp.org>
46575
46576         * gnulib-tool (func_emit_initmacro_done): Indentation.
46577
46578 2007-09-29  Bruno Haible  <bruno@clisp.org>
46579
46580         * README: Add CVS checkout update instructions.
46581         Info from Bob Proulx <bob@proulx.com>.
46582
46583 2007-09-28  Eric Blake  <ebb9@byu.net>
46584
46585         Provide move-if-change.
46586         * build-aux/move-if-change: New file, based on best practice
46587         rather than any canonical upstream location.
46588
46589 2007-09-28  Jim Meyering  <jim@meyering.net>
46590
46591         Fix canonicalize loop-detection corner case.
46592         Do not attempt to stat the symlink values stored via seen_triple.
46593         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46594         on linux-2.6.18, (but not 2.6.22).
46595         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46596         triple_compare.  The former compares dev,ino,filename, while the latter
46597         would actually stat dirname(filename) when dev and ino were equal.
46598         * lib/hash-triple.c: Install <string.h>.
46599         (STREQ): Define.
46600         (triple_compare_ino_str): New function.
46601         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46602
46603 2007-09-28  Eric Blake  <ebb9@byu.net>
46604
46605         Enforce that AC_REPLACE_FUNCS files exist.
46606         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46607         override check for typos.
46608
46609         Fix test-closein on Solaris 10.
46610         * tests/test-closein.c (main): Don't assume stdin can be inherited
46611         closed on all systems.
46612         * tests/test-closein.sh: Likewise.
46613         Reported by Piotr Tarnowski.
46614
46615 2007-09-28  Jim Meyering  <jim@meyering.net>
46616
46617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46618
46619 2007-09-27  Jim Meyering  <jim@meyering.net>
46620
46621         canonicalize: Avoid a false-positive cycle failure.
46622         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46623         Sort.  Remove cycle-check.
46624         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46625         not cycle-check.h.
46626         (seen_triple): New function.
46627         (canonicalize_filename_mode): Use it instead of cycle-check.
46628         * tests/test-canonicalize.c: Add a test for this bug.
46629         * tests/test-canonicalize.sh: Set up and run the test.
46630
46631         New module, file-set, from coreutils.
46632         * modules/file-set: Define it.
46633         * lib/file-set.c, lib/file-set.h: Implement.
46634
46635         New module, hash-triple, from coreutils.
46636         * modules/hash-triple: Define it.
46637         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46638
46639 2007-09-25  Eric Blake  <ebb9@byu.net>
46640
46641         Fix strerror on Interix.
46642         * lib/string_.h (strerror): Declare replacement.
46643         * doc/functions/strerror.texi (strerror): Document the Interix
46644         shortcoming.
46645         * modules/string (Makefile.am): Support new hooks.
46646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46647         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46648         gl_FUNC_STRERROR_SEPARATE.
46649         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46650         * lib/strerror.c (rpl_strerror): Provide replacement.
46651         * modules/strerror (Depends-on): Add string.
46652         (configure.ac): Detect use of module.
46653         * tests/test-strerror.c: New file.
46654         * modules/strerror-tests: New test module.
46655         * modules/argp (Depends-on): Add strerror.
46656         * modules/error (Depends-on): Likewise.
46657         Reported by Martin Koeppe.
46658
46659 2007-09-24  Bruno Haible  <bruno@clisp.org>
46660
46661         * README: Update git instructions.
46662
46663 2007-09-24  Eric Blake  <ebb9@byu.net>
46664
46665         Revert fpending breakage from 2007-09-08.
46666         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46667         __fpending.c.
46668
46669 2007-09-24  Jim Meyering  <jim@meyering.net>
46670
46671         filenamecat.c: Add a test.
46672         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46673         showing how the function works when DIR is the empty string.
46674
46675 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46676
46677         * tests/test-canonicalize.sh: Turn on executable bit.
46678
46679 2007-09-19  Eric Blake  <ebb9@byu.net>
46680
46681         * README: Update CVS instructions.
46682
46683 2007-09-18  Bruno Haible  <bruno@clisp.org>
46684
46685         * modules/areadlink: New file.
46686         * lib/areadlink.h (areadlink): New declaration.
46687         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46688
46689 2007-09-17  Jim Meyering  <jim@meyering.net>
46690
46691         * lib/savewd.c (ESTALE) [!defined]: Define.
46692         Reported to be required on Interix by Martin Koeppe.
46693
46694 2007-09-17  Bruno Haible  <bruno@clisp.org>
46695
46696         * gnulib-tool (func_version): Use $version.
46697
46698 2007-09-16  Bruno Haible  <bruno@clisp.org>
46699
46700         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46701         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46702         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46703         Reported by Greg Schafer <gschafer@zip.com.au>.
46704
46705 2007-09-15  Bruno Haible  <bruno@clisp.org>
46706
46707         * gnulib-tool (sed): Try a little harder to make bash understand the
46708         alias.
46709         Reported by Bruce Korb <bruce.korb@gmail.com>.
46710
46711 2007-09-13  Eric Blake  <ebb9@byu.net>
46712
46713         * ChangeLog: Remove conflict markers.
46714
46715 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46716
46717         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46718         Reported by Bruno Haible <bruno@clisp.org>.
46719
46720 2007-09-12  Bruno Haible  <bruno@clisp.org>
46721
46722         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46723         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46724         is not defined.
46725
46726 2007-09-12  Eric Blake  <ebb9@byu.net>
46727
46728         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46730         Autoconf definition.
46731         * modules/euidaccess (Depends-on): Add extensions, for
46732         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46733         * modules/fnmatch (Depends-on): Likewise.
46734         * modules/getaddrinfo (Depends-on): Likewise.
46735         * modules/getdelim (Depends-on): Likewise.
46736         * modules/getline (Depends-on): Likewise.
46737         * modules/getsubopt (Depends-on): Likewise.
46738         * modules/gettext (Depends-on): Likewise.
46739         * modules/group-member (Depends-on): Likewise.
46740         * modules/mbchar (Depends-on): Likewise.
46741         * modules/memmem (Depends-on): Likewise.
46742         * modules/mempcpy (Depends-on): Likewise.
46743         * modules/memrchr (Depends-on): Likewise.
46744         * modules/pagealign_alloc (Depends-on): Likewise.
46745         * modules/readutmp (Depends-on): Likewise.
46746         * modules/stpcpy (Depends-on): Likewise.
46747         * modules/stpncpy (Depends-on): Likewise.
46748         * modules/strchrnul (Depends-on): Likewise.
46749         * modules/strndup (Depends-on): Likewise.
46750         * modules/strsep (Depends-on): Likewise.
46751         * modules/strverscmp (Depends-on): Likewise.
46752         * modules/vasprintf (Depends-on): Likewise.
46753         * modules/wcwidth (Depends-on): Likewise.
46754         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46755         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46756         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46758         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46759         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46760         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46761         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46762         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46763         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46765         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46767         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46768         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46769         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46770         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46772         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46773         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46774         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46775         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46776         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46777         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46778         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46780         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46781         so that lock.m4 can be used in gettext without extensions module.
46782
46783 2007-09-11  Bruno Haible  <bruno@clisp.org>
46784
46785         * m4/isc-posix.m4: Remove file.
46786         Suggested by Eric Blake.
46787
46788 2007-09-11  Eric Blake  <ebb9@byu.net>
46789
46790         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46791
46792 2007-09-10  Bruno Haible  <bruno@clisp.org>
46793
46794         * posix-modules: Fix typo in error message.
46795         Reported by Matt <mkraai@beckman.com>.
46796
46797 2007-09-09  Bruno Haible  <bruno@clisp.org>
46798
46799         * doc/functions/getdelim.texi: Update list of platforms lacking the
46800         function.
46801         * doc/functions/getline.texi: Likewise.
46802
46803 2007-09-09  Jim Meyering  <jim@meyering.net>
46804
46805         * lib/hash.c (hash_initialize): Detect calloc failure.
46806         Reported by Bruno Haible.
46807
46808 2007-09-09  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46811         malloc or realloc fails.
46812
46813 2007-09-09  Bruno Haible  <bruno@clisp.org>
46814
46815         * modules/getcwd (Depends-on): Add malloc-posix.
46816         * modules/glob (Depends-on): Likewise.
46817         * modules/putenv (Depends-on): Likewise.
46818         * modules/strdup (Depends-on): Likewise.
46819         * modules/getdelim (Depends-on): Add realloc-posix.
46820         * modules/read-file (Depends-on): Likewise.
46821
46822 2007-09-09  Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46825         (gl_FUNC_MALLOC_POSIX): Require it.
46826         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46827         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46828         * modules/realloc (Files): Add m4/malloc.m4.
46829         * modules/calloc (Files): Likewise.
46830
46831 2007-09-09  Bruno Haible  <bruno@clisp.org>
46832
46833         * modules/malloc-posix: New file.
46834         * modules/malloc (Depends-on): Add malloc-posix.
46835         * lib/malloc.c: Include errno.h.
46836         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46837         and a POSIX-compatible malloc into a single function. Set ENOMEM
46838         when returning NULL.
46839         * m4/malloc.m4: New file.
46840         * doc/functions/malloc.texi: Mention the malloc-posix module.
46841         * lib/stdlib_.h (malloc): New declaration.
46842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46843         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46844         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46845         and HAVE_MALLOC_POSIX.
46846
46847 2007-09-09  Bruno Haible  <bruno@clisp.org>
46848
46849         * modules/realloc-posix: New file.
46850         * modules/realloc (Depends-on): Add realloc-posix.
46851         * lib/realloc.c: Include errno.h.
46852         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46853         and a POSIX-compatible realloc into a single function. Set ENOMEM
46854         when returning NULL.
46855         * m4/realloc.m4: New file.
46856         * doc/functions/realloc.texi: Mention the realloc-posix module.
46857         * lib/stdlib_.h (realloc): New declaration.
46858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46859         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46860         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46861         and HAVE_REALLOC_POSIX.
46862
46863 2007-09-09  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/calloc-posix: New file.
46866         * modules/calloc (Depends-on): Add calloc-posix.
46867         * lib/calloc.c: Include errno.h.
46868         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46869         and a POSIX-compatible calloc into a single function. Set ENOMEM
46870         when returning NULL.
46871         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46872         * doc/functions/calloc.texi: Mention the calloc-posix module.
46873         * lib/stdlib_.h (calloc): New declaration.
46874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46875         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46876         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46877         and HAVE_CALLOC_POSIX.
46878
46879 2007-09-09  Bruno Haible  <bruno@clisp.org>
46880
46881         Allow for modules to show an arbitrary notice.
46882         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46883         * gnulib-tool: New option --extract-notice.
46884         (func_usage): Document it.
46885         (sed_extract_prog): Update.
46886         (func_get_notice): New function.
46887         (func_modules_notice): New function.
46888         (func_import, func_create_testdir): Invoke it.
46889         Suggested by Jim Meyering.
46890
46891 2007-09-09  Bruno Haible  <bruno@clisp.org>
46892
46893         * gnulib-tool: New options --verbose, --quiet.
46894         (func_usage): Document them.
46895         (verbose): New variable.
46896         (func_execute_command): New function.
46897         (func_import): Don't show the module list and the file list if
46898         $verbose < 0.
46899         (func_create_testdir): Likewise. Use func_execute_command.
46900         (func_create_megatestdir): Use func_execute_command.
46901
46902 2007-09-08  Bruno Haible  <bruno@clisp.org>
46903
46904         * gnulib-tool (func_import): Prefer rsync over wget when available,
46905         for fetching the PO files.
46906
46907 2007-09-08  Bruno Haible  <bruno@clisp.org>
46908
46909         * posix-modules: New file. Portions copied from gnulib-tool.
46910         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46911
46912 2007-09-08  Jim Meyering  <jim@meyering.net>
46913
46914         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46915         * lib/fpending.h: Rename from __fpending.h.
46916         * lib/fpending.c: Rename from __fpending.c.
46917         Include "fpending.h", not "__fpending.h".
46918         * lib/__fpending.h, lib/__fpending.c: Remove files.
46919         * modules/fpending (Files): Reflect new file names.
46920         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46921
46922 2007-09-08  Bruno Haible  <bruno@clisp.org>
46923
46924         * m4/inttypes-h.m4: Remove stub file.
46925
46926 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46927
46928         * doc/headers/stdint.texi: Discuss #include_next issue.
46929
46930 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46931
46932         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46933
46934 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46935
46936         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46937         in variable name.
46938
46939 2007-09-03  Jim Meyering  <jim@meyering.net>
46940
46941         New module: git-version-gen.
46942         * modules/git-version-gen: New file.
46943
46944         Import changes from coreutils for bootstrap script.
46945
46946         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46947
46948         bootstrap: uses rsync to download the .po files
46949         * build-aux/bootstrap (po_download_command_format): New global.
46950         (download_po_files): Use rsync.
46951         (update_po_files): Don't remove .po files after download,
46952         so future rsync runs can take advantage of the copies.
46953
46954         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46955
46956         Solve the unnecessary-.po-file-regeneration problem once and for all.
46957         * build-aux/bootstrap (download_po_files): New function, renamed from
46958         get_translations.  Now, downloads, but doesn't update LINGUAS.
46959         (update_po_files): New function.
46960
46961         bootstrap: Ignore more.
46962         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46963         uniwidth to e.g., lib/.gitignore.
46964         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46965
46966         * build-aux/bootstrap: New setting: vc_ignore.
46967         (insert_sorted_if_absent): Create $file if absent.
46968         Adapt to new, possibly empty, list: $vc_ignore.
46969
46970         bootstrap: generate more ignorable names
46971         * build-aux/bootstrap (slurp): When generating ignorable names,
46972         also map .sin to .sed, .gperf to .c, and .y to .c.
46973
46974 2007-09-03  Jim Meyering  <jim@meyering.net>
46975
46976         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46977         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46978
46979 2007-09-02  Bruno Haible  <bruno@clisp.org>
46980
46981         Fix mis-recognition of 'mcs' on QNX 6.
46982         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46983         output contains the string "Mono".
46984         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46985         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46986
46987 2007-09-01  Bruno Haible  <bruno@clisp.org>
46988
46989         Fix collision between uniwidth/* and linebreak modules.
46990         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46991         u32_width): Remove declarations.
46992         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46993         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46994         streq3, streq2, streq1, streq0): Remove functions.
46995         (STREQ): Remove macro.
46996         (is_cjk_encoding): Remove function.
46997         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46998         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46999         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47000         * NEWS: Document the change.
47001
47002 2007-09-01  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/streq.h: Add double-inclusion guard.
47005
47006 2007-09-01  Karl Berry  <karl@gnu.org>
47007
47008         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47009
47010 2007-08-28  Jim Meyering  <jim@meyering.net>
47011
47012         Rename mreadlink_with_size to areadlink_with_size.
47013         * NEWS: Document the change.
47014         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47015         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47016         * lib/mreadlink.h: Rename this to...
47017         * lib/areadlink.h: ...this.
47018         * modules/mreadlink-with-size: Rename this to...
47019         * modules/areadlink-with-size: ...this.
47020         * lib/canonicalize.c: Reflect the renaming.
47021         * modules/canonicalize: Likewise.
47022
47023 2007-08-26  Bruno Haible  <bruno@clisp.org>
47024
47025         * gnulib-tool (func_import): When deciding which files to remove,
47026         consider also dangling symbolic links.
47027         Reported by Eric Blake.
47028
47029 2007-08-26  Bruno Haible  <bruno@clisp.org>
47030
47031         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47032
47033 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47034
47035         * lib/readline.c: Don't include getline.h, the prototype is now
47036         found in stdio.h.
47037
47038 2007-08-23  Jim Meyering  <jim@meyering.net>
47039
47040         Getdelim touchup.
47041         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47042         around the funlockfile call, since funlockfile never sets errno.
47043         Don't set errno upon failed realloc.
47044
47045 2007-08-22  Eric Blake  <ebb9@byu.net>
47046
47047         Getline touchups.
47048         * lib/getdelim.c (getdelim): Revert regression that required *n to
47049         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47051         getdelim, rather than whether implementation is missing.
47052         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47053         * lib/stdio_.h (getline): Also declare if replacement is
47054         required.
47055         * doc/functions/getdelim.texi: New file.
47056         * doc/functions/getline.texi: Likewise.
47057         * doc/gnulib.texi (Function Substitutes): Add new files.
47058         Reported by Bruno Haible.
47059
47060 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47061
47062         * users.txt: Add Guile.
47063
47064 2007-08-22  Eric Blake  <ebb9@byu.net>
47065
47066         * tests/test-getdelim.c (main): Use remove, not unlink.
47067         * tests/test-getline.c (main): Likewise.
47068
47069         Move getline and getdelim into stdio.h, per POSIX 200x.
47070         * modules/getline (Files): Remove getline.h.
47071         (Depends-on): Add stdio.
47072         (configure.ac): Add module indicator.
47073         * modules/getdelim (Files): Remove getdelim.h.
47074         (Depends-on): Add stdio.
47075         (configure.ac): Add module indicator.
47076         * modules/stdio (Makefile.am): Work with new indicators.
47077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47078         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47079         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47080         * lib/getdelim.h: Delete.
47081         * lib/getline.h: Delete.
47082         * lib/stdio_.h (getdelim, getline): Declare.
47083         * modules/getdelim-tests: New module.
47084         * modules/getline-tests: Likewise.
47085         * tests/test-getdelim.c: New file.
47086         * tests/test-getline.c: Likewise.
47087         * NEWS: Document the change.
47088         * lib/getline.c: Update choice of header.
47089         * lib/csharpcomp.c: Likewise.
47090         * lib/getpass.c: Likewise.
47091         * lib/javacomp.c: Likewise.
47092         * lib/javaversion.c: Likewise.
47093         * lib/yesno.c: Likewise.
47094         * lib/getdelim.c: Likewise.
47095         (getdelim): Set errno on failure, and avoid memory leak.
47096
47097 2007-08-19  Bruno Haible  <bruno@clisp.org>
47098
47099         * modules/closein (Depends-on): Add freadahead.
47100         * lib/closein.c: Include freadahead.h.
47101         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47102         is zero.
47103
47104 2007-08-19  Bruno Haible  <bruno@clisp.org>
47105
47106         * modules/freadahead-tests: New file.
47107         * tests/test-freadahead.sh: New file.
47108         * tests/test-freadahead.c: New file.
47109
47110         * modules/freadahead: New file.
47111         * lib/freadahead.h: New file.
47112         * lib/freadahead.c: New file.
47113         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47114         fbufmode, fpurge, freadable, fwritable.
47115
47116 2007-08-19  Eric Blake  <ebb9@byu.net>
47117
47118         Test yesno in combination with closein.
47119         * lib/yesno.c (yesno): Document use of stdin.
47120         * modules/yesno-tests (Files): New module.
47121         * tests/test-yesno.c (main): New file.
47122         * tests/test-yesno.sh: Likewise.
47123
47124 2007-08-19  Bruno Haible  <bruno@clisp.org>
47125
47126         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47127         * lib/fseeko.c (rpl_fseeko): Likewise.
47128         * lib/fseterr.c (fseterr): Likewise.
47129
47130 2007-08-19  Bruno Haible  <bruno@clisp.org>
47131
47132         * tests/test-lseek.c (main): Disable a test for BeOS.
47133         * doc/functions/lseek.texi: Document the BeOS bug.
47134
47135 2007-08-19  Bruno Haible  <bruno@clisp.org>
47136             Eric Blake  <ebb9@byu.net>
47137
47138         * lib/lseek.c: Include <sys/stat.h>.
47139         (rpl_lseek): Add workaround code also for Unix platforms.
47140         Needed for BeOS.
47141         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47142         * doc/functions/lseek.texi: Document BeOS definiency.
47143
47144 2007-08-18  Bruno Haible  <bruno@clisp.org>
47145
47146         * modules/fstrcmp-tests: New file.
47147         * tests/test-fstrcmp.c: New file.
47148
47149 2007-08-18  Bruno Haible  <bruno@clisp.org>
47150
47151         * modules/fstrcmp: New file, from GNU gettext with modifications.
47152         * lib/fstrcmp.h: New file, from GNU gettext.
47153         * lib/fstrcmp.c: New file, from GNU gettext.
47154         * MODULES.html.sh (String handling): Add fstrcmp.
47155
47156 2007-08-18  Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47159         'bool'.
47160         (diag, compareseq): Remove const from the ctxt argument.
47161         (USE_HEURISTIC): Undefine at the end.
47162
47163 2007-08-18  Jim Meyering  <jim@meyering.net>
47164
47165         New file: lib/idcache.h
47166         * NEWS: Mention the addition.
47167         * modules/idcache (Files): Add lib/idcache.h
47168         * lib/idcache.c: Include "idcache.h".
47169         Don't include <sys/types.h>.
47170         Add a FIXME comment.
47171         Move file-scoped "static" declarations to the top.
47172         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47173
47174 2007-08-17  Bruno Haible  <bruno@clisp.org>
47175         and Paul Eggert  <eggert@cs.ucla.edu>
47176
47177         * MODULES.html.sh: Add diffseq.
47178         * modules/diffseq: New file.
47179         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47180         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47181
47182 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47183
47184         Import changes from coreutils for bootstrap script.
47185
47186         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47187
47188         * build-aux/bootstrap (slurp): Work even in environments where
47189         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47190         current code does not slurp files whose names start with ".", and
47191         this looks like it might be a troublesome area.
47192
47193         2007-07-11  Jim Meyering  <jim@meyering.net>
47194
47195         If there's a GPL vN copyright comment, require that N == 3.
47196
47197         2007-07-08  Jim Meyering  <jim@meyering.net>
47198
47199         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47200         * build-aux/bootstrap (mam_template): Move definition out of loop.
47201
47202         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47203
47204         * build-aux/bootstrap (symlink_to_dir): Rename function from
47205         symlink_to_gnulib.  Add a directory parameter.  Update all
47206         callers.
47207         (cp_mark_as_generated): Also check for -- and link to -- files in
47208         gl/.
47209
47210         2007-07-08  Jim Meyering  <jim@meyering.net>
47211
47212         Adapt to deeper hierarchy in gnulib.
47213         * build-aux/bootstrap (symlink_to_dir): If the destination
47214         directory doesn't exist, create it. This is required at least for
47215         "lib/uniwidth/cjk.h".
47216
47217         2007-05-15  Jim Meyering  <jim@meyering.net>
47218
47219         * build-aux/bootstrap: Now that generated Makefile.am files
47220         are no longer under version control, they must be created at
47221         bootstrap time.
47222
47223 2007-08-14  Ben Pfaff  <blp@gnu.org>
47224
47225         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47226
47227 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47228
47229         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47230         given the changes below.
47231         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47232         even on hosts that have padding bits beyond the supported 64.
47233
47234 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47235
47236         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47237         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47238         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47239         depends on it.
47240         (xstrtol_error): Remove.
47241         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47242         but with a different signature.
47243         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47244         * lib/xstrtol-error.c: Include exitfail.h.
47245         (xstrtol_fatal): New function, with a different signature from the
47246         old xstrtol_error, so that the caller need not worry about passing
47247         in an exit status, or about storage management of the option argument.
47248         (xstrtol_error): Now a static function.  Redo signature to
47249         implement xstrtol_fatal.  Output the correct number of hyphens in
47250         front of the option so that the caller need not worry about
47251         storage management.
47252         (N_): New macro.
47253         (_): Remove; not used now.
47254         * modules/xstrtol: Depend on getopt.
47255         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47256         of old STRTOL_FATAL_ERROR macro.
47257         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47258         of test program.
47259         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47260         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47261
47262 2007-08-08  Eric Blake  <ebb9@byu.net>
47263
47264         * lib/xstrtol-error.c: Add missing include.
47265
47266         Move xstrtol messages into gnulib domain, when --pobase is used.
47267         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47268         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47269         * modules/xstrtol (Files): Distribute new file.
47270         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47271         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47272         * tests/test-xstrtol.c: ...into new file.
47273         * tests/test-xstrtoul.c: Also test xstrtoul.
47274         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47275         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47276         * tests/test-xstrtol.sh: Drive the tests.
47277         * tests/test-xstrtoimax.sh: Likewise.
47278         * tests/test-xstrtoumax.sh: Likewise.
47279         * modules/xstrtol-tests: New module.
47280         * modules/xstrtoimax-tests: Likewise.
47281         * modules/xstrtoumax-tests: Likewise.
47282
47283 2007-08-08  Jim Meyering  <jim@meyering.net>
47284
47285         New function: mfile_name_concat.
47286         * lib/filenamecat.c (mfile_name_concat): New function, just like
47287         file_name_concat, but return NULL upon failure rather than exiting
47288         with a diagnostic.
47289         * lib/filenamecat.h: Declare it.
47290
47291 2007-08-07  Bruno Haible  <bruno@clisp.org>
47292
47293         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47294         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47295         warning from gcc.
47296         Reported by Eric Blake.
47297
47298 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47299
47300         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47301         * modules/crypto/arcfour (License): Likewise.
47302         * modules/crypto/des-tests (License): Likewise.
47303         * modules/crypto/gc-arctwo-tests (License): Likewise.
47304         * modules/crypto/gc-des-tests (License): Likewise.
47305         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47306         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47307         * modules/crypto/gc-md2-tests (License): Likewise.
47308         * modules/crypto/gc-md4-tests (License): Likewise.
47309         * modules/crypto/gc-md5-tests (License): Likewise.
47310         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47311         * modules/crypto/gc-rijndael-tests (License): Likewise.
47312         * modules/crypto/gc-sha1-tests (License): Likewise.
47313         * modules/crypto/gc-tests (License): Likewise.
47314         * modules/crypto/hmac-md5 (License): Likewise.
47315         * modules/crypto/hmac-sha1 (License): Likewise.
47316         * modules/crypto/md2-tests (License): Likewise.
47317         * modules/crypto/md4-tests (License): Likewise.
47318         * modules/crypto/md5 (License): Likewise.
47319         * modules/crypto/rijndael (License): Likewise.
47320         * modules/crypto/sha1 (License): Likewise.
47321         * modules/memxor (License): Likewise.
47322
47323 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47324         and Bruno Haible  <bruno@clisp.org>
47325
47326         * NEWS: Describe interface changes to human, xstrtol.
47327         * lib/human.h: Include <xstrtol.h>.
47328         (human_options): Return enum strtol_error, not int.  Remove
47329         bool arg; take int * instead.
47330         * lib/human.c: Don't include "gettext.h".
47331         (_): Remove; no longer used.
47332         Don't include <xstrtol.h>, since human.h does it.
47333         (human_options): Adjust to abovementioned interface changes.
47334         Do not report error to stderr; that's now the caller's
47335         responsibility.
47336         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47337         interface change.
47338         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47339         Str, Argument_type_string.  All uses changed.  Put " argument"
47340         in diagnostics to make them clearer.  Change wording of suffix
47341         message for clarity.
47342         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47343         Argument_type_string.
47344         (STRTOL_FATAL_WARN): Remove; no longer used.
47345         * modules/human (Depends-on): Remove gettext-h.
47346
47347 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47348
47349         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47350
47351 2007-07-31  Bruno Haible  <bruno@clisp.org>
47352
47353         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47354         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47355         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47356
47357 2007-07-31  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47360         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47361
47362 2007-07-30  Bruno Haible  <bruno@clisp.org>
47363
47364         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47365         * modules/c-ctype (License): Likewise.
47366         * modules/c-strcase (License): Likewise.
47367         * modules/check-version (License): Likewise.
47368         * modules/iconv (License): Likewise.
47369         * modules/iconv_open (License): Likewise.
47370         * modules/read-file (License): Likewise.
47371         * modules/striconv (License): Likewise.
47372         * modules/strverscmp (License): Likewise.
47373         * modules/vasprintf (License): Likewise.
47374         * modules/crypto/des (License): Likewise.
47375         * modules/crypto/gc (License): Likewise.
47376         * modules/crypto/gc-arcfour (License): Likewise.
47377         * modules/crypto/gc-arctwo (License): Likewise.
47378         * modules/crypto/gc-des (License): Likewise.
47379         * modules/crypto/gc-hmac-md5 (License): Likewise.
47380         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47381         * modules/crypto/gc-md2 (License): Likewise.
47382         * modules/crypto/gc-md4 (License): Likewise.
47383         * modules/crypto/gc-md5 (License): Likewise.
47384         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47385         * modules/crypto/gc-random (License): Likewise.
47386         * modules/crypto/gc-rijndael (License): Likewise.
47387         * modules/crypto/gc-sha1 (License): Likewise.
47388         * modules/crypto/md2 (License): Likewise.
47389         * modules/crypto/md4 (License): Likewise.
47390
47391 2007-07-30  Jim Meyering  <jim@meyering.net>
47392
47393         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47394         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47395         it has valid stat data.  This bug would cause du not to count the
47396         sizes of inaccessible directories.
47397         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47398         in <http://bugzilla.redhat.com/250077>.
47399
47400 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47401             Bruno Haible  <bruno@clisp.org>
47402
47403         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47404         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47405         #include_next, gives a diagnostic about it, but reports no error in
47406         the exit code.
47407         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47408
47409 2007-07-24  Ben Pfaff  <blp@gnu.org>
47410
47411         Improve name: "count-one-bits" is better than "popcount".
47412         * MODULES.html.sh: Update name.
47413         * lib/popcount.h: Renamed lib/count-one-bits.h.
47414         (popcount): Renamed count_one_bits.
47415         (popcountl): Renamed count_one_bits_l.
47416         (popcountll): Renamed count_one_bits_ll.
47417         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47418         * modules/popcount: Renamed module/count-one-bits.
47419         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47420         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47421
47422 2007-07-23  Ben Pfaff  <blp@gnu.org>
47423
47424         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47425         better code generation, and add U to large constants to avoid
47426         warnings, in non-GCC case.
47427         Suggested by Bruno Haible.
47428
47429 2007-07-23  Ben Pfaff  <blp@gnu.org>
47430
47431         * lib/popcount.h: Use verify_true instead of if...abort.
47432         * modules/popcount: Depend on verify module.
47433         Suggested by Jim Meyering.
47434
47435 2007-07-23  Bruno Haible  <bruno@clisp.org>
47436
47437         * gnulib-tool (func_import): Create a .cvsignore file also when the
47438         directory is not yet in CVS but the toplevel directory is. When
47439         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47440         Reported by Karl Berry.
47441
47442 2007-07-22  Ben Pfaff  <blp@gnu.org>
47443
47444         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47445         case.
47446         Suggested by Eric Blake.
47447
47448 2007-07-22  Ben Pfaff  <blp@gnu.org>
47449
47450         New module: popcount.
47451         * MODULES.html.sh: Add popcount.
47452         * modules/popcount: New file.
47453         * modules/popcount-tests: New file.
47454         * tests/test-popcount.c: New file.
47455         * lib/popcount.h: New file.
47456         * m4/popcount.m4: New file.
47457
47458 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47459
47460         * build-aux/announce-gen: Update to GPLv3.
47461
47462         * build-aux/config.guess: Update from config.
47463
47464 2007-07-21  Bruno Haible  <bruno@clisp.org>
47465
47466         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47467         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47468
47469 2007-07-20  Jim Meyering  <jim@meyering.net>
47470
47471         * check-module: Diagnose a self-dependency.
47472
47473 2007-07-19  Bruno Haible  <bruno@clisp.org>
47474
47475         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47476         empty.
47477         Reported by Eric Blake.
47478
47479 2007-07-18  Bruno Haible  <bruno@clisp.org>
47480
47481         * gnulib-tool: New options --po-base, --po-domain.
47482         (func_usage): Document them.
47483         (pobase, po_domain): New variables.
47484         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47485         DEFAULT_TEXT_DOMAIN.
47486         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47487         (func_import): Consider pobase and po_domain. Create a po/ directory.
47488         (func_create_testdir): Set pobase and po_domain to empty.
47489         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47490         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47491
47492 2007-07-18  Bruno Haible  <bruno@clisp.org>
47493
47494         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47495         EXTRA_DIST augmentation for files in build-aux/.
47496
47497 2007-07-16  Bruno Haible  <bruno@clisp.org>
47498
47499         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47500         * modules/getdelim (License): Likewise.
47501
47502 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47503
47504         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47505         * modules/d-type (License): Likewise.
47506         * modules/extensions (License): Likewise.
47507         * modules/fnmatch (License): Likewise.
47508         * modules/fseeko (License): Likewise.
47509         * modules/getaddrinfo (License): Likewise.
47510         * modules/getline (License): Likewise.
47511         * modules/getlogin_r (License): Likewise.
47512         * modules/getpass (License): Likewise.
47513         * modules/gettimeofday (License): Likewise.
47514         * modules/glob (License): Likewise.
47515         * modules/inet_ntop (License): Likewise.
47516         * modules/malloc (License): Likewise.
47517         * modules/malloca (License): Likewise.
47518         * modules/memmem (License): Likewise.
47519         * modules/mempcpy (License): Likewise.
47520         * modules/memset (License): Likewise.
47521         * modules/minmax (License): Likewise.
47522         * modules/mktime (License): Likewise.
47523         * modules/netinet_in (License): Likewise.
47524         * modules/pathmax (License): Likewise.
47525         * modules/poll (License): Likewise.
47526         * modules/regex (License): Likewise.
47527         * modules/snprintf (License): Likewise.
47528         * modules/stdbool (License): Likewise.
47529         * modules/stdint (License): Likewise.
47530         * modules/stdio (License): Likewise.
47531         * modules/strcase (License): Likewise.
47532         * modules/strcasestr (License): Likewise.
47533         * modules/strdup (License): Likewise.
47534         * modules/string (License): Likewise.
47535         * modules/strndup (License): Likewise.
47536         * modules/strnlen (License): Likewise.
47537         * modules/strpbrk (License): Likewise.
47538         * modules/strptime (License): Likewise.
47539         * modules/strsep (License): Likewise.
47540         * modules/sys_select (License): Likewise.
47541         * modules/sys_socket (License): Likewise.
47542         * modules/sys_stat (License): Likewise.
47543         * modules/sys_time (License): Likewise.
47544         * modules/time (License): Likewise.
47545         * modules/time_r (License): Likewise.
47546         * modules/timegm (License): Likewise.
47547         * modules/unistd (License): Likewise.
47548         * modules/vsnprintf (License): Likewise.
47549         * modules/wctype (License): Likewise.
47550
47551 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47552
47553         * modules/argz (License): LGPLv2+.
47554
47555 2007-07-15  Karl Berry  <karl@gnu.org>
47556
47557         * doc/gnulib.texi: revise node structure per new fdl.texi.
47558
47559 2007-07-14  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47562         the output file.
47563         * lib/uniname/uninames.h: Regenerated.
47564
47565 2007-07-14  Karl Berry  <karl@gnu.org>
47566
47567         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47568         omitting sectioning and index commands.
47569
47570 2007-07-13  Bruno Haible  <bruno@clisp.org>
47571
47572         New gnulib-tool option --more-symlinks.
47573         * gnulib-tool (func_usage): Document --more-symlinks.
47574         (do_copyrights): New variable.
47575         Recognize option --more-symlinks.
47576         (func_import): Don't add a copyright notice transform to
47577         sed_transform_lib_file if do_copyrights is empty.
47578
47579 2007-07-13  Bruno Haible  <bruno@clisp.org>
47580
47581         * lib/vasnprintf.c (decimal_point_char): Define also if
47582         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47583         && !NEED_PRINTF_DIRECTIVE_A.
47584         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47585         Gary V. Vaughan <gary@gnu.org>.
47586
47587 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47588
47589         * lib/inttypes_.h: Undo previous change, since it was fixed
47590         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47591
47592 2007-07-13  Bruno Haible  <bruno@clisp.org>
47593
47594         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47595         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47596
47597 2007-07-13  Jim Meyering  <jim@meyering.net>
47598
47599         df: Don't fail for Tru64's "file-on-file mount".
47600         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47601         so we fall through and use statfs instead.  Details here:
47602         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47603         Reported by Albert Chin.
47604
47605 2007-07-13  Bruno Haible  <bruno@clisp.org>
47606
47607         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47608         * modules/configmake (License): Likewise.
47609         * modules/gettext (License): Likewise.
47610         * modules/gettext-h (License): Likewise.
47611         * modules/include_next (License): Likewise.
47612         * modules/link-warning (License): Likewise.
47613         * modules/localcharset (License): Likewise.
47614         * modules/localename (License): Likewise.
47615         * modules/lock (License): Likewise.
47616         * modules/relocatable-lib-lgpl (License): Likewise.
47617         * modules/size_max (License): Likewise.
47618         * modules/vasnprintf (License): Likewise.
47619         * modules/wchar (License): Likewise.
47620         * modules/xsize (License): Likewise.
47621
47622 2007-07-13  Bruno Haible  <bruno@clisp.org>
47623
47624         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47625         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47626
47627 2007-07-12  Bruno Haible  <bruno@clisp.org>
47628
47629         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47630         in the modules files.
47631
47632 2007-07-11  Karl Berry  <karl@gnu.org>
47633
47634         * MODULES.html.sh (func_module): use
47635          sed -e '\|^'"${includefile}"'$|d'
47636          instead of /.../d, to avoid errors on $includefile's containing /.
47637
47638 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47639
47640         * gnulib-tool (func_import): Avoid duplication of --avoid
47641         statements
47642         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47643         names to `_' in variable names.
47644
47645 2007-07-10  Eric Blake  <ebb9@byu.net>
47646
47647         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47648         * NEWS: Document this change.
47649
47650 2007-07-08  Bruno Haible  <bruno@clisp.org>
47651
47652         Update to Unicode 5.0.
47653         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47654         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47655         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47656         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47657         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47658         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47659         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47660         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47661         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47662         U+10A3F, U+1D242..U+1D244.
47663         (nonspacing_table_ind): Update.
47664         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47665         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47666
47667 2007-07-08  Bruno Haible  <bruno@clisp.org>
47668
47669         Update to Unicode 5.0.
47670         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47671         code transform. Extend the name index field of unicode_name_to_code and
47672         unicode_code_to_name from 16 to 24 bits.
47673         * lib/uniname/uniname.c (unicode_character_name,
47674         unicode_name_character): Add the range 0x12xxx to the code transform.
47675         * lib/uniname/uninames.h: Regenerated.
47676         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47677
47678 2007-07-07  Bruno Haible  <bruno@clisp.org>
47679
47680         * modules/wcwidth-tests: New file.
47681         * tests/test-wcwidth.c: New file.
47682
47683         Work around MacOS X wcwidth() bug.
47684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47685         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47686         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47687         original wcwidth in non-UTF-8 locales.
47688         * modules/wcwidth (Depends-on): Add localcharset, streq,
47689         uniwidth/width.
47690         * doc/functions/wcwidth.texi: Update.
47691
47692 2007-07-07  Bruno Haible  <bruno@clisp.org>
47693
47694         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47695         (wcwidth): New declaration.
47696         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47697         macros.
47698         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47699         here. Prepare for creating <wchar.h> unconditionally.
47700         * modules/wchar (Depends-on): Add link-warning.
47701         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47702         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47703         * lib/wcwidth.h: Remove file.
47704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47705         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47706         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47707         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47708         (Include): Replace wcwidth.h with <wchar.h>.
47709         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47710         * lib/mbchar.h: Don't include wcwidth.h.
47711         * lib/mbswidth.c: Likewise.
47712         * NEWS: Mention the change.
47713
47714 2007-07-07  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47717         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47718         definition with an external declaration.
47719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47720         defined as a function. Remove AC_C_INLINE requirement.
47721         * modules/wcwidth (Files): Add lib/wcwidth.c.
47722         (Makefile.am): Remove redundant statement.
47723
47724 2007-07-07  Bruno Haible  <bruno@clisp.org>
47725
47726         * MODULES.html.sh (Unicode string functions): Add the new modules.
47727
47728         * tests/uniwidth/test-u32-strwidth.c: New file.
47729         * modules/uniwidth/u32-strwidth-tests: New file.
47730
47731         * lib/uniwidth/u32-strwidth.c: New file.
47732         * modules/uniwidth/u32-strwidth: New file.
47733
47734         * tests/uniwidth/test-u16-strwidth.c: New file.
47735         * modules/uniwidth/u16-strwidth-tests: New file.
47736
47737         * lib/uniwidth/u16-strwidth.c: New file.
47738         * modules/uniwidth/u16-strwidth: New file.
47739
47740         * tests/uniwidth/test-u8-strwidth.c: New file.
47741         * modules/uniwidth/u8-strwidth-tests: New file.
47742
47743         * lib/uniwidth/u8-strwidth.c: New file.
47744         * modules/uniwidth/u8-strwidth: New file.
47745
47746         * tests/uniwidth/test-u32-width.c: New file.
47747         * modules/uniwidth/u32-width-tests: New file.
47748
47749         * lib/uniwidth/u32-width.c: New file.
47750         * modules/uniwidth/u32-width: New file.
47751
47752         * tests/uniwidth/test-u16-width.c: New file.
47753         * modules/uniwidth/u16-width-tests: New file.
47754
47755         * lib/uniwidth/u16-width.c: New file.
47756         * modules/uniwidth/u16-width: New file.
47757
47758         * tests/uniwidth/test-u8-width.c: New file.
47759         * modules/uniwidth/u8-width-tests: New file.
47760
47761         * lib/uniwidth/u8-width.c: New file.
47762         * modules/uniwidth/u8-width: New file.
47763
47764         * tests/uniwidth/test-uc_width.c: New file.
47765         * modules/uniwidth/width-tests: New file.
47766
47767         * lib/uniwidth/width.c: New file, from GNU libiconv.
47768         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47769         * modules/uniwidth/width: New file.
47770
47771         * lib/uniwidth.h: New file, from GNU libiconv.
47772         * modules/uniwidth/base: New file.
47773
47774 2007-07-07  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/uniname.h: New file, from GNU gettext.
47777         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47778         * lib/uniname/uninames.h: New file, from GNU gettext.
47779         * lib/uniname/uniname.c: New file, from GNU gettext.
47780         * tests/uniname/test-uninames.sh: New file.
47781         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47782         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47783         * modules/uniname/base: New file.
47784         * modules/uniname/uniname: New file.
47785         * modules/uniname/uniname-tests: New file.
47786         * MODULES.html.sh (Unicode string functions): Add the new modules.
47787
47788 2007-07-06  Bruno Haible  <bruno@clisp.org>
47789
47790         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47791
47792 2007-07-06  Bruno Haible  <bruno@clisp.org>
47793
47794         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47795         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47796         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47797         include <sys/time.h>.
47798         Reported by Eric Blake.
47799
47800 2007-07-06  Eric Blake  <ebb9@byu.net>
47801
47802         Fix testing canonicalize on cygwin.
47803         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47804         Revert patch from 2007-06-19.
47805         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47806         canonicalize module is also in use.
47807         * tests/test-canonicalize.c: New file.
47808         * tests/test-canonicalize.sh: Likewise.
47809         * modules/canonicalize-tests: Likewise.
47810
47811 2007-07-06  Jim Meyering  <jim@meyering.net>
47812
47813         * lib/getugroups.c (getugroups): Detect getgrent failure.
47814         Adjust comment to reflect reality: this function may return -1.
47815
47816 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47817
47818         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47819         the new TP address.
47820         (usage): Fix typo
47821         (gnulib_mk): New variable.
47822
47823 2007-07-05  Jim Meyering  <jim@meyering.net>
47824
47825         Don't let endgrent clobber errno, no matter how improbable.
47826         * lib/getugroups.c (getugroups): Save and restore errno around
47827         endgrent call.
47828
47829         Close the group DB even when failing with 2^31 or more members.
47830         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47831
47832 2007-07-04  Jim Meyering  <jim@meyering.net>
47833
47834         * lib/getugroups.h: New file.
47835         * lib/getugroups.c: Include "getugroups.h".
47836         Remove uses of "register" keyword.
47837         Move local variable, "cp", down into scope where used.
47838         Give "username" parameter the "const" attribute.
47839         * modules/getugroups (Files): Add lib/getugroups.h
47840
47841 2007-07-04  Karl Berry  <karl@gnu.org>
47842
47843         * MODULES.html.sh (func_all_modules): Complete rename of
47844         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47845
47846 2007-07-02  Bruno Haible  <bruno@clisp.org>
47847
47848         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47849         mode, when inttypes.h comes from gnulib.
47850         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47851
47852 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47853
47854         * NEWS: Mention lgpl module name change.
47855
47856         * modules/lgpl-2.1: Renamed from lgpl.
47857
47858         * NEWS: Mention gpl module name change.
47859
47860         * modules/gpl-3.0: New file, based on gpl-2.0.
47861
47862         * modules/gpl-2.0: Renamed from gpl.
47863
47864         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47865         doc/gpl-2.0.texi.
47866
47867 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47870         #define __STDC_LIMIT_MACROS temporarily while including
47871         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47872         Problem reported by Joel E. Denny in
47873         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47874
47875 2007-07-01  Bruno Haible  <bruno@clisp.org>
47876
47877         * lib/unistdio.h: New file.
47878         * lib/unistdio/u-asnprintf.h: New file.
47879         * lib/unistdio/u-asprintf.h: New file.
47880         * lib/unistdio/u-printf-args.c: New file.
47881         * lib/unistdio/u-printf-args.h: New file.
47882         * lib/unistdio/u-printf-parse.h: New file.
47883         * lib/unistdio/u-snprintf.h: New file.
47884         * lib/unistdio/u-sprintf.h: New file.
47885         * lib/unistdio/u-vasprintf.h: New file.
47886         * lib/unistdio/u-vsnprintf.h: New file.
47887         * lib/unistdio/u-vsprintf.h: New file.
47888         * lib/unistdio/ulc-asnprintf.c: New file.
47889         * lib/unistdio/ulc-asprintf.c: New file.
47890         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47891         * lib/unistdio/ulc-printf-parse.c: New file.
47892         * lib/unistdio/ulc-snprintf.c: New file.
47893         * lib/unistdio/ulc-sprintf.c: New file.
47894         * lib/unistdio/ulc-vasnprintf.c: New file.
47895         * lib/unistdio/ulc-vasprintf.c: New file.
47896         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47897         * lib/unistdio/ulc-vsnprintf.c: New file.
47898         * lib/unistdio/ulc-vsprintf.c: New file.
47899         * lib/unistdio/u8-asnprintf.c: New file.
47900         * lib/unistdio/u8-asprintf.c: New file.
47901         * lib/unistdio/u8-printf-parse.c: New file.
47902         * lib/unistdio/u8-snprintf.c: New file.
47903         * lib/unistdio/u8-sprintf.c: New file.
47904         * lib/unistdio/u8-vasnprintf.c: New file.
47905         * lib/unistdio/u8-vasprintf.c: New file.
47906         * lib/unistdio/u8-vsnprintf.c: New file.
47907         * lib/unistdio/u8-vsprintf.c: New file.
47908         * lib/unistdio/u8-u8-asnprintf.c: New file.
47909         * lib/unistdio/u8-u8-asprintf.c: New file.
47910         * lib/unistdio/u8-u8-snprintf.c: New file.
47911         * lib/unistdio/u8-u8-sprintf.c: New file.
47912         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47913         * lib/unistdio/u8-u8-vasprintf.c: New file.
47914         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47915         * lib/unistdio/u8-u8-vsprintf.c: New file.
47916         * lib/unistdio/u16-asnprintf.c: New file.
47917         * lib/unistdio/u16-asprintf.c: New file.
47918         * lib/unistdio/u16-printf-parse.c: New file.
47919         * lib/unistdio/u16-snprintf.c: New file.
47920         * lib/unistdio/u16-sprintf.c: New file.
47921         * lib/unistdio/u16-vasnprintf.c: New file.
47922         * lib/unistdio/u16-vasprintf.c: New file.
47923         * lib/unistdio/u16-vsnprintf.c: New file.
47924         * lib/unistdio/u16-vsprintf.c: New file.
47925         * lib/unistdio/u16-u16-asnprintf.c: New file.
47926         * lib/unistdio/u16-u16-asprintf.c: New file.
47927         * lib/unistdio/u16-u16-snprintf.c: New file.
47928         * lib/unistdio/u16-u16-sprintf.c: New file.
47929         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47930         * lib/unistdio/u16-u16-vasprintf.c: New file.
47931         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47932         * lib/unistdio/u16-u16-vsprintf.c: New file.
47933         * lib/unistdio/u32-asnprintf.c: New file.
47934         * lib/unistdio/u32-asprintf.c: New file.
47935         * lib/unistdio/u32-printf-parse.c: New file.
47936         * lib/unistdio/u32-snprintf.c: New file.
47937         * lib/unistdio/u32-sprintf.c: New file.
47938         * lib/unistdio/u32-vasnprintf.c: New file.
47939         * lib/unistdio/u32-vasprintf.c: New file.
47940         * lib/unistdio/u32-vsnprintf.c: New file.
47941         * lib/unistdio/u32-vsprintf.c: New file.
47942         * lib/unistdio/u32-u32-asnprintf.c: New file.
47943         * lib/unistdio/u32-u32-asprintf.c: New file.
47944         * lib/unistdio/u32-u32-snprintf.c: New file.
47945         * lib/unistdio/u32-u32-sprintf.c: New file.
47946         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47947         * lib/unistdio/u32-u32-vasprintf.c: New file.
47948         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47949         * lib/unistdio/u32-u32-vsprintf.c: New file.
47950         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47951         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47952         * tests/unistdio/test-ulc-printf1.h: New file.
47953         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47954         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47955         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47956         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47957         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47958         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47959         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47960         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47961         * tests/unistdio/test-u8-asnprintf1.c: New file.
47962         * tests/unistdio/test-u8-asnprintf1.h: New file.
47963         * tests/unistdio/test-u8-printf1.h: New file.
47964         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47965         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47966         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47967         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47968         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47969         * tests/unistdio/test-u8-vasprintf1.c: New file.
47970         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47971         * tests/unistdio/test-u8-vsprintf1.c: New file.
47972         * tests/unistdio/test-u16-asnprintf1.c: New file.
47973         * tests/unistdio/test-u16-asnprintf1.h: New file.
47974         * tests/unistdio/test-u16-printf1.h: New file.
47975         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47976         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47977         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47978         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47979         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47980         * tests/unistdio/test-u16-vasprintf1.c: New file.
47981         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47982         * tests/unistdio/test-u16-vsprintf1.c: New file.
47983         * tests/unistdio/test-u32-asnprintf1.c: New file.
47984         * tests/unistdio/test-u32-asnprintf1.h: New file.
47985         * tests/unistdio/test-u32-printf1.h: New file.
47986         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47987         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47988         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47989         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47990         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47991         * tests/unistdio/test-u32-vasprintf1.c: New file.
47992         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47993         * tests/unistdio/test-u32-vsprintf1.c: New file.
47994         * modules/unistdio/base: New file.
47995         * modules/unistdio/u-printf-args: New file.
47996         * modules/unistdio/ulc-asnprintf: New file.
47997         * modules/unistdio/ulc-asprintf: New file.
47998         * modules/unistdio/ulc-fprintf: New file.
47999         * modules/unistdio/ulc-printf-parse: New file.
48000         * modules/unistdio/ulc-snprintf: New file.
48001         * modules/unistdio/ulc-sprintf: New file.
48002         * modules/unistdio/ulc-vasnprintf: New file.
48003         * modules/unistdio/ulc-vasprintf: New file.
48004         * modules/unistdio/ulc-vfprintf: New file.
48005         * modules/unistdio/ulc-vsnprintf: New file.
48006         * modules/unistdio/ulc-vsprintf: New file.
48007         * modules/unistdio/u8-asnprintf: New file.
48008         * modules/unistdio/u8-asprintf: New file.
48009         * modules/unistdio/u8-printf-parse: New file.
48010         * modules/unistdio/u8-snprintf: New file.
48011         * modules/unistdio/u8-sprintf: New file.
48012         * modules/unistdio/u8-vasnprintf: New file.
48013         * modules/unistdio/u8-vasprintf: New file.
48014         * modules/unistdio/u8-vsnprintf: New file.
48015         * modules/unistdio/u8-vsprintf: New file.
48016         * modules/unistdio/u8-u8-asnprintf: New file.
48017         * modules/unistdio/u8-u8-asprintf: New file.
48018         * modules/unistdio/u8-u8-snprintf: New file.
48019         * modules/unistdio/u8-u8-sprintf: New file.
48020         * modules/unistdio/u8-u8-vasnprintf: New file.
48021         * modules/unistdio/u8-u8-vasprintf: New file.
48022         * modules/unistdio/u8-u8-vsnprintf: New file.
48023         * modules/unistdio/u8-u8-vsprintf: New file.
48024         * modules/unistdio/u16-asnprintf: New file.
48025         * modules/unistdio/u16-asprintf: New file.
48026         * modules/unistdio/u16-printf-parse: New file.
48027         * modules/unistdio/u16-snprintf: New file.
48028         * modules/unistdio/u16-sprintf: New file.
48029         * modules/unistdio/u16-vasnprintf: New file.
48030         * modules/unistdio/u16-vasprintf: New file.
48031         * modules/unistdio/u16-vsnprintf: New file.
48032         * modules/unistdio/u16-vsprintf: New file.
48033         * modules/unistdio/u16-u16-asnprintf: New file.
48034         * modules/unistdio/u16-u16-asprintf: New file.
48035         * modules/unistdio/u16-u16-snprintf: New file.
48036         * modules/unistdio/u16-u16-sprintf: New file.
48037         * modules/unistdio/u16-u16-vasnprintf: New file.
48038         * modules/unistdio/u16-u16-vasprintf: New file.
48039         * modules/unistdio/u16-u16-vsnprintf: New file.
48040         * modules/unistdio/u16-u16-vsprintf: New file.
48041         * modules/unistdio/u32-asnprintf: New file.
48042         * modules/unistdio/u32-asprintf: New file.
48043         * modules/unistdio/u32-printf-parse: New file.
48044         * modules/unistdio/u32-snprintf: New file.
48045         * modules/unistdio/u32-sprintf: New file.
48046         * modules/unistdio/u32-vasnprintf: New file.
48047         * modules/unistdio/u32-vasprintf: New file.
48048         * modules/unistdio/u32-vsnprintf: New file.
48049         * modules/unistdio/u32-vsprintf: New file.
48050         * modules/unistdio/u32-u32-asnprintf: New file.
48051         * modules/unistdio/u32-u32-asprintf: New file.
48052         * modules/unistdio/u32-u32-snprintf: New file.
48053         * modules/unistdio/u32-u32-sprintf: New file.
48054         * modules/unistdio/u32-u32-vasnprintf: New file.
48055         * modules/unistdio/u32-u32-vasprintf: New file.
48056         * modules/unistdio/u32-u32-vsnprintf: New file.
48057         * modules/unistdio/u32-u32-vsprintf: New file.
48058         * modules/unistdio/ulc-asnprintf-tests: New file.
48059         * modules/unistdio/ulc-vasnprintf-tests: New file.
48060         * modules/unistdio/ulc-vasprintf-tests: New file.
48061         * modules/unistdio/ulc-vsnprintf-tests: New file.
48062         * modules/unistdio/ulc-vsprintf-tests: New file.
48063         * modules/unistdio/u8-asnprintf-tests: New file.
48064         * modules/unistdio/u8-vasnprintf-tests: New file.
48065         * modules/unistdio/u8-vasprintf-tests: New file.
48066         * modules/unistdio/u8-vsnprintf-tests: New file.
48067         * modules/unistdio/u8-vsprintf-tests: New file.
48068         * modules/unistdio/u16-asnprintf-tests: New file.
48069         * modules/unistdio/u16-vasnprintf-tests: New file.
48070         * modules/unistdio/u16-vasprintf-tests: New file.
48071         * modules/unistdio/u16-vsnprintf-tests: New file.
48072         * modules/unistdio/u16-vsprintf-tests: New file.
48073         * modules/unistdio/u32-asnprintf-tests: New file.
48074         * modules/unistdio/u32-vasnprintf-tests: New file.
48075         * modules/unistdio/u32-vasprintf-tests: New file.
48076         * modules/unistdio/u32-vsnprintf-tests: New file.
48077         * modules/unistdio/u32-vsprintf-tests: New file.
48078         * MODULES.html.sh (Unicode string functions): Add the new modules.
48079
48080 2007-07-01  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/sprintf.c (sprintf): Limit the available length estimation,
48083         to avoid address wraparound.
48084         * lib/vsprintf.c (vsprintf): Likewise.
48085         * modules/sprintf-posix (Dependencies): Add stdint.
48086         * modules/vsprintf-posix (Dependencies): Likewise.
48087
48088 2007-07-01  Bruno Haible  <bruno@clisp.org>
48089
48090         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48091         Windows PATH as well. Conservative double-quoting. Comments.
48092
48093 2007-07-01  Bruno Haible  <bruno@clisp.org>
48094             Eric Blake  <ebb9@byu.net>
48095             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48096
48097         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48098         empty components in $PATH, denoting '.'.
48099
48100 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48101
48102         * gnulib-tool: Fix indentation.
48103         (func_create_megatestdir): Likewise.
48104         Report by Bruno Haible.
48105
48106 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48107
48108         Sync from Automake.
48109         * build-aux/gnupload: Fix shell portability issues with for loops.
48110         Report by Karl Berry.
48111
48112 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48113
48114         * build-aux/maint.mk (POURL): Use translationproject.org.
48115
48116 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48117             Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48120         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48121         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48122         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48123         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48124
48125 2007-06-27  Bruno Haible  <bruno@clisp.org>
48126
48127         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48128         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48129
48130 2007-06-26  Karl Berry  <karl@gnu.org>
48131
48132         * MODULES.html.sh: remove xreadlink-with-size.
48133
48134 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48135
48136         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48137         method that I hope also handles the double-include problem noted
48138         by Bruno Haible in
48139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48140
48141 2007-06-23  Bruno Haible  <bruno@clisp.org>
48142
48143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48144         Don't let the 'mostlyclean' target fail if the last subdirectory could
48145         not be removed.
48146         Reported by Karl Berry.
48147
48148 2007-06-23  Bruno Haible  <bruno@clisp.org>
48149
48150         * gnulib-tool (echo): Add a speedier workaround for ksh.
48151         * tests/test-echo.sh: Likewise.
48152
48153 2007-06-23  Bruno Haible  <bruno@clisp.org>
48154
48155         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48156         * tests/test-echo.sh: Likewise.
48157
48158 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48159
48160         * gnulib-tool (IFS): Initialize early, so we don't set it to
48161         empty later.
48162         (self_abspathname): Rewrite algorithm to set it, reindent.
48163         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48164         (func_create_megatestdir): Merge some sed scripts.
48165
48166 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48169         exposed by Sun Studio 11 cc on Solaris 8.
48170
48171 2007-06-22  Bruno Haible  <bruno@clisp.org>
48172
48173         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48174         backslashes.
48175         * tests/test-echo.sh: New file.
48176
48177 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48178
48179         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48180         simplify `sed_replace_build_aux' scripts, they are portable but
48181         echoing them with `echo' is not.
48182         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48183
48184 2007-06-21  Karl Berry  <karl@gnu.org>
48185
48186         * config/srclist.txt: guess we can't handle the licenses via
48187         srclist at the moment.
48188
48189 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48190
48191         * MODULES.html.sh: Add include_next.
48192         * modules/include_next: New file.
48193
48194 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48195
48196         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48197         INCLUDE_NEXT.
48198         (gl_CHECK_NEXT_HEADERS): New macro.
48199         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48200         the obsolescent gl_ABSOLUTE_HEADER.
48201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48202         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48203         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48204         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48205         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48206         * m4/math_h.m4 (gl_MATH_H): Likewise.
48207         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48208         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48209         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48210         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48211         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48212         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48213         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48217         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48218         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48219         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48220         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48221         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48222         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48223         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48224         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48225         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48226         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48227         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48228         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48229         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48230         * lib/float_.h: Likewise.
48231         * lib/inttypes_.h: Likewise.
48232         * lib/math_.h: Likewise.
48233         * lib/search_.h: Likewise.
48234         * lib/signal_.h: Likewise.
48235         * lib/stdint_.h: Likewise.
48236         * lib/stdio_.h: Likewise.
48237         * lib/stdlib_.h: Likewise.
48238         * lib/string_.h: Likewise.
48239         * lib/sys_stat_.h: Likewise.
48240         * lib/sys_time_.h: Likewise.
48241         * lib/time_.h: Likewise.
48242         * lib/unistd_.h: Likewise.
48243         * lib/wchar_.h: Likewise.
48244         * lib/wctype_.h: Likewise.
48245         * lib/dirent_.h: Likewise.
48246         * lib/iconv_.h: Likewise.
48247         * lib/locale_.h: Likewise.
48248         * lib/netinet_in_.h: Likewise.
48249         * lib/sys_select_.h: Likewise.
48250         * lib/sys_socket_.h: Likewise.
48251         * lib/sysexits_.h: Likewise.
48252         * modules/fcntl (Depends-on): Depend on include_next, not
48253         absolute_header.
48254         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48255         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48256         * modules/fchdir: Likewise.
48257         * modules/float: Likewise.
48258         * modules/iconv_open: Likewise.
48259         * modules/inttypes: Likewise.
48260         * modules/locale: Likewise.
48261         * modules/math: Likewise.
48262         * modules/netinet_in: Likewise.
48263         * modules/search: Likewise.
48264         * modules/signal: Likewise.
48265         * modules/stdint: Likewise.
48266         * modules/stdio: Likewise.
48267         * modules/stdlib: Likewise.
48268         * modules/string: Likewise.
48269         * modules/sys_select: Likewise.
48270         * modules/sys_socket: Likewise.
48271         * modules/sys_stat: Likewise.
48272         * modules/sys_time: Likewise.
48273         * modules/sysexits: Likewise.
48274         * modules/time: Likewise.
48275         * modules/unistd: Likewise.
48276         * modules/wchar: Likewise.
48277         * modules/wctype: Likewise.
48278         * modules/sys_stat: Change maintainer to "all".
48279         * modules/unistd: Likewise.
48280
48281 2007-06-20  Karl Berry  <karl@gnu.org>
48282
48283         * config/srclist.txt: track www changes in license files.
48284
48285 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48286
48287         * build-aux/bootstrap: Remove stray dot.
48288         Make sure build_aux settings are honored when linking
48289         gnulib_extra_files.
48290
48291 2007-06-19  Eric Blake  <ebb9@byu.net>
48292
48293         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48294         Allow compilation on cygwin.
48295
48296 2007-06-19  Jim Meyering  <jim@meyering.net>
48297
48298         xreadlink-with-size: Remove module.  No longer used.
48299         Ex-callers now use xreadlink or mreadlink-with-size.
48300         * modules/xreadlink-with-size: Remove module.
48301         * lib/xreadlink-with-size.c: Remove file.
48302         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48303         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48304         just before the function definition *is* accurate.
48305
48306         Eliminate one way canonicalize_filename_mode could exit.
48307         * lib/canonicalize.c (canonicalize_filename_mode):
48308         Use mreadlink_with_size, not xreadlink_with_size.
48309
48310 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         Detect porting problems to FreeBSD/arm, which has time_t wider than
48313         long int.  Original problem reported for GNU diff by Xin Li in
48314         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48315         * modules/getdate (Depends-on): Add intprops, verify.
48316         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48317         is an integer type no wider than long int.
48318
48319 2007-06-18  Jim Meyering  <jim@meyering.net>
48320
48321         New module: mreadlink-with-size.
48322         * MODULES.html.sh: Add mreadlink-with-size.
48323         * modules/mreadlink-with-size: New module
48324         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48325         not xreadlink-with-size.
48326         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48327
48328 2007-06-16  Bruno Haible  <bruno@clisp.org>
48329
48330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48331         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48332         Reported by Gary V. Vaughan <gary@gnu.org>.
48333
48334 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48335
48336         Revamp lchown so that it lives in unistd.h where it belongs.
48337         * lib/lchown.h: Remove.
48338         * lib/dirchownmod.c: Don't include lib/lchown.h.
48339         * lib/fchownat.c: Likewise.
48340         * lib/openat.c: Likewise.
48341         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48342         does not follow symlinks.
48343         (EOPNOTSUPP): Define if not defined.
48344         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48345         is defined to 0.
48346         (lchown): New decl.
48347         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48348         Do not check for lchown decl.
48349         Set REPLACE_LCHOWN.
48350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48351         REPLACE_LCHOWN.
48352         * modules/chown: Make it clear it follows symlinks.
48353         * modules/lchown: Make it clear it doesn't follow symlinks.
48354         (Files): Remove lib/lchown.h
48355         (Depends-on): Add unistd.
48356         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48357         (Include): Include <unistd.h>, not "lchown.h".
48358         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48359         REPLACE_LCHOWN.
48360
48361 2007-06-15  Jim Meyering  <jim@meyering.net>
48362
48363         Change license (GPL to LGPL) of fsusage and dependents.
48364         * modules/fsusage (License): Change to LGPL.
48365         * modules/full-read (License): Likewise.
48366         * modules/full-write (License): Likewise.
48367         * modules/safe-read (License): Likewise.
48368         * modules/safe-write (License): Likewise.
48369
48370 2007-06-14  Ben Pfaff  <blp@gnu.org>
48371
48372         Missing part of allocsa -> malloca transition.
48373         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48374         gl_MALLOCA.
48375
48376 2007-06-12  Bruno Haible  <bruno@clisp.org>
48377
48378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48379         to ia64, x86_64, i386.
48380         Reported by Eric Blake.
48381
48382 2007-06-12  Bruno Haible  <bruno@clisp.org>
48383
48384         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48385         cross-compiling to x86_64.
48386
48387 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48388
48389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48390         glitch reported by Ralf Wildenhues in
48391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48392
48393         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48394         Vin Shelton.
48395
48396 2007-06-11  Bruno Haible  <bruno@clisp.org>
48397
48398         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48399         replacement string.
48400         Reported by Eric Blake.
48401
48402 2007-06-10  Bruno Haible  <bruno@clisp.org>
48403
48404         Prepare vasnprintf code for use with Unicode strings.
48405         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48406         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48407         TYPE_U32_STRING.
48408         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48409         a_u32_string variants.
48410         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48411         * lib/printf-args.c: Don't include config.h and the specification
48412         header if PRINTF_FETCHARGS is already defined.
48413         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48414         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48415         TYPE_U16_STRING, TYPE_U32_STRING.
48416         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48417         u16_directive, u16_directives, u32_directive, u32_directives): New
48418         types.
48419         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48420         New declarations.
48421         * lib/printf-parse.c: Don't include config.h and the specification
48422         header if PRINTF_PARSE is already defined. Eliminate the set of
48423         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48424         them now. Include c-ctype.h.
48425         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48426         directive and CHAR_T_ONLY_ASCII.
48427         * lib/vasnprintf.c: Don't include config.h and the specification header
48428         if VASNPRINTF is already defined.
48429         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48430         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48431         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48432         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48433         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48434         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48435         code accordingly.
48436         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48437         pad_ourselves also in this case, with the 'c' and 's' directives, and
48438         with a different notion of "width".
48439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48440
48441 2007-06-10  Bruno Haible  <bruno@clisp.org>
48442
48443         * modules/unistr/u32-mbsnlen: New file.
48444         * lib/unistr/u32-mbsnlen.c: New file.
48445
48446         * modules/unistr/u16-mbsnlen: New file.
48447         * lib/unistr/u16-mbsnlen.c: New file.
48448
48449         * modules/unistr/u8-mbsnlen: New file.
48450         * lib/unistr/u8-mbsnlen.c: New file.
48451
48452         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48453         declarations.
48454
48455 2007-06-10  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/string_.h (mbsnlen): New declaration.
48458         * lib/mbsnlen.c: New file.
48459         * m4/mbsnlen.m4: New file.
48460         * modules/mbsnlen: New file.
48461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48462         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48463         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48464
48465 2007-06-10  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48468
48469 2007-06-10  Bruno Haible  <bruno@clisp.org>
48470
48471         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48472         * lib/mbuiter.h: Likewise.
48473
48474 2007-06-10  Bruno Haible  <bruno@clisp.org>
48475
48476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48477         declaration.
48478
48479 2007-06-10  Karl Berry  <karl@gnu.org>
48480
48481         * config/srclist.txt: remove gettext entries, Bruno prefers
48482         to update individually.
48483
48484 2007-06-10  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48487         'maxlen'. Ensure only length + width bytes are allocated, not
48488         length + 1 + width.
48489
48490 2007-06-09  Bruno Haible  <bruno@clisp.org>
48491
48492         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48493         (CHAR_T): Remove macro.
48494         (VASNPRINTF): Update.
48495
48496 2007-06-09  Bruno Haible  <bruno@clisp.org>
48497
48498         * MODULES.html.sh (Unicode string functions): Add the new modules.
48499
48500         * modules/uniconv/u32-conv-to-enc: New file.
48501         * lib/uniconv/u32-conv-to-enc.c: New file.
48502         * modules/uniconv/u32-conv-to-enc-tests: New file.
48503         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48504
48505         * modules/uniconv/u16-conv-to-enc: New file.
48506         * lib/uniconv/u16-conv-to-enc.c: New file.
48507         * lib/uniconv/u-conv-to-enc.h: New file.
48508         * modules/uniconv/u16-conv-to-enc-tests: New file.
48509         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48510
48511         * modules/uniconv/u8-conv-to-enc: New file.
48512         * lib/uniconv/u8-conv-to-enc.c: New file.
48513         * modules/uniconv/u8-conv-to-enc-tests: New file.
48514         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48515
48516         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48517         u32_conv_to_encoding): New declarations.
48518
48519 2007-06-09  Bruno Haible  <bruno@clisp.org>
48520
48521         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48522
48523 2007-06-09  Bruno Haible  <bruno@clisp.org>
48524
48525         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48526         * modules/malloca: Renamed from modules/allocsa, updated.
48527         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48528         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48529         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48530         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48531         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48532         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48533         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48534         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48535         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48536         * modules/c-strcasestr (Depends-on): Update.
48537         * lib/c-strcasestr.c: Update.
48538         * modules/c-strstr (Depends-on): Update.
48539         * lib/c-strstr.c: Update.
48540         * modules/canonicalize-lgpl (Depends-on): Update.
48541         * lib/canonicalize-lgpl.c: Update.
48542         * modules/clean-temp (Depends-on): Update.
48543         * lib/clean-temp.c: Update.
48544         * modules/csharpcomp (Depends-on): Update.
48545         * lib/csharpcomp.c: Update.
48546         * modules/csharpexec (Depends-on): Update.
48547         * lib/csharpexec.c: Update.
48548         * modules/javacomp (Depends-on): Update.
48549         * lib/javacomp.c: Update.
48550         * modules/javaexec (Depends-on): Update.
48551         * lib/javaexec.c: Update.
48552         * modules/mbscasestr (Depends-on): Update.
48553         * lib/mbscasestr.c: Update.
48554         * modules/mbsstr (Depends-on): Update.
48555         * lib/mbsstr.c: Update.
48556         * modules/setenv (Depends-on): Update.
48557         * lib/setenv.c: Update.
48558         * modules/strcasestr (Depends-on): Update.
48559         * lib/strcasestr.c: Update.
48560         * modules/striconveha (Depends-on): Update.
48561         * lib/striconveha.c: Update.
48562         * modules/relocatable-prog-wrapper (Files): Update.
48563         * lib/relocwrapper.c: Update.
48564         * build-aux/install-reloc: Update.
48565         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48566
48567 2007-06-08  Bruno Haible  <bruno@clisp.org>
48568
48569         Port to uClibc.
48570         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48571         * lib/fpurge.c (fpurge): Likewise.
48572         * lib/freading.c (freading): Likewise.
48573         * lib/fseeko.c (rpl_fseeko): Likewise.
48574         * lib/fseterr.c (fseterr): Likewise.
48575         * lib/fwriting.c (fwriting): Likewise.
48576         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48577
48578 2007-06-08  Bruno Haible  <bruno@clisp.org>
48579
48580         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48581         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48582         * modules/gettext (Files): Add m4/intlmacosx.m4.
48583
48584 2007-06-07  Bruno Haible  <bruno@clisp.org>
48585
48586         * modules/localename-tests: New file.
48587         * tests/test-localename.c: New file.
48588
48589         New module 'localename'.
48590         * lib/localename.h: New file.
48591         * lib/localename.c: New file, from GNU gettext.
48592         * m4/localename.m4: New file.
48593         * modules/localename: New file.
48594
48595 2007-06-07  Bruno Haible  <bruno@clisp.org>
48596
48597         Work around the lack of <wchar.h> on some builds of uClibc.
48598         * doc/headers/wchar.texi: Update.
48599         * lib/wchar_.h: Include <wchar.h> only if it exists.
48600         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48601         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48602         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48603         doesn't exist.
48604         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48605         * modules/mbfile (Depends-on): Add wchar.
48606         * modules/mbiter (Depends-on): Likewise.
48607         * modules/mbuiter (Depends-on): Likewise.
48608         Reported by Simon Josefsson.
48609
48610 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48611
48612         Work around problem reported by Steven M. Schweda in
48613         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48614         Tru64 5.1B with the Compaq compiler environment installed declares
48615         an 'isblank' function but does not define it in the C library.
48616         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48617         * lib/regex_internal.h (isblank): Likewise.
48618         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48619         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48620
48621 2007-06-05  Bruno Haible  <bruno@clisp.org>
48622
48623         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48624         ia64.
48625         * modules/printf-safe: New file.
48626         * modules/fprintf-posix (Depends-on): Add printf-safe.
48627         * modules/printf-posix (Depends-on): Likewise.
48628         * modules/snprintf-posix (Depends-on): Likewise.
48629         * modules/sprintf-posix (Depends-on): Likewise.
48630         * modules/vasnprintf-posix (Depends-on): Likewise.
48631         * modules/vasprintf-posix (Depends-on): Likewise.
48632         * modules/vfprintf-posix (Depends-on): Likewise.
48633         * modules/vprintf-posix (Depends-on): Likewise.
48634         * modules/vsnprintf-posix (Depends-on): Likewise.
48635         * modules/vsprintf-posix (Depends-on): Likewise.
48636         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48637         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48638         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48639         "no" on i386, x86_64, ia64.
48640         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48641         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48642         on i386, x86_64, ia64.
48643         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48644         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48645         on i386, x86_64, ia64.
48646         * tests/test-vasnprintf-posix.c: Include float.h.
48647         (LDBL80_WORDS): New macro.
48648         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48649         on i386, x86_64, ia64.
48650         * tests/test-vasprintf-posix.c: Include float.h.
48651         (LDBL80_WORDS): New macro.
48652         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48653         on i386, x86_64, ia64.
48654         * tests/test-snprintf-posix.c: Include float.h.
48655         * tests/test-sprintf-posix.c: Likewise.
48656         * tests/test-vsnprintf-posix.c: Likewise.
48657         * tests/test-vsprintf-posix.c: Likewise.
48658
48659 2007-06-05  Bruno Haible  <bruno@clisp.org>
48660
48661         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48662         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48663         non-IEEE numbers on i386, x86_64, ia64.
48664         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48665         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48666         * tests/test-isnanl.h: Include float.h.
48667         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48668
48669 2007-06-05  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48672         also the %a / %A. Handle the %a / %A code before this extra handling.
48673
48674 2007-06-05  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48677         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48678
48679 2007-06-05  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48682         typo in variable name.
48683
48684 2007-06-05  Eric Blake  <ebb9@byu.net>
48685
48686         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48687         Reported by Simon Josefsson.
48688
48689 2007-06-04  Bruno Haible  <bruno@clisp.org>
48690
48691         Avoid test failures on some PowerPC platforms.
48692         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48693         Define differently for PowerPC.
48694         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48695         Reported by Gary V. Vaughan <gary@gnu.org>.
48696
48697 2007-06-02  Bruno Haible  <bruno@clisp.org>
48698
48699         Fix test-stdint failure on FreeBSD/ia64.
48700         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48701         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48702         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48703         * doc/headers/stdint.texi: Update.
48704
48705 2007-06-01  Bruno Haible  <bruno@clisp.org>
48706
48707         * tests/test-binary-io.c (main): Pass a third argument to open().
48708         Reported by Gary V. Vaughan <gary@gnu.org>.
48709
48710 2007-06-01  Bruno Haible  <bruno@clisp.org>
48711
48712         * doc/functions/frexpl.texi: Update for mingw.
48713
48714 2007-06-01  Bruno Haible  <bruno@clisp.org>
48715
48716         * tests/test-lseek.c (main): Disable test of errno for invalid third
48717         argument.
48718         * doc/functions/lseek.texi: Update.
48719         Reported by Gary V. Vaughan <gary@gnu.org>.
48720
48721 2007-05-28  Bruno Haible  <bruno@clisp.org>
48722
48723         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48724
48725 2007-05-31  Eric Blake  <ebb9@byu.net>
48726
48727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48728         cross compiling.
48729
48730 2007-05-30  Eric Blake  <ebb9@byu.net>
48731         and Bruno Haible  <bruno@clisp.org>
48732
48733         Work around mingw test failures exposed by m4-1.4.9b.
48734         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48735         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48736         moment.
48737
48738 2007-05-30  Bruno Haible  <bruno@clisp.org>
48739
48740         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48741         assuming that they are closed. Needed on HP-UX 11.
48742
48743 2007-05-29  Bruno Haible  <bruno@clisp.org>
48744
48745         Fix a problem with #include_next.
48746         * lib/dirent_.h: Split the double-inclusion guard.
48747         * lib/fcntl_.h: Likewise.
48748         * lib/float_.h: Likewise.
48749         * lib/iconv_.h: Likewise.
48750         * lib/inttypes_.h: Likewise.
48751         * lib/locale_.h: Likewise.
48752         * lib/math_.h: Likewise.
48753         * lib/netinet_in_.h: Likewise.
48754         * lib/search_.h: Likewise.
48755         * lib/signal_.h: Likewise.
48756         * lib/stdint_.h: Likewise.
48757         * lib/stdio_.h: Likewise.
48758         * lib/stdlib_.h: Likewise.
48759         * lib/string_.h: Likewise.
48760         * lib/sys_select_.h: Likewise.
48761         * lib/sys_socket_.h: Likewise.
48762         * lib/sys_stat_.h: Likewise.
48763         * lib/sys_time_.h: Likewise.
48764         * lib/sysexits_.h: Likewise.
48765         * lib/time_.h: Likewise.
48766         * lib/unistd_.h: Likewise.
48767         * lib/wchar_.h: Likewise.
48768         * lib/wctype_.h: Likewise.
48769
48770 2007-05-29  Bruno Haible  <bruno@clisp.org>
48771
48772         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48773         for the moment.
48774
48775 2007-05-29  Bruno Haible  <bruno@clisp.org>
48776
48777         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48778         invocation.
48779         Reported by Eric Blake.
48780
48781 2007-05-29  Bruno Haible  <bruno@clisp.org>
48782
48783         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48784         compiling case.
48785
48786 2007-05-29  Eric Blake  <ebb9@byu.net>
48787             Bruno Haible  <bruno@clisp.org>
48788
48789         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48790         cross compiles.
48791
48792 2007-05-28  Eric Blake  <ebb9@byu.net>
48793
48794         * modules/closein-tests (test_closein_LDADD): Support test on
48795         cygwin with libtool.
48796
48797 2007-05-28  Bruno Haible  <bruno@clisp.org>
48798
48799         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48800         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48801         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48802         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48803         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48804         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48805         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48806         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48807         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48808
48809 2007-05-28  Eric Blake  <ebb9@byu.net>
48810
48811         Unconditionally include <config.h> in unit tests.
48812         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48813         * tests/test-allocsa.c, tests/test-arcfour.c,
48814         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48815         tests/test-array_list.c, tests/test-array_oset.c,
48816         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48817         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48818         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48819         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48820         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48821         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48822         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48823         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48824         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48825         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48826         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48827         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48828         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48829         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48830         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48831         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48832         test-md5.c, test-memmem.c, test-printf-posix.c,
48833         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48834         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48835         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48836         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48837         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48838         test-vasnprintf-posix2.c, test-vasnprintf.c,
48839         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48840         test-vfprintf-posix.c, test-vprintf-posix.c,
48841         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48842         test-xvasprintf.c: Likewise.
48843
48844 2007-05-28  Bruno Haible  <bruno@clisp.org>
48845
48846         * gnulib-tool (func_import): Remember the --with-tests command-line
48847         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48848         Reported by Eric Blake.
48849
48850 2007-05-28  Bruno Haible  <bruno@clisp.org>
48851
48852         * modules/ftell-tests: New file.
48853         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48854         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48855
48856         * lib/ftell.c: New file.
48857         * modules/ftell: New file.
48858         * m4/ftell.m4: New file.
48859         * doc/functions/ftell.texi: Update.
48860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48861         REPLACE_FTELL.
48862         * lib/stdio_.h (rpl_ftell): New declaration.
48863         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48864         REPLACE_FTELL.
48865
48866 2007-05-28  Eric Blake  <ebb9@byu.net>
48867
48868         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48869
48870 2007-05-28  Bruno Haible  <bruno@clisp.org>
48871
48872         * modules/fseek-tests: New file.
48873         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48874         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48875
48876         * lib/fseek.c: New file.
48877         * modules/fseek: New file.
48878         * m4/fseek.m4: New file.
48879         * doc/functions/fseek.texi: Update.
48880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48881         REPLACE_FSEEK.
48882         * lib/stdio_.h (rpl_fseek): New declaration.
48883         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48884         REPLACE_FSEEK.
48885
48886 2007-05-28  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/stdio_.h (fflush): More comments.
48889
48890 2007-05-28  Bruno Haible  <bruno@clisp.org>
48891
48892         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48893         runtime test.
48894
48895 2007-05-28  Eric Blake  <ebb9@byu.net>
48896
48897         Improve lseek module.
48898         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48899         * lib/unistd_.h (lseek): Scale back link warning message.
48900         * tests/test-lseek.c: Beef up test.
48901         * tests/test-lseek.sh: Exercise more facets of lseek.
48902         Reported by Bruno Haible.
48903
48904 2007-05-28  Bruno Haible  <bruno@clisp.org>
48905
48906         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48907         to define.
48908
48909 2007-05-27  Bruno Haible  <bruno@clisp.org>
48910
48911         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48912
48913 2007-05-27  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/openmp: New file.
48916         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48917         Noah Misch.
48918
48919 2007-05-26  Bruno Haible  <bruno@clisp.org>
48920
48921         * modules/chdir-long (Depends-on): Add fchdir.
48922         * modules/chdir-safer (Depends-on): Likewise.
48923         * modules/fts (Depends-on): Likewise.
48924         * modules/fts-lgpl (Depends-on): Likewise.
48925         * modules/openat (Depends-on): Likewise.
48926         * modules/savewd (Depends-on): Likewise.
48927
48928 2007-05-24  Eric Blake  <ebb9@byu.net>
48929
48930         Fix lseek on mingw.
48931         * modules/lseek: New module.
48932         * m4/lseek.m4: New file.
48933         * lib/lseek.c: New file.
48934         * modules/lseek-tests: New file.
48935         * tests/test-lseek.c: New file.
48936         * tests/test-lseek.sh: New file.
48937         * MODULES.html.sh: Document lseek module.
48938         * modules/fflush (Depends-on): Add lseek, fseeko.
48939         * modules/fseeko (Depends-on): Likewise.
48940         * modules/ftello (Depends-on): Likewise.
48941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48942         broken.
48943         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48944         broken.
48945         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48946         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48947         * lib/ftello.c (rpl_ftello): Likewise.
48948         * tests/test-fseeko.c (main): Test this.
48949         * tests/test-fseeko.sh: Likewise.
48950         * tests/test-ftello.c (main): Likewise.
48951         * tests/test-ftello.sh: Likewise.
48952         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48953         implies replacing fseek.
48954         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48955         HAVE_FTELLO.
48956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48957         * modules/unistd (Makefile.am): Likewise.
48958         * lib/unistd_.h (lseek): Declare a replacement.
48959         * doc/functions/lseek.texi (lseek): Document this fix.
48960         * doc/functions/fseek.texi (fseek): Likewise.
48961         * doc/functions/ftell.texi (ftell): Likewise.
48962
48963 2007-05-24  Bruno Haible  <bruno@clisp.org>
48964
48965         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48966         in the printed representation of a NaN.
48967         * tests/test-vasprintf-posix.c (test_function): Likewise.
48968         * tests/test-snprintf-posix.h (test_function): Likewise.
48969         * tests/test-sprintf-posix.h (test_function): Likewise.
48970         Reported by Eric Blake.
48971
48972 2007-05-23  Eric Blake  <ebb9@byu.net>
48973
48974         Fix fseeko/ftello on cygwin 1.5.24.
48975         * doc/functions/fseeko.texi (fseeko): Document the fix.
48976         * doc/functions/ftello.texi (ftello): Document the fix.
48977         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48978         * doc/functions/stdout.text (stdout): New file.
48979         * doc/functions/stderr.text (stderr): New file.
48980         * doc/gnulib.texi (Function Substitutes): Use new files.
48981         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48982         prior to 1.7.0.
48983         * tests/test-ftello.c (main): Likewise for ftello.
48984         * tests/test-fseeko.sh: New file.
48985         * tests/test-ftello.sh: New file.
48986         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48987         with seekable stdin.
48988         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48989         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48990         (gl_REPLACE_FSEEKO): New macro.
48991         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48992         * modules/fseeko (Files): Distribute fseeko.c.
48993         * modules/ftello (Files): Distribute ftello.c.
48994         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48995         mode.
48996         * lib/ftello.c (rpl_ftello): New file.
48997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48998         fseeko, ftello.
48999         (gl_STDIN_LARGE_OFFSET): New macro.
49000         * modules/stdio (Makefile.am): Perform the replacement.
49001         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49002
49003 2007-05-23  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49006         GNULIB_POSIXCHECK is defined.
49007
49008 2007-05-21  Bruno Haible  <bruno@clisp.org>
49009
49010         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49011         Check also the output for NaN arguments. When cross-compiling, guess
49012         no on IRIX.
49013         * lib/vasnprintf.c: Update comments.
49014         * tests/test-vasnprintf-posix.c (strisnan): New function.
49015         (test_function): Use it.
49016         * tests/test-vasprintf-posix.c (strisnan): New function.
49017         (test_function): Use it.
49018         * tests/test-snprintf-posix.h (strisnan): New function.
49019         (test_function): Use it.
49020         * tests/test-sprintf-posix.h (strisnan): New function.
49021         (test_function): Use it.
49022         Reported by Eric Blake.
49023
49024 2007-05-20  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49027         numbers that fails on BeOS.
49028         * doc/functions/frexpl.texi: Update.
49029
49030 2007-05-20  Jim Meyering  <jim@meyering.net>
49031
49032         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49033         forced upon us by glibc-2.6.
49034
49035 2007-05-20  Bruno Haible  <bruno@clisp.org>
49036
49037         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49038         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49039         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49040         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49041         NEED_PRINTF_INFINITE.
49042         (is_infinitel): New function.
49043         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49045         gl_PREREQ_VASNPRINTF_INFINITE.
49046         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49048         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49049         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49050         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49051         gl_PREREQ_VASNPRINTF_INFINITE.
49052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49056         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49057         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49058         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49059         * doc/functions/fprintf.texi: Update.
49060         * doc/functions/printf.texi: Update.
49061         * doc/functions/snprintf.texi: Update.
49062         * doc/functions/sprintf.texi: Update.
49063         * doc/functions/vfprintf.texi: Update.
49064         * doc/functions/vprintf.texi: Update.
49065         * doc/functions/vsnprintf.texi: Update.
49066         * doc/functions/vsprintf.texi: Update.
49067
49068 2007-05-20  Bruno Haible  <bruno@clisp.org>
49069
49070         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49071         was not found in libc.
49072         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49073
49074 2007-05-20  Bruno Haible  <bruno@clisp.org>
49075
49076         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49077         printed as "-nan" instead of "nan".
49078         * tests/test-vasprintf-posix.c (test_function): Likewise.
49079         * tests/test-snprintf-posix.h (test_function): Likewise.
49080         * tests/test-sprintf-posix.h (test_function): Likewise.
49081         Needed for HP-UX 11.
49082
49083 2007-05-20  Jim Meyering  <jim@meyering.net>
49084
49085         Fix buggy test for the fchownat-deref bug.
49086         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49087         symlink required for the run-test.  Without it, this test would
49088         always declare that fchownat doesn't work, and client code would
49089         unnecessarily use the replacement function with fixed libc.
49090         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49091         Reported by Greg Schafer.
49092
49093 2007-05-19  Bruno Haible  <bruno@clisp.org>
49094
49095         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49096         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49097         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49098         Needed for IRIX 6.5 and Solaris 2.5.1.
49099
49100 2007-05-19  Bruno Haible  <bruno@clisp.org>
49101
49102         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49103         (test_function): Skip tests involving -0.0 on platforms where
49104         -0.0 = 0.0.
49105         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49106         (test_function): Skip tests involving -0.0 on platforms where
49107         -0.0 = 0.0.
49108         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49109         (test_function): Skip tests involving -0.0 on platforms where
49110         -0.0 = 0.0.
49111         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49112         (test_function): Skip tests involving -0.0 on platforms where
49113         -0.0 = 0.0.
49114         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49115         tests.
49116         * tests/test-printf-posix.h (test_function): Likewise.
49117         * tests/test-printf-posix.output: Remove all -0.0 related results.
49118         Needed for IRIX 6.5.
49119
49120 2007-05-19  Bruno Haible  <bruno@clisp.org>
49121
49122         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49123         printed as "nan0x7fffffff" instead of "nan".
49124         * tests/test-vasprintf-posix.c (test_function): Likewise.
49125         * tests/test-snprintf-posix.h (test_function): Likewise.
49126         * tests/test-sprintf-posix.h (test_function): Likewise.
49127         * tests/test-fprintf-posix.h (NaN): Remove macro.
49128         (test_function): Remove all NaN related tests.
49129         * tests/test-printf-posix.h (NaN): Remove macro.
49130         (test_function): Remove all NaN related tests.
49131         * tests/test-printf-posix.output: Remove all NaN related results.
49132         Needed for IRIX 6.5.
49133
49134 2007-05-19  Bruno Haible  <bruno@clisp.org>
49135
49136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49137         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49138
49139 2007-05-19  Bruno Haible  <bruno@clisp.org>
49140
49141         * lib/float_.h: New file.
49142         * m4/float_h.m4: New file.
49143         * modules/float: New file.
49144         * modules/isnanl (Dependencies): Add float.
49145         * modules/isnanl-nolibm (Dependencies): Likewise.
49146         * modules/mathl (Dependencies): Likewise.
49147         * modules/printf-frexpl (Dependencies): Likewise.
49148         * modules/signbit (Dependencies): Likewise.
49149         * modules/vasnprintf (Dependencies): Likewise.
49150         * doc/headers/float.texi: Update.
49151
49152 2007-05-19  Jim Meyering  <jim@meyering.net>
49153
49154         * lib/utimens.c (gl_futimens): Rename from futimens,
49155         now that glibc-2.6 declares futimens.
49156         * lib/utimens.h: Likewise.
49157
49158 2007-05-19  Bruno Haible  <bruno@clisp.org>
49159
49160         Avoid test failures on mingw.
49161         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49162         * tests/test-printf-posix.sh: Likewise.
49163         * tests/test-vfprintf-posix.sh: Likewise.
49164         * tests/test-vprintf-posix.sh: Likewise.
49165
49166 2007-05-19  Bruno Haible  <bruno@clisp.org>
49167
49168         Fix *printf result for NaN, Inf, -0.0 on mingw.
49169         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49170         * lib/vasnprintf.c: Include math.h and isnan.h.
49171         (is_infinite_or_zero): New function.
49172         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49173         values in the %f, %F, %e, %E, %g, %G directives.
49174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49176         gl_PRINTF_INFINITE and test its result. Invoke
49177         gl_PREREQ_VASNPRINTF_INFINITE.
49178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49185         * doc/functions/fprintf.texi: Update.
49186         * doc/functions/printf.texi: Update.
49187         * doc/functions/snprintf.texi: Update.
49188         * doc/functions/sprintf.texi: Update.
49189         * doc/functions/vfprintf.texi: Update.
49190         * doc/functions/vprintf.texi: Update.
49191         * doc/functions/vsnprintf.texi: Update.
49192         * doc/functions/vsprintf.texi: Update.
49193
49194 2007-05-19  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49197         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49198         Instead of multiplying with 10^k, set extra_zeroes to k.
49199         (scale10_round_long_double): Remove function.
49200
49201 2007-05-18  Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49204         introduced on 2007-05-06.
49205
49206 2007-05-18  Bruno Haible  <bruno@clisp.org>
49207
49208         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49209         %g directives.
49210         * tests/test-vasprintf-posix.c (test_function): Likewise.
49211         * tests/test-snprintf-posix.h (test_function): Likewise.
49212         * tests/test-sprintf-posix.h (test_function): Likewise.
49213
49214 2007-05-18  Bruno Haible  <bruno@clisp.org>
49215
49216         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49217         (strmatch): New function.
49218         (test_function): Test the %f directive on numbers of various exponents.
49219         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49220         (strmatch): New function.
49221         (test_function): Test the %f directive on numbers of various exponents.
49222         * tests/test-snprintf-posix.h (strmatch): New function.
49223         (test_function): Test the %f directive on numbers of various exponents.
49224         * tests/test-sprintf-posix.h (strmatch): New function.
49225         (test_function): Test the %f directive on numbers of various exponents.
49226         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49227         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49228         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49229         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49230
49231 2007-05-18  Bruno Haible  <bruno@clisp.org>
49232
49233         Add support for 'long double' number output.
49234         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49235         * lib/vasnprintf.c: Include math.h and float+.h.
49236         (mp_limb_t): New type.
49237         (GMP_LIMB_BITS): New macro.
49238         (mp_twolimb_t): New type.
49239         (GMP_TWOLIMB_BITS): New macro.
49240         (mpn_t): New type.
49241         (multiply, divide, convert_to_decimal, decode_long_double,
49242         scale10_round_long_double, scale10_round_decimal_long_double,
49243         floorlog10l): New functions.
49244         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49245         for the %f, %F, %e, %E, %g, %G directives.
49246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49247         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49248         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49249         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49250         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49254         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49257         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49258         * modules/snprintf-posix (Depends-on): Likewise.
49259         * modules/sprintf-posix (Depends-on): Likewise.
49260         * modules/vasnprintf-posix (Depends-on): Likewise.
49261         * modules/vasprintf-posix (Depends-on): Likewise.
49262         * modules/vfprintf-posix (Depends-on): Likewise.
49263         * modules/vsnprintf-posix (Depends-on): Likewise.
49264         * modules/vsprintf-posix (Depends-on): Likewise.
49265         * modules/vasnprintf (Files): Add lib/float+.h.
49266         * doc/functions/fprintf.texi: Update.
49267         * doc/functions/printf.texi: Update.
49268         * doc/functions/snprintf.texi: Update.
49269         * doc/functions/sprintf.texi: Update.
49270         * doc/functions/vfprintf.texi: Update.
49271         * doc/functions/vprintf.texi: Update.
49272         * doc/functions/vsnprintf.texi: Update.
49273         * doc/functions/vsprintf.texi: Update.
49274
49275 2007-05-18  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49278
49279 2007-05-18  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49282         for printing 64-bit integers. Needed for mingw.
49283
49284 2007-05-18  Bruno Haible  <bruno@clisp.org>
49285
49286         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49287         gl_FUNC_FREXPL_WORKS.
49288         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49289
49290 2007-05-18  Bruno Haible  <bruno@clisp.org>
49291
49292         * modules/frexpl-nolibm-tests: New file.
49293
49294         * modules/frexpl-nolibm: New file.
49295         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49296
49297 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49298
49299         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49300         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49301         GCC 4.2, which otherwise issues a lot of warnings.
49302         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49303         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49304         Likewise.
49305         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49306         * modules/iconv_open (iconv.h): Likewise.
49307         * modules/locale (locale.h): Likewise.
49308         * modules/netinet_in (netinet/in.h): Likewise.
49309         * modules/sys_select (sys_select.h): Likewise.
49310         * modules/sys_socket (sys/socket.h): Likewise.
49311         * modules/sys_stat (sys/stat.h): Likewise.
49312         * modules/sysexits (sysexits.h): Likewise.
49313         * modules/unistd (unistd.h): Likewise.
49314
49315 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49316
49317         * modules/closein-tests (Makefile.am): Distribute
49318         `test-closein.sh'.
49319
49320 2007-05-17  Bruno Haible  <bruno@clisp.org>
49321
49322         * tests/test-printf-posix.output: Renamed from
49323         tests/test-fprintf-posix.out.
49324         * modules/fprintf-posix-tests: Update.
49325         * modules/printf-posix-tests: Update.
49326         * modules/vfprintf-posix-tests: Update.
49327         * modules/vprintf-posix-tests: Update.
49328         * tests/test-fprintf-posix.sh: Update.
49329         * tests/test-printf-posix.sh: Update.
49330         * tests/test-vfprintf-posix.sh: Update.
49331         * tests/test-vprintf-posix.sh: Update.
49332         Reported by Ralf Wildenhues.
49333
49334 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49335
49336         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49337         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49338         GCC 4.2, which otherwise issues a lot of warnings.
49339         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49340         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49341         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49342         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49343         it should no longer be needed.
49344         * lib/string_.h: Likewise.
49345         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49346         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49347         * modules/inttypes (inttypes.h): Likewise.
49348         * modules/math (math.h): Likewise.
49349         * modules/search (search.h): Likewise.
49350         * modules/signal (signal.h): Likewise.
49351         * modules/stdint (stdint.h): Likewise.
49352         * modules/stdio (stdio.h): Likewise.
49353         * modules/stdlib (stdlib.h): Likewise.
49354         * modules/string (string.h): Likewise.
49355         * modules/sys_time (sys/time.h): Likewise.
49356         * modules/time (time.h): Likewise.
49357         * modules/wchar (wchar.h): Likewise.
49358         * modules/wctype (wtype.h): Likewise.
49359
49360 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49361
49362         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49363
49364 2007-05-13  Bruno Haible  <bruno@clisp.org>
49365
49366         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49367         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49368         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49369         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49370         (gl_PREREQ_STRTOK_R): Don't require it here.
49371
49372 2007-05-13  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49375         when used in C++ mode.
49376
49377 2007-05-12  Bruno Haible  <bruno@clisp.org>
49378
49379         * lib/linebuffer.h: Tweak doc.
49380         * lib/linebuffer.c: Likewise.
49381
49382 2007-05-12  James Youngman  <jay@gnu.org>
49383
49384         * lib/linebuffer.c (readlinebuffer_delim): New function,
49385         like readlinebuffer, but use a caller-specified delimiter.
49386         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49387         as the delimiter.
49388         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49389
49390 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49391
49392         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49393         * modules/openat (Files): Remove openat-die.c.
49394         (Depends-on): Add openat-die.
49395         * modules/openat-die: New module.
49396
49397 2007-05-06  Bruno Haible  <bruno@clisp.org>
49398
49399         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49400         Update with info about Cygwin.
49401         * doc/functions/fprintf.texi: Update.
49402         * doc/functions/printf.texi: Update.
49403         * doc/functions/snprintf.texi: Update.
49404         * doc/functions/sprintf.texi: Update.
49405         * doc/functions/vfprintf.texi: Update.
49406         * doc/functions/vprintf.texi: Update.
49407         * doc/functions/vsnprintf.texi: Update.
49408         * doc/functions/vsprintf.texi: Update.
49409         Reported by Eric Blake.
49410
49411 2007-05-06  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49414         padding ourselves for the floating-point directives.
49415         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49418         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49419         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49424         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49426         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49427         * tests/test-snprintf-posix.h (test_function): Also check the width
49428         and some flags in the %f directive.
49429         * tests/test-sprintf-posix.h (test_function): Likewise.
49430         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49431         * tests/test-vasprintf-posix.c (test_function): Likewise.
49432         * doc/functions/fprintf.texi: Update.
49433         * doc/functions/printf.texi: Update.
49434         * doc/functions/snprintf.texi: Update.
49435         * doc/functions/sprintf.texi: Update.
49436         * doc/functions/vfprintf.texi: Update.
49437         * doc/functions/vprintf.texi: Update.
49438         * doc/functions/vsnprintf.texi: Update.
49439         * doc/functions/vsprintf.texi: Update.
49440
49441 2007-05-06  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49444         pass the ' flag character to sprintf or snprintf.
49445         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49448         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49449         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49451         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49457         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49458         flag.
49459         * tests/test-sprintf-posix.h (test_function): Likewise.
49460         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49461         * tests/test-vasprintf-posix.c (test_function): Likewise.
49462         * doc/functions/fprintf.texi: Update.
49463         * doc/functions/printf.texi: Update.
49464         * doc/functions/snprintf.texi: Update.
49465         * doc/functions/sprintf.texi: Update.
49466         * doc/functions/vfprintf.texi: Update.
49467         * doc/functions/vprintf.texi: Update.
49468         * doc/functions/vsnprintf.texi: Update.
49469         * doc/functions/vsprintf.texi: Update.
49470
49471 2007-05-01  Bruno Haible  <bruno@clisp.org>
49472
49473         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49474
49475 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49476
49477         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49478         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49479
49480 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49483         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49485
49486 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49487
49488         * lib/argp-help.c (struct hol_entry): New member `ord'.
49489         (HOL_ENTRY_PTRCMP): Use ord for comparison
49490         (hol_sort): Initialize ord.
49491
49492 2007-05-01  Bruno Haible  <bruno@clisp.org>
49493
49494         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49495         Reported by Eric Blake.
49496         * doc/gnulib.texi (Function Substitutes): Update.
49497
49498 2007-05-01  Bruno Haible  <bruno@clisp.org>
49499
49500         * doc/functions.texi: Remove file, now redundant through
49501         doc/functions/*.texi.
49502
49503 2007-05-01  Bruno Haible  <bruno@clisp.org>
49504
49505         * modules/argp (Depends-on): Add sleep.
49506
49507 2007-05-01  Bruno Haible  <bruno@clisp.org>
49508
49509         * modules/sleep-tests: New file.
49510         * tests/test-sleep.c: New file.
49511
49512         * modules/sleep: New file.
49513         * lib/sleep.c: New file.
49514         * m4/sleep.m4: New file.
49515         * lib/unistd_.h (sleep): New declaration.
49516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49517         HAVE_SLEEP.
49518         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49519         * doc/functions/sleep.texi: Document the sleep module.
49520
49521 2007-05-01  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/sigprocmask.h: Remove file.
49524         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49525         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49526         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49527         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49528         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49529         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49530         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49531         HAVE_SIGSET_T as a shell variable.
49532         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49533         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49534         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49535         (Depends-on): Add signal. Remove verify.
49536         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49537         (Include): Mention <signal.h> instead of sigprocmask.h.
49538         * NEWS: Mention the change.
49539         * lib/fatal-signal.c: Don't include sigprocmask.h.
49540
49541 2007-05-01  Bruno Haible  <bruno@clisp.org>
49542
49543         * modules/signal: New file.
49544         * lib/signal_.h: New file.
49545         * m4/signal_h.m4: New file.
49546
49547 2007-05-01  Bruno Haible  <bruno@clisp.org>
49548
49549         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49550         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49551         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49552         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49553
49554 2007-05-01  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49557         configure time.
49558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49559         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49560         * modules/sys_stat (Makefile.am): Substitute their values into
49561         sys/stat.h.
49562
49563 2007-05-01  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49566         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49567         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49568
49569 2007-05-01  Bruno Haible  <bruno@clisp.org>
49570
49571         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49572         'assert' module here.
49573
49574 2007-05-01  Bruno Haible  <bruno@clisp.org>
49575
49576         * doc/functions/*.texi: New files.
49577         * doc/functions/google-ranking.txt: New file.
49578         * doc/gnulib.texi (Function Substitutes): New chapter.
49579         (ctime, inet_ntoa): Remove sections.
49580         * doc/ctime.texi: Remove file.
49581         * doc/inet_ntoa.texi: Remove file.
49582         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49583         dependencies.
49584         (%.info): New rule, specifying a --reference-limit.
49585
49586 2007-05-01  Bruno Haible  <bruno@clisp.org>
49587
49588         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49589
49590 2007-05-01  Bruno Haible  <bruno@clisp.org>
49591
49592         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49593         the portability of 'mkdir' to mingw systems.
49594
49595 2007-05-01  Bruno Haible  <bruno@clisp.org>
49596
49597         * doc/headers/google-ranking.txt: New file.
49598
49599 2007-04-30  Eric Blake  <ebb9@byu.net>
49600
49601         Prefer fseeko to fseek.
49602         * modules/getpass (Depends-on): Add fseeko.
49603         * lib/getpass.c (getpass): Use fseeko, not fseek.
49604
49605 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49606
49607         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49608         assumes the sorting is stable, while most qsort implementations
49609         are not.  Use argument addresses to ensure they never compare as
49610         equal.
49611
49612         * tests/test-argp-2.sh (usage-indent test): Fix output
49613         (func_compare): Restore diff options
49614         * tests/test-argp.c: Restore #include "progname.h"
49615
49616 2007-04-29  Bruno Haible  <bruno@clisp.org>
49617
49618         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49620         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49622         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49623         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49624         (TESTS, check_PROGRAMS): Add test-snprintf.
49625         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49626         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49627         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49628         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49629         assertions that fail on HP-UX, OSF/1, or IRIX.
49630         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49631
49632 2007-04-29  Bruno Haible  <bruno@clisp.org>
49633
49634         * MODULES.html.sh (posix_functions): Remove 'contents'.
49635
49636 2007-04-29  Karl Berry  <karl@gnu.org>
49637
49638         * config/srclist.txt (gendocs_template_min): new entry.
49639
49640 2007-04-29  Bruno Haible  <bruno@clisp.org>
49641
49642         Work around fpurge bug on BSD systems.
49643         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49644         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49645         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49646         fpurge to rpl_fpurge if the system already has this function.
49647         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49648         the case where the system already has this function. Correct invariants
49649         on BSD systems.
49650         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49651         BSD systems.
49652
49653 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49654
49655         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49656         proposed by Sven Verdoolaege.
49657
49658         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49659         options.
49660         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49661         (usage and help tests): Update
49662
49663 2007-04-29  Bruno Haible  <bruno@clisp.org>
49664
49665         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49666         Print more information in case of failure. Disable a test on BeOS.
49667
49668 2007-04-29  Bruno Haible  <bruno@clisp.org>
49669
49670         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49671         This helps debugging on systems on which no gdb is available.
49672
49673 2007-04-29  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/freading.h: Improve comments.
49676         * lib/fwriting.h: Likewise.
49677         * tests/test-freading.c (main): Don't check freading immediately after
49678         repositioning. Needed for glibc.
49679
49680 2007-04-29  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/freading.c (freading): Trivial simplification.
49683
49684 2007-04-28  Bruno Haible  <bruno@clisp.org>
49685
49686         * tests/test-fwriting.c (main): Also test the interaction between
49687         fflush and fwriting.
49688         * modules/fwriting-tests (Depends-on): Add fflush.
49689
49690         * tests/test-freading.c (main): Also test the interaction between
49691         fflush and freading.
49692         * modules/freading-tests (Depends-on): Add fflush.
49693
49694 2007-04-28  Bruno Haible  <bruno@clisp.org>
49695
49696         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49697         fseeko and ftello.
49698         Suggested by Eric Blake.
49699
49700 2007-04-28  Jim Meyering  <jim@meyering.net>
49701
49702         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49703         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49704         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49705
49706 2007-04-27  Eric Blake  <ebb9@byu.net>
49707
49708         * doc/headers/assert.texi (assert.h): Document assert module use.
49709
49710 2007-04-27  Bruno Haible  <bruno@clisp.org>
49711
49712         * doc/headers/*.texi: New files.
49713         * doc/gnulib.texi (Header File Substitutes): New chapter.
49714         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49715         dependencies.
49716         (standards.info ,standards.html, standards.dvi): Update dependencies.
49717         (mostlyclean, clean): New targets.
49718
49719 2007-04-27  Bruno Haible  <bruno@clisp.org>
49720
49721         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49722         * modules/sysexits (Files, Makefile.am): Update.
49723
49724         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49725         * modules/sys_socket (Files, Makefile.am): Update.
49726
49727         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49728         * modules/sys_stat (Files, Makefile.am): Update.
49729
49730 2007-04-27  Eric Blake  <ebb9@byu.net>
49731
49732         * lib/freading.h: Improve comments.
49733         * lib/fwriting.h: Likewise.
49734         * lib/fflush.c: Likewise.
49735
49736         Fix closein for mingw.
49737         * modules/closein-tests: Add tests for closein.
49738         * tests/test-closein.c: New file.
49739         * tests/test-closein.sh: Likewise.
49740         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49741         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49742
49743 2007-04-27  Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49746         version is < 6.
49747         * lib/math_.h [__DECC]: Likewise.
49748         * lib/stdio_.h [__DECC]: Likewise.
49749         * lib/stdlib_.h [__DECC]: Likewise.
49750         * lib/string_.h [__DECC]: Likewise.
49751         * lib/time_.h [__DECC]: Likewise.
49752         * lib/wchar_.h [__DECC]: Likewise.
49753         * lib/wctype_.h [__DECC]: Likewise.
49754
49755 2007-04-27  Bruno Haible  <bruno@clisp.org>
49756
49757         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49758
49759 2007-04-27  Bruno Haible  <bruno@clisp.org>
49760
49761         * lib/fflush.c: Add comments.
49762         * modules/fpurge-tests (Depends-on): Add fflush.
49763         * modules/freadable-tests (Depends-on): Likewise.
49764         * modules/fwritable-tests (Depends-on): Likewise.
49765
49766 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49767
49768         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49769         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49770         Report by Bruno Haible <bruno@clisp.org>.
49771
49772 2007-04-26  Eric Blake  <ebb9@byu.net>
49773
49774         Fix fflush on mingw.
49775         * modules/fflush (Depends-on): Add freading.
49776         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49777         but unread data.
49778
49779 2007-04-26  Eric Blake  <ebb9@byu.net>
49780         and Bruno Haible  <bruno@clisp.org>
49781
49782         Implement freading and fwriting.
49783         * lib/freading.c: New file.
49784         * lib/freading.h: Likewise.
49785         * m4/freading.m4: Likewise.
49786         * modules/freading: Likewise.
49787         * modules/freading-tests: Likewise.
49788         * tests/test-freading.c: Likewise.
49789         * lib/fwriting.c: New file.
49790         * lib/fwriting.h: Likewise.
49791         * m4/fwriting.m4: Likewise.
49792         * modules/fwriting: Likewise.
49793         * modules/fwriting-tests: Likewise.
49794         * tests/test-fwriting.c: Likewise.
49795         * MODULES.html.sh (File stream based Input/Output): Mention them.
49796
49797 2007-04-26  Bruno Haible  <bruno@clisp.org>
49798
49799         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49800         'long' when we assume it.
49801         Suggested by Eric Blake.
49802
49803 2007-04-26  Bruno Haible  <bruno@clisp.org>
49804
49805         Ensure fseeko, ftello are declared on glibc systems.
49806         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49807         * modules/fseeko (configure.ac-early): Likewise.
49808         * modules/ftello (configure.ac-early): Likewise.
49809         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49810         AC_FUNC_FSEEKO for this.
49811         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49812         (gl_CHECK_FSEEKO): Remove macro.
49813
49814 2007-04-26  Bruno Haible  <bruno@clisp.org>
49815
49816         * tests/test-fflush.c (main): Also check the ftell result after
49817         fflush and fseek/fseeko.
49818         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49819         file descriptor position cache in the stream.
49820         * lib/fseeko.c (rpl_fseeko): Likewise.
49821
49822 2007-04-26  Bruno Haible  <bruno@clisp.org>
49823
49824         * modules/fflush-tests (Depends-on): Add fseeko.
49825
49826 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49827             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49828
49829         * lib/argz_.h: ensure error_t definition is obtained in same
49830         mechanism system argz.h would have.
49831         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49832         argz facilities are known bad.  Err on the side of caution if
49833         cross-compiling.
49834
49835 2007-04-25  Eric Blake  <ebb9@byu.net>
49836
49837         * lib/fpurge.c (includes): Use stdlib.h for free.
49838         * tests/test-fflush.c (main): Also test fflush-fseeko.
49839
49840 2007-04-25  Bruno Haible  <bruno@clisp.org>
49841
49842         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49843         * lib/fseeko.c: New file.
49844         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49845         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49846         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49847         gl_FUNC_FSEEKO.
49848         (gl_FUNC_FSEEKO): Invoke it.
49849         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49850         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49851         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49852
49853 2007-04-25  Bruno Haible  <bruno@clisp.org>
49854
49855         * modules/fflush (Depends-on): Add ftello.
49856
49857 2007-04-25  Bruno Haible  <bruno@clisp.org>
49858
49859         * modules/ftello-tests: New file.
49860         * tests/test-ftello.c: New file.
49861
49862         * modules/ftello: New file.
49863         * m4/ftello.m4: New file.
49864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49865         HAVE_FTELLO.
49866         * lib/stdio_.h (ftello): New declaration.
49867         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49868         HAVE_FTELLO.
49869
49870 2007-04-25  Bruno Haible  <bruno@clisp.org>
49871
49872         * modules/fseeko-tests: New file.
49873         * tests/test-fseeko.c: New file.
49874
49875         * modules/fseeko: New file.
49876         * m4/fseeko.m4: New file.
49877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49878         HAVE_FSEEKO.
49879         * lib/stdio_.h (fseeko): New declaration.
49880         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49881         HAVE_FSEEKO.
49882
49883 2007-04-25  Bruno Haible  <bruno@clisp.org>
49884
49885         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49886
49887 2007-04-25  Bruno Haible  <bruno@clisp.org>
49888
49889         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49890         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49891         * tests/test-unistd.c: Likewise.
49892         * tests/test-fcntl.c: Likewise.
49893
49894 2007-04-23  Eric Blake  <ebb9@byu.net>
49895
49896         * lib/fflush.c: Fix missing include.
49897         Reported by Bruno Haible.
49898
49899 2007-04-23  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49902         Reported by Eric Blake.
49903
49904 2007-04-23  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49907
49908 2007-04-23  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49911
49912 2007-04-23  Bruno Haible  <bruno@clisp.org>
49913
49914         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49915         Needed on HP-UX 11.
49916
49917 2007-04-16  Eric Blake  <ebb9@byu.net>
49918
49919         Make fflush rely on fpurge.
49920         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49921         open coding all variants.
49922         * modules/fflush (Depends-on): Add fpurge and unistd.
49923         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49924         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49925
49926         Fix --with-tests compilation on cygwin.
49927         * modules/argmatch-tests (Makefile.am): List gnulib library first
49928         in LDADD.
49929         * modules/argp-tests (Makefile.am): Likewise.
49930         * modules/array-list-tests (Makefile.am): Likewise.
49931         * modules/array-oset-tests (Makefile.am): Likewise.
49932         * modules/avltree-list-tests (Makefile.am): Likewise.
49933         * modules/avltree-oset-tests (Makefile.am): Likewise.
49934         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49935         * modules/carray-list-tests (Makefile.am): Likewise.
49936         * modules/dirname-tests (Makefile.am): Likewise.
49937         * modules/frexp-tests (Makefile.am): Likewise.
49938         * modules/isnanl-tests (Makefile.am): Likewise.
49939         * modules/linked-list-tests (Makefile.am): Likewise.
49940         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49941         * modules/lock-tests (Makefile.am): Likewise.
49942         * modules/rbtree-list-tests (Makefile.am): Likewise.
49943         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49944         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49945         * modules/tls-tests (Makefile.am): Likewise.
49946         * modules/tsearch-tests (Makefile.am): Likewise.
49947         * modules/xvasprintf-tests (Makefile.am): Likewise.
49948
49949         Fix fpurge for cygwin.
49950         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49951         value.
49952         * modules/fpurge-tests (Depends-on): Clean up trash.
49953
49954 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49955
49956         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49957
49958         * m4/autobuild.m4: Re-indent.
49959
49960 2007-04-13  Bruno Haible  <bruno@clisp.org>
49961
49962         * modules/fpurge-tests: New file.
49963         * tests/test-fpurge.c: New file.
49964
49965         * modules/fpurge: New file.
49966         * lib/fpurge.h: New file.
49967         * lib/fpurge.c: New file.
49968         * m4/fpurge.m4: New file.
49969
49970 2007-04-13  Bruno Haible  <bruno@clisp.org>
49971
49972         * modules/fbufmode-tests: New file.
49973         * tests/test-fbufmode.c: New file.
49974
49975         * modules/fbufmode: New file.
49976         * lib/fbufmode.h: New file.
49977         * lib/fbufmode.c: New file.
49978         * m4/fbufmode.m4: New file.
49979
49980 2007-04-13  Bruno Haible  <bruno@clisp.org>
49981
49982         * modules/fwritable-tests: New file.
49983         * tests/test-fwritable.c: New file.
49984
49985         * modules/fwritable: New file.
49986         * lib/fwritable.h: New file.
49987         * lib/fwritable.c: New file.
49988         * m4/fwritable.m4: New file.
49989
49990 2007-04-13  Bruno Haible  <bruno@clisp.org>
49991
49992         * modules/freadable-tests: New file.
49993         * tests/test-freadable.c: New file.
49994
49995         * modules/freadable: New file.
49996         * lib/freadable.h: New file.
49997         * lib/freadable.c: New file.
49998         * m4/freadable.m4: New file.
49999
50000 2007-04-13  Bruno Haible  <bruno@clisp.org>
50001
50002         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50003         MOSTLYCLEANFILES.
50004
50005 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50006
50007         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50008         gzip bootstrap.conf to avoid dragging in i18n machinery.
50009         (gnulib_tool_option): Use it.
50010
50011 2007-04-13  Bruno Haible  <bruno@clisp.org>
50012
50013         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50014         %F directives.
50015         * tests/test-vasprintf-posix.c (test_function): Likewise.
50016         * tests/test-snprintf-posix.h (test_function): Likewise.
50017         * tests/test-sprintf-posix.h (test_function): Likewise.
50018         * tests/test-fprintf-posix.h (test_function): Likewise.
50019         * tests/test-printf-posix.h (test_function): Likewise.
50020         * tests/test-fprintf-posix.out: Likewise.
50021
50022 2007-04-13  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50025         * modules/tls-tests (configure.ac): Likewise.
50026         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50027
50028 2007-04-13  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/tls.c (glthread_tls_get): Fix return type.
50031         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50032
50033 2007-04-12  Eric Blake  <ebb9@byu.net>
50034
50035         * modules/gettime (Depends-on): Remove gettime.
50036         Reported by Dmitry V. Levin.
50037
50038 2007-04-12  Bruno Haible  <bruno@clisp.org>
50039
50040         * modules/fflush (Include): Mention <stdio.h>.
50041         * modules/strtoimax (Include): Mention <inttypes.h>.
50042         * modules/strtoumax (Include): Likewise.
50043
50044 2007-04-12  Eric Blake  <ebb9@byu.net>
50045
50046         * .cvsignore: New file.
50047         * .gitignore: Likewise.
50048
50049 2007-04-12  Bruno Haible  <bruno@clisp.org>
50050
50051         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50052         not before, since $(LDADD) often contains libgnu.a.
50053         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50054         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50055         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50056         Needed on Cygwin.
50057
50058 2007-04-12  Eric Blake  <ebb9@byu.net>
50059
50060         Work around glibc's failure to flush stdin on fclose.
50061         * lib/closein.c (close_stdin): Flush stdin before closing.
50062
50063         Work around glibc's failure to reset seekable stdin on exit.
50064         * modules/closein: New module.
50065         * lib/closein.c: New file.
50066         * lib/closein.h: Likewise.
50067         * m4/closein.m4: Likewise.
50068         * MODULES.html.sh (File stream based Input/Output): Document it.
50069
50070 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50071
50072         * gnulib-tool: Rename generated 'autobuild' script to
50073         'do-autobuild' in --create-megatestdir output.
50074
50075         * doc/gnulib.texi (Build robot for gnulib): Fix.
50076
50077 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50078
50079         * modules/sysexits (Depends-on): Add absolute-header.
50080
50081 2007-04-12  Eric Blake  <ebb9@byu.net>
50082
50083         No need to preserve errno on success.
50084         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50085         Reported by Bruno Haible.
50086
50087 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50088
50089         * MODULES.html.sh (Support for maintaining and releasing
50090         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50091
50092 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50093
50094         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50095
50096 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50097
50098         * modules/autobuild: New module.
50099
50100         * m4/autobuild.m4: New file.
50101
50102 2007-04-11  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50105         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50109         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50110         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50112         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50113         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50114         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50115         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50116         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50118         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50119         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50121         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50122         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50124         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50125         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50127         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50128         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50130         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50131         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50132         Reported by Eric Blake.
50133
50134 2007-04-11  Bruno Haible  <bruno@clisp.org>
50135
50136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50137
50138 2007-04-10  Bruno Haible  <bruno@clisp.org>
50139
50140         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50141         for NaN and Infinity. Needed on FreeBSD 6.1.
50142         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50143         regarding results for "%010a" of Infinity and NaN.
50144         * tests/test-vasprintf-posix.c (test_function): Likewise.
50145         * tests/test-snprintf-posix.h (test_function): Likewise.
50146         * tests/test-sprintf-posix.h (test_function): Likewise.
50147         * tests/test-fprintf-posix.h (test_function): Likewise.
50148         * tests/test-printf-posix.h (test_function): Likewise.
50149         * tests/test-fprintf-posix.out: Likewise.
50150
50151 2007-04-10  Bruno Haible  <bruno@clisp.org>
50152
50153         * modules/locale-tests: New file.
50154         * tests/test-locale.c: New file.
50155
50156         * modules/locale: New file.
50157         * lib/locale_.h: New file.
50158         * m4/locale_h.m4: New file.
50159
50160 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50161             Bruno Haible  <bruno@clisp.org>
50162
50163         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50164         be determined, test for availability of the copysignf, copysign,
50165         copysignl functions.
50166         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50167         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50168         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50169
50170 2007-04-09  Eric Blake  <ebb9@byu.net>
50171
50172         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50173         * modules/stdio (Makefile.am): Support fflush.
50174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50175         * modules/fflush: New file.
50176         * lib/fflush.c: Likewise.
50177         * m4/fflush.m4: Likewise.
50178         * modules/fflush-tests: New test.
50179         * tests/test-fflush.c: Likewise.
50180         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50181
50182 2007-04-06  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50185         (VASNPRINTF): Use signbit for faster determination whether to print a
50186         minus sign.
50187         * modules/vasnprintf (Files): Remove lib/float+.h.
50188         * modules/fprintf-posix (Depends-on): Add signbit.
50189         * modules/snprintf-posix (Depends-on): Likewise.
50190         * modules/sprintf-posix (Depends-on): Likewise.
50191         * modules/vasnprintf-posix (Depends-on): Likewise.
50192         * modules/vasprintf-posix (Depends-on): Likewise.
50193         * modules/vfprintf-posix (Depends-on): Likewise.
50194         * modules/vsnprintf-posix (Depends-on): Likewise.
50195         * modules/vsprintf-posix (Depends-on): Likewise.
50196
50197 2007-04-06  Bruno Haible  <bruno@clisp.org>
50198
50199         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50200         * tests/test-frexpl.c (main): Likewise.
50201         * tests/test-ldexpl.c (main): Likewise.
50202         * modules/frexp-tests (Depends-on): Add signbit.
50203         * modules/frexpl-tests (Depdends-on): Likewise.
50204         * modules/ldexpl-tests (Depdends-on): Likewise.
50205
50206 2007-04-06  Bruno Haible  <bruno@clisp.org>
50207
50208         * modules/signbit-tests: New file.
50209         * tests/test-signbit.c: New file.
50210
50211         * modules/signbit: New file.
50212         * lib/signbitf.c: New file.
50213         * lib/signbitd.c: New file.
50214         * lib/signbitl.c: New file.
50215         * m4/signbit.m4: New file.
50216         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50217         (signbit): New macro.
50218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50219         REPLACE_SIGNBIT.
50220         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50221         REPLACE_FREXPL into math.h.
50222
50223 2007-04-06  Bruno Haible  <bruno@clisp.org>
50224
50225         * modules/isnanf-nolibm-tests: New file.
50226         * tests/test-isnanf.c: New file.
50227
50228         * modules/isnanf-nolibm: New file.
50229         * lib/isnanf.h: New file.
50230         * lib/isnanf.c: New file.
50231         * lib/isnan.c: Consider the USE_FLOAT macro.
50232         * m4/isnanf.m4: New file.
50233
50234 2007-04-06  Bruno Haible  <bruno@clisp.org>
50235
50236         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50237         (Link): New section.
50238
50239         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50240
50241 2007-04-06  Bruno Haible  <bruno@clisp.org>
50242
50243         Assume the 'long double' type.
50244         * m4/longdouble.m4: Remove file.
50245         * config/srclist.txt: Don't mention longdouble.m4.
50246         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50247         * lib/float+.h: Likewise.
50248         * lib/frexp.c: Likewise.
50249         * lib/printf-args.h: Likewise.
50250         * lib/printf-args.c: Likewise.
50251         * lib/printf-frexp.c: Likewise.
50252         * lib/printf-parse.c: Likewise.
50253         * lib/vasnprintf.c: Likewise.
50254         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50255         * m4/intl.m4: Likewise.
50256         * m4/isnanl.m4: Likewise.
50257         * m4/printf.m4: Likewise.
50258         * m4/printf-frexpl.m4: Likewise.
50259         * m4/vasnprintf.m4: Likewise.
50260         * modules/allocsa (Files): Remove m4/longdouble.m4.
50261         * modules/gettext (Files): Likewise.
50262         * modules/relocatable-prog-wrapper (Files): Likewise.
50263         * modules/vasnprintf (Files): Likewise.
50264         * modules/isnanl (Files): Likewise.
50265         (Include): Simplify.
50266         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50267         (Include): Simplify.
50268         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50269         (Include): Simplify.
50270         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50271         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50272         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50273         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50274         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50275         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50276         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50277         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50278         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50279         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50280         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50281         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50282         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50283         * tests/test-isnanl.c: Likewise.
50284         * tests/test-snprintf-posix.h: Likewise.
50285         * tests/test-sprintf-posix.h: Likewise.
50286         * tests/test-vasnprintf-posix.c: Likewise.
50287         * tests/test-vasnprintf-posix2.c: Likewise.
50288         * tests/test-vasprintf-posix.c: Likewise.
50289
50290 2007-04-06  Bruno Haible  <bruno@clisp.org>
50291
50292         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50293         * lib/math_.h [__DECC]: Include the overridden include file through
50294         #include_next, outside the double-inclusion guard.
50295         * lib/stdio_.h [__DECC]: Likewise.
50296         * lib/stdlib_.h [__DECC]: Likewise.
50297         * lib/string_.h [__DECC]: Likewise.
50298         * lib/time_.h [__DECC]: Likewise.
50299         * lib/wchar_.h [__DECC]: Likewise.
50300         * lib/wctype_.h [__DECC]: Likewise.
50301         * lib/inttypes_.h [__DECC]: Likewise.
50302         Reported by Albert Chin <china@thewrittenword.com> in
50303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50304
50305 2007-04-04  Eric Blake  <ebb9@byu.net>
50306
50307         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50308         1.5.x.
50309
50310 2007-04-04  Bruno Haible  <bruno@clisp.org>
50311
50312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50313         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50314
50315 2007-04-04  Bruno Haible  <bruno@clisp.org>
50316
50317         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50318         results for "%010a" of Infinity and NaN.
50319         * tests/test-vasprintf-posix.c (test_function): Likewise.
50320         * tests/test-snprintf-posix.h (test_function): Likewise.
50321         * tests/test-sprintf-posix.h (test_function): Likewise.
50322         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50323         * tests/test-printf-posix.h (test_function): Likewise.
50324         * tests/test-fprintf-posix.out: Update.
50325         Needed for FreeBSD 6.1.
50326
50327 2007-04-04  Bruno Haible  <bruno@clisp.org>
50328
50329         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50330         directly used by the gnulib modules nor by gnulib-tool.
50331
50332 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50333
50334         * DEPENDENCIES: Give overall description of version dependency
50335         desirability.  Use more-typical names for apps.
50336         Add shell, coreutils, diffutils, grep, tar, gzip.
50337
50338 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50339
50340         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50341
50342 2007-04-04  Karl Berry  <karl@gnu.org>
50343
50344         * MODULES.html.sh (func_module): missing '.
50345
50346 2007-04-03  Bruno Haible  <bruno@clisp.org>
50347
50348         * modules/argmatch-tests (Makefile.am): New variable
50349         test_argmatch_LDADD.
50350         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50351         * modules/array-list-tests (Makefile.am): New variable
50352         test_array_list_LDADD.
50353         * modules/array-oset-tests (Makefile.am): New variable
50354         test_array_oset_LDADD.
50355         * modules/avltree-list-tests (Makefile.am): New variable
50356         test_avltree_list_LDADD.
50357         * modules/avltree-oset-tests (Makefile.am): New variable
50358         test_avltree_oset_LDADD.
50359         * modules/avltreehash-list-tests (Makefile.am): New variable
50360         test_avltreehash_list_LDADD.
50361         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50362         test_canonicalize_lgpl_LDADD.
50363         * modules/carray-list-tests (Makefile.am): New variable
50364         test_carray_list_LDADD.
50365         * modules/dirname-tests (Makefile.am): New variable
50366         test_dirname_LDADD.
50367         * modules/linked-list-tests (Makefile.am): New variable
50368         test_linked_list_LDADD.
50369         * modules/linkedhash-list-tests (Makefile.am): New variable
50370         test_linkedhash_list_LDADD.
50371         * modules/rbtree-list-tests (Makefile.am): New variable
50372         test_rbtree_list_LDADD.
50373         * modules/rbtree-oset-tests (Makefile.am): New variable
50374         test_rbtree_oset_LDADD.
50375         * modules/rbtreehash-list-tests (Makefile.am): New variable
50376         test_rbtreehash_list_LDADD.
50377         * modules/xvasprintf-tests (Makefile.am): New variable
50378         test_xvasprintf_LDADD.
50379         Reported by Eric Blake.
50380
50381 2007-04-03  Eric Blake  <ebb9@byu.net>
50382
50383         * DEPENDENCIES: Weaken m4 requirements.
50384
50385 2007-04-03  Bruno Haible  <bruno@clisp.org>
50386
50387         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50388         * modules/isnanl-tests (configure.ac): Likewise.
50389
50390 2007-04-03  Ben Pfaff  <blp@gnu.org>
50391
50392         * modules/iconv_open: Add $(srcdir)/ to source directory
50393         references in Makefile fragments that call gperf, to fix VPATH
50394         builds.
50395
50396 2007-04-03  Bruno Haible  <bruno@clisp.org>
50397
50398         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50399         * lib/ldexpl.c: Undo last change.
50400
50401 2007-04-03  Bruno Haible  <bruno@clisp.org>
50402
50403         * modules/printf-frexpl (Depends-on): Undo last change.
50404         (Files): Add m4/ldexpl.m4.
50405
50406 2007-04-03  Bruno Haible  <bruno@clisp.org>
50407
50408         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50409         * modules/isnanl (Link): New section.
50410
50411         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50412         * modules/frexp (Link): New section.
50413
50414         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50415         * modules/frexpl (Link): New section.
50416
50417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50418         * modules/ldexpl (Link): New section.
50419
50420 2007-04-03  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/TEMPLATE-EXTENDED: New file.
50423         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50424
50425 2007-04-03  Bruno Haible  <bruno@clisp.org>
50426
50427         * DEPENDENCIES: New file.
50428         Suggested by Simon Josefsson.
50429
50430 2007-04-03  Bruno Haible  <bruno@clisp.org>
50431
50432         * doc/gnulib.texi: Escape @.
50433
50434 2007-04-03  James Youngman  <jay@gnu.org>
50435         and Paul Eggert  <eggert@cs.ucla.edu>
50436
50437         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50438         birthtime on all systems that have birthtime, not just those which
50439         use st_birthtimensec rather than st_birthtim.  Putting zero in
50440         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50441         that the birth time is not available for files on an NFS mount.
50442
50443 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50444
50445         * modules/memxor: Move back from crypto/, suggested by Bruno.
50446         * modules/crypto/hmac-sha1: Fix memxor dependency.
50447
50448         * modules/crypto/gc: Moved from ../.
50449
50450 2007-04-02  Eric Blake  <ebb9@byu.net>
50451
50452         * lib/ldexpl.c (includes): Avoid libm.
50453
50454         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50455
50456 2007-04-02  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50459         on IRIX.
50460
50461 2007-04-02  Bruno Haible  <bruno@clisp.org>
50462
50463         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50464         x86 or x86_64 platforms running MacOS X.
50465         Reported by Ryan Schmidt <@ryandesign.com>.
50466
50467 2007-04-02  Bruno Haible  <bruno@clisp.org>
50468
50469         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50470         i386.
50471
50472 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50473
50474         * modules/crypto/arcfour: Moved from ../.
50475         * modules/crypto/arcfour-tests: Moved from ../.
50476         * modules/crypto/arctwo: Moved from ../.
50477         * modules/crypto/arctwo-tests: Moved from ../.
50478         * modules/crypto/des: Moved from ../.
50479         * modules/crypto/des-tests: Moved from ../.
50480         * modules/crypto/gc-arcfour: Moved from ../.
50481         * modules/crypto/gc-arcfour-tests: Moved from ../.
50482         * modules/crypto/gc-arctwo: Moved from ../.
50483         * modules/crypto/gc-arctwo-tests: Moved from ../.
50484         * modules/crypto/gc-des: Moved from ../.
50485         * modules/crypto/gc-des-tests: Moved from ../.
50486         * modules/crypto/gc-hmac-md5: Moved from ../.
50487         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50488         * modules/crypto/gc-hmac-sha1: Moved from ../.
50489         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50490         * modules/crypto/gc-md2: Moved from ../.
50491         * modules/crypto/gc-md2-tests: Moved from ../.
50492         * modules/crypto/gc-md4: Moved from ../.
50493         * modules/crypto/gc-md4-tests: Moved from ../.
50494         * modules/crypto/gc-md5: Moved from ../.
50495         * modules/crypto/gc-md5-tests: Moved from ../.
50496         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50497         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50498         * modules/crypto/gc-random: Moved from ../.
50499         * modules/crypto/gc-rijndael: Moved from ../.
50500         * modules/crypto/gc-rijndael-tests: Moved from ../.
50501         * modules/crypto/gc-sha1: Moved from ../.
50502         * modules/crypto/gc-sha1-tests: Moved from ../.
50503         * modules/crypto/gc-tests: Moved from ../.
50504         * modules/crypto/hmac-md5: Moved from ../.
50505         * modules/crypto/hmac-md5-tests: Moved from ../.
50506         * modules/crypto/hmac-sha1: Moved from ../.
50507         * modules/crypto/hmac-sha1-tests: Moved from ../.
50508         * modules/crypto/md2: Moved from ../.
50509         * modules/crypto/md2-tests: Moved from ../.
50510         * modules/crypto/md4: Moved from ../.
50511         * modules/crypto/md4-tests: Moved from ../.
50512         * modules/crypto/md5: Moved from ../.
50513         * modules/crypto/md5-tests: Moved from ../.
50514         * modules/crypto/memxor: Moved from ../.
50515         * modules/crypto/rijndael: Moved from ../.
50516         * modules/crypto/rijndael-tests: Moved from ../.
50517         * modules/crypto/sha1: Moved from ../.
50518
50519 2007-03-30  James Youngman  <jay@gnu.org>
50520
50521         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50522         rename() to change the ctime of a file (because ctime is unaffected
50523         by rename on jfs2 on AIX 5.1).
50524         (main): Start by doing cleanup, in case a previous run failed leaving
50525         test files behind.
50526
50527 2007-03-31  Bruno Haible  <bruno@clisp.org>
50528
50529         Support old proprietary implementations of iconv.
50530         * modules/iconv_open: New file.
50531         * lib/iconv_.h: New file.
50532         * m4/iconv_h.m4: New file.
50533         * lib/iconv_open.c: New file.
50534         * lib/iconv_open-aix.gperf: New file.
50535         * lib/iconv_open-hpux.gperf: New file.
50536         * lib/iconv_open-irix.gperf: New file.
50537         * lib/iconv_open-osf.gperf: New file.
50538         * m4/iconv_open.m4: New file.
50539         * modules/linebreak (Depends-on): Add iconv_open.
50540         * modules/striconv (Depends-on): Likewise.
50541         * modules/striconveh (Depends-on): Likewise.
50542         * modules/unicodeio (Depends-on): Likewise.
50543         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50544         (iconv_t)(-1).
50545         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50546         conversion if cd is (iconv_t)(-1).
50547         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50548         is not possible.
50549
50550 2007-03-31  Bruno Haible  <bruno@clisp.org>
50551
50552         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50553         work on Solaris either. Protect also second use of "autodetect_jp".
50554
50555 2007-03-31  Bruno Haible  <bruno@clisp.org>
50556
50557         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50558         the function is not present.
50559
50560 2007-03-31  Bruno Haible  <bruno@clisp.org>
50561
50562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50563         the function is not present.
50564
50565 2007-03-31  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50568         a bug in HP-UX iconv_open().
50569
50570 2007-03-31  Bruno Haible  <bruno@clisp.org>
50571
50572         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50573         (Mathematics <math.h>): New section, add fpieee.
50574         (Input/output <stdio.h>): Add fseterr.
50575         (Mathematics <math.h>): New section, add printf-frexp.
50576         (Container data structures): Add sublist.
50577         (Core language properties): Add fpucw, inline.
50578         (Functions for greatest-width integer types <inttypes.h>): Add
50579         imaxabs, imaxdiv, inttypes.
50580         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50581         isnanl-nolibm, ldexp.
50582         (Mathematics <math.h>): New section, add printf-frexpl.
50583         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50584         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50585         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50586         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50587         (Unicode string functions): Add unistr/u*-mbtoucr.
50588         (Java): Add javacomp-script, javaexec-script.
50589         (C#): Add csharpcomp-script, csharpexec-script.
50590         (Support for building libraries and executables): Add havelib,
50591         relocatable-*.
50592         (Support for maintaining and releasing projects): Renamed from
50593         'Support for maintaining and release projects'. Add announce-gen.
50594
50595 2007-03-31  Bruno Haible  <bruno@clisp.org>
50596
50597         * README: Talk primarily about git.
50598         (git and CVS): Renamed from CVS.
50599         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50600         gnulib is available through git.
50601         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50602
50603 2007-03-30  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50606         * lib/poll_.h: Likewise.
50607         * lib/stat_.h: Likewise.
50608         * lib/sys_time_.h: Likewise.
50609         * lib/sysexit_.h: Likewise.
50610         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50611         * lib/stdbool_.h: Likewise.
50612         * lib/byteswap_.h: Add double-inclusion guard.
50613
50614 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50615
50616         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50617
50618 2007-03-30  Karl Berry  <karl@gnu.org>
50619
50620         * config/srclist-update: double space after USA in the license
50621         substitution, since that's how it's usually (?) written.
50622
50623 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50626         reported by Bruno Haible.
50627
50628 2007-03-29  Bruno Haible  <bruno@clisp.org>
50629
50630         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50631         a bug in AIX iconv().
50632
50633 2007-03-29  Bruno Haible  <bruno@clisp.org>
50634
50635         * modules/ldexpl-tests: New file.
50636         * tests/test-ldexpl.c: New file.
50637
50638 2007-03-29  Bruno Haible  <bruno@clisp.org>
50639
50640         * lib/ldexpl.c: Include fpucw.h.
50641         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50642         multiplication.
50643         * modules/ldexpl (Depends-on): Add fpucw.
50644
50645 2007-03-29  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/ldexpl: New file.
50648         * m4/ldexpl.m4: New file.
50649         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50650         set.
50651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50652         REPLACE_LDEXPL.
50653         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50654         REPLACE_LDEXPL.
50655         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50656         gl_FUNC_LDEXPL_WORKS.
50657         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50658         * modules/mathl (Files): Remove lib/ldexpl.c.
50659         (Depends-on): Add ldexpl.
50660
50661 2007-03-29  Bruno Haible  <bruno@clisp.org>
50662
50663         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50664
50665 2007-03-29  Bruno Haible  <bruno@clisp.org>
50666
50667         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50668         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50669         and possibly also HP-UX.
50670         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50671         work on AIX, IRIX, HP-UX, OSF/1.
50672         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50673         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50674         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50675         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50676         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50677         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50678
50679 2007-03-29  Bruno Haible  <bruno@clisp.org>
50680
50681         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50682
50683 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50684
50685         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50686         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50687
50688 2007-03-29  Eric Blake  <ebb9@byu.net>
50689
50690         * lib/acl-internal.h: Remove redundant include.
50691         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50692         Cygwin when a file is locked.
50693
50694 2007-03-29  Bruno Haible  <bruno@clisp.org>
50695
50696         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50697         file.
50698         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50699
50700 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50701
50702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50703         try to remove a parent directory if the child couldn't be removed
50704         (except for the first rmdir, which could fail because the child
50705         doesn't exist).  Problem reported by Jeff Blaine in
50706         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50707
50708 2007-03-28  Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/striconveh.c (utf8conv_carefully): New function.
50711         (mem_cd_iconveh_internal): Invoke it.
50712
50713 2007-03-28  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50716         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50717         input.
50718         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50719         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50720         unistr/u8-uctomb.
50721
50722 2007-03-28  Bruno Haible  <bruno@clisp.org>
50723
50724         * modules/unistr/u8-mbtoucr: New file.
50725         * lib/unistr/u8-mbtoucr.c: New file.
50726         * modules/unistr/u16-mbtoucr: New file.
50727         * lib/unistr/u16-mbtoucr.c: New file.
50728         * modules/unistr/u16-mbtoucr: New file.
50729         * lib/unistr/u16-mbtoucr.c: New file.
50730         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50731
50732 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50733             Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50736         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50737         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50738
50739         * m4/stdio_h.m4: Add stubs for vasprintf too.
50740
50741         * modules/stdio: Support vasprintf in sed command.
50742
50743         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50744         vasprintf.h.  Add stdio module indicator.
50745
50746         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50747         vasprintf.h.
50748
50749         * lib/vasprintf.h: File removed.
50750
50751         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50752         * lib/vasprintf.c: Ditto.
50753         * lib/xvasprintf.c: Ditto.
50754         * tests/test-vasprintf-posix.c: Ditto.
50755         * tests/test-vasprintf.c: Ditto.
50756
50757 2007-03-27  Bruno Haible  <bruno@clisp.org>
50758
50759         Make vasnprintf multithread-safe.
50760         * lib/vasnprintf.c (decimal_point_char): New function.
50761         (VASNPRINTF): Use it.
50762         Suggested by Simon Josefsson.
50763
50764 2007-03-27  Eric Blake  <ebb9@byu.net>
50765
50766         Support sub-second birthtime on cygwin.
50767         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50768         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50769         (get_stat_birthtime): Also work with st_birthtim.
50770
50771 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50772
50773         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50774         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50775         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50776         (get_stat_birthtime_ns): Simplify compile-time tests.
50777         (get_stat_birthtime): Change the API to look like
50778         get_stat_mtime etc., except return a negative tv_nsec on error.
50779         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50780         Don't check for "spare" fields.
50781         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50782         or for struct stat.st_birthtime, as these tests aren't used.
50783         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50784
50785 2007-03-27  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/stat-time.h: Include <sys/stat.h>.
50788
50789 2007-03-27  James Youngman  <jay@gnu.org>
50790
50791         * lib/stat-time.h (get_stat_birthtime): New function for
50792           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50793         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50794           and its variants.
50795         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50796         * modules/stat-time-test: New file.
50797         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50798
50799 2007-03-26  Bruno Haible  <bruno@clisp.org>
50800
50801         Better support of signalling NaNs.
50802         * lib/atanl.c: Include isnanl.h.
50803         (atanl): Perform test for NaN at the beginning of the function and
50804         through a call to isnanl.
50805         * lib/cosl.c: Include isnanl.h.
50806         (cosl): Perform test for NaN at the beginning of the function and
50807         through a call to isnanl.
50808         * lib/ldexpl.c: Include isnanl.h.
50809         (ldexpl): Perform test for NaN through a call to isnanl.
50810         * lib/logl.c: Include isnanl.h.
50811         (logl): Perform test for NaN at the beginning of the function and
50812         through a call to isnanl.
50813         * lib/sinl.c: Include isnanl.h.
50814         (sinl): Perform test for NaN at the beginning of the function and
50815         through a call to isnanl.
50816         * lib/sqrtl.c: Include isnanl.h.
50817         (sqrtl): Perform test for NaN at the beginning of the function and
50818         through a call to isnanl.
50819         * lib/tanl.c: Include isnanl.h.
50820         (tanl): Perform test for NaN at the beginning of the function and
50821         through a call to isnanl.
50822         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50823         * modules/mathl (Depends-on): Add isnanl.
50824
50825 2007-03-26  Eric Blake  <ebb9@byu.net>
50826
50827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50828         regression in logic sense of previous patch.
50829
50830 2007-03-26  Bruno Haible  <bruno@clisp.org>
50831
50832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50833         unportable shell command "if ! ...".
50834         Reported by Ralf Wildenhues.
50835
50836 2007-03-25  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50839         <sysexits.h> file, and only add EX_CONFIG.
50840         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50841         absolute file name and whether it is sufficient. Substitute also
50842         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50843         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50844         ABSOLUTE_SYSEXITS_H into sysexits.h.
50845
50846 2007-03-25  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50849         hints is NULL.
50850
50851 2007-03-25  Bruno Haible  <bruno@clisp.org>
50852
50853         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50854         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50855
50856 2007-03-25  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/vasnprintf.c: Include langinfo.h.
50859         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50860         multithread-safe.
50861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50862         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50863         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50864         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50865         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50866         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50867         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50868         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50869         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50870         Reported by Simon Josefsson.
50871
50872 2007-03-25  Bruno Haible  <bruno@clisp.org>
50873
50874         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50875         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50876         * modules/vasnprintf (Depends-on): Add stdint.
50877
50878 2007-03-25  Bruno Haible  <bruno@clisp.org>
50879
50880         * modules/fpieee: New file.
50881         * m4/fpieee.m4: New file.
50882         * modules/isnan-nolibm (Depends-on): Add fpieee.
50883         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50884         * modules/isnanl (Depends-on): Add fpieee.
50885
50886 2007-03-25  Bruno Haible  <bruno@clisp.org>
50887
50888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50889
50890 2007-03-25  Bruno Haible  <bruno@clisp.org>
50891
50892         Avoid test failures on IRIX 6.5.
50893         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50894         (main): Use it.
50895         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50896         macros.
50897         (main): Use them.
50898
50899 2007-03-25  Bruno Haible  <bruno@clisp.org>
50900
50901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50902         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50903         exists but doesn't work.
50904         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50905         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50907         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
50908         math.h.
50909
50910 2007-03-25  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50913         returns inf. Needed on IRIX 6.5.
50914
50915 2007-03-25  Bruno Haible  <bruno@clisp.org>
50916
50917         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50918         (main): Use isnanl instead of x != x idiom.
50919         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50920
50921         * tests/test-frexp.c: Include isnan.h.
50922         (main): Use isnan instead of x != x idiom.
50923         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50924
50925 2007-03-25  Bruno Haible  <bruno@clisp.org>
50926
50927         * tests/test-frexp.c (NaN): New function/macro.
50928         (main): Use it instead of 0.0 / 0.0.
50929         * tests/test-isnan.c (NaN): New function/macro.
50930         (main): Use it instead of 0.0 / 0.0.
50931         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50932         (test_function): Use it instead of 0.0 / 0.0.
50933         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50934         (test_function): Use it instead of 0.0 / 0.0.
50935         * tests/test-snprintf-posix.h (NaN): New function/macro.
50936         (test_function): Use it instead of 0.0 / 0.0.
50937         * tests/test-sprintf-posix.h (NaN): New function/macro.
50938         (test_function): Use it instead of 0.0 / 0.0.
50939         * tests/test-fprintf-posix.h (NaN): New function/macro.
50940         (test_function): Use it instead of 0.0 / 0.0.
50941         * tests/test-printf-posix.h (NaN): New function/macro.
50942         (test_function): Use it instead of 0.0 / 0.0.
50943
50944         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50945
50946 2007-03-25  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50949
50950 2007-03-25  Bruno Haible  <bruno@clisp.org>
50951
50952         * lib/regexec.c (merge_state_with_log): Make static.
50953
50954 2007-03-25  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/trigl.c (kernel_rem_pio2): Make static.
50957
50958 2007-03-25  Bruno Haible  <bruno@clisp.org>
50959
50960         * lib/sincosl.c (sincosl_table): Make static.
50961
50962 2007-03-25  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50965         if the compiler does not support C99.
50966
50967 2007-03-25  Bruno Haible  <bruno@clisp.org>
50968
50969         * modules/time (Makefile.am): Ensure all rule action lines start with a
50970         tab.
50971
50972 2007-03-24  Bruno Haible  <bruno@clisp.org>
50973
50974         * modules/tsearch-tests: New file.
50975         * tests/test-tsearch.sh: New file.
50976         * tests/test-tsearch.c: New file, mostly copied from glibc.
50977
50978         * modules/search-tests: New file.
50979         * tests/test-search.c: New file.
50980
50981         * modules/search: New file.
50982         * lib/search_.h: New file, incorporating lib/tsearch.h.
50983         * m4/search_h.m4: New file.
50984         * lib/tsearch.h: Remove file.
50985         * lib/tsearch.c: Include search.h instead of tsearch.h.
50986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50987         HAVE_TSEARCH.
50988         * modules/tsearch (Files): Remove lib/tsearch.h.
50989         (Depends-on): Add search.
50990         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50991         (Include): Change tsearch.h into search.h.
50992
50993 2007-03-24  Bruno Haible  <bruno@clisp.org>
50994
50995         * modules/fpucw: New file.
50996         * lib/fpucw.h: New file.
50997         * lib/frexp.c: Include fpucw.h.
50998         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50999         (FUNC): Use them.
51000         * lib/printf-frexp.c: Include fpucw.h.
51001         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51002         (FUNC): Use them.
51003         * lib/vasnprintf.c: Include fpucw.h.
51004         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51005         'long double' calculations.
51006         * tests/test-frexpl.c: Include fpucw.h.
51007         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51008         * tests/test-printf-frexpl.c: Include fpucw.h.
51009         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51010         * modules/frexpl (Depends-on): Add fpucw.
51011         * modules/printf-frexpl (Depends-on): Likewise.
51012         * modules/fprintf-posix (Depends-on): Likewise.
51013         * modules/snprintf-posix (Depends-on): Likewise.
51014         * modules/sprintf-posix (Depends-on): Likewise.
51015         * modules/vasnprintf-posix (Depends-on): Likewise.
51016         * modules/vasprintf-posix (Depends-on): Likewise.
51017         * modules/vfprintf-posix (Depends-on): Likewise.
51018         * modules/vsnprintf-posix (Depends-on): Likewise.
51019         * modules/vsprintf-posix (Depends-on): Likewise.
51020         * modules/frexpl-tests (Depends-on): Likewise.
51021         * modules/printf-frexpl-tests (Depends-on): Likewise.
51022
51023 2007-03-24  Bruno Haible  <bruno@clisp.org>
51024
51025         * lib/float+.h: New file.
51026         * lib/isnan.c: Include float+.h.
51027         (SIZE): New macro.
51028         (FUNC): Compare only SIZE bytes of the value.
51029         * lib/vasnprintf.c: Include float+.h.
51030         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51031         SIZEOF_LDBL or SIZEOF_DBL bytes.
51032         * modules/isnan-nolibm (Files): Add lib/float+.h.
51033         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51034         * modules/isnanl (Files): Add lib/float+.h.
51035         * modules/vasnprintf (Files): Add lib/float+.h.
51036
51037 2007-03-24  Bruno Haible  <bruno@clisp.org>
51038
51039         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51040         include isnanl-nolibm.h.
51041
51042 2007-03-24  Bruno Haible  <bruno@clisp.org>
51043
51044         * tests/test-read-file.c (main): Don't produce spurious output for
51045         expected situations. Make the test fail if it encountered unexpected
51046         results.
51047
51048 2007-03-24  Bruno Haible  <bruno@clisp.org>
51049
51050         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51051         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51052
51053 2007-03-24  Bruno Haible  <bruno@clisp.org>
51054
51055         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51056
51057 2007-03-24  Bruno Haible  <bruno@clisp.org>
51058
51059         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51060         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51061
51062         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51063         * modules/utf8-ucs4: Turn into a symbolic link to module
51064         unistr/u8-mbtouc.
51065
51066         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51067         utf8-ucs4-unsafe.
51068         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51069         unistr/u8-mbtouc-unsafe.
51070
51071         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51072         * modules/utf16-ucs4: Turn into a symbolic link to module
51073         unistr/u16-mbtouc.
51074
51075         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51076         utf16-ucs4-unsafe.
51077         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51078         unistr/u16-mbtouc-unsafe.
51079
51080         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51081         * modules/ucs4-utf8: Turn into a symbolic link to module
51082         unistr/u8-ubtomb.
51083
51084         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51085         * modules/ucs4-utf16: Turn into a symbolic link to module
51086         unistr/u16-ubtomb.
51087
51088 2007-03-24  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51091         Enable the function only if HAVE_INLINE.
51092         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51093         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51094         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51095         Enable the function only if HAVE_INLINE.
51096         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51097         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51098         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51099         Enable the function only if HAVE_INLINE.
51100         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51101         Enable the function only if HAVE_INLINE.
51102         * modules/utf8-ucs4: Update.
51103         * modules/utf8-ucs4-unsafe: Update.
51104         * modules/utf16-ucs4: Update.
51105         * modules/utf16-ucs4-unsafe: Update.
51106         * modules/ucs4-utf8: Update.
51107         * modules/ucs4-utf16: Update.
51108
51109 2007-03-24  Bruno Haible  <bruno@clisp.org>
51110
51111         * lib/utf8-ucs4.h: Remove file.
51112         * lib/utf8-ucs4-unsafe.h: Remove file.
51113         * lib/utf16-ucs4.h: Remove file.
51114         * lib/utf16-ucs4-unsafe.h: Remove file.
51115         * lib/ucs4-utf8.h: Remove file.
51116         * lib/ucs4-utf16.h: Remove file.
51117         * lib/unistr.h: Include their previous contents.
51118         * m4/utf-ucs4.m4: Remove file.
51119         * m4/ucs4-utf.m4: Remove file.
51120         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51121         (Depends-on): Add unistr/base.
51122         (configure.ac): Remove gl_UTF_UCS4.
51123         (Makefile.am): Update.
51124         (Include): Change to unistr.h.
51125         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51126         (Depends-on): Add unistr/base.
51127         (configure.ac): Remove gl_UTF_UCS4.
51128         (Makefile.am): Update.
51129         (Include): Change to unistr.h.
51130         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51131         (Depends-on): Add unistr/base.
51132         (configure.ac): Remove gl_UTF_UCS4.
51133         (Makefile.am): Update.
51134         (Include): Change to unistr.h.
51135         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51136         (Depends-on): Add unistr/base.
51137         (configure.ac): Remove gl_UTF_UCS4.
51138         (Makefile.am): Update.
51139         (Include): Change to unistr.h.
51140         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51141         (Depends-on): Add unistr/base.
51142         (configure.ac): Remove gl_UCS4_UTF.
51143         (Makefile.am): Update.
51144         (Include): Change to unistr.h.
51145         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51146         (Depends-on): Add unistr/base.
51147         (configure.ac): Remove gl_UCS4_UTF.
51148         (Makefile.am): Update.
51149         (Include): Change to unistr.h.
51150         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51151         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51152         utf8-ucs4-unsafe.h.
51153         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51154         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51155         utf16-ucs4-unsafe.h.
51156         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51157         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51158         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51159         * lib/unistr/u8-strchr.c: Likewise.
51160         * lib/unistr/u8-strrchr.c: Likewise.
51161         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51162         * lib/unistr/u16-strchr.c: Likewise.
51163         * lib/unistr/u16-strrchr.c: Likewise.
51164         * lib/striconveh.c: Update.
51165         * lib/linebreak.c: Update.
51166
51167 2007-03-24  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51170         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51171
51172 2007-03-22  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51175
51176 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51177
51178         * MODULES.html.sh (File system functions): New module write-any-file.
51179         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51180         * m4/write-any-file.m4: New files.
51181
51182 2007-03-23  Eric Blake  <ebb9@byu.net>
51183
51184         * gnulib-tool: Rearrange space-tab sequences, since some editors
51185         like to eat them.
51186
51187 2007-03-23  Eric Blake  <ebb9@byu.net>
51188
51189         * lib/version-etc.c (version_etc_va): Update license wording to
51190         be more concise.  Recommended by Richard Stallman.
51191
51192 2007-03-22  Bruno Haible  <bruno@clisp.org>
51193
51194         * lib/poll.c (MSG_PEEK): New fallback definition.
51195
51196 2007-03-22  Bruno Haible  <bruno@clisp.org>
51197
51198         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51199         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51200         (main): Update.
51201         Fixes a compilation error on BeOS.
51202
51203 2007-03-22  Bruno Haible  <bruno@clisp.org>
51204
51205         * modules/frexpl-tests: New file.
51206         * tests/test-frexpl.c: New file.
51207
51208         * modules/frexpl: New file.
51209         * m4/frexpl.m4: New file.
51210         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51211         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51213         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51214         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51215         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51216
51217 2007-03-22  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/frexpl.c: Share code with lib/frexp.c.
51220         * modules/mathl (Files): Add lib/frexp.c.
51221         (Depends-on): Add isnanl-nolibm.
51222
51223 2007-03-22  Bruno Haible  <bruno@clisp.org>
51224
51225         * modules/printf-frexp (Files): Add m4/frexp.m4.
51226         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51227         only if the found frexp function actually works.
51228
51229 2007-03-22  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/frexp.c: Remove older implementation that uses divisions.
51232
51233 2007-03-21  Bruno Haible  <bruno@clisp.org>
51234
51235         * modules/frexp-tests: New file.
51236         * tests/test-frexp.c: New file.
51237
51238         * modules/frexp: New file.
51239         * lib/frexp.c: New file.
51240         * m4/frexp.m4: New file.
51241         * lib/math_.h (frexp): New declaration.
51242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51243         REPLACE_FREXP.
51244         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51245
51246 2007-03-21  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/isnanl-tests: New file.
51249         * tests/test-isnanl.c: New file.
51250
51251         * modules/isnanl: New file.
51252         * lib/isnanl.h: New file.
51253         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51254         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51255         gl_FUNC_ISNANL_WORKS.
51256         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51257         New macros.
51258
51259 2007-03-21  Bruno Haible  <bruno@clisp.org>
51260
51261         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51262         lib/isnanl.h.
51263         (Include): Update.
51264         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51265         * lib/vasnprintf.c: Update.
51266         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51267         tests/test-isnanl.h, remove tests/test-isnanl.c.
51268         (Makefile.am): Update.
51269         * tests/test-isnanl-nolibm.c: New file.
51270         * tests/test-isnanl.h: New file.
51271         * tests/test-isnanl.c: Remove file.
51272
51273 2007-03-21  Jim Meyering  <jim@meyering.net>
51274
51275         When trying to open ".", treat ESTALE like EACCES.
51276         * lib/savewd.c (savewd_save): Resort to forking not just upon
51277         failure with EACCES, but also when errno is ESTALE.
51278
51279 2007-03-20  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51282         Needed on AIX 5.1. Reported by Matthew Woehlke.
51283
51284 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         Suggestions by Bruno Haible:
51287         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51288         our own.
51289         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51290         * modules/acl (Depends-on): Add gettext.
51291
51292 2007-03-19  Bruno Haible  <bruno@clisp.org>
51293
51294         * modules/iconvme: Remove file.
51295         * lib/iconvme.h: Remove file.
51296         * lib/iconvme.c: Remove file.
51297         * m4/iconvme.m4: Remove file.
51298
51299 2007-03-19  Bruno Haible  <bruno@clisp.org>
51300
51301         * doc/relocatable-maint.texi: Break long shell script line.
51302         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51303
51304 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51305
51306         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51307         handle file_has_acl.
51308         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51309         * lib/acl.c: Move header inclusions and related macro defns into
51310         lib/acl-internal.h.
51311         (S_ISLNK): Remove defn, since that's now done for us.
51312         (file_has_acl): Move to lib/file-has-acl.c.
51313         Call acl_trivial if available.  This is the crucial part of the fix.
51314         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51315         shared within the library.  Rewrite a bit, partly to make it compatible
51316         with the GNU coding style.
51317         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51318         Remove unnecessary double-quotes.
51319         Don't test for acl_to_text; the build will catch that.
51320         Replace acl_entries if it doesn't exist and it is needed.
51321         Check for -lsec and acl_trivial (as used on Solaris 10).
51322         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51323         lib/file-has-acl.c.
51324         (Depends-on): Add sys_stat, for S_ISLNK.
51325
51326 2007-03-19  Ben Pfaff  <blp@gnu.org>
51327
51328         * doc/gnulib.texi: Fix typos.
51329         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51330
51331 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51332
51333         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51334         If size is zero here, buf must be zero.
51335
51336 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51337
51338         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51339         <bruno@clisp.org>.
51340
51341 2007-03-18  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51344         Suggested by Eric Blake.
51345
51346 2007-03-18  Ben Pfaff  <blp@gnu.org>
51347
51348         * doc/relocatable.texi: Recommend using as prefix a directory
51349         that does not exist and will never be created.  Based on
51350         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51351         and others.
51352
51353 2007-03-17  Bruno Haible  <bruno@clisp.org>
51354
51355         * lib/fchownat.c: Include lchown.h.
51356
51357 2007-03-17  Bruno Haible  <bruno@clisp.org>
51358
51359         Fix endless loop when the given allocated size was > INT_MAX.
51360         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51361         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51362         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51363         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51364         * lib/sprintf.c (sprintf): Likewise.
51365
51366 2007-03-17  Bruno Haible  <bruno@clisp.org>
51367
51368         * tests/test-argp-2.sh (func_compare): Output a context diff.
51369
51370 2007-03-17  Bruno Haible  <bruno@clisp.org>
51371
51372         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51373         locale's decimal-point character.
51374
51375 2007-03-17  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51378         before comparing it. Needed because on some platforms (e.g. x86) a
51379         'long double' occupies less bytes than sizeof (long double).
51380
51381 2007-03-17  Bruno Haible  <bruno@clisp.org>
51382
51383         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51384         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51385         * tests/test-getaddrinfo.c (simple): Likewise.
51386         * tests/test-read-file.c (main): Likewise.
51387
51388 2007-03-17  Bruno Haible  <bruno@clisp.org>
51389
51390         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51391
51392 2007-03-17  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51395         unused variable.
51396
51397 2007-03-17  Bruno Haible  <bruno@clisp.org>
51398
51399         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51400         * tests/test-c-strncasecmp.c: Likewise.
51401
51402 2007-03-17  Bruno Haible  <bruno@clisp.org>
51403
51404         * modules/stdlib (Depends-on): Add unistd.
51405         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51406         Needed for MacOS X 10.3.
51407
51408 2007-03-17  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51411
51412 2007-03-17  Bruno Haible  <bruno@clisp.org>
51413
51414         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51415
51416 2007-03-17  Bruno Haible  <bruno@clisp.org>
51417
51418         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51419         to reflect files copied from gnulib (with or without modifications).
51420         Suggested by Jim Meyering.
51421
51422 2007-03-17  Eric Blake  <ebb9@byu.net>
51423
51424         * NEWS: Document stdlib change from 2007-02-18.
51425
51426 2007-03-17  Jim Meyering  <jim@meyering.net>
51427
51428         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51429         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51430         someone uses a name containing shell meta-characters.
51431         Reported by Alfred M. Szmidt.
51432
51433         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51434
51435 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51436
51437         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51438         and copy gettext configuration files only if configure.ac contains
51439         a use of AM_GNU_GETTEXT_VERSION.
51440
51441 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51442
51443         * build-aux/bootstrap (gnulib_name): New variable.
51444         (gnulib_tool_options): Use it.
51445
51446 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51447
51448         * tests/test-des.c: Use new namespace.
51449
51450 2007-03-15  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51453         Reported by James Youngman <jay@gnu.org>.
51454
51455 2007-03-15  Bruno Haible  <bruno@clisp.org>
51456
51457         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51458         declared prototype. Needed with cc on OSF/1 5.1.
51459
51460 2007-03-15  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51463         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51464         (struct gl_list_implementation): Add dispose_fn argument to the
51465         'create_empty', 'create' methods.
51466         (struct gl_list_impl_base): Add field 'dispose_fn'.
51467         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51468         argument.
51469         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51470         dispose_fn argument.
51471         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51472         dispose_fn on the dropped values.
51473         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51474         dispose_fn argument.
51475         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51476         dropped values.
51477         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51478         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51479         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51480         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51481         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51482         argument.
51483         (gl_tree_list_free): Call dispose_fn on the dropped values.
51484         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51485         the dropped values.
51486         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51487         Add dispose_fn argument.
51488         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51489         Call dispose_fn on the dropped values.
51490         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51491         Add dispose_fn argument.
51492         (gl_sublist_create): Initialize the 'dispose_fn' field.
51493         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51494         * tests/test-array_list.c (main): Update.
51495         * tests/test-carray_list.c (main): Update.
51496         * tests/test-avltree_list.c (main): Update.
51497         * tests/test-rbtree_list.c (main): Update.
51498         * tests/test-avltreehash_list.c (main): Update.
51499         * tests/test-rbtreehash_list.c (main): Update.
51500         * tests/test-linked_list.c (main): Update.
51501         * tests/test-linkedhash_list.c (main): Update.
51502         * tests/test-array_oset.c (main): Update.
51503
51504 2007-03-15  Bruno Haible  <bruno@clisp.org>
51505
51506         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51507         (gl_oset_create_empty): Add dispose_fn argument.
51508         (struct gl_oset_implementation): Add dispose_fn argument to
51509         'create_empty' method.
51510         (struct gl_oset_impl_base): Add dispose_fn field.
51511         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51512         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51513         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51514         values.
51515         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51516         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51517         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51518         dropped value.
51519         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51520         dropped value.
51521         * tests/test-array_oset.c (main): Update.
51522         * tests/test-avltree_oset.c (main): Update.
51523         * tests/test-rbtree_oset.c (main): Update.
51524         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51525
51526 2007-03-13  Bruno Haible  <bruno@clisp.org>
51527
51528         * tests/test-stdbool.c (i): Update after last patch.
51529
51530 2007-03-12  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51533         the iswprint macro. Needed on Solaris 2.5.1.
51534
51535 2007-03-12  Bruno Haible  <bruno@clisp.org>
51536
51537         * tests/test-printf-frexp.c (main): Declare x as volatile.
51538
51539 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51540
51541         * doc/gnulib.texi (Build robot for gnulib): New section.
51542
51543 2007-03-12  Jim Meyering  <jim@meyering.net>
51544
51545         * build-aux/bootstrap: New file.
51546         * build-aux/bootstrap.conf: New file, from coreutils.
51547
51548 2007-03-11  Bruno Haible  <bruno@clisp.org>
51549
51550         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51551
51552 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51553
51554         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51555         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51556         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51557
51558 2007-03-11  Bruno Haible  <bruno@clisp.org>
51559
51560         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51561         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51562
51563 2007-03-11  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51566         formula. Needed for SunPRO C 5.0.
51567
51568 2007-03-11  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/long-options (Depends-on): Add getopt.
51571
51572 2007-03-11  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/modechange (Depends-on): Add stdbool.
51575
51576 2007-03-11  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/i-ring (Depends-on): Add stdbool.
51579
51580 2007-03-11  Bruno Haible  <bruno@clisp.org>
51581
51582         * modules/gc-des (Depends-on): Add stdbool.
51583
51584 2007-03-11  Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51587
51588 2007-03-11  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51591
51592 2007-03-11  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51595
51596 2007-03-11  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/vasnprintf.c (sprintf): Undefine.
51599
51600 2007-03-11  Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51603         initializers in SunPRO C and Compaq C compilers.
51604
51605 2007-03-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51608         decrementing code ANSI C compliant.
51609
51610 2007-03-11  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51613         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51614
51615 2007-03-11  Bruno Haible  <bruno@clisp.org>
51616
51617         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51618         <stdbool.h> substitute doesn't pass.
51619
51620 2007-03-11  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51623
51624 2007-03-11  Bruno Haible  <bruno@clisp.org>
51625
51626         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51627         script, for submission to autobuild.josefsson.org.
51628
51629 2007-03-10  Bruno Haible  <bruno@clisp.org>
51630
51631         * modules/canonicalize-lgpl-tests: New file.
51632         * tests/test-canonicalize-lgpl.sh: New file.
51633         * tests/test-canonicalize-lgpl.c: New file.
51634
51635         * modules/c-strcase-tests: New file.
51636         * tests/test-c-strcase.sh: New file.
51637         * tests/test-c-strcasecmp.c: New file.
51638         * tests/test-c-strncasecmp.c: New file.
51639
51640         * modules/atexit-tests: New file.
51641         * tests/test-atexit.sh: New file.
51642         * tests/test-atexit.c: New file.
51643
51644 2007-03-10  Bruno Haible  <bruno@clisp.org>
51645
51646         * tests/test-binary-io.sh: Use temporary filenames that are not so
51647         likely to clash with those of other tests (in a parallel make).
51648         * tests/test-binary-io.c: Likewise.
51649
51650 2007-03-10  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51653         fallback; use #error instead.
51654         Suggested by Simon Josefsson.
51655
51656 2007-03-10  Bruno Haible  <bruno@clisp.org>
51657
51658         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51659         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51660         first and the last.
51661
51662 2007-03-10  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51665
51666 2007-03-10  Bruno Haible  <bruno@clisp.org>
51667
51668         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51669         "make distcheck".
51670         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51671         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51672         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51673
51674 2007-03-10  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51677         variable.
51678         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51679         variable.
51680
51681 2007-03-09  Eric Blake  <ebb9@byu.net>
51682         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51683
51684         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51685         types are not being provided by gnulib.
51686         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51687         types are supported.
51688
51689 2007-03-10  Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/stdio_.h (__attribute__): New macro.
51692         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51693         vsprintf): Specify __attribute__ __format__ for GCC.
51694         Suggested by Eric Blake.
51695
51696 2007-03-09  Bruno Haible  <bruno@clisp.org>
51697
51698         * modules/printf-posix-tests: New file.
51699         * tests/test-printf-posix.sh: New file.
51700         * tests/test-printf-posix.c: New file.
51701
51702         * modules/printf-posix: New file.
51703         * lib/printf.c: New file.
51704         * m4/printf-posix-rpl.m4: New file.
51705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51706         REPLACE_PRINTF.
51707         * lib/stdio_.h (printf): New declaration.
51708         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51709         ____strfmon____): New macros.
51710         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51711         REPLACE_PRINTF.
51712
51713 2007-03-09  Bruno Haible  <bruno@clisp.org>
51714
51715         * tests/test-vasnprintf-posix2.sh: New file.
51716         * tests/test-vasnprintf-posix2.c: New file.
51717         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51718         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51719         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51720
51721         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51722         a locale dependent decimal point, rather than always '.'.
51723
51724 2007-03-09  Eric Blake  <ebb9@byu.net>
51725
51726         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51727         spite of platforms like Tandem/NSK that define it to -1.
51728
51729 2007-03-08  Bruno Haible  <bruno@clisp.org>
51730
51731         * modules/vprintf-posix-tests: New file.
51732         * tests/test-vprintf-posix.sh: New file.
51733         * tests/test-vprintf-posix.c: New file.
51734         * tests/test-printf-posix.h: New file.
51735
51736         * modules/vprintf-posix: New file.
51737         * lib/vprintf.c: New file.
51738         * m4/vprintf-posix.m4: New file.
51739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51740         REPLACE_VPRINTF.
51741         * lib/stdio_.h (vprintf): New declaration.
51742         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51743         REPLACE_VPRINTF.
51744
51745 2007-03-08  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/fprintf-posix-tests: New file.
51748         * tests/test-fprintf-posix.sh: New file.
51749         * tests/test-fprintf-posix.c: New file.
51750
51751         * modules/fprintf-posix: New file.
51752         * lib/fprintf.c: New file.
51753         * m4/fprintf-posix.m4: New file.
51754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51755         REPLACE_FPRINTF.
51756         * lib/stdio_.h (fprintf): New declaration.
51757         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51758         REPLACE_FPRINTF.
51759
51760 2007-03-08  Bruno Haible  <bruno@clisp.org>
51761
51762         * modules/vfprintf-posix-tests: New file.
51763         * tests/test-vfprintf-posix.sh: New file.
51764         * tests/test-vfprintf-posix.c: New file.
51765         * tests/test-fprintf-posix.h: New file.
51766         * tests/test-fprintf-posix.out: New file.
51767
51768         * modules/vfprintf-posix: New file.
51769         * lib/vfprintf.c: New file.
51770         * m4/vfprintf-posix.m4: New file.
51771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51772         REPLACE_VFPRINTF.
51773         * lib/stdio_.h (vfprintf): New declaration.
51774         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51775         REPLACE_VFPRINTF.
51776
51777 2007-03-08  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51780
51781 2007-03-08  Bruno Haible  <bruno@clisp.org>
51782
51783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51784         instead of 'expr' invocations.
51785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51790         Suggested by Paul Eggert.
51791
51792 2007-03-08  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/fseterr-tests: New file.
51795         * tests/test-fseterr.c: New file.
51796
51797         * modules/fseterr: New file.
51798         * lib/fseterr.h: New file.
51799         * lib/fseterr.c: New file.
51800
51801 2007-03-08  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51804         * lib/getopt_.h: Likewise.
51805         * lib/mbswidth.h: Likewise.
51806         * lib/setenv.h: Likewise.
51807         * lib/vasnprintf.h: Likewise.
51808         * lib/vasprintf.h: Likewise.
51809         * lib/verror.h: Likewise.
51810         * lib/xsetenv.h: Likewise.
51811         * lib/xvasprintf.h: Likewise.
51812
51813 2007-03-08  Jim Meyering  <jim@meyering.net>
51814
51815         * users.txt: Add parted.
51816
51817         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51818
51819 2007-03-07  Bruno Haible  <bruno@clisp.org>
51820
51821         * m4/printf.m4: Make the shell script snippets copy&pastable.
51822
51823 2007-03-02  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/netinet_in_.h: New file.
51826         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51827         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51828         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51829         (Depends-on): Add absolute-header.
51830         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51831         into netinet/in.h.
51832
51833 2007-03-03  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/sys_select_.h: New file.
51836         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51837         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51838         * modules/sys_select (Files): Add lib/sys_select_.h.
51839         (Depends-on): Add absolute-header.
51840         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51841         into sys/select.h.
51842
51843 2007-03-02  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51846         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51847         values.
51848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51849         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51850         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51851         * modules/sys_socket (Depends-on): Add absolute-header.
51852         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51853         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51854         (Include): Remove requirement of inclusion of <sys/types.h>.
51855
51856 2007-03-02  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/byteswap_.h (bswap_32): Fix formula.
51859
51860 2007-03-06  Bruno Haible  <bruno@clisp.org>
51861
51862         * modules/sprintf-posix-tests: New file.
51863         * tests/test-sprintf-posix.c: New file.
51864
51865         * modules/sprintf-posix: New file.
51866         * lib/sprintf.c: New file.
51867         * m4/sprintf-posix.m4: New file.
51868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51869         REPLACE_SPRINTF.
51870         * lib/stdio_.h (sprintf): New declaration.
51871         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51872         REPLACE_SPRINTF.
51873
51874 2007-03-06  Bruno Haible  <bruno@clisp.org>
51875
51876         * modules/vsprintf-posix-tests: New file.
51877         * tests/test-vsprintf-posix.c: New file.
51878         * tests/test-sprintf-posix.h: New file.
51879
51880         * modules/vsprintf-posix: New file.
51881         * lib/vsprintf.c: New file.
51882         * m4/vsprintf-posix.m4: New file.
51883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51884         REPLACE_VSPRINTF.
51885         * lib/stdio_.h (vsprintf): New declaration.
51886         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51887         REPLACE_VSPRINTF.
51888
51889 2007-03-06  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/vsnprintf (Depend-on): Remove minmax.
51892
51893 2007-03-06  Bruno Haible  <bruno@clisp.org>
51894
51895         * modules/snprintf-posix-tests: New file.
51896         * tests/test-snprintf-posix.c: New file.
51897
51898         * modules/snprintf-posix: New file.
51899         * m4/snprintf-posix.m4: New file.
51900         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51901         gl_FUNC_SNPRINTF.
51902         (gl_FUNC_SNPRINTF): Invoke it.
51903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51904         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51905         is set.
51906         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51907
51908 2007-03-06  Bruno Haible  <bruno@clisp.org>
51909
51910         * modules/vsnprintf-posix-tests: New file.
51911         * tests/test-vsnprintf-posix.c: New file.
51912         * tests/test-snprintf-posix.h: New file.
51913
51914         * modules/vsnprintf-posix: New file.
51915         * m4/vsnprintf-posix.m4: New file.
51916         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51917         gl_FUNC_VSNPRINTF.
51918         (gl_FUNC_VSNPRINTF): Invoke it.
51919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51920         * lib/stdio_.h (vsnprintf): Define as a replacement if
51921         REPLACE_VSNPRINTF is set.
51922         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51923
51924 2007-03-06  Bruno Haible  <bruno@clisp.org>
51925
51926         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51928
51929 2007-03-06  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51932         (asinl): Declare also if HAVE_DECL_ASINL is set.
51933         (atanl): Declare also if HAVE_DECL_ATANL is set.
51934         (ceill): Declare also if HAVE_DECL_CEILL is set.
51935         (cosl): Declare also if HAVE_DECL_COSL is set.
51936         (expl): Declare also if HAVE_DECL_EXPL is set.
51937         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51938         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51939         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51940         (logl): Declare also if HAVE_DECL_LOGL is set.
51941         (sinl): Declare also if HAVE_DECL_SINL is set.
51942         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51943         (tanl): Declare also if HAVE_DECL_TANL is set.
51944         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51946         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51947         declaration of frexpl, ldexpl.
51948         * modules/printf-frexpl (Depends-on): Add math.
51949         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51950
51951 2007-03-05  Bruno Haible  <bruno@clisp.org>
51952
51953         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51954         frexpl and ldexpl are declared.
51955         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51956
51957 2007-03-05  Bruno Haible  <bruno@clisp.org>
51958
51959         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51960         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51961
51962 2007-03-05  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/stdio_.h: Include <stddef.h>.
51965
51966 2007-03-05  Bruno Haible  <bruno@clisp.org>
51967
51968         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51969
51970 2007-03-05  Bruno Haible  <bruno@clisp.org>
51971
51972         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51973         NetBSD 4, from Ralf Wildenhues.
51974
51975 2007-03-04  Bruno Haible  <bruno@clisp.org>
51976
51977         * lib/vasprintf.h: Update #if logic for the case when the functions
51978         exist but are overridden.
51979
51980 2007-03-04  Bruno Haible  <bruno@clisp.org>
51981
51982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51983         implementations: glibc-2.4 and MacOS X 10.3.
51984         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51985         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51986         * tests/test-vasprintf-posix.c (test_function): Likewise.
51987
51988 2007-03-04  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/vasprintf-posix-tests: New file.
51991         * tests/test-vasprintf-posix.c: New file.
51992
51993         * modules/vasprintf-posix: New file.
51994         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51995         defined.
51996         * m4/vasprintf-posix.m4: New file.
51997         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51998         gl_FUNC_VASPRINTF.
51999         (gl_FUNC_VASPRINTF): Invoke it.
52000         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52001         here.
52002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52003
52004 2007-03-04  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52007         REPLACE_GETTIMEOFDAY.
52008         * modules/sys_time (Makefile.am): Likewise.
52009         * m4/sys_time_h.m4: Likewise.
52010         * m4/gettimeofday.m4: Likewise.
52011
52012 2007-03-04  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/vasnprintf-posix-tests: New file.
52015         * tests/test-vasnprintf-posix.c: New file.
52016
52017         * modules/vasnprintf-posix: New file.
52018         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52019         printf-frexpl.h.
52020         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52021         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52022         REPLACE_VASNPRINTF is defined.
52023         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52024         gl_FUNC_VASNPRINTF.
52025         (gl_FUNC_VASNPRINTF): Invoke it.
52026         * m4/vasnprintf-posix.m4: New file.
52027         * m4/printf.m4: New file.
52028
52029 2007-03-04  Bruno Haible  <bruno@clisp.org>
52030
52031         Compile progreloc.c only if --enable-relocatable is specified.
52032         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52033         if --enable-relocatable was specified.
52034         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52035         lib_SOURCES.
52036
52037 2007-03-04  Jim Meyering  <jim@meyering.net>
52038
52039         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52040         Use it consistently, rather than enumerating errno constants.
52041
52042 2007-03-04  Bruno Haible  <bruno@clisp.org>
52043
52044         * modules/xvasprintf-tests: New file.
52045         * tests/test-xvasprintf.c: New file.
52046
52047         * modules/vasprintf-tests: New file.
52048         * tests/test-vasprintf.c: New file.
52049
52050         * modules/vasnprintf-tests: New file.
52051         * tests/test-vasnprintf.c: New file.
52052
52053         * modules/vsnprintf-tests: New file.
52054         * tests/test-vsnprintf.c: New file.
52055
52056         * modules/snprintf-tests: New file.
52057         * tests/test-snprintf.c: New file.
52058
52059 2007-03-04  Bruno Haible  <bruno@clisp.org>
52060
52061         Compile relocatable.c only if --enable-relocatable is specified.
52062         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52063         gl_RELOCATABLE_LIBRARY.
52064         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52065         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52066         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52067         gl_RELOCATABLE_LIBRARY.
52068         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52069         (Makefile.am): Remove lib_SOURCES.
52070         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52071         gl_RELOCATABLE_LIBRARY.
52072         (Makefile.am): Remove lib_SOURCES.
52073         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52074         always.
52075         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52076         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52077
52078 2007-03-04  Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/argmatch-tests: New file.
52081         * tests/test-argmatch.c: New file.
52082
52083         * tests/test-allocsa.c (main): Halve the number of loop runs.
52084
52085         * modules/alloca-opt-tests: New file.
52086         * tests/test-alloca-opt.c: New file.
52087
52088 2007-03-04  Jim Meyering  <jim@meyering.net>
52089
52090         Work around difference between Linux ACLs and Solaris 10 ZFS.
52091         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52092         for EINVAL.
52093
52094 2007-03-03  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/relocatable-prog (Depends-on): Add back progreloc's
52097         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52098
52099 2007-03-03  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52102         * modules/relocatable-lib: New file.
52103
52104 2007-03-03  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/relocatable-prog: Renamed from modules/relocatable.
52107         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52108
52109 2007-03-03  Bruno Haible  <bruno@clisp.org>
52110
52111         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52112         m4/relocatable-lib.m4.
52113         (Depends-on): Remove 'relocatable'.
52114         (configure.ac): Add gl_RELOCATABLE_NOP.
52115
52116 2007-03-03  Bruno Haible  <bruno@clisp.org>
52117
52118         * modules/relocatable-prog-wrapper: New file.
52119         * modules/relocatable (Depends-on): Add it. Remove all other
52120         dependencies except progname.
52121         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52122
52123         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52124         (gl_FUNC_STRERROR): Nop.
52125         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52126
52127         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52128         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52129
52130         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52131         (gl_FUNC_READLINK): Update.
52132
52133         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52134
52135 2007-03-03  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52138         * modules/xreadlink (Depends-on): Add unistd.
52139         * modules/xreadlink-with-size (Depends-on): Likewise.
52140
52141 2007-03-03  Bruno Haible  <bruno@clisp.org>
52142
52143         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52144         extracted from gt_FUNC_SETENV.
52145         (gt_FUNC_SETENV): Remove macro.
52146         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52147         remove gt_FUNC_SETENV.
52148
52149 2007-03-03  Bruno Haible  <bruno@clisp.org>
52150
52151         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52152         ENABLE_RELOCATABLE here.
52153         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52154
52155 2007-03-03  Bruno Haible  <bruno@clisp.org>
52156
52157         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52158         * tests/test-rbtreehash_list.c: Include progname.h.
52159         (main): Call set_program_name.
52160
52161         * modules/rbtree-oset-tests (Depends-on): Add progname.
52162         * tests/test-rbtree_oset.c: Include progname.h.
52163         (main): Call set_program_name.
52164
52165         * modules/rbtree-list-tests (Depends-on): Add progname.
52166         * tests/test-rbtree_list.c: Include progname.h.
52167         (main): Call set_program_name.
52168
52169         * modules/linked-list-tests (Depends-on): Add progname.
52170         * tests/test-linked_list.c: Include progname.h.
52171         (main): Call set_program_name.
52172
52173 2007-03-03  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52176         All uses of __restrict changed to _Restrict_.
52177         * lib/glob_.h (__restrict): Remove macro.
52178
52179 2007-03-02  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/gettext (configure.ac): Require gettext infrastructure
52182         from version 0.16.1.
52183
52184 2007-03-02  Bruno Haible  <bruno@clisp.org>
52185
52186         * modules/linkedhash-list-tests (Depends-on): Add progname.
52187         * tests/test-linkedhash_list.c: Include progname.h.
52188         (main): Call set_program_name.
52189
52190         * modules/carray-list-tests (Depends-on): Add progname.
52191         * tests/test-carray_list.c: Include progname.h.
52192         (main): Call set_program_name.
52193
52194         * modules/avltreehash-list-tests (Depends-on): Add progname.
52195         * tests/test-avltreehash_list.c: Include progname.h.
52196         (main): Call set_program_name.
52197
52198         * modules/avltree-oset-tests (Depends-on): Add progname.
52199         * tests/test-avltree_oset.c: Include progname.h.
52200         (main): Call set_program_name.
52201
52202         * modules/avltree-list-tests (Depends-on): Add progname.
52203         * tests/test-avltree_list.c: Include progname.h.
52204         (main): Call set_program_name.
52205
52206         * modules/array-oset-tests (Depends-on): Add progname.
52207         * tests/test-array_oset.c: Include progname.h.
52208         (main): Call set_program_name.
52209
52210         * modules/array-list-tests (Depends-on): Add progname.
52211         * tests/test-array_list.c: Include progname.h.
52212         (main): Call set_program_name.
52213
52214         * modules/argp-tests (Depends-on): Add progname.
52215         * tests/test-argp.c: Include argp.h first. Include progname.h.
52216         (main): Call set_program_name.
52217
52218 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52219
52220         * doc/gnulib-tool.texi (Initial import): Reword description of
52221         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52222         limited effect even if defined after the first system include.
52223
52224 2007-03-01  Bruno Haible  <bruno@clisp.org>
52225
52226         * build-aux/config.libpath: Update to libtool-1.5.22.
52227         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52228
52229 2007-03-01  Bruno Haible  <bruno@clisp.org>
52230
52231         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52232         foo_CFLAGS.
52233         Reported by Ralf Wildenhues.
52234
52235 2007-03-01  Bruno Haible  <bruno@clisp.org>
52236
52237         * build-aux/install-reloc: Remove object files left over by some
52238         compilers.
52239         Reported by Ralf Wildenhues.
52240
52241 2007-03-01  Bruno Haible  <bruno@clisp.org>
52242
52243         * build-aux/install-reloc: Break long lines.
52244
52245 2007-03-01  Bruno Haible  <bruno@clisp.org>
52246
52247         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52248         Reported by Ralf Wildenhues.
52249
52250 2007-03-01  Bruno Haible  <bruno@clisp.org>
52251
52252         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52253         include ordering constraints.
52254
52255 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52256
52257         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52259         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52260         as another example.
52261         * lib/time_.h: Fix misspelling.
52262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52263         Require gl_HEADER_TIME_H_DEFAULTS.
52264         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52265         * m4/time_r.m4 (gl_TIME_R): Likewise.
52266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52267
52268 2007-03-01  Bruno Haible  <bruno@clisp.org>
52269
52270         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52271         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52272
52273 2007-03-01  Jim Meyering  <jim@meyering.net>
52274
52275         * modules/xreadlink (Maintainer): Add my name.
52276         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52277
52278 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52279             Bruno Haible  <bruno@clisp.org>
52280
52281         * build-aux/install-reloc: Compile also c-ctype.c.
52282         * build-aux/relocatable.sh.in: New file.
52283         * doc/relocatable.texi: New file.
52284         * doc/relocatable-maint.texi: New file.
52285         * doc/gnulib.texi: Include relocatable-maint.texi.
52286         * lib/progreloc.c: Include unistd.h unconditionally.
52287         * lib/relocwrapper.c: Include unistd.h unconditionally.
52288         Include c-ctype.h.
52289         (add_dotbin): Use c_tolower.
52290         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52291         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52292         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52293         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52294         to m4/relocatable-lib.m4.
52295         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52296         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52297         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52298         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52299         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52300         * modules/relocatable: New file.
52301         * modules/relocatable-lib: New file.
52302         * modules/relocatable-script: New file.
52303
52304 2007-02-28  Bruno Haible  <bruno@clisp.org>
52305
52306         Import --enable-relocatable infrastructure.
52307         * build-aux/config.libpath: New file, from GNU gettext.
52308         * build-aux/install-reloc: New file, from GNU gettext.
52309         * build-aux/reloc-ldflags: New file, from GNU gettext.
52310         * lib/relocatable.h: New file, from GNU gettext.
52311         * lib/relocatable.c: New file, from GNU gettext.
52312         * lib/relocwrapper.c: New file, from GNU gettext.
52313         * m4/relocatable.m4: New file, from GNU gettext.
52314
52315 2007-02-28  Bruno Haible  <bruno@clisp.org>
52316
52317         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52318
52319         * modules/xreadlink: New file, from GNU gettext with modifications.
52320         * lib/xreadlink.c: New file, from GNU gettext.
52321         * lib/xreadlink.h: Add comments.
52322         (xreadlink): New declaration.
52323
52324         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52325         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52326         lib/xreadlink-with-size.c.
52327         (configure.ac): Remove gl_XREADLINK invocation.
52328         (Makefile.am): Augment lib_SOURCES.
52329         * m4/xreadlink.m4: Remove file.
52330         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52331         (xreadlink_with_size): Renamed from xreadink.
52332         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52333         * modules/canonicalize (Depends-on): Replace xreadlink with
52334         xreadlink-with-size.
52335         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52336
52337 2007-02-25  Jim Meyering  <jim@meyering.net>
52338
52339         * build-aux/announce-gen: When complaining about excess arguments,
52340         list them.
52341
52342 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52343
52344         * README: Document signed integer overflow situation more
52345         accurately.
52346
52347 2007-02-25  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52350         'a' or 'A' conversion.
52351
52352 2007-02-25  Bruno Haible  <bruno@clisp.org>
52353
52354         * modules/filename: Renamed from modules/pathname.
52355         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52356         lib/concatpath.c with lib/concat-filename.c.
52357         (Makefile.am): Update.
52358         (Include): Replace pathname.h with filename.h.
52359         * lib/filename.h: Renamed from lib/pathname.h.
52360         (concatenated_filename): Renamed from concatenated_pathname.
52361         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52362         (concatenated_filename): Renamed from concatenated_pathname.
52363         * lib/findprog.c: Include filename.h instead of pathname.h.
52364         (find_in_path): Update.
52365         * lib/javacomp.c: Include filename.h instead of pathname.h.
52366         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52367         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52368         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52369         is_oldgcj_14_13_usable, is_javac_usable): Update.
52370         * lib/javaexec.c: Include filename.h instead of pathname.h.
52371         (execute_java_class): Update.
52372         * modules/findprog: Update.
52373         * modules/javacomp: Update.
52374         * modules/javaexec: Update.
52375         * MODULES.html.sh (File system functions): Add 'filename', remove
52376         'pathname'.
52377
52378 2007-02-25  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/printf-frexpl-tests: New file.
52381         * tests/test-printf-frexpl.c: New file.
52382
52383         * modules/printf-frexpl: New file.
52384         * lib/printf-frexpl.h: New file.
52385         * lib/printf-frexpl.c: New file.
52386         * m4/printf-frexpl.m4: New file.
52387
52388 2007-02-25  Bruno Haible  <bruno@clisp.org>
52389
52390         * modules/printf-frexp-tests: New file.
52391         * tests/test-printf-frexp.c: New file.
52392
52393         * modules/printf-frexp: New file.
52394         * lib/printf-frexp.h: New file.
52395         * lib/printf-frexp.c: New file.
52396         * m4/printf-frexp.m4: New file.
52397
52398 2007-02-25  Bruno Haible  <bruno@clisp.org>
52399
52400         Assume automake >= 1.10 for the tests.
52401         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52402         * modules/arctwo-tests: Likewise.
52403         * modules/argp-tests: Likewise.
52404         * modules/avltree-list-tests: Likewise.
52405         * modules/avltree-oset-tests: Likewise.
52406         * modules/avltreehash-list-tests: Likewise.
52407         * modules/carray-list-tests: Likewise.
52408         * modules/crc-tests: Likewise.
52409         * modules/des-tests: Likewise.
52410         * modules/gc-arcfour-tests: Likewise.
52411         * modules/gc-arctwo-tests: Likewise.
52412         * modules/gc-des-tests: Likewise.
52413         * modules/gc-hmac-md5-tests: Likewise.
52414         * modules/gc-hmac-sha1-tests: Likewise.
52415         * modules/gc-md2-tests: Likewise.
52416         * modules/gc-md4-tests: Likewise.
52417         * modules/gc-md5-tests: Likewise.
52418         * modules/gc-pbkdf2-sha1-tests: Likewise.
52419         * modules/gc-rijndael-tests: Likewise.
52420         * modules/gc-sha1-tests: Likewise.
52421         * modules/gc-tests: Likewise.
52422         * modules/getaddrinfo-tests: Likewise.
52423         * modules/hmac-md5-tests: Likewise.
52424         * modules/hmac-sha1-tests: Likewise.
52425         * modules/linked-list-tests: Likewise.
52426         * modules/linkedhash-list-tests: Likewise.
52427         * modules/lock-tests: Likewise.
52428         * modules/md2-tests: Likewise.
52429         * modules/md4-tests: Likewise.
52430         * modules/md5-tests: Likewise.
52431         * modules/rbtree-list-tests: Likewise.
52432         * modules/rbtree-oset-tests: Likewise.
52433         * modules/rbtreehash-list-tests: Likewise.
52434         * modules/read-file-tests: Likewise.
52435         * modules/rijndael-tests: Likewise.
52436         * modules/stdint-tests: Likewise.
52437         * modules/tls-tests: Likewise.
52438
52439 2007-02-24  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52442         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52443         function; instead check whether isnan with a double argument links.
52444         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52445         function; instead check whether isnan with a 'long double' argument
52446         links.
52447         Reported by Eric Blake <ebb9@byu.net>.
52448
52449 2007-02-24  Bruno Haible  <bruno@clisp.org>
52450
52451         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52452         defined.
52453         * lib/isnanl.c: Remove all code. Just include isnan.c.
52454         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52455
52456 2007-02-25  Jim Meyering  <jim@meyering.net>
52457
52458         Avoid conflicting types for 'unsetenv' on FreeBSD.
52459         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52460         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52461         in stdlib.h.
52462
52463 2007-02-24  Bruno Haible  <bruno@clisp.org>
52464
52465         * modules/isnanl-nolibm-tests: New file.
52466         * tests/test-isnanl.c: New file.
52467
52468         * modules/isnanl-nolibm: New file.
52469         * lib/isnanl.h: New file.
52470         * lib/isnanl.c: New file.
52471         * m4/isnanl.m4: New file.
52472
52473 2007-02-24  Bruno Haible  <bruno@clisp.org>
52474
52475         * modules/isnan-nolibm-tests: New file.
52476         * tests/test-isnan.c: New file.
52477
52478         * modules/isnan-nolibm: New file.
52479         * lib/isnan.h: New file.
52480         * lib/isnan.c: New file.
52481         * m4/isnan.m4: New file.
52482
52483 2007-02-24  Bruno Haible  <bruno@clisp.org>
52484
52485         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52486         assume that an exponent fits in 20 bits.
52487
52488 2007-02-24  Jim Meyering  <jim@meyering.net>
52489
52490         * m4/regex.m4: Update the description of the configure-time option,
52491         --without-included-regex, to state accurately what the defaults are,
52492         and perhaps to give people an idea why using this option is risky.
52493
52494 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52497         loops on small arguments.  This attempts to avoid the problem
52498         Bruno Haible reported for AIX 4.3.2 in
52499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52500
52501 2007-02-23  Bruno Haible  <bruno@clisp.org>
52502
52503         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52504         Needed for help2man.
52505
52506 2007-02-23  Karl Berry  <karl@gnu.org>
52507
52508         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52509         exists, foo.h should be cvs-ignored, not committed.
52510
52511 2007-02-23  Eric Blake  <ebb9@byu.net>
52512
52513         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52514         * lib/stat-time.h (includes): Likewise.
52515         * lib/utimecmp.c (includes): Likewise.
52516         * lib/utimens.h (includes): Likewise.
52517         * lib/getdate.y (includes): Also include "timespec.h" for use
52518         internal to the module.
52519         * modules/utimens (Depends-on): Revert yesterday's patch.
52520         * modules/nanosleep (Depends-on): Add missing dependency.
52521
52522 2007-02-22  Bruno Haible  <bruno@clisp.org>
52523
52524         * lib/glob.c: Don't include getlogin_r.h.
52525
52526 2007-02-22  Jim Meyering  <jim@meyering.net>
52527
52528         * modules/utimens (Depends-on): Add timespec, required for
52529         utimens.h's inclusion of timespec.h.
52530
52531 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52534         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52535         Schwab in
52536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52537         I'll try to think of a better way to fix the Solaris problem.
52538
52539         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52540         like glibc; on Solaris 10, it fails with errno == EINVAL.
52541         POSIX says the behavior is unspecified if the first argument is NULL,
52542         so play it safe and never pass NULL to the system getcwd.
52543
52544 2007-02-21  Jim Meyering  <jim@meyering.net>
52545
52546         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52547         of gettimeofday.  It would conflict with the one now always
52548         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52549         an IRIX 6.5 build failure.
52550
52551 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52552
52553         Minor fixups to port to Solaris 10 with Sun C 5.8.
52554         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52555         * modules/getcwd (Depends-on): Add dirfd.
52556         * lib/putenv.c (putenv): #undef it.
52557         (rpl_putenv): New decl.
52558         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52559
52560 2007-02-20  Bruno Haible  <bruno@clisp.org>
52561
52562         * modules/stdio-tests: New file.
52563         * tests/test-stdio.c: New file.
52564
52565         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52566         (Depends-on): Add stdio.
52567         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52568         (Include): Use <stdio.h> instead of vsnprintf.h.
52569         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52570         HAVE_DECL_VSNPRINTF.
52571         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52572
52573         * modules/snprintf (Files): Remove lib/snprintf.h.
52574         (Depends-on): Add stdio.
52575         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52576         (Include): Use <stdio.h> instead of snprintf.h.
52577         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52578         HAVE_DECL_SNPRINTF.
52579         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52580         * lib/getaddrinfo.c: Likewise.
52581
52582         * modules/stdio: New file.
52583         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52584         * lib/snprintf.h: Remove file.
52585         * lib/vsnprintf.h: Remove file.
52586         * lib/.cppi-disable: Remove snprintf.h.
52587         * m4/stdio_h.m4: New file.
52588         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52589
52590 2007-02-20  Jim Meyering  <jim@meyering.net>
52591
52592         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52593         used by e.g., mingw.  From Bruno Haible.
52594
52595 2007-02-19  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52598         warnings.
52599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52600
52601 2007-02-19  Bruno Haible  <bruno@clisp.org>
52602
52603         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52604         from mingw users.
52605
52606 2007-02-19  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52609         warnings.
52610         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52611
52612 2007-02-19  Jim Meyering  <jim@meyering.net>
52613
52614         Don't use FD after a successful "fdopendir (fd)".
52615         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52616         Reset it by calling dirfd on the just-obtained DIR*.
52617
52618         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52619         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52620
52621 2007-02-18  Bruno Haible  <bruno@clisp.org>
52622
52623         * lib/readlink.c: Include <unistd.h>.
52624         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52625         HAVE_READLINK.
52626         * modules/readlink (Depends-on): Add unistd.
52627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52628         (Include): Add <unistd.h>.
52629
52630         * lib/getlogin_r.h: Remove file.
52631         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52632         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52633         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52634         HAVE_DECL_GETLOGIN_R.
52635         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52637         (Include): Use <unistd.h> instead of getlogin_r.h.
52638
52639         * lib/getcwd.h: Remove file.
52640         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52641         * lib/xgetcwd.c: Likewise.
52642         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52643         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52644         * modules/getcwd (Files): Remove lib/getcwd.h.
52645         (Depends-on): Add unistd.
52646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52647         (Include): Use <unistd.h> instad of getcwd.h.
52648
52649         * lib/ftruncate.c: Include <unistd.h> first.
52650         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52651         Set HAVE_FTRUNCATE.
52652         * modules/ftruncate (Depends-on): Add unistd.
52653         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52654
52655         * lib/fchdir.c: Include <unistd.h> first.
52656         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52658         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52659         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52660         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52661
52662         * lib/dup2.c: Include <unistd.h> first.
52663         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52664         HAVE_DUP2.
52665         * modules/dup2 (Depends-on): Add unistd.
52666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52667
52668         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52669         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52670         REPLACE_CHOWN. Don't define chown as a macro here.
52671         * modules/chown (Depends-on): Add unistd.
52672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52673
52674         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52675         Add definition for GL_LINK_WARNING.
52676         (chown, dup2): New declarations.
52677         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52678         link warning.
52679         (ftruncate): New declaration.
52680         (getcwd): New declaration, taken from old getcwd.h.
52681         (getlogin_r): New declaration, taken from old getlogin_r.h.
52682         (readlink): New declaration.
52683         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52684         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52685         (gl_PREREQ_UNISTD): Remove macro.
52686         (gl_UNISTD_MODULE_INDICATOR): New macro.
52687         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52688         many new variables. Don't set UNISTD_H.
52689         * modules/unistd (Description): Change.
52690         (Depends-on): Add link-warning.
52691         (configure.ac): Update.
52692         (Makefile.am): Create unistd.h always. Substitute many new variables
52693         into it.
52694
52695 2007-02-18  Bruno Haible  <bruno@clisp.org>
52696
52697         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52698         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52699         HAVE_GETSUBOPT.
52700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52701         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52702         * lib/getsubopt.h: Remove file.
52703         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52704         (Depends-on): Add stdlib.
52705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52706         (Includes): Use <stdlib.h> instead of getsubopt.h.
52707         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52708         Set HAVE_GETSUBOPT.
52709         * lib/getsubopt.c: Don't include getsubopt.h.
52710
52711 2007-02-18  Bruno Haible  <bruno@clisp.org>
52712
52713         * modules/fchdir (Depends-on): Add dup2.
52714
52715 2007-02-18  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/stdlib_.h: Handle glibc's special invocation convention
52718         specially.
52719
52720 2007-02-18  Bruno Haible  <bruno@clisp.org>
52721
52722         * modules/stdlib-tests: New file.
52723         * tests/test-stdlib.c: New file.
52724
52725         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52726         (Depends-on): Add stdlib.
52727         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52728         (Includes): Use <stdlib.h> instead of mkstemp.h.
52729         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52730         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52731         * lib/mkstemp.c: Don't include mkstemp.h.
52732         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52733         * lib/stdlib--.h: Don't include mkstemp.h.
52734
52735         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52736         (Depends-on): Add stdlib.
52737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52738         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52739         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52740         HAVE_MKDTEMP.
52741         * lib/mkdtemp.c: Don't include mkdtemp.h.
52742         * lib/clean-temp.c: Don't include mkdtemp.h.
52743
52744         * modules/exit (Files): Remove lib/exit.h.
52745         (Depends-on): Add stdlib.
52746         (Makefile.am): Remove lib_SOURCES.
52747         (Include): Use <stdlib.h> instead of exit.h.
52748         * lib/argmatch.c: Don't include exit.h.
52749         * lib/execute.c: Likewise.
52750         * lib/pagealign_alloc.c: Likewise.
52751         * lib/pipe.c: Likewise.
52752         * lib/wait-process.c: Likewise.
52753         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52754         * lib/exitfail.c: Likewise.
52755         * lib/savewd.c: Likewise.
52756         * lib/xsetenv.c: Likewise.
52757
52758         * modules/stdlib: New file.
52759         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52760         and extra comments about mkstemp().
52761         * lib/exit.h: Remove file.
52762         * lib/mkdtemp.h: Remove file.
52763         * lib/mkstemp.h: Remove file.
52764         * m4/stdlib_h.m4: New file.
52765         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52766
52767 2007-02-18  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/math-tests: New file.
52770         * tests/test-math.c: New file.
52771
52772         * modules/math: New file.
52773         * modules/mathl (Files): Remove lib/mathl.h.
52774         (Depends-on): Add math.
52775         (Makefile.am): Don't mention mathl.h.
52776         (Include): Use <math.h> instead of mathl.h.
52777         * lib/math_.h: New file.
52778         * lib/mathl.h: Remove file.
52779         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52780         mathl.h.
52781         * lib/asinl.c: Likewise.
52782         * lib/atanl.c: Likewise.
52783         * lib/ceill.c: Likewise.
52784         * lib/cosl.c: Likewise.
52785         * lib/expl.c: Likewise.
52786         * lib/floorl.c: Likewise.
52787         * lib/frexpl.c: Likewise.
52788         * lib/ldexpl.c: Likewise.
52789         * lib/logl.c: Likewise.
52790         * lib/sincosl.c: Likewise.
52791         * lib/sinl.c: Likewise.
52792         * lib/sqrtl.c: Likewise.
52793         * lib/tanl.c: Likewise.
52794         * lib/trigl.c: Likewise.
52795         * m4/math_h.m4: New file.
52796         * MODULES.html.sh (Mathematics): Add math.
52797
52798 2007-02-17  Bruno Haible  <bruno@clisp.org>
52799
52800         * modules/wctype-tests: New file.
52801         * tests/test-wctype.c: New file.
52802
52803         * modules/wchar-tests: New file.
52804         * tests/test-wchar.c: New file.
52805
52806         * modules/unistd-tests: New file.
52807         * tests/test-unistd.c: New file.
52808
52809         * modules/time-tests: New file.
52810         * tests/test-time.c: New file.
52811
52812         * modules/sysexits-tests: New file.
52813         * tests/test-sysexits.c: New file.
52814
52815         * modules/sys_time-tests: New file.
52816         * tests/test-sys_time.c: New file.
52817
52818         * modules/sys_stat-tests: New file.
52819         * tests/test-sys_stat.c: New file.
52820
52821         * modules/sys_socket-tests: New file.
52822         * tests/test-sys_socket.c: New file.
52823
52824         * modules/sys_select-tests: New file.
52825         * tests/test-sys_select.c: New file.
52826
52827         * modules/string-tests: New file.
52828         * tests/test-string.c: New file.
52829
52830         * modules/stdbool-tests: New file.
52831         * tests/test-stdbool.c: New file.
52832
52833         * modules/netinet_in-tests: New file.
52834         * tests/test-netinet_in.c: New file.
52835
52836         * modules/inttypes-tests: New file.
52837         * tests/test-inttypes.c: New file.
52838
52839         * modules/fcntl-tests: New file.
52840         * tests/test-fcntl.c: New file.
52841
52842         * modules/byteswap-tests: New file.
52843         * tests/test-byteswap.c: New file.
52844
52845         * modules/arpa_inet-tests: New file.
52846         * tests/test-arpa_inet.c: New file.
52847
52848 2007-02-17  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52851         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52852         if the corresponding module is not enabled. Emit link warnings if
52853         the function is used nevertheless.
52854         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52855         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52856         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52857         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52858         * modules/inttypes (Depends-on): Add link-warning.
52859         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52860         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52861         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52862         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52863         * modules/imaxdiv (configure.ac): Likewise.
52864         * modules/strtoimax (configure.ac): Likewise.
52865         * modules/strtoumax (configure.ac): Likewise.
52866
52867 2007-02-17  Bruno Haible  <bruno@clisp.org>
52868
52869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52870         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52872         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52873
52874 2007-02-17  Bruno Haible  <bruno@clisp.org>
52875
52876         * modules/link-warning: New file.
52877         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52878         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52879         * modules/string (Depends-on): Add link-warning.
52880         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52881         string.h.
52882         * MODULES.html.sh (Support for building libraries and executables): Add
52883         link-warning.
52884
52885 2007-02-17  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52888         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52889         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52890         long lines.
52891
52892 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52893             Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/tmpfile: New file.
52896         * lib/tmpfile.c: New file.
52897         * m4/tmpfile.m4: New file.
52898         * MODULES.html.sh (func_all_modules): New section "Input/output".
52899
52900 2007-02-15  Bruno Haible  <bruno@clisp.org>
52901
52902         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52903         (supports_delete_on_close): New function.
52904         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52905
52906 2007-02-14  Bruno Haible  <bruno@clisp.org>
52907
52908         * modules/mbspcasecmp-tests: New file.
52909         * tests/test-mbspcasecmp.sh: New file.
52910         * tests/test-mbspcasecmp.c: New file.
52911
52912         New module mbspcasecmp.
52913         * modules/mbspcasecmp: New file.
52914         * lib/mbspcasecmp.c: New file.
52915         * lib/string_.h (strncasecmp): Change warning message.
52916         (mbspcasecmp): New declaration.
52917         * m4/mbspcasecmp.m4: New file.
52918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52919         GNULIB_MBSPCASECMP.
52920         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52921         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52922
52923 2007-02-14  Bruno Haible  <bruno@clisp.org>
52924
52925         * modules/mbsncasecmp-tests: New file.
52926         * tests/test-mbsncasecmp.sh: New file.
52927         * tests/test-mbsncasecmp.c: New file.
52928
52929         New module mbsncasecmp.
52930         * modules/mbsncasecmp: New file.
52931         * lib/mbsncasecmp.c: New file.
52932         * lib/string_.h (mbsncasecmp): New declaration.
52933         * m4/mbsncasecmp.m4: New file.
52934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52935         GNULIB_MBSNCASECMP.
52936         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52937         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52938
52939 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52940
52941         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52942         Verify that it doesn't overlap with our flags.
52943         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52944         do not have the desired effect in multibyte locales; instead, use
52945         mbscasecmp.
52946         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52947         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52948         we don't require GNU fnmatch ourselves (if our users require it, they
52949         should do so explicitly).
52950
52951         Fix regex code so it doesn't rely on strcasecmp.
52952         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52953         Otherwise, include gnulib's langinfo.h.
52954         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52955         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52956         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52957         * modules/regex (FILES): Remove m4/codeset.m4.
52958         (Depends-on): Add localcharset.  Remove strcase.
52959
52960 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52961
52962         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52963         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52964
52965 2007-02-13  Bruno Haible  <bruno@clisp.org>
52966
52967         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52968         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52969
52970 2007-02-12  Bruno Haible  <bruno@clisp.org>
52971
52972         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52973         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52974         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52975         time warning rather than a link error.
52976
52977 2007-02-12  Bruno Haible  <bruno@clisp.org>
52978
52979         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52980         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52982
52983 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52984
52985         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52986         args, not 2.
52987
52988 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52989
52990         New module 'time', so that apps can include <time.h> as per
52991         POSIX and GNU instead of separate include files like time_r.h
52992         and timegm.h.  This implementation tries out a simpler approach
52993         for replacing decls in standard include files (as compared to
52994         the string module), somewhat as an experiment.
52995
52996         * config/srclist.txt: Comment out mktime.c for now.
52997         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52998         since it doesn't apply any more.  Use generic wording instead.
52999         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53000         'time'.
53001         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53002         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53003         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53004         Don't include <sys/types.h>; no longer needed since we assume C89.
53005         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53006         * lib/strftime.c: Likewise.
53007         * lib/time_r.c: Likewise.
53008         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53009         * lib/nanosleep.c: Include <time.h> first, to check interface.
53010         * lib/strptime.c: Likewise.
53011         * lib/time_r.c: Likewise.
53012         * lib/timegm.c: Likewise.
53013         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53014         needed.
53015         * lib/timegm.c: Don't include timegm.h; no longer needed.
53016         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53017         time.h now handles any problems in that area.
53018         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53019         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53020         that time.h defines struct timespec.
53021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53022         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53023         handles that.
53024         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53025         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53026         needed.  Set REPLACE_LOCALTIME.
53027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53028         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53029         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53030         nanosleep; time_h.m4 now does that.  Don't require
53031         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53032         module handles this now.
53033         * modules/getdate (Depends-on): Remove timespec.  Add time.
53034         * modules/nanosleep (Depends-on): Likewise.
53035         * modules/stat-time (Depends-on): Likewise.
53036         * modules/nanosleep (Include): Include time.h, not timespec.h.
53037         * modules/strptime (Files): Remove lib/strptime.h.
53038         (Depends-on): Add extensions, time.
53039         (Include): Include time.h, not strptime.h.
53040         * modules/time_r (Files): Remove lib/time_r.h.
53041         (Depends-on): Add time.
53042         (Include): Include time.h, not time_r.h.
53043         * modules/timegm: Likewise.
53044         * modules/timespec (Description): Now does timespec-related decls
53045         of our own, instead of struct timespec itself.
53046         (Depends-on): Add time; remove extensions.
53047         (Maintainer): Add self.
53048         * modules/utimecmp (Depends-on): Add time; remove timespec.
53049         * modules/utimens (Depends-on): Likewise.
53050         * modules/xnanosleep (Depends-on): Likewise.
53051
53052 2007-02-11  Bruno Haible  <bruno@clisp.org>
53053
53054         * lib/c-strstr.c: Include allocsa.h.
53055         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53056         * lib/c-strcasestr.c: Include allocsa.h.
53057         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53058         * lib/strcasestr.c: Include allocsa.h.
53059         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53060         * lib/mbsstr.c: Include allocsa.h.
53061         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53062         allocsa/freesa instead of malloc/free.
53063         * lib/mbscasestr.c: Include allocsa.h.
53064         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53065         allocsa/freesa instead of malloc/free.
53066         * modules/c-strstr (Depends-on): Add allocsa.
53067         * modules/c-strcasestr (Depends-on): Likewise.
53068         * modules/strcasestr (Depends-on): Likewise.
53069         * modules/mbsstr (Depends-on): Likewise.
53070         * modules/mbscasestr (Depends-on): Likewise.
53071
53072 2007-02-11  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53075
53076         * modules/mbsspn-tests: New file.
53077         * tests/test-mbsspn.sh: New file.
53078         * tests/test-mbsspn.c: New file.
53079
53080 2007-02-11  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53083
53084         * modules/mbspbrk-tests: New file.
53085         * tests/test-mbspbrk.sh: New file.
53086         * tests/test-mbspbrk.c: New file.
53087
53088 2007-02-11  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53091         unneeded cast.
53092
53093         * modules/mbscspn-tests: New file.
53094         * tests/test-mbscspn.sh: New file.
53095         * tests/test-mbscspn.c: New file.
53096
53097 2007-02-11  Bruno Haible  <bruno@clisp.org>
53098
53099         * modules/mbscasecmp-tests: New file.
53100         * tests/test-mbscasecmp.sh: New file.
53101         * tests/test-mbscasecmp.c: New file.
53102
53103 2007-02-11  Bruno Haible  <bruno@clisp.org>
53104
53105         Ensure O(n) worst-case complexity of mbscasestr.
53106         * lib/mbscasestr.c: Include stdbool.h.
53107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53108         functions.
53109         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53110         the bookkeeping indicates that it's worth it.
53111         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53112
53113         * modules/mbscasestr-tests: New file.
53114         * tests/test-mbscasestr1.c: New file.
53115         * tests/test-mbscasestr2.sh: New file.
53116         * tests/test-mbscasestr2.c: New file.
53117         * tests/test-mbscasestr3.sh: New file.
53118         * tests/test-mbscasestr3.c: New file.
53119         * tests/test-mbscasestr4.sh: New file.
53120         * tests/test-mbscasestr4.c: New file.
53121         * m4/locale-tr.m4: New file.
53122
53123 2007-02-11  Bruno Haible  <bruno@clisp.org>
53124
53125         Ensure O(n) worst-case complexity of mbsstr.
53126         * lib/mbsstr.c: Include stdbool.h.
53127         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53128         functions.
53129         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53130         bookkeeping indicates that it's worth it.
53131         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53132
53133         * modules/mbsstr-tests: New file.
53134         * tests/test-mbsstr1.c: New file.
53135         * tests/test-mbsstr2.sh: New file.
53136         * tests/test-mbsstr2.c: New file.
53137         * tests/test-mbsstr3.sh: New file.
53138         * tests/test-mbsstr3.c: New file.
53139         * m4/locale-fr.m4: New file.
53140
53141 2007-02-11  Bruno Haible  <bruno@clisp.org>
53142
53143         * lib/mbsrchr.c (mbsrchr): Fix bug.
53144
53145         * modules/mbsrchr-tests: New file.
53146         * tests/test-mbsrchr.sh: New file.
53147         * tests/test-mbsrchr.c: New file.
53148
53149 2007-02-11  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/mbschr.c (mbschr): Fix bug.
53152
53153         * modules/mbschr-tests: New file.
53154         * tests/test-mbschr.sh: New file.
53155         * tests/test-mbschr.c: New file.
53156         * m4/locale-zh.m4: New file.
53157
53158 2007-02-11  Bruno Haible  <bruno@clisp.org>
53159
53160         Support for copying multibyte string iterators.
53161         * lib/mbiter.h: Include <string.h>.
53162         (mbiter_multi_copy): New function.
53163         (mbi_copy): New macro.
53164         * lib/mbuiter.h: Include <string.h>.
53165         (mbuiter_multi_copy): New function.
53166         (mbui_copy): New macro.
53167
53168 2007-02-11  Bruno Haible  <bruno@clisp.org>
53169
53170         New module mbslen.
53171         * modules/mbslen: New file.
53172         * lib/mbslen.c: New file.
53173         * lib/string_.h (mbslen): New declaration.
53174         * m4/mbslen.m4: New file.
53175         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53176         GNULIB_MBSLEN.
53177         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53178         * MODULES.html.sh (Internationalization functions): Add mbslen.
53179
53180 2007-02-11  Bruno Haible  <bruno@clisp.org>
53181
53182         Ensure O(n) worst-case complexity of strcasestr substitute.
53183         * lib/strcasestr.c: Include stdbool.h.
53184         (knuth_morris_pratt): New function.
53185         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53186         bookkeeping indicates that it's worth it.
53187         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53188
53189         * modules/strcasestr-tests: New file.
53190         * tests/test-strcasestr.c: New file.
53191
53192 2007-02-11  Bruno Haible  <bruno@clisp.org>
53193
53194         Ensure O(n) worst-case complexity of c_strcasestr.
53195         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53196         (knuth_morris_pratt): New function.
53197         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53198         the bookkeeping indicates that it's worth it.
53199         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53200
53201         * modules/c-strcasestr-tests: New file.
53202         * tests/test-c-strcasestr.c: New file.
53203
53204 2007-02-11  Bruno Haible  <bruno@clisp.org>
53205
53206         Ensure O(n) worst-case complexity of c_strstr.
53207         * lib/c-strstr.c: Include stdbool.h, string.h.
53208         (knuth_morris_pratt): New function.
53209         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53210         bookkeeping indicates that it's worth it.
53211         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53212
53213         * lib/c-strstr.c: Complete rewrite for maintainability.
53214
53215         * modules/c-strstr-tests: New file.
53216         * tests/test-c-strstr.c: New file.
53217
53218 2007-02-11  Bruno Haible  <bruno@clisp.org>
53219
53220         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53221         5.2.1 and earlier, whereby \055 was treated just like the range
53222         delimiter '-'.
53223         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53224
53225 2007-02-08  Bruno Haible  <bruno@clisp.org>
53226
53227         * modules/regex (Depends-on): Add stdbool.
53228         Reported by Dalibor Topic <robilad@kaffe.org>.
53229
53230 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53233         Prefer returning from main to exiting from it.
53234         Remove unnecessary parens after sizeof.
53235
53236 2007-02-05  Bruno Haible  <bruno@clisp.org>
53237
53238         New module mbssep.
53239         * modules/mbssep: New file.
53240         * lib/mbssep.c: New file.
53241         * lib/string_.h (strsep): Add a conditional link warning.
53242         (mbssep): New declaration.
53243         * m4/mbssep.m4: New file.
53244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53245         GNULIB_MBSSEP.
53246         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53247         * MODULES.html.sh (Internationalization functions): Add mbssep.
53248
53249 2007-02-05  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53252         Optimize search in case of 1 delimiter.
53253
53254 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53255
53256         * lib/acl.h: Include sys/types.h before sys/acl.h.
53257
53258 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53259
53260         Merge upstream fix for glibc bugzilla #3957:
53261
53262         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53263
53264         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53265         bit for RE_HAT_LISTS_NOT_NEWLINE.
53266         (build_charclass_op): Remove bogus comment.
53267
53268 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53269
53270         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53271
53272 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53275         * lib/memmem.c [!defined _LIBC]: Include config.h.
53276
53277 2007-02-04  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53280         warning message.
53281
53282 2007-02-04  Bruno Haible  <bruno@clisp.org>
53283
53284         New module mbstok_r.
53285         * modules/mbstok_r: New file.
53286         * lib/mbstok_r.c: New file.
53287         * lib/string_.h (strtok_r): Change argument names to match the
53288         comments. Add a conditional link warning.
53289         (mbstok_r): New declaration.
53290         * m4/mbstok_r.m4: New file.
53291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53292         GNULIB_MBSTOK_R.
53293         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53294         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53295
53296 2007-02-04  Bruno Haible  <bruno@clisp.org>
53297
53298         New module mbsspn.
53299         * modules/mbsspn: New file.
53300         * lib/mbsspn.c: New file.
53301         * lib/string_.h (strspn): Add a conditional link warning.
53302         (mbsspn): New declaration.
53303         * m4/mbsspn.m4: New file.
53304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53305         GNULIB_MBSSPN.
53306         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53307         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53308
53309 2007-02-04  Bruno Haible  <bruno@clisp.org>
53310
53311         New module mbspbrk.
53312         * modules/mbspbrk: New file.
53313         * lib/mbspbrk.c: New file.
53314         * lib/string_.h (strpbrk): Add a conditional link warning.
53315         (mbspbrk): New declaration.
53316         * m4/mbspbrk.m4: New file.
53317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53318         GNULIB_MBSPBRK.
53319         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53320         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53321
53322 2007-02-04  Bruno Haible  <bruno@clisp.org>
53323
53324         New module mbscspn.
53325         * modules/mbscspn: New file.
53326         * lib/mbscspn.c: New file.
53327         * lib/string_.h (strcspn): Add a conditional link warning.
53328         (mbscspn): New declaration.
53329         * m4/mbscspn.m4: New file.
53330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53331         GNULIB_MBSCSPN.
53332         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53333         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53334
53335 2007-02-04  Bruno Haible  <bruno@clisp.org>
53336
53337         New module mbscasestr, reduced goal of strcasestr.
53338         * modules/mbscasestr: New file.
53339         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53340         (mbscasestr): Renamed from strcasestr.
53341         * lib/strcasestr.c: Don't include mbuiter.h.
53342         (strcasestr): Remove support for multibyte locales.
53343         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53344         Change the conditional link warning.
53345         (mbscasestr): New declaration.
53346         * m4/mbscasestr.m4: New file.
53347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53348         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53349         REPLACE_STRCASESTR.
53350         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53352         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53353         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53354         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53355         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53356         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53357         (Depends-on): Remove mbuiter.
53358         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53359
53360 2007-02-04  Bruno Haible  <bruno@clisp.org>
53361
53362         Simplify handling of strncasecmp.
53363         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53364         the conditional link warning.
53365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53366         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53367         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53368         * modules/strcase (configure.ac): Don't invoke
53369         gl_STRING_MODULE_INDICATOR.
53370         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53371
53372 2007-02-04  Bruno Haible  <bruno@clisp.org>
53373
53374         New module mbscasecmp, reduced goal of strcasecmp.
53375         * modules/mbscasecmp: New file.
53376         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53377         (mbscasecmp): Renamed from strcasecmp.
53378         * lib/strcasecmp.c: Don't include mbuiter.h.
53379         (strcasecmp): Remove support for multibyte locales.
53380         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53381         Change the conditional link warning.
53382         (mbscasecmp): New declaration.
53383         * m4/mbscasecmp.m4: New file.
53384         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53385         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53386         REPLACE_STRCASECMP.
53387         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53389         GNULIB_MBSCASECMP.
53390         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53391         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53392         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53393         (Depends-on): Remove mbuiter.
53394         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53395
53396 2007-02-04  Bruno Haible  <bruno@clisp.org>
53397
53398         New module mbsstr. Remove module strstr.
53399         * modules/mbsstr: New file.
53400         * modules/strstr: Remove file.
53401         * lib/mbsstr.c: Renamed from lib/strstr.c.
53402         (mbsstr): Renamed from strstr.
53403         * lib/string_.h (strstr): Remove declaration. Change the conditional
53404         link warning.
53405         (mbsstr): New declaration.
53406         * m4/mbsstr.m4: New file.
53407         * m4/strstr.m4: Remove file.
53408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53409         REPLACE_STRSTR.
53410         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53411         Don't initialize GNULIB_STRSTR.
53412         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53413         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53414         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53415         (Support for systems lacking ANSI C 89): Remove strstr.
53416
53417 2007-02-04  Bruno Haible  <bruno@clisp.org>
53418
53419         New module mbsrchr.
53420         * modules/mbsrchr: New file.
53421         * lib/mbsrchr.c: New file.
53422         * lib/string_.h (strrchr): Add a conditional link warning.
53423         (mbsrchr): New declaration.
53424         * m4/mbsrchr.m4: New file.
53425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53426         GNULIB_MBSRCHR.
53427         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53428         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53429
53430 2007-02-04  Bruno Haible  <bruno@clisp.org>
53431
53432         New module mbschr.
53433         * modules/mbschr: New file.
53434         * lib/mbschr.c: New file.
53435         * lib/string_.h (strchr): Add a conditional link warning.
53436         (mbschr): New declaration.
53437         * m4/mbschr.m4: New file.
53438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53439         GNULIB_MBSCHR.
53440         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53441         * MODULES.html.sh (Internationalization functions): Add mbschr.
53442
53443 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53444
53445         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53446
53447         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53448
53449 2007-02-04  Bruno Haible  <bruno@clisp.org>
53450
53451         New module description section 'configure.ac-early'.
53452         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53453         (func_get_autoconf_early_snippet): New function.
53454         (func_import, func_create_testdir): Use it. Remove special cases for
53455         modules 'extensions' and 'lock'.
53456         * modules/extensions (configure.ac-early): Require
53457         gl_USE_SYSTEM_EXTENSIONS.
53458         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53459
53460 2007-02-04  Bruno Haible  <bruno@clisp.org>
53461
53462         Make use of gcj-4.3's -fsource and -ftarget option.
53463         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53464         and if so try the options -fsource and -ftarget.
53465         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53466         source_version, ftarget_option, target_version arguments.
53467         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53468         (is_envjavac_oldgcj_14_14_usable): Renamed from
53469         is_envjavac_gcj_14_14_usable.
53470         (is_envjavac_oldgcj_14_13_usable): Renamed from
53471         is_envjavac_gcj_14_13_usable.
53472         (is_gcj_present): Update.
53473         (is_gcj_43, is_gcj43_usable): New functions.
53474         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53475         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53476         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53477         try the options -fsource and -ftarget.
53478
53479 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53482         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53483         larger value.
53484
53485 2007-02-03  Jim Meyering  <jim@meyering.net>
53486
53487         Give tools a better chance to allocate space for very large buffers.
53488         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53489
53490         Make pwd and readlink work also when run with an unreadable parent dir
53491         on systems with openat support.
53492         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53493         provided getcwd function, even when we have openat support.
53494         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53495
53496 2007-02-02  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53499         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53500         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53501         portability problems if one of these functions is only used on specific
53502         platforms.
53503         Reported by Paul Eggert.
53504
53505 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53506
53507         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53508         is causing more trouble than it's curing.
53509         * lib/regex_internal.h (__mempcpy): Remove.
53510         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53511         (and make the code a tad smaller to boot).
53512         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53513
53514 2007-02-02  Jim Meyering  <jim@meyering.net>
53515
53516         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53517         section, not in the Makefile.am: one.
53518
53519 2007-02-02  Eric Blake  <ebb9@byu.net>
53520
53521         * lib/strchrnul.c: Always include config.h first.
53522
53523         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53524         gnulib strstr is not necessary here.
53525
53526 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53527
53528         * m4/socklen.m4: Fix typo.
53529
53530 2007-02-02  Eric Blake  <ebb9@byu.net>
53531
53532         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53533         * modules/netinet_in (Makefile.am): Likewise.
53534
53535 2007-02-01  Bruno Haible  <bruno@clisp.org>
53536
53537         * lib/string_.h (GL_LINK_WARNING): New macro.
53538         (strcasecmp, strstr, strcasestr): If provided by the system,
53539         conditionally define as a macro that leads to a warning instead of to
53540         an error.
53541         (strncasecmp): Conditionally define as a macro that leads to a warning.
53542
53543 2007-02-01  Karl Berry  <karl@gnu.org>
53544
53545         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53546
53547 2007-02-01  Bruno Haible  <bruno@clisp.org>
53548
53549         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53550         renamings.
53551
53552 2007-02-01  Eric Blake  <ebb9@byu.net>
53553
53554         * modules/regex (Depends-on): Revert dependence on mempcpy.
53555         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53556         module's definition of mempcpy.
53557         Reported by Paul Eggert.
53558
53559 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53562         the symbol XYZ before redefining it.  This fixes a problem with
53563         programs that don't use XYZ, when compiled on systems that define
53564         XYZ to something else.
53565
53566 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53569         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53570         writeable to group or other and (2) is intended to have a special
53571         mode bit that is set or cleared.  In such a case, the directory
53572         should be neither group- nor other-writeable until the special
53573         mode bits are right.
53574
53575 2007-01-31  Eric Blake  <ebb9@byu.net>
53576
53577         * modules/mountlist (Depends-on): Add strstr.
53578
53579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53580         bug.
53581         * modules/string (Makefile.am): Remove redundant replacement.
53582         * modules/regex (Depends-on): Add mempcpy.
53583
53584 2007-01-31  Bruno Haible  <bruno@clisp.org>
53585
53586         New module description field 'Link'.
53587         * gnulib-tool (func_usage): Document --extract-link-directive.
53588         (sed_extract_prog): Recognize 'Link' directive.
53589         (func_get_link_directive): New function.
53590         (func_import): Show summary of link directives.
53591         Handle --extract-link-directive option.
53592         * modules/acl (Link): New section.
53593         * modules/clock-time (Link): New section.
53594         * modules/euidaccess (Link): New section.
53595         * modules/gettext (Link): New section.
53596         * modules/iconv (Link): New section.
53597         * modules/lock (Link): New section.
53598         * modules/nanosleep (Link): New section.
53599         * modules/readline (Link): New section.
53600
53601 2007-01-27  Bruno Haible  <bruno@clisp.org>
53602
53603         Enforce the use of gnulib modules for unportable <string.h> functions.
53604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53605         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53606         (gl_HEADER_STRING_H_BODY): Require it.
53607         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53608         the symbol XYZ to one that gives a link error.
53609         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53610         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53611         * modules/mempcpy (configure.ac): Likewise.
53612         * modules/memrchr (configure.ac): Likewise.
53613         * modules/stpcpy (configure.ac): Likewise.
53614         * modules/stpncpy (configure.ac): Likewise.
53615         * modules/strcase (configure.ac): Likewise.
53616         * modules/strcasestr (configure.ac): Likewise.
53617         * modules/strchrnul (configure.ac): Likewise.
53618         * modules/strdup (configure.ac): Likewise.
53619         * modules/strndup (configure.ac): Likewise.
53620         * modules/strnlen (configure.ac): Likewise.
53621         * modules/strpbrk (configure.ac): Likewise.
53622         * modules/strsep (configure.ac): Likewise.
53623         * modules/strstr (configure.ac): Likewise.
53624         * modules/strtok_r (configure.ac): Likewise.
53625
53626 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53627
53628         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53629
53630 2007-01-30  Jim Meyering  <jim@meyering.net>
53631
53632         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53633
53634 2007-01-29  Bruno Haible  <bruno@clisp.org>
53635
53636         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53637         * lib/execute.c: Likewise.
53638         * lib/pipe.c: Likewise.
53639         * lib/printf-args.h: Likewise.
53640         * lib/printf-args.c: Likewise.
53641         * lib/printf-parse.c: Likewise.
53642         * lib/vasnprintf.c: Likewise.
53643
53644 2007-01-29  Eric Blake  <ebb9@byu.net>
53645
53646         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53647         declaration.
53648
53649 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * lib/strptime.h (strptime): Use 'restrict' for args where
53652         POSIX requires this.
53653         * lib/strptime.c (strptime): Likewise.
53654         Change license notice from LGPL to GPL, since gnulib-tool will
53655         change this as needed.
53656         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53657         defined.
53658         Include "strptime.h" first, to check interface.
53659         Do not #undef _LIBC and _NL_CURRENT.
53660         Do not include <stdlib.h>; no longer needed.
53661         Include "time_r.h" and declare ptime_locale_status
53662         only if _LIBC is not defined.
53663         (__P): Remove unused macro.
53664         (match_string): Bring back glibc version, but use it only if _LIBC
53665         is defined.
53666         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53667         Remove unnecessary assertion and abort() call.
53668         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53669         * m4/strptime.m4: Fix serial number comment.
53670         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53671         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53672         (Depends-on): Add time_r.
53673
53674 2007-01-29  Bruno Haible  <bruno@clisp.org>
53675
53676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53677         strptime.
53678         * modules/strptime (Depends-on): Add stdbool.
53679         * lib/strptime.h: Include <time.h> always. Add comments.
53680
53681 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53682
53683         * modules/strptime: New file.
53684         * lib/strptime.h: New file.
53685         * lib/strptime.c: New file.
53686         * m4/strptime.m4: New file.
53687
53688 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * MODULES.html.sh: New module mpsort.
53691         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53692
53693         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53694         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53696         All uses changed.
53697         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53698         All uses changed.
53699         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53700         to _Restrict_.
53701         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53702         the parameter matches the prototype.
53703
53704 2007-01-28  Jim Meyering  <jim@meyering.net>
53705
53706         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53707         sys/time.h here, reverting that part of the previous patch:
53708         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53709
53710 2007-01-28  Bruno Haible  <bruno@clisp.org>
53711
53712         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53713         value of $(SYS_TIME_H).
53714         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53715         remove it conditionally, too. [added by Jim Meyering]
53716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53718         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53719         GETTIMEOFDAY_REPLACEMENT to 1.
53720
53721 2007-01-28  Bruno Haible  <bruno@clisp.org>
53722
53723         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53724         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53726         Set UNISTD_H instead of UNISTD_H2.
53727         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53728
53729 2007-01-28  Bruno Haible  <bruno@clisp.org>
53730
53731         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53732         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53733
53734 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53735
53736         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53737         (func_create_testdir): Ensure C locale for `grep' and `tr'
53738         character ranges.
53739         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53740         ACLOCAL_AMFLAGS parsing state machine.
53741
53742 2007-01-27  Bruno Haible  <bruno@clisp.org>
53743
53744         * modules/unistr/base: Update.
53745
53746 2007-01-27  Bruno Haible  <bruno@clisp.org>
53747
53748         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53749         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53750         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53751         modules/unistr/u32-mbtouc.
53752         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53753         * lib/unistr.h: Update.
53754         * lib/linebreak.c: Update.
53755         * modules/unistr/u32-mbtouc: Renamed from
53756         modules/unistr/u32-mbtouc-safe.
53757         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53758         * lib/unistr.h: Update.
53759         * lib/unistr/u32-to-u8.c: Update.
53760         * lib/unistr/u32-to-u16.c: Update.
53761
53762 2007-01-27  Bruno Haible  <bruno@clisp.org>
53763
53764         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53765         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53766         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53767         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53768         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53769         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53770         modules/unistr/u16-mbtouc.
53771         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53772         * lib/unistr.h: Update.
53773         * lib/linebreak.c: Update.
53774         * modules/linebreak: Update.
53775         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53776         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53777         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53778         * modules/unistr/u16-mbtouc: Renamed from
53779         modules/unistr/u16-mbtouc-safe.
53780         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53781         * lib/unistr.h: Update.
53782         * lib/unistr/u16-to-u8.c: Update.
53783         * modules/unistr/u16-to-u8: Update.
53784         * lib/unistr/u16-to-u32.c: Update.
53785         * modules/unistr/u16-to-u32: Update.
53786
53787 2007-01-27  Bruno Haible  <bruno@clisp.org>
53788
53789         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53790         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53791         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53792         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53793         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53794         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53795         modules/unistr/u8-mbtouc.
53796         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53797         * lib/unistr.h: Update.
53798         * lib/striconveh.c: Update.
53799         * modules/striconveh: Update.
53800         * lib/linebreak.c: Update.
53801         * modules/linebreak: Update.
53802         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53803         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53804         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53805         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53806         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53807         * lib/unistr.h: Update.
53808         * lib/striconveh.c: Update.
53809         * modules/striconveh: Update.
53810         * lib/unistr/u8-to-u16.c: Update.
53811         * modules/unistr/u8-to-u16: Update.
53812         * lib/unistr/u8-to-u32.c: Update.
53813         * modules/unistr/u8-to-u32: Update.
53814
53815 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53816
53817         Sync from Libtool.
53818         * lib/argz.c: Do not include strings.h nor memory.h, include
53819         string.h unconditionally.  Patch by Simon Josefsson.
53820
53821 2007-01-27  Bruno Haible  <bruno@clisp.org>
53822
53823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53824         from gl_HEADER_STRING_H_BODY.
53825         (gl_HEADER_STRING_H_BODY): Require it.
53826         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53828         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53829         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53831         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53833         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53834         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53836         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53837         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53838         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53839         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53840         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53841
53842 2007-01-27  Bruno Haible  <bruno@clisp.org>
53843
53844         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53845         check_PROGRAMS into noinst_PROGRAMS.
53846         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53847         check_PROGRAMS in this case.
53848         (func_import): Set for_test to false.
53849         (func_create_testdir): Set for_test to true.
53850
53851 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53852             Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53855         (Depends-on): Add string.
53856         (Includes): Use <string.h> instead of strcasestr.h.
53857         * modules/string (Makefile.am): Also substitute the value of
53858         REPLACE_STRCASESTR.
53859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53860         assume strcasestr is declared in <string.h> not <strings.h>. Also
53861         set REPLACE_STRCASESTR.
53862         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53863         REPLACE_STRCASESTR.
53864         * lib/strcasestr.h: Remove file.
53865         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53866         * lib/string_.h (strcasestr): New declaration.
53867
53868 2007-01-27  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/string_.h: Use 'extern'.
53871
53872 2007-01-27  Jim Meyering  <jim@meyering.net>
53873
53874         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53875         of set-but-not-used local, "q".
53876
53877         * lib/mempcpy.c: Include <config.h> before <string.h>.
53878         This fixes a compilation error on HP-UX, due to the system's
53879         "restrict"-using mempcpy prototype.
53880
53881 2007-01-26  Bruno Haible  <bruno@clisp.org>
53882
53883         Small optimization.
53884         * lib/javacomp.c: Include c-strstr.h.
53885          (is_envjavac_gcj): Use c_strstr instead of strstr.
53886         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53887
53888 2007-01-26  Bruno Haible  <bruno@clisp.org>
53889
53890         * MODULES.html.sh (Unicode string functions): Add the new modules.
53891
53892         * modules/uniconv/u32-strconv-to-locale: New file.
53893         * lib/uniconv/u32-strconv-to-locale.c: New file.
53894
53895         * modules/uniconv/u16-strconv-to-locale: New file.
53896         * lib/uniconv/u16-strconv-to-locale.c: New file.
53897
53898         * modules/uniconv/u8-strconv-to-locale: New file.
53899         * lib/uniconv/u8-strconv-to-locale.c: New file.
53900
53901         * modules/uniconv/u32-strconv-from-locale: New file.
53902         * lib/uniconv/u32-strconv-from-locale.c: New file.
53903
53904         * modules/uniconv/u16-strconv-from-locale: New file.
53905         * lib/uniconv/u16-strconv-from-locale.c: New file.
53906
53907         * modules/uniconv/u8-strconv-from-locale: New file.
53908         * lib/uniconv/u8-strconv-from-locale.c: New file.
53909
53910         * modules/uniconv/u32-strconv-to-enc: New file.
53911         * lib/uniconv/u32-strconv-to-enc.c: New file.
53912         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53913         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53914
53915         * modules/uniconv/u16-strconv-to-enc: New file.
53916         * lib/uniconv/u16-strconv-to-enc.c: New file.
53917         * lib/uniconv/u-strconv-to-enc.h: New file.
53918         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53919         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53920
53921         * modules/uniconv/u8-strconv-to-enc: New file.
53922         * lib/uniconv/u8-strconv-to-enc.c: New file.
53923         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53924         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53925
53926         * modules/uniconv/u32-strconv-from-enc: New file.
53927         * lib/uniconv/u32-strconv-from-enc.c: New file.
53928         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53929         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53930
53931         * modules/uniconv/u16-strconv-from-enc: New file.
53932         * lib/uniconv/u16-strconv-from-enc.c: New file.
53933         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53934         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53935
53936         * modules/uniconv/u8-strconv-from-enc: New file.
53937         * lib/uniconv/u8-strconv-from-enc.c: New file.
53938         * lib/uniconv/u-strconv-from-enc.h: New file.
53939         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53940         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53941
53942         * modules/uniconv/u32-conv-from-enc: New file.
53943         * lib/uniconv/u32-conv-from-enc.c: New file.
53944         * modules/uniconv/u32-conv-from-enc-tests: New file.
53945         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53946
53947         * modules/uniconv/u16-conv-from-enc: New file.
53948         * lib/uniconv/u16-conv-from-enc.c: New file.
53949         * lib/uniconv/u-conv-from-enc.h: New file.
53950         * modules/uniconv/u16-conv-from-enc-tests: New file.
53951         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53952
53953         * modules/uniconv/u8-conv-from-enc: New file.
53954         * lib/uniconv/u8-conv-from-enc.c: New file.
53955         * modules/uniconv/u8-conv-from-enc-tests: New file.
53956         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53957
53958         * modules/uniconv/base: New file.
53959         * lib/uniconv.h: New file.
53960
53961 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         * doc/gnulib-tool.texi (Initial import): Update to match current
53964         behavior with strdup module.
53965         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53966         * lib/memmem.h: Remove; all uses removed.  This is now done
53967         by <string.h>.
53968         * lib/mempcpy.h: Likewise.
53969         * lib/memrchr.h: Likewise.
53970         * lib/stpcpy.h: Likewise.
53971         * lib/stpncpy.h: Likewise.
53972         * lib/strcase.h: Likewise.
53973         * lib/strchrnul.h: Likewise.
53974         * lib/strdup.h: Likewise.
53975         * lib/strndup.h: Likewise.
53976         * lib/strnlen.h: Likewise.
53977         * lib/strpbrk.h: Likewise.
53978         * lib/strsep.h: Likewise.
53979         * lib/strstr.h: Likewise.
53980         * lib/strtok_r.h: Likewise.
53981         * lib/string_.h: New file.
53982         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53983         Rely on <string.h> instead.
53984         * lib/canon-host.c: Likewise.
53985         * lib/chdir-long.c: Likewise.
53986         * lib/concatpath.c: Likewise.
53987         * lib/exclude.c: Likewise.
53988         * lib/fchdir.c: Likewise.
53989         * lib/getaddrinfo.c: Likewise.
53990         * lib/getcwd.c: Likewise.
53991         * lib/getsubopt.c: Likewise.
53992         * lib/glob.c: Likewise.
53993         * lib/hard-locale.c: Likewise.
53994         * lib/iconvme.c: Likewise.
53995         * lib/javacomp.c: Likewise.
53996         * lib/mempcpy.c: Likewise.
53997         * lib/memrchr.c: Likewise.
53998         * lib/regex_internal.h: Likewise.
53999         * lib/stpncpy.c: Likewise.
54000         * lib/strcasecmp.c: Likewise.
54001         * lib/strchrnul.c: Likewise.
54002         * lib/strdup.c: Likewise.
54003         * lib/striconv.c: Likewise.
54004         * lib/striconveh.c: Likewise.
54005         * lib/striconveha.c: Likewise.
54006         * lib/strncasecmp.c: Likewise.
54007         * lib/strndup.c: Likewise.
54008         * lib/strnlen.c: Likewise.
54009         * lib/strsep.c: Likewise.
54010         * lib/strstr.c: Likewise.
54011         * lib/strtok_r.c: Likewise.
54012         * lib/userspec.c: Likewise.
54013         * lib/w32spawn.h: Likewise.
54014         * lib/xstrndup.c: Likewise.
54015         * lib/mountlist.c (strstr): Remove decl.
54016         * m4/string_h.m4: New file.
54017         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54018         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54020         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54021         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54022         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54023         Set REPLACE_STRCASECMP if necessary.
54024         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54025         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54026         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54028         HAVE_DECL_STRDUP if necessary.
54029         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54030         since gl_FUNC_STRNDUP does that now.
54031         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54032         Check for decl here...
54033         (gl_PREREQ_STRNLEN): ... not here.
54034         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54035         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54036         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54038         necessary.
54039         * modules/string: New file.
54040         * modules/memmem (Files): Remove special-purpose include file.
54041         (Depends-on): Add string.
54042         (Include): Include <string.h>, not the removed file.
54043         * modules/mempcpy: Likewise.
54044         * modules/memrchr: Likewise.
54045         * modules/stpcpy: Likewise.
54046         * modules/stpncpy: Likewise.
54047         * modules/strcase: Likewise.
54048         * modules/strchrnul: Likewise.
54049         * modules/strdup: Likewise.
54050         * modules/strndup: Likewise.
54051         * modules/strnlen: Likewise.
54052         * modules/strpbrk: Likewise.
54053         * modules/strsep: Likewise.
54054         * modules/strstr: Likewise.
54055         * modules/strtok_r: Likewise.
54056         * tests/test-dirname.c: Don't include "strdup.h", since
54057         <string.h> now suffices.
54058         * tests/test-memmem.c: Don't include "memmem.h", since
54059         <string.h> now suffices.
54060
54061 2007-01-25  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54064         *resultp is 0.
54065
54066         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54067         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54068         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54069         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54070
54071         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54072         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54073         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54074         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54075         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54076         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54077
54078 2007-01-24  Bruno Haible  <bruno@clisp.org>
54079
54080         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54082         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54083         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54084         gl_FUNC_FTS_CORE.
54085         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54086         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54087         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54088         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54089         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54090         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54091         gl_FUNC_FCHOWNAT.
54092         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54093         gl_FUNC_STRFTIME.
54094         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54095         Reported by Ralf Wildenhues.
54096
54097 2007-01-24  Bruno Haible  <bruno@clisp.org>
54098
54099         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54100         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54101         gl_GETADDRINFO.
54102         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54103         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54104         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54105
54106 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54109         Don't use 'exit'; just return from 'main'.
54110         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54111
54112         * lib/fnmatch_.h: Readjust white space and comments to match
54113         glibc, to avoid spurious diffs.
54114
54115 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54118         2004-12-01 change by Jakub Jelinek, since this code won't compile
54119         if !LIBC.  Problem reported by Bob Proulx.
54120
54121 2007-01-23  Bruno Haible  <bruno@clisp.org>
54122
54123         * lib/striconveh.c: Include c-strcaseeq.h.
54124         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54125         * modules/striconveh (Depends-on): Add c-strcaseeq.
54126
54127 2007-01-23  Bruno Haible  <bruno@clisp.org>
54128
54129         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54130
54131         * modules/c-strcaseeq: New file.
54132         * lib/c-strcaseeq.h: New file.
54133
54134         * modules/streq: New file.
54135         * lib/streq.h: New file.
54136
54137 2007-01-23  Bruno Haible  <bruno@clisp.org>
54138
54139         * modules/striconveha-tests: New file.
54140         * tests/test-striconveha.c: New file.
54141
54142         * lib/striconveha.h: Include <stdbool.h>.
54143         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54144         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54145         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54146         (mem_iconveha): New function.
54147         (str_iconveha_notranslit): Renamed from str_iconveha.
54148         (str_iconveha): New function.
54149         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54150         c-strcase.
54151
54152 2007-01-23  Bruno Haible  <bruno@clisp.org>
54153
54154         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54155         encodings without forgiving before trying any encoding with handler.
54156         (str_iconveha): Try all encodings without forgiving before trying any
54157         encoding with handler.
54158
54159 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         Import the following changes from libc.
54162
54163         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54164
54165         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54166
54167         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54168
54169         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54170         normal_bracket label.
54171
54172         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54173
54174         [BZ #361]
54175         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54176         to normal_bracket after fetching the next character.
54177
54178 2007-01-22  Bruno Haible  <bruno@clisp.org>
54179
54180         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54181         argument.
54182         * lib/striconveh.c (iconv_carefully_1): New function.
54183         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54184         argument.
54185         (str_cd_iconveh): Update.
54186         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54187         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54188         * tests/test-striconveh.c (MAGIC): New macro.
54189         (new_offsets): New function.
54190         (main): Test call with and without offsets.
54191
54192 2007-01-22  Bruno Haible  <bruno@clisp.org>
54193
54194         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54195         * modules/sys_select (Makefile.am): Likewise.
54196         * modules/sys_socket (Makefile.am): Likewise.
54197         * modules/sys_time (Makefile.am): Likewise.
54198
54199 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54200
54201         * modules/gettimeofday (License): Change from GPL to LGPL, since
54202         gettimeofday is a library function.
54203
54204 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54205
54206         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54207
54208 2007-01-21  Bruno Haible  <bruno@clisp.org>
54209
54210         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54211
54212 2007-01-21  Bruno Haible  <bruno@clisp.org>
54213
54214         * modules/striconveha: New file.
54215         * lib/striconveha.h: New file.
54216         * lib/striconveha.c: New file.
54217         * MODULES.html.sh (Internationalization functions): Add striconveha.
54218         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54219         string.
54220         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54221
54222 2007-01-21  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54225         * lib/striconveh.c (str_iconveh): Likewise.
54226
54227 2007-01-21  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/striconveh.h (mem_iconveh): New declaration.
54230         * lib/striconveh.c (mem_iconveh): New function.
54231         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54232
54233 2007-01-21  Bruno Haible  <bruno@clisp.org>
54234
54235         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54236
54237         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54238         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54239         original result buffer.
54240         (str_cd_iconveh): Update.
54241         * tests/test-striconveh.c (main): Update.
54242
54243         * lib/striconv.h (mem_cd_iconv): Change specification.
54244         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54245         result buffer.
54246         (str_cd_iconv): Update.
54247         * tests/test-striconv.c (main): Update.
54248
54249 2007-01-21  Bruno Haible  <bruno@clisp.org>
54250
54251         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54252
54253 2007-01-20  Jim Meyering  <jim@meyering.net>
54254
54255         * lib/userspec.c (parse_with_separator): If a user or group string
54256         starts with "+", skip the corresponding name-to-ID look-up, since
54257         such a look-up must fail: user and group names may not include "+".
54258
54259 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54260
54261         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54262         since we now assume the sys_time module.
54263         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54264         check for sys/time.h; no longer needed.
54265         * modules/poll (Depends-on): Depend on sys_time.
54266
54267 2007-01-18  Bruno Haible  <bruno@clisp.org>
54268
54269         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54271
54272         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54273         gettimeofday.
54274
54275         * tests/test-gettimeofday.c: Include <time.h>.
54276         (dummy): Remove variable.
54277
54278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54279         gl_HEADER_SYS_TIME_H.
54280         (gl_HEADER_SYS_TIME_H): New macro.
54281
54282         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54283         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54284         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54285         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54286         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54287         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54288         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54289         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54290         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54291         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54292         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54293
54294         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54295         last change; it caused a compilation error when cross-compiling to
54296         Cygwin.
54297
54298 2007-01-18  Jim Meyering  <jim@meyering.net>
54299
54300         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54301         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54302         than the race-prone "test -d sys || mkdir sys".
54303         (configure.ac): Use AC_PROG_MKDIR_P.
54304         * modules/sys_select: Likewise.
54305         * modules/sys_socket: Likewise.
54306         * modules/sys_time: Likewise.
54307
54308 2007-01-18  Eric Blake  <ebb9@byu.net>
54309
54310         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54311         replace gettimeofday.
54312         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54313         name, to avoid infinite recursion.
54314
54315 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54318         module sys_time.
54319         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54320         assume timespec.h defines struct timeval.
54321         * lib/settime.c: Likewise.
54322         * lib/utimens.c: Likewise.
54323         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54324         since we now assume the gettimeofday module.
54325         * lib/tempname.c (__gen_tempname): Likewise.
54326         * lib/gettimeofday.h: Remove.
54327         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54328         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54329         Include <time.h>, for 'time()'.
54330         (localtime_buffer_addr): Also use this workaround if
54331         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54332         to simplify the uses.  All uses changed.
54333         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54334         that #undef is inside {}, and 'const' follows type name consistently.
54335         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54336         (gettimeofday): Do not use the maximum possible value for
54337         tv->tv_usec, since that might break usages other than ls.c.
54338         Instead, we'll leave ls.c alone.  This undoes today's patch
54339         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54340         we've never observed the problem but might as well keep the
54341         canary.
54342         * lib/nanosleep.c: Include timespec.h first, for interface check.
54343         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54344         now assume the sys_time module.
54345         * lib/tempname.c: Likewise.
54346         * lib/timespec.h: Likewise.
54347         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54348         needed.
54349         * lib/strftime.c: Likewise.
54350         * lib/timespec.h: Likewise.
54351         * lib/posixtm.c: Include posixtm.h first, for interface check.
54352         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54353         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54354         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54355         * lib/sys_time_.h: New file.
54356         * lib/timespec.h (struct timespec): Use long int, not long.
54357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54358         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54359         Remove obsolescent call to AC_HEADER_TIME.
54360         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54363         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54364         Likewise.
54365         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54366         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54368         into the sys_time module.  Check for gettimeofday just once.
54369         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54370         for gettimeofday signature to just check the signature.  Merely
54371         compile it, since linking doesn't test signature.  Improve test for
54372         whether gettimeofday.o is actually needed.
54373         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54374         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54375         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54376         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54377         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54378         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54379         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54380         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54381         than worrying about sys/time.h.
54382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54383         Don't bother worrying about TIME_WITH_SYS_TIME.
54384         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54385         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54386         * m4/sys_time_h.m4: New file.
54387         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54388         Don't include sys/time.h.  Return from main rather than exiting.
54389         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54390         all uses changed.
54391         * modules/gethrxtime (Depends-on): Add sys_time.
54392         * modules/gettime (Depends-on): Likewise.
54393         * modules/gettimeofday (Depends-on): Likewise.
54394         * modules/nanosleep (Depends-on): Likewise.
54395         * modules/settime (Depends-on): Likewise.
54396         * modules/tempname (Depends-on): Likewise.
54397         * modules/utimens (Depends-on): Likewise.
54398         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54399         (Include): Change back to <sys/time.h>.
54400         (Maintainer): Add self.
54401         * modules/sys_time: New file.
54402         * modules/tempname (Depends-on): Add gettimeofday.
54403         * tests/test-gettimeofday.c: Include <sys/time.h>
54404         rather than gettimeofday.h.
54405
54406 2007-01-17  Bruno Haible  <bruno@clisp.org>
54407
54408         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54409         the license default to GPL.
54410         (func_create_testdir): Don't complain if a module is LGPL and its
54411         tests module depends on GPLed modules.
54412
54413 2007-01-17  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/gettimeofday.c (gettimeofday): Add code for the case
54416         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54417         maximum possible value for tv->tv_usec, rather than the minimum one.
54418
54419 2005-10-08  Martin Lambers  <marlam@marlam.de>
54420 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54421 2007-01-16  Bruno Haible  <bruno@clisp.org>
54422
54423         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54424         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54425         gl_FUNC_GETTIMEOFDAY.
54426         (Include): Add gettimeofday.h.
54427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54428         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54429         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54430         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54431         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54432         * lib/gettimeofday.h: New file.
54433         * lib/gettimeofday.c: Include <sys/timeb.h>.
54434         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54435         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54436         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54437         fall back on time().
54438
54439         * tests/test-gettimeofday.c: New file.
54440         * modules/gettimeofday-tests: New file.
54441
54442 2007-01-16  Eric Blake  <ebb9@byu.net>
54443
54444         * modules/fnmatch (Depends-on): Depend on wchar.
54445         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54446         * m4/fnmatch.m4: Likewise.
54447         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54448         * m4/mbchar.m4: Likewise.
54449         * modules/mbswidth (Depends-on): Depend on wchar.
54450         * lib/mbswidth.c: Assume <wchar.h>.
54451         * m4/mbswidth.m4: Likewise.
54452         * modules/quotearg (Depends-on): Depend on wchar.
54453         * lib/quotearg.c: Assume <wchar.h>.
54454         * m4/quotearg.m4: Likewise.
54455         * modules/regex (Depends-on): Depend on wchar.
54456         * lib/regex_internal.h: Assume <wchar.h>.
54457         * m4/regex.m4: Likewise.
54458         * modules/stdint (Depends-on): Depend on wchar.
54459         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54460         * m4/stdint.m4: Likewise.
54461         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54462         * modules/strftime (Depends-on): Depend on wchar.
54463         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54464         * modules/strtol (Depends-on): Depend on wchar.
54465         * lib/strtol.c: Assume <wchar.h>.
54466         * modules/wcwidth (Depends-on): Depend on wchar.
54467         * lib/wcwidth.h: Assume <wchar.h>.
54468         * m4/wcwidth.m4: Likewise.
54469
54470 2007-01-16  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/csharpexec-script: New, created from...
54473         * modules/csharpexec: ... this.
54474
54475 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54476
54477         * modules/javaexec-script: New, created from...
54478         * modules/javaexec: ... this.
54479
54480 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54481
54482         * modules/poll (Dependencies): Add sys_select.
54483
54484 2007-01-15  Jim Meyering  <jim@meyering.net>
54485
54486         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54487         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54488         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54489         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54490
54491 2007-01-15  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/striconveh: New file.
54494         * lib/striconveh.h: New file.
54495         * lib/striconveh.c: New file.
54496         * MODULES.html.sh (Internationalization functions): Add striconveh.
54497
54498         * modules/striconveh-tests: New file.
54499         * tests/test-striconveh.c: New file.
54500
54501 2007-01-15  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54504         not from GNU libiconv or GNU libc.
54505
54506 2007-01-15  Bruno Haible  <bruno@clisp.org>
54507
54508         * doc/gnulib-intro.texi (Copyright): Explain the different license
54509         terms for module descriptions, autoconf macros, tests, documentation.
54510
54511 2007-01-14  Bruno Haible  <bruno@clisp.org>
54512
54513         * modules/striconv-tests: New file.
54514         * tests/test-striconv.c: New file.
54515
54516 2007-01-14  Bruno Haible  <bruno@clisp.org>
54517
54518         * modules/iconv-tests: New file.
54519         * tests/test-iconv.c: New file.
54520
54521 2007-01-14  Bruno Haible  <bruno@clisp.org>
54522
54523         * gnulib-tool (func_get_license): For test modules, use the license of
54524         the main module.
54525
54526 2007-01-14  Bruno Haible  <bruno@clisp.org>
54527
54528         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54529         if iconv is found to exist.
54530
54531 2007-01-14  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/c-ctype-tests: New file.
54534         * tests/test-c-ctype.c: New file.
54535
54536 2007-01-14  Bruno Haible  <bruno@clisp.org>
54537
54538         * modules/binary-io-tests: New file.
54539         * tests/test-binary-io.sh: New file.
54540         * tests/test-binary-io.c: New file.
54541
54542 2007-01-14  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/array-oset-tests: New file.
54545         * tests/test-array_oset.c: New file.
54546
54547 2007-01-14  Bruno Haible  <bruno@clisp.org>
54548
54549         * modules/array-list-tests: New file.
54550         * tests/test-array_list.c: New file.
54551
54552 2007-01-14  Bruno Haible  <bruno@clisp.org>
54553
54554         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54555         and make.
54556         Reported by Simon Josefsson in
54557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54558
54559 2007-01-14  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/allocsa-tests: New file.
54562         * tests/test-allocsa.c: New file.
54563
54564 2007-01-14  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/fchdir (Depends-on): Add absolute-header.
54567         * modules/unistd (Depends-on): Likewise.
54568
54569 2006-12-30  Bruno Haible  <bruno@clisp.org>
54570
54571         * modules/fchdir: New file.
54572         * modules/unistd (Files): Add lib/unistd_.h.
54573         (Makefile.am): Generate unistd.h from unistd_.h.
54574         * lib/fchdir.c: New file.
54575         * lib/dirent_.h: New file.
54576         * lib/unistd_.h: New file.
54577         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54578         * m4/fchdir.m4: New file.
54579         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54580         (gl_HEADER_UNISTD): Invoke it.
54581         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54582         function.
54583         * lib/backupfile.c (opendir, closedir): Undefine.
54584         * lib/chown.c (open, close): Undefine.
54585         * lib/clean-temp.c (open, close): Undefine.
54586         * lib/copy-file.c (open, close): Undefine.
54587         * lib/execute.c (open, close): Undefine.
54588         * lib/fsusage.c (open, close): Undefine.
54589         * lib/gc-gnulib.c (open, close): Undefine.
54590         * lib/getcwd.c (opendir, closedir): Undefine.
54591         * lib/glob.c (opendir, closedir): Undefine.
54592         * lib/javacomp.c (open, close): Undefine.
54593         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54594         * lib/openat-proc.c (open, close): Undefine.
54595         * lib/pagealign_alloc.c (open, close): Undefine.
54596         * lib/pipe.c (open, close): Undefine.
54597         * lib/progreloc.c (open, close): Undefine.
54598         * lib/savedir.c (opendir, closedir): Undefine.
54599         * lib/utime.c (open, close): Undefine.
54600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54601
54602 2007-01-10  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54605
54606 2007-01-12  Eric Blake  <ebb9@byu.net>
54607
54608         Provide a robust <wchar.h>.  Further simplifications are now
54609         possible in other modules, but not included here.
54610         * modules/wchar: New module.
54611         * m4/wchar.m4: New file.
54612         * lib/wchar_.h: Likewise.
54613         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54614         of the new module.
54615         * MODULES.html.sh (Extended multibyte and wide character utilities):
54616         New section.
54617
54618 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54621         to a reasonable default for memory allocation.
54622         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54623         file system that reports garbage st_size values for symlinks.
54624         Problem reported by Liyang Hu.
54625
54626 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54627
54628         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54629         Emacs .#* auto-save files).
54630
54631 2007-01-11  Bruno Haible  <bruno@clisp.org>
54632
54633         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54634         directory.
54635
54636 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         Use @...@ consistently in lib/wctype_.h.
54639         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54640         on it being set to 1 or 0.
54641         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54642         go back to AC_SUBSTing it.
54643         * modules/wctype (Makefile.am): Undo previous change.
54644
54645 2007-01-10  Eric Blake  <ebb9@byu.net>
54646
54647         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54648         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54649         * modules/wctype (Makefile.am): Likewise.
54650         Reported by Chris McGuire.
54651
54652 2007-01-10  Jim Meyering  <jim@meyering.net>
54653
54654         fts.c: a small readability/maintainability improvement
54655         * lib/fts.c (fts_read): Make this code slightly more readable and
54656         maintainable by hoisting the "sp->fts_cur = p" assignments to
54657         immediately follow the statements that set P.  Derived from
54658         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54659
54660 2007-01-10  Eric Blake  <ebb9@byu.net>
54661
54662         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54663         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54665         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54666         Reported by Chris McGuire.
54667
54668 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54669
54670         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54671         in sed script.
54672
54673 2007-01-09  Bruno Haible  <bruno@clisp.org>
54674
54675         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54676         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54677         variables.
54678         (func_module): Use them.
54679
54680 2007-01-09  Bruno Haible  <bruno@clisp.org>
54681
54682         * modules/unistr/base: New file.
54683         * lib/unistr.h: New file.
54684
54685         * modules/unistr/u8-to-u16: New file.
54686         * lib/unistr/u8-to-u16.c: New file.
54687
54688         * modules/unistr/u8-to-u32: New file.
54689         * lib/unistr/u8-to-u32.c: New file.
54690
54691         * modules/unistr/u16-to-u8: New file.
54692         * lib/unistr/u16-to-u8.c: New file.
54693
54694         * modules/unistr/u16-to-u32: New file.
54695         * lib/unistr/u16-to-u32.c: New file.
54696
54697         * modules/unistr/u32-to-u8: New file.
54698         * lib/unistr/u32-to-u8.c: New file.
54699
54700         * modules/unistr/u32-to-u16: New file.
54701         * lib/unistr/u32-to-u16.c: New file.
54702
54703         * modules/unistr/u8-check: New file.
54704         * modules/unistr/u16-check: New file.
54705         * modules/unistr/u32-check: New file.
54706         * lib/unistr/u8-check.c: New file.
54707         * lib/unistr/u16-check.c: New file.
54708         * lib/unistr/u32-check.c: New file.
54709
54710         * modules/unistr/u8-chr: New file.
54711         * modules/unistr/u16-chr: New file.
54712         * modules/unistr/u32-chr: New file.
54713         * lib/unistr/u8-chr.c: New file.
54714         * lib/unistr/u16-chr.c: New file.
54715         * lib/unistr/u32-chr.c: New file.
54716
54717         * modules/unistr/u8-cmp: New file.
54718         * modules/unistr/u16-cmp: New file.
54719         * modules/unistr/u32-cmp: New file.
54720         * lib/unistr/u8-cmp.c: New file.
54721         * lib/unistr/u16-cmp.c: New file.
54722         * lib/unistr/u32-cmp.c: New file.
54723
54724         * modules/unistr/u8-cpy: New file.
54725         * modules/unistr/u16-cpy: New file.
54726         * modules/unistr/u32-cpy: New file.
54727         * lib/unistr/u8-cpy.c: New file.
54728         * lib/unistr/u16-cpy.c: New file.
54729         * lib/unistr/u32-cpy.c: New file.
54730         * lib/unistr/u-cpy.h: New file.
54731
54732         * modules/unistr/u8-cpy-alloc: New file.
54733         * modules/unistr/u16-cpy-alloc: New file.
54734         * modules/unistr/u32-cpy-alloc: New file.
54735         * lib/unistr/u8-cpy-alloc.c: New file.
54736         * lib/unistr/u16-cpy-alloc.c: New file.
54737         * lib/unistr/u32-cpy-alloc.c: New file.
54738         * lib/unistr/u-cpy-alloc.h: New file.
54739
54740         * modules/unistr/u8-endswith: New file.
54741         * modules/unistr/u16-endswith: New file.
54742         * modules/unistr/u32-endswith: New file.
54743         * lib/unistr/u8-endswith.c: New file.
54744         * lib/unistr/u16-endswith.c: New file.
54745         * lib/unistr/u32-endswith.c: New file.
54746         * lib/unistr/u-endswith.h: New file.
54747
54748         * modules/unistr/u8-mblen: New file.
54749         * modules/unistr/u16-mblen: New file.
54750         * modules/unistr/u32-mblen: New file.
54751         * lib/unistr/u8-mblen.c: New file.
54752         * lib/unistr/u16-mblen.c: New file.
54753         * lib/unistr/u32-mblen.c: New file.
54754
54755         * modules/unistr/u8-mbtouc: New file.
54756         * modules/unistr/u16-mbtouc: New file.
54757         * modules/unistr/u32-mbtouc: New file.
54758         * lib/unistr/u8-mbtouc.c: New file.
54759         * lib/unistr/u16-mbtouc.c: New file.
54760         * lib/unistr/u32-mbtouc.c: New file.
54761
54762         * modules/unistr/u8-mbtouc-safe: New file.
54763         * modules/unistr/u16-mbtouc-safe: New file.
54764         * modules/unistr/u32-mbtouc-safe: New file.
54765         * lib/unistr/u8-mbtouc-safe.c: New file.
54766         * lib/unistr/u16-mbtouc-safe.c: New file.
54767         * lib/unistr/u32-mbtouc-safe.c: New file.
54768
54769         * modules/unistr/u8-move: New file.
54770         * modules/unistr/u16-move: New file.
54771         * modules/unistr/u32-move: New file.
54772         * lib/unistr/u8-move.c: New file.
54773         * lib/unistr/u16-move.c: New file.
54774         * lib/unistr/u32-move.c: New file.
54775         * lib/unistr/u-move.h: New file.
54776
54777         * modules/unistr/u8-next: New file.
54778         * modules/unistr/u16-next: New file.
54779         * modules/unistr/u32-next: New file.
54780         * lib/unistr/u8-next.c: New file.
54781         * lib/unistr/u16-next.c: New file.
54782         * lib/unistr/u32-next.c: New file.
54783
54784         * modules/unistr/u8-prev: New file.
54785         * modules/unistr/u16-prev: New file.
54786         * modules/unistr/u32-prev: New file.
54787         * lib/unistr/u8-prev.c: New file.
54788         * lib/unistr/u16-prev.c: New file.
54789         * lib/unistr/u32-prev.c: New file.
54790
54791         * modules/unistr/u8-set: New file.
54792         * modules/unistr/u16-set: New file.
54793         * modules/unistr/u32-set: New file.
54794         * lib/unistr/u8-set.c: New file.
54795         * lib/unistr/u16-set.c: New file.
54796         * lib/unistr/u32-set.c: New file.
54797         * lib/unistr/u-set.h: New file.
54798
54799         * modules/unistr/u8-startswith: New file.
54800         * modules/unistr/u16-startswith: New file.
54801         * modules/unistr/u32-startswith: New file.
54802         * lib/unistr/u8-startswith.c: New file.
54803         * lib/unistr/u16-startswith.c: New file.
54804         * lib/unistr/u32-startswith.c: New file.
54805         * lib/unistr/u-startswith.h: New file.
54806
54807         * modules/unistr/u8-stpcpy: New file.
54808         * modules/unistr/u16-stpcpy: New file.
54809         * modules/unistr/u32-stpcpy: New file.
54810         * lib/unistr/u8-stpcpy.c: New file.
54811         * lib/unistr/u16-stpcpy.c: New file.
54812         * lib/unistr/u32-stpcpy.c: New file.
54813         * lib/unistr/u-stpcpy.h: New file.
54814
54815         * modules/unistr/u8-stpncpy: New file.
54816         * modules/unistr/u16-stpncpy: New file.
54817         * modules/unistr/u32-stpncpy: New file.
54818         * lib/unistr/u8-stpncpy.c: New file.
54819         * lib/unistr/u16-stpncpy.c: New file.
54820         * lib/unistr/u32-stpncpy.c: New file.
54821         * lib/unistr/u-stpncpy.h: New file.
54822
54823         * modules/unistr/u8-strcat: New file.
54824         * modules/unistr/u16-strcat: New file.
54825         * modules/unistr/u32-strcat: New file.
54826         * lib/unistr/u8-strcat.c: New file.
54827         * lib/unistr/u16-strcat.c: New file.
54828         * lib/unistr/u32-strcat.c: New file.
54829         * lib/unistr/u-strcat.h: New file.
54830
54831         * modules/unistr/u8-strchr: New file.
54832         * modules/unistr/u16-strchr: New file.
54833         * modules/unistr/u32-strchr: New file.
54834         * lib/unistr/u8-strchr.c: New file.
54835         * lib/unistr/u16-strchr.c: New file.
54836         * lib/unistr/u32-strchr.c: New file.
54837
54838         * modules/unistr/u8-strcmp: New file.
54839         * modules/unistr/u16-strcmp: New file.
54840         * modules/unistr/u32-strcmp: New file.
54841         * lib/unistr/u8-strcmp.c: New file.
54842         * lib/unistr/u16-strcmp.c: New file.
54843         * lib/unistr/u32-strcmp.c: New file.
54844
54845         * modules/unistr/u8-strcpy: New file.
54846         * modules/unistr/u16-strcpy: New file.
54847         * modules/unistr/u32-strcpy: New file.
54848         * lib/unistr/u8-strcpy.c: New file.
54849         * lib/unistr/u16-strcpy.c: New file.
54850         * lib/unistr/u32-strcpy.c: New file.
54851         * lib/unistr/u-strcpy.h: New file.
54852
54853         * modules/unistr/u8-strcspn: New file.
54854         * modules/unistr/u16-strcspn: New file.
54855         * modules/unistr/u32-strcspn: New file.
54856         * lib/unistr/u8-strcspn.c: New file.
54857         * lib/unistr/u16-strcspn.c: New file.
54858         * lib/unistr/u32-strcspn.c: New file.
54859         * lib/unistr/u-strcspn.h: New file.
54860
54861         * modules/unistr/u8-strdup: New file.
54862         * modules/unistr/u16-strdup: New file.
54863         * modules/unistr/u32-strdup: New file.
54864         * lib/unistr/u8-strdup.c: New file.
54865         * lib/unistr/u16-strdup.c: New file.
54866         * lib/unistr/u32-strdup.c: New file.
54867         * lib/unistr/u-strdup.h: New file.
54868
54869         * modules/unistr/u8-strlen: New file.
54870         * modules/unistr/u16-strlen: New file.
54871         * modules/unistr/u32-strlen: New file.
54872         * lib/unistr/u8-strlen.c: New file.
54873         * lib/unistr/u16-strlen.c: New file.
54874         * lib/unistr/u32-strlen.c: New file.
54875         * lib/unistr/u-strlen.h: New file.
54876
54877         * modules/unistr/u8-strmblen: New file.
54878         * modules/unistr/u16-strmblen: New file.
54879         * modules/unistr/u32-strmblen: New file.
54880         * lib/unistr/u8-strmblen.c: New file.
54881         * lib/unistr/u16-strmblen.c: New file.
54882         * lib/unistr/u32-strmblen.c: New file.
54883
54884         * modules/unistr/u8-strmbtouc: New file.
54885         * modules/unistr/u16-strmbtouc: New file.
54886         * modules/unistr/u32-strmbtouc: New file.
54887         * lib/unistr/u8-strmbtouc.c: New file.
54888         * lib/unistr/u16-strmbtouc.c: New file.
54889         * lib/unistr/u32-strmbtouc.c: New file.
54890
54891         * modules/unistr/u8-strncat: New file.
54892         * modules/unistr/u16-strncat: New file.
54893         * modules/unistr/u32-strncat: New file.
54894         * lib/unistr/u8-strncat.c: New file.
54895         * lib/unistr/u16-strncat.c: New file.
54896         * lib/unistr/u32-strncat.c: New file.
54897         * lib/unistr/u-strncat.h: New file.
54898
54899         * modules/unistr/u8-strncmp: New file.
54900         * modules/unistr/u16-strncmp: New file.
54901         * modules/unistr/u32-strncmp: New file.
54902         * lib/unistr/u8-strncmp.c: New file.
54903         * lib/unistr/u16-strncmp.c: New file.
54904         * lib/unistr/u32-strncmp.c: New file.
54905
54906         * modules/unistr/u8-strncpy: New file.
54907         * modules/unistr/u16-strncpy: New file.
54908         * modules/unistr/u32-strncpy: New file.
54909         * lib/unistr/u8-strncpy.c: New file.
54910         * lib/unistr/u16-strncpy.c: New file.
54911         * lib/unistr/u32-strncpy.c: New file.
54912         * lib/unistr/u-strncpy.h: New file.
54913
54914         * modules/unistr/u8-strnlen: New file.
54915         * modules/unistr/u16-strnlen: New file.
54916         * modules/unistr/u32-strnlen: New file.
54917         * lib/unistr/u8-strnlen.c: New file.
54918         * lib/unistr/u16-strnlen.c: New file.
54919         * lib/unistr/u32-strnlen.c: New file.
54920         * lib/unistr/u-strnlen.h: New file.
54921
54922         * modules/unistr/u8-strpbrk: New file.
54923         * modules/unistr/u16-strpbrk: New file.
54924         * modules/unistr/u32-strpbrk: New file.
54925         * lib/unistr/u8-strpbrk.c: New file.
54926         * lib/unistr/u16-strpbrk.c: New file.
54927         * lib/unistr/u32-strpbrk.c: New file.
54928         * lib/unistr/u-strpbrk.h: New file.
54929
54930         * modules/unistr/u8-strrchr: New file.
54931         * modules/unistr/u16-strrchr: New file.
54932         * modules/unistr/u32-strrchr: New file.
54933         * lib/unistr/u8-strrchr.c: New file.
54934         * lib/unistr/u16-strrchr.c: New file.
54935         * lib/unistr/u32-strrchr.c: New file.
54936
54937         * modules/unistr/u8-strspn: New file.
54938         * modules/unistr/u16-strspn: New file.
54939         * modules/unistr/u32-strspn: New file.
54940         * lib/unistr/u8-strspn.c: New file.
54941         * lib/unistr/u16-strspn.c: New file.
54942         * lib/unistr/u32-strspn.c: New file.
54943         * lib/unistr/u-strspn.h: New file.
54944
54945         * modules/unistr/u8-strstr: New file.
54946         * modules/unistr/u16-strstr: New file.
54947         * modules/unistr/u32-strstr: New file.
54948         * lib/unistr/u8-strstr.c: New file.
54949         * lib/unistr/u16-strstr.c: New file.
54950         * lib/unistr/u32-strstr.c: New file.
54951         * lib/unistr/u-strstr.h: New file.
54952
54953         * modules/unistr/u8-strtok: New file.
54954         * modules/unistr/u16-strtok: New file.
54955         * modules/unistr/u32-strtok: New file.
54956         * lib/unistr/u8-strtok.c: New file.
54957         * lib/unistr/u16-strtok.c: New file.
54958         * lib/unistr/u32-strtok.c: New file.
54959         * lib/unistr/u-strtok.h: New file.
54960
54961         * modules/unistr/u8-uctomb: New file.
54962         * modules/unistr/u16-uctomb: New file.
54963         * modules/unistr/u32-uctomb: New file.
54964         * lib/unistr/u8-uctomb.c: New file.
54965         * lib/unistr/u16-uctomb.c: New file.
54966         * lib/unistr/u32-uctomb.c: New file.
54967
54968         * MODULES.html.sh (Unicode string functions): Add the new modules.
54969
54970 2007-01-08  Bruno Haible  <bruno@clisp.org>
54971
54972         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54973         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54974         subdirectories.
54975
54976 2007-01-08  Karl Berry  <karl@gnu.org>
54977
54978         * doc/error.texi: mention that main() fns must set program_name
54979         when progname is used.
54980
54981 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54982
54983         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54984         WCTYPE_H is empty, for the benefit of builds from non-distclean
54985         directories.  Problem reported by Eric Blake in
54986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54987
54988 2007-01-08  Bruno Haible  <bruno@clisp.org>
54989
54990         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54991         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54992         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54993         PROVIDE_CANONICALIZE_FILENAME_MODE.
54994         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54995
54996 2007-01-08  Bruno Haible  <bruno@clisp.org>
54997
54998         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54999         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55000         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55001         * lib/fts.c: Likewise.
55002         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55003
55004 2006-12-25  Bruno Haible  <bruno@clisp.org>
55005
55006         * modules/utf8-ucs4-safe: New file.
55007         * lib/utf8-ucs4-safe.h: New file.
55008         * lib/unistr/utf8-ucs4-safe.c: New file.
55009
55010         * modules/utf16-ucs4-safe: New file.
55011         * lib/utf16-ucs4-safe.h: New file.
55012         * lib/unistr/utf16-ucs4-safe.c: New file.
55013
55014         * MODULES.html.sh (Unicode string functions): Add the new modules.
55015
55016 2007-01-08  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55019         (Depends-on): Add unitypes.
55020         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55021         (u8_mbtouc_aux): Move out to separate file.
55022         (u8_mbtouc): Use ucs4_t, uint8_t types.
55023         * lib/unistr/utf8-ucs4.c: New file.
55024
55025         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55026         (Depends-on): Add unitypes.
55027         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55028         (u16_mbtouc_aux): Move out to separate file.
55029         (u16_mbtouc): Use ucs4_t, uint16_t types.
55030         * lib/unistr/utf16-ucs4.c: New file.
55031
55032         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55033         (Depends-on): Add unitypes.
55034         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55035         (u8_uctomb_aux): Move out to separate file.
55036         (u8_uctomb): Use ucs4_t, uint8_t types.
55037         * lib/unistr/ucs4-utf8.c: New file.
55038
55039         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55040         (Depends-on): Add unitypes.
55041         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55042         (u16_uctomb_aux): Move out to separate file.
55043         (u16_uctomb): Use ucs4_t, uint16_t types.
55044         * lib/unistr/ucs4-utf16.c: New file.
55045
55046 2006-12-25  Bruno Haible  <bruno@clisp.org>
55047
55048         * modules/unitypes: New file.
55049         * lib/unitypes.h: New file.
55050         * MODULES.html.sh (func_all_modules): New section "Unicode string
55051         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55052         this section. Add unitypes.
55053
55054 2007-01-08  Bruno Haible  <bruno@clisp.org>
55055
55056         Avoid variable names that conflict with those from libtool.
55057         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55058         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55059         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55060         library_names_spec to acl_library_names_spec, hardcode_* to
55061         acl_hardcode_*.
55062         Reported by Ralf Wildenhues.
55063
55064 2007-01-08  Bruno Haible  <bruno@clisp.org>
55065
55066         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55067         definition.
55068         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55069         definition.
55070         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55071         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55072         definition.
55073         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55074         definition.
55075         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55076         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55077         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55078         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55079         definition.
55080         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55081         definition.
55082         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55083         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55084         GC_USE_<algorithm>.
55085         * lib/gc-libgcrypt.c: Likewise.
55086         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55087         * modules/gc-arctwo (configure.ac): Likewise.
55088         * modules/gc-des (configure.ac): Likewise.
55089         * modules/gc-hmac-md5 (configure.ac): Likewise.
55090         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55091         * modules/gc-md2 (configure.ac): Likewise.
55092         * modules/gc-md4 (configure.ac): Likewise.
55093         * modules/gc-md5 (configure.ac): Likewise.
55094         * modules/gc-random (configure.ac): Likewise.
55095         * modules/gc-rijndael (configure.ac): Likewise.
55096         * modules/gc-sha1 (configure.ac): Likewise.
55097
55098 2007-01-08  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55101         macro definition.
55102         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55103         definition.
55104         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55105         definition.
55106         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55107         * modules/fcntl-safer (configure.ac): Likewise.
55108         * modules/fopen-safer (configure.ac): Likewise.
55109         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55110         GNULIB_FWRITEERROR macro definition.
55111
55112 2007-01-08  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/gnulib-common.m4: New file.
55115         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55116         (func_get_filelist): Add m4/gnulib-common.m4.
55117
55118 2007-01-08  Bruno Haible  <bruno@clisp.org>
55119
55120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55121         command.
55122
55123 2007-01-08  Jim Meyering  <jim@meyering.net>
55124
55125         Use a more robust test for a "can't happen" condition.
55126         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55127         narrowed the st_size value.  Presuming the "can't happen" condition
55128         is true, that narrowing could conceivably convert an invalid st_size
55129         value into a valid one.  Instead, use a change based on Matthew
55130         Woehlke's original patch.
55131
55132         Slight readability improvement: use an assert-like macro
55133         in place of literal "abort ()" uses.
55134         * lib/fts.c (fts_assert): Define.
55135         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55136         Use this macro instead of a bare 'abort'.
55137
55138 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55141         simply work around them.
55142         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55143         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55144         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55145         declaring.
55146         Don't bother to define as macros, since the standard doesn't require it.
55147         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55148         longer worry about IRIX 5.3.
55149         (HAVE_WCTYPE_CTMP_BUG): Remove.
55150
55151 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55154         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55155         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55156         Problems reported by Georg Schwarz for IRIX 5.3.
55157
55158         * gnulib-tool (autoconf_minversion): Take the maximum version number
55159         found, not the minimum.  Problem reported by James Youngman.
55160
55161 2007-01-03  Karl Berry  <karl@gnu.org>
55162
55163         * doc/error.texi: new file, explaining interaction with progname.
55164         * doc/gnulib.texi: include it.  Update copyright.
55165
55166 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55167
55168         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55169         AC_CANONICAL_HOST, to improve autobuild outputs.
55170
55171 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55172             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55173
55174         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55175         sockets, server sockets, and other file descriptors.  Count errors
55176         to compute the return value.  Reorder the code a bit to be easier
55177         to follow.  Don't set event bits that were not requested (except
55178         POLLERR and POLLHUP).
55179
55180 2007-01-01  Bruno Haible  <bruno@clisp.org>
55181
55182         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55183
55184 2007-01-03  Jim Meyering  <jim@meyering.net>
55185
55186         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55187
55188 2007-01-02  Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/settime (Include): Require timespec.h.
55191         * modules/nanosleep (Include): Likewise.
55192
55193 2007-01-01  Bruno Haible  <bruno@clisp.org>
55194
55195         * gnulib-tool (func_emit_copyright_notice): Bump year.
55196         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55197
55198 2007-01-01  Bruno Haible  <bruno@clisp.org>
55199
55200         Improve support for OpenBSD.
55201         * build-aux/config.rpath (libname_spec): Export.
55202         (library_names_spec): New variable. Export.
55203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55204         library_names_spec from the config.rpath output. Locate shared library
55205         through the name pattern in library_names_spec.
55206
55207 2007-01-01  Eric Blake  <ebb9@byu.net>
55208
55209         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55210
55211 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55212
55213         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55214         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55215         assume the C locale, and avoid an "eval" that could cause trouble.
55216         Problem with SORT reported by Bob Proulx.
55217
55218         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55219         Define.  Trivial patch from Henning Nielsen Lund, originally
55220         sent to bug-grep@gnu.org today.
55221
55222 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55223
55224         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55225         struct stat.  Problem reported by Henning Nielsen Lund.
55226         * lib/acl.c: Include acl.h first, to check interface.  Don't
55227         bother to include sys/types.h and sys/stat.h again.
55228
55229 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         Import the following change from libc; problem reported by
55232         Sven Verdoolaege.
55233
55234         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55235
55236         [BZ #1373]
55237         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55238
55239 2006-12-28  Jim Meyering  <jim@meyering.net>
55240
55241         * build-aux/announce-gen: Do not assume that the package
55242         builds any of tar.gz, tar.bz2, and .xdelta files.
55243         Suggestion from Simon Josefsson.
55244
55245 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55246
55247         * modules/announce-gen: New file.
55248
55249 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55252         handles its gotchas now.
55253         * lib/mbswidth.c: Likewise.
55254         * lib/wcwidth.h: Likewise.
55255         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55256         and iswcntrl; the wctype module does this stuff now.
55257         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55259         * modules/mbchar (Depends-on): Add wctype.
55260         * modules/mbswidth (Depends-on): Likewise.
55261         * modules/wcwidth (Depends-on): Likewise.
55262
55263 2006-12-27  Eric Blake  <ebb9@byu.net>
55264
55265         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55266         module uses more than what <wctype.h> is required to provide.
55267
55268 2006-12-26  Eric Blake  <ebb9@byu.net>
55269
55270         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55271
55272 2006-12-26  Eric Blake  <ebb9@byu.net>
55273
55274         * modules/absolute-header: New module.
55275         * modules/fcntl (Depends-on): Depend on it.
55276         * modules/inttypes (Depends-on): Likewise.
55277         * modules/stdint (Depends-on): Likewise.
55278         * modules/sys_stat (Depends-on): Likewise.
55279         * modules/wctype (Depends-on): Likewise.
55280         * MODULES.html.sh (Support for building libraries and
55281         executables): Document it.
55282
55283 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * gnulib-tool (SED): Remove, undoing previous change.
55286         The problem was that it broke coreutils on Solaris, because
55287         "sed --posix" leaked into a makefile.
55288         (sed): New alias, if 'alias' and GNU sed.
55289
55290 2006-12-24  Jim Meyering  <jim@meyering.net>
55291
55292         Work around an fchownat bug in glibc-2.4:
55293         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55294         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55295         in spite of the -P option.
55296         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55297         New macros.
55298         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55299         * modules/openat (Files): Add lib/fchownat.c.
55300         * lib/openat.c (fchownat): Don't define here.  Move to...
55301         * lib/fchownat.c: ...this new file.
55302
55303 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55304
55305         Fix bug reported by Bruno Haible in
55306         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55307         where quotearg.c didn't compile on Mac OS X 10.2 because it
55308         lacks <wchar.h> and wint_t.
55309         * lib/wctype_.h (__wctype_wint_t): New type.
55310         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55311         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55312         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55313         Arg is now of type __wctype_wint_t, not wint_t.
55314         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55315         substitute HAVE_WINT_T.
55316         * modules/wctype (Files): Add m4/wint_t.m4.
55317         (wctype.h): Substitute HAVE_WINT_T.
55318
55319 2006-12-23  Bruno Haible  <bruno@clisp.org>
55320
55321         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55322
55323 2006-12-23  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55326         S_ISLNK.
55327         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55328         mingw.
55329
55330 2006-12-22  Bruno Haible  <bruno@clisp.org>
55331
55332         * lib/copy-file.c: Include acl.h.
55333         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55334         Close the file descriptors only after being done with copy_acl.
55335         * modules/copy-file (Depends-on): Add acl.
55336
55337 2006-12-22  Bruno Haible  <bruno@clisp.org>
55338
55339         * gnulib-tool (SED): New variable.
55340         Use $SED instead of sed everywhere.
55341
55342 2006-12-22  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/no-c++: New file.
55345         * m4/no-c++.m4: New file.
55346         * MODULES.html.sh (Support for building libraries and executables):
55347         Add no-c++.
55348
55349 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55350
55351         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55352         Include <limits.h>, and use its INT_MAX to rewrite the
55353         j loop so that it does not overflow 'int'.  Problem reported by
55354         Ralf Wildenhues in
55355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55356         Play it safe by shifting left by 1 rather than multiplying by 2,
55357         as GCC is less likely to optimize this away when the value
55358         is signed (when it assumes overflow leads to undefined behavior).
55359         Also, don't assume time_t uses two's complement.
55360
55361 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * MODULES.html.sh: New module wctype.
55364         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55365         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55366         <wctype.h>, since the new wctype module should fix this.
55367         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55368         the wctype module should arrange for it.
55369         * lib/regex_internal.h: Likewise.
55370         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55371         since the wctype module should handle this now.
55372         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55373         * modules/fnmatch (Depends-on): Add wctype.
55374         * modules/quotearg (Depends-on): Likewise.
55375         * modules/regex (Depends-on): Likewise.
55376
55377 2006-12-19  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55380         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55381
55382 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55383
55384         * modules/savewd (Depends-on): Fix dependency on fcntl.
55385
55386 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55389         conforms to C99, rather than relying on the user's environment
55390         setting of STDINT_H.
55391
55392 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55393         and Eric Blake  <ebb9@byu.net>
55394
55395         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55396         This is more consistent with the other defines here.
55397         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55398         Port to z/OS.  Problem reported by Paul Gilmartin.
55399         Change local vars to use gl_ prefix rather than ac_.
55400         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55401         with other defines.
55402         * modules/double-slash-root: New module.
55403         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55404         (Depends-on): Add double-slash-root.
55405         * MODULES.html.sh (File system functions): Mention new module.
55406
55407 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55410         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55411         This is for the benefit of gzip, which doesn't do i18n.
55412
55413 2006-12-12  Jim Meyering  <jim@meyering.net>
55414
55415         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55416         Reported by Andreas Schwab <schwab@suse.de>.
55417
55418 2006-12-12  Bruno Haible  <bruno@clisp.org>
55419
55420         Merge these changes.
55421         2006-09-05  Bruno Haible  <bruno@clisp.org>
55422         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55423         iconv_alloc succeeded.
55424         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55425         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55426         test for " && dest " at the end - dest is always != NULL there. Call
55427         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55428         with 2xNULL arguments, also to flush the state storage. Handle the
55429         IRIX iconv behaviour. Realloc the final result, to throw away unused
55430         memory.
55431
55432 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55435         and fchmodat unconditionally, since glibc 2.4 has them.
55436         Problem reported by Arkadiusz Miskiewicz.
55437
55438 2006-12-10  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (func_import): Show the include files only for those
55441         modules that are copied and specified.
55442         Reported by Karl Berry.
55443
55444 2006-12-08  Jim Meyering  <jim@meyering.net>
55445
55446         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55447         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55448
55449         * build-aux/announce-gen: Add two new options, both optional:
55450         --bootstrap-tools=TOOL_LIST
55451               a comma-separated list of tools, e.g.,
55452               autoconf,automake,bison,gnulib
55453         --gnulib-snapshot-date=DATE
55454               if gnulib is in the bootstrap tool list,
55455               then report this as the snapshot date.
55456               If not specified, use the current date/time.
55457               If you specify a date here, be sure it's UTC.
55458
55459 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55460
55461         * tests/test-argp-2.sh: Fix test to match actual output.
55462         (func_compare): Fix sed script to be portable.
55463
55464 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55465
55466         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55467         workaround for this case.  It is not autoconfigured now; offhand
55468         it's hard to see how to autoconfigure it.
55469
55470 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55473         a directory that is about to be chowned.  Such a directory's
55474         initial file permissions should permit the owner only and this
55475         should not be changed until after the chown, since the group and
55476         other bits would be incorrect if they granted permission before
55477         the chown.
55478
55479         Fix porting problem for iswctype reported by Georg Schwarz in:
55480         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55481         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55482         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55483         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55484         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55485
55486 2006-12-03  Jim Meyering  <jim@meyering.net>
55487
55488         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55489         p->fts_statp may not yet be defined.
55490         (fts_read): Instead, set it in the caller, once p->fts_statp is
55491         sure to be defined, and corresponds to a top-level directory.
55492         This bug made du -x fail.  Here's the coreutils test case:
55493         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55494         Reported by Mike Frysinger.
55495
55496 2006-12-01  Jim Meyering  <jim@meyering.net>
55497
55498         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55499         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55500         Reported by Simon Josefsson.
55501
55502 2006-11-30  Jim Meyering  <jim@meyering.net>
55503
55504         * m4/warning.m4: Use the all-permissive copyright notice
55505         recommended by RMS (rather than LGPL).
55506         * m4/vararrays.m4: Likewise.
55507         * m4/flexmember.m4: Likewise.
55508
55509 2006-11-29  Bruno Haible  <bruno@clisp.org>
55510
55511         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55512         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55513         using +=.
55514         Reported by Simon Josefsson <simon@josefsson.org>.
55515
55516 2006-11-28  James Youngman <jay@gnu.org>
55517
55518         * README: Advise users that they might find the bug-gnulib@gnu.org
55519         and autotools-announce@gnu.org mailing lists useful.
55520
55521 2006-11-28  Bruno Haible  <bruno@clisp.org>
55522
55523         * m4/ptrdiff_max.m4: Remove file.
55524
55525 2006-11-21  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55528         _AC_COMPUTE_INT.
55529         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55530         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55531         _AC_COMPUTE_INT.
55532         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55533         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55534         _AC_COMPUTE_INT.
55535         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55536
55537 2006-11-28  Jim Meyering  <jim@meyering.net>
55538
55539         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55540         warning from "gcc -Wshadow" about shadowing the builtin.
55541
55542 2006-11-27  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55545         _AC_COMPUTE_INT.
55546         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55547
55548 2006-11-27  Bruno Haible  <bruno@clisp.org>
55549             Paul Eggert  <eggert@cs.ucla.edu>
55550
55551         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55552
55553 2006-11-26  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55556         noinst_LTLIBRARIES.
55557
55558 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55559             Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55562         if compiling with "gcc -ansi".
55563
55564 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         Fix some incompatibilities with gcc -ansi -pedantic.
55567         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55568         if compiling pedantically with GCC, unless it's C99 or later.
55569         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55570         it mishandles gcc -ansi -pedantic as well.
55571         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55572         if gcc -pedantic.
55573         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55574         initializers for struct if -pedantic, unless it's C99 or later.
55575
55576 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55577
55578         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55579         Don't close an fd more than once. Identical atimes indicate
55580         success, not failure.
55581
55582 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55583
55584         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55585
55586 2006-11-23  Jim Meyering  <jim@meyering.net>
55587
55588         * build-aux/announce-gen: New file.  From coreutils.
55589
55590 2006-11-22  Jim Meyering  <jim@meyering.net>
55591
55592         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55593         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55594         (fts_read): Use a temporary to narrow the overused st_size member
55595         before using it in a switch statement.  Reported by Matthew Woehlke.
55596
55597         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55598         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55599
55600 2006-11-20  Bruno Haible  <bruno@clisp.org>
55601
55602         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55603         changequote instead of pairs of brackets.
55604         Reported by Andreas Schwab <schwab@suse.de>.
55605
55606 2006-11-21  Jim Meyering  <jim@meyering.net>
55607
55608         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55609         so as to remain compatible with older compilers.
55610         Patch from Michael Deutschmann.
55611
55612 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * MODULES.html.sh (File system functions): Add openat.
55615
55616         * lib/openat.h (rpl_fstatat): New macro, if
55617         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55618         (fstatat): Define to rpl_fstatat under the same conditions,
55619         unless COMPILING_FSTATAT.
55620         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55621         seems to have the bug.
55622         * lib/fstatat.c: New file.
55623         * modules/openat (Files): Add it.
55624
55625 2006-11-20  Bruno Haible  <bruno@clisp.org>
55626
55627         * Makefile: New file.
55628
55629 2006-11-20  Jim Meyering  <jim@meyering.net>
55630
55631         The beginnings of syntax-related checks for gnulib.
55632         * lib/Makefile: New file.
55633         * lib/t-idcache: New script.  Ensure that the two halves of
55634         idcache.c stay in sync.
55635
55636         * lib/idcache.c: Adjust comments in user- and group- portions to
55637         be more accurate, and to be consistent with one another.
55638
55639 2006-11-20  Jim Meyering  <jim@meyering.net>
55640
55641         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55642         continue using the flexible array member (thus, this module performs
55643         half as many malloc calls), with the addition that...
55644         (getgroup, getuser): Consistently record a non-match via an empty
55645         "name" string, and map an empty string match to a NULL return value.
55646         * modules/idcache (Depends-on): Re-add flexmember.
55647
55648         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55649         (getuidbyname, getgroup, getgidbyname): Likewise.
55650
55651         Use cleaner syntax: NULL rather than 0.
55652         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55653
55654 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55657         It mishandled the case where the group was missing.
55658         Problem reported by Greg Schafer.
55659         * modules/idcache: Likewise.
55660
55661 2006-11-18  Jim Meyering  <jim@meyering.net>
55662
55663         * check-module (%exempt_header): Add exception for some
55664         conditionally-included headers.
55665
55666         * modules/i-ring (Depends-on): Add verify.
55667         (License): Change to LGPL.
55668
55669 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55672         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55673         and inttostr.h.  Use snprintf rather than uinttostr, so that
55674         LGPLed code doesn't depend on GPLed.
55675
55676 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55677
55678         * modules/inline (License): Change from GPL to LGPL.
55679
55680 2006-11-17  Jim Meyering  <jim@meyering.net>
55681
55682         * modules/d-type (License): Switch to LGPL.
55683
55684 2006-11-15  Bruno Haible  <bruno@clisp.org>
55685
55686         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55687
55688 2006-11-15  Eric Blake  <ebb9@byu.net>
55689
55690         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55691         the module dependency.
55692
55693 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55694             Bruno Haible  <bruno@clisp.org>
55695
55696         * gnulib-tool (func_create_testdir): Add license consistency check.
55697
55698 2006-11-15  Eric Blake  <ebb9@byu.net>
55699
55700         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55701         random "(cached)" in configure output.
55702
55703 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55704
55705         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55706         test for conforming inttypes.h is both announced and cached.
55707
55708         * MODULES.html.sh (seen_modules, seen_files): New variables.
55709         (func_module): Rewrite to use a few less gnulib-tool and sed
55710         invocations.  Avoid a couple of quadratic algorithms for ...
55711         (missed_modules, missed_files): ... these, with ...
55712         (func_append, func_tmpdir): ... these new functions, from
55713         gnulib-tool.  Analogously, install traps for cleanup.
55714
55715         * tests/test-gc.c (main): Remove unused variables.
55716         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55717
55718 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         * modules/inttostr (License): Change to LGPL.
55721
55722 2006-11-14  Eric Blake  <ebb9@byu.net>
55723
55724         * modules/tempname (License): Change to LGPL.
55725
55726 2006-11-14  Eric Blake  <ebb9@byu.net>
55727
55728         * doc/functions.texi (Function Portability): *printf functions on
55729         Cygwin now understand all POSIX size specifiers.
55730
55731 2006-11-14  Bruno Haible  <bruno@clisp.org>
55732
55733         * modules/c-ctype (License): Change to LGPL.
55734
55735 2006-11-12  Bruno Haible  <bruno@clisp.org>
55736
55737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55738         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55739         for GNOME libraries, for which the include files are installed in
55740         subdirectories of $prefix/include.
55741
55742 2006-11-12  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/lib-link.m4: Require at least autoconf-2.54.
55745         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55746         name to underscores for the --with option.
55747
55748 2006-11-13  Bruno Haible  <bruno@clisp.org>
55749
55750         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55751         the tests directory.
55752         Reported by Ralf Wildenhues.
55753
55754 2006-11-13  Bruno Haible  <bruno@clisp.org>
55755
55756         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55757         (func_emit_initmacro_end): Undo the override here.
55758         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55759         Works around the famous automake error in coreutils.
55760
55761 2006-11-13  Eric Blake  <ebb9@byu.net>
55762
55763         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55764         element, not its node.
55765
55766 2006-11-12  Bruno Haible  <bruno@clisp.org>
55767
55768         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55769         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55770
55771 2006-11-12  Bruno Haible  <bruno@clisp.org>
55772
55773         * gnulib-tool: New option --local-symlink.
55774         (func_usage): Document it.
55775         (lsymbolic): New variable.
55776         (func_import, func_create_testdir): If --symlink was not specified,
55777         test whether --local-symlink was specified and the file comes from
55778         the local_gnulib_dir.
55779
55780 2006-11-12  Bruno Haible  <bruno@clisp.org>
55781
55782         * gnulib-tool (func_ln): New function.
55783         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55784
55785 2006-11-12  Bruno Haible  <bruno@clisp.org>
55786
55787         Finish support for source files in subdirectories.
55788         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55789         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55790         AUTOMAKE_OPTIONS.
55791         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55792
55793 2006-11-12  Bruno Haible  <bruno@clisp.org>
55794
55795         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55796         EXTRA_lib_SOURCES augmentation.
55797         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55798
55799 2006-11-12  Jim Meyering  <jim@meyering.net>
55800
55801         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55802         file descriptors.  This also averts a failure on systems with
55803         native openat support when a traversed directory lacks "x" access.
55804         * lib/fts_.h: Include "i-ring.h"
55805         (struct FTS) [fts_fd_ring]: New member.
55806         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55807         (FCHDIR): Add parentheses.
55808         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55809         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55810         When descending, rather than simply closing the previous
55811         fts_cwd_fd value, push that file descriptor onto the ring.
55812         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55813         (fts_open): Initialize the new fd_ring member.
55814         (fts_close): Clear the ring.
55815         (fts_safe_changedir): When possible, use our new fd_ring to skip
55816         the diropen and fstat and dev/ino comparison that would normally
55817         accompany a virtual `chdir ("..")'.
55818
55819         * modules/fts (Depends-on): Add i-ring.
55820         * modules/i-ring: New module.
55821         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55822         * m4/i-ring.m4: New file.
55823
55824 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55825
55826         * gnulib-tool (func_create_testdir): Fix replacement of
55827         `build-aux' in configure.ac.  Run autotools in gltests
55828         subdirectory.
55829         (func_create_testdir, func_create_megatestdir, test): There is
55830         no need for '--force' in most autotool invocations in a new
55831         tree.  Actually fail the whole test if any of the tools, or the
55832         configure or make stages fail.
55833
55834         Sync from Automake.
55835         * build-aux/gnupload: Revert last change.  Add pointer to upload
55836         instructions of the GNU Maintenance Instructions.
55837         Suggestion by Karl Berry.
55838
55839 2006-11-10  Jim Meyering  <jim@meyering.net>
55840
55841         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55842
55843 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55846         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55847         (bind_textdomain_codeset) [! ENABLE_NLS]:
55848         Evaluate all the arguments.  That way, callers get compatible behavior
55849         if the arguments have side effects.  Also, it avoids some GCC
55850         diagnostics in some cases; Joel E. Denny reported problems when Bison
55851         was configured with --enable-gcc-warnigs.
55852
55853 2006-11-10  Jim Meyering  <jim@meyering.net>
55854
55855         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55856         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55857         account.
55858
55859 2006-11-10  Jim Meyering  <jim@meyering.net>
55860
55861         * modules/inline: New file/module.
55862         * modules/xalloc (Files): Remove m4/inline.m4.
55863         (Depends-on): Add inline, instead.
55864         * modules/oset: Likewise.
55865         * modules/list: Likewise.
55866
55867 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55868
55869         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55870         Problem reported by Matthew Woehlke.
55871
55872 2006-11-09  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/tempname.c (gen_tempname): Remove variant that invokes
55875         __gen_tempname.
55876         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55877         __gen_tempname.
55878
55879 2006-11-08  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55882         to 'yes' instead of 'cross-compiling'.
55883
55884 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * lib/quotearg.h (quotearg_free): New decl.
55887         * lib/quotearg.c (quotearg_free): New function.
55888         (slot0, nslots, slotvec0, slotvec):
55889         Now file-scope so that quotearg_free can get at them.
55890
55891 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55892
55893         Sync from Automake.
55894         * build-aux/gnupload: Add missing 'gnu' to example URL.
55895         Report by Karl Berry.
55896
55897 2006-11-08  Bruno Haible  <bruno@clisp.org>
55898
55899         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55900         Suggested by Paul Eggert.
55901
55902 2006-11-08  Jim Meyering  <jim@meyering.net>
55903
55904         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55905         It's already included if !_LIBC.
55906         (fts_safe_changedir): Add a comment.
55907
55908 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55909
55910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55911         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55912         Matthew Woehlke.
55913
55914         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55915         definitions up, to avoid colliding with change below.
55916         (static_inline) [HAVE_INLINE]: New macro.
55917         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55918         Provide extern decls when !HAVE_INLINE.  Do not define unless
55919         static_inline is defined, either by us or by xmalloc.c.  Use
55920         static_inline rather than static inline.
55921         (XCALLOC): Optimize sizeof(T) = 1 case.
55922         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55923
55924 2006-11-07  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55927         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55928         AC_C_INLINE.
55929         * modules/xalloc (Files): Add m4/inline.m4.
55930
55931 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55932
55933         * README: Fix typo.
55934         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55935         (Miscellanous Notes): ...from this.
55936
55937 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55940         Mention that offsetof should be used instead of sizeof.
55941         From Bruno Haible.
55942
55943 2006-11-07  Bruno Haible  <bruno@clisp.org>
55944
55945         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55946
55947 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55948
55949         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55950         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55951         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55952         (gl_tree_add_before, gl_tree_add_after):
55953         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55954         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55955         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55956         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55957         (gl_linked_add_after, gl_linked_add_at): Likewise.
55958         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55959         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55960         (gl_tree_add_before, gl_tree_add_after): Likewise.
55961         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55962         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55963         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55964
55965 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55966
55967         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55968
55969 2006-11-06  Bruno Haible  <bruno@clisp.org>
55970
55971         * m4/inline.m4: New file.
55972         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55973         * modules/list (Files): Add m4/inline.m4.
55974         * modules/oset (Files): Likewise.
55975
55976 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55977
55978         * lib/idcache.c: Include <stddef.h>, for offsetof.
55979         (struct userid.name): Change from char * to a flexible array member.
55980         All uses changed.
55981         * modules/idcache (Depends-on): Add flexmember.
55982
55983         * MODULES.html.sh (Core language properties): New module flexmember.
55984         * modules/flexmember, m4/flexmember.m4: New files.
55985
55986         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55987         inline functions that are identical with the old xnmalloc_inline,
55988         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55989         that we can avoid some unnecessary integer multiplications and
55990         divisions in the common case where the element size is known at
55991         compile time.
55992         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55993         needed.
55994         (xnboundedmalloc): Remove.
55995         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55996         arguments, for consistency with rest of this header.
55997         (xcharalloc): Rewrite using XNMALLOC.
55998         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55999         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56000         versions have been moved to lib/xalloc.h and renamed to be the
56001         non-*_inline versions.
56002         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56003         and xnrealloc functions, since those functions are now inline and
56004         now call us.
56005         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56006         renaming described above.
56007         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56008         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56009         captures the dependency in AC_C_INLINE.
56010
56011         New module canonicalize-lgpl, proposed by Charles Wilson in
56012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56013         with a few small changes afterwards.
56014         * MODULES.html.sh (File system functions): New module
56015         canonicalize-lgpl.
56016         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56017         and canonicalize_file_name.
56018         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56019         * modules/canonicalize-lgpl: New files.
56020
56021 2006-11-05  Bruno Haible  <bruno@clisp.org>
56022
56023         * gnulib-tool (func_import, func_create_testdir): Create directories
56024         also for files in subdirectories of lib/.
56025
56026 2006-11-05  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56029         ANSI C compliant.
56030
56031 2006-11-03  Bruno Haible  <bruno@clisp.org>
56032
56033         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56034         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56035         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56036         (xnboundedmalloc): New inline function.
56037         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56038         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56039         xmalloc.
56040         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56041         xmalloc.
56042         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56043         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56044         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56045         xmalloc.
56046         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56047         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56048         xmalloc.
56049         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56050         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56051         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56052         xmalloc.
56053         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56054         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56055         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56056         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56057         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56058         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56059         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56060
56061 2006-11-03  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/c-ctype.h [C++]: Define functions without name mangling.
56064         * lib/fwriteerror.h [C++]: Likewise.
56065         * lib/gcd.h [C++]: Likewise.
56066         * lib/linebreak.h [C++]: Likewise.
56067
56068 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56069
56070         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56071         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56072         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56073         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56074         Check for functions and headers just once.
56075         Check for declaration of canonicalize_file_name.
56076         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56077
56078 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56079
56080         * gnulib-tool (func_import): Fix typo in actioncmd.
56081
56082 2006-11-02  Bruno Haible  <bruno@clisp.org>
56083
56084         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56085         newline sequence in the Makefile.am snippet as a space, like "make"
56086         does.
56087         Reported by Roger Persson <perrog@gmail.com>.
56088
56089 2006-11-01  Bruno Haible  <bruno@clisp.org>
56090
56091         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56092         already declared in <string.h>.
56093         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56094
56095 2006-11-01  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56098         * lib/strcase.h: Include <string.h>.
56099         (strcasecmp): Define to rpl_strcasecmp here.
56100
56101 2006-11-01  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56104
56105 2006-11-01  Eric Blake  <ebb9@byu.net>
56106
56107         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56108
56109         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56110
56111 2006-10-29  Bruno Haible  <bruno@clisp.org>
56112
56113         Make it compile in C++ mode.
56114         * lib/full-write.c (full_rw): Add a cast.
56115
56116 2006-11-01  Bruno Haible  <bruno@clisp.org>
56117
56118         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56119         be POSIX compliant.
56120         Reported by Roger Persson <perrog@gmail.com>.
56121
56122 2006-11-01  Eric Blake  <ebb9@byu.net>
56123
56124         * lib/getopt_.h: Fix comments.
56125
56126 2006-10-31  Eric Blake  <ebb9@byu.net>
56127
56128         * modules/tmpdir (Depends-on): Add sys_stat.
56129         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56130         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56131         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56132         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56133         tempname.
56134
56135 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56136
56137         Avoid some C++ diagnostics reported by Bruno Haible.
56138         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56139         xmalloc.
56140         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56141         (struct slotvec): Move to top level.
56142         (quotearg_n_options): Rewrite to avoid xmalloc.
56143         * lib/xalloc.h (xcharalloc): New function.
56144         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56145         [defined __cplusplus]: Add function template that provides result
56146         type propagation.  This part of the change is from Bruno Haible.
56147
56148 2006-10-29  Bruno Haible  <bruno@clisp.org>
56149
56150         Make it compile in C++ mode.
56151         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56152         * lib/strnlen1.c (strnlen1): Cast memchr result.
56153         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56154         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56155         (create_temp_dir): Rename local variable 'template'.
56156         (compile_csharp_using_sscli): Add cast.
56157         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56158         * lib/findprog.c (find_in_path): Likewise.
56159         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56160         * lib/wait-process.c (register_slave_subprocess): Likewise.
56161
56162 2006-10-22  Bruno Haible  <bruno@clisp.org>
56163
56164         * modules/tsearch: New file.
56165         * lib/tsearch.h: New file.
56166         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56167         * m4/tsearch.m4: New file.
56168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56169
56170 2006-10-29  Eric Blake  <ebb9@byu.net>
56171
56172         * lib/arcfour.c: Assume config.h.
56173         * lib/arctwo.c: Likewise.
56174         * lib/base64.c: Likewise.
56175         * lib/check-version.c: Likewise.
56176         * lib/crc.c: Likewise.
56177         * lib/des.c: Likewise.
56178         * lib/gc-gnulib.c: Likewise.
56179         * lib/gc-libgcrypt.c: Likewise.
56180         * lib/gc-pbkdf2-sha1.c: Likewise.
56181         * lib/getaddrinfo.c: Likewise.
56182         * lib/getdelim.c: Likewise.
56183         * lib/getline.c: Likewise.
56184         * lib/hmac-md5.c: Likewise.
56185         * lib/hmac-sha1.c: Likewise.
56186         * lib/iconvme.c: Likewise.
56187         * lib/md2.c: Likewise.
56188         * lib/md4.c: Likewise.
56189         * lib/memxor.c: Likewise.
56190         * lib/read-file.c: Likewise.
56191         * lib/readline.c: Likewise.
56192         * lib/rijndael-alg-fst.c: Likewise.
56193         * lib/rijndael-api-fst.c: Likewise.
56194         * lib/xgetdomainname.c: Likewise.
56195
56196 2006-10-28  Eric Blake  <ebb9@byu.net>
56197
56198         * lib/xstrndup.c: Assume config.h.
56199
56200 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56203         stat-macros.h is now for our own macros, whereas stat_h is for
56204         macros in the <sys/stat.h> name space.
56205         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56206         (STAT_MACROS_H): Remove.
56207         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56208         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56209         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56210         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56211         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56212         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56213         Move these macros to ...
56214         * lib/stat_.h: here.  Don't include stat-macros.h.
56215         * lib/canonicalize.c: Don't include stat-macros.h.
56216         * lib/chown.c: Likewise.
56217         * lib/euidaccess.c: Likewise.
56218         * lib/file-type.c: Likewise.
56219         * lib/filemode.c: Likewise.
56220         * lib/glob.c: Likewise.
56221         * lib/isapipe.c: Likewise.
56222         * lib/lchown.c: Likewise.
56223         * lib/lstat.c: Likewise.
56224         * lib/mkdir-p.c: Likewise.
56225         * lib/rmdir.c: Likewise.
56226         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56228         unless mkdir isn't declared, to speed up 'configure'.
56229         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56230         would define all the S_* symbols.
56231         * modules/canonicalize (Depends-on):
56232         Depend on sys_stat, not stat-macros.
56233         * modules/chown: Likewise.
56234         * modules/euidaccess: Likewise.
56235         * modules/filemode: Likewise.
56236         * modules/file-type: Likewise.
56237         * modules/glob: Likewise.
56238         * modules/isapipe: Likewise.
56239         * modules/lchown: Likewise.
56240         * modules/lstat: Likewise.
56241         * modules/mkancesdirs: Likewise.
56242         * modules/rmdir: Likewise.
56243         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56244         * modules/modechange: Likewise.
56245         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56246         (configure.ac): Remove gl_STAT_MACROS.
56247         * modules/sys_stat (Depends-on): Remove stat-macros.
56248
56249 2006-10-27  Bruno Haible  <bruno@clisp.org>
56250
56251         * m4/signed.m4: Remove file.
56252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56253         invocation.
56254         * modules/vasnprintf (Files): Remove m4/signed.m4.
56255
56256 2006-10-27  Bruno Haible  <bruno@clisp.org>
56257
56258         Update to GNU gettext 0.16.
56259         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56260         m4/inttypes-h.m4, m4/signed.m4.
56261         * m4/gettext.m4: Update to GNU gettext 0.16.
56262         * m4/intl.m4: New file, from GNU gettext.
56263         * m4/intldir.m4: New file, from GNU gettext.
56264         * config/srclist.txt: Update
56265
56266 2006-10-27  Eric Blake  <ebb9@byu.net>
56267
56268         * MODULES.html.sh: Document tempname.
56269         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56270         dependencies.
56271         (Files): Move lib/tempname.c...
56272         * modules/tempname: ...to this new module.
56273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56274         (gl_PREREQ_TEMPNAME): Move...
56275         * m4/tempname.m4: ...to this new file.
56276         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56277         * modules/sys_stat (Depends-on): Add stat-macros.
56278         * lib/stat_.h (includes): Pick up stat macros.
56279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56280         if stat macros are broken.
56281         * lib/tempname.c (includes): No need to include "stat-macros.h".
56282         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56283         (direxists, __path_search) [!_LIBC]: Don't compile these in
56284         gnulib; the tmpdir module covers that.
56285         * lib/tempname.h: New file.
56286
56287 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         * COPYING: Explain how gnulib-tool converts licence headers.
56290         Almost all wording by Eric Blake.
56291
56292 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56293
56294         * lib/mbchar.h (is_basic_table): Make read-only.
56295         * lib/mbchar.c (is_basic_table): Likewise.
56296         Reported by John Darrington.
56297
56298 2006-10-25  Bruno Haible  <bruno@clisp.org>
56299
56300         * lib/progname.h (set_program_name): Undefine before defining.
56301
56302 2006-10-25  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56305         false for non-gcc C++ compilers.
56306         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56307
56308 2006-10-24  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56311         iconv implementations like Irix iconv.
56312
56313 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56314
56315         * modules/vararrays: New file.
56316         * m4/vararrays.m4: New file, taken from diffutils.
56317         * MODULES.html.sh: New module vararrays.
56318
56319 2006-10-24  Karl Berry  <karl@gnu.org>
56320
56321         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56322         Don't call GNU Unix.
56323
56324 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56325
56326         * users.txt: Add Libtool.
56327
56328         Sync from Libtool:
56329
56330         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56331
56332         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56333         to gnulib's policy of including config.h unconditionally.
56334
56335 2006-10-24  Bruno Haible  <bruno@clisp.org>
56336
56337         * modules/wcwidth (Files): Add m4/wint_t.m4.
56338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56339         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56340
56341 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56342
56343         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56344         to pacify GCC with some -W flags enabled.  Problem reported by
56345         Bruno Haible.
56346
56347 2006-10-24  Jim Meyering  <jim@meyering.net>
56348
56349         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56350         Reported by Karl Berry.
56351
56352 2006-10-23  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56355
56356 2006-10-24  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/gl_list.h: Use C comment style, not C++ comment style.
56359
56360 2006-10-23  Eric Blake  <ebb9@byu.net>
56361
56362         * lib/getaddrinfo.c (includes): Add missing include.
56363
56364 2006-10-23  Bruno Haible  <bruno@clisp.org>
56365             Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         Ability to rename obstack_free.
56368         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56369         obstack_free.
56370         (obstack_free): Invoke the __obstack_free macro.
56371         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56372
56373 2006-10-23  Bruno Haible  <bruno@clisp.org>
56374             Paul Eggert  <eggert@cs.ucla.edu>
56375
56376         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56377         __argc, __argv from the declaration. (They are defined as macros on
56378         mingw.)
56379
56380 2006-10-22  Bruno Haible  <bruno@clisp.org>
56381
56382         * doc/gnulib-intro.texi: New file.
56383         * doc/gnulib.texi: Include it.
56384
56385 2006-10-21  Bruno Haible  <bruno@clisp.org>
56386
56387         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56388         "Introduction", "Miscellanous Notes", "Particular Modules".
56389
56390 2006-10-21  Bruno Haible  <bruno@clisp.org>
56391
56392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56393         Change mostlyclean-local rule to avoid sh syntax error from bash
56394         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56395
56396 2006-10-23  Jim Meyering  <jim@meyering.net>
56397
56398         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56399         in place of snprintf.
56400
56401         * modules/inttostr (Files): Add lib/uinttostr.c.
56402         * lib/uinttostr.c (inttostr): New file/function.
56403         * lib/inttostr.h (uinttostr): Declare.
56404         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56405         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56406         Add uinttostr.
56407         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56408
56409 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * lib/canonicalize.c (ELOOP): Define if not already defined.
56412         Problem reported by Bruno Haible in
56413         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56414
56415 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56418         Problem reported by Perry Smith and Ville Laurikari.
56419
56420         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56421         uses.
56422
56423 2006-10-19  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56426         for mingw.
56427
56428 2006-10-19  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56431         Needed for mingw.
56432
56433 2006-10-19  Bruno Haible  <bruno@clisp.org>
56434
56435         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56436
56437 2006-10-19  Bruno Haible  <bruno@clisp.org>
56438
56439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56440         it.
56441
56442 2006-10-19  Bruno Haible  <bruno@clisp.org>
56443
56444         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56445         invocation.
56446
56447 2006-10-19  Bruno Haible  <bruno@clisp.org>
56448
56449         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56450         mountlist by default.
56451
56452 2006-10-16  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/c-strstr.c: Include c-strstr.h.
56455
56456 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56457
56458         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56459         in a slash.
56460
56461 2006-10-18  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/lock.h [C++]: Wrap definitions in extern "C".
56464
56465 2006-10-18  Bruno Haible  <bruno@clisp.org>
56466
56467         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56468         gl_LIBOBJS list.
56469
56470 2006-10-18  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56473
56474 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/xstrtol.h: Include gettext.h.
56477         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56478         Problem reported by Eric Blake.
56479         * modules/xstrtol (Depends-on): Add gettext-h.
56480
56481 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56482
56483         * lib/strftime.c (advance): New macro.
56484         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56485         incomplete type, so you can't add 0 to it.  Problem and patch
56486         reported by Eelco Dolstra for dietlibc.
56487
56488 2006-10-18  Jim Meyering  <jim@meyering.net>
56489
56490         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56491         type for a local, and rename it: s/up/user_proc/.
56492
56493 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56494
56495         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56496         READ_UTMP_USER_PROCESS.
56497         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56498
56499 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56500
56501         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56502         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56503
56504 2006-10-17  Eric Blake  <ebb9@byu.net>
56505
56506         * lib/sigprocmask.c (sigprocmask): Fix typo.
56507
56508         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56509
56510         * modules/clean-temp (Makefile.am): Don't add to make output...
56511         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56512         config.h.
56513
56514 2006-10-17  Bruno Haible  <bruno@clisp.org>
56515
56516         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56517         differently if DEFAULT_TEXT_DOMAIN is set.
56518
56519 2006-10-16  Bruno Haible  <bruno@clisp.org>
56520
56521         * lib/clean-temp.c: Include fwriteerror.h.
56522
56523 2006-10-16  Bruno Haible  <bruno@clisp.org>
56524
56525         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56526
56527 2006-10-16  Bruno Haible  <bruno@clisp.org>
56528
56529         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56530         * lib/sigprocmask.h: Include <sys/types.h>.
56531         (sigset_t): Use the system's definition if present.
56532
56533 2006-10-17  Eric Blake  <ebb9@byu.net>
56534
56535         * lib/xvasprintf.c (includes): Assume config.h.
56536         * lib/xasprintf.c (includes): Likewise.
56537
56538 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56539
56540         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56541         at least as wide as intmax_t.
56542
56543 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56544
56545         (Imported from Automake.)
56546         * build-aux/gnupload: Update to version 1.1 of directive file.
56547
56548 2006-10-16  Eric Blake  <ebb9@byu.net>
56549
56550         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56551         match Automake 1.10a.
56552
56553 2006-10-14  Bruno Haible  <bruno@clisp.org>
56554
56555         * modules/sigprocmask: New file.
56556         * lib/sigprocmask.h: New file.
56557         * lib/sigprocmask.c: New file.
56558         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56559         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56560         request sigprocmask.o.
56561         (gl_PREREQ_SIGPROCMASK): New macro.
56562         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56563         (Depends-on): Add sigprocmask.
56564         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56565         gt_SIGNALBLOCKING. Test for 'raise' only once.
56566         * lib/fatal-signal.c: Include sigprocmask.h.
56567         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56568         unblock_fatal_signals): Define always.
56569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56570         sigprocmask.
56571
56572 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         Sync from Automake.
56575         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56576         which incorrectly sets the mode of an existing destination
56577         directory.  In some cases the unpatched install-sh could do the
56578         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56579         system.  We hope this is rare in practice, but it's clearly worth
56580         fixing.  Problem reported by Alex Unleashed in
56581         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56582         Also, don't bother to check for -m bugs unless we're using -m;
56583         suggested by Stepan Kasal.
56584
56585 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56586
56587         Sync from Automake.
56588         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56589         `-c' flag, so they appear at the same position as in %FASTDEP%
56590         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56591         which ignores unknown options only after the first non-option.
56592         Bug report against M4 by Nelson H. F. Beebe.
56593
56594 2006-10-13  Jim Meyering  <jim@meyering.net>
56595
56596         Fix a bug in yesterday's change.
56597         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56598         p->fts_statp->st_dev would be used uninitialized.
56599         Ensures that we always call fts_stat on the very first entry.
56600         Miklos Szeredi reported that find -xdev stopped working.
56601
56602 2006-10-12  Bruno Haible  <bruno@clisp.org>
56603
56604         * gnulib-tool (func_get_automake_snippet): Append an automatically
56605         computed EXTRA_DIST augmentation.
56606         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56607         * modules/alloca-opt (Makefile.am): Likewise.
56608         * modules/allocsa (Makefile.am): Likewise.
56609         * modules/arcfour (Makefile.am): Likewise.
56610         * modules/arctwo (Makefile.am): Likewise.
56611         * modules/argmatch (Makefile.am): Likewise.
56612         * modules/argz (Makefile.am): Likewise.
56613         * modules/atexit (Makefile.am): Likewise.
56614         * modules/backupfile (Makefile.am): Likewise.
56615         * modules/byteswap (Makefile.am): Likewise.
56616         * modules/c-strtod (Makefile.am): Likewise.
56617         * modules/c-strtold (Makefile.am): Likewise.
56618         * modules/calloc (Makefile.am): Likewise.
56619         * modules/canon-host (Makefile.am): Likewise.
56620         * modules/canonicalize (Makefile.am): Likewise.
56621         * modules/chdir-long (Makefile.am): Likewise.
56622         * modules/chdir-safer (Makefile.am): Likewise.
56623         * modules/check-version (Makefile.am): Likewise.
56624         * modules/chown (Makefile.am): Likewise.
56625         * modules/cloexec (Makefile.am): Likewise.
56626         * modules/close-stream (Makefile.am): Likewise.
56627         * modules/closeout (Makefile.am): Likewise.
56628         * modules/crc (Makefile.am): Likewise.
56629         * modules/csharpexec (Makefile.am): Likewise.
56630         * modules/cycle-check (Makefile.am): Likewise.
56631         * modules/des (Makefile.am): Likewise.
56632         * modules/dev-ino (Makefile.am): Likewise.
56633         * modules/dirfd (Makefile.am): Likewise.
56634         * modules/dirname (Makefile.am): Likewise.
56635         * modules/dup2 (Makefile.am): Likewise.
56636         * modules/eealloc (Makefile.am): Likewise.
56637         * modules/error (Makefile.am): Likewise.
56638         * modules/euidaccess (Makefile.am): Likewise.
56639         * modules/exclude (Makefile.am): Likewise.
56640         * modules/exitfail (Makefile.am): Likewise.
56641         * modules/fcntl-safer (Makefile.am): Likewise.
56642         * modules/fcntl (Makefile.am): Likewise.
56643         * modules/file-type (Makefile.am): Likewise.
56644         * modules/fileblocks (Makefile.am): Likewise.
56645         * modules/filemode (Makefile.am): Likewise.
56646         * modules/filenamecat (Makefile.am): Likewise.
56647         * modules/fnmatch (Makefile.am): Likewise.
56648         * modules/fopen-safer (Makefile.am): Likewise.
56649         * modules/fpending (Makefile.am): Likewise.
56650         * modules/fprintftime (Makefile.am): Likewise.
56651         * modules/free (Makefile.am): Likewise.
56652         * modules/fsusage (Makefile.am): Likewise.
56653         * modules/ftruncate (Makefile.am): Likewise.
56654         * modules/fts (Makefile.am): Likewise.
56655         * modules/gc-arcfour (Makefile.am): Likewise.
56656         * modules/gc-des (Makefile.am): Likewise.
56657         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56658         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56659         * modules/gc-md4 (Makefile.am): Likewise.
56660         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56661         * modules/gc-sha1 (Makefile.am): Likewise.
56662         * modules/gc (Makefile.am): Likewise.
56663         * modules/getaddrinfo (Makefile.am): Likewise.
56664         * modules/getcwd (Makefile.am): Likewise.
56665         * modules/getdelim (Makefile.am): Likewise.
56666         * modules/getdomainname (Makefile.am): Likewise.
56667         * modules/getgroups (Makefile.am): Likewise.
56668         * modules/gethostname (Makefile.am): Likewise.
56669         * modules/gethrxtime (Makefile.am): Likewise.
56670         * modules/getline (Makefile.am): Likewise.
56671         * modules/getloadavg (Makefile.am): Likewise.
56672         * modules/getlogin_r (Makefile.am): Likewise.
56673         * modules/getndelim2 (Makefile.am): Likewise.
56674         * modules/getopt (Makefile.am): Likewise.
56675         * modules/getpagesize (Makefile.am): Likewise.
56676         * modules/getpass-gnu (Makefile.am): Likewise.
56677         * modules/getpass (Makefile.am): Likewise.
56678         * modules/getsubopt (Makefile.am): Likewise.
56679         * modules/gettime (Makefile.am): Likewise.
56680         * modules/gettimeofday (Makefile.am): Likewise.
56681         * modules/getugroups (Makefile.am): Likewise.
56682         * modules/getusershell (Makefile.am): Likewise.
56683         * modules/glob (Makefile.am): Likewise.
56684         * modules/group-member (Makefile.am): Likewise.
56685         * modules/hard-locale (Makefile.am): Likewise.
56686         * modules/hash (Makefile.am): Likewise.
56687         * modules/hmac-md5 (Makefile.am): Likewise.
56688         * modules/hmac-sha1 (Makefile.am): Likewise.
56689         * modules/human (Makefile.am): Likewise.
56690         * modules/idcache (Makefile.am): Likewise.
56691         * modules/imaxabs (Makefile.am): Likewise.
56692         * modules/imaxdiv (Makefile.am): Likewise.
56693         * modules/inet_ntop (Makefile.am): Likewise.
56694         * modules/inet_pton (Makefile.am): Likewise.
56695         * modules/intprops (Makefile.am): Likewise.
56696         * modules/inttostr (Makefile.am): Likewise.
56697         * modules/inttypes (Makefile.am): Likewise.
56698         * modules/isapipe (Makefile.am): Likewise.
56699         * modules/javaversion (Makefile.am): Likewise.
56700         * modules/lchmod (Makefile.am): Likewise.
56701         * modules/lchown (Makefile.am): Likewise.
56702         * modules/localcharset (Makefile.am): Likewise.
56703         * modules/long-options (Makefile.am): Likewise.
56704         * modules/lstat (Makefile.am): Likewise.
56705         * modules/malloc (Makefile.am): Likewise.
56706         * modules/mathl (Makefile.am): Likewise.
56707         * modules/mbchar (Makefile.am): Likewise.
56708         * modules/md2 (Makefile.am): Likewise.
56709         * modules/md4 (Makefile.am): Likewise.
56710         * modules/md5 (Makefile.am): Likewise.
56711         * modules/memcasecmp (Makefile.am): Likewise.
56712         * modules/memchr (Makefile.am): Likewise.
56713         * modules/memcmp (Makefile.am): Likewise.
56714         * modules/memcoll (Makefile.am): Likewise.
56715         * modules/memcpy (Makefile.am): Likewise.
56716         * modules/memmem (Makefile.am): Likewise.
56717         * modules/memmove (Makefile.am): Likewise.
56718         * modules/mempcpy (Makefile.am): Likewise.
56719         * modules/memrchr (Makefile.am): Likewise.
56720         * modules/memset (Makefile.am): Likewise.
56721         * modules/memxor (Makefile.am): Likewise.
56722         * modules/mkancesdirs (Makefile.am): Likewise.
56723         * modules/mkdir-p (Makefile.am): Likewise.
56724         * modules/mkdir (Makefile.am): Likewise.
56725         * modules/mkdtemp (Makefile.am): Likewise.
56726         * modules/mkstemp (Makefile.am): Likewise.
56727         * modules/mktime (Makefile.am): Likewise.
56728         * modules/modechange (Makefile.am): Likewise.
56729         * modules/mountlist (Makefile.am): Likewise.
56730         * modules/nanosleep (Makefile.am): Likewise.
56731         * modules/obstack (Makefile.am): Likewise.
56732         * modules/openat (Makefile.am): Likewise.
56733         * modules/pagealign_alloc (Makefile.am): Likewise.
56734         * modules/pathmax (Makefile.am): Likewise.
56735         * modules/physmem (Makefile.am): Likewise.
56736         * modules/poll (Makefile.am): Likewise.
56737         * modules/posixtm (Makefile.am): Likewise.
56738         * modules/posixver (Makefile.am): Likewise.
56739         * modules/putenv (Makefile.am): Likewise.
56740         * modules/quote (Makefile.am): Likewise.
56741         * modules/quotearg (Makefile.am): Likewise.
56742         * modules/raise (Makefile.am): Likewise.
56743         * modules/read-file (Makefile.am): Likewise.
56744         * modules/readline (Makefile.am): Likewise.
56745         * modules/readlink (Makefile.am): Likewise.
56746         * modules/readtokens (Makefile.am): Likewise.
56747         * modules/readutmp (Makefile.am): Likewise.
56748         * modules/realloc (Makefile.am): Likewise.
56749         * modules/regex (Makefile.am): Likewise.
56750         * modules/rename-dest-slash (Makefile.am): Likewise.
56751         * modules/rename (Makefile.am): Likewise.
56752         * modules/rijndael (Makefile.am): Likewise.
56753         * modules/rmdir (Makefile.am): Likewise.
56754         * modules/rpmatch (Makefile.am): Likewise.
56755         * modules/safe-read (Makefile.am): Likewise.
56756         * modules/safe-write (Makefile.am): Likewise.
56757         * modules/same-inode (Makefile.am): Likewise.
56758         * modules/same (Makefile.am): Likewise.
56759         * modules/save-cwd (Makefile.am): Likewise.
56760         * modules/savedir (Makefile.am): Likewise.
56761         * modules/setenv (Makefile.am): Likewise.
56762         * modules/settime (Makefile.am): Likewise.
56763         * modules/sha1 (Makefile.am): Likewise.
56764         * modules/sig2str (Makefile.am): Likewise.
56765         * modules/snprintf (Makefile.am): Likewise.
56766         * modules/stat-macros (Makefile.am): Likewise.
56767         * modules/stat-time (Makefile.am): Likewise.
56768         * modules/stdbool (Makefile.am): Likewise.
56769         * modules/stdint (Makefile.am): Likewise.
56770         * modules/stdlib-safer (Makefile.am): Likewise.
56771         * modules/stpcpy (Makefile.am): Likewise.
56772         * modules/stpncpy (Makefile.am): Likewise.
56773         * modules/strcase (Makefile.am): Likewise.
56774         * modules/strcasestr (Makefile.am): Likewise.
56775         * modules/strchrnul (Makefile.am): Likewise.
56776         * modules/strcspn (Makefile.am): Likewise.
56777         * modules/strdup (Makefile.am): Likewise.
56778         * modules/strerror (Makefile.am): Likewise.
56779         * modules/strftime (Makefile.am): Likewise.
56780         * modules/strndup (Makefile.am): Likewise.
56781         * modules/strnlen (Makefile.am): Likewise.
56782         * modules/strpbrk (Makefile.am): Likewise.
56783         * modules/strsep (Makefile.am): Likewise.
56784         * modules/strstr (Makefile.am): Likewise.
56785         * modules/strtod (Makefile.am): Likewise.
56786         * modules/strtoimax (Makefile.am): Likewise.
56787         * modules/strtok_r (Makefile.am): Likewise.
56788         * modules/strtol (Makefile.am): Likewise.
56789         * modules/strtoll (Makefile.am): Likewise.
56790         * modules/strtoul (Makefile.am): Likewise.
56791         * modules/strtoull (Makefile.am): Likewise.
56792         * modules/strtoumax (Makefile.am): Likewise.
56793         * modules/strverscmp (Makefile.am): Likewise.
56794         * modules/sys_socket (Makefile.am): Likewise.
56795         * modules/sys_stat (Makefile.am): Likewise.
56796         * modules/sysexits (Makefile.am): Likewise.
56797         * modules/time_r (Makefile.am): Likewise.
56798         * modules/timegm (Makefile.am): Likewise.
56799         * modules/timespec (Makefile.am): Likewise.
56800         * modules/tmpfile-safer (Makefile.am): Likewise.
56801         * modules/trim (Makefile.am): Likewise.
56802         * modules/unistd-safer (Makefile.am): Likewise.
56803         * modules/unlinkdir (Makefile.am): Likewise.
56804         * modules/unlocked-io (Makefile.am): Likewise.
56805         * modules/userspec (Makefile.am): Likewise.
56806         * modules/utime (Makefile.am): Likewise.
56807         * modules/utimecmp (Makefile.am): Likewise.
56808         * modules/utimens (Makefile.am): Likewise.
56809         * modules/vasnprintf (Makefile.am): Likewise.
56810         * modules/vasprintf (Makefile.am): Likewise.
56811         * modules/vsnprintf (Makefile.am): Likewise.
56812         * modules/xalloc (Makefile.am): Likewise.
56813         * modules/xgetcwd (Makefile.am): Likewise.
56814         * modules/xnanosleep (Makefile.am): Likewise.
56815         * modules/xreadlink (Makefile.am): Likewise.
56816         * modules/xstrtod (Makefile.am): Likewise.
56817         * modules/xstrtol (Makefile.am): Likewise.
56818         * modules/xstrtold (Makefile.am): Likewise.
56819         * modules/yesno (Makefile.am): Likewise.
56820         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56821
56822 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * modules/error (Makefile.am): Distribute files through
56825         EXTRA_DIST, not lib_SOURCES.
56826
56827 2006-10-12  Eric Blake  <ebb9@byu.net>
56828
56829         * modules/error (Makefile.am): Distribute files in /lib.
56830         * modules/obstack (Makefile.am): Likewise.
56831
56832 2006-10-12  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/acl (Makefile.am): Distribute all files in lib/ through
56835         EXTRA_DIST.
56836         * modules/arcfour (Makefile.am): Likewise.
56837         * modules/arctwo (Makefile.am): Likewise.
56838         * modules/argmatch (Makefile.am): Likewise.
56839         * modules/argz (Makefile.am): Likewise.
56840         * modules/atexit (Makefile.am): Likewise.
56841         * modules/backupfile (Makefile.am): Likewise.
56842         * modules/c-strtod (Makefile.am): Likewise.
56843         * modules/c-strtold (Makefile.am): Likewise.
56844         * modules/calloc (Makefile.am): Likewise.
56845         * modules/canon-host (Makefile.am): Likewise.
56846         * modules/canonicalize (Makefile.am): Likewise.
56847         * modules/chdir-long (Makefile.am): Likewise.
56848         * modules/chdir-safer (Makefile.am): Likewise.
56849         * modules/check-version (Makefile.am): Likewise.
56850         * modules/chown (Makefile.am): Likewise.
56851         * modules/cloexec (Makefile.am): Likewise.
56852         * modules/close-stream (Makefile.am): Likewise.
56853         * modules/closeout (Makefile.am): Likewise.
56854         * modules/crc (Makefile.am): Likewise.
56855         * modules/cycle-check (Makefile.am): Likewise.
56856         * modules/des (Makefile.am): Likewise.
56857         * modules/dirfd (Makefile.am): Likewise.
56858         * modules/dirname (Makefile.am): Likewise.
56859         * modules/dup2 (Makefile.am): Likewise.
56860         * modules/euidaccess (Makefile.am): Likewise.
56861         * modules/exclude (Makefile.am): Likewise.
56862         * modules/exitfail (Makefile.am): Likewise.
56863         * modules/fcntl-safer (Makefile.am): Likewise.
56864         * modules/file-type (Makefile.am): Likewise.
56865         * modules/fileblocks (Makefile.am): Likewise.
56866         * modules/filemode (Makefile.am): Likewise.
56867         * modules/filenamecat (Makefile.am): Likewise.
56868         * modules/fnmatch (Makefile.am): Likewise.
56869         * modules/fopen-safer (Makefile.am): Likewise.
56870         * modules/fpending (Makefile.am): Likewise.
56871         * modules/fprintftime (Makefile.am): Likewise.
56872         * modules/free (Makefile.am): Likewise.
56873         * modules/fsusage (Makefile.am): Likewise.
56874         * modules/ftruncate (Makefile.am): Likewise.
56875         * modules/fts (Makefile.am): Likewise.
56876         * modules/gc (Makefile.am): Likewise.
56877         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56878         * modules/getaddrinfo (Makefile.am): Likewise.
56879         * modules/getcwd (Makefile.am): Likewise.
56880         * modules/getdelim (Makefile.am): Likewise.
56881         * modules/getdomainname (Makefile.am): Likewise.
56882         * modules/getgroups (Makefile.am): Likewise.
56883         * modules/gethostname (Makefile.am): Likewise.
56884         * modules/gethrxtime (Makefile.am): Likewise.
56885         * modules/getline (Makefile.am): Likewise.
56886         * modules/getloadavg (Makefile.am): Likewise.
56887         * modules/getlogin_r (Makefile.am): Likewise.
56888         * modules/getopt (Makefile.am): Likewise.
56889         * modules/getpass (Makefile.am): Likewise.
56890         * modules/getpass-gnu (Makefile.am): Likewise.
56891         * modules/getsubopt (Makefile.am): Likewise.
56892         * modules/gettime (Makefile.am): Likewise.
56893         * modules/gettimeofday (Makefile.am): Likewise.
56894         * modules/getugroups (Makefile.am): Likewise.
56895         * modules/getusershell (Makefile.am): Likewise.
56896         * modules/glob (Makefile.am): Likewise.
56897         * modules/group-member (Makefile.am): Likewise.
56898         * modules/hard-locale (Makefile.am): Likewise.
56899         * modules/hash (Makefile.am): Likewise.
56900         * modules/hmac-md5 (Makefile.am): Likewise.
56901         * modules/hmac-sha1 (Makefile.am): Likewise.
56902         * modules/human (Makefile.am): Likewise.
56903         * modules/idcache (Makefile.am): Likewise.
56904         * modules/imaxabs (Makefile.am): Likewise.
56905         * modules/imaxdiv (Makefile.am): Likewise.
56906         * modules/inet_ntop (Makefile.am): Likewise.
56907         * modules/inet_pton (Makefile.am): Likewise.
56908         * modules/inttostr (Makefile.am): Likewise.
56909         * modules/isapipe (Makefile.am): Likewise.
56910         * modules/lchown (Makefile.am): Likewise.
56911         * modules/long-options (Makefile.am): Likewise.
56912         * modules/lstat (Makefile.am): Likewise.
56913         * modules/malloc (Makefile.am): Likewise.
56914         * modules/mathl (Makefile.am): Likewise.
56915         * modules/mbchar (Makefile.am): Likewise.
56916         * modules/md2 (Makefile.am): Likewise.
56917         * modules/md4 (Makefile.am): Likewise.
56918         * modules/md5 (Makefile.am): Likewise.
56919         * modules/memcasecmp (Makefile.am): Likewise.
56920         * modules/memchr (Makefile.am): Likewise.
56921         * modules/memcmp (Makefile.am): Likewise.
56922         * modules/memcoll (Makefile.am): Likewise.
56923         * modules/memcpy (Makefile.am): Likewise.
56924         * modules/memmem (Makefile.am): Likewise.
56925         * modules/memmove (Makefile.am): Likewise.
56926         * modules/mempcpy (Makefile.am): Likewise.
56927         * modules/memrchr (Makefile.am): Likewise.
56928         * modules/memset (Makefile.am): Likewise.
56929         * modules/memxor (Makefile.am): Likewise.
56930         * modules/mkancesdirs (Makefile.am): Likewise.
56931         * modules/mkdir (Makefile.am): Likewise.
56932         * modules/mkdir-p (Makefile.am): Likewise.
56933         * modules/mkdtemp (Makefile.am): Likewise.
56934         * modules/mkstemp (Makefile.am): Likewise.
56935         * modules/mktime (Makefile.am): Likewise.
56936         * modules/modechange (Makefile.am): Likewise.
56937         * modules/mountlist (Makefile.am): Likewise.
56938         * modules/nanosleep (Makefile.am): Likewise.
56939         * modules/openat (Makefile.am): Likewise.
56940         * modules/pagealign_alloc (Makefile.am): Likewise.
56941         * modules/physmem (Makefile.am): Likewise.
56942         * modules/poll (Makefile.am): Likewise.
56943         * modules/posixtm (Makefile.am): Likewise.
56944         * modules/posixver (Makefile.am): Likewise.
56945         * modules/putenv (Makefile.am): Likewise.
56946         * modules/quote (Makefile.am): Likewise.
56947         * modules/quotearg (Makefile.am): Likewise.
56948         * modules/raise (Makefile.am): Likewise.
56949         * modules/read-file (Makefile.am): Likewise.
56950         * modules/readline (Makefile.am): Likewise.
56951         * modules/readlink (Makefile.am): Likewise.
56952         * modules/readtokens (Makefile.am): Likewise.
56953         * modules/readutmp (Makefile.am): Likewise.
56954         * modules/realloc (Makefile.am): Likewise.
56955         * modules/regex (Makefile.am): Likewise.
56956         * modules/rename (Makefile.am): Likewise.
56957         * modules/rename-dest-slash (Makefile.am): Likewise.
56958         * modules/rijndael (Makefile.am): Likewise.
56959         * modules/rmdir (Makefile.am): Likewise.
56960         * modules/rpmatch (Makefile.am): Likewise.
56961         * modules/safe-read (Makefile.am): Likewise.
56962         * modules/safe-write (Makefile.am): Likewise.
56963         * modules/same (Makefile.am): Likewise.
56964         * modules/save-cwd (Makefile.am): Likewise.
56965         * modules/savedir (Makefile.am): Likewise.
56966         * modules/setenv (Makefile.am): Likewise.
56967         * modules/settime (Makefile.am): Likewise.
56968         * modules/sha1 (Makefile.am): Likewise.
56969         * modules/sig2str (Makefile.am): Likewise.
56970         * modules/snprintf (Makefile.am): Likewise.
56971         * modules/stdlib-safer (Makefile.am): Likewise.
56972         * modules/stpcpy (Makefile.am): Likewise.
56973         * modules/stpncpy (Makefile.am): Likewise.
56974         * modules/strcase (Makefile.am): Likewise.
56975         * modules/strcasestr (Makefile.am): Likewise.
56976         * modules/strchrnul (Makefile.am): Likewise.
56977         * modules/strcspn (Makefile.am): Likewise.
56978         * modules/strdup (Makefile.am): Likewise.
56979         * modules/strerror (Makefile.am): Likewise.
56980         * modules/strftime (Makefile.am): Likewise.
56981         * modules/strndup (Makefile.am): Likewise.
56982         * modules/strnlen (Makefile.am): Likewise.
56983         * modules/strpbrk (Makefile.am): Likewise.
56984         * modules/strsep (Makefile.am): Likewise.
56985         * modules/strstr (Makefile.am): Likewise.
56986         * modules/strtod (Makefile.am): Likewise.
56987         * modules/strtoimax (Makefile.am): Likewise.
56988         * modules/strtok_r (Makefile.am): Likewise.
56989         * modules/strtol (Makefile.am): Likewise.
56990         * modules/strtoll (Makefile.am): Likewise.
56991         * modules/strtoul (Makefile.am): Likewise.
56992         * modules/strtoull (Makefile.am): Likewise.
56993         * modules/strtoumax (Makefile.am): Likewise.
56994         * modules/strverscmp (Makefile.am): Likewise.
56995         * modules/time_r (Makefile.am): Likewise.
56996         * modules/timegm (Makefile.am): Likewise.
56997         * modules/tmpfile-safer (Makefile.am): Likewise.
56998         * modules/unistd-safer (Makefile.am): Likewise.
56999         * modules/unlinkdir (Makefile.am): Likewise.
57000         * modules/userspec (Makefile.am): Likewise.
57001         * modules/utime (Makefile.am): Likewise.
57002         * modules/utimecmp (Makefile.am): Likewise.
57003         * modules/utimens (Makefile.am): Likewise.
57004         * modules/vasnprintf (Makefile.am): Likewise.
57005         * modules/vasprintf (Makefile.am): Likewise.
57006         * modules/vsnprintf (Makefile.am): Likewise.
57007         * modules/xalloc (Makefile.am): Likewise.
57008         * modules/xgetcwd (Makefile.am): Likewise.
57009         * modules/xnanosleep (Makefile.am): Likewise.
57010         * modules/xreadlink (Makefile.am): Likewise.
57011         * modules/xstrtod (Makefile.am): Likewise.
57012         * modules/xstrtol (Makefile.am): Likewise.
57013         * modules/xstrtold (Makefile.am): Likewise.
57014         * modules/yesno (Makefile.am): Likewise.
57015
57016 2006-10-12  Jim Meyering  <jim@meyering.net>
57017
57018         * m4/getloadavg.m4: Revert the change below.
57019
57020         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57021         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57022         fail with a symlink, which is what coreutils' ./bootstrap now
57023         creates by default.
57024
57025 2006-10-12  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57028         mingw.
57029         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57030         MSVC and mingw explicitly.
57031
57032 2006-10-11  Simon Josefsson  <jas@extundo.com>
57033             Bruno Haible  <bruno@clisp.org>
57034
57035         Add support for multiple gnulib-tool invocations in the scope of a
57036         single configure.ac file.
57037         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57038         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57039         with the same contents as the _LIBADD variable.
57040         (func_emit_initmacro_start, func_emit_initmacro_end,
57041         func_emit_initmacro_done): New functions.
57042         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57043         gl_LIBOBJS and gl_LTLIBOBJS.
57044
57045 2006-10-11  Bruno Haible  <bruno@clisp.org>
57046
57047         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57048         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57049         autoreconf. Instead, invoke autopoint explicitly but move back the
57050         *.m4 files from gnulib.
57051
57052 2006-10-11  Bruno Haible  <bruno@clisp.org>
57053
57054         * gnulib-tool (func_usage): Make module names after --create-testdir
57055         optional.
57056         (func_create_testdir): If no module was specified, use nearly all
57057         modules.
57058
57059 2006-10-12  Jim Meyering  <jim@meyering.net>
57060
57061         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57062         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57063         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57064         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57065         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57066         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57067         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57068         (fts_set_stat_required): New function.
57069         (fts_open): Defer the calls to fts_stat, if possible or requested.
57070         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57071         into fts_stat itself.
57072         (fts_read): Perform any required (deferred) fts_stat call.
57073         (fts_build): Likewise, for the directory we're about to open and read.
57074         In the readdir loop, carefully decide whether each entry will require
57075         an eventual call to fts_stat, using dirent.d_type info if available.
57076         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57077         a command line argument into this function.  Update all callers.
57078         Map a return value of FTS_DOT to FTS_D for a command line argument.
57079         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57080         Thanks to Miklos Szeredi for his tenacity and for the initial
57081         bug report about "find" failing on a FUSE-based file system.
57082
57083         * lib/fts.c (fts_open): Use consistent indentation.
57084
57085 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57086
57087         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57088         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57089         reported by Jim Meyering.  All uses of cache variables renamed
57090         to match Autoconf's.
57091         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57092         the other one.
57093
57094         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57095         Fix misspelling in diagnostic.
57096
57097 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57100         defined.  Problem reported by Matthew Woehlke.
57101
57102         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57103         Add support for Tandem NonStop R series.
57104         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57105         Use new macro.
57106
57107         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57108         (has_trailing_slash): Omit size arg; all callers changed.
57109         Omit 'inline', since it doesn't help performance and we'd
57110         need to configure it.
57111         Don't count //, ///, etc. as having a trailing slash.
57112         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57113         (rpl_rename_dest_slash): On failure, use rename's errno rather
57114         than (in some cases) an incorrect or junk errno.
57115         Simplify code by removing need to compute length; this does
57116         cause it to make two passes instead of one over the file name,
57117         but it's worth it.
57118
57119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57120         change, since Autoconf's version may no longer be appropriate now
57121         that we are using CVS Autoconf's version.  Add support for Tandem.
57122
57123 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57124             Bruno Haible  <bruno@clisp.org>
57125
57126         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57127         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57128         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57129         gl_AC_TYPE_LONG_LONG.
57130
57131         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57132         instead of HAVE_LONG_LONG.
57133         * lib/printf-args.c (printf_fetchargs): Likewise.
57134         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57135         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57136         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57137         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57138         gl_AC_TYPE_LONG_LONG.
57139
57140 2006-10-11  Bruno Haible  <bruno@clisp.org>
57141
57142         * m4/longlong.m4: Add comments.
57143         * m4/ulonglong.m4: Likewise.
57144
57145 2006-10-10  Bruno Haible  <bruno@clisp.org>
57146
57147         Make it possible to #define stpcpy, strdup to aliases.
57148         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57149         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57150
57151 2006-10-10  Bruno Haible  <bruno@clisp.org>
57152
57153         Make it possible to #define gcd to an alias.
57154         * lib/gcd.c: Include config.h.
57155
57156 2006-10-10  Bruno Haible  <bruno@clisp.org>
57157
57158         Make it possible to #define c_isascii to an alias.
57159         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57160         defined. Undefine the macros before defining them, to avoid gcc
57161         warnings.
57162         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57163         define NO_C_CTYPE_MACROS early.
57164
57165 2006-10-10  Bruno Haible  <bruno@clisp.org>
57166
57167         Make it possible to #define set_program_name to an alias.
57168         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57169         ENABLE_RELOCATABLE early.
57170
57171 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57174         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57175         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57176         More generally, don't assume that 64-bit signed int is available
57177         if unsigned int is, and vice versa.
57178         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57179         unsigned symbols, not on their signed counterparts.
57180         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57181         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57182         (UINT64_C, UINTMAX_C):
57183         Likewise.
57184         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57185         unsigned counterparts.
57186         (Have_long_long, Unsigned): New macros.
57187         (Int): Renamed from INT.
57188         (strtoimax): Use the new macros.
57189         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57190         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57191         * modules/inttypes (inttypes.h): Substitute
57192         HAVE_UNSIGNED_LONG_LONG_INT.
57193         * modules/stdint (stdint.h): Likewise.
57194         (Files): Add m4/ulonglong.m4.
57195
57196 2006-10-10  Bruno Haible  <bruno@clisp.org>
57197
57198         Fix a gcc -Wshadow warning.
57199         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57200         to 'bucket'.
57201         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57202         gl_linked_indexof_from_to): Likewise.
57203         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57204         Likewise.
57205         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57206         Likewise.
57207         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57208         Reported by Eric Blake.
57209
57210 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57213         for NetBSD.  Problem reported by Bruno Haible.
57214
57215 2006-10-09  Jim Meyering  <jim@meyering.net>
57216
57217         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57218         Patch from Bruno Haible.
57219
57220 2006-10-09  Jim Meyering  <jim@meyering.net>
57221
57222         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57223         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57224         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57225
57226 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57227
57228         Don't include <config.h> twice; this doesn't work in some cases,
57229         e.g., when config.h has "#define intmax_t long long int" and
57230         we include <config.h>, <inttypes.h>, <config.h> in that order.
57231         Problem reported by Matthew Woehlke in:
57232         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57233         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57234         * lib/fts-cycle.c: Don't include config.h.
57235         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57236         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57237         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57238         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57239         inttypes.h.
57240         * lib/xstrtoumax.c: Likewise.
57241         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57242         __strtol and the like, so that this module is more like its siblings.
57243         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57244         Remove; no longer needed now that we assume gnulib inttypes.h.
57245
57246 2006-10-08  Bruno Haible  <bruno@clisp.org>
57247
57248         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57249         option.
57250
57251 2006-10-07  Jim Meyering  <jim@meyering.net>
57252
57253         * modules/inttypes (inttypes.h): Revert what seems to have been
57254         an inadvertent part of today's change: use "|", not "/" in the
57255         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57256
57257 2006-10-07  Bruno Haible  <bruno@clisp.org>
57258
57259         * modules/sublist: New file.
57260
57261 2006-10-07  Bruno Haible  <bruno@clisp.org>
57262
57263         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57264         * modules/argz (argz.h): Likewise.
57265         * modules/arpa_inet (arpa/inet.h): Likewise.
57266         * modules/byteswap (byteswap.h): Likewise.
57267         * modules/configmake (configmake.h): Likewise.
57268         * modules/fcntl (fcntl.h): Likewise.
57269         * modules/fnmatch (fnmatch.h): Likewise.
57270         * modules/getopt (getopt.h): Likewise.
57271         * modules/glob (glob.h): Likewise.
57272         * modules/inttypes (inttypes.h): Likewise.
57273         * modules/netinet_in (netinet/in.h): Likewise.
57274         * modules/poll (poll.h): Likewise.
57275         * modules/stdbool (stdbool.h): Likewise.
57276         * modules/stdint (stdint.h): Likewise.
57277         * modules/sys_select (sys/select.h): Likewise.
57278         * modules/sys_socket (sys/socket.h): Likewise.
57279         * modules/sys_stat (sys/stat.h): Likewise.
57280         * modules/sysexits (sysexits.h): Likewise.
57281         * modules/unistd (unistd.h): Likewise.
57282         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57283         Add a "DO NOT EDIT" comment to the generated file.
57284         (func_import): Likewise for gnulib-comp.m4.
57285
57286 2006-10-07  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/gl_sublist.h: New file.
57289         * lib/gl_sublist.c: New file.
57290
57291 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57294         name (relative to the original working directory) and the file
57295         name component (relative to the temporary working directory).  All
57296         callers changed.
57297         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57298         * lib/mkdir-p.c (make_dir_parents): Likewise.
57299         * lib/mkdir-p.h (make_dir_parents): Likewise.
57300
57301 2006-10-06  Eric Blake  <ebb9@byu.net>
57302
57303         Define several macros for use by the clean-temp module.
57304         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57307
57308         * lib/clean-temp.h (close_stream_temp): New declaration.
57309         * lib/clean-temp.c (includes): Pull in headers according to what
57310         other modules are in use.
57311         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57312
57313 2006-10-06  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57316         instead of fopen, fwriteerror.
57317
57318 2006-10-06  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57321         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57322         int.
57323         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57324         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57325         Return an error indicator.
57326         Suggested by Eric Blake.
57327
57328 2006-10-06  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57331         Reported by Eric Blake.
57332
57333 2006-10-06  Bruno Haible  <bruno@clisp.org>
57334
57335         * modules/closeout (Description): Mention stderr too.
57336
57337 2006-10-06  Bruno Haible  <bruno@clisp.org>
57338         and Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * lib/closeout.c (close_stdout): Also close stderr.
57341         * lib/closeout.h: Update comment.
57342
57343 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57344
57345         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57346         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57347         * lib/dirchownmod.c: Include lchown.h.
57348         * lib/lchown.c: Don't include files that lchown.h now includes.
57349         Don't declare chown, since lchown.h now does that.
57350         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57351         (lchown): Define to rpl_chown if lchown is declared but
57352         does not exist.  Declare using a prototype if lchown is not
57353         declared.  Add a copyright notice.
57354         * lib/mkstemp.h: Include <unistd.h>.
57355         * lib/openat.c: Include lchown.h.
57356
57357         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57358         we now test for that separately.
57359         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57360         rather than O_NOFOLLOW, when testing whether it's possible to
57361         avoid a race condition reliably.
57362         * lib/savewd.c (savewd_chdir): Likewise.
57363
57364         Remove macros that are no longer needed now that stdint.h is
57365         reliable.
57366         * lib/fsusage.c (UINTMAX_MAX): Remove.
57367         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57368         * lib/utimecmp.c (SIZE_MAX): Remove.
57369
57370         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57371
57372         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57373         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57374         O_NOATIME works.
57375
57376 2006-10-05  Bruno Haible  <bruno@clisp.org>
57377
57378         * lib/gl_list.h (gl_sortedlist_search_from_to,
57379         gl_sortedlist_indexof_from_to): New declarations.
57380         (gl_list_implementation): New fields sortedlist_search_from_to,
57381         sortedlist_indexof_from_to.
57382         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57383         inline functions.
57384         * lib/gl_list.c (gl_sortedlist_search_from_to,
57385         gl_sortedlist_indexof_from_to): New functions.
57386         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57387         function.
57388         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57389         (gl_array_sortedlist_search_from_to): New function.
57390         (gl_array_list_implementation): Update.
57391         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57392         function.
57393         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57394         (gl_carray_sortedlist_search_from_to): New function.
57395         (gl_carray_list_implementation): Update.
57396         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57397         gl_linked_sortedlist_indexof_from_to): New functions.
57398         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57399         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57400         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57401         gl_tree_sortedlist_indexof_from_to): New functions.
57402         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57403         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57404         Update.
57405         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57406         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57407         Update.
57408
57409 2006-10-05  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57412         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57413         (struct gl_list_implementation): Add fields search_from_to,
57414         indexof_from_to. Remove fields search, indexof.
57415         (gl_list_search): Use the search_from_to method.
57416         (gl_list_search_from, gl_list_search_from_to): New functions.
57417         (gl_list_indexof): Use the indexof_from_to method.
57418         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57419         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57420         (gl_list_search_from, gl_list_search_from_to): New functions.
57421         (gl_list_indexof): Use the indexof_from_to method.
57422         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57423         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57424         gl_array_indexof. Add start_index, end_index arguments.
57425         (gl_array_search_from_to): Renamed from gl_array_search. Add
57426         start_index, end_index arguments.
57427         (gl_array_remove, gl_array_list_implementation): Update.
57428         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57429         gl_carray_indexof. Add start_index, end_index arguments.
57430         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57431         start_index, end_index arguments.
57432         (gl_carray_remove, gl_carray_list_implementation): Update.
57433         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57434         gl_linked_search. Add start_index, end_index arguments.
57435         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57436         start_index, end_index arguments.
57437         (gl_linked_remove): Update.
57438         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57439         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57440         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57441         field to 'size_t'.
57442         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57443         gl_tree_search. Add start_index, end_index arguments.
57444         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57445         start_index, end_index arguments.
57446         (gl_tree_remove): Update.
57447         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57448         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57449         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57450         function.
57451         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57452         gl_tree_search. Add start_index, end_index arguments.
57453         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57454         start_index, end_index arguments.
57455         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57456         Update.
57457         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57458
57459 2006-10-05  Bruno Haible  <bruno@clisp.org>
57460
57461         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57462
57463         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57464         fwriteerror_temp): New declarations.
57465         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57466         (descriptors): New variable.
57467         (cleanup): First, close the descriptors.
57468         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57469         fclose_temp, fwriteerror_temp): New functions.
57470
57471 2006-10-04  Jim Meyering  <jim@meyering.net>
57472
57473         * lib/fts.c (fts_open): Tiny comment change.
57474
57475 2006-10-04  Bruno Haible  <bruno@clisp.org>
57476
57477         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57478         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57479         gl_LOCK_BODY.
57480         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57481         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57482         gl_LOCK_EARLY_BODY.
57483         (gl_LOCK): Require gl_LOCK_BODY.
57484
57485 2006-10-04  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57488         (gl_oset_search_atleast): New declaration.
57489         (struct gl_oset_implementation): Add field 'search_atleast'.
57490         (gl_oset_search_atleast): New inline function.
57491         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57492         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57493         (gl_array_oset_implementation): Update.
57494         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57495         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57496         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57497
57498 2006-10-04  Bruno Haible  <bruno@clisp.org>
57499
57500         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57501
57502 2006-10-03  Bruno Haible  <bruno@clisp.org>
57503
57504         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57505         from gl_avltreehash_list_implementation.
57506
57507 2006-10-03  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/gl_oset.c (gl_oset_add): Fix return type.
57510
57511 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57512
57513         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57514
57515 2006-10-02  Eric Blake  <ebb9@byu.net>
57516
57517         * modules/strnlen (Depends-on): Add extensions.
57518
57519 2006-10-02  Eric Blake  <ebb9@byu.net>
57520
57521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57522         definition in 2.60+.
57523
57524 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57525
57526         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57527         checks.
57528
57529 2006-10-02  Bruno Haible  <bruno@clisp.org>
57530
57531         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57532         to the AUTOMAKE_OPTIONS.
57533         Reported by Jim Meyering.
57534
57535 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         Work around bug in Solaris 10 /proc file system:
57538         /proc/self/fd/NNN/.. isn't the parent directory of
57539         the directory whose file descriptor is NNN.  This needs to
57540         be worked around at run time, not compile time, since a
57541         program might be built on Solaris 8, where things work, and
57542         run on Solaris 10.
57543         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57544         to use the following interface instead:
57545         (OPENAT_BUFFER_SIZE): New macro.
57546         (openat_proc_name): New function.
57547         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57548         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57549         Likewise.
57550         * lib/openat-proc.c: New file.
57551         * modules/openat (Files): Add lib/openat-proc.c.
57552         (Depends-on): Add same-inode, stdbool.
57553         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57554
57555 2006-09-29  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57558         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57559         argument. Set stdout_closed before testing for ferror, not after.
57560         (fwriteerror, fwriteerror_no_ebadf): New functions.
57561
57562 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57563
57564         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57565
57566 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57567
57568         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57569         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57570
57571 2006-09-28  Jim Meyering  <jim@meyering.net>
57572
57573         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57574         Include <unistd.h>.
57575
57576 2006-09-28  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57579         * modules/linkedhash-list (Depends-on): Likewise.
57580         * modules/rbtreehash-list (Depends-on): Likewise.
57581
57582 2006-09-28  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/strndup.h: Simplify the redefinition of strndup.
57585         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57587
57588 2006-09-28  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57591         * lib/gl_linkedhash_list.c: Likewise.
57592         * lib/gl_rbtreehash_list.c: Likewise.
57593
57594 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57597         getaddrinfo.
57598
57599         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57600         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57601         it causes <stdio_ext.h> to cause a compile-time error.
57602         Problem reported by Nelson H. F. Beebe.
57603         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57604         of HAVE_DECL___PENDING.
57605
57606         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57607         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57608         declaration.
57609
57610 2006-09-27  Jim Meyering  <jim@meyering.net>
57611
57612         This file could end up with a definition for a function
57613         named __strndup, rather than rpl_strndup on a system with
57614         incomplete weak_alias support.
57615         * lib/strndup.c (strndup): Rename from __strndup.
57616         Remove #defines that used to map __strndup to strndup.
57617         Don't use K&R prototypes.
57618         Remove LIBC-related code, since this file is not sync'd with glibc.
57619         * lib/strndup.h: Revamp, accordingly.
57620         * m4/strndup.m4: Modernize.
57621
57622 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57623
57624         * modules/savewd (Depends-on): Add 'raise'.
57625         * lib/savewd.c: Include <signal.h>, for 'raise'.
57626
57627 2006-09-26  Jim Meyering  <jim@meyering.net>
57628
57629         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57630         when we detect Darwin 8.7.0's acl_get_file bug.
57631         Rearrange to perform the new (below) run-test while $LIBS
57632         contains any acl-related library.  Set USE_ACL at the end.
57633         (gl_ACL_GET_FILE): New function.
57634
57635 2006-09-26  Eric Blake  <ebb9@byu.net>
57636
57637         * lib/verror.c: Include <config.h> unconditionally.
57638
57639 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         * modules/clock-time (Maintainer): Add self.
57642         * modules/getlogin_r (Depends-on): Add extensions.
57643
57644 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57645
57646         * modules/clock-time: New module.
57647         * modules/nanosleep (Depends-on): Add clock-time.
57648         * modules/gethrxtime (Depends-on): Likewise.
57649         * modules/gettime (Depends-on): Likewise.
57650         * modules/settime (Depends-on): Likewise.
57651
57652         * modules/fts-lgpl: Depend on openat.
57653         * modules/mkancesdirs: Depend on savewd.
57654         * modules/mkdir-p: Likewise.
57655
57656 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57657
57658         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57659
57660         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57661         `gl_have_arbitrary_file_name_length_limit' to
57662         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57663         actually works between configure runs.
57664
57665 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57666             Bruno Haible  <bruno@clisp.org>
57667
57668         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57669
57670 2006-09-25  Jim Meyering  <jim@meyering.net>
57671
57672         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57673         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57674
57675 2006-09-25  Eric Blake  <ebb9@byu.net>
57676
57677         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57678         exec's in 2006-09-18 patch when shuffling fds.
57679
57680 2006-09-25  Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57683         Reported by Jim Meyering.
57684
57685 2006-09-24  Jim Meyering  <jim@meyering.net>
57686
57687         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57688         compare a pointer against a literal "0".  That caused failures with
57689         at least HP-UX's hpcc.
57690
57691 2006-09-22  Simon Josefsson  <jas@extundo.com>
57692
57693         * modules/gc-sha1:
57694         * modules/gc-md4:
57695         * modules/gc-hmac-sha1:
57696         * modules/gc-hmac-md5:
57697         * modules/gc-des:
57698         * modules/gc-arcfour: Distribute more files.
57699
57700 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57701
57702         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57703         (gl_linked_iterator_from_to): Initialize struct completely.
57704         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57705         (gl_tree_iterator_from_to): Likewise
57706         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57707         * lib/gl_array_list.c [lint] (gl_array_iterator)
57708         (gl_array_iterator_from_to): Likewise.
57709         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57710         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57711         (gl_carray_iterator_from_to): Likewise.
57712
57713         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57714         * lib/md4.c (md4_process_block): Remove unused variable.
57715         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57716         parentheses for clarity.
57717
57718 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57719
57720         * modules/bison-i18n (Depends-on): Add gettext.
57721
57722 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57723
57724         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57725         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57726         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57727         also add missing comma that caused broken test.
57728         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57729         stdlib.h, for `abort'.
57730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57731         variables.
57732         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57733         include unistd.h if present, for `rmdir'.
57734         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57735         variables.
57736         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57737         in the process include standard headers for prototypes.
57738         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57739         gets declared on GNU/Linux.
57740         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57741         unistd.h, for `rmdir'.
57742         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57743
57744         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57745         always true.
57746         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57747
57748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57749
57750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57751
57752         * gnulib-tool (func_version): Create output all at once.  This
57753         may help avoid triggering unnecessary SIGPIPEs, and at any
57754         rate it doesn't hurt.
57755
57756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57757             Bruno Haible  <bruno@clisp.org>
57758
57759         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57760         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57761         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57762
57763         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57764         (gl_FUNC_VASPRINTF): Invoke it.
57765
57766 2006-09-22  Bruno Haible  <bruno@clisp.org>
57767
57768         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57769         getloadavg.c as first argument.
57770
57771 2006-09-22  Bruno Haible  <bruno@clisp.org>
57772
57773         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57774         at the beginning of the gl_INIT macro.
57775         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57776         gl_GETLOADAVG.
57777
57778 2006-09-22  Bruno Haible  <bruno@clisp.org>
57779
57780         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57781         module.
57782         Suggested by Ralf Wildenhues.
57783
57784 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         Import this patch from libc:
57787
57788         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57789
57790         * lib/regex_internal.c (re_string_reconstruct): Handle
57791         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57792         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57793         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57794         re_string_context_at.
57795
57796         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57797         now requires it.
57798         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57799         gl_REGEX now does it for us.
57800         (gl_REGEX): Add test taken from
57801         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57802
57803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57804         Check that large offsets work.  Modernize Autoconf usages.
57805         Prefer "yes" to mean a good thing rather than a bad.
57806         Don't put "#define mkstemp" in config.h, as this might interfere
57807         with standard system headers that "#define mkstemp mkstemp64".
57808
57809         * modules/mkstemp (Depends-on): Add extensions, so that
57810         mkstemp is visible on some platforms.
57811         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57812         (Include): Change to "mkstemp.h" from <stdlib.h>.
57813         (Files): Add mkstemp.h.
57814
57815         * lib/mkstemp.h: New file, since some standard headers
57816         #define mkstemp.
57817         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57818         Include "mkstemp.h".
57819         Make the _LIBC code resemble glibc original more,
57820         e.g., use K&R style.
57821         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57822         (mkstemp): Remove, since mkstemp.h does this for us.
57823         * lib/stdlib--.h: Include mkstemp.h.
57824
57825         Import this patch from libc:
57826
57827         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57828
57829         * lib/tempname.c (__gen_tempname): Change attempts_min
57830         into a macro.  Use preprocessor to decide how to initialize
57831         attempts [Coverity CID 67].
57832
57833 2006-09-20  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/mkdtemp.c: Import from libc.
57836         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57837                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57838                 attempts_min into a macro.  Use preprocessor to decide how to
57839                 initialize attempts [Coverity CID 67].
57840         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57841                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57842                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57843
57844 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57845
57846         * gnulib-tool (func_exit): New function, to allow to pass the
57847         exit status portably through the trap.  Use everywhere.
57848         (--help, --version): Signal a write error.
57849         (trap): catch SIGPIPE, for write errors.
57850         Exit at the end of the trap, with the correct exit status.
57851
57852 2006-09-19  Karl Berry  <karl@gnu.org>
57853
57854         * doc/gnulib.texi: note about the license texinfo files.
57855
57856 2006-09-19  Eric Blake  <ebb9@byu.net>
57857
57858         * gnulib-tool: Avoid space-tab.
57859
57860 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57863         that prevented coreutils 6.1 from building.  Problem reported
57864         by Petter Reinholdtsen.
57865
57866 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * gnulib-tool (avoidlist): Fix typo that broke options like
57869         --avoid=lock that are used by coreutils bootstrap.
57870
57871 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57872
57873         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57874         more systematically.
57875
57876 2006-09-18  Jim Meyering  <jim@meyering.net>
57877
57878         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57879
57880 2006-09-18  Bruno Haible  <bruno@clisp.org>
57881
57882         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57883
57884 2006-09-18  Bruno Haible  <bruno@clisp.org>
57885
57886         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57887         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57888         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57889         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57890         * m4/gettext.m4: Require autoconf >= 2.52.
57891         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57892         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57893         of gl_cv_header_inttypes_h.
57894
57895 2006-09-18  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/javaversion.c: Include configmake.h.
57898
57899 2006-09-18  Bruno Haible  <bruno@clisp.org>
57900
57901         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57902         avoid that the while loops be executed in a subshell.
57903
57904 2006-09-18  Bruno Haible  <bruno@clisp.org>
57905
57906         * MODULES.html.sh (func_module): Break long lines.
57907         Suggested by Bruce Korb <bkorb@gnu.org>.
57908
57909 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57910
57911         Speed up by a factor of 1.12.
57912         * gnulib-tool (nl): New variable.
57913         (func_import): Rewrite include directive extraction to only read each
57914         directive once.
57915
57916 2006-09-17  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/javaversion (Makefile.am): Remove DEFS setting.
57919         (Depends-on): Add configmake, for PKGDATADIR definition.
57920
57921 2006-09-17  Bruno Haible  <bruno@clisp.org>
57922
57923         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57924
57925 2006-09-17  Bruno Haible  <bruno@clisp.org>
57926
57927         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57928         (func_modules_transitive_closure, func_modules_add_dummy,
57929         func_modules_to_filelist, func_import, func_create_testdir,
57930         func_create_megatestdir, ...): Use it wherever possible.
57931         Suggested by Ralf Wildenhues.
57932
57933 2006-09-16  Karl Berry  <karl@gnu.org>
57934
57935         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57936         to avoid sectioning errors.
57937         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57938         [ifinfo]: blank line after @center-ed titles.
57939         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57940         Spell FSF address consistently with others.
57941         (These changes approved by rms.)
57942
57943 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57944
57945         Speed up by a factor of 1.61.
57946         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57947         already checked module names again.
57948
57949 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57950
57951         Speed up by a factor of 1.13.
57952         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57953         for new_files, and the input to func_add_or_update.
57954
57955 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57956
57957         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57958         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57959
57960 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         * modules/mkancesdirs (Depends-on): Add fcntl.
57963         * modules/savewd: New file.
57964         * MODULES.html.sh (File system functions): Add savewd.
57965
57966         * modules/configmake (Makefile.am): Add support for the
57967         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57968
57969 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         * m4/savewd.m4: New file.
57972
57973 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57976         (dirchownmod): New arg FD.  All callers changed.
57977         Use FD rather than opening the directory ourself, as opening is
57978         now the caller's responsibility.
57979         * lib/dirchownmod.h: Likewise.
57980         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57981         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57982         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57983         (test_dir): Remove.
57984         (mkancesdirs): Return length of prefix of FILE that has already
57985         been made, or -2 if there is a child doing the work.  Redo
57986         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57987         ".", and treat ".." specially since it might stray back into
57988         already-created areas.  Use a subprocess if necessary.  New arg
57989         WD; all users changed.  MAKE_DIR function should now return 1
57990         if it creates a directory that is not readable.  Return -2 if
57991         a child process is spun off.
57992         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57993         Adjust signature to match code.
57994         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57995         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57996         all users changed.
57997         * lib/savewd.c, lib/savewd.h: New files.
57998
57999 2006-09-15  Jim Meyering  <jim@meyering.net>
58000
58001         * modules/rename-dest-slash: New module.
58002         * MODULES.html.sh (posix_compat): Add it here.
58003
58004         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58005
58006 2006-09-15  Jim Meyering  <jim@meyering.net>
58007
58008         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58009         file.
58010
58011         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58012
58013 2006-09-15  Jim Meyering  <jim@meyering.net>
58014
58015         * lib/rename-dest-slash.c (has_trailing_slash): Use
58016         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58017         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58018         test before testing whether SRC is a directory.
58019         Suggestions from Bruno Haible.
58020
58021         Avoid a warning about an unused variable.
58022         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58023         into the #ifdef block where it's used.
58024
58025         * lib/rename-dest-slash.c: New file.
58026
58027 2006-09-14  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/allocsa.c: Include <config.h> unconditionally.
58030         * lib/asnprintf.c: Likewise.
58031         * lib/asprintf.c: Likewise.
58032         * lib/c-strcasecmp.c: Likewise.
58033         * lib/c-strcasestr.c: Likewise.
58034         * lib/c-strncasecmp.c: Likewise.
58035         * lib/c-strstr.c: Likewise.
58036         * lib/classpath.c: Likewise.
58037         * lib/clean-temp.c: Likewise.
58038         * lib/concatpath.c: Likewise.
58039         * lib/copy-file.c: Likewise.
58040         * lib/csharpcomp.c: Likewise.
58041         * lib/csharpexec.c: Likewise.
58042         * lib/execute.c: Likewise.
58043         * lib/fatal-signal.c: Likewise.
58044         * lib/findprog.c: Likewise.
58045         * lib/fwriteerror.c: Likewise.
58046         * lib/gl_array_list.c: Likewise.
58047         * lib/gl_array_oset.c: Likewise.
58048         * lib/gl_avltree_list.c: Likewise.
58049         * lib/gl_avltree_oset.c: Likewise.
58050         * lib/gl_avltreehash_list.c: Likewise.
58051         * lib/gl_carray_list.c: Likewise.
58052         * lib/gl_linked_list.c: Likewise.
58053         * lib/gl_linkedhash_list.c: Likewise.
58054         * lib/gl_list.c: Likewise.
58055         * lib/gl_oset.c: Likewise.
58056         * lib/gl_rbtree_list.c: Likewise.
58057         * lib/gl_rbtree_oset.c: Likewise.
58058         * lib/gl_rbtreehash_list.c: Likewise.
58059         * lib/imaxabs.c: Likewise.
58060         * lib/imaxdiv.c: Likewise.
58061         * lib/javacomp.c: Likewise.
58062         * lib/javaexec.c: Likewise.
58063         * lib/javaversion.c: Likewise.
58064         * lib/linebreak.c: Likewise.
58065         * lib/localcharset.c: Likewise.
58066         * lib/lock.c: Likewise.
58067         * lib/mbchar.c: Likewise.
58068         * lib/mbswidth.c: Likewise.
58069         * lib/mkdtemp.c: Likewise.
58070         * lib/pipe.c: Likewise.
58071         * lib/printf-args.c: Likewise.
58072         * lib/printf-parse.c: Likewise.
58073         * lib/progname.c: Likewise.
58074         * lib/progreloc.c: Likewise.
58075         * lib/readlink.c: Likewise.
58076         * lib/sh-quote.c: Likewise.
58077         * lib/stpcpy.c: Likewise.
58078         * lib/stpncpy.c: Likewise.
58079         * lib/strcasecmp.c: Likewise.
58080         * lib/strcasestr.c: Likewise.
58081         * lib/strcspn.c: Likewise.
58082         * lib/striconv.c: Likewise.
58083         * lib/strncasecmp.c: Likewise.
58084         * lib/strnlen1.c: Likewise.
58085         * lib/strstr.c: Likewise.
58086         * lib/strtok_r.c: Likewise.
58087         * lib/tls.c: Likewise.
58088         * lib/tmpdir.c: Likewise.
58089         * lib/unicodeio.c: Likewise.
58090         * lib/unsetenv.c: Likewise.
58091         * lib/vasnprintf.c: Likewise.
58092         * lib/vasprintf.c: Likewise.
58093         * lib/wait-process.c: Likewise.
58094         * lib/xallocsa.c: Likewise.
58095         * lib/xsetenv.c: Likewise.
58096         * lib/xstriconv.c: Likewise.
58097
58098 2006-09-13  Simon Josefsson  <jas@extundo.com>
58099
58100         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58101         that internally, suggested by Ralf Wildenhues
58102         <Ralf.Wildenhues@gmx.de>.
58103
58104 2006-09-13  Simon Josefsson  <jas@extundo.com>
58105
58106         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58107         @LIBOBJS@.
58108         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58109
58110 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58113         longer worry about uses that don't define HAVE_CONFIG_H.
58114         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58115         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58116         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58117         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58118         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58119         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58120         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58121         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58122         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58123         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58124         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58125         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58126         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58127         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58128         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58129         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58130         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58131         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58132         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58133         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58134         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58135         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58136         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58137         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58138         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58139         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58140         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58141         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58142         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58143         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58144         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58145         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58146         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58147         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58148         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58149         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58150         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58151         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58152         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58153         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58154         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58155         Likewise.
58156
58157 2006-09-13  Eric Blake  <ebb9@byu.net>
58158
58159         * lib/getopt.c: Fix typo in last commit.
58160
58161 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58162
58163         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58164         dgettext.
58165
58166 2006-09-12  Jim Meyering  <jim@meyering.net>
58167
58168         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58169         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58170         Reported by Nelson H. F. Beebe.
58171
58172 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58173
58174         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58175         program_invocation_name and program_invocation_short_name are
58176         initialized.
58177         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58178         and program_invocation_short_name to argp.h, so they are visible
58179         to user programs.
58180         * lib/argp.h: Likewise
58181
58182 2006-09-10  Bruno Haible  <bruno@clisp.org>
58183
58184         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58185         m4/inttypes_h.m4, m4/uintmax_t.m4.
58186
58187 2006-09-10  Bruno Haible  <bruno@clisp.org>
58188
58189         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58190         gl_AC_TYPE_UINTMAX_T.
58191
58192 2006-09-10  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58195
58196 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58197
58198         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58199         convention.  Text proposed by Bruno Haible.
58200         (struct argp_option): Document the use of N_() wrappers.
58201
58202         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58203         '\v', and translate the two parts separately, instead of feeding
58204         the whole string to gettext.  This allows to exclude
58205         '\v' from the strings visible to the translator by writing doc
58206         strings as N_("..") "\v" N_("..").
58207
58208 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         * config/srclist.txt: Undo latest change; the bug was fixed.
58211
58212 2006-09-09  Bruno Haible  <bruno@clisp.org>
58213
58214         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58215         assignments if building a library without libtool.
58216         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58217         in func_emit_lib_Makefile_am.
58218         (func_import): When building a static library libfoo.a, arrange to
58219         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58220         (func_create_testdir): Likewise.
58221         * modules/gc (configure.ac, Makefile.am): If building statically,
58222         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58223         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58224         * modules/striconv (configure.ac, Makefile.am): Likewise.
58225         Based on a suggestion by Ralf Wildenhues.
58226
58227 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58230         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58231         Also:
58232
58233         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58234         Add year_2050_test to catch glibc bug 2821
58235         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58236
58237         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58238         Prefer #ifdef to #if.
58239
58240         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58241         Return from 'main' instead of calling 'exit'.
58242
58243 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58246         returned the maximum time_t value rather than (time_t) -1.
58247         Problem originally reported by William Bardwell
58248         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58249
58250         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58251         Moved to here ...
58252         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58253         ... from here.
58254
58255 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58258         2821 is fixed.
58259
58260 2006-09-08  Jim Meyering  <jim@meyering.net>
58261
58262         Don't make generated files read-only.  That would bother too many
58263         people.  However, do retain the ability to work when targets are
58264         read-only: remove the destination and temporary files before writing
58265         them (when generated via sed or echo), or by using the -f option for
58266         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58267         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58268         * modules/byteswap, modules/configmake, modules/fcntl:
58269         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58270         * modules/localcharset, modules/netinet_in, modules/poll:
58271         * modules/stdbool, modules/stdint, modules/sys_select:
58272         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58273
58274 2006-09-08  Jim Meyering  <jim@meyering.net>
58275
58276         Avoid new build failure on FreeBSD 6.0.
58277         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58278         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58279         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58280
58281 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58282
58283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58284
58285 2006-09-07  Jim Meyering  <jim@meyering.net>
58286
58287         Fix global typo in last change: use chmod u-w, not chmod u-x.
58288         Spotted by Paul Eggert and Bruce Korb.
58289         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58290         * modules/byteswap, modules/configmake, modules/fcntl:
58291         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58292         * modules/localcharset, modules/netinet_in, modules/poll:
58293         * modules/stdbool, modules/stdint, modules/sys_select:
58294         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58295
58296 2006-09-06  Jim Meyering  <jim@meyering.net>
58297
58298         Make generated files be read-only.
58299         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58300         Ensure that each generated file is now read-only.
58301         * modules/argz: Likewise.
58302         * modules/arpa_inet: Likewise.
58303         * modules/byteswap: Likewise.
58304         * modules/configmake: Likewise.
58305         * modules/fcntl: Likewise.
58306         * modules/fnmatch: Likewise.
58307         * modules/getopt: Likewise.
58308         * modules/glob: Likewise.
58309         * modules/inttypes: Likewise.
58310         * modules/netinet_in: Likewise.
58311         * modules/poll: Likewise.
58312         * modules/stdbool: Likewise.
58313         * modules/stdint: Likewise.
58314         * modules/sys_select: Likewise.
58315         * modules/sys_socket: Likewise.
58316         * modules/sys_stat: Likewise.
58317         * modules/sysexits: Likewise.
58318         * modules/localcharset: Same as above, but continue using temporary
58319         file named "t-$@" (why different?) rather than the "$@-t" used
58320         everywhere else.
58321
58322         * modules/sysexits (Makefile.am): Replace literal occurrences
58323         of "sysexit.h" more readable, and more consistent, "$@".
58324
58325 2006-09-06  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/striconv: New file.
58328         * modules/xstriconv: New file.
58329         * MODULES.html.sh (Internationalization functions): Add striconv,
58330         xstriconv.
58331
58332 2006-09-06  Bruno Haible  <bruno@clisp.org>
58333
58334         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58335         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58336         not using libtool correctly.
58337
58338 2006-09-06  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/striconv.h: New file.
58341         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58342         iconvstring.c.
58343         * lib/xstriconv.h: New file.
58344         * lib/xstriconv.c: New file.
58345
58346 2006-09-06  Bruno Haible  <bruno@clisp.org>
58347
58348         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58349         lib_..._LDFLAGS.
58350
58351 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58352
58353         * lib/argz_.h: Sync from Libtool.
58354
58355         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58356                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58357
58358         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58359
58360 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58361
58362         * modules/trim: New file.
58363
58364 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58365
58366         * lib/trim.h: New file.
58367         * lib/trim.c: New file.
58368
58369 2006-09-05  Bruno Haible  <bruno@clisp.org>
58370
58371         * MODULES.html.sh (String handling): Add trim.
58372
58373 2006-09-04  Karl Berry  <karl@gnu.org>
58374
58375         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58376         until next release.
58377
58378 2006-09-03  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58381         correctly.
58382
58383 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58386         not gl_GETLOADAVG.  Omit unneeded semicolons.
58387         Problems reported by Ralf Wildenhues in
58388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58389         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58390         at the end, which is the usual gnulib style.
58391
58392         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58393         of doing all the work ourselves.
58394         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58395         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58396
58397 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58400         Problem reported by Ralf Wildenhues in
58401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58402
58403         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58404         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58405
58406 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58409         yesterday's patch by changing test -n to test -z.
58410
58411 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58414         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58415         the former is now obsolescent.
58416
58417         * modules/chdir-long (Depends-on): Add fcntl.
58418
58419 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58422         obsolescent, and programs should use gnulib instead.
58423         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58424         but with prefixes changed.
58425
58426 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58429         or stdbool.h, because they might not exist while configuring.
58430
58431         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58432         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58433         does that for us.
58434         (O_DIRECTORY): Remove.
58435
58436 2006-08-31  Eric Blake  <ebb9@byu.net>
58437
58438         * gnulib-tool: Don't let emacs change spaces to TAB.
58439
58440 2006-08-31  Bruno Haible  <bruno@clisp.org>
58441
58442         * gnulib-tool: When calling func_import more than once, do it in a
58443         subshell.
58444         Reported by Eric Blake <ebb9@byu.net>.
58445
58446 2006-08-31  Bruno Haible  <bruno@clisp.org>
58447
58448         * gnulib-tool (nl): Remove variable.
58449         (sed_transform_lib_file): Use more robust test for config-h module.
58450         (func_import): Fix typo in 2006-08-25 patch.
58451
58452 2006-08-31  Bruno Haible  <bruno@clisp.org>
58453
58454         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58455         specified, augment Makefile.am variables instead of assigning them.
58456
58457 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         Work around a bug in both the Linux and SunOS 64-bit kernels:
58460         nanosleep mishandles sleeps for longer than 2**31 seconds.
58461         Problem reported by Frank v Waveren in
58462         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58464         Check for nanosleep bug.
58465         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58466
58467 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         Work around a bug in both the Linux and SunOS 64-bit kernels:
58470         nanosleep mishandles sleeps for longer than 2**31 seconds.
58471         Problem reported by Frank v Waveren in
58472         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58473         * lib/nanosleep.c (BILLION): New constant.
58474         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58475         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58476         implementation.
58477
58478 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * modules/nanosleep (Depends-on): Add gettime.
58481
58482 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58483         and Simon Josefsson  <jas@extundo.com>
58484         and Oskar Liljeblad  <oskar@osk.mine.nu>
58485
58486         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58487         * gnulib-tool (func_import): New license type 'unmodifiable license
58488         text'.
58489         * modules/fdl: Use it.  Longer description.
58490         * module/gpl, module/lgpl: New files.
58491
58492 2006-08-30  Jim Meyering  <jim@meyering.net>
58493
58494         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58495         shadowing the parameter.
58496
58497 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58498
58499         Sync from Libtool:
58500
58501         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58502
58503         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58504         sharing with gnulib.  Report by Eric Blake.
58505
58506 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58507
58508         * modules/isapipe: New file.
58509         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58510
58511 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         * modules/configmake (Makefile.am): Add a comment, and omit
58514         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58515         by Bruno Haible.
58516
58517 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58518
58519         * m4/isapipe.m4: New file.
58520
58521 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/isapipe.c, lib/isapipe.h: New files.
58524
58525 2006-08-29  Jim Meyering  <jim@meyering.net>
58526
58527         * modules/configmake (Makefile.am): Make configmake.h depend on
58528         Makefile.  Otherwise, a stale configmake.h could hang around.
58529
58530 2006-08-29  Eric Blake  <ebb9@byu.net>
58531
58532         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58533         resolution of upstream bug 3044.
58534
58535 2006-08-29  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/localcharset (Depends-on): Add configmake.
58538         (Makefile.am): Remove setting of LIBDIR through DEFS.
58539
58540 2006-08-29  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58543         defined.
58544
58545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58546
58547         * modules/fcntl: New file.
58548         * modules/chdir-safer (Depends-on): Add fcntl.
58549         * modules/fts: Likewise.
58550         * modules/mkdir-p: Likewise.
58551
58552         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58553         This undoes the most recent change, since we're now addressing the
58554         problem in a different way.
58555
58556         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58557         into output, since the output might be called Makefile.am even
58558         if $makefile_name is something different.
58559         (func_import): Use $makefile_am rather than
58560         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58561         empty.
58562
58563         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58564
58565 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58566
58567         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58568         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58569         recent change to stdint.m4, since we're now addressing the problem in a
58570         different way.
58571
58572 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58573
58574         * m4/fcntl_h.m4: New file.
58575
58576 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * lib/fcntl_.h: New file.
58579         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58580         the fcntl module.
58581         * lib/dirchownmod.c: Likewise.
58582         * lib/fts.c: Likewise.
58583
58584         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58585         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58586         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58587         just before including <inttypes.h>, to avoid circular inclusion.
58588
58589 2006-08-28  Jim Meyering  <jim@meyering.net>
58590
58591         * doc/visibility.texi: Actually read and correct the grammar of the
58592         sentence affected by yesterday's change.
58593
58594 2006-08-28  Eric Blake  <ebb9@byu.net>
58595
58596         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58597         needs wrapper.
58598
58599 2006-08-28  Eric Blake  <ebb9@byu.net>
58600
58601         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58602
58603 2006-08-28  Eric Blake  <ebb9@byu.net>
58604
58605         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58606
58607 2006-08-28  Bruno Haible  <bruno@clisp.org>
58608
58609         * modules/c-strstr: New file, from GNU gettext.
58610         * MODULES.html.sh (String handling): Add c-strstr.
58611
58612 2006-08-28  Bruno Haible  <bruno@clisp.org>
58613
58614         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58615         macros.
58616         Reported by Eric Blake.
58617
58618 2006-08-28  Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58621         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58622         * lib/vasprintf.c: Include errno.h, limits.h.
58623         (EOVERFLOW): New fallback definition.
58624         (vasprintf): Test here whether the string length is > INT_MAX.
58625         * lib/vsnprintf.c: Include errno.h, limits.h.
58626         (EOVERFLOW): New fallback definition.
58627         (vsnprintf): Fix bug when generated string was too long for the buffer.
58628         Test here whether the string length is > INT_MAX.
58629
58630 2006-08-28  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/inttypes_.h (SCNX*): Remove definitions.
58633         Reported by Eric Blake.
58634
58635 2006-08-28  Bruno Haible  <bruno@clisp.org>
58636
58637         * lib/c-strstr.h: New file, from GNU gettext.
58638         * lib/c-strstr.c: New file, from GNU gettext.
58639
58640 2006-08-28  Bruno Haible  <bruno@clisp.org>
58641
58642         * gnulib-tool: Reorder some statements.
58643
58644 2006-08-28  Bruno Haible  <bruno@clisp.org>
58645
58646         * gnulib-tool: New option --makefile-name.
58647         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58648         $makefile_name.
58649         (func_import): Write $makefile_name to the cache file, and read it from
58650         there unless explicitly specified. Use $makefile_name as file name
58651         instead of Makefile.am. Adjust the recommendations accordingly.
58652
58653 2006-08-28  Bruno Haible  <bruno@clisp.org>
58654
58655         * gnulib-tool (func_verify_module): Check against misapplying patch.
58656
58657 2006-08-28  Bruno Haible  <bruno@clisp.org>
58658
58659         * gnulib-tool (func_relativize, func_relconcat): New functions.
58660         Give an error if --local-dir is given with --update.
58661         Remove trailing slashes from $local_gnulib_dir.
58662         (func_import): Store the relativized $local_gnulib_dir in
58663         gnulib-cache.m4, and read it from there if not specified explicitly.
58664
58665 2006-08-28  Bruno Haible  <bruno@clisp.org>
58666
58667         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58668         is the current directory. Respect also $local_gnulib_dir.
58669
58670 2006-08-28  Bruno Haible  <bruno@clisp.org>
58671             Simon Josefsson  <jas@extundo.com>
58672
58673         BeOS portability.
58674         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58675
58676 2006-08-27  Jim Meyering  <jim@meyering.net>
58677
58678         * doc/visibility.texi: Remove duplicate word: "pointer".
58679
58680 2006-08-26  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58683         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58684         (Makefile.am): Create inttypes.h from inttypes_.h.
58685         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58686
58687         * modules/imaxabs: New file.
58688
58689         * modules/imaxdiv: New file.
58690
58691 2006-08-26  Bruno Haible  <bruno@clisp.org>
58692
58693         * m4/inttypes.m4: New file.
58694         * m4/_inttypes_h.m4: Remove file.
58695         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58696         PRI_MACROS_BROKEN.
58697         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58698
58699         * m4/imaxabs.m4: New file.
58700
58701         * m4/imaxdiv.m4: New file.
58702
58703 2006-08-26  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/inttypes_.h: New file.
58706         * lib/inttypes.h: Remove file.
58707         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58708
58709         * lib/imaxabs.c: New file.
58710
58711         * lib/imaxdiv.c: New file.
58712
58713 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         New config-h module, so that "make" output needn't be cluttered
58716         by -DHAVE_CONFIG_H.
58717         * MODULES.html.sh (Support for building libraries and executables):
58718         Add config-h.
58719         * modules/config-h: New file.
58720         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58721         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58722         the config-h module is used.
58723
58724         New configmake module, so that "make" output needn't be cluttered
58725         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58726         * MODULES.html.sh (Support for building libraries and executables):
58727         Add configmake.
58728         * modules/configmake: New file.
58729
58730 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * m4/config-h.m4: New file.
58733
58734 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * config/srclist.txt: Add elisp-comp.
58737
58738 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * MODULES.html.sh (Support for building libraries and executables):
58741         Add elisp-comp.
58742         * build-aux/elisp-comp: New file.
58743         * modules/elisp-comp: New file.
58744
58745 2006-08-24  Bruno Haible  <bruno@clisp.org>
58746
58747         * gnulib-tool (func_create_testdir): Use non-default values of
58748         sourcebase and m4base.
58749
58750 2006-08-24  Bruno Haible  <bruno@clisp.org>
58751
58752         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58753         HTML structure.
58754
58755 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * modules/openat (Depends-on): Add lchown.
58758
58759 2006-08-23  Bruno Haible  <bruno@clisp.org>
58760
58761         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58762         of gl_LOCK_EARLY instead of gl_LOCK.
58763
58764 2006-08-23  Bruno Haible  <bruno@clisp.org>
58765
58766         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58767         on OSF/1 to no.
58768         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58769
58770 2006-08-23  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58773         as unusable.
58774
58775         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58776         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58777         (gl_LOCK): New macro.
58778
58779 2006-08-22  Simon Josefsson  <jas@extundo.com>
58780
58781         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58782         to md5 module.
58783
58784 2006-08-22  Simon Josefsson  <jas@extundo.com>
58785
58786         * MODULES.html.sh: Add "Support for maintaining and release
58787         projects".
58788
58789         * build-aux/gnupload: New file, from coreutils.
58790
58791 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         Avoid the need for AC_LIBSOURCES in m4 macros.
58794         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58795         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58796         * modules/check-version (EXTRA_DIST): Add check-version.h.
58797         * modules/crc (EXTRA_DIST): Add crc.h.
58798         * modules/des (EXTRA_DIST): Add des.h.
58799         * modules/gc (EXTRA_DIST): Add gc.h.
58800         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58801         * modules/getline (EXTRA_DIST): Add getline.h.
58802         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58803         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58804         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58805         * modules/md2 (EXTRA_DIST): Add md2.h.
58806         * modules/md4 (EXTRA_DIST): Add md4.h.
58807         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58808         * modules/read-file (EXTRA_DIST): Add read-file.h.
58809         * modules/readline (EXTRA_DIST): Add readline.h.
58810         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58811         rijndael-api-fst.h.
58812
58813 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * m4/rijndael.m4 (gl_ARCFOUR):
58816         * m4/arctwo.m4 (gl_ARCTWO):
58817         * m4/check-version.m4 (gl_CHECK_VERSION):
58818         * m4/crc.m4 (gl_CRC):
58819         * m4/des.m4 (gl_DES):
58820         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58821         * m4/gc.m4 (gl_GC):
58822         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58823         * m4/getline.m4 (gl_FUNC_GETLINE):
58824         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58825         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58826         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58827         * m4/md2.m4 (gl_MD2):
58828         * m4/md4.m4 (gl_MD4):
58829         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58830         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58831         * m4/readline.m4 (gl_FUNC_READLINE):
58832         * m4/rijndael.m4 (gl_RIJNDAEL):
58833         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58834         to get the necessary .h files and whatnot.
58835
58836 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58839         gnulib rather than the other way around.
58840         * config/srclistvars.sh (COREUTILS): Remove.
58841
58842 2006-08-22  Jim Meyering  <jim@meyering.net>
58843
58844         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58845
58846         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58847
58848 2006-08-22  Eric Blake  <ebb9@byu.net>
58849
58850         * modules/regexprops-generic: New file.
58851         * MODULES.html.sh (Support for building documentation): List it.
58852
58853 2006-08-22  Eric Blake  <ebb9@byu.net>
58854
58855         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58856         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58858         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58859
58860 2006-08-22  Bruno Haible  <bruno@clisp.org>
58861
58862         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58863         and lib_LTLIBRARIES like the other lib_* variables.
58864
58865 2006-08-22  Bruno Haible  <bruno@clisp.org>
58866
58867         * build-aux/x-to-1.in: New file, from GNU gettext.
58868
58869 2006-08-22  Bruno Haible  <bruno@clisp.org>
58870
58871         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58872         <utmpx.h> exists.
58873
58874 2006-08-22  Bruno Haible  <bruno@clisp.org>
58875
58876         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58877         <utmpx.h> exists.
58878
58879 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         BeOS portability.
58882         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58883         exist.
58884         Problem reported by Bruno Haible.
58885
58886 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         Avoid the need for AC_LIBSOURCES in m4 macros.
58889         * modules/acl (EXTRA_DIST): Add acl.h.
58890         * modules/argmatch (Files): Add m4/argmatch.m4.
58891         (configure.ac): Add gl_ARGMATCH.
58892         (EXTRA_DIST): Renamed from lib_SOURCES, for
58893         consistency with the other modules.  Remove argmatch.c.
58894         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58895         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58896         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58897         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58898         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58899         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58900         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58901         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58902         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58903         * modules/closeout (EXTRA_DIST): Add closeout.h.
58904         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58905         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58906         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58907         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58908         dirname.h; remove basename.c and stripslash.c.
58909         * modules/exclude (EXTRA_DIST): Add exclude.h.
58910         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58911         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58912         * modules/file-type (EXTRA_DIST): Add file-type.h.
58913         * modules/filemode (EXTRA_DIST): Add filemode.h.
58914         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58915         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58916         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58917         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58918         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58919         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58920         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58921         * modules/getdate (EXTRA_DIST): Add getdate.c.
58922         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58923         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58924         * modules/getpass (EXTRA_DIST): Add getpass.h.
58925         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58926         * modules/group-member (EXTRA_DIST): Add group-member.h.
58927         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58928         * modules/hash (EXTRA_DIST): Add hash.h.
58929         * modules/human (EXTRA_DIST): Add human.h.
58930         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58931         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58932         * modules/lchown (EXTRA_DIST): Add lchown.h.
58933         * modules/long-options (EXTRA_DIST): Add long-options.h.
58934         * modules/lstat (EXTRA_DIST): Add lstat.h.
58935         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58936         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58937         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58938         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58939         * modules/memxor (EXTRA_DIST): Add memxor.h.
58940         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58941         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58942         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58943         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58944         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58945         * modules/physmem (EXTRA_DIST): Add physmem.h.
58946         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58947         * modules/posixver (EXTRA_DIST): Add posixver.h.
58948         * modules/quote (EXTRA_DIST): Add quote.h.
58949         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58950         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58951         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58952         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58953         regex_internal.h regexec.c.
58954         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58955         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58956         * modules/same (EXTRA_DIST): Add same.h.
58957         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58958         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58959         * modules/savedir (EXTRA_DIST): Add savedir.h.
58960         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58961         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58962         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58963         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58964         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58965         * modules/strdup (EXTRA_DIST): Add strdup.h.
58966         * modules/strftime (EXTRA_DIST): Add strftime.h.
58967         * modules/strndup (EXTRA_DIST): Add strndup.h.
58968         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58969         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58970         * modules/time_r (EXTRA_DIST): Add time_r.h.
58971         * modules/timespec (EXTRA_DIST): Add timespec.h.
58972         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58973         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58974         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58975         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58976         * modules/userspec (EXTRA_DIST): Add userspec.h.
58977         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58978         * modules/utimens (EXTRA_DIST): Add utimens.h.
58979         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58980         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58981         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58982         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58983         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58984         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58985         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58986         * modules/yesno (EXTRA_DIST): Add yesno.h.
58987
58988 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58991
58992         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58993         * m4/dev-ino.m4, same-inode.m4: Remove.
58994
58995         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58996         * m4/acl.m4 (AC_FUNC_ACL):
58997         * m4/backupfile.m4 (gl_BACKUPFILE):
58998         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58999         * m4/canon-host.m4 (gl_CANON_HOST):
59000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59002         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59003         * m4/cloexec.m4 (gl_CLOEXEC):
59004         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59005         * m4/closeout.m4 (gl_CLOSEOUT):
59006         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59007         * m4/dirname.m4 (gl_DIRNAME):
59008         * m4/exclude.m4 (gl_EXCLUDE):
59009         * m4/exitfail.m4 (gl_EXITFAIL):
59010         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59011         * m4/file-type.m4 (gl_FILE_TYPE):
59012         * m4/filemode.m4 (gl_FILEMODE):
59013         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59014         * m4/fpending.m4 (gl_FUNC_FPENDING):
59015         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59016         * m4/fts.m4 (gl_FUNC_FTS):
59017         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59018         * m4/getdate.m4 (gl_GETDATE):
59019         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59020         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59021         * m4/getpass.m4 (gl_FUNC_GETPASS):
59022         * m4/gettime.m4 (gl_GETTIME):
59023         * m4/getugroups.m4 (gl_GETUGROUPS):
59024         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59025         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59026         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59027         * m4/hash.m4 (gl_HASH):
59028         * m4/idcache.m4 (gl_IDCACHE):
59029         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59030         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59031         * m4/long-options.m4 (gl_LONG_OPTIONS):
59032         * m4/lstat.m4 (gl_FUNC_LSTAT):
59033         * m4/md5.m4 (gl_MD5):
59034         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59035         * m4/memcoll.m4 (gl_MEMCOLL):
59036         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59037         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59038         * m4/memxor.m4 (gl_MEMXOR):
59039         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59041         * m4/modechange.m4 (gl_MODECHANGE):
59042         * m4/mountlist.m4 (gl_MOUNTLIST):
59043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59044         * m4/openat.m4 (gl_FUNC_OPENAT):
59045         * m4/pathmax.m4 (gl_PATHMAX):
59046         * m4/physmem.m4 (gl_PHYSMEM):
59047         * m4/posixtm.m4 (gl_POSIXTM):
59048         * m4/posixver.m4 (gl_POSIXVER):
59049         * m4/quote.m4 (gl_QUOTE):
59050         * m4/quotearg.m4 (gl_QUOTEARG):
59051         * m4/readtokens.m4 (gl_READTOKENS):
59052         * m4/readutmp.m4 (gl_READUTMP):
59053         * m4/regex.m4 (gl_REGEX):
59054         * m4/safe-read.m4 (gl_SAFE_READ):
59055         * m4/safe-write.m4 (gl_SAFE_WRITE):
59056         * m4/same.m4 (gl_SAME):
59057         * m4/save-cwd.m4 (gl_SAVE_CWD):
59058         * m4/savedir.m4 (gl_SAVEDIR):
59059         * m4/settime.m4 (gl_SETTIME):
59060         * m4/sha1.m4 (gl_SHA1):
59061         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59062         * m4/stat-macros.m4 (gl_STAT_MACROS):
59063         * m4/stat-time.m4 (gl_STAT_TIME):
59064         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59065         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59066         * m4/strdup.m4 (gl_FUNC_STRDUP):
59067         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59068         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59069         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59070         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59071         * m4/time_r.m4 (gl_TIME_R):
59072         * m4/timespec.m4 (gl_TIMESPEC):
59073         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59074         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59075         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59076         * m4/userspec.m4 (gl_USERSPEC):
59077         * m4/utimecmp.m4 (gl_UTIMECMP):
59078         * m4/utimens.m4 (gl_UTIMENS):
59079         * m4/xalloc.m4 (gl_XALLOC):
59080         * m4/xgetcwd.m4 (gl_XGETCWD):
59081         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59082         * m4/xreadlink.m4 (gl_XREADLINK):
59083         * m4/xstrtod.m4 (gl_XSTRTOD):
59084         * m4/yesno.m4 (gl_YESNO):
59085         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59086         to get the necessary .h files and whatnot.
59087
59088 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59089             Bruno Haible  <bruno@clisp.org>
59090
59091         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59092         /bin/sh understanding of '!' conditional negation.
59093
59094 2006-08-21  Jim Meyering  <jim@meyering.net>
59095
59096         * modules/openat (Depends-on): Really alphabetize.
59097
59098         * modules/acl (Depends-on): Add error and quote.
59099
59100         * check-module (find_included_lib_files): Add at-func.c to the
59101         ok-to-include-more-than-once white list.
59102
59103         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59104
59105 2006-08-21  Bruno Haible  <bruno@clisp.org>
59106
59107         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59108         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59109         Reported by Martin Lambers <marlam@marlam.de>.
59110
59111 2006-08-21  Bruno Haible  <bruno@clisp.org>
59112
59113         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59114         specify an installation location, don't emit a noinst_LIBRARIES or
59115         noinst_LTLIBRARIES assignment.
59116
59117 2006-08-21  Bruno Haible  <bruno@clisp.org>
59118
59119         BeOS portability.
59120         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59121         BeOS has mbrtowc() but no <wctype.h>.
59122
59123 2006-08-21  Bruno Haible  <bruno@clisp.org>
59124
59125         BeOS portability.
59126         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59127         exist.
59128
59129 2006-08-21  Bruno Haible  <bruno@clisp.org>
59130
59131         BeOS portability.
59132         * lib/mbchar.h: Include <wctype.h> only if it exists.
59133
59134 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59135
59136         Remove files that are no longer needed by their respective modules.
59137         * m4/obstack.m4: Remove.
59138         * m4/strerror_r.m4: Remove.
59139         * m4/uint32_t.m4: Remove.
59140         * m4/uintptr_t.m4: Remove.
59141         * m4/ullong_max.m4: Remove.
59142         * m4/xstrtoimax.m4: Remove.
59143         * m4/xstrtoumax.m4: Remove.
59144
59145         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59146         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59147         dependencies now capture this.
59148
59149         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59150         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59151         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59152         * m4/human.m4 (gl_HUMAN): Likewise.
59153         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59154         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59155
59156         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59157
59158         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59159         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59160         stdint.
59161         * m4/human.m4 (gl_HUMAN): Likewise.
59162         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59163         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59164         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59165         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59166         * m4/xstrtol (gl_XSTRTOL): Likewise.
59167
59168         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59169         AC_TYPE_LONG_LONG_INT.
59170         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59171         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59172         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59173         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59174
59175         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59176         on stdbool.
59177
59178         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59179         (gl_PREREQ_XSTRTOUL): Remove.
59180
59181         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59182
59183         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59184         mode.
59185
59186 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         Add and change modules to make it easier for coreutils to use
59189         gnulib-tool.
59190         * modules/backupfile (Files): Remove m4/d-ino.m4.
59191         (Depends-on): Add d-ino.
59192         * modules/cycle-check (Depends-on): Add stdint.
59193         (lib_SOURCES): Add cycle-check.h.
59194         * modules/d-ino: New module.
59195         * modules/d-type: New module.
59196         * modules/error (Files): Remove m4/strerror_r.m4.
59197         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59198         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59199         m4/inttypes_h.m4, m4/uintmax_t.m4.
59200         (Depends-on): Add stdint.
59201         (lib_SOURCES): Add fsusage.h.
59202         * modules/getcwd (Files): Remove d-ino.m4.
59203         (Depends-on): Add d-ino.
59204         * modules/getndelim2 (Depends-on): Add stdint.
59205         * modules/glob (Files): Remove m4/d-type.m4.
59206         (Depends-on): Add d-type.
59207         * modules/host-os: New module.
59208         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59209         m4/inttypes_h.m4, m4/uintmax_t.m4.
59210         * Depends-on: Add stdint.
59211         (lib_SOURCES): Add human.h.
59212         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59213         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59214         m4/uintmax_t.m4, m4/ulonglong.m4.
59215         (Depends-on): Add stdint.
59216         (EXTRA_DIST): Add inttostr.h.
59217         * modules/lchmod: New module.
59218         * modules/link-follow: New module.
59219         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59220         (Depends-on): Add lchmod.
59221         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59222         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59223         (Depends-on): Add stdint.
59224         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59225         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59226         (Depends-on): Add stdint.
59227         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59228         * modules/perl: New module.
59229         * modules/regex (Depends-on): Add stdint.
59230         * modules/rmdir-errno: New module.
59231         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59232         m4/intmax_t.m4.
59233         (Depends-on): Add stdint.
59234         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59235         m4/uintmax_t.m4.
59236         (Depends-on): Add stdint.
59237         * modules/unlink-busy: New module.
59238         * modules/utimecmp (Depends-on): Add stdint.
59239         * modules/uptime: New module.
59240         * modules/winsz-ioctl: New module.
59241         * modules/winsz-termios: New module.
59242         * modules/xnanosleep (Depends-on): Add nanosleep.
59243         * modules/ullong_max: Remove.
59244         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59245         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59246         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59247         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59248         (Depends-on): Add inttypes.
59249         (lib_SOURCES): Add xstrtol.h.
59250         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59251         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59252         * MODULES.html.sh: Move 'assert' into the assert section.
59253         Move 'dummy' into the linking section.
59254         Remove ullong_max.
59255         Add section for compatibility checks for POSIX:2001 functions,
59256         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59257         winsz-ioctl, and winsz-termios into it.
59258         Add lchmod.
59259         Add top-level Misc section and put host-os, perl, and uptime
59260         into it.
59261
59262 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59265         now assume the stdint module.  Do not include inttypes.h.
59266         * lib/fsusage.h: Likewise.
59267         * lib/getndelim2.c: Likewise.
59268         * lib/human.h: Likewise.
59269         * lib/inttostr.h: Likewise.
59270         * lib/obstack.c: Likewise.
59271         * lib/regex_internal.h: Likewise.
59272         * lib/tempname.c: Likewise.
59273         * lib/utimecmp.c: Likewise.
59274         * lib/xstrtol.h: Likewise.
59275
59276         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59277
59278         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59279         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59280         * lib/xtime.h: Likewise.
59281
59282 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59283
59284         * modules/openat (Files): Add lib/fchmodat.c.
59285         Fixes problem reported by Jay Youngman.
59286
59287 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59290         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59291
59292 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59293             Bruno Haible  <bruno@clisp.org>
59294
59295         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59296         and is a script that invokes bison. Tighten the code. Add comments.
59297
59298 2006-08-18  Jim Meyering  <jim@meyering.net>
59299
59300         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59301         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59302         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59303         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59304
59305 2006-08-18  Bruno Haible  <bruno@clisp.org>
59306
59307         * modules/bison-i18n: New file.
59308         * MODULES.html.sh (Internationalization functions): Add it.
59309
59310 2006-08-18  Bruno Haible  <bruno@clisp.org>
59311
59312         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59313         sys/statvfs.h. When getmntinfo was found, check its declaration and
59314         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59315
59316 2006-08-18  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/bison-i18n.m4: New file, from bison.
59319
59320 2006-08-18  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59323         (ME_DUMMY): Treat "kernfs" as a dummy.
59324         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59325
59326 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         Update from coreutils.
59329
59330         2006-08-15  Jim Meyering  <jim@meyering.net>
59331
59332         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59333
59334         2006-01-17  Jim Meyering  <jim@meyering.net>
59335
59336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59337
59338         2006-01-11  Jim Meyering  <jim@meyering.net>
59339
59340         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59341         Check for the lchmod function.
59342
59343 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         Update from coreutils.
59346
59347         * lib/__fpending.h: Add copyright notice.
59348         * lib/fprintftime.h: Likewise.
59349         * lib/savedir.c: Use (C) in copyright notice.
59350         * lib/savedir.h: Likewise.
59351
59352         2006-08-15  Jim Meyering  <jim@meyering.net>
59353
59354         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59355         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59356         in support of the EXPECTED_ERRNO macro.
59357         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59358         definitions.  Instead, define the appropriate symbols and include
59359         "at-func.c".
59360         * lib/mkdirat.c (mkdirat): Likewise.
59361         * lib/fchmodat.c (fchmodat): Likewise.
59362         (ENOSYS): Remove definition.
59363         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59364         it.  Don't include "unistd--.h" -- it wasn't ever used.
59365
59366         2006-01-17  Jim Meyering  <jim@meyering.net>
59367
59368         Rewrite fts.c not to change the current working directory,
59369         by using openat, fstatat, fdopendir, etc..
59370
59371         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59372         (HAVE_OPENAT_SUPPORT): Define.
59373         [_LIBC] (fchdir): Don't undef or define; no longer used.
59374         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59375         Now, this `function' always succeeds, and consumes its file descriptor
59376         parameter -- so callers must not close such FDs.  Update callers.
59377         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59378         (diropen): Add parameter, SP.  Adjust all callers.
59379         Implement using diropen_fd, rather than open.
59380         (fts_open): Initialize new member, fts_cwd_fd.
59381         Remove fts_rft-setting code.
59382         (fts_close): Close fts_cwd_fd, if necessary.
59383         (__opendir2): Define in terms of opendir or opendirat,
59384         depending on whether the FST_NOCHDIR flag is set.
59385         (fts_build): Since fts_safe_changedir consumes its FD, and since
59386         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59387         and close the dup'd file descriptor upon failure.
59388         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59389         (fts_safe_changedir): Tweak semantics to reflect that this function
59390         now calls cwd_advance_fd and hence consumes its FD argument.
59391         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59392         [struct FTS] (fts_rft): Remove now-unused member.
59393         [struct FTS] (fts_cycle.state): Improve comment.
59394
59395         * lib/openat.c (openat_needs_fchdir): New function.
59396         * lib/openat.h (openat_needs_fchdir): Declare it.
59397
59398 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59401         Problem and fix reported by Pádraig Brady in
59402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59403
59404 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59407
59408 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * lib/memcoll.c (memcoll): Optimize for the common case where the
59411         arguments are bytewise equal.
59412
59413 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         * doc/regexprops-generic.texi: Add a copyright notice.
59416
59417 2006-08-15  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/tmpdir (License): Change to LGPL.
59420
59421 2006-08-15  Bruno Haible  <bruno@clisp.org>
59422
59423         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59424         module.
59425
59426 2006-08-14  Simon Josefsson  <jas@extundo.com>
59427
59428         * config/srclist.txt: Add gnupload.
59429
59430 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         Change copyright notice from LGPL 2 to GPL 2, since that's the
59433         standard form used in the gnulib repository.
59434         * tests/test-lock.c: Likewise.
59435         * tests/test-stdint.c: Likewise.
59436         * tests/test-tls.c: Likewise.
59437
59438         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59439         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59440         Add copyright notice.
59441
59442         * check-module: Add copyright notice.  Output a copyright
59443         notice if "--version" is specified.
59444         * modules/COPYING: New file.
59445         * tests/test-getaddrinfo.c: Add copyright notice.
59446         * tests/test-verify.c: Likewise.
59447
59448 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         Change copyright notice from LGPL 2 to GPL 2, since that's the
59451         standard form used in the gnulib repository.
59452         * lib/lock.c: LGPL -> GPL.
59453         * lib/lock.h: Likewise.
59454         * lib/strnlen1.c: Likewise.
59455         * lib/strnlen1.h: Likewise.
59456         * lib/tls.c: Likewise.
59457         * lib/tls.h: Likewise.
59458         * lib/tmpdir.c: Likewise.
59459
59460         * lib/TODO: Remove; this belongs only in coreutils.
59461
59462 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         Add copyright notices to long-enough files that lack them, since
59465         otherwise the files aren't clearly free.  Use the same notice that
59466         getdate.texi already uses.
59467         * doc/alloca-opt.texi: Add copyright notice.
59468         * doc/alloca.texi: Likewise.
59469         * doc/ctime.texi: Likewise.
59470         * doc/functions.texi: Likewise.
59471         * doc/gcd.texi: Likewise.
59472         * doc/gnulib-tool.texi: Likewise.
59473         * doc/inet_ntoa.texi: Likewise.
59474         * doc/visibility.texi: Likewise.
59475
59476         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59477         * doc/quote.texi: Add copyright notice.
59478
59479         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59480         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59481         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59482         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59483         is now obsolete, and give a pointer to the Sun list.
59484         Add copyright notice.
59485
59486 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * config/srclistvars.sh: Add copyright notice.
59489
59490 2006-08-14  Eric Blake  <ebb9@byu.net>
59491
59492         Import the following change from libc:
59493
59494         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59495
59496         Upstream bug 2997.
59497         * lib/misc/error.c: Add space between program name and message if file
59498         name is missing.
59499
59500 2006-08-12  Karl Berry  <karl@gnu.org>
59501
59502         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59503         remove, these originate in gnulib now.
59504
59505 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506
59507         * doc/Makefile (standards.info standards.html standards.dvi):
59508         Also depend on make-stds.texi.
59509
59510 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59513         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59514
59515         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59516         in wchar_t.  Problem reported by Eric Blake.
59517
59518         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59519         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59520         Also, help the compiler to keep LEN in a register.
59521
59522 2006-08-11  Eric Blake  <ebb9@byu.net>
59523
59524         * users.txt: Sort.  Add tar.
59525
59526 2006-08-11  Bruno Haible  <bruno@clisp.org>
59527
59528         * users.txt: New file.
59529
59530 2006-08-11  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59533         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59534
59535 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * modules/snprintf (Depends-on): Remove minmax.
59538         (Maintainer): Add self and Bruno.
59539
59540 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59543         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59544         (EOVERFLOW): Define if the system does not.
59545         Do not include "minmax.h"; it wasn't used.
59546         (snprintf): Don't assume size_t promotes to an unsigned type.
59547         Fix bug when generated string was too long for the buffer: the
59548         buffer's contents are supposed to be the initial prefix of the
59549         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59550         exceeds INT_MAX; do the check ourselves.
59551
59552         Import the following changes from libc:
59553
59554         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59555
59556         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59557         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59558         set wc to the byte which couldn't be converted.
59559         (re_string_reconstruct): Don't clear valid_raw_len before calling
59560         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59561         tip_context using re_string_context_at.
59562
59563         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59564
59565         * lib/posix/regex.h: g++ still cannot handled [restrict].
59566
59567         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59568
59569         * lib/posix/regex.h: Remove special handling for VMS.
59570
59571 2006-08-10  Jim Meyering  <jim@meyering.net>
59572
59573         * modules/same-inode: New module.
59574         * modules/dev-ino: New module.
59575         * modules/cycle-check: Depend on these modules, rather than simply
59576         including their .h files.
59577         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59578         required via m4/cycle-check.m4.
59579         * modules/same: Depend on new same-inode module, rather than
59580         including same-inode.h.
59581         * modules/chdir-safer: New file.
59582
59583         * modules/chown (Depends-on): Add stat-macros.
59584
59585 2006-08-10  Jim Meyering  <jim@meyering.net>
59586
59587         * m4/cycle-check.m4: New file.
59588         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59589         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59590
59591 2006-08-10  Eric Blake  <ebb9@byu.net>
59592
59593         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59594         in from original proposal.
59595
59596 2006-08-10  Eric Blake  <ebb9@byu.net>
59597         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59598
59599         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59600         namespace.
59601
59602 2006-08-10  Bruno Haible  <bruno@clisp.org>
59603
59604         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59605         as well.
59606
59607 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         Sync from coreutils.
59610
59611         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59612
59613         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59614         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59615
59616 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * modules/restrict: Remove; no longer needed now that we assume
59619         Autoconf 2.59 or later.
59620         * MODULES.html.sh: Remove 'restrict'.
59621         * modules/argp (Depends-on): Remove 'restrict'.
59622         * modules/base64 (Depends-on): Likewise.
59623         * modules/gc (Depends-on): Likewise.
59624         * modules/getaddrinfo (Depends-on): Likewise.
59625         * modules/glob (Depends-on): Likewise.
59626         * modules/inet_ntop (Depends-on): Likewise.
59627         * modules/inet_pton (Depends-on): Likewise.
59628         * modules/memxor (Depends-on): Likewise.
59629         * modules/regex (Depends-on): Likewise.
59630         * modules/strtok_r (Depends-on): Likewise.
59631         * modules/time_r (Depends-on): Likewise.
59632
59633 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59636         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59637         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59638         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59639         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59640         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59641         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59642         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59643
59644         Merge from coreutils.
59645         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59646         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59647         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59648         * m4/time_r.m4 (gl_TIME_R): Likewise.
59649
59650 2006-08-09  Karl Berry  <karl@gnu.org>
59651
59652         * config/srclist.txt: no more gettext-tools, per Bruno.
59653
59654 2006-08-08  Eric Blake  <ebb9@byu.net>
59655
59656         * modules/verror: New module.
59657         * MODULES.html.sh: Document it.
59658
59659 2006-08-08  Eric Blake  <ebb9@byu.net>
59660
59661         * lib/verror.h, lib/verror.c: New files.
59662
59663 2006-08-08  Eric Blake  <ebb9@byu.net>
59664
59665         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59666         verror_at_line output complies with GNU Coding Standards even when
59667         file is NULL.
59668
59669 2006-08-07  Bruno Haible  <bruno@clisp.org>
59670
59671         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59672         versions of AIX.
59673         Reported by Ralf Wildenhues.
59674
59675 2006-08-07  Bruno Haible  <bruno@clisp.org>
59676
59677         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59678         in an AC_DEFUN. Needed so that the autoconf snippets can use
59679         AC_REQUIRE.
59680
59681 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59682
59683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59684         Initialize pkgdata_DATA.
59685         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59686         overriding it.
59687
59688 2006-08-06  Eric Blake  <ebb9@byu.net>
59689
59690         * lib/error.h: Fold in some upstream changes from glibc.
59691         * lib/error.c: Likewise.
59692
59693 2006-08-04  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59696         Make the mostlyclean-local rule depend on mostlyclean-generic.
59697         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59698
59699 2006-07-31  Bruno Haible  <bruno@clisp.org>
59700
59701         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59702         <stdlib.h>, <string.h>.
59703
59704 2006-07-30  Bruno Haible  <bruno@clisp.org>
59705
59706         * modules/readlink (License): Change to LGPL.
59707
59708 2006-07-30  Bruno Haible  <bruno@clisp.org>
59709
59710         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59711         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59712         set PKGDATADIR to point to it.
59713
59714 2006-07-30  Bruno Haible  <bruno@clisp.org>
59715
59716         * modules/csharpexec (configure.ac): Comment out macro invocation.
59717         * modules/javaexec (configure.ac): Likewise.
59718         * modules/javacomp-script (configure.ac): Likewise.
59719
59720         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59721
59722 2006-07-30  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59725         linked-list.
59726
59727 2006-07-30  Bruno Haible  <bruno@clisp.org>
59728
59729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59730
59731 2006-07-30  Bruno Haible  <bruno@clisp.org>
59732
59733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59734         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59735         get removed.
59736
59737 2006-07-29  Bruno Haible  <bruno@clisp.org>
59738
59739         Make it possible for gnulib-tool to work with locally modified or
59740         augmented gnulib repositories.
59741         * gnulib-tool (func_usage): Document --local-dir option.
59742         (local_gnulib_dir): New variable.
59743         Handle --local-dir option.
59744         (func_lookup_file): New function.
59745         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59746         (func_get_description, func_get_filelist, func_get_description,
59747         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59748         func_get_automake_snippet, func_get_include_directive,
59749         func_get_license, func_get_maintainer): Use func_lookup_file.
59750         (func_import, func_create_testdir): Use func_lookup_file.
59751
59752 2006-07-29  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/setenv (Depends-on): Add unistd.
59755
59756 2006-07-29  Bruno Haible  <bruno@clisp.org>
59757
59758         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59759
59760 2006-07-29  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59763
59764 2006-07-29  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool (import, update): If there is no Makefile.am, look at
59767         aclocal.m4, instead of bailing out.
59768
59769 2006-07-29  Bruno Haible  <bruno@clisp.org>
59770
59771         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59772         Categorize the options by when they are useful.
59773
59774 2006-07-29  Bruno Haible  <bruno@clisp.org>
59775
59776         * gnulib-tool (func_usage): Document option --no-libtool.
59777         Handle option --no-libtool.
59778         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59779         for changed semantics of $libtool variable.
59780         (func_import): Likewise. If libtool is not used, show this through
59781         an option --no-libtool.
59782         (func_create_testdir): Update.
59783
59784 2006-07-29  Bruno Haible  <bruno@clisp.org>
59785
59786         * gnulib-tool (func_import): Extend error message about missing
59787         --doc-base.
59788
59789 2006-07-29  Bruno Haible  <bruno@clisp.org>
59790
59791         * gnulib-tool (func_import): Don't create the $docbase directory if
59792         there is no file to store there.
59793
59794 2006-07-29  Bruno Haible  <bruno@clisp.org>
59795
59796         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59797         relevant, look for configure.ac there, not in the current directory.
59798         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59799
59800 2006-07-29  Bruno Haible  <bruno@clisp.org>
59801
59802         * gnulib-tool (SORT): New variable.
59803         (func_usage): Undocument --assume-autoconf option.
59804         Remove --assume-autoconf option handling.
59805         (autoconf_minversion): Determine from the contents of configure.ac.
59806         (func_import): Remove autoconf_minversion handling.
59807         Suggested by Eric Blake.
59808
59809 2006-07-29  Bruno Haible  <bruno@clisp.org>
59810
59811         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59812
59813 2006-07-29  Bruno Haible  <bruno@clisp.org>
59814
59815         * config/srclist.txt (*setenv.[ch]): Remove rules.
59816
59817 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59818
59819         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59820
59821 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59822
59823         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59824         arpa/inet.h.
59825
59826 2006-07-28  Simon Josefsson  <jas@extundo.com>
59827
59828         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59829         * modules/inet_pton (Depends-on): Likewise.
59830
59831 2006-07-28  Simon Josefsson  <jas@extundo.com>
59832
59833         * m4/netinet_in_h.m4: New file.
59834
59835 2006-07-28  Simon Josefsson  <jas@extundo.com>
59836
59837         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59838         #include's.
59839
59840 2006-07-28  Simon Josefsson  <jas@extundo.com>
59841
59842         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59843         #include's.
59844
59845 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59848         setgid on directories only if they set these bits.
59849         * lib/modechange.h: Remove obsolete comment about masks.
59850
59851 2006-07-28  Eric Blake  <ebb9@byu.net>
59852
59853         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59854         macro expansion.
59855
59856 2006-07-28  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59859
59860 2006-07-28  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59863
59864 2006-07-28  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59867         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59868         Define fallbacks.
59869         Avoids link error on FreeBSD 4.x.
59870         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59871
59872         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59873         encoding.
59874         * lib/mbswidth.c (iswcntrl): Likewise.
59875
59876 2006-07-27  Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59879         test.
59880
59881 2006-07-27  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59884         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59885         defined.
59886
59887 2006-07-26  Eric Blake  <ebb9@byu.net>
59888
59889         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59890
59891 2006-07-26  Eric Blake  <ebb9@byu.net>
59892
59893         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59894         like mingw that lack mkstemp.
59895         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59896         avoid compilation warning on mingw.
59897
59898 2006-07-26  Bruno Haible  <bruno@clisp.org>
59899
59900         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59901         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59902         INT_FAST*_MIN, INTPTR_MIN.
59903
59904 2006-07-25  Bruno Haible  <bruno@clisp.org>
59905
59906         * modules/version-etc (Depends-on): Add stdarg.
59907
59908 2006-07-25  Bruno Haible  <bruno@clisp.org>
59909
59910         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59911         complex commands.
59912
59913 2006-07-25  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59916         defined in <stdarg.h> or config.h.
59917
59918 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59921         (gl_STDIO_SAFER): Remove.
59922
59923 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         * MODULES.html.sh (File stream based Input/Output):
59926         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59927         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59928         * modules/fopen-safer, modules/tmpfile-safer: New files.
59929         * modules/stdio-safer: Remove.
59930
59931 2006-07-24  Bruno Haible  <bruno@clisp.org>
59932
59933         * modules/tmpdir: New file.
59934         * MODULES.html.sh (File system functions): Add it.
59935
59936 2006-07-24  Bruno Haible  <bruno@clisp.org>
59937
59938         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59939         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59940
59941 2006-07-24  Bruno Haible  <bruno@clisp.org>
59942
59943         * modules/clean-temp: New file.
59944
59945 2006-07-24  Bruno Haible  <bruno@clisp.org>
59946
59947         * m4/tmpdir.m4: New file, from GNU gettext.
59948
59949 2006-07-24  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/tmpdir.h: New file, from GNU gettext.
59952         * lib/tmpdir.c: New file, from GNU gettext.
59953
59954 2006-07-24  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/clean-temp.h: New file, from GNU gettext.
59957         * lib/clean-temp.c: New file, from GNU gettext.
59958
59959 2006-07-23  Eric Blake  <ebb9@byu.net>
59960
59961         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59962         (Depends-on): Add binary-io.
59963
59964 2006-07-23  Eric Blake  <ebb9@byu.net>
59965
59966         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59967
59968 2006-07-23  Eric Blake  <ebb9@byu.net>
59969
59970         * lib/tmpfile-safer.c: New file.
59971         * lib/stdio-safer.h (fopen_safer): Add prototype.
59972         * lib/stdio--.h (tmpfile): Make safer.
59973
59974 2006-07-23  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59977         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59978         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59979         gl_linked_remove_at): Use it.
59980
59981 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59982         and Simon Josefsson <jas@extundo.com>
59983
59984         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59985
59986         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59987
59988 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * modules/close-stream: New file.
59991         * modules/closeout (Description): Make it clear that it exits
59992         with a diagnostic on error.
59993         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59994         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59995
59996 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59997
59998         * m4/close-stream.m4: New file.
59999
60000 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * lib/close-stream.c, lib/close-stream.h: New files.
60003
60004 2006-07-22  Bruno Haible  <bruno@clisp.org>
60005
60006         Merge from GNU gettext 0.15.
60007
60008         2006-05-01  Bruno Haible  <bruno@clisp.org>
60009
60010                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60011
60012         2006-07-22  Bruno Haible  <bruno@clisp.org>
60013
60014                 * modules/javaversion: New file.
60015                 * MODULES.html.sh (Java): Add javaversion.
60016
60017         2006-03-12  Bruno Haible  <bruno@clisp.org>
60018
60019                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60020
60021         2005-12-04  Bruno Haible  <bruno@clisp.org>
60022
60023                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60024                 (untested).
60025
60026         2006-06-21  Bruno Haible  <bruno@clisp.org>
60027
60028                 Avoid warnings from recent versions of mcs.
60029                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60030                 -o, -L, -r any more. Use options documented since mcs-1.0
60031                 instead. Similarly for -g.
60032
60033         2005-12-04  Bruno Haible  <bruno@clisp.org>
60034
60035                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60036                 .resources, not .resource.
60037
60038         2005-07-09  Bruno Haible  <bruno@clisp.org>
60039
60040                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60041                 add a .dll suffix.
60042                 Reported by Mark Junker <mjscod@gmx.de>.
60043
60044         2006-07-22  Bruno Haible  <bruno@clisp.org>
60045
60046                 * modules/gettext: Upgrade to gettext-0.15.
60047                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60048                 m4/visibility.m4.
60049                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60050
60051 2006-07-22  Bruno Haible  <bruno@clisp.org>
60052
60053         Merge from GNU gettext 0.15.
60054
60055         2006-03-25  Bruno Haible  <bruno@clisp.org>
60056
60057                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60058
60059         2006-07-21  Bruno Haible  <bruno@clisp.org>
60060
60061                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60062                 "1.1".
60063
60064         2006-05-09  Bruno Haible  <bruno@clisp.org>
60065
60066                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60067                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60068                 for the conftestver execution.
60069
60070         2006-05-01  Bruno Haible  <bruno@clisp.org>
60071
60072                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60073                 optional target-version argument. Verify that the compiler
60074                 groks source of the specified source-version, or add -source
60075                 option as necessary. Verify that the compiler produces
60076                 bytecode in the specified target-version, or add -target and
60077                 -source options as necessary. Make the result of the test
60078                 available as variable CONF_JAVAC. Also log error output in
60079                 config.log.
60080
60081         2006-03-11  Bruno Haible  <bruno@clisp.org>
60082
60083                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60084
60085         2006-05-09  Bruno Haible  <bruno@clisp.org>
60086
60087                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60088                 CLASSPATH_SEPARATOR to a semicolon.
60089
60090         2006-03-12  Bruno Haible  <bruno@clisp.org>
60091
60092                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60093                 available as variable CONF_JAVA, for subsequent autoconf
60094                 tests. Also log error output in config.log.
60095
60096         2006-07-19  Bruno Haible  <bruno@clisp.org>
60097
60098                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60099                 that getline works on glibc2 systems. Needed to avoid trouble
60100                 in relocatable.c.
60101                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60102
60103         2005-12-04  Bruno Haible  <bruno@clisp.org>
60104
60105                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60106                 launcher (untested).
60107
60108         2005-12-04  Bruno Haible  <bruno@clisp.org>
60109
60110                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60111
60112         2006-07-22  Bruno Haible  <bruno@clisp.org>
60113
60114                 * gettext.m4: Update from GNU gettext-0.15.
60115                 * nls.m4: Likewise.
60116                 * po.m4: Likewise.
60117                 * inttypes-pri.m4: Likewise.
60118                 * inttypes-h.m4: Renamed from inttypes.m4.
60119                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60120
60121 2006-07-22  Bruno Haible  <bruno@clisp.org>
60122
60123         Merge from GNU gettext 0.15.
60124
60125         2005-07-05  Bruno Haible  <bruno@clisp.org>
60126
60127                 * printf-args.c (printf_fetchargs): Work around broken
60128                 definition of wint_t on mingw.
60129
60130         2005-02-12  Bruno Haible  <bruno@clisp.org>
60131
60132                 * xallocsa.h: Add extern "C" for C++.
60133
60134         2006-05-17  Bruno Haible  <bruno@clisp.org>
60135
60136                 Cygwin portability.
60137                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60138
60139         2006-04-30  Bruno Haible  <bruno@clisp.org>
60140
60141                 * progreloc.c: Include <mach-o/dyld.h> if available.
60142                 (find_executable): Use _NSGetExecutablePath when possible.
60143
60144         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60145
60146                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60147                 function.
60148
60149         2005-12-29  Bruno Haible  <bruno@clisp.org>
60150
60151                 * progreloc.c (set_program_name_and_installdir): Fix
60152                 compilation error.
60153
60154         2005-12-04  Bruno Haible  <bruno@clisp.org>
60155
60156                 Cygwin portability.
60157                 * progreloc.c: Include <windows.h> also on Cygwin.
60158                 (find_executable): Add support for Cygwin.
60159                 (set_program_name_and_installdir): Handle also platforms with
60160                 nonempty EXEEXT.
60161
60162         2006-07-11  Bruno Haible  <bruno@clisp.org>
60163
60164                 * javacomp.c: Fix a comment.
60165                 Reported by Jim Meyering.
60166
60167         2006-04-30  Bruno Haible  <bruno@clisp.org>
60168
60169                 * javacomp.h (compile_java_class): Add source_version,
60170                 target_version arguments.
60171                 * javacomp.c: Rewritten to choose only a compiler that
60172                 respects the specified source_version and target_version.
60173
60174         2006-06-27  Bruno Haible  <bruno@clisp.org>
60175
60176                 Assume correct S_ISDIR macro.
60177                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60178
60179         2006-07-22  Bruno Haible  <bruno@clisp.org>
60180
60181                 * javaversion.h: New file, from GNU gettext.
60182                 * javaversion.c: New file, from GNU gettext.
60183                 * javaversion.java: New file, from GNU gettext.
60184                 * javaversion.class: New file, from GNU gettext.
60185
60186         2006-05-17  Bruno Haible  <bruno@clisp.org>
60187
60188                 Cygwin portability.
60189                 * javaexec.c (execute_java_class): Test for jview program
60190                 also on Cygwin.
60191
60192         2006-04-09  Bruno Haible  <bruno@clisp.org>
60193
60194                 * fatal-signal.c: Don't include string.h.
60195                 (at_fatal_signal): Use a copying loop instead of memcpy.
60196
60197         2005-12-04  Bruno Haible  <bruno@clisp.org>
60198
60199                 * csharpexec.c: Add support for 'clix' launcher (untested).
60200                 (execute_csharp_using_sscli): New function.
60201                 (execute_csharp_program): Call it.
60202
60203         2006-06-21  Bruno Haible  <bruno@clisp.org>
60204
60205                 Avoid warnings from recent versions of mcs.
60206                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60207                 -o, -L, -r any more. Use options documented since mcs-1.0
60208                 instead. Similarly for -g.
60209
60210         2005-07-09  Bruno Haible  <bruno@clisp.org>
60211
60212                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60213                 add a .dll suffix.
60214                 Reported by Mark Junker <mjscod@gmx.de>.
60215
60216         2006-06-17  Bruno Haible  <bruno@clisp.org>
60217
60218                 * config.charset: Update for NetBSD 3.0.
60219
60220         2006-05-17  Bruno Haible  <bruno@clisp.org>
60221
60222                 Cygwin portability.
60223                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60224
60225         2006-05-16  Bruno Haible  <bruno@clisp.org>
60226
60227                 * localcharset.c [CYGWIN]: Include <windows.h>.
60228                 (get_charset_aliases): For Cygwin, return the same CPxxx
60229                 aliases list as under WIN32.
60230                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60231                 the environment variables. Fall back to GetACP().
60232
60233         2006-04-05  Bruno Haible  <bruno@clisp.org>
60234
60235                 * config.charset: Update Juan Manuel Guerrero's address.
60236
60237         2005-02-12  Bruno Haible  <bruno@clisp.org>
60238
60239                 * allocsa.h: Add extern "C" for C++.
60240
60241         2005-02-10  Bruno Haible  <bruno@clisp.org>
60242
60243                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60244                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60245
60246         2006-07-22  Bruno Haible  <bruno@clisp.org>
60247
60248                 * gettext.h: Update to GNU gettext-0.15.
60249
60250 2006-07-22  Bruno Haible  <bruno@clisp.org>
60251
60252         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60253         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60254         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60255
60256 2006-07-21  Eric Blake  <ebb9@byu.net>
60257
60258         * modules/stdlib-safer: New file.
60259         * MODULES.html.sh (File stream based Input/Output): Add
60260         stdlib-safer.
60261
60262 2006-07-21  Eric Blake  <ebb9@byu.net>
60263
60264         * lib/stdlib-safer.h: New file from coreutils, required by
60265         stdlib--.h.
60266
60267 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60270
60271 2006-07-20  Bruno Haible  <bruno@clisp.org>
60272
60273         * gnulib-tool: Recognize new option --assume-autoconf.
60274         (autoconf_minversion): New variable.
60275         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60276
60277 2006-07-20  Bruno Haible  <bruno@clisp.org>
60278
60279         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60280
60281 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60282
60283         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60284         Reindent and repaginate.
60285
60286 2006-07-19  Derek Price  <derek@ximbiot.com>
60287
60288         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60289         Correct grammar.
60290
60291 2006-07-17  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/list: New file.
60294         * modules/array-list: New file.
60295         * modules/carray-list, modules/carray-list-tests: New files.
60296         * modules/linked-list, modules/linked-list-tests: New files.
60297         * modules/avltree-list, modules/avltree-list-tests: New files.
60298         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60299         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60300         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60301         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60302         * modules/oset: New file.
60303         * modules/array-oset: New file.
60304         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60305         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60306         * tests/test-carray_list.c: New file.
60307         * tests/test-linked_list.c: New file.
60308         * tests/test-avltree_list.c: New file.
60309         * tests/test-rbtree_list.c: New file.
60310         * tests/test-linkedhash_list.c: New file.
60311         * tests/test-avltreehash_list.c: New file.
60312         * tests/test-rbtreehash_list.c: New file.
60313         * tests/test-avltree_oset.c: New file.
60314         * tests/test-rbtree_oset.c: New file.
60315         * MODULES.html.sh (Container data structures): New section.
60316
60317 2006-07-17  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/gl_list.m4: New file.
60320
60321 2006-07-17  Bruno Haible  <bruno@clisp.org>
60322
60323         * lib/gl_list.h: New file.
60324         * lib/gl_list.c: New file.
60325         * lib/gl_array_list.h: New file.
60326         * lib/gl_array_list.c: New file.
60327         * lib/gl_carray_list.h: New file.
60328         * lib/gl_carray_list.c: New file.
60329         * lib/gl_linked_list.h: New file.
60330         * lib/gl_linked_list.c: New file.
60331         * lib/gl_anylinked_list1.h: New file.
60332         * lib/gl_anylinked_list2.h: New file.
60333         * lib/gl_avltree_list.h: New file.
60334         * lib/gl_avltree_list.c: New file.
60335         * lib/gl_anyavltree_list1.h: New file.
60336         * lib/gl_anyavltree_list2.h: New file.
60337         * lib/gl_rbtree_list.h: New file.
60338         * lib/gl_rbtree_list.c: New file.
60339         * lib/gl_anyrbtree_list1.h: New file.
60340         * lib/gl_anyrbtree_list2.h: New file.
60341         * lib/gl_anytree_list1.h: New file.
60342         * lib/gl_anytree_list2.h: New file.
60343         * lib/gl_linkedhash_list.h: New file.
60344         * lib/gl_linkedhash_list.c: New file.
60345         * lib/gl_anyhash_list1.h: New file.
60346         * lib/gl_anyhash_list2.h: New file.
60347         * lib/gl_avltreehash_list.h: New file.
60348         * lib/gl_avltreehash_list.c: New file.
60349         * lib/gl_rbtreehash_list.h: New file.
60350         * lib/gl_rbtreehash_list.c: New file.
60351         * lib/gl_anytreehash_list1.h: New file.
60352         * lib/gl_anytreehash_list2.h: New file.
60353
60354         * lib/gl_oset.h: New file.
60355         * lib/gl_oset.c: New file.
60356         * lib/gl_array_oset.h: New file.
60357         * lib/gl_array_oset.c: New file.
60358         * lib/gl_avltree_oset.h: New file.
60359         * lib/gl_avltree_oset.c: New file.
60360         * lib/gl_rbtree_oset.h: New file.
60361         * lib/gl_rbtree_oset.c: New file.
60362         * lib/gl_anytree_oset.h: New file.
60363
60364 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * m4/mkancesdirs.m4: New file.
60367         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60368         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60369         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60370         it.
60371
60372 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60373
60374         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60375         * lib/mkancesdirs.h: New files.
60376         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60377         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60378         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60379         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60380         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60381         callers changed.  Revamp internals significantly, by not
60382         attempting to create directories that are temporarily more
60383         permissive than the final results.  Do not attempt to use
60384         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60385         This removes some race conditions, fixes some bugs, and simplifies
60386         things.  Use new dirchownmod function to do owner and mode changes.
60387         * lib/mkdir-p.h: Likewise.
60388         * lib/modechange.c (octal_to_mode): New function.
60389         (struct mode_change): New member mentioned.
60390         (make_node_op_equals): New arg mentioned.  All callers changed.
60391         (mode_compile): Keep track of which mode bits the user has explicitly
60392         mentioned.
60393         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60394         New arg PMODE_BITS, to keep track of which mode bits the user
60395         mentioned; it treats S_ISUID and S_ISGID speciall.
60396         All callers changed.
60397         * lib/modechange.h: Likewise.
60398
60399 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60400
60401         * MODULES.html.sh: Add mkancestors.
60402         * modules/mkancesdirs: New module.
60403         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60404         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60405         The chdir-safer and afs files are now orphans; I'll remove them
60406         unless someone speaks up.
60407         Add lib/dirchownmod.c, lib/dirchownmod.h.
60408         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60409         Add lchown, mkancesdirs.
60410         (Maintainer): Add self.
60411
60412 2006-07-15  Karl Berry  <karl@gnu.org>
60413
60414         * gnulib-tool: help message wording/arrangement.
60415
60416 2006-07-14  Simon Josefsson  <jas@extundo.com>
60417
60418         * doc/gnulib.texi (Libtool and Windows): New section.
60419
60420 2006-07-12  Simon Josefsson  <jas@extundo.com>
60421
60422         * modules/gendocs (License): Fix license, approved by Karl.
60423
60424 2006-07-12  Eric Blake  <ebb9@byu.net>
60425
60426         * MODULES.html.sh: Add gendocs.
60427
60428 2006-07-11  Eric Blake  <ebb9@byu.net>
60429
60430         * modules/fdl: New module, to install doc/fdl.texi.
60431         * MODULES.html.sh: Add new section for documentation modules.
60432         * gnulib-tool: Avoid space-tab.
60433         (--doc-base): New option, to manage files from doc.
60434
60435 2006-07-11  Eric Blake  <ebb9@byu.net>
60436
60437         * m4/absolute-header.m4: Fix comments to match recent change.
60438
60439 2006-07-11  Eric Blake  <ebb9@byu.net>
60440
60441         * gnulib-tool: List --doc-base before --tests-base.
60442
60443 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60444
60445         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60446
60447 2006-07-11  Bruno Haible  <bruno@clisp.org>
60448
60449         * README: Mention where to put documentation.
60450
60451 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60452
60453         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60454
60455 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60458         to stdint.m4.
60459
60460 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60463         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60464         "no/such/file/stdint.h" when there is no such file, so that
60465         the resulting C code can be parsed by dodgy compilers.
60466         Problems reported by Bob Proulx.
60467
60468 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60469
60470         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60471         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60472         macros into the GNU _D_EXACT_NAMLEN.
60473         * lib/savedir.c:  Likewise.
60474         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60475
60476 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60477         and Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60480         * m4/savedir.m4:
60481         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60482         macros into the GNU _D_EXACT_NAMLEN.
60483
60484 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60487         around the absolute name, to work around a problem with the HP-UX
60488         11.23 native C compiler, reported by Bob Proulx.
60489
60490 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60491
60492         * doc/maintain.texi, make-stds.texi: Sync from
60493         <http://savannah.gnu.org/projects/gnustandards>.
60494
60495 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60496
60497         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60498
60499 2006-07-09  Jim Meyering  <jim@meyering.net>
60500
60501         * m4/glob.m4: Remove a doubled word in a comment.
60502
60503 2006-07-09  Jim Meyering  <jim@meyering.net>
60504
60505         * lib/argp-pv.c: Remove a doubled word in a comment.
60506         * lib/check-version.c (check_version): Likewise.
60507         * lib/javacomp.c (compile_java_class): Likewise.
60508
60509 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60512         for the benefit of people using Autoconf 2.60.  If you want to
60513         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60514         (or m4/onceonly.m4, if pre-2.57) manually.
60515
60516 2006-07-08  Jim Meyering  <jim@meyering.net>
60517
60518         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60519         comment.
60520         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60521         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60522         comment.
60523
60524 2006-07-08  Jim Meyering  <jim@meyering.net>
60525
60526         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60527
60528 2006-07-07  Simon Josefsson  <jas@extundo.com>
60529
60530         * tests/test-crc.c: Change expected crc value, the test vector
60531         were probably computed using the old broken crc.c?
60532
60533 2006-07-06  Simon Josefsson  <jas@extundo.com>
60534
60535         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60536         now the canonical place for the M4 file).
60537
60538         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60539         from the sys_socket dependency now.
60540
60541         * modules/inet_pton (Files): Ditto.
60542
60543         * modules/inet_ntop (Files): Ditto.
60544
60545 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60546
60547         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60548         not gl_PREREQ_GETUSERSHELL.
60549
60550 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60551
60552         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60553         with only one argument, for Autoconf 2.60.
60554         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60555         expand to nothing, so add a shell command to avoid syntax error.
60556         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60557
60558 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60559
60560         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60561
60562 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60565         no longer needed.  Check for isblank decl.
60566         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60567         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60568         of existence.
60569
60570 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60571
60572         * lib/getloadavg.c: Use __VMS, not VMS.
60573         * lib/getopt.c: Likewise.
60574         * lib/getpagesize.h: Likewise.
60575         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60576         and probably does not work.
60577
60578 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60579
60580         * lib/.cppi-disable: Add wcwidth.
60581         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60582         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60583         (ISGRAPH): Remove.  All uses changed to isgraph.
60584         (FOLD) [!defined _LIBC]: Remove special case.
60585         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60586         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60587         HAVE_ISBLANK.
60588         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60589         case.
60590
60591 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60592
60593         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60594         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60595         brackets.  Other minor changes to suppress some compiler
60596         warnings.
60597
60598 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60599         and Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60602         of invoking obsolescent AC_HEADER_DIRENT macro.
60603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60604         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60605         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60607         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60608         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60609         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60610         * m4/readdir.m4: Remove; no longer needed.
60611
60612 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60613         and Paul Eggert  <eggert@cs.ucla.edu>
60614
60615         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60616         Don't worry about this obsolete case any more.
60617         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60618         directories.
60619         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60620         worry about this obsolete case any more.
60621         * lib/fts.c: Likewise.
60622         * lib/getcwd.c: Likewise.
60623         * lib/glob.h: Likewise.
60624         * lib/savedir.c: Likewise.
60625
60626 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60629         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60630         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60631         needed.
60632         All uses removed.
60633         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60634         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60635         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60636         needed.
60637         * m4/getdate.m4 (gl_GETDATE): Likewise.
60638         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60639         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60640         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60641         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60642         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60643         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60644         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60645         needed.
60646
60647 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * lib/memcasecmp.c: Include <limits.h>.
60650         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60651         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60652         Don't assume isdigit succeeds only on '0' through '9'.
60653
60654 2006-07-05  Eric Blake  <ebb9@byu.net>
60655
60656         * modules/getaddrinfo (Depends-on): Add snprintf.
60657
60658 2006-07-05  Eric Blake  <ebb9@byu.net>
60659
60660         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60661         to avoid 'header present but could not be compiled' on cygwin.
60662
60663 2006-07-05  Eric Blake  <ebb9@byu.net>
60664
60665         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60666         missing from netdb.h.
60667         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60668
60669 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60670
60671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60672         no longer needed.
60673         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60674         * m4/getdate.m4 (gl_GETDATE): Likewise.
60675         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60676         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60677         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60678         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60679         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60680
60681 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60682
60683         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60684         All uses of is_space replaced by isspace.
60685         * lib/exit.h: Don't talk about STDC_HEADERS.
60686         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60687         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60688         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60689         replaced by isprint etc.
60690         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60691         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60692         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60693         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60694         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60695         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60696
60697 2006-07-05  Bruno Haible  <bruno@clisp.org>
60698
60699         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60700         the function exists, before testing against AIX.
60701         Reported by Martin Lambers <marlam@marlam.de>.
60702
60703 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60704
60705         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60706         From Mark D. Baushke.
60707
60708 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60709
60710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60711         to the absolute name, not just one, to bypass Sun C 5.8's
60712         "warning: #include of /usr/include/... may be non-portable".
60713
60714 2006-07-04  Eric Blake  <ebb9@byu.net>
60715
60716         * modules/dirname-tests: New test module.
60717         * tests/test-dirname.c: New file, replacing dirname.c
60718         TEST_DIRNAME section that was recently deleted.
60719
60720 2006-07-04  Bruno Haible  <bruno@clisp.org>
60721
60722         Assume ANSI C header files and <ctype.h> functions.
60723         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60724         (mbsnwidth): Use isprint, iscntrl instead.
60725
60726 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         Merge from coreutils.
60729         * MODULES.html.sh: Add xstrtold.
60730         * modules/xstrtold: New file.
60731         * modules/cycle-check (Files): Add lib/same-inode.h.
60732         * modules/dirname (Files): Add m4/double-slash-root.m4.
60733         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60734         * modules/mkdir-p (Files): Add lib/same-inode.h.
60735         * modules/same (Files): Add lib/same-inode.h.
60736
60737 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60740         This is to keep the terminology clean; POSIX talks about
60741         "absolute pathnames", not "full pathnames", but the GNU
60742         Coding Standards say to use "path" for something else;
60743         so use "absolute" to keep both sides happy.
60744         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60745         Set gl_absolute_header, not gl_full_header_path.
60746         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60747         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60748         All uses changed.
60749
60750         Merge from coreutils.
60751
60752         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60753
60754         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60755         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60756         want to require the building of c-strtod.o.
60757         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60758         needs -lm directly.
60759         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60760
60761         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60764         --as-needed option if available.  Problem reported by Albert Chin in
60765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60766         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60767         cc merely issues a bunch of annoying warnings for --as-needed
60768         (this problem was reported by Bob Proulx).  Also, try linking with
60769         -lm to detect a bug in binutils 2.16 (this problem was reported
60770         by Ralf Wildenhues).
60771
60772         2006-06-18  Jim Meyering  <jim@meyering.net>
60773
60774         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60775         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60776         macro.
60777         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60778         also check for glibc-2.4's abort-inducing bug.
60779
60780         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60781         Low-probability clean-up should be to use rmdir to get rid of
60782         the just-created directory, not unlink.
60783
60784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60785         configure fail, and request a bug report to inform us about it.
60786         Add a comment that, barring reports to the contrary, in 2007 we'll
60787         assume ftruncate is universally available.
60788
60789         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60790
60791         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60792
60793         2006-03-12  Jim Meyering  <jim@meyering.net>
60794
60795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60796         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60797         * m4/same.m4 (gl_SAME): Likewise.
60798         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60799
60800         2006-03-11  Eric Blake  <ebb9@byu.net>
60801
60802         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60803         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60804         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60805         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60806
60807 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60808
60809         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60810         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60811         reported by Mark D. Baushke, one in
60812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60813
60814         Merge from coreutils.
60815
60816         * lib/.cppi-disable: Add stdint_.h.
60817         * lib/.cvsignore: Add stdint.h.
60818
60819         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60820
60821         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60822         both double and long double versions.
60823         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60824         * lib/xstrtold.c: New file.
60825         * lib/xstrtod.h (xstrtold): New decl.
60826
60827         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * lib/filemode.c (setst): Remove.
60830         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60831         (arguably) clearer, and the generated code is a bit smaller on my
60832         Debian GNU/Linux stable x86 host.
60833
60834         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60835
60836         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60837         Assume that filemode.h includes sys/types.h and sys/stat.h.
60838         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60839         (ftypelet): Reorder to put common cases first, for efficiency.
60840         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60841         to do 'M'.
60842         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60843         of 10, for compatibility with FreeBSD.  All callers changed.
60844         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60845         types that can't be deduced solely from st_mode.  First arg is now a
60846         const pointer.
60847         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60848         (strmode): Renamed from mode_string.
60849         (filemodestring): New decl.
60850         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60851         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60852         needed.
60853         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60854
60855         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60858         fsusage.h now does that.  Include fsusage.h first, to test interface.
60859         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60860         at most one method (the old code could have generated decls that
60861         didn't conform to C89, not that this was ever exercised).
60862         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60863
60864         2006-03-19  Jim Meyering  <jim@meyering.net>
60865
60866         Work even in a chroot where d_ino values for entries in "/"
60867         don't match the stat.st_ino values for the same names.
60868         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60869         number, iterate through all entries again, using lstat instead.
60870         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60871         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60872
60873         * lib/getcwd.c (__getcwd): Clarify a comment.
60874         Use memcpy in place of a call to strcpy.
60875
60876         2006-03-12  Jim Meyering  <jim@meyering.net>
60877
60878         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60879         matches that of the current directory (which we're about to chdir ".."
60880         out of), then save the dev-ino of the parent, instead.
60881
60882         * lib/same-inode.h (SAME_INODE): New file/macro.
60883         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60884         Include "same-inode.h", instead.
60885         * lib/same.c: Likewise.
60886         * lib/cycle-check.h: Include "same-inode.h".
60887         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60888         * lib/cycle-check.c (SAME_INODE): Remove definition.
60889         * lib/root-dev-ino.h: Include "same-inode.h".
60890
60891         2006-03-11  Eric Blake  <ebb9@byu.net>
60892
60893         * lib/same.c (same_name): s/base_name/last_component/
60894         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60895         * lib/filenamecat.c (file_name_concat): Likewise.
60896
60897         2006-03-11  Eric Blake  <ebb9@byu.net>,
60898                     Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60901         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60902         drive prefix.
60903         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60904         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60905         (last_component): New method.
60906         * lib/dirname.c (dir_len): Determine when drive letters need a
60907         subsequent slash.  Preserve // when it is special.
60908         (dir_name): Don't append dot when drive letter is absolute.
60909         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60910         * lib/basename.c (base_name): New semantics - malloc the result.
60911         Preserve // when it is special.  Preserve relative files that look
60912         like drive letters.
60913         (base_len): Preserve // when it is special.
60914         (last_component): New method, similar to old base_name semantics.
60915         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60916         base_name.  Strip redundant slashes from ///.
60917
60918 2006-07-03  Jim Meyering  <jim@meyering.net>
60919
60920         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60921         macro is used before the first cycle_check call.
60922
60923 2006-07-03  Eric Blake  <ebb9@byu.net>
60924
60925         * modules/dirname (Depends-on): Add xstrndup.
60926
60927 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60930         test cases, so that config.log is a bit easier to follow.
60931
60932 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60935         both are 64 bits, since this seems to be the tradition, and this
60936         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60937         we ever run into a host that prefers long long to long in this
60938         case, we'll need another configure-time test.  Problem reported by
60939         Jim Meyering.
60940
60941 2006-07-02  Eric Blake  <ebb9@byu.net>
60942
60943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60944
60945 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60946
60947         * modules/inttypes (Depends-on): No longer depends on stdint.
60948         * modules/stdint (Description): Say more about assumptions.
60949         Say that the fast types might differ.  Say macros are used.
60950         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60951         (Makefile.am): Revise list of substituted symbols to match
60952         new stdint.m4.
60953         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60954         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60955         * tests/test-stdint.c (verify_same_types)
60956         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60957         the code conforms to C99/C89.
60958         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60959         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60960
60961 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60962
60963         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60964         but fix a bug, by requiring at least 64 bits.
60965         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60966         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60967         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60968         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60969
60970         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60971         changes.  Make 2.59 a prerequisite.  Check and substitute for
60972         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60973         inttypes.h.  Do not use special include files; just use the
60974         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60975         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60976         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60977         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60978         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60979         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60980         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60981         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60982         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60983         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60984         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60985         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60986         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60987         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60988         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60989         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60990         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60991         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60992         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60993         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60994         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60995         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60996         not check for things that C99 does not require, e.g., int8_t.  If
60997         a test isn't needed unless <stdint.h> isn't working, and is
60998         unlikely to be needed for any other reason, then don't do it
60999         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61000         size_t, since we assume C89 freestanding at least.  Do not check
61001         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61002         the right thing even if the types are not defined.  Instead use:
61003         (gl_STDINT_TYPE_PROPERTIES): New macro.
61004         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61005         testing whether <sys/types.h> clashes, as Autoconf does this for
61006         us now.  All uses removed.
61007         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61008         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61009         (gl_CHECK_TYPE_SAME):
61010         Remove; no longer needed.
61011         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61012         exists, since we'll return 0 anyway in that case.
61013         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61014
61015 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61018         possible collision with system files.
61019         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61020         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61021         WCHAR_MIN and WCHAR_MAX in this case.
61022         (<stddef.h>): Do not include; no longer needed.
61023         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61024         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61025         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61026         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61027         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61028         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61029         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61030         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61031         !defined(__c99))]: Include in this case too, since it's harmless
61032         now.
61033         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61034         dangerous to do so.
61035         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61036         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61037         (_STDINT_MIN, _STDINT_MAX): New macros.
61038         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61039         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61040         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61041         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61042         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61043         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61044         macros, not typedefs; this simplifies things quite a bit.
61045         Use long int for all types narrower than int64_t.
61046         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61047         Define in terms of long long int or int64_t or long int,
61048         not int64_t or int32_t.  This saves some compile-time testing.
61049         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61050         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61051         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61052         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61053         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61054         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61055         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61056         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61057         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61058         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61059         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61060         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61061         undef any previous version and define our own version, for
61062         simplicity and consistency with the new macros for types.
61063         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61064         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61065         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61066         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61067         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61068         @WINT_T_SUFFIX@ to keep things simple here.
61069         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61070         Simplify by assuming typical 8/16/32/64 host, since we're
61071         already doing that elsewhere anyway.
61072         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61073         and assume long long int is 64 bits if available.  This
61074         speeds up 'configure'.
61075
61076 2006-07-01  Eric Blake  <ebb9@byu.net>
61077
61078         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61079         Reported by Andreas Buening.
61080
61081 2006-07-01  Eric Blake  <ebb9@byu.net>
61082
61083         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61084
61085 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61086
61087         * lib/getaddrinfo.c: fixed typo
61088
61089 2006-06-29  Jim Meyering  <jim@meyering.net>
61090
61091         * modules/strftime (Maintainer): Add my name, since with the
61092         FPRINTFTIME changes strftime.c has forked from glibc.
61093
61094 2006-06-29  Eric Blake  <ebb9@byu.net>
61095
61096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61097
61098 2006-06-29  Eric Blake  <ebb9@byu.net>
61099
61100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61101
61102 2006-06-29  Eric Blake  <ebb9@byu.net>
61103
61104         * lib/stat_.h: New file.
61105
61106 2006-06-29  Eric Blake  <ebb9@byu.net>
61107
61108         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61109         unused static function.
61110
61111 2006-06-29  Eric Blake  <ebb9@byu.net>
61112
61113         * doc/functions.texi (Function Portability): Document missing lstat
61114         on mingw.
61115
61116 2006-06-29  Eric Blake  <ebb9@byu.net>
61117
61118         * MODULES.html.sh: Add sys_stat.
61119         * modules/sys_stat: New module.
61120         * modules/mkstemp (Depends-on): Add sys_stat.
61121
61122 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61123
61124         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61125
61126 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61127
61128         * m4/c-bs-a.m4: Removed.
61129
61130 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61131
61132         * lib/strftime.c: Assume strftime() exists.
61133
61134 2006-06-29  Derek Price  <derek@ximbiot.com>
61135
61136         * modules/c-bs-a: Removed - \a is C89.
61137         * MODULES.html.sh: Remove c-bs-a.
61138
61139 2006-06-29  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/wcwidth (License): Change to LGPL.
61142
61143 2006-06-28  Simon Josefsson  <jas@extundo.com>
61144
61145         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61146         on _WIN32.
61147
61148         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61149         getnameinfo.
61150
61151 2006-06-28  Simon Josefsson  <jas@extundo.com>
61152
61153         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61154
61155 2006-06-28  Simon Josefsson  <jas@extundo.com>
61156
61157         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61158         functions there.  It will succeed on Windows XP, but on Windows
61159         2000 and (presumably) earlier, it will fail, and use the internal
61160         re-implementation.
61161         (use_win32_p): New function.
61162         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61163         Support AI_NUMERICSERV to disable getservbyname.
61164         (getnameinfo): New function, only supports
61165         NI_NUMERICHOST|NI_NUMERICSERV for now.
61166
61167         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61168         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61169         getnameinfo.
61170
61171 2006-06-28  Eric Blake  <ebb9@byu.net>
61172
61173         * modules/wcwidth: New file.
61174         * modules/mbchar (Depends-on): Add wcwidth.
61175         * modules/mbswidth (Depends-on): Add wcwidth.
61176         * MODULES.html.sh: Add wcwidth.
61177
61178 2006-06-28  Eric Blake  <ebb9@byu.net>
61179
61180         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61182
61183 2006-06-28  Eric Blake  <ebb9@byu.net>
61184
61185         * lib/xvasprintf.h: Fix comments.
61186
61187 2006-06-28  Eric Blake  <ebb9@byu.net>
61188
61189         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61190         * lib/mbswidth.c (wcwidth): Move from here...
61191         * lib/wcwidth.h: ...to this new file.
61192
61193 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61194
61195         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61196
61197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61198         it's obsolete.
61199         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61200
61201 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61202
61203         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61204         Autoconf 2.60 says this stuff was obsolete.
61205
61206 2006-06-28  Bruno Haible  <bruno@clisp.org>
61207
61208         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61209
61210 2006-06-28  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61213         gt_TYPE_WCHAR_T.
61214
61215 2006-06-28  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61218         declaration for wcwidth.
61219         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61220
61221 2006-06-28  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61224         (mkdir): Define using _mkdir.
61225
61226 2006-06-28  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/getaddrinfo.h: Fix POSIX URL.
61229         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61230         _WIN32.
61231         (use_win32_p): Make static.
61232         (getaddrinfo): Reject service name if it is empty or does not consist
61233         solely of decimal digits, or if its value is > 65535.
61234         (getnameinfo): Remove useless casts.
61235
61236 2006-06-27  Simon Josefsson  <jas@extundo.com>
61237
61238         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61239         Eggert and Martin Lambers.
61240
61241 2006-06-27  Simon Josefsson  <jas@extundo.com>
61242
61243         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61244         Eggert and Martin Lambers.
61245
61246 2006-06-27  Bruno Haible  <bruno@clisp.org>
61247
61248         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61249         result to 0, not to empty.
61250         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61251
61252 2006-06-27  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61255
61256 2006-06-26  Simon Josefsson  <jas@extundo.com>
61257
61258         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61259         present.
61260
61261 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61262
61263         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61264         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61266
61267 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61268
61269         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61270
61271 2006-06-26  Bruno Haible  <bruno@clisp.org>
61272
61273         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61274
61275 2006-06-26  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61278
61279 2006-06-26  Bruno Haible  <bruno@clisp.org>
61280
61281         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61282         SGI C compiler in pre-C99 mode.
61283         Suggested by Mark D. Baushke and Larry Jones.
61284
61285 2006-06-26  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61288         WCHAR_MAX.
61289         Reported by Mark D. Baushke and Larry Jones.
61290
61291 2006-06-26  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61294         in pre-C99 mode.
61295         Suggested by Mark D. Baushke and Larry Jones.
61296
61297 2006-06-23  Simon Josefsson  <jas@extundo.com>
61298             Bruno Haible  <bruno@clisp.org>
61299
61300         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61301         Emit mostlyclean-local rule.
61302         (func_emit_tests_Makefile_am): Likewise.
61303         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61304
61305 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61306
61307         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61308
61309 2006-06-23  Bruno Haible  <bruno@clisp.org>
61310
61311         * tests/test-stdint.c: Update to match ISO C 99 Technical
61312         Corrigendum 1.
61313
61314 2006-06-23  Bruno Haible  <bruno@clisp.org>
61315
61316         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61317
61318 2006-06-23  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/stdint_.h: Treat IRIX like OpenBSD.
61321
61322 2006-06-23  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61325         ISO C 99 Technical Corrigendum 1.
61326
61327 2006-06-22  Simon Josefsson  <jas@extundo.com>
61328
61329         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61330         MinGW.
61331
61332 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61335         needed.  Some compiler complained about some of them.  Problem reported
61336         by Larry Jones in
61337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61338
61339 2006-06-21  Simon Josefsson  <jas@extundo.com>
61340
61341         * tests/test-getaddrinfo.c: New file.
61342
61343         * modules/getaddrinfo-tests: New file.
61344
61345         * MODULES.html.sh: Add inet_pton.
61346
61347         * modules/inet_pton: New file.
61348
61349 2006-06-21  Simon Josefsson  <jas@extundo.com>
61350
61351         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61352         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61353         of using the (limited) gnulib implementation on Windows XP.
61354
61355         * m4/inet_pton.m4: New file.
61356
61357 2006-06-21  Simon Josefsson  <jas@extundo.com>
61358
61359         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61360         variable.
61361
61362         * lib/socket_.h: Don't define WINVER.
61363
61364         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61365         slightly modified to work in gnulib.
61366
61367 2006-06-21  Simon Josefsson  <jas@extundo.com>
61368
61369         * doc/gnulib.texi (Windows sockets): Add.
61370
61371 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * lib/read-file.c (fread_file): Start with buffer allocation of
61374         0 bytes rather than 1 byte; this simplifies the code.
61375         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61376         code to free buffer and save/restore errno.
61377         (internal_read_file): Remove unused local.
61378
61379 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61382         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61383         Problem reported by Denis Excoffier in
61384         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61385
61386 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61387
61388         * modules/sys_socket, modules/socklen: Include sys/types since
61389         FreeBSD 4.x's sys/socket.h needs it.
61390
61391 2006-06-19  Simon Josefsson  <jas@extundo.com>
61392
61393         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61394
61395 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61396
61397         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61398
61399 2006-06-19  Bruno Haible  <bruno@clisp.org>
61400
61401         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61402         and FULL_PATH_INTTYPES_H in angle brackets.
61403         Reported by Mark D. Baushke <mdb@gnu.org>.
61404
61405 2006-06-17  Eric Blake  <ebb9@byu.net>
61406
61407         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61408         errno.
61409
61410 2006-06-17  Bruno Haible  <bruno@clisp.org>
61411
61412         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61413         <sys/inttypes.h>.
61414
61415 2006-06-17  Bruno Haible  <bruno@clisp.org>
61416
61417         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61418         whether errno is declared. Assume <errno.h> declares errno.
61419
61420 2006-06-17  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61423
61424 2006-06-17  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61427         problem on Solaris 2.5.1.
61428
61429 2006-06-16  Eric Blake  <ebb9@byu.net>
61430
61431         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61432         * lib/unicodeio.c [!defined errno]: Likewise.
61433         * lib/strtol.c [!defined errno]: Likewise.
61434         * lib/strtod.c [!defined errno]: Likewise.
61435
61436 2006-06-15  Eric Blake  <ebb9@byu.net>
61437
61438         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61439
61440 2006-06-15  Eric Blake  <ebb9@byu.net>
61441
61442         * config/srclist.txt (ssize_t.m4): Lose sync.
61443
61444 2006-06-15  Bruno Haible  <bruno@clisp.org>
61445
61446         * modules/stdint (Files): Include m4/full-header-path.m4,
61447         m4/size_max.m4, m4/wchar_t.m4.
61448         (Makefile.am): Many more substitutions.
61449         * modules/stdint-tests: New file.
61450         * tests/test-stdint.c: New file.
61451
61452 2006-06-15  Bruno Haible  <bruno@clisp.org>
61453
61454         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61455         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61456         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61457         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61458         gl_CHECK_TYPE_SAME): New macros.
61459
61460 2006-06-15  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61463
61464 2006-06-15  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/stdint_.h: Rewritten to be fully auto-configured.
61467         Fixes bug on HP-UX/IA64.
61468
61469 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61470
61471         * lib/getdate.y (__attribute__): Don't define if already defined.
61472         Problem reported by Larry Jones.
61473         * lib/utimens.c (__attribute__): Likewise.
61474
61475 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61478         reported by Andreas Schwab.
61479
61480 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61481             Bruno Haible  <bruno@clisp.org>
61482
61483         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61484         check for the declaration of strnlen and a run test that exposes the
61485         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61486         rpl_strndup.
61487
61488 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61489             Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61492
61493 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61494
61495         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61496         compile test, for Tru64 4.0D.
61497
61498 2006-05-28  Karl Berry  <karl@gnu.org>
61499
61500         * config/srclist.txt (printf-args.c): lose sync.
61501
61502 2006-05-26  Martin Lambers  <marlam@marlam.de>
61503
61504         * lib/getpass.c: Updates the test for the native W32 API, and adds
61505         missing includes, thus fixing compilation warnings.
61506
61507 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61508
61509         * lib/exclude.c (exclude_fnmatch): New function.
61510         (excluded_file_name): Call exclude_fnmatch.
61511         * lib/exclude.h (excluded_file_name): New prototype
61512
61513 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61514
61515         * lib/tempname.c (small_open, large_open): New macros.
61516         (__open, __open64) [!_LIBC]: Remove.
61517         (__gen_tempname): Use small_open and large_open instead of __open
61518         and __open64.  This fixes a portability bug on HP-UX 11.11i
61519         reported by Simon Wing-Tang in
61520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61521
61522 2006-05-24  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61525         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61526         Reported by Thorsten Maerz <torte@netztorte.de> via
61527         Aaron Stone <aaron@serendipity.cx>.
61528
61529 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61532         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61533         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61534         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61535         not really conditional on the cache.
61536         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61537
61538 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61539
61540         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61541         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61542         (my_usleep): Don't mishandle maximum value.
61543
61544 2006-05-19  Jim Meyering  <jim@meyering.net>
61545
61546         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61547
61548 2006-05-17  Bruno Haible  <bruno@clisp.org>
61549
61550         Cygwin portability.
61551         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61552
61553 2006-05-17  Bruno Haible  <bruno@clisp.org>
61554
61555         * lib/stdint_.h: Fix recognition of Cygwin.
61556
61557 2006-05-15  Bruno Haible  <bruno@clisp.org>
61558
61559         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61560         on libtool patch by Ralf Wildenhues.
61561
61562 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61565         test for C99 conformance; (bool) 0.5 is an integer constant
61566         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61567         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61568
61569 2006-05-11  Simon Josefsson  <jas@extundo.com>
61570
61571         * m4/xvasprintf.m4: Fix obvious typo.
61572
61573 2006-05-11  Jim Meyering  <jim@meyering.net>
61574
61575         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61576         James Lemley.
61577
61578 2006-05-10  Simon Josefsson  <jas@extundo.com>
61579
61580         * lib/md4.c: Typo fix, update copyright years.
61581         (K1, K2): Don't use L because it turn computations into 64-bit on
61582         64-bit platforms.
61583
61584 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61587         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61588         unwanted sign propagation, e.g., on hosts with 64-bit int.
61589         There still are some problems with reeelly weird theoretical hosts
61590         (e.g., 33-bit int) but it's not worth worrying about now.
61591         * lib/sha1.c (rol): Likewise.
61592         (K1, K2, K3, K4): Remove unnecessary L suffix.
61593
61594 2006-05-10  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/des.c: Cast to avoid warnings.
61597
61598 2006-05-09  Bruno Haible  <bruno@clisp.org>
61599
61600         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61601         (Depends-on): Depend also on xsize, stdarg.
61602         (configure.ac): Add gl_XVASPRINTF.
61603
61604 2006-05-09  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/xvasprintf.m4: New file.
61607
61608 2006-05-09  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61611         (EOVERFLOW): Define fallback value.
61612         (xstrcat): New function.
61613         (xvasprintf): Recognize the special case of a string concatenation.
61614
61615 2006-05-08  Eric Blake  <ebb9@byu.net>
61616
61617         * gnulib-tool (func_version): Base copyright year on CVS date.
61618         (func_emit_copyright_notice): New function.
61619         (func_emit_lib_Makefile_am): Use it.
61620         (func_emit_tests_Makefile_am): Likewise.
61621         (func_import): Likewise.
61622
61623 2006-05-08  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/stdarg: New file.
61626         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61627
61628 2006-05-08  Bruno Haible  <bruno@clisp.org>
61629
61630         * m4/stdarg.m4: New file, from GNU gettext.
61631
61632 2006-05-08  Bruno Haible  <bruno@clisp.org>
61633
61634         * config/srclist.txt (build-aux/config.rpath): different from latest
61635         release.
61636
61637 2006-05-08  Bruno Haible  <bruno@clisp.org>
61638
61639         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61640
61641 2006-05-05  Jim Meyering  <jim@meyering.net>
61642
61643         * m4/warning.m4: New file, derived from bison's file by the same name.
61644
61645 2006-05-03  Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/stdint_.h: Shorter URL.
61648         * lib/inttypes.h: Likewise.
61649
61650 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61653
61654 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * lib/verify.h: Document the internals better.  Most of this change
61657         was written by Bruno Haible.
61658
61659 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61660
61661         * doc/verify.texi: New file, partly based on a proposal by
61662         Bruno Haible.
61663
61664 2006-05-02  Bruno Haible  <bruno@clisp.org>
61665
61666         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61667         test from here...
61668         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61669
61670 2006-04-29  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61673         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61674
61675 2006-04-29  Bruno Haible  <bruno@clisp.org>
61676
61677         * gnulib-tool: Make --update option actually work.
61678
61679 2006-04-29  Bruno Haible  <bruno@clisp.org>
61680
61681         * doc/gcd.texi: New file.
61682         * doc/gnulib.texi: Include it.
61683
61684 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61685
61686         * lib/getdate.y (get_date): When adding relative date, start with the
61687         initial time, not with the result of the first mktime call.
61688
61689 2006-04-25  Bruno Haible  <bruno@clisp.org>
61690
61691         * gnulib-tool (func_import): Output the include directives in three
61692         blocks, sorted separately.
61693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61694
61695 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61698         to define main with arguments, for C++.  Reported by Eric Blake.
61699         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61700         Prefer 'int main ()' to 'int main (void)', for C++.
61701         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61702         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61703         for 'main', for C99 and C++.
61704
61705 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61708         Don't assume that exit status -1 is valid.
61709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61710         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61711         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61712         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61713         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61714         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61715         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61716         functions can be used without declaring them, or that you can
61717         exit with status -1.
61718         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61719
61720 2006-04-24  Karl Berry  <karl@gnu.org>
61721
61722         * config/srclist.txt (longdouble.m4): sync lost.
61723
61724 2006-04-24  Eric Blake  <ebb9@byu.net>
61725
61726         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61727
61728 2006-04-24  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61731         poll() implementation in AIX.
61732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61733
61734 2006-04-24  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61737         assigned exactly once.
61738
61739 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61740             Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61743         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61744         for AM_CPPFLAGS.
61745
61746 2006-04-23  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/copy-file: Depend on unistd.
61749         * modules/execute: Likewise.
61750         * modules/fatal-signal: Likewise.
61751         * modules/findprog: Likewise.
61752         * modules/mkdtemp : Likewise.
61753         * modules/pipe: Likewise.
61754         * modules/wait-process: Likewise.
61755
61756 2006-04-23  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61759         condition was already detected.
61760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61761
61762 2006-04-23  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/copy-file.c: Include <unistd.h> unconditionally.
61765         * lib/execute.c: Likewise.
61766         * lib/fatal-signal.c: Likewise.
61767         * lib/findprog.c: Likewise.
61768         * lib/mkdtemp.c: Likewise.
61769         * lib/pipe.h: Likewise.
61770         * lib/pipe.c: Likewise.
61771         * lib/wait-process.h: Likewise.
61772
61773 2006-04-23  Bruno Haible  <bruno@clisp.org>
61774
61775         * gnulib-tool (func_usage): Fix --import description. Document
61776         --update.
61777         (func_import): Create temporary file in a temporary directory, if
61778         --dry-run is specified. Silence errors from 'grep' when there are no
61779         m4 files in $m4dir.
61780         (func_create_testdir): Silence errors from 'grep' when there are no
61781         m4 files in $m4dir.
61782         Reported by Karl Berry <karl@freefriends.org>.
61783
61784 2006-04-20  Bruno Haible  <bruno@clisp.org>
61785
61786         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61787         one argument, so that the code will be portable to Autoconf 2.60.
61788         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61789         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61790         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61791
61792 2006-04-19  Derek Price  <derek@ximbiot.com>
61793             Eric Blake  <ebb9@byu.net>
61794
61795         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61796         rather than "/full/path.h".  Update comment to match.  Shorten &
61797         generalize m4_translit call via AS_TR_CPP.
61798
61799 2006-04-19  Derek Price  <derek@ximbiot.com>
61800             Eric Blake  <ebb9@byu.net>
61801
61802         * lib/inttypes.h: Correct grammar in comment.
61803
61804 2006-04-18  Derek Price  <derek@ximbiot.com>
61805             Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         * modules/inttypes: New file.
61808         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61809
61810 2006-04-18  Derek Price  <derek@ximbiot.com>
61811             Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61814         New files.
61815
61816 2006-04-18  Derek Price  <derek@ximbiot.com>
61817             Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         * lib/inttypes.h: New file.
61820         * lib/strtoimax.c: Assume <inttypes.h>.
61821
61822 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61825         isn't mounted.  Problem reported by Kir Kolyshkin.
61826
61827 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61830         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61831         Derek R. Price.
61832         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61833         implementation.
61834
61835 2006-04-12  Eric Blake  <ebb9@byu.net>
61836
61837         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61838         is now done automatically by the corresponding Autoconf macro.
61839
61840 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61843         time_r.h.
61844
61845 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         Merge regex changes from libc, removing some of our
61848         POSIX-conformance changes that were rejected and redoing them in a
61849         less-intrusive way.
61850
61851         * lib/regcomp.c (re_compile_internal, init_dfa):
61852         Length arg is now size_t, not Idx.  All uses changed.
61853         (peek_token): Forward decl now says internal_function.
61854         (__re_error_msgid, __re_error_msgid_idx):
61855         Now static rather than extern with attribute_hidden.
61856         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61857         For some reason libc prefers K&R style defns for external functions.
61858         (regerror) [!defined _LIBC]: Likewise.
61859         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61860         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61861         (build_range_exp, build_collating_symbol):
61862         Use K&R-style defn.
61863         (re_compile_fastmap): Use '\0' to memset, not 0.
61864         (utf8_sb_map): Make the calculations more obvious.
61865         (init_dfa, parse_bracket_exp, build_charclass_op):
61866         Call calloc and cast result, as glibc does.
61867         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61868         (build_range_exp, build_collating_symbol):
61869         Now internal functions.
61870
61871         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61872
61873         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61874         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61875         Don't depend on VMS; depend on __VMS instead, for POSIX
61876         namespace cleanness.
61877         (regoff_t): Define to ssize_t, not long int.
61878
61879         Remove the REG_ macros named below.  Instead, make the old names
61880         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61881         __USE_GNU_REGEX.
61882         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61883         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61884         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61885         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61886         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61887         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61888         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61889         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61890         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61891         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61892         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61893         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61894         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61895         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61896         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61897         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61898         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61899         (REG_NREGS):
61900         Remove.  All uses replaced by the old RE_* names.
61901         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61902         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61903         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61904         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61905         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61906         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61907         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61908         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61909         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61910         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61911         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61912         Don't bother having these macros be independent of each others'
61913         values, since they no longer exist in the POSIX name space.
61914
61915         Rename the following member names back to their old names,
61916         unless !__USE_GNU_REGEX.  All uses changed back.
61917         (buffer): Renamed from re_buffer.
61918         (allocated): Renamed from re_allocated.
61919         (used): Renamed from re_used.
61920         (syntax): Renamed from re_syntax.
61921         (fastmap): Renamed from re_fastmap.
61922         (translate): Renamed from re_translate.
61923         (can_be_null): Renamed from re_can_be_null.
61924         (regs_allocated): Renamed from re_regs_allocated.
61925         (fastmap_accurate): Renamed from re_fastmap_accurate.
61926         (no_sub): Renamed from re_no_sub.
61927         (not_bol): Renamed from re_not_bol.
61928         (not_eol): Renamed from re_not_eol.
61929         (newline_anchor): Renamed from re_newline_anchor.
61930         (num_regs): Renamed from rm_num_regs.
61931         (start): Renamed from rm_start.
61932         (end): Renamed from rm_end.
61933
61934         (free_state): Move up a bit.
61935
61936         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61937         #define to be empty.
61938         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61939         when that is what is intended.
61940         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61941         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61942         (MAX): New macro.
61943         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61944         All uses changed back to re_malloc, etc.  It's now the caller's
61945         responsibility to check for overflow; all callers changed.
61946         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61947         (re_x2nrealloc): Remove.
61948         (free_state): Remove decl.
61949
61950         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61951         (re_set_registers, re_exec):
61952         Use K&R-style defn.
61953
61954         2006-01-31  Roland McGrath  <roland@redhat.com>
61955
61956         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61957         Reported by Mike Frysinger <vapier@gentoo.org>.
61958
61959         2006-01-15  Andreas Jaeger  <aj@suse.de>
61960
61961         [BZ #1950]
61962         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61963         build_wcs_upper_buffer change.
61964         (build_wcs_upper_buffer): Change return type.
61965
61966         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61967
61968         * lib/regex_internal.h: Include <stdint.h> if available.
61969
61970         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61971
61972         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61973
61974         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61975
61976         * lib/regcomp.c: Adjust for changed secondary hash function.
61977
61978         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61979
61980         * lib/regex.h: Pretty printing.
61981         Clean up namespace a bit.
61982
61983         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61984
61985         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61986         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61987
61988         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61989                     Ulrich Drepper  <drepper@redhat.com>
61990
61991         [BZ #1302]
61992         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61993         changed.
61994         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61995
61996         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61997
61998         [BZ #281]
61999         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62000         * lib/regcomp.c: Remove unnecessary uses of
62001         unsigned RE_TRANSLATE_TYPE.
62002         * lib/regex_internal.h: Likewise.
62003         * lib/regex_internal.c: Likewise.
62004         * lib/regexec.c: Likewise.
62005         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62006
62007         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62008
62009         * lib/regexec.c (find_recover_state): Remove unnecessary
62010         initialization.
62011         (transit_state_bkref): Make DFA a const pointer.
62012         (get_subexp): Likewise.
62013         (check_arrival): Likewise.
62014         (update_cur_sifted_state): Likewise.
62015         (re_search_internal): Likewise.
62016         (prune_impossible_nodes): Likewise.
62017         (acquire_init_state_context): Likewise.
62018         (proceed_next_node): Likewise.
62019         (set_regs): Likewise.
62020         (free_fail_stack_return): Likewise.
62021         (check_arrival_expand_ecl): Mark DFA parameter as const.
62022         (check_arrival_expand_ecl_sub): Likewise.
62023         (check_subexp_limits): Likewise.
62024         (sub_epsilon_src_nodes):  Likewise.
62025         (add_epsilon_src_nodes):  Likewise.
62026         (merge_state_array): Likewise.
62027         (update_regs): Likewise.
62028         (build_trtable): Likewise.
62029         (sift_states_backward): Mark MCTX parameter as const.
62030         (build_sifted_states): Likewise.
62031         (update_cur_sifted_state): Likewise.
62032         (sift_states_mkref): Likewise.
62033         (check_arrival_expand_ecl): Mark eclosure as const.
62034         (check_dst_limits_calc_pos_1): Likewise.
62035         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62036         pointer.
62037
62038         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62039
62040         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62041         (transit_state_sb): Likewise.
62042         (transit_state_mb): Likewise.
62043         (sift_states_iter_mb): Likewise.
62044         (check_arrival_add_next_nodes): Likewise.
62045         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62046         [_LIBC] (re_search_2_stub): Use mempcpy.
62047
62048         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62049         mbrtowc for very simple UTF-8 case.
62050
62051         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62052         a pointer-to-const.
62053         (re_acquire_state_context): Likewise.
62054         * lib/regex_internal.h: Adjust prototypes.
62055
62056         * lib/regex.c: Prevent using C++ compilers.
62057
62058         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62059         (re_acquire_state_context): Likewise.
62060
62061 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62062
62063         * modules/regex (Depends-on): Add ssize_t.
62064
62065 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62068         translation table.
62069
62070 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62073
62074 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62075             Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62078         <sys/types.h> and <inttypes.h>.
62079
62080 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62081
62082         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62083         `__error_t_defined', so argp.h will not typedef the former.
62084
62085 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62086
62087         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62088         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62089         glibc names.  Even if glibc is changed to conform to POSIX, the
62090         traditional names will be available anyway, since regex depends on
62091         the extensions module.  Also, fix a longstanding typo in the
62092         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62093         reported by Emanuele Giaquinta.  Also, change sense of cached
62094         variable, so that the message makes sense.
62095
62096 2006-03-24  Simon Josefsson  <jas@extundo.com>
62097
62098         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62099         including some doc fixes.
62100         (base64_encode_alloc): Fix +1 bug on allocation failures.
62101
62102 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62103
62104         * lib/base64.c (base64_encode): Do not read past end of array with
62105         unsanitized input on systems with CHAR_BIT > 8.
62106
62107 2006-03-24  Eric Blake  <ebb9@byu.net>
62108
62109         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62110
62111 2006-03-22  Karl Berry  <karl@gnu.org>
62112
62113         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62114         * config/srclistvars.sh (COREUTILS): new var.
62115
62116 2006-03-17  Jim Meyering  <jim@meyering.net>
62117
62118         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62119         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62120
62121 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62122
62123         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62124         no longer needs it.  Instead, check that regoff_t is as least
62125         as wide as ptrdiff_t.
62126
62127         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62128         so that our regex.h stays compatible with the installed regex.
62129         This is helpful for installers who configure --without-included-regex.
62130         Problem reported by Emanuele Giaquinta.
62131
62132 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62133
62134         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62135         Typedef to long int, not to off_, as POSIX will likely change
62136         in that direction.
62137
62138 2006-03-15  Eric Blake  <ebb9@byu.net>
62139
62140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62141
62142 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62143
62144         * lib/argp-help.c (validate_uparams): Fix typo
62145         * lib/argp-parse.c (argp_default_options): Consistently begin help
62146         messages with a lowercase letter.
62147
62148 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62151         overrun buffers and shouldn't be used (much as gets shouldn't be
62152         used).
62153         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62154
62155 2006-03-08  Simon Josefsson  <jas@extundo.com>
62156
62157         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62158         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62159
62160 2006-03-08  Simon Josefsson  <jas@extundo.com>
62161
62162         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62163         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62164
62165 2006-03-08  Simon Josefsson  <jas@extundo.com>
62166
62167         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62168         signal that configure disabled the device.
62169
62170 2006-03-08  Simon Josefsson  <jas@extundo.com>
62171
62172         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62173         languages.
62174
62175 2006-03-07  Simon Josefsson  <jas@extundo.com>
62176
62177         * modules/getopt (Depends-on): Add unistd.
62178
62179         * modules/unistd: New file.
62180
62181 2006-03-07  Simon Josefsson  <jas@extundo.com>
62182
62183         * modules/gc-random: New file.
62184
62185 2006-03-07  Simon Josefsson  <jas@extundo.com>
62186
62187         * m4/unistd_h.m4: New file.
62188
62189 2006-03-07  Simon Josefsson  <jas@extundo.com>
62190
62191         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62192         test to be side-effect free by storing the result in the cache
62193         variable gl_cv_lib_readline, and moving the assignment of
62194         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62195         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62196
62197 2006-03-07  Simon Josefsson  <jas@extundo.com>
62198
62199         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62200         error on missing devices (the functions will return an error).
62201
62202         * m4/gc.m4: Move random stuff to gc-random.m4
62203
62204 2006-03-07  Simon Josefsson  <jas@extundo.com>
62205
62206         * lib/unistd_.h: New file.
62207
62208 2006-03-07  Simon Josefsson  <jas@extundo.com>
62209
62210         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62211
62212 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62215         Problem reported by Juan Manuel Guerrero.
62216
62217 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62218
62219         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62220         the unistd module.
62221         * lib/getlogin_r.c: Likewise.
62222         * lib/getlogin_r.h: Likewise.
62223         * lib/glob.c: Likewise.
62224         * lib/pagealign_alloc.c: Likewise.
62225         * lib/unistd_.h: Remove; no longer needed.
62226
62227 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62230         Add unistd.
62231         * modules/c-stack (Depends-on): Add unistd.
62232         * modules/getlogin_r: Likewise.
62233         * modules/glob: Likewise.
62234         * modules/pagealign_alloc: Likewise.
62235         * modules/unistd (Files): Remove lib/unistd_.h.
62236         (EXTRA_DIST): Remove.
62237         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62238         need unistd_.h.
62239         (MOSTLYCLEANFILES): Remove unistd.h-t.
62240
62241 2006-03-03  Simon Josefsson  <jas@extundo.com>
62242
62243         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62244
62245 2006-03-03  Simon Josefsson  <jas@extundo.com>
62246
62247         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62248         libidn and bison.
62249
62250 2006-03-03  Simon Josefsson  <jas@extundo.com>
62251
62252         * build-aux/maint.mk: Add indent target.
62253
62254 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62255
62256         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62257         our replacement poll.h in any case, to avoid a differing
62258         declaration from a system header.  Seen on AIX.
62259
62260 2006-03-01  Simon Josefsson  <jas@extundo.com>
62261
62262         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62263         <kasal@ucw.cz>.
62264
62265 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * modules/gettime (Depends-on): Add extensions module.
62268         * modules/nanosleep (Depends-on): Likewise.
62269         * modules/settime (Depends-on): Likewise.
62270
62271 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62272
62273         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62274         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62275         pedantically.
62276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62277         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62278
62279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62280         not "==".  Reported by Ralf Wildenhues.
62281
62282 2006-03-01  Karl Berry  <karl@gnu.org>
62283
62284         * doc/Copyright/request-*: new files, synced from gnuorg.
62285
62286 2006-03-01  Karl Berry  <karl@gnu.org>
62287
62288         * config/srclist.txt (Copyright/*): new entries.
62289
62290 2006-02-28  Simon Josefsson  <jas@extundo.com>
62291
62292         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62293
62294 2006-02-27  Simon Josefsson  <jas@extundo.com>
62295
62296         * lib/base64.h: Indent #define's.  From Jim Meyering
62297         <jim@meyering.net>.
62298
62299 2006-02-27  Jim Meyering  <jim@meyering.net>
62300
62301         Revert the change of 2006-02-24, so these files can continue
62302         to be sync'd from gettext.
62303         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62304         of `config.h'.
62305
62306 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * modules/intprops: New file.
62309         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62310         Add intprops.
62311         * modules/getloadavg (Files): Remove lib/intprops.h.
62312         (Depends-on): Add intprops.
62313         * modules/human: Likewise.
62314         * modules/inttostr: Likewise.
62315         * modules/openat: Likewise.
62316         * modules/sig2str: Likewise.
62317         * modules/userspec: Likewise.
62318         * modules/utimecmp: Likewise.
62319         * modules/xnanosleep: Likewise.
62320         * modules/xstrtol: Likewise.
62321
62322 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62323
62324         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62325         * modules/lock-tests (TESTS): Use $(EXEEXT).
62326         * modules/tls-tests: Likewise.
62327         * modules/argp-tests: Likewise.
62328         (check_PROGRAMS): New var, replacing...
62329         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62330
62331 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62332
62333         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62334         `config.h'.
62335
62336 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62339
62340 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62341
62342         Sync from coreutils.
62343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62344         gl_CHDIR_SAFER.
62345
62346 2006-02-22  Jim Meyering  <jim@meyering.net>
62347
62348         Sync from coreutils.
62349         * m4/chdir-safer.m4: New file.
62350
62351 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62354         AT_FDCWD exceeds INT_MAX.
62355         * lib/openat.h (AT_FDCWD): Likewise.
62356
62357 2006-02-17  Eric Blake  <address@hidden>
62358
62359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62360
62361 2006-02-16  Simon Josefsson  <jas@extundo.com>
62362
62363         * modules/getaddrinfo (Depends-on): Add sys_socket.
62364
62365 2006-02-15  Simon Josefsson  <jas@extundo.com>
62366
62367         * build-aux/maint.mk: Add dsyntax-check rule.
62368
62369 2006-02-15  Eric Blake  <ebb9@byu.net>
62370
62371         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62372         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62373         'present but cannot compile' warnings on cygwin.
62374         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62375         use ws2tcpip.h if sys/socket.h works.
62376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62377         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62378
62379 2006-02-14  Simon Josefsson  <jas@extundo.com>
62380
62381         * modules/maintainer-makefile (Files): Rename.
62382
62383         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62384         and (the local) Makefile.cfg to maint-cfg.mk.
62385
62386         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62387         to the latter.
62388
62389         * modules/maintainer-makefile: New module.
62390
62391         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62392         severaly stripped to make it possible to build it up from scratch
62393         with reliable tests.
62394
62395         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62396         fixes to permit overriding the default actions when configure and
62397         makefile are not available.
62398
62399 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62400
62401         Sync from coreutils.
62402         * modules/lstat (Depends-on): Don't depend on xalloc.
62403         (License): Change from GPL to LGPL, since this is now simply a
62404         replacement for a libc function.
62405
62406 2006-02-14  Jim Meyering  <jim@meyering.net>
62407
62408         Sync from coreutils.
62409
62410         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62411         failure on deficient systems, and simplify gnulib lgpl dependencies.
62412         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62413         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62414
62415         * lib/xalloc-die.c: Remove unused definition of N_.
62416
62417 2006-02-14  Jim Meyering  <jim@meyering.net>
62418
62419         Sync from coreutils.
62420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62421         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62422         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62423         double-quote uses of that variable, to accommodate the rare case in
62424         which getmntent is available in none of the libraries checked.  This
62425         happens at least on FreeBSD 5.0.
62426
62427 2006-02-13  Simon Josefsson  <jas@extundo.com>
62428
62429         * gnulib-tool (Usage): Fix --import, from
62430         karl@freefriends.org (Karl Berry).
62431
62432 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62433
62434         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62435
62436 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62437
62438         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62439         "autoupdate" on 2005-12-12.
62440
62441 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * modules/closeout (Depends-on): Remove atexit.
62444
62445 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62448         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62449
62450 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62453         __EXTENSIONS__ if this causes compilation to fail.  Problem
62454         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62455         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62456
62457 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62458
62459         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62460         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62462         All uses changed.
62463
62464 2006-01-26  Simon Josefsson  <jas@extundo.com>
62465
62466         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62467         prototype is visible on mingw32.
62468
62469         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62470         for mingw32.
62471
62472         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62473         mingw32).
62474
62475 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62478         attempt to open for write; this always fails, at least on POSIX
62479         hosts.  This reinstates the 2006-01-09 change, which was
62480         inadvertently removed.
62481
62482 2006-01-26  Bruno Haible  <bruno@clisp.org>
62483
62484         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62485         Reported by Paul Eggert.
62486
62487 2006-01-26  Bruno Haible  <bruno@clisp.org>
62488             Paul Eggert  <eggert@cs.ucla.edu>
62489
62490         * lib/stdbool_.h (_Bool)
62491         [(! (defined __cplusplus || defined __BEOS__)
62492           && !defined __GNUC__
62493           && !(defined __HP_cc || defined __xlc__
62494                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62495                || defined __sgi))]:
62496         #define to signed char in these cases too; this simplifies
62497         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62498         etc., separately) and makes it more conservative.
62499
62500 2006-01-25  Simon Josefsson  <jas@extundo.com>
62501
62502         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62503         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62504         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62505
62506 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62507
62508         * lib/argp-namefrob.h: Bugfix. Remove stray #
62509
62510 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62513         so that we test the test.
62514         Check for yet another HP-UX cc bug involving *bool |= bool.
62515
62516 2006-01-25  Karl Berry  <karl@gnu.org>
62517
62518         * config/srclist.txt (vasnprintf.c): sync lost.
62519
62520 2006-01-25  Jim Meyering  <jim@meyering.net>
62521
62522         Sync from the stable (b5) branch of coreutils:
62523
62524         * lib/fts.c (fts_children): Don't let close() clobber errno from
62525         failed fchdir().
62526
62527         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62528         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62529         a dangling symlink.  That can also happen at least for ELOOP.
62530         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62531         FYI, this bug predates the inclusion of fts.c in coreutils.
62532
62533         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62534         in their own block, so pre-c99 compilers don't object.
62535
62536         Avoid the double-free (first in fts_read, second in fts_close) that
62537         would occur when an `active' directory is made inaccessible (e.g.,
62538         via chmod a-x) during a traversal.
62539         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62540         before returning.  Reproduce this failure by
62541         mkdir -p a/b; cd a; chmod a-x . b
62542         Reported by Stavros Passas.
62543
62544 2006-01-25  Jim Meyering  <jim@meyering.net>
62545
62546         * lib/fileblocks.c: Remove more useless parentheses.
62547         * lib/readutmp.h: Likewise.
62548
62549 2006-01-25  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62552         warnings.
62553         Reported by Paul Eggert.
62554
62555 2006-01-25  Bruno Haible  <bruno@clisp.org>
62556
62557         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62558         rid of a trap command. For Solaris sh.
62559         Reported by Mark D. Baushke <mdb@gnu.org>.
62560
62561 2006-01-24  Simon Josefsson  <jas@extundo.com>
62562
62563         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62564         Bruno.
62565
62566 2006-01-24  Karl Berry  <karl@gnu.org>
62567
62568         * config/srclist.txt (argp-namefrob.h): sync lost.
62569
62570 2006-01-24  Jim Meyering  <jim@meyering.net>
62571
62572         * modules/openat (Files): Add lib/intprops.h.
62573         From Mark D. Baushke.
62574
62575 2006-01-24  Jim Meyering  <jim@meyering.net>
62576
62577         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62578         Reported by Mark D. Baushke.
62579
62580 2006-01-24  Jim Meyering  <jim@meyering.net>
62581
62582         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62583
62584 2006-01-24  Bruno Haible  <bruno@clisp.org>
62585
62586         * modules/strnlen (Maintainer): Change from glibc to all.
62587
62588 2006-01-24  Bruno Haible  <bruno@clisp.org>
62589
62590         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62591         Patch by Paul Eggert.
62592
62593 2006-01-24  Bruno Haible  <bruno@clisp.org>
62594
62595         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62596         already has it.
62597         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62598         2005-11-26.
62599
62600         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62601         'signed char' to avoid problems with the built-in _Bool type.
62602         Reported by Paul Eggert on 2005-11-26.
62603
62604 2006-01-24  Bruno Haible  <bruno@clisp.org>
62605
62606         * gnulib-tool (func_import): Avoid constructing complicated sed
62607         expressions inside backquote.
62608         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62609
62610 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62611
62612         These changes imported from libc.
62613         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62614         test and two separate function calls.
62615         * lib/strndup.c (__strndup): Add libc_hidden_def.
62616
62617 2006-01-23  Simon Josefsson  <jas@extundo.com>
62618
62619         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62620         Remove the test_*_SOURCES variable: automake infers it by default.
62621         * modules/tls-tests: Likewise.
62622
62623 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         Work around porting bugs reported by Dieter in
62626         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62627         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62628         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62629         Include "getopt.h" first, to check interface.
62630         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62631         !HAVE_DECL_GETENV.
62632         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62633         (__strndup): Revert to K&R-style function dfns, the glibc style.
62634         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62635         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62636         Include strnlen.h first, to get prototype properly.
62637         (strnlen): Renamed from __strnlen.
62638         Remove weak alias.
62639
62640 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62643
62644 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * config/srclist.txt: Adjust to reflect glibc reorganization.
62647         This affects only comments.
62648
62649 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62650
62651          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62652          Reported by Bruce Korb <bkorb@gnu.org>.
62653
62654 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62657         to pacify gcc -Wswitch-default.
62658
62659 2006-01-22  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62662         temporary buffer for sprintf, take into account the precision also
62663         for 'd', 'i', 'u', 'o', 'x', 'X'.
62664
62665 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62666
62667         * modules/argp-tests: New module
62668         * tests/test-argp.c: New file
62669         * tests/test-argp-2.sh: New file
62670
62671 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62672
62673         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62674         (__argp_base_name): Removed
62675         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62676         typo.
62677         (__argp_base_name): Provide macro definition or extern declaration
62678         depending on the configuration
62679
62680 2006-01-20  Simon Josefsson  <jas@extundo.com>
62681
62682         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62683
62684 2006-01-20  Simon Josefsson  <jas@extundo.com>
62685
62686         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62687
62688 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62689
62690         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62691         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62692         Suggested by Bruno Haible.
62693
62694 2006-01-20  Karl Berry  <karl@gnu.org>
62695
62696         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62697         until changes propagate, I guess.
62698
62699 2006-01-19  Simon Josefsson  <jas@extundo.com>
62700
62701         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62702
62703 2006-01-19  Simon Josefsson  <jas@extundo.com>
62704
62705         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62706
62707 2006-01-19  Simon Josefsson  <jas@extundo.com>
62708
62709         * gnulib-tool: Set check_PROGRAMS.
62710
62711         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62712         modules/des-tests, modules/gc-arcfour-tests,
62713         modules/gc-arctwo-tests, modules/gc-des-tests,
62714         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62715         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62716         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62717         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62718         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62719         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62720         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62721         test_*_SOURCES.
62722
62723 2006-01-18  Simon Josefsson  <jas@extundo.com>
62724
62725         * modules/socklen (Depends-on): Depend on sys_socket.
62726
62727 2006-01-18  Simon Josefsson  <jas@extundo.com>
62728
62729         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62730         modules/des-tests, modules/gc-arcfour-tests,
62731         modules/gc-arctwo-tests, modules/gc-des-tests,
62732         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62733         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62734         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62735         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62736         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62737         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62738         $(EXEEXT) to automake TESTS variable, for mingw32.
62739
62740 2006-01-17  Simon Josefsson  <jas@extundo.com>
62741
62742         * modules/socklen (Include): Need sys/socket.h.
62743
62744 2006-01-17  Bruno Haible  <bruno@clisp.org>
62745
62746         * modules/ssize_t (Include): Add <sys/types.h>.
62747
62748 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62751         it's not portable and it doesn't work with cross-compiles.
62752         Problem reported by Bruno Haible.  Fix missing-$ typo in
62753         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62754         -zignore from being used with Sun's C compiler.
62755
62756 2006-01-12  Simon Josefsson  <jas@extundo.com>
62757
62758         * lib/base64.c: Fix warning, reported by Bruno Haible
62759         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62760
62761 2006-01-12  Bruno Haible  <bruno@clisp.org>
62762
62763         * modules/ldd: New file.
62764         * build-aux/ldd.sh.in: New file.
62765         * MODULES.html.sh (Support for building libraries and executables): Add
62766         ldd.
62767
62768 2006-01-12  Bruno Haible  <bruno@clisp.org>
62769
62770         * m4/ldd.m4: New file.
62771
62772 2006-01-12  Bruno Haible  <bruno@clisp.org>
62773
62774         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62775         endless loop while replacing $auxdir with build-aux.
62776
62777 2006-01-11  Simon Josefsson  <jas@extundo.com>
62778
62779         * lib/stdint_.h (SIZE_MAX): Add missing (.
62780
62781 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62782
62783         Sync from coreutils.
62784         * lib/md5.c: Fix commentary typos.
62785         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62786         * lib/md5.h (__attribute__): Remove; unused.
62787         * lib/sha1.c: Fix commentary to match md5 better.
62788         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62789         so that we don't need to worry about alignment.  All uses changed.
62790         This merges the 2005-10-28 md5 change into sha1.
62791
62792 2006-01-11  Jim Meyering  <jim@meyering.net>
62793
62794         Sync from coreutils.
62795         * lib/md5.c (OP): Fix spacing.
62796
62797 2006-01-11  Bruno Haible  <bruno@clisp.org>
62798
62799         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62800         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62801         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62802
62803 2006-01-11  Bruno Haible  <bruno@clisp.org>
62804
62805         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62806         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62807         the "early" section as well.
62808
62809 2006-01-11  Bruno Haible  <bruno@clisp.org>
62810
62811         Avoid "ar: no archive members specified" error on MacOS X.
62812         * gnulib-tool (func_modules_add_dummy): New function.
62813         (func_import, func_create_testdir): Invoke it.
62814
62815 2006-01-11  Bruno Haible  <bruno@clisp.org>
62816
62817         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62818         with $auxdir in AC_CONFIG_FILES statements.
62819
62820 2006-01-11  Bruno Haible  <bruno@clisp.org>
62821
62822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62823         Initialize also noinst_HEADERS to empty.
62824
62825 2006-01-11  Bruno Haible  <bruno@clisp.org>
62826
62827         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62828         variables.
62829         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62830         autoreconf.
62831
62832 2006-01-11  Bruno Haible  <bruno@clisp.org>
62833
62834         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62835         overridable by the user.
62836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62837
62838 2006-01-10  Simon Josefsson  <jas@extundo.com>
62839
62840         * modules/sys_socket: New file.
62841
62842 2006-01-10  Simon Josefsson  <jas@extundo.com>
62843
62844         * m4/sys_socket_h.m4: New file.
62845
62846 2006-01-10  Simon Josefsson  <jas@extundo.com>
62847
62848         * lib/socket_.h: New file.
62849
62850 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         * modules/readutmp (Maintainer): Add myself.
62853
62854 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62857         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62858         People who are still concerned with buggy memcmp implementations
62859         can invoke gl_FUNC_MEMCMP themselves.
62860
62861 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62862
62863         * lib/regex_internal.h (BITSET_WORD_BITS):
62864         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62865         preprocessor mishandles large unsigned values as if they were signed.
62866         Problem reported by Claudio Fontana in
62867         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62868
62869 2006-01-10  Jim Meyering  <jim@meyering.net>
62870
62871         Avoid the double-free (first in fts_read, second in fts_close) that
62872         would occur when an `active' directory is made inaccessible (e.g.,
62873         via chmod a-x) during a traversal.
62874         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62875         before returning.  Reproduce this failure by
62876         mkdir -p a/b; cd a; chmod a-x . b
62877         Reported by Stavros Passas.
62878
62879         Sync from coreutils.
62880         * lib/sha1.c: Tweak grammar in a comment.
62881
62882 2006-01-10  Jim Meyering  <jim@meyering.net>
62883
62884         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62885         Patch by Joerg Sonnenberger.
62886
62887 2006-01-10  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/readutmp: Depend on module free.
62890         * modules/strtok_r: Depend on module restrict.
62891
62892 2006-01-10  Bruno Haible  <bruno@clisp.org>
62893
62894         * modules/gettext (configure.ac): Add an invocation of
62895         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62896
62897 2006-01-10  Bruno Haible  <bruno@clisp.org>
62898
62899         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62900         Reported by Werner Lemberg <wl@gnu.org>.
62901
62902 2006-01-10  Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/localcharset.c: Update from GNU gettext.
62905
62906 2006-01-10  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/argp.h (__const): Remove macro. Use const instead.
62909         * lib/argp-fmtstream.h (__const): Likewise.
62910         * lib/glob_.h (__const): Remove macro.
62911         * lib/glob-libc.h: Use const instead of __const.
62912
62913 2006-01-10  Bruno Haible  <bruno@clisp.org>
62914
62915         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62916         variable.
62917         Needed to avoid an automake error regarding the 'gettext' module.
62918
62919 2006-01-09  Simon Josefsson  <jas@extundo.com>
62920
62921         * modules/inet_ntop (Depends-on): Add restrict.
62922
62923 2006-01-09  Simon Josefsson  <jas@extundo.com>
62924
62925         * modules/gc-rijndael-tests (License): Put under LGPL.
62926
62927         * modules/gc-des-tests (License): Likewise.
62928
62929         * modules/gc-arcfour-tests (License): Likewise.
62930
62931         * modules/gc-arctwo-tests (License): Likewise.
62932
62933         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62934
62935         * modules/gc-hmac-sha1-tests (Files): Likewise.
62936
62937         * modules/gc-hmac-md5-tests (License): Likewise.
62938
62939         * modules/gc-sha1-tests (License): Likewise.
62940
62941         * modules/gc-md5-tests (License): Likewise.
62942
62943         * modules/gc-md4-tests (License): Likewise.
62944
62945         * modules/gc-md2-tests (License): Likewise.
62946
62947         * modules/gc-tests (License): Likewise.
62948
62949         * modules/des-tests (License): Likewise.
62950
62951         * modules/md4-tests (License): Likewise.
62952
62953         * modules/md2-tests (License): Likewise.
62954
62955 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         Sync from coreutils:
62958
62959         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62960         * modules/lib-ignore: New file.
62961         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62962         chdir-safer.m4, lchmod.m4.
62963         * modules/openat: Add mkdirat.c, openat-priv.h.
62964
62965 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         Sync from coreutils.
62968         * m4/lib-ignore.m4: New file.
62969         * m4/lchmod.m4: New file.
62970
62971 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         Sync from coreutils.
62974         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62975         for write access: POSIX says that must fail.
62976         * lib/fts.c (diropen): Likewise.
62977         * lib/save-cwd.c (save_cwd): Likewise.
62978         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62979         well, for minor improvements on hosts that lack O_DIRECTORY.
62980         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62981         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62982         Fall back on chown if open failed with EACCES.
62983
62984         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62985         Report an error at compile-time if only a 1-second nominal clock
62986         resolution is found.
62987
62988         * lib/lchmod.h: New file.
62989         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62990         (make_dir_parents): Use lchown rather than chown, and
62991         lchmod rather than chmod.
62992
62993         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62994         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62995         "proc" reported by n0dalus.
62996
62997         * lib/mountlist.c: Include <limits.h>.
62998         (dev_from_mount_options)
62999         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63000         New function.  It no longer assumes "dev=" has the System V meaning
63001         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63002         (read_file_system_list)
63003         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63004         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63005         dev= in that case.
63006
63007         * lib/posixtm.h (PDS_PRE_2000): New macro.
63008         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63009         allow_century.  All usages changed.  Reject dates outside the range
63010         1969-1999 if PDS_PRE_2000 is used.
63011
63012 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         Sync from coreutils.
63015         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63016         (Time of day items): Mention the possibility of leap seconds.
63017         Problem reported by Dr. David Alan Gilbert.
63018
63019 2006-01-09  Jim Meyering  <jim@meyering.net>
63020
63021         Sync from coreutils.
63022
63023         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63024
63025         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63026
63027         * lib/modechange.c (mode_compile): Reject an invalid mode string
63028         that starts with an octal digit.  From Andreas Gruenbacher.
63029
63030         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63031         and dup to open_safer and dup_safer, respectively.
63032         (openat_permissive): Fix typo in comment.
63033
63034         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63035         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63036         (_): Remove; no longer needed.
63037         (openat): Renamed from rpl_openat; no need for rpl_openat
63038         since openat.h renames openat for us.
63039         Replace most of the body with a call to openat_permissive,
63040         to avoid duplicate code.
63041         Port to (probably hypothetical) environments were mode_t is
63042         wider than int.
63043         (openat_permissive): Require mode arg, so that we can check
63044         types better.  Put it just after flags.  Change cwd failure
63045         indicator from pointer-to-bool to pointer-to-errno-value.
63046         All callers changed.
63047         Invoke openat_save_fail and/or openat_restore_fail if
63048         cwd_errno is null, so that openat can call us.
63049         (openat_permissive, fdopendir, fstatat, unlinkat):
63050         Simplify errno handling to avoid some duplicate code,
63051         as it's OK to set errno on success.
63052         * lib/openat.h: Revamp code so that function macros depend on
63053         __OPENAT_PREFIX only, not also on AT_FDCWD.
63054         (openat_ro): Remove.  Caller changed to use openat_permissive.
63055         (openat_permissive): Now a macro, if not a function.
63056         (openat_restore_fail, openat_save_fail): Now always functions,
63057         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63058
63059         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63060         and openat.c.
63061         * lib/mkdirat.c: Include openat-priv.h.
63062         Remove definitions of macros defined therein.
63063         * lib/openat.c: Likewise.
63064
63065         * lib/mkdirat.c (mkdirat): New file and function.
63066         * lib/openat.h (mkdirat): Declare.
63067
63068         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63069
63070         * lib/openat.h (openat_permissive): Declare.
63071         (openat_ro): Define.
63072
63073         * lib/openat.c (EXPECTED_ERRNO): New macro.
63074         (openat_permissive): New function -- used in remove.c rewrite.
63075         (all functions): Set errno just before returning, only if there
63076         was an actual failure.
63077         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63078
63079         Emulate openat-family functions using Linux's procfs, if possible.
63080         Idea and some code based on Ulrich Drepper's glibc changes.
63081
63082         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63083         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63084         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63085         before falling back on save_cwd and restore_cwd.
63086         (fdopendir, fstatat, unlinkat): Likewise.
63087
63088         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63089         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63090
63091         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63092         as second argument to va_arg.  Otherwise, some versions of gcc
63093         warn that `if this code is reached, the program will abort'.
63094
63095 2006-01-09  Jim Meyering  <jim@meyering.net>
63096
63097         Sync from coreutils.
63098         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63099         Require openat-priv.h.
63100
63101 2006-01-09  Bruno Haible  <bruno@clisp.org>
63102
63103         * modules/strnlen (Include): Use strnlen.h.
63104
63105 2006-01-09  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63108
63109 2006-01-09  Bruno Haible  <bruno@clisp.org>
63110
63111         * lib/sysexit_.h (EX_OK): New macro.
63112         Suggested by Martin Lambers <marlam@marlam.de>.
63113
63114 2006-01-09  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63117         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63118
63119 2006-01-09  Bruno Haible  <bruno@clisp.org>
63120
63121         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63122         numbers.
63123
63124 2006-01-09  Bruno Haible  <bruno@clisp.org>
63125
63126         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63127         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63128         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63129         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63130
63131 2006-01-09  Bruno Haible  <bruno@clisp.org>
63132
63133         * build-aux/javacomp.sh.in: New file, moved from lib/.
63134         * modules/javacomp-script (Files): Update.
63135         (configure.ac): Add AC_CONFIG_FILES invocation.
63136         (EXTRA_DIST): Remove variable.
63137
63138         * build-aux/javaexec.sh.in: New file, moved from lib/.
63139         * modules/javaexec (Files): Update.
63140         (configure.ac): Add AC_CONFIG_FILES invocation.
63141         (EXTRA_DIST): Remove javaexec.sh.in.
63142
63143         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63144         * modules/csharpcomp-script (Files): Update.
63145         (configure.ac): Add AC_CONFIG_FILES invocation.
63146         (EXTRA_DIST): Remove variable.
63147
63148         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63149         * modules/csharpexec (Files): Update.
63150         (configure.ac): Add AC_CONFIG_FILES invocation.
63151         (EXTRA_DIST): Remove csharpexec.sh.in.
63152
63153 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63154
63155         Sync from coreutils.
63156
63157         Add POSIX ACL support
63158         * lib/acl.h (copy_acl, set_acl): Add declarations.
63159         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63160         systems other than Linux.
63161         (chmod_or_fchmod): New function: use fchmod when possible,
63162         and chmod otherwise.
63163         (file_has_acl): Add a POSIX ACL implementation, with a
63164         Linux-specific subcase.
63165         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63166         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63167         acls are unsupported.
63168         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63169         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63170         are unsupported.
63171
63172 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63173
63174         Sync from coreutils.
63175         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63176
63177 2006-01-07  Bruno Haible  <bruno@clisp.org>
63178
63179         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63180         gl_EARLY.
63181
63182 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63185         Problem reported for Mingw by Mark Junker.
63186
63187 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * README: Gnulib normally doesn't generate a tarball.
63190
63191 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63194         long int, not int, for nanosecond counts, so that people who are
63195         used to POSIX struct timespec won't be surprised.  Reported by Jim
63196         Meyering.
63197
63198 2005-12-28  Bruno Haible  <bruno@clisp.org>
63199
63200         * build-aux/config.rpath: Update from GNU gettext.
63201
63202 2005-12-16  Jim Meyering  <jim@meyering.net>
63203
63204         * modules/fprintftime: New module.
63205         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63206
63207 2005-12-16  Jim Meyering  <jim@meyering.net>
63208
63209         * m4/fprintftime.m4: New file.
63210
63211 2005-12-16  Jim Meyering  <jim@meyering.net>
63212
63213         * lib/fprintftime.c, lib/fprintftime.h: New files.
63214
63215 2005-12-15  Simon Josefsson  <jas@extundo.com>
63216
63217         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63218         new m4/socklen.m4.
63219
63220 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63221
63222         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63223         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63224
63225 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63226
63227         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63228         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63229         struct uparams is valid. Fall back to the default values if it is
63230         not.
63231
63232 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63233
63234         * modules/argp (Files): Add argp-pin.c
63235         (Depends-on): dirname
63236         (lib_SOURCES): Add argp-pin.c
63237
63238 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63239
63240         * m4/argp.m4:  Check if program_invocation_name and
63241         program_invocation_short_name are declared and define appropriate
63242         macros if they are not.
63243
63244 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63245
63246         * lib/argp-help.c (__argp_base_name): New function
63247         (__argp_short_program_name): Rewrite using __argp_base_name
63248         * lib/argp-namefrob.h: Define program_invocation_name and
63249         program_invocation_short_name if requested
63250         (__argp_base_name): Add prototype
63251         * lib/argp-parse.c (argp_def): Use gettext wrappers
63252         (argp_default_parser): Use __argp_base_name
63253         * lib/argp-pin.c: New file. Defines program_invocation_name and
63254         program_invocation_short_name on systems that lack them.
63255
63256 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63259         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63260         porting problem reported by Georg Schwarz in
63261         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63262
63263 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63266         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63267         porting problem reported by Georg Schwarz in
63268         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63269
63270 2005-12-05  Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63273         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63274         Reported by Mark Junker <mjscod@gmx.de>.
63275
63276 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63277
63278         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63279         Use implementation from Albert Chin, with some
63280         comments/corrections by Stepan Kasal and myself.
63281
63282 2005-12-02  Bruno Haible  <bruno@clisp.org>
63283
63284         * gnulib-tool (func_import): Accept GPLed build tool modules when
63285         --lgpl is given.
63286         * modules/csharpcomp-script: New file.
63287         * modules/csharpcomp: Depend on it.
63288         * modules/javacomp-script: New file.
63289         * modules/javacomp: Depend on it.
63290         Suggested by Simon Josefsson.
63291
63292 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63293
63294         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63295         statement, to work around an HP-UX 10.20 compiler bug reported by
63296         Peter O'Gorman.
63297
63298 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * modules/savedir (Depends-on): Add openat.
63301
63302 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63305         (uintmax_t) [defined uintmax_t]: Do not declare.
63306         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63307         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63308         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63309         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63310         sake of portability to weird hosts that C allows (though we don't
63311         know of any practical examples).
63312
63313         * lib/savedir.h (fdsavedir): New decl.
63314         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63315         contains most of the former guts of savedir.
63316         (savedir): Use savedirstream.
63317         Include "openat.h".
63318
63319 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * modules/obstack (Files): Add m4/ulonglong.m4.
63322         Problem reported by Davide Angelocola.
63323
63324 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63327         coreutils no longer futzes with rounding modes.
63328
63329 2005-11-14  Jim Meyering  <jim@meyering.net>
63330
63331         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63332         replacement of mkstemp.
63333
63334 2005-11-10  Simon Josefsson  <jas@extundo.com>
63335
63336         * lib/readline.c: Remove EOL.
63337
63338 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * modules/gethrxtime (Depends-on): Add gettime.
63341
63342 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63345         or gettimeofday; no longer needed.
63346
63347 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63350         time business.
63351         (gethrxtime) [! (HAVE_NANOUPTIME
63352         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63353         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63354         our own approximation.
63355
63356 2005-11-08  Eric Blake  <ebb9@byu.net>
63357
63358         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63359
63360 2005-11-08  Eric Blake  <ebb9@byu.net>
63361
63362         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63363
63364 2005-11-04  Bruno Haible  <bruno@clisp.org>
63365
63366         * gnulib-tool: Implement --update mode.
63367
63368 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         Fix porting problem reported by Theodoros V. Kalamatianos.
63371         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63372         Don't assume that futimes failing means we must fail.
63373
63374 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63377         variables to suggest the intended function of the PATH_MAX check.
63378
63379 2005-10-30  Kean Johnston  <jkj@sco.com>
63380
63381         Trivial changes to support SCO systems.
63382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63383         as PATH_MAX.
63384         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63385         where __ptr is null when no I/O is pending.
63386
63387 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63388
63389         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63390         leave errno alone.  Problem reported by Dmitry V. Levin.
63391
63392 2005-10-28  Simon Josefsson  <jas@extundo.com>
63393
63394         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63395         Test more.
63396
63397         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63398
63399         * modules/md2, modules/md2-tests: New files.
63400
63401 2005-10-28  Simon Josefsson  <jas@extundo.com>
63402
63403         * m4/inet_ntop.m4: More tests.
63404
63405         * m4/gc-md2.m4, md2.m4: New file.
63406
63407 2005-10-28  Simon Josefsson  <jas@extundo.com>
63408
63409         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63410         "restrict" keywords, as per POSIX.  Protect the function
63411         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63412         Don't use K&R prototypes.  Check the sprintf return values.
63413         Re-define EAFNOSUPPORT if not present.  Indent.
63414
63415         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63416         suggested by Bruno Haible <bruno@clisp.org>.
63417
63418         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63419
63420         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63421
63422         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63423         libgcrypt).
63424
63425         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63426
63427         * lib/md2.h, lib/md2.c: New files.
63428
63429 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63432         errno alone.  Problem reported by Frederic Jolliton.
63433
63434 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63435
63436         * modules/verify (License): Change from GPL to LGPL.  This is a
63437         tiny module and there are apparently near-equivalents that are
63438         under the BSD license.
63439
63440 2005-10-24  Simon Josefsson  <jas@extundo.com>
63441
63442         * modules/sha1: Relicense to LGPL.
63443
63444 2005-10-24  Simon Josefsson  <jas@extundo.com>
63445
63446         * lib/md4.h: Shrink buffer size, now that we changed the type.
63447
63448 2005-10-23  Simon Josefsson  <jas@extundo.com>
63449
63450         * gnulib-tool (func_import): Fix --tests-base.
63451
63452 2005-10-22  Simon Josefsson  <jas@extundo.com>
63453
63454         * modules/arcfour (Depends-on): Need stdint.
63455
63456 2005-10-22  Simon Josefsson  <jas@extundo.com>
63457
63458         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63459         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63460
63461 2005-10-22  Simon Josefsson  <jas@extundo.com>
63462
63463         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63464         suggested by Bruno Haible <bruno@clisp.org>.
63465
63466 2005-10-22  Simon Josefsson  <jas@extundo.com>
63467
63468         * lib/crc.h: Include stddef.h, for size_t.
63469
63470 2005-10-22  Simon Josefsson  <jas@extundo.com>
63471
63472         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63473         arcfour_context struct (simplify test vector testing in GNU
63474         Shishi).
63475
63476 2005-10-21  Simon Josefsson  <jas@extundo.com>
63477
63478         * modules/des, modules/des-tests: New files.
63479
63480         * modules/gc-des, modules/gc-des-tests: New files.
63481
63482         * tests/test-des.c, tests/test-gc-des.c: New file.
63483
63484 2005-10-21  Simon Josefsson  <jas@extundo.com>
63485
63486         * modules/arctwo, modules/arctwo-tests: New files.
63487
63488         * tests/test-arctwo.c: New file.
63489
63490         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63491
63492         * tests/test-gc-arctwo.c: New file.
63493
63494 2005-10-21  Simon Josefsson  <jas@extundo.com>
63495
63496         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63497         Bruno Haible <bruno@clisp.org>.
63498
63499         * m4/gc-des.m4: New file.
63500
63501 2005-10-21  Simon Josefsson  <jas@extundo.com>
63502
63503         * m4/arctwo.m4: New file.
63504
63505         * m4/gc-arctwo.m4: New file.
63506
63507 2005-10-21  Simon Josefsson  <jas@extundo.com>
63508
63509         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63510         block.
63511
63512 2005-10-21  Simon Josefsson  <jas@extundo.com>
63513
63514         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63515         <bruno@clisp.org>.
63516
63517         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63518
63519         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63520         Bruno Haible <bruno@clisp.org>.
63521
63522         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63523         <bruno@clisp.org>.
63524
63525 2005-10-21  Simon Josefsson  <jas@extundo.com>
63526
63527         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63528
63529 2005-10-21  Simon Josefsson  <jas@extundo.com>
63530
63531         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63532
63533 2005-10-21  Simon Josefsson  <jas@extundo.com>
63534
63535         * lib/des.h, lib/des.c: New files.
63536
63537         * lib/gc-gnulib.c: Support DES.c
63538
63539 2005-10-21  Simon Josefsson  <jas@extundo.com>
63540
63541         * lib/arctwo.h, lib/arctwo.c: New files.
63542
63543         * lib/gc-gnulib.c: Support ARCTWO.
63544
63545 2005-10-21  Simon Josefsson  <jas@extundo.com>
63546
63547         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63548         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63549
63550 2005-10-21  Simon Josefsson  <jas@extundo.com>
63551
63552         * gnulib-tool (func_import, func_create_testdir): Define automake
63553         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63554         Makefile.am snippet),
63555         suggested by Bruno Haible <bruno@clisp.org>.
63556
63557         * modules/gc (Makefile.am): Use it.
63558
63559 2005-10-21  Bruno Haible  <bruno@clisp.org>
63560
63561         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63562         patch.
63563
63564 2005-10-19  Simon Josefsson  <jas@extundo.com>
63565
63566         * tests/test-gc-rijndael.c: New file.
63567
63568         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63569
63570 2005-10-19  Simon Josefsson  <jas@extundo.com>
63571
63572         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63573         interface too.
63574
63575 2005-10-19  Simon Josefsson  <jas@extundo.com>
63576
63577         * tests/test-gc-arcfour.c: New file.
63578
63579         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63580
63581 2005-10-19  Simon Josefsson  <jas@extundo.com>
63582
63583         * modules/gc-md4, modules/gc-md4-tests: New file.
63584
63585         * tests/test-gc-md4.c: New file.
63586
63587 2005-10-19  Simon Josefsson  <jas@extundo.com>
63588
63589         * m4/gc-md4.m4: New file.
63590
63591 2005-10-19  Simon Josefsson  <jas@extundo.com>
63592
63593         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63594         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63595         <kasal@ucw.cz>.
63596
63597 2005-10-19  Simon Josefsson  <jas@extundo.com>
63598
63599         * m4/gc-arcfour.m4: New file.
63600
63601         * m4/gc-rijndael.m4: New file.
63602
63603 2005-10-19  Simon Josefsson  <jas@extundo.com>
63604
63605         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63606
63607 2005-10-19  Simon Josefsson  <jas@extundo.com>
63608
63609         * lib/gc-gnulib.c: Support ARCFOUR.
63610
63611 2005-10-19  Simon Josefsson  <jas@extundo.com>
63612
63613         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63614         support.
63615
63616         * lib/gc.h: Add ECB enum type.
63617
63618         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63619
63620 2005-10-18  Simon Josefsson  <jas@extundo.com>
63621
63622         * tests/test-md5.c: New file.
63623
63624         * modules/md5-tests: New file.
63625
63626 2005-10-18  Simon Josefsson  <jas@extundo.com>
63627
63628         * tests/test-md4.c: New file.
63629
63630         * modules/md4, modules/md4-tests: New files.
63631
63632 2005-10-18  Simon Josefsson  <jas@extundo.com>
63633
63634         * m4/md4.m4: New file.
63635
63636 2005-10-18  Simon Josefsson  <jas@extundo.com>
63637
63638         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63639
63640 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63641
63642         * gnulib-tool (func_create_testdir): Omit the second check whether
63643         BUILT_SOURCES in nonempty.
63644
63645 2005-10-17  Simon Josefsson  <jas@extundo.com>
63646
63647         * tests/test-rijndael.c: New file.
63648
63649 2005-10-17  Simon Josefsson  <jas@extundo.com>
63650
63651         * modules/sha1: Depend on stdint instead of md5.
63652
63653         * modules/md5: Depend on stdint, remove uint32_t.
63654
63655 2005-10-17  Simon Josefsson  <jas@extundo.com>
63656
63657         * modules/gc-sha1-tests: New file.
63658
63659         * tests/test-gc-sha1.c: New file.
63660
63661 2005-10-17  Simon Josefsson  <jas@extundo.com>
63662
63663         * m4/md5.m4: Remove call to uint32_t.m4.
63664
63665 2005-10-17  Simon Josefsson  <jas@extundo.com>
63666
63667         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63668
63669         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63670         md5.h.
63671
63672         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63673
63674         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63675
63676 2005-10-17  Simon Josefsson  <jas@extundo.com>
63677
63678         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63679
63680 2005-10-17  Simon Josefsson  <jas@extundo.com>
63681
63682         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63683
63684 2005-10-17  Simon Josefsson  <jas@extundo.com>
63685
63686         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63687
63688         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63689
63690 2005-10-17  Bruno Haible  <bruno@clisp.org>
63691
63692         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63693         that it can also be used in a test.
63694
63695 2005-10-16  Bruno Haible  <bruno@clisp.org>
63696
63697         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63698         TESTS_ENVIRONMENT, so that individual tests can augment it.
63699
63700         * gnulib-tool (func_create_testdir): Use an intermediate target for
63701         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63702         macros, like $(ALLOCA_H), which cannot be passed through the command
63703         line.
63704
63705 2005-10-15  Simon Josefsson  <jas@extundo.com>
63706
63707         * modules/rijndael-tests: New file.
63708
63709         * modules/rijndael: New file.
63710
63711 2005-10-15  Simon Josefsson  <jas@extundo.com>
63712
63713         * m4/rijndael.m4: New file.
63714
63715 2005-10-15  Simon Josefsson  <jas@extundo.com>
63716
63717         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63718
63719         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63720
63721 2005-10-14  Simon Josefsson  <jas@extundo.com>
63722
63723         * tests/test-arcfour.c: New file.
63724
63725         * modules/arcfour, modules/arcfour-tests: New files.
63726
63727 2005-10-14  Simon Josefsson  <jas@extundo.com>
63728
63729         * m4/arcfour.m4: New file.
63730
63731 2005-10-14  Simon Josefsson  <jas@extundo.com>
63732
63733         * lib/arcfour.h, lib/arcfour.c: New files.
63734
63735 2005-10-14  Roland McGrath  <roland@redhat.com>
63736
63737         Import from libc.  [BZ #1331]
63738         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63739         macro argument.
63740         Reported by Matej Vela <vela@debian.org>.
63741
63742 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63743
63744         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63745         include <wchar.h>; no longer needed.
63746
63747 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63748
63749         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63750
63751 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63752         and  Ulrich Drepper  <drepper@redhat.com>
63753
63754         Import from libc.
63755         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63756         instead of inline stream orientation test and two separate
63757         function calls.  Pay no attention to USE_IN_LIBIO.
63758
63759 2005-10-13  Simon Josefsson  <jas@extundo.com>
63760
63761         * modules/gc-hmac-md5-tests: New file.
63762
63763         * tests/test-gc-hmac-sha1.c: New file.
63764
63765         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63766
63767         * modules/gc-hmac-md5-tests: New file.
63768
63769         * tests/test-gc-md5.c: New file.
63770
63771         * modules/gc-md5-tests: New file.
63772
63773 2005-10-13  Simon Josefsson  <jas@extundo.com>
63774
63775         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63776         Move memory allocation outside of loop.
63777
63778 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63779
63780         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63781         intermediate directory is in a read-only file system.  Problem
63782         reported by Eric Blake.
63783
63784 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63785
63786         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63787
63788 2005-10-12  Simon Josefsson  <jas@extundo.com>
63789
63790         * tests/test-hmac-sha1.c: New file.
63791
63792         * modules/hmac-sha1-tests: New file.
63793
63794         * modules/hmac-sha1: New file.
63795
63796 2005-10-12  Simon Josefsson  <jas@extundo.com>
63797
63798         * modules/gc-sha1: New file.
63799
63800 2005-10-12  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63803
63804         * tests/test-gc-pbkdf2-sha1.c: New file.
63805
63806 2005-10-12  Simon Josefsson  <jas@extundo.com>
63807
63808         * modules/gc-md5, modules/gc-hmac-md5: New files.
63809
63810         * modules/gc (Files): Remove md5, memxor and hmac files.
63811
63812 2005-10-12  Simon Josefsson  <jas@extundo.com>
63813
63814         * m4/gc-pbkdf2-sha1.m4: New file.
63815
63816         * m4/gc-hmac-sha1.m4: New file.
63817
63818         * m4/gc-sha1: New file.
63819
63820         * m4/hmac-sha1.m4: New file.
63821
63822 2005-10-12  Simon Josefsson  <jas@extundo.com>
63823
63824         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63825
63826         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63827
63828 2005-10-12  Simon Josefsson  <jas@extundo.com>
63829
63830         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63831         suggested by Bruno Haible <bruno@clisp.org>.
63832
63833 2005-10-12  Simon Josefsson  <jas@extundo.com>
63834
63835         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63836
63837 2005-10-12  Simon Josefsson  <jas@extundo.com>
63838
63839         * lib/gc-pbkdf2-sha1.c: New file.
63840
63841         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63842
63843 2005-10-12  Simon Josefsson  <jas@extundo.com>
63844
63845         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63846
63847         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63848
63849 2005-10-12  Simon Josefsson  <jas@extundo.com>
63850
63851         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63852         GC_USE_HMAC_MD5, respectively.
63853
63854         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63855         (gc_md5): Fix typo.
63856
63857         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63858
63859         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63860
63861         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63862
63863 2005-10-12  Bruno Haible  <bruno@clisp.org>
63864
63865         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63866         Reported by Stepan Kasal <kasal@ucw.cz>.
63867
63868 2005-10-11  Simon Josefsson  <jas@extundo.com>
63869
63870         * tests/test-crc.c: New file.
63871
63872         * modules/crc, modules/crc-tests: New files.
63873
63874 2005-10-11  Simon Josefsson  <jas@extundo.com>
63875
63876         * m4/crc.m4: New file.
63877
63878 2005-10-11  Simon Josefsson  <jas@extundo.com>
63879
63880         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63881
63882         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63883
63884         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63885
63886 2005-10-11  Simon Josefsson  <jas@extundo.com>
63887
63888         * lib/crc.h, lib/crc.c: New files.
63889
63890         * lib/gc.h (gc_hash_buffer): Add doc.
63891
63892 2005-10-11  Bruno Haible  <bruno@clisp.org>
63893
63894         * modules/c-strcasestr: New file.
63895         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63896
63897 2005-10-11  Bruno Haible  <bruno@clisp.org>
63898
63899         * modules/c-strcase: New file.
63900         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63901
63902 2005-10-11  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/strcasecmp.c: Include limits.h.
63905         (strcasecmp): Avoid integer overflow on exotic platforms.
63906         * lib/strncasecmp.c: Include limits.h.
63907         (strncasecmp): Avoid integer overflow on exotic platforms.
63908         Reported by Paul Eggert.
63909
63910 2005-10-11  Bruno Haible  <bruno@clisp.org>
63911
63912         * lib/c-strcasestr.h: New file, from GNU gettext.
63913         * lib/c-strcasestr.c: New file, from GNU gettext.
63914
63915 2005-10-11  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/c-strcase.h: New file, from GNU gettext.
63918         * lib/c-strcasecmp.c: New file, from GNU gettext.
63919         * lib/c-strncasecmp.c: New file, from GNU gettext.
63920
63921 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * modules/mempcpy (License): GPL -> LGPL.
63924         * modules/strchrnul (License): Likewise.
63925         * modules/sysexits (License): Likewise.
63926
63927 2005-10-08  Simon Josefsson  <jas@extundo.com>
63928
63929         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63930
63931 2005-10-07  Simon Josefsson  <jas@extundo.com>
63932
63933         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63934
63935 2005-10-06  Simon Josefsson  <jas@extundo.com>
63936
63937         * tests/test-hmac-md5.c: New file.
63938
63939         * modules/hmac-md5-tests: New file.
63940
63941         * modules/hmac-md5: New file.
63942
63943 2005-10-06  Simon Josefsson  <jas@extundo.com>
63944
63945         * m4/hmac-md5.m4: New file.
63946
63947         * m4/memxor.m4: Require gl_C_RESTRICT.
63948
63949 2005-10-06  Simon Josefsson  <jas@extundo.com>
63950
63951         * lib/memxor.c (memxor): Avoid casts and warnings.
63952
63953 2005-10-06  Simon Josefsson  <jas@extundo.com>
63954
63955         * lib/hmac-md5.c: New file.
63956
63957         * lib/hmac.h: New file.
63958
63959 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63962         promotes to int, not unsigned int, to catch the AIX 5.3
63963         compiler bug.
63964
63965 2005-10-05  Simon Josefsson  <jas@extundo.com>
63966
63967         * modules/memxor: New file.
63968
63969         * modules/iconv (Files): Move config.rpath to havelib, it is used
63970         there.
63971
63972         * modules/havelib (Files): Add config.rpath.
63973
63974 2005-10-05  Simon Josefsson  <jas@extundo.com>
63975
63976         * m4/memxor.m4: New file.
63977
63978 2005-10-05  Simon Josefsson  <jas@extundo.com>
63979
63980         * lib/memxor.c (memxor): Fix compiler error.
63981
63982         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63983         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63984
63985         * lib/memxor.h, lib/memxor.c: New files.
63986
63987         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63988         we assume all systems have it, suggested by Jim Meyering
63989         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63990         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63991         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63992         same reasons.
63993
63994 2005-10-05  Simon Josefsson  <jas@extundo.com>
63995
63996         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63997
63998 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64001         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64002         needed, since the source code now assumes these .h files.
64003
64004 2005-10-05  Derek Price  <derek@ximbiot.com>
64005
64006         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64007
64008 2005-10-05  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/stdint (License): Change to LGPL.
64011
64012 2005-10-04  Simon Josefsson  <jas@extundo.com>
64013
64014         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64015         D. Baushke" <mdb@gnu.org>.
64016
64017 2005-10-04  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/verify.h (verify_true): Provide alternative definition for C++.
64020
64021 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64024         (SSIZE_MAX): New macro, if not already defined.
64025         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64026         than 2 GiB.
64027
64028 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         Sync from coreutils.
64031         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64032         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64033         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64034         ULLONG_MAX doesn't work with 2.7.2.1.
64035
64036 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64039         From Ben Pfaff.
64040
64041         * modules/exclude (Depends-on): Depend on verify.
64042         * modules/strtoimax (Depends-on): Likewise.
64043         * modules/utimecmp (Depends-on): Likewise.
64044
64045 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * lib/exclude.c: Include verify.h.
64048         (verify): Remove.  All callers changed to use verify.h's version.
64049         * lib/strtoimax.c: Likewise.
64050         * lib/utimecmp.c: Likewis.e
64051
64052         Sync from coreutils.
64053         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64054         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64055         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64056         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64057         bother returning ENOSYS if settimeofday or stime fails; just let
64058         them return whatever errno they want to return.
64059         * lib/utimens.c: Include unistd.h, for dup2.
64060         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64061         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64062
64063 2005-10-02  Jim Meyering  <jim@meyering.net>
64064
64065         Sync from coreutils.
64066         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64067         from glibc-2.2.5 that fails for read-only files.
64068
64069 2005-10-02  Jim Meyering  <jim@meyering.net>
64070
64071         Sync from coreutils.
64072         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64073         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64074         `#if HAVE_CONFIG_H'.
64075         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64076         Remove AT_FDCWD test.
64077         Do not consume the fd unless successful.
64078         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64079         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64080         block, so that we don't even try to compile it if settimeofday is
64081         available.  This works around a compilation failure on OSF1 V5.1,
64082         due to stime requiring a `long int*' while tv_sec is `int'.
64083
64084 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64085
64086         Sync from coreutils.
64087         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64088         against `yes', rather than just testing for nonempty.
64089
64090 2005-10-01  Simon Josefsson  <jas@extundo.com>
64091
64092         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64093         and Darwin.
64094
64095         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64096         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64097         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64098         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64099         Check if struct addrinfo is declared.
64100
64101 2005-10-01  Simon Josefsson  <jas@extundo.com>
64102
64103         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64104         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64105         AI_* and EAI_* definitions.  Protect function declarations.
64106
64107 2005-10-01  Jim Meyering  <jim@meyering.net>
64108
64109         Sync from coreutils.
64110
64111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64112         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64113         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64115         in the inet and nsl libraries.  Required on Solaris 5.7.
64116
64117 2005-10-01  Jim Meyering  <jim@meyering.net>
64118
64119         Sync from coreutils.
64120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64121         in the inet and nsl libraries.  Required on Solaris 5.7.
64122
64123 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64124
64125         * lib/getdelim.c (getdelim): Remove unused variables.
64126
64127 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64130         so that the code works even with ancient cpp.  Portability problem
64131         with GCC 2.7.2.1 reported by Thomas M.Ott.
64132
64133 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64134
64135         * modules/regex (Depends-on): Add strcase.
64136
64137         * modules/gethostname (Licence): Change from GPL to LGPL, since
64138         gethostname.c is a trivial implementation of a standard library
64139         function.
64140         * modules/poll (License): Change from GPL to LGPL, since it's
64141         derived from LGPL code.
64142
64143 2005-09-27  Jim Meyering  <jim@meyering.net>
64144
64145         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64146         HAVE_CONFIG_H.
64147
64148         * lib/intprops.h (signed_type_or_expr__): Define.
64149         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64150         for unsigned types.
64151
64152 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * lib/verify.h (verify_expr): Remove, replacing with:
64155         (verify_true): New macro that returns true instead of void.
64156         (verify_type__): Remove.
64157         (verify): Use verify_true rather than verify_type__.
64158
64159 2005-09-26  Bruno Haible  <bruno@clisp.org>
64160
64161         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64162         is necessary.
64163         (lib_SOURCES): Remove mbchar.c.
64164         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64165         (Files): Add m4/mbrtowc.m4.
64166         * modules/mbiter: Likewise.
64167         * modules/mbuiter: Likewise.
64168
64169 2005-09-26  Bruno Haible  <bruno@clisp.org>
64170
64171         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64172         compile mbchar.c if they are not both present.
64173         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64174         * m4/mbiter.m4 (gl_MBITER): Likewise.
64175         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64176         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64177         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64178
64179 2005-09-25  Jim Meyering  <jim@meyering.net>
64180
64181         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64182         also uses socklen_t.
64183
64184 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         * lib/utimens.c (ENOSYS): Define if not already defined.
64187         (futimens): Support having a null PATH if the file descriptor
64188         is nonnegative.
64189
64190         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64191         Remove.
64192         (__attribute): Define to empty unless GCC 3.1 or later.
64193         This works around a core dump on OpenBSD 3.4, which has GCC
64194         2.95.3, which dumps core when given __attribute__(()).  It also
64195         simplifies other tests, since we really don't want to bother with
64196         worrying about which ancient version of GCC supported what.
64197         Original problem reported by Yoann Vandoorselaere, with part of
64198         the fix suggested by Derek Price.
64199
64200 2005-09-24  Jim Meyering  <jim@meyering.net>
64201
64202         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64203         so we can once again use a positive bitfield width of 1 -- now we
64204         don't have to explain why we were using a bitfield width of 2.
64205
64206 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64209         and similarly for the other external symbols.  Problem reported
64210         by James Gallager.
64211
64212         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64213         bug reported by Jim Meyering.
64214
64215         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64217         not needed, since socklen is a prerequisite module.
64218
64219 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64222         Problem reported by Eric Blake.
64223         (getaddrinfo): Initialize se so that it's not garbage.
64224         Redo internal storage allocation so that it doesn't make unportable
64225         assumptions about alignment.
64226         Fix a memory leak.
64227
64228         * lib/utimens.c (futimens): Use futimesat if available.
64229         Prefer it to futimes since it doesn't have the futimes bug.
64230
64231         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64232         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64233         Instead, declare a function that returns a pointer to an array,
64234         and use verify_type__ to declare the size of the array.
64235         Problem and germ of a solution reported by Bruno Haible.
64236         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64237         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64238
64239 2005-09-23  Jim Meyering  <jim@meyering.net>
64240
64241         Sync from coreutils.
64242         Correct build failure (socklen_t not defined) on at least
64243         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64244         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64245
64246 2005-09-23  Jim Meyering  <jim@meyering.net>
64247
64248         * modules/getaddrinfo (Depends-on): Add socklen.
64249
64250 2005-09-23  Bruno Haible  <bruno@clisp.org>
64251
64252         * tests/test-verify.c: New file.
64253
64254 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         Sync from coreutils.
64257
64258         * modules/argmatch (Depends-on): Add verify.
64259         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64260         unistd-safer.
64261         * modules/save-cwd (Depends-on): Likewise.
64262
64263         * modules/openat (Files): Add lib/openat-die.c.
64264         (Depends-on): Remove error, exitfail.
64265         Add dirname.
64266
64267         * modules/verify: New file.
64268         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64269         with "verify" module.
64270
64271 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         Sync from coreutils.
64274
64275         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64276         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64277         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64278         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64279         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64280         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64281         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64282         Don't bother checking for string.h, stdlib.h, unistd.h.
64283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64285         module's job.
64286         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64287         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64288
64289         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64290         (gl_GETDATE): Use it.
64291
64292         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64293
64294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         Sync from coreutils.
64297
64298         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64299         stat-time.h.
64300         * lib/argmatch.h: Include verify.h
64301         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64302         (ARGMATCH_ASSERT): Remove; unused.
64303         * lib/canonicalize.c: Assume STDC_HEADERS.
64304         * lib/exclude.c: Include "strcase.h".
64305         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64306         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64307         and stdio-safer.h.
64308         (getusershell): Call fopen, not fopen_safer.
64309         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64310         Do not include unistd-safer.h.
64311         (save_cwd): Don't call fd_safer; no longer needed
64312         now that we include fcntl--.h.
64313
64314         * lib/getdate.y (relative_time): New type.
64315         (RELATIVE_TIME_0): New constant.
64316         (parser_control): Use relative_time instead of doing it ourselves.
64317         (%union): Add new relative_time rel member.
64318         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64319         Now typeless.
64320         (relunit, relunit_snumber): Now of type rel.
64321         (zone, rel, relunit, get_date): Adjust to above changes.
64322
64323         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64324         Do not include unistd-safer.h.
64325         (getloadavg): Don't call fd_safer; no longer needed
64326         now that we include fcntl--.h.
64327
64328         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64329         (make_dir_parents): Treat ENOSYS like EEXIST.
64330
64331         Improve quality of diagnostics on restore_cwd failure.
64332         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64333         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64334         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64335         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64336         each time through the loop.  Do not diagnose restore_cwd failure;
64337         that is the caller's job (and perhaps the caller does not care).
64338
64339         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64340         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64341         If the file already exists but is not a directory, don't bother
64342         to try to make its parents.
64343         Close potential file descriptor leak if we can't chdir("/") (!).
64344         Don't always return true if chdir($PWD) fails; return true only
64345         if the requested action was done successfully (except for the
64346         chdir($PWD)).
64347         Don't log final directory unless we actually made it.
64348         Refactor to avoid duplicate code to fix up permissions.
64349         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64350
64351         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64352         to make it a bit faster and (I hope) clearer.
64353         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64354         Fix bug in formats like %2N.
64355
64356         * lib/verify.h: New file.
64357
64358 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64359
64360         Sync from coreutils.
64361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64362
64363 2005-09-22  Jim Meyering  <jim@meyering.net>
64364
64365         Sync from coreutils.
64366
64367         * m4/lstat.m4 (gl_FUNC_LSTAT):
64368         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64369         Remove obsolete comment.
64370         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64371         * m4/xstrtod.m4: Likewise.
64372
64373         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64374
64375 2005-09-22  Jim Meyering  <jim@meyering.net>
64376
64377         Sync from coreutils.
64378
64379         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64380
64381         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64382         the .tm_year member, since otherwise gcc-4.0 would now warn about
64383         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64384
64385         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64386         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64387
64388         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64389         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64390         when run in a time zone for which daylight savings time is in effect
64391         for the starting date.
64392
64393         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64394         stop us from restricting permissions of just-created absolute-named
64395         directories.
64396         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64397         to restore initial working directory.
64398         * lib/mkdir-p.c (make_dir_parents): New parameter:
64399         different_working_dir, to tell caller if/when we change the working
64400         directory and are unable to return to the initial one.
64401         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64402         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64403         `return false'.  This fixes a bug introduced on 2004-07-30.
64404
64405         * lib/openat.c (fdopendir): Be sure to close the supplied
64406         file descriptor before returning.  This makes our replacement
64407         implementation a little closer to Solaris's, where fdopendir
64408         ties the file descriptor to the returned DIR* pointer.
64409         * lib/openat.c (unlinkat): New function.
64410         * lib/openat.h (unlinkat): Add prototype.
64411         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64412         (openat_restore_fail): Rename from openat_restore_die.
64413         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64414
64415         Provide an alternative to exiting immediately upon save_cwd or
64416         restore_cwd failure.  Now, an application can arrange e.g.,
64417         to perform a longjump in that case.
64418         * lib/openat.c: Include dirname.h.
64419         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64420         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64421         and openat_restore_die rather than calling error directly.
64422         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64423
64424         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64425         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64426         define.
64427
64428         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64429         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64430                             int utc, int nanoseconds);
64431         Background:
64432         date should not have to allocate a megabyte of virtual memory to
64433         handle a format argument like +%1048575T.  When implemented with
64434         strftime, it must allocate such a buffer, use strftime to fill it
64435         in, print it, then free it.
64436         With fprintftime, it simply prints everything and exits.
64437         With no need for memory allocation, that's one fewer way to fail.
64438         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64439         optional field width, not before, so we accept %9:z, not %:9z.
64440         (my_strftime): Be sure to use L_('x') for literals.
64441
64442         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64443         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64444         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64445         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64446         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64447         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64448         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64449         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64450         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64451         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64452         * lib/xgethostname.c, lib/xreadlink.c:
64453         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64454
64455         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64456         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64457         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64458         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64459         and don't include <sys/file.h>).
64460
64461 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64462
64463         Sync from coreutils.
64464
64465         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64466         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64467         [!LDAV_DONE]: Avoid unused variable warning.
64468
64469 2005-09-21  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/unicodeio.h (unicode_to_mb): New declaration.
64472
64473 2005-09-20  Derek Price  <derek@ximbiot.com>
64474
64475         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64476         getaddrinfo.h.
64477
64478 2005-09-20  Bruno Haible  <bruno@clisp.org>
64479
64480         * gnulib-tool: Remove trailing slashes from the values specified for
64481         --source-base, --m4-base, --tests-base, --aux-dir.
64482         Suggested by Simon Josefsson <jas@extundo.com>.
64483
64484 2005-09-20  Bruno Haible  <bruno@clisp.org>
64485
64486         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64487         func_modules_to_filelist, func_import, func_create_testdir): Make all
64488         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64489         change when gnulib-tool is invoked in a different locale.
64490
64491 2005-09-19  Simon Josefsson  <jas@extundo.com>
64492
64493         * m4/socklen.m4: Fix typo.
64494
64495 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64496
64497         Use a consistent style for including <config.h>.
64498         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64499         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64500         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64501         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64502         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64503         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64504         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64505         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64506         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64507         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64508         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64509         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64510         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64511         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64512         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64513         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64514         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64515         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64516         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64517         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64518         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64519         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64520         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64521         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64522         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64523         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64524         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64525         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64526         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64527         lib/xstrtoumax.c, lib/yesno.c:
64528         Standardize inclusion of config.h.
64529         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64530         lib/inttostr.h:  Removed inclusion of config.h from header files.
64531         * lib/inttostr.c:  Adjusted in-tree users.
64532         * lib/timespec.h: Remove superfluous warning to include config.h.
64533         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64534         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64535         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64536         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64537         config.h with HAVE_CONFIG_H.
64538
64539 2005-09-19  Jim Meyering  <jim@meyering.net>
64540
64541         * modules/pathmax (License): Change to LGPL.
64542
64543 2005-09-19  Derek Price  <derek@ximbiot.com>
64544
64545         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64546
64547 2005-09-19  Bruno Haible  <bruno@clisp.org>
64548
64549         * gnulib-tool (import): Provide default for --tests-base.
64550
64551 2005-09-19  Bruno Haible  <bruno@clisp.org>
64552
64553         * doc/quote.texi: New file, extracted from gnulib.texi.
64554         * doc/ctime.texi: New file, extracted from gnulib.texi.
64555         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64556         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64557         * doc/gnulib.texi: Include them.
64558
64559 2005-09-18  Bruno Haible  <bruno@clisp.org>
64560
64561         Portability fix.
64562         * gnulib-tool (func_readlink): New function.
64563         (func_ln_if_changed): Use it.
64564
64565 2005-09-18  Bruno Haible  <bruno@clisp.org>
64566
64567         * gnulib-tool: Support --with-tests also with --import.
64568         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64569         (func_import): Use variables $testsbase and $inctests. Emit a
64570         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64571         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64572         SUBDIRS += $testsdir.
64573         (func_create_testdir): Update.
64574
64575 2005-09-18  Bruno Haible  <bruno@clisp.org>
64576
64577         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64578         instead of $dry_run.
64579         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64580         (func_ln_if_changed): Don't handle dry-run here.
64581         (func_import): In dry-run mode, detect more precisely which actions
64582         would be performed, and don't use "...ing" verbs.
64583
64584 2005-09-18  Bruno Haible  <bruno@clisp.org>
64585
64586         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64587         (func_import): Use join on two temporary files instead of three nested
64588         loops, in order to determine which files are new or old.
64589
64590 2005-09-18  Bruno Haible  <bruno@clisp.org>
64591
64592         * gnulib-tool (func_import): Comment out code that spits out the
64593         new files with --dry-run.
64594
64595 2005-09-18  Bruno Haible  <bruno@clisp.org>
64596
64597         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64598
64599 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * lib/stat-time.h: New file.
64602         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64603         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64604         in a different way.
64605         (timespec_cmp): New function.
64606         * lib/utimecmp.c: Include stat-time.h.
64607         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64608         members exist, not on the obsolescent ST_MTIM_NSEC.
64609         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64610
64611 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64614
64615 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * MODULES.html.sh (File system functions): Add stat-time.
64618         * modules/stat-time: New file.
64619         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64620         is now done in a different way, by the stat-time module.
64621         * modules/utimecmp (Depends-on): Add stat-time.
64622
64623 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * m4/st_mtim.m4: Remove.  Superseded by...
64626         * m4/stat-time.m4: New file.
64627         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64628         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64629
64630 2005-09-15  Derek Price  <derek@ximbiot.com>
64631
64632         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64633
64634 2005-09-15  Derek Price  <derek@ximbiot.com>
64635
64636         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64637         * lib/regex_internal.c: Ditto, using this...
64638         (__GNUC_PREREQ): ...new macro.
64639         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64640         using...
64641         (__GNUC_PREREQ): ...this new macro.
64642
64643         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64644
64645 2005-09-15  Derek Price  <derek@ximbiot.com>
64646             Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64649         changes, consolidating in...
64650         * lib/regex_internal.h: ...this file.
64651
64652 2005-09-13  Jim Meyering  <jim@meyering.net>
64653
64654         * lib/canon-host.c: Filter through gnu indent and reword comments
64655         slightly.
64656         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64657
64658 2005-09-13  Derek Price  <derek@ximbiot.com>
64659
64660         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64661         failure.
64662         Reported by Jim Meyering  <jim@meyering.net>.
64663
64664 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64665
64666         * lib/base64.c: Typo.
64667         (base64_encode): Put b64str in initialized data section.
64668
64669 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         Merge glibc and coreutils changes into gnulib, plus a few
64672         extra fixes.
64673         * lib/md5.c: Use #error rather than a string.
64674         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64675         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64676         (__attribute__): Define to empty for non recent-GCC.
64677         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64678         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64679         Renamed from their non-__ counterparts, with new macros replacing
64680         them if not _LIBC.  Add __THROW attribute.
64681         (rol): Remove.
64682         (struct md5_ctx): Align buffer if using GCC.
64683         * lib/sha1.h (struct sha1_ctx): Likewise.
64684         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64685         The old name was backwards.
64686         (NOTSWAP): Remove; not used.
64687         (rol): New macro, moved here from md5.h.
64688         (sha1_process_block): Remove a FIXME that doesn't make sense.
64689
64690 2005-09-12  Derek Price  <derek@ximbiot.com>
64691
64692         Return usable errors from canon-host.
64693         * lib/canon-host.h: New file.
64694         * lib/canon-host.c (canon_host): Wrap...
64695         (canon_host_r): ...this new function, which now relies exclusively on
64696         getaddrinfo.
64697         (ch_strerror): New function.
64698         (last_cherror): New global.
64699         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64700         interface.
64701         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64702         void *.
64703         (freeaddrinfo): Free ai->ai_canonname when set.
64704
64705 2005-09-12  Derek Price  <derek@ximbiot.com>
64706
64707         Make canon-host require getaddrinfo.
64708         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64709         AC_LIBSOURCE canon-host.h.  Call...
64710         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64711         gl_GETADDRINFO.
64712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64713
64714 2005-09-12  Derek Price  <derek@ximbiot.com>
64715
64716         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64717         LGPL.
64718         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64719
64720 2005-09-12  Derek Price  <derek@ximbiot.com>
64721
64722         * lib/gai_strerror.c: Include config.h when available.  Include
64723         getaddrinfo.h before other headers to test interface.
64724         Reported by Larry Jones <lawrence.jones@ugs.com>.
64725
64726 2005-09-12  Derek Price  <derek@ximbiot.com>
64727             Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * modules/glob (Files): Add glob-libc.h.
64730
64731 2005-09-12  Derek Price  <derek@ximbiot.com>
64732             Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64735         glob_.h, glob-libc.h.
64736         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64737
64738 2005-09-12  Derek Price  <derek@ximbiot.com>
64739             Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64742         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64743         protecting things that should be done only in gnulib contexts.
64744         * lib/glob_.h: New file, containing only the glob things needed for
64745         gnulib.
64746         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64747         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64748         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64749         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64750         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64751         and to respect the namespace rules better.
64752
64753 2005-09-08  Simon Josefsson  <jas@extundo.com>
64754
64755         * modules/socklen: New file.
64756
64757 2005-09-08  Simon Josefsson  <jas@extundo.com>
64758
64759         * m4/socklen.m4: New file.
64760
64761 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * modules/utimens (Files): Add m4/utimbuf.m4, since
64764         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64765         Reported by Sergey Poznyakoff.
64766
64767 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64770         definitions, since that's the preferred style in glibc.
64771         Fix a minor spacing issue, and update copyright notice to match
64772         glibc's.
64773
64774 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64775
64776         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64777
64778 2005-09-06  Simon Josefsson  <jas@extundo.com>
64779
64780         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64781         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64782
64783 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64786         warning.
64787
64788 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         * config/srclist.txt: Add glibc bug 1302.
64791
64792 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         Change bitset word type from unsigned int to unsigned long int,
64795         as this has better performance on typical 64-bit hosts.
64796         Port bitset code to hosts with unusual word sizes.
64797         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64798         (build_collating_symbol):
64799         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64800         argument is a bitset.  This is merely a style issue, but it makes
64801         it clearer that an entire array is expected.
64802         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64803         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64804         Port to the case where bitset_word is not the same as unsigned int.
64805         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64806         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64807         Likewise.
64808         * lib/regexec.c (check_dst_limits_calc_pos_1,
64809         check_subexp_matching_top):
64810         (build_trtable, group_nodes_into_DFAstates):
64811         Likewise.
64812         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64813         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64814         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64815         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64816         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64817         * lib/regcomp.c (optimize_subexps, lower_subexp):
64818         Work even if bitset_word has holes in its bitwise representation.
64819         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64820         * lib/regexec.c (check_dst_limits_calc_pos_1,
64821         check_subexp_matching_top):
64822         Likewise.
64823         * lib/regex_internal.c (re_string_reconstruct):
64824         Don't assume UCHAR_MAX == 255.
64825         * lib/regex_internal.h (bitset_set_all): Likewise.
64826         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64827         All uses changed.
64828         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64829         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64830         All uses changed.
64831         (BITSET_WORD_MAX): New macro.
64832         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64833         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64834         (bitset_empty, bitset_copy):
64835         Prefer sizeof (bitset) to multiplying it out ourselves.
64836         (bitset_not_merge): Remove; unused.
64837         (bitset_contain): Return bool, not unsigned int with one bit on.
64838         All callers changed.
64839         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64840         alignment than re_node_set; do this by defining a new internal
64841         type struct dests_alloc and using it to allocate memory.
64842
64843 2005-09-05  Bruno Haible  <bruno@clisp.org>
64844
64845         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64846         links.
64847
64848 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64849
64850         * modules/size_max (Makefile.am): Add size_max.h
64851
64852 2005-09-04  Derek Price  <derek@ximbiot.com>
64853
64854         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64855
64856 2005-09-03  Simon Josefsson  <jas@extundo.com>
64857
64858         * gnulib-tool: Fix typo.
64859
64860 2005-09-03  Simon Josefsson  <jas@extundo.com>
64861
64862         * config/srclist.txt: Add glibc bug 1293.
64863
64864 2005-09-03  Derek Price  <derek@ximbiot.com>
64865
64866         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64867         From Larry Jones <lawrence.jones@ugs.com>.
64868
64869 2005-09-02  Simon Josefsson  <jas@extundo.com>
64870
64871         * modules/socklen: New file.
64872
64873 2005-09-02  Simon Josefsson  <jas@extundo.com>
64874
64875         * modules/havelib: New module.
64876
64877         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64878         Use havelib.
64879
64880 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         Check for arithmetic overflow when calculating sizes, to prevent
64883         some buffer-overflow issues.  These patches are conservative, in the
64884         sense that when I couldn't determine whether an overflow was possible,
64885         I inserted a run-time check.
64886         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64887         macros.
64888         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64889         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64890         (re_xnrealloc, re_x2nrealloc): New inline functions.
64891         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64892         parse_bracket_exp):
64893         (build_equiv_class, build_charclass): Check for arithmetic overflow
64894         in size expression calculations.
64895         * lib/regex_internal.c (re_string_realloc_buffers):
64896         (build_wcs_upper_buffer, re_node_set_add_intersect):
64897         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64898         (re_dfa_add_node, register_state): Likewise.
64899         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64900         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64901         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64902         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64903
64904 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64905
64906         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64907         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64908
64909 2005-09-02  Bruno Haible  <bruno@clisp.org>
64910
64911         Support for lib vs. lib64 distinction on biarch platforms.
64912         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64913         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64914         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64915
64916 2005-09-02  Bruno Haible  <bruno@clisp.org>
64917
64918         * gnulib-tool (import): In the other first-use case, provide defaults
64919         as well.
64920
64921 2005-09-02  Bruno Haible  <bruno@clisp.org>
64922
64923         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64924         patches not yet found in the latest gettext release.
64925
64926 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64929         to avoid a collision with bits/local_lim.h in glibc.
64930         All uses changed.  Problem reported by Dmitry V. Levin in
64931         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64932
64933         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64934         bugs in int versus size_t comparisons.
64935         (re_string_context_at): Fix bug where the code assumed that
64936         Idx is signed.
64937
64938         Use bool where appropriate.
64939         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64940         All callers changed.
64941         (calc_eclosure_iter): Likewise, for ROOT arg.
64942         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64943         (build_charclass_op): Likewise, for NON_MATCH arg.
64944         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64945         (re_string_construct_common): Likewise, for ICASE arg.
64946         * lib/regexec.c (re_search_2_stub, re_search_stub):
64947         Likewise, for RET_LEN arg.
64948         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64949         (set_regs): Likewise, for FL_BACKTRACK arg.
64950         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64951         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64952         (calc_eclosure_iter, parse_bracket_exp):
64953         Use bool for internal variables that are booleans.
64954         * lib/regexec.c (re_search_internal, check_matching,
64955         proceed_next_node):
64956         (set_regs, build_sifted_states, sift_states_bkref):
64957         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64958         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64959         (find_collation_sequence_value):
64960         Likewise.
64961         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64962         (re_node_set_compare):
64963         Return bool, not int. All callers changed.
64964         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64965         (build_trtable, check_node_accept): Likewise.
64966         * lib/regex_internal.h: Include stdbool.h.
64967
64968         Fix bugs uncovered when converting to bool.
64969         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64970         failure instead of charging ahead blindly.
64971         * lib/regex_internal.c (register_state): Likewise.
64972         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64973         for freeing internal storage.
64974         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64975         bitset pieces used as boolean, to avoid undefined behavior
64976         on hosts that do int overflow checking.
64977
64978 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * config/srclist.txt: Add glibc bugs 1285-1287.
64981
64982 2005-09-01  Jim Meyering  <jim@meyering.net>
64983
64984         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64985         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64986         Require gl_STAT_MACROS, too.
64987
64988 2005-09-01  Bruno Haible  <bruno@clisp.org>
64989
64990         * gnulib-tool (import): In the first-use case, provide defaults.
64991
64992 2005-09-01  Bruno Haible  <bruno@clisp.org>
64993
64994         * gnulib-tool (func_import): Remove the .tmp files.
64995
64996 2005-09-01  Bruno Haible  <bruno@clisp.org>
64997
64998         * gnulib-tool (func_import): Fix handling of symbolic links.
64999
65000 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65001
65002         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65003         old glibc regex code mishandles strings longer than 2**31 bytes.
65004         This patch fixes this when the regex code is used in gnulib
65005         (i.e., outside glibc).
65006
65007         This patch should not affect the use of the regex code inside
65008         glibc.  No doubt this problem also needs to be handled for glibc
65009         as well, but the result will be an incompatible change to the
65010         glibc ABI, and the old ABI will have to be supported too.  That
65011         can be the the subject for another patch.
65012
65013         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65014         governing whether the rest of this patch is active.  By default,
65015         the macro is disabled and the patch has no effect.
65016         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65017         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65018         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65019         (re_match_2, re_set_registers): Use the new types.
65020         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65021         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65022         New macros.
65023         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65024         (re_string_context_at, bin_tree_t, re_dfastate_t):
65025         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65026         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65027         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65028         (re_string_char_size_at, re_string_wchar_at):
65029         (re_string_elem_size_at):
65030         Use the new types and macros to port to 64-bit hosts.
65031         Use unsigned types for internal values, so that the code
65032         mostly works even for arrays larger than SSIZE_MAX.
65033         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65034         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65035         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65036         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65037         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65038         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65039         (calc_inveclosure, parse_dup_op, build_range_exp):
65040         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65041         (fetch_number, create_token_tree, mark_opt_subexp):
65042         Likewise.
65043         * lib/regex_internal.c (re_string_construct_common,
65044         create_ci_newstate):
65045         (create_cd_newstate, re_string_allocate, re_string_construct):
65046         (re_string_realloc_buffers, build_wcs_upper_buffer):
65047         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65048         (re_string_reconstruct, re_string_peek_byte_case):
65049         (re_string_fetch_byte_case, re_string_context_at):
65050         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65051         (re_node_set_init_copy, re_node_set_add_intersect):
65052         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65053         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65054         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65055         (re_acquire_state, re_acquire_state_context, register_state):
65056         Likewise.
65057         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65058         search_cur_bkref_entry):
65059         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65060         (re_search_internal, re_search_2_stub, re_search_stub)
65061         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65062         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65063         (update_cur_sifted_state, check_dst_limits):
65064         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65065         (check_subexp_limits, sift_states_bkref, merge_state_array):
65066         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65067         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65068         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65069         (expand_bkref_cache, check_node_accept_bytes):
65070         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65071         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65072         (acquire_init_state_context, check_halt_node_context):
65073         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65074         (sift_states_backward, clean_state_log_if_needed):
65075         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65076         (find_recover_state, transit_state_sb, transit_state_mb):
65077         (transit_state_bkref, build_trtable, match_ctx_clean):
65078         Likewise.
65079         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65080         to work around an assumption that REG_MISSING is negative.
65081
65082         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65083         (seek_collating_symbol_entry) [defined _LIBC]:
65084         (lookup_collation_sequence_value) [defined _LIBC]:
65085         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65086         Use prototypes rather than old-style function definitions.
65087         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65088         (transit_state_sb) [0]:
65089         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65090
65091         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65092         rm_eo.
65093
65094         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65095         (optimize_subexps, lower_subexp):
65096         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65097         since the signed shift might overflow.  Use 1u<<31 instead.
65098         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65099         Likewise.
65100         * lib/regexec.c (check_dst_limits_calc_pos_1,
65101         check_subexp_matching_top): Likewise.
65102
65103         * lib/regcomp.c (optimize_subexps, lower_subexp):
65104         Use CHAR_BIT rather than 8, for clarity.
65105         * lib/regexec.c (check_dst_limits_calc_pos_1):
65106         (check_subexp_matching_top): Likewise.
65107         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65108         have to worry about portability issues when shifting it left.
65109         Remove no-longer-needed test for table_size > 0.
65110         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65111         in a word, as the resulting behavior is undefined.
65112         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65113         in one case, a <= should have been an <, and in another case the
65114         whole test was missing.
65115         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65116         the standard name CHAR_BIT.
65117         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65118         this is not true on one's complement and signed-magnitude hosts.
65119
65120         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65121         next_last_offset.
65122         (struct re_dfa_t): Remove unused member states_alloc.
65123         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65124
65125 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65128         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65129         and large-file glibc and in 32-bit large-file Solaris.
65130
65131 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65132
65133         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65134         lengths fit in regoff_t; this isn't true if regoff_t is the same
65135         width as size_t.
65136         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65137         (= START + RANGE) instead of RANGE.  This avoids overflow
65138         problems when regoff_t is the same width as size_t.
65139         All callers changed.
65140         (re_search_2_stub): Check for overflow when adding the
65141         sizes of the two strings.
65142         (re_search_stub): Check for overflow when adding START
65143         to RANGE; if it occurs, substitute the extreme value.
65144
65145 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65148
65149 2005-08-31  Jim Meyering  <jim@meyering.net>
65150
65151         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65152         a pointer-to-const.
65153         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65154         (register_state): Likewise.
65155         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65156         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65157         (group_nodes_into_DFAstates): Likewise.
65158
65159 2005-08-31  Jim Meyering  <jim@meyering.net>
65160
65161         * check-module: Add a FIXME comment.
65162
65163 2005-08-31  Eric Blake  <ebb9@byu.net>
65164
65165         * modules/unistd-safer (Files): Add unistd--.h.
65166         * modules/stdio-safer (Files): Add stdio--.h.
65167
65168 2005-08-31  Derek Price  <derek@ximbiot.com>
65169
65170         * lib/getdelim.c (getdelim): Return EOF on EOF.
65171         Reported by Larry Jones <lawrence.jones@ugs.com>.
65172
65173 2005-08-31  Bruno Haible  <bruno@clisp.org>
65174
65175         Avoid unnecessary diffs in the generated lib/Makefile.am.
65176         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65177         the generated files.
65178         (func_import): Don't set cmd.
65179
65180 2005-08-31  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/strstr.c: Include <stddef.h>, for NULL.
65183         * lib/strcasestr.c: Likewise.
65184         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65185
65186 2005-08-31  Bruno Haible  <bruno@clisp.org>
65187
65188         * gnulib-tool: New option --macro-prefix.
65189         (func_import): Use macro_prefix.
65190         (import): Handle option --macro-prefix.
65191
65192 2005-08-31  Bruno Haible  <bruno@clisp.org>
65193
65194         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65195         Also use new variables cached_lgpl, cached_libtool.
65196
65197 2005-08-31  Bruno Haible  <bruno@clisp.org>
65198
65199         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65200         always instantiating them.
65201
65202 2005-08-31  Bruno Haible  <bruno@clisp.org>
65203
65204         * gnulib-tool (func_import): Read the previous cached settings
65205         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65206         earlier added by gnulib but are now dropped. Warn when a gnulib file
65207         overwrites a non-gnulib file.
65208
65209 2005-08-31  Bruno Haible  <bruno@clisp.org>
65210
65211         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65212         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65213         projects that don't keep autogenerated files in CVS. Put into
65214         actioncmd only the specified modules, not the transitive closure.
65215
65216 2005-08-31  Bruno Haible  <bruno@clisp.org>
65217
65218         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65219         Create directories that shall be filled.
65220         (import): Don't look for gl_* macros in configure.ac. Recurse across
65221         all directories containing a gnulib-cache.m4 files, if meaningful.
65222
65223 2005-08-31  Bruno Haible  <bruno@clisp.org>
65224
65225         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65226         (import): Set seen_libtool when we see gl_LIBTOOL.
65227
65228 2005-08-31  Bruno Haible  <bruno@clisp.org>
65229
65230         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65231         declaration macro definitions from generated gnulib.m4.
65232
65233 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65234
65235         * lib/iconvme.h: Add prototype for iconv_alloc.
65236
65237 2005-08-29  Simon Josefsson  <jas@extundo.com>
65238
65239         * lib/iconvme.c: Fix errno.
65240
65241 2005-08-29  Bruno Haible  <bruno@clisp.org>
65242
65243         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65244         that it works when the directory contains spaces.
65245
65246 2005-08-29  Bruno Haible  <bruno@clisp.org>
65247
65248         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65249
65250 2005-08-29  Bruno Haible  <bruno@clisp.org>
65251
65252         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65253         Emit more advice.
65254
65255 2005-08-29  Bruno Haible  <bruno@clisp.org>
65256         and Stepan Kasal  <kasal@ucw.cz>
65257
65258         * check-module: If more parameters are given, check each of them
65259         separately; add more exceptions, as noted by Jim Meyering.
65260         (check_module): New procedure.
65261         (%exempt_header): Now contains all exceptions.
65262
65263 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65264
65265         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65266
65267 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65268
65269         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65270
65271 2005-08-28  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/gnulib-tool.m4: New file.
65274
65275 2005-08-27  Jim Meyering  <jim@meyering.net>
65276
65277         * modules/unistd-safer (Files): Add pipe-safer.c.
65278         * modules/fcntl-safer (Files): Add creat-safer.c.
65279
65280 2005-08-27  Jim Meyering  <jim@meyering.net>
65281
65282         * m4/stdlib-safer.m4: New file.  From coreutils.
65283         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65284         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65285         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65286         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65287         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65288
65289 2005-08-27  Jim Meyering  <jim@meyering.net>
65290
65291         * lib/fopen-safer.c: Merge minor changes from coreutils.
65292         * lib/dup-safer.c: Likewise.
65293         * lib/fd-safer.c: Likewise.
65294
65295         Merge from coreutils.
65296         * lib/stdio--.h: New file.
65297         * lib/stdlib--.h: New file.
65298         * lib/mkstemp-safer.c: New file.
65299
65300         GNU tar needs these.
65301         * lib/pipe-safer.c: New file.
65302         * lib/creat-safer.c: New file.
65303         * lib/fcntl--.h (creat): Define to creat_safer.
65304         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65305         * lib/unistd--.h (pipe): Define to pipe_safer.
65306         * lib/unistd-safer.h: Declare pipe_safer.
65307
65308 2005-08-26  Simon Josefsson  <jas@extundo.com>
65309
65310         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65311         Haible <bruno@clisp.org>.
65312
65313 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65314
65315         * lib/regex_internal.h: Remove all references to
65316         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65317         or better.
65318         (bitset_not, bitset_merge, bitset_not_merge):
65319         (bitset_mask, re_string_allocate, re_string_construct):
65320         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65321         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65322         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65323         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65324         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65325         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65326         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65327         (re_acquire_state_context):
65328         Remove unnecessary forward decls.
65329         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65330         Put __attribute at function definition,
65331         now that the function decl has been removed.
65332         * lib/regex_internal.c (re_string_peek_byte_case):
65333         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65334         Likewise.
65335
65336 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65337
65338         * m4/regex.m4: Add AC_PREREQ(2.50).
65339         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65340
65341 2005-08-25  Simon Josefsson  <jas@extundo.com>
65342
65343         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65344         __fsetlocking.
65345
65346 2005-08-25  Simon Josefsson  <jas@extundo.com>
65347
65348         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65349         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65350         GLIBC specific code.
65351
65352 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65353
65354         Make regex safe for g++.  This fixes one real bug (an "err"
65355         that should have been "*err").  g++ problem reported by
65356         Sam Steingold.
65357         * lib/regex_internal.h (re_calloc): New macro, consistent with
65358         re_malloc etc.  All callers of calloc changed to use re_calloc.
65359         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65360         not int.  All callers changed.
65361         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65362         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65363         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65364         (find_recover_state): Change "err" to "*err"; this fixes what
65365         appears to be a real bug.
65366         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65367         versus int.
65368
65369 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         * modules/regex (Depends-on): Add malloc, since the code
65372         assumes that !malloc(0) means failure.
65373
65374 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65377
65378         alloca modernization/simplification for regex.
65379         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65380         needs to be at the start of the file, and can be moved into
65381         regex_internal.h and simplified.
65382         * lib/regex_internal.h: Include <alloca.h>.
65383         (__libc_use_alloca) [!defined _LIBC]: New macro.
65384         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65385         now works outside glibc.
65386
65387 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * config/srclist.txt: Add glibc bugs 1241, 1245.
65390
65391 2005-08-25  Jim Meyering  <jim@meyering.net>
65392
65393         * lib/open-safer.c: Include <config.h>.
65394         Otherwise, we'd lose LARGEFILE support in any file using
65395         e.g. "fcntl--.h"
65396
65397 2005-08-25  Bruno Haible  <bruno@clisp.org>
65398
65399         * m4/minmax.m4: Require autoconf 2.52.
65400         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65401         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65402         alternatives of translit over the alphabet.
65403         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65404
65405 2005-08-24  Simon Josefsson  <jas@extundo.com>
65406
65407         * tests/test-getpass.c: New file.
65408
65409 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65410
65411         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65412         for GNU regex features.
65413
65414 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65417         * lib/regex.h (regerror): Likewise.
65418
65419         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65420         requires this.  (The code never needed it.)
65421
65422         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65423         All uses of recently-renamed identifiers changed to use the new,
65424         POSIX-compliant names.  The code will build and run just fine
65425         without these changes, but it's better to eat our own dog food
65426         and use the standard-conforming names.
65427
65428         * lib/regex.h: Fix a multitude of POSIX name space violations.
65429         These changes have an effect only for programs that define
65430         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65431         do not change anything for programs compiled in the normal way.
65432         Also, there is no effect on the ABI.
65433
65434         (_REGEX_SOURCE): New macro.
65435         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65436         defined and _GNU_SOURCE is not; this fixes a name space violation.
65437
65438         Rename the following macros to obey POSIX requirements.
65439         The old names are still visible as macros if _REGEX_SOURCE is defined.
65440         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65441         RE_BACKSLASH_ESCAPE_IN_LISTS.
65442         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65443         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65444         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65445         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65446         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65447         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65448         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65449         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65450         (REG_INTERVALS): renamed from RE_INTERVALS.
65451         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65452         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65453         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65454         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65455         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65456         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65457         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65458         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65459         RE_UNMATCHED_RIGHT_PAREN_ORD.
65460         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65461         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65462         (REG_DEBUG): renamed from RE_DEBUG.
65463         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65464         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65465         unusual, since we can't clash with the POSIX REG_ICASE.
65466         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65467         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65468         (REG_NO_SUB): renamed from RE_NO_SUB.
65469         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65470         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65471         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65472         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65473         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65474         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65475         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65476         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65477         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65478         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65479         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65480         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65481         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65482         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65483         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65484         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65485         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65486         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65487         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65488         (REG_FIXED): Renamed from REGS_FIXED.
65489         (REG_NREGS): Renamed from RE_NREGS.
65490
65491         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65492         of other REG_* macros, since POSIX says the user is allowed to
65493         #undef these macros selectively.
65494
65495         (reg_errcode_t): Update comment stating what other tables need
65496         to be consistent.
65497
65498         Rename the following enum values to obey POSIX requirements.
65499         The old names are still visible as macros.
65500         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65501         is not defined, since GNU is supposed to be a superset of POSIX as
65502         much as possible, and since we want reg_errcode_t to be a signed
65503         type for implementation consistency.
65504         (_REG_NOERROR): Renamed from REG_NOERROR.
65505         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65506         (_REG_BADPAT): Renamed from REG_BADPAT.
65507         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65508         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65509         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65510         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65511         (_REG_EBRACK): Renamed from REG_EBRACK.
65512         (_REG_EPAREN): Renamed from REG_EPAREN.
65513         (_REG_EBRACE): Renamed from REG_EBRACE.
65514         (_REG_BADBR): Renamed from REG_BADBR.
65515         (_REG_ERANGE): Renamed from REG_ERANGE.
65516         (_REG_ESPACE): Renamed from REG_ESPACE.
65517         (_REG_BADRPT): Renamed from REG_BADRPT.
65518         (_REG_EEND): Renamed from REG_EEND.
65519         (_REG_ESIZE): Renamed from REG_ESIZE.
65520         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65521         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65522         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65523         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65524         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65525
65526         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65527         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65528         changed.  But support the old name if the new one is not defined
65529         and if _REGEX_SOURCE.
65530
65531         Change the following member names in struct re_pattern_buffer.
65532         The old names are still supported if !_REGEX_SOURCE.
65533         The new names are always supported, regardless of _REGEX_SOURCE.
65534         (re_buffer): Renamed from buffer.
65535         (re_allocated): Renamed from allocated.
65536         (re_used): Renamed from used.
65537         (re_syntax): Renamed from syntax.
65538         (re_fastmap): Renamed from fastmap.
65539         (re_translate): Renamed from translate.
65540         (re_can_be_null): Renamed from can_be_null.
65541         (re_regs_allocated): Renamed from regs_allocated.
65542         (re_fastmap_accurate): Renamed from fastmap_accurate.
65543         (re_no_sub): Renamed from no_sub.
65544         (re_not_bol): Renamed from not_bol.
65545         (re_not_eol): Renamed from not_eol.
65546         (re_newline_anchor): Renamed from newline_anchor.
65547
65548         Change the following member names in struct re_registers.
65549         The old names are still supported if !_REGEX_SOURCE.
65550         The new names are always supported, regardless of _REGEX_SOURCE.
65551         (rm_num_regs): Renamed from num_regs.
65552         (rm_start): Renamed from start.
65553         (rm_end): Renamed from end.
65554
65555         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65556         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65557         Prepend __ to parameter names.
65558
65559         Undo yesterday's changes.
65560
65561 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65562
65563         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65564         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65565         lib/regex.c.
65566
65567 2005-08-24  Jim Meyering  <jim@meyering.net>
65568
65569         Sync from coreutils.
65570         * m4/fcntl-safer.m4: New file.
65571
65572         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65573         and object files for this module.
65574
65575 2005-08-24  Jim Meyering  <jim@meyering.net>
65576
65577         Sync from coreutils.
65578         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65579
65580 2005-08-24  Jim Meyering  <jim@meyering.net>
65581
65582         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65583         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65584
65585 2005-08-24  Jim Meyering  <jim@meyering.net>
65586
65587         * modules/fcntl-safer: New module.
65588         * modules/fts (Depends-on): Add fcntl-safer.
65589         * MODULES.html.sh (File descriptor based Input/Output):
65590         Add fcntl-safer.
65591
65592 2005-08-24  Bruno Haible  <bruno@clisp.org>
65593
65594         Support for unit test modules.
65595         * modules/README: Mention tests modules.
65596         * modules/TEMPLATE-TESTS: New file.
65597         * gnulib-tool: New options --extract-tests-module, --with-tests and
65598         --tests-base (unused for the moment).
65599         (testsbase, inctests): New variables.
65600         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65601         (func_verify_module): Exclude TEMPLATE-TESTS.
65602         (func_verify_nontests_module, func_verify_tests_module): New functions.
65603         (func_get_dependencies): Add implicit dependency for tests modules.
65604         (func_get_tests_module): New function.
65605         (func_modules_transitive_closure): When --with-tests was specified,
65606         include the unit tests as well, unless explicitly avoided.
65607         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65608         (func_emit_tests_Makefile_am): New function.
65609         (func_create_testdir): When --with-tests was specified, emit a
65610         tests/ directory.
65611         * MODULES.html.sh (Future developments): Update.
65612
65613 2005-08-24  Bruno Haible  <bruno@clisp.org>
65614
65615         * modules/tls-tests: New file.
65616         * tests/test-tls.c: New file, from GNU gettext.
65617
65618 2005-08-24  Bruno Haible  <bruno@clisp.org>
65619
65620         * modules/lock-tests: New file.
65621         * tests/test-lock.c: New file, from GNU gettext.
65622
65623 2005-08-24  Bruno Haible  <bruno@clisp.org>
65624
65625         * lib/lock.h: Add multiple inclusion guard.
65626         * lib/tls.h: Add multiple inclusion guard.
65627
65628 2005-08-24  Bruno Haible  <bruno@clisp.org>
65629
65630         * gnulib-tool: Add support for the --aux-dir option to
65631         --create-testdir, --create-megatestdir, --test, --megatest.
65632         (func_create_testdir, func_create_megatestdir): Optionally emit a
65633         AC_CONFIG_AUX_DIR directive.
65634         (create-testdir, create-megatestdir, test, megatest): Provide a
65635         default value for $auxdir.
65636
65637 2005-08-24  Bruno Haible  <bruno@clisp.org>
65638
65639         * gnulib-tool (import): Use compound statement instead of subshell
65640         where possible.
65641
65642 2005-08-24  Bruno Haible  <bruno@clisp.org>
65643
65644         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65645
65646 2005-08-24  Bruno Haible  <bruno@clisp.org>
65647
65648         * gnulib-tool (func_version): Update.
65649
65650 2005-08-24  Bruno Haible  <bruno@clisp.org>
65651
65652         * gnulib-tool (func_import, func_create_testdir,
65653         func_create_megatestdir): Quote all autoconf macro arguments.
65654
65655 2005-08-24  Bruno Haible  <bruno@clisp.org>
65656
65657         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65658         option --force, because --force causes the aclocal.m4 of each
65659         subdirectory to be newer than the corresponding config.h.in.
65660
65661 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65664         All contents moved to gl_REGEX.
65665         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65666         assume that it does.
65667
65668 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         * lib/regex.h (REG_NOSYS)
65671         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65672         Define, since POSIX requires it as of 2001.
65673         (_REG_ENOSYS)
65674         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65675         New private symbol, used to keep the enum signed in all cases.
65676         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65677         Youngman in
65678         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65679
65680         * lib/regex_internal.c (re_string_skip_chars, register_state):
65681         (calc_state_hash):
65682         Remove forward decls; no longer needed now that we use prototypes.
65683         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65684         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65685         (clean_state_log_if_needed): Likewise.
65686
65687 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * config/srclist.txt: Add glibc bugs 1231-1233.
65690
65691 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65692
65693         Fix problems reported by Sam Steingold in
65694         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65695         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65696         assumed that reg_errcode_t is a signed type, which is not
65697         necessarily true if _XOPEN_SOURCE is not defined.
65698         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65699         since some compilers warn about it otherwise.
65700
65701 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65704         (init_word_char, create_initial_state, duplicate_node_closure):
65705         (fetch_token, peek_token_bracket, build_range_exp):
65706         (build_collating_symbol): Remove forward decls; no longer needed
65707         now that we use prototypes.
65708
65709         * lib/regcomp.c:
65710         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65711         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65712         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65713         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65714         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65715         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65716         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65717         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65718         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65719         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65720         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65721         (build_charclass, build_charclass_op, fetch_number, create_tree):
65722         (create_token_tree, mark_opt_subexp, duplicate_tree):
65723         Use prototypes rather than old-style definitions.
65724
65725         * lib/regex_internal.c:
65726         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65727         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65728         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65729         (re_string_reconstruct, re_string_peek_byte_case):
65730         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65731         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65732         (re_node_set_init_copy, re_node_set_add_intersect):
65733         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65734         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65735         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65736         (re_acquire_state, re_acquire_state_context, register_state):
65737         (create_ci_newstate, create_cd_newstate, free_state):
65738         Likewise.
65739         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65740         re_search_2):
65741         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65742         (re_search_internal, prune_impossible_nodes):
65743         (acquire_init_state_context, check_matching, static):
65744         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65745         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65746         (update_regs, sift_states_backward, build_sifted_states):
65747         (clean_state_log_if_needed, merge_state_array):
65748         (update_cur_sifted_state, add_epsilon_src_nodes):
65749         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65750         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65751         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65752         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65753         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65754         (check_arrival, check_arrival_add_next_nodes):
65755         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65756         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65757         (check_node_accept_bytes, check_node_accept, extend_buffers):
65758         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65759         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65760         (sift_ctx_init):
65761         Likewise.
65762
65763         * lib/regex_internal.h:
65764         (re_string_allocate, re_string_construct, re_string_reconstruct):
65765         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65766         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65767         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65768         (re_string_context_at, re_string_peek_byte_case):
65769         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65770         is defined, since we now use prototypes always.
65771
65772         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65773         C89 or better.  All uses removed.
65774
65775 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * config/srclist.txt: Add glibc bugs 1220-1227.
65778
65779 2005-08-20  Jim Meyering  <jim@meyering.net>
65780
65781         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65782         of unused local, dfa.
65783
65784 2005-08-20  Bruno Haible  <bruno@clisp.org>
65785
65786         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65787
65788 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65791         (re_node_set_insert_last, re_dfa_add_node):
65792         Rename local variables to avoid GCC shadowing warnings.
65793
65794 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65797         [defined lint]: Suppress bogus uninitialized-variable warnings.
65798
65799         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65800         and let the caller return REG_ESPACE if out of space.  This
65801         removes an uninitialied-variable warning with GCC 4.0.1, and also
65802         avoids taking the address of a local variable.  All callers
65803         changed.
65804
65805 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65806
65807         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65808         $LIBCSRC/posix/regexec.c.
65809         Add glibc bug 1217 for regcomp.c.
65810
65811 2005-08-19  Jim Meyering  <jim@meyering.net>
65812
65813         * lib/regexec.c (proceed_next_node): Redo local variables to
65814         avoid GCC shadowing warnings.
65815
65816 2005-08-18  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/strstr.c (strstr): Fix return value in multibyte case.
65819         * lib/strcasestr.c (strcasestr): Likewise.
65820
65821 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65824
65825 2005-08-17  Jim Meyering  <jim@meyering.net>
65826
65827         Make the %s format (seconds since the epoch) work for a negative
65828         number and when used with a zero-padded field width, e.g. %015s.
65829
65830         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65831         label so that it precedes the code to set `digits'.  Otherwise,
65832         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65833         print `00-22'.  Now, it prints `-0022', as it should.
65834
65835 2005-08-17  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/strstr (Files): Add m4/mbrtowc.m4.
65838         (Depends-on): Add mbuiter.
65839
65840 2005-08-17  Bruno Haible  <bruno@clisp.org>
65841
65842         * modules/strcasestr: New file.
65843         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65844         strcasestr.
65845
65846 2005-08-17  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65849
65850 2005-08-17  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/mbuiter: New file.
65853         * MODULES.html.sh (Extended multibyte and wide character utilities):
65854         Add mbuiter.
65855
65856 2005-08-17  Bruno Haible  <bruno@clisp.org>
65857
65858         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65859         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65860
65861 2005-08-17  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/strcasestr.m4: New file.
65864
65865 2005-08-17  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65868         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65869
65870 2005-08-17  Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/strcasestr.h: New file.
65873         * lib/strcasestr.c: New file.
65874
65875 2005-08-17  Bruno Haible  <bruno@clisp.org>
65876
65877         * lib/strcasecmp.c: Use mbuiter.h.
65878
65879 2005-08-17  Bruno Haible  <bruno@clisp.org>
65880
65881         * lib/mbuiter.h: New file.
65882
65883 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65886         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65887         and gl_GETOPT are both invoked via different paths (as happens
65888         with GNU tar CVS because it uses both argp and getopt), the former
65889         wins.
65890
65891 2005-08-16  Bruno Haible  <bruno@clisp.org>
65892
65893         * modules/tls: New file.
65894         * MODULES.html.sh (Multithreading): Add tls.
65895
65896 2005-08-16  Bruno Haible  <bruno@clisp.org>
65897
65898         * modules/strnlen1: New file.
65899         * MODULES.html.sh (String handling): Add strnlen1.
65900
65901 2005-08-16  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/strcase (Files): Add m4/mbrtowc.m4.
65904         (Depends-on): Add strnlen1, mbchar.
65905
65906 2005-08-16  Bruno Haible  <bruno@clisp.org>
65907
65908         * modules/mbiter: New file.
65909         * MODULES.html.sh (Extended multibyte and wide character utilities):
65910         Add mbiter.
65911
65912 2005-08-16  Bruno Haible  <bruno@clisp.org>
65913
65914         * modules/mbfile: New file.
65915         * MODULES.html.sh (Extended multibyte and wide character utilities):
65916         Add mbfile.
65917
65918 2005-08-16  Bruno Haible  <bruno@clisp.org>
65919
65920         * modules/mbchar: New file.
65921         * MODULES.html.sh (Extended multibyte and wide character utilities):
65922         New section.
65923
65924 2005-08-16  Bruno Haible  <bruno@clisp.org>
65925
65926         * m4/tls.m4: New file, from GNU gettext.
65927
65928 2005-08-16  Bruno Haible  <bruno@clisp.org>
65929
65930         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65931         always.
65932         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65933
65934 2005-08-16  Bruno Haible  <bruno@clisp.org>
65935
65936         * m4/mbiter.m4: New file.
65937
65938 2005-08-16  Bruno Haible  <bruno@clisp.org>
65939
65940         * m4/mbfile.m4: New file.
65941
65942 2005-08-16  Bruno Haible  <bruno@clisp.org>
65943
65944         * m4/mbchar.m4: New file.
65945
65946 2005-08-16  Bruno Haible  <bruno@clisp.org>
65947
65948         * lib/tls.h: New file, from GNU gettext.
65949         * lib/tls.c: New file, from GNU gettext.
65950
65951 2005-08-16  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/strnlen1.h: New file.
65954         * lib/strnlen1.c: New file.
65955
65956 2005-08-16  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65959         (mbi_init): Update.
65960         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65961         NUL byte, not after it.
65962
65963 2005-08-16  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/strcase.h (strcasecmp): Add note in comments.
65966         * lib/strncasecmp.c: Use code from strcasecmp.c.
65967         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65968         (strcasecmp): Work correctly in multibyte locales.
65969
65970 2005-08-16  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/mbiter.h: New file.
65973
65974 2005-08-16  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/mbfile.h: New file.
65977
65978 2005-08-16  Bruno Haible  <bruno@clisp.org>
65979
65980         * lib/mbchar.h: New file.
65981         * lib/mbchar.c: New file.
65982
65983 2005-08-16  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65986         the valid ones. Makes the comparison operations transitive:
65987         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65988         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65989
65990 2005-08-15  Simon Josefsson  <jas@extundo.com>
65991
65992         * modules/ssize_t (License): Change to 'unlimited'.
65993
65994         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65995
65996 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65999         Add comments for each pending glibc patch.
66000
66001 2005-08-15  Bruno Haible  <bruno@clisp.org>
66002
66003         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66004         __cplusplus is defined.
66005
66006 2005-08-14  Jim Meyering  <jim@meyering.net>
66007
66008         Sync from coreutils.
66009
66010         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66011         Use the hash-table-based cycle-detection code not just when
66012         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66013         Reported by James Youngman in
66014         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66015         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66016         FTS_TIGHT_CYCLE_CHECK.
66017         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66018         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66019         once again.
66020         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66021         * lib/fts.c (fd_safer): Remove decl.
66022         Include fcntl--.h rather than unistd-safer.h
66023         (fts_safe_changedir): Don't call fd_safer; no longer needed
66024         now that we include fcntl--.h.
66025
66026 2005-08-12  Simon Josefsson  <jas@extundo.com>
66027
66028         * modules/getndelim2: Use ssize_t module.
66029         * modules/getnline: Likewise.
66030         * modules/safe-read: Likewise.
66031         * modules/xreadlink: Likewise.
66032
66033         * modules/ssize_t: New file.
66034
66035 2005-08-12  Simon Josefsson  <jas@extundo.com>
66036
66037         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66038
66039 2005-08-12  Simon Josefsson  <jas@extundo.com>
66040
66041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66042         ssize_t.
66043
66044 2005-08-12  Simon Josefsson  <jas@extundo.com>
66045
66046         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66047         readline, getdelim and check_version.
66048         (Support for systems lacking ISO C 99: Sizes of integer types):
66049         Add size_max.
66050
66051 2005-08-12  Bruno Haible  <bruno@clisp.org>
66052
66053         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66054
66055 2005-08-11  Simon Josefsson  <jas@extundo.com>
66056
66057         * modules/readline: New file.
66058
66059         * modules/strnlen (Files): Add strnlen.h.
66060
66061 2005-08-11  Simon Josefsson  <jas@extundo.com>
66062
66063         * m4/readline.m4: New file.
66064
66065 2005-08-11  Simon Josefsson  <jas@extundo.com>
66066
66067         * lib/readline.h, readline.c: New file.
66068
66069 2005-08-11  Simon Josefsson  <jas@extundo.com>
66070
66071         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66072         gl_AVOID.
66073
66074 2005-08-11  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66077
66078 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66079
66080         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66081
66082 2005-08-10  Simon Josefsson  <jas@extundo.com>
66083
66084         * tests/test-iconvme.c: New file.
66085
66086 2005-08-10  Simon Josefsson  <jas@extundo.com>
66087
66088         * m4/strnlen.m4: New file.
66089
66090         * m4/strndup.m4: Don't check for strnlen declaration, done in
66091         strnlen.m4.
66092
66093 2005-08-10  Simon Josefsson  <jas@extundo.com>
66094
66095         * lib/strndup.c: Use strnlen.h.
66096
66097         * lib/strnlen.h: New file.
66098
66099 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66100
66101         * README: Typos.
66102
66103 2005-08-02  Simon Josefsson  <jas@extundo.com>
66104
66105         * modules/readline: New file.
66106
66107 2005-08-02  Simon Josefsson  <jas@extundo.com>
66108
66109         * modules/getdelim: New file.
66110
66111         * modules/getline: Rewrite, don't use getndelim2.
66112
66113 2005-08-02  Simon Josefsson  <jas@extundo.com>
66114
66115         * m4/getline.m4: Separate out getdelim stuff into separate module.
66116
66117         * m4/getdelim.m4: New file.
66118
66119 2005-08-02  Simon Josefsson  <jas@extundo.com>
66120
66121         * lib/getline.h, getline.c: Rewrite.
66122
66123         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66124
66125 2005-07-31  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/lock.h (gl_lock_initializer): New macro.
66128         (gl_lock_define_initialized): Use it.
66129         (gl_rwlock_initializer): New macro.
66130         (gl_rwlock_define_initialized): Use it.
66131         (gl_recursive_lock_initializer): New macro.
66132         (gl_recursive_lock_define_initialized): Use it.
66133
66134 2005-07-30  Karl Berry  <karl@gnu.org>
66135
66136         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66137         Report from Ben Pfaff, regarding getopt.
66138
66139 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66142         normal way.
66143         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66144         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66145         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66146         (gl_GETOPT): Use the new macros.  Most of the implementation
66147         is moved to the new macros.  This is for programs like Emacs
66148         that don't want all the functionality of gl_GETOPT.
66149
66150 2005-07-26  Bruno Haible  <bruno@clisp.org>
66151
66152         * m4/lock.m4: Update from GNU gettext.
66153
66154 2005-07-26  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/lock.h: Update from GNU gettext.
66157         * lib/lock.c: Update from GNU gettext.
66158
66159 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66162         obsolescent AC_TRY_RUN.  Include the default includes files, for
66163         'exit'.
66164
66165 2005-07-24  Bruno Haible  <bruno@clisp.org>
66166
66167         * modules/visibility: New file.
66168         * MODULES.html.sh (Misc): Add visibility.
66169
66170 2005-07-24  Bruno Haible  <bruno@clisp.org>
66171
66172         * m4/visibility.m4: New file.
66173
66174 2005-07-24  Bruno Haible  <bruno@clisp.org>
66175
66176         * doc/visibility.texi: New file.
66177
66178 2005-07-22  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66181         $(ALLOCA_H), redundant through BUILT_SOURCES.
66182         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66183         redundant through BUILT_SOURCES.
66184         * modules/byteswap (Makefile.am): Remove explicit dependency on
66185         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66186         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66187         $(FNMATCH_H), redundant through BUILT_SOURCES.
66188         * modules/getopt (Makefile.am): Remove explicit dependency on
66189         $(GETOPT_H), redundant through BUILT_SOURCES.
66190         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66191         redundant through BUILT_SOURCES.
66192         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66193         redundant through BUILT_SOURCES.
66194         * modules/stdbool (Makefile.am): Remove explicit dependency on
66195         $(STDBOOL_H), redundant through BUILT_SOURCES.
66196         * modules/stdint (Makefile.am): Remove explicit dependency on
66197         $(STDINT_H), redundant through BUILT_SOURCES.
66198         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66199         Remove explicit dependency on $(SYSEXITS_H).
66200         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66201
66202 2005-07-18  Simon Josefsson  <jas@extundo.com>
66203
66204         * lib/check-version.c (check_version): Accept identical versions too.
66205
66206 2005-07-18  Bruno Haible  <bruno@clisp.org>
66207
66208         * modules/lock: New file.
66209         * MODULES.html.sh (Multithreading): New section.
66210
66211 2005-07-18  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/lock.m4: New file, from GNU gettext.
66214
66215 2005-07-18  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/lock.h: New file, from GNU gettext.
66218         * lib/lock.c: New file, from GNU gettext.
66219
66220 2005-07-18  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/lock.h (gl_once_t): New type.
66223         (gl_once_define, gl_once): New macros.
66224         * lib/lock.c (fresh_once): New variable.
66225         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66226         functions.
66227
66228 2005-07-16  Simon Josefsson  <jas@extundo.com>
66229
66230         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66231         workaround, suggested by Bruno.
66232
66233 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66234
66235         * modules/xalloc (Depends-on): Add xalloc-die.
66236         * modules/xvasprintf (Depends-on): Add xalloc-die.
66237
66238 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66241         with a minor change.
66242
66243 2005-07-15  Bruno Haible  <bruno@clisp.org>
66244
66245         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66246         When using lib/poll.c, define poll as rpl_poll.
66247
66248 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * modules/argp (Depends-on): Remove unlocked-io.
66251
66252 2005-07-14  Derek Price  <derek@ximbiot.com>
66253
66254         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66255         for glob symlink bug.
66256
66257 2005-07-14  Bruno Haible  <bruno@clisp.org>
66258
66259         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66260         Instead, test for *_unlocked function declarations directly.
66261
66262 2005-07-11  Simon Josefsson  <jas@extundo.com>
66263
66264         * modules/size_max: New file.
66265
66266         * modules/xsize: Depend on size_max module for size_max.m4.
66267
66268 2005-07-11  Simon Josefsson  <jas@extundo.com>
66269
66270         * lib/size_max.h: New file.
66271
66272 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66273
66274         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66275         copyright symbol and the year.
66276         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66277         (version_etc_va): Use parameterized copyright notice.
66278         Reword to conform to the current GNU coding standards.
66279
66280 2005-07-11  Karl Berry  <karl@gnu.org>
66281
66282         * doc/gnulib.texi (Quoting): new node.
66283         (Initial import): more info, from Patrice.
66284
66285 2005-07-11  Bruno Haible  <bruno@clisp.org>
66286
66287         * gnulib-tool (func_usage): Document option --avoid.
66288         (Command line options): Handle --avoid.
66289         (func_acceptable): New function.
66290         (func_modules_transitive_closure): Use it.
66291
66292 2005-07-11  Bruno Haible  <bruno@clisp.org>
66293
66294         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66295         Reported by Jim Meyering.
66296
66297 2005-07-10  Bruno Haible  <bruno@clisp.org>
66298
66299         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66300         Needed when size_t is smaller than 'unsigned int'.
66301         Reported by Paul Eggert.
66302
66303 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66304
66305         * modules/argp (Depends-on): Add unlocked-io
66306
66307 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66308
66309         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66310         block of defines.
66311
66312 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66315         fix now.
66316
66317 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66318         and Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66321         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66322
66323 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * modules/regex (Files): Add lib/regex_internal.c,
66326         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66327         (Depends-on): Add extensions.
66328         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66329
66330 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66331
66332         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66333         pathconf.
66334         * m4/same.m4 (gl_SAME): Likewise.
66335         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66336
66337         * m4/regex.m4: Adjust to new libc regex implementation.
66338         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66339         all the .c and .h parts of (the new) regex.
66340         Quote the m4 stuff better.
66341         Check for RE_ICASE bug of old gnulib.
66342         Check for REG_STARTEND of recent libc.
66343         Rename local variables from jm_* to gl_*.
66344         Quote operand of "test -f".
66345         Say "recent enough" version of libc, not "version 2".
66346         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66347         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66348         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66349         Remove check for btowc, isascii.
66350         Require AM_LANGINFO_CODESET.
66351
66352 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * lib/regex.c, regex.h: Sync from libc.
66355         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66356         * lib/regexec.c:
66357         New files, synced from libc, except that regex_internal.h
66358         currently has a small porting fix.
66359
66360 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66361
66362         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66363         regex_internal.c, regexec.c.
66364         Add regex_internal.h too, but as a comment, since the libc version
66365         is currently broken in gnulib mode.
66366
66367 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66368
66369         Support programs like Emacs that use gnulib but not gettext.
66370         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66371         * modules/gettext-h: New file.
66372         * modules/gettext (Files): Remove lib/gettext.h.
66373         (Depends-on): Add gettext-h.
66374         (Makefile.am): Remove lib_SOURCES.
66375         * modules/argmatch, modules/c-stack, modules/closeout:
66376         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66377         * modules/execute, modules/file-type, modules/getaddrinfo:
66378         * modules/getopt, modules/human, modules/javacomp:
66379         * modules/javaexec, modules/mkdir-p, modules/obstack:
66380         * modules/openat, modules/pagealign_alloc, modules/pipe:
66381         * modules/quotearg, modules/regex, modules/rpmatch:
66382         * modules/unicodeio, modules/userspec, modules/version-etc:
66383         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66384         * modules/xsetenv:
66385         Depend on gettext-h, not gettext.
66386
66387 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * gnulib-tool (func_import): Add support for 'public domain' license.
66390         * modules/alloca, modules/atexit, modules/memmove:
66391         Now public domain, not GPL.
66392         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66393         * modules/realloc, modules/strerror, modules/strtod:
66394         Now LGPL, not GPL.
66395
66396 2005-07-05  Bruno Haible  <bruno@clisp.org>
66397
66398         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66399         autoconf CVS. Needed for mingw.
66400
66401 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66402
66403         Remove the dependency of the strftime module on the tzset module.
66404         * modules/strftime (Depends-on): Remove dependency on tzset.
66405
66406 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66407
66408         Remove the dependency of the strftime module on the tzset module.
66409         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66410         gl_FUNC_TZSET_CLOBBER.
66411
66412 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         Remove the dependency of the strftime module on the tzset module.
66415         * lib/strftime.c (my_strftime)
66416         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66417         Copy the input structure, to work around some of the bug with
66418         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66419         Solaris releases, you should also use the tzset module, but we won't
66420         require it as a dependency any more since we don't want LGPLed code
66421         to depend on GPLed code.
66422
66423 2005-07-02  Jim Meyering  <jim@meyering.net>
66424
66425         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66426         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66427         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66428         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66429
66430 2005-07-02  Jim Meyering  <jim@meyering.net>
66431
66432         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66433
66434 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66437         declares only 'struct timespec;' (!).
66438
66439 2005-07-01  Jim Meyering  <jim@meyering.net>
66440
66441         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66442         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66443         * lib/save-cwd.c, tempname.c:
66444         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66445         and don't include <sys/file.h>).
66446
66447 2005-06-29  Jim Meyering  <jim@meyering.net>
66448
66449         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66450         type name.  Use the variable name instead.
66451         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66452         Likewise.
66453
66454 2005-06-28  Simon Josefsson  <jas@extundo.com>
66455
66456         * modules/check-version (Files): Add check-version.m4.
66457
66458 2005-06-28  Simon Josefsson  <jas@extundo.com>
66459
66460         * m4/check-version.m4: New file, suggested by Jim Meyering
66461         <jim@meyering.net>.
66462
66463 2005-06-28  Simon Josefsson  <jas@extundo.com>
66464
66465         * lib/check-version.h, lib/check-version.c: New files.
66466
66467 2005-06-28  Simon Josefsson  <jas@extundo.com>
66468
66469         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66470         collision with global variable.  Better indentation.  Don't
66471         increment buffer pointer beyond buffer end.  Based on comments
66472         from Paul Eggert <eggert@cs.ucla.edu>.
66473
66474         * lib/base64.h: Indent.
66475
66476 2005-06-28  Simon Josefsson  <jas@extundo.com>
66477
66478         * doc/gnulib.texi (Library version handling): New section.
66479
66480 2005-06-28  Jim Meyering  <jim@meyering.net>
66481
66482         * check-module (find_included_lib_files): Hard-code another
66483         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66484         but modules/fts-lgpl (correctly) does not list those files.
66485
66486         * modules/canonicalize (Files): Add lib/pathmax.h.
66487
66488 2005-06-25  Simon Josefsson  <jas@extundo.com>
66489
66490         * modules/check-version: New file.
66491
66492 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66495         initializer of struct addrinfo, as an indication that we don't
66496         care how many members the structure has.
66497
66498 2005-06-24  Derek Price  <derek@ximbiot.com>
66499         and Bruno Haible  <bruno@clisp.org>
66500
66501         Remove stat module & update lstat.
66502         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66503         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66504         * m4/stat.m4: Remove this file.
66505
66506 2005-06-24  Derek Price  <derek@ximbiot.com>
66507         and Bruno Haible  <bruno@clisp.org>
66508
66509         Remove stat module & update lstat.
66510         * lib/stat.c: Remove this file...
66511         (slash_aware_lstat): ...moving this content and its support...
66512         * lib/lstat.c (rpl_lstat): ...into here.
66513         * lib/lstat.h: New file.
66514
66515 2005-06-24  Derek Price  <derek@ximbiot.com>
66516         and Bruno Haible  <bruno@clisp.org>
66517
66518         Remove stat module & update lstat.
66519         * config/srclist.txt (libc sources): Remove stat.
66520
66521 2005-06-24  Derek Price  <derek@ximbiot.com>
66522         and Bruno Haible  <bruno@clisp.org>
66523
66524         Remove stat module & update lstat.
66525         * MODULES.html.sh (stat): Remove.
66526         * MODULES.html: Regenerated.
66527         * modules/lstat (Description): Correct function name.
66528         (Files): Add "lstat.h".
66529         (Depends-on): Remove stat, add xalloc, stat-macros.
66530         * modules/stat: Remove this file.
66531         (Include): Add "lstat.h", remove <sys/stat.h>.
66532
66533 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66536         (ranged_convert): Don't save conversion in a temporary struct.
66537         This causes a warning with GCC 4.0.0, and anyway in the typical
66538         case it's not worth the extra 100 bytes or so of code.
66539         (ranged_convert, __mktime_internal): When calling a function via a
66540         pointer P, use P () rather than (*P) (), as we now assume C89 or
66541         better.
66542
66543 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66546         "who -r" failed to give output.  Problem reported by Tim Waugh.
66547
66548         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66549         (xcalloc): Use it to avoid needless tests.
66550         Problem reported by Jim Meyering.
66551
66552 2005-06-20  Derek Price  <derek@ximbiot.com>
66553
66554         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66555         unnecessary for Autoconfs > 2.59c.
66556
66557 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66558
66559         * lib/argp.h (__option_is_short): Check upper limit of
66560         __key. Isprint() requires its argument to have the value
66561         of an unsigned char or EOF.
66562
66563 2005-06-16  Jim Meyering  <jim@meyering.net>
66564
66565         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66566         when either N or S is zero.
66567
66568 2005-06-16  Derek Price  <derek@ximbiot.com>
66569
66570         * m4/bison.m4: Declare YACC & YFLAGS precious.
66571
66572 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66575         multibyte string or pattern, fall back on unibyte matching.
66576         Problem reported by James Youngman.
66577
66578 2005-06-08  Bruno Haible  <bruno@clisp.org>
66579
66580         * modules/csharpcomp: New file.
66581         * MODULES.html.sh (C#): Add csharpcomp.
66582
66583 2005-06-08  Bruno Haible  <bruno@clisp.org>
66584
66585         * m4/csharpcomp.m4: New file, from GNU gettext.
66586
66587 2005-06-08  Bruno Haible  <bruno@clisp.org>
66588
66589         * lib/csharpcomp.h: New file, from GNU gettext.
66590         * lib/csharpcomp.c: New file, from GNU gettext.
66591         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66592
66593 2005-06-08  Bruno Haible  <bruno@clisp.org>
66594
66595         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66596         warning on mingw.
66597
66598 2005-06-07  Derek Price  <derek@ximbiot.com>
66599
66600         Sync from CVS.
66601         * lib/glob_.h: Indent nested #ifdef.
66602
66603 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         Sync from coreutils.
66606         Use "file name" when talking about file names, instead of "filename"
66607         or "path", as per the GNU coding standards.
66608         * lib/mkdir-p.c: Renamed from makepath.c.
66609         (make_dir_parents): Renamed from make_path.  All callers changed.
66610         * lib/mkdir-p.h: Likewise.  All includers changed.
66611         * lib/filenamecat.c: Renamed from path-concat.c.
66612         (file_name_concat): Renamed from path_concat.  All callers changed.
66613         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66614         * lib/filenamecat.h: Likewise.  All includers changed.
66615         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66616         in comments or local variable names.
66617         * lib/basename.c: Likewise.
66618         * lib/canonicalize.c, canonicalize.h: Likewise.
66619         * lib/dirname.c, dirname.h: Likewise.
66620         * lib/euidaccess.c: Likewise.
66621         * lib/exclude.c: Likewise
66622         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66623         * lib/fsusage.c, fsuage.h: Likewise.
66624         * lib/fts.c, fts_.h: Likewise.
66625         * lib/getcwd.c: Likewise.
66626         * lib/getloadavg.c: Likewise.
66627         * lib/mkstemp.c: Likewise.
66628         * lib/mountlist.c, mountlist.h: Likewise.
66629         * lib/openat.c, openat.h: Likewise.
66630         * lib/readlink-stub.c: Likewise.
66631         * lib/readutmp.c, readutmp.h: Likewise.
66632         * lib/rename.c: Likewise.
66633         * lib/rmdir.c: Likewise.
66634         * lib/same.c: Likewise.
66635         * lib/savedir.c: Likewise.
66636         * lib/stripslash.c: Likewise.
66637         * lib/tempname.c: Likewise.
66638         * lib/xreadlink.c: Likewise.
66639         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66640         All uses changed.
66641         * lib/exclude.h: Likewise.
66642
66643         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66644         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66645         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66646         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66647         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66648         files have been getting away with it for years (MORE/BSD 4.3
66649         is extinct now).
66650         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66651         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66652
66653         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66654         Define to 256, not 255, as per modern POSIX.
66655
66656 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         Sync from coreutils.
66659         Use "file name" when talking about file names, instead of "filename"
66660         or "path", as per the GNU coding standards.
66661         * MODULES.html.sh: mkdir-p renamed from makepath.
66662         filenamecat renamed from path-concat.
66663         * modules/filenamecat: Renamed from modules/path-concat.
66664         (Files): filenamecat.h and filenamecat.c renamed from
66665         path-concat.h and path-concat.c.
66666         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66667         (Include): filenamecat.h, not path-concat.h.
66668         * modules/mkdir-p: Renamed from modules/makepath.
66669         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66670         makepath.c.
66671         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66672         (Include): mkdir-p.h, not makepath.h.
66673
66674 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         Sync from coreutils.
66677         * m4/mkdir-p.m4: Renamed from makepath.m4.
66678         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66679         Rename files from makepath.c to mkdir-p.c, and from
66680         makepath.h to mkdir-p.h.
66681         * m4/filenamecat.m4: Renamed from path-concat.m4.
66682         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66683         Rename files from path-concat.c to filenamecat.c,
66684         and from path-concat.h to filenamecat.h.
66685         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66686         "file name" in local variables or comments.
66687         * m4/rename.m4: Likewise.
66688
66689 2005-06-01  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/csharpexec: New file.
66692         * MODULES.html.sh (C#): New section.
66693
66694 2005-06-01  Bruno Haible  <bruno@clisp.org>
66695
66696         * m4/csharp.m4: New file, from GNU gettext.
66697         * m4/csharpexec.m4: New file, from GNU gettext.
66698
66699 2005-06-01  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/csharpexec.h: New file, from GNU gettext.
66702         * lib/csharpexec.c: New file, from GNU gettext.
66703         * lib/csharpexec.sh.in: New file, from GNU gettext.
66704
66705 2005-05-31  Derek Price  <derek@ximbiot.com>
66706             Paul Eggert  <eggert@cs.ucla.edu>
66707
66708         Sync from cvs.
66709         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66710
66711 2005-05-31  Derek Price  <derek@ximbiot.com>
66712             Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         Sync from cvs.
66715         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66716
66717 2005-05-29  Derek Price  <derek@ximbiot.com>
66718
66719         * config/srclist.txt (glob_.h, glob.c): Add these files.
66720
66721 2005-05-29  Derek Price  <derek@ximbiot.com>
66722
66723         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66724         * modules/glob: New file.
66725         * modules/getlogin_r: Add link to POSIX spec in description.
66726
66727 2005-05-29  Derek Price  <derek@ximbiot.com>
66728             Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * m4/glob.m4: New file.
66731
66732 2005-05-29  Derek Price  <derek@ximbiot.com>
66733             Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * lib/glob_.h, lib/glob.c: New files.
66736
66737 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66740         * modules/fts-lgpl (Depends-on): Remove gettext.
66741
66742 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66745         and don't require gt_INTTYPES_PRI.
66746
66747 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66750
66751         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66752         the configuration hassle isn't worth it.
66753         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66754         (LONGEST_MODIFIER, PRIuMAX): Remove.
66755
66756 2005-05-27  Bruno Haible  <bruno@clisp.org>
66757
66758         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66759
66760 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66763         _POSIX_PTHREAD_SEMANTICS for Solaris.
66764
66765 2005-05-25  Derek Price  <derek@ximbiot.com>
66766
66767         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66768
66769 2005-05-25  Derek Price  <derek@ximbiot.com>
66770             Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66773         * lib/getlogin_r.c, getlogin_r.h: New files.
66774
66775 2005-05-25  Bruno Haible  <bruno@clisp.org>
66776             Derek Price  <derek@ximbiot.com>
66777
66778         * lib/getlogin_r.h: Simplify API documentation.
66779
66780 2005-05-23  Derek Price  <derek@ximbiot.com>
66781
66782         * modules/minmax (Files): Add m4/minmax.m4.
66783         (configure.ac): Add gl_MINMAX.
66784
66785 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66788         so that unistd-safer.h (GPL'ed code) need not be included.
66789
66790 2005-05-22  Bruno Haible  <bruno@clisp.org>
66791
66792         * m4/minmax.m4: New file.
66793         Based on a patch by Derek Price <derek@ximbiot.com>.
66794
66795 2005-05-22  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66798         (INT64_MIN): Fix definition.
66799         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66800
66801         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66802         NEED_SIGNED_INT_TYPES.
66803
66804         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66805         HAVE_SYSTEM_INTTYPES.
66806
66807 2005-05-22  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66810         Also include <sys/param.h> if it defines MIN, MAX.
66811         Based on a patch by Derek Price <derek@ximbiot.com>.
66812
66813 2005-05-21  Jim Meyering  <jim@meyering.net>
66814
66815         * modules/fts (Files): Add m4/inttypes-pri.m4.
66816         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66817
66818 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         New fts module.
66821         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66822         (setup_dir, free_dir): New functions.
66823         (enter_dir, leave_dir): Define trivial
66824         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66825         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66826         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66827         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66828         Move to fts-cycle.c.
66829         (fts_open): Use setup_dir.
66830         (fts_close): Use free_dir.
66831         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66832         This adds a label and some gotos, but the alternatives were messier.
66833         Check for memory allocation failure when entering a dir.
66834         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66835         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66836         (FTS): New member fts_cycle, that is a union that contains the
66837         old active_dir_ht and cycle_state.  All uses changed to mention
66838         fts_cycle.ht and fts_cycle.state.
66839         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66840         fts.c, with the following changes:
66841         (setup_dir, free_dir): New functions.
66842         (enter_dir): Now returns bool.  Return true if successful, false
66843         if memory exhausted.  All callers changed.
66844         Do not bother partly cleaning up on
66845         memory allocation failure; that is free_dir's job.
66846         However, free ad if hash_insert fails, to avoid memory leak.
66847         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66848         fts->fts_options to see which union member to use.
66849
66850 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66853         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66854
66855 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66858
66859 2005-05-20  Jim Meyering  <jim@meyering.net>
66860
66861         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66862         Now a macro, to pacify GCC.
66863
66864 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66865
66866         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66867         of -1.
66868
66869 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66870
66871         * lib/chown.c (rpl_chown): Return -1 on failure.
66872
66873 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66876         Don't check for stddef.h.
66877         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66878         don't use its results.
66879         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66880         since we include them unconditionally.  Don't require
66881         AM_STDBOOL_H, since stdbool is a prerequisite.
66882         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66883         since we assume C89 or better.
66884         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66885         as we don't use their results.
66886         Don't check for fchdir, memmove, memset, strrchr, as we use
66887         them unconditionally.
66888         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66889         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66890
66891 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66892
66893         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66894         Include <stddef.h> unconditionally, since we assume C89 now.
66895         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66896         * lib/fts.c: Include fts_.h first, to check interface.
66897         Do not include intprops.h; no longer needed.
66898         Include cycle-check.h and hash.h, since fts_.h no longer does.
66899         Remove unnecessary casts of closedir to void.
66900         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66901         decide whether to decrement nlinks.
66902         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66903         (FTS): Use struct hash_table * instead of Hash_table, so that
66904         we no longer need to include hash.h here.
66905
66906 2005-05-18  Jim Meyering  <jim@meyering.net>
66907
66908         * modules/dirfd (License): Change to LGPL.  Most of the code
66909         is already in the public domain.
66910
66911 2005-05-18  Jim Meyering  <jim@meyering.net>
66912
66913         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66914         Reported by Yoann Vandoorselaere.
66915
66916 2005-05-17  Jim Meyering  <jim@meyering.net>
66917
66918         * m4/fts.m4: New file, from coreutils.
66919
66920 2005-05-17  Jim Meyering  <jim@meyering.net>
66921
66922         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66923
66924 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         Sync from coreutils.
66927         * m4/unlinkdir.m4: New file.
66928
66929 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         Sync from coreutils.
66932         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66933         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66934         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66935         White space changes only.
66936         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66937         special.
66938         * lib/yesno.c: Include getline.h, not ctype.h.
66939         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66940         Use getline to remove arbitrary restriction on response length.
66941
66942 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * config/srclist-update: Spell out "Street" in FSF postal
66945         mail address; this is the style the FSF seems to prefer.
66946
66947         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66948         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66949         this updates FSF postal mail address.
66950
66951         Sync from coreutils.
66952         * modules/unlinkdir: New file.
66953         * modules/yesno (Depends-on): Add getline.
66954         * MODULES.html.sh (File system functions): Add unlinkdir.
66955
66956 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66959         lib/strsep.h:
66960         Change the initial comment to refer to GPL, not LGPL.
66961         gnulib-tool will change it to LGPL as needed.
66962
66963         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66964         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66965         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66966         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66967         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66968         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66969         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66970         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66971         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66972         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66973         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66974         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66975         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66976         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66977         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66978         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66979         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66980         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66981         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66982         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66983         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66984         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66985         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66986         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66987         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66988         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66989         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66990         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66991         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66992         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66993         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66994         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66995         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66996         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66997         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66998         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66999         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67000         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67001         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67002         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67003         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67004         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67005         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67006         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67007         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67008         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67009         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67010         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67011         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67012         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67013         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67014         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67015         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67016         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67017         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67018         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67019         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67020         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67021         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67022         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67023         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67024         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67025         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67026         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67027         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67028         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67029         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67030         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67031         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67032         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67033         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67034         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67035         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67036         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67037         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67038         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67039         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67040         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67041         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67042         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67043         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67044         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67045         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67046         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67047         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67048         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67049         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67050         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67051         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67052         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67053         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67054         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67055         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67056         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67057         lib/yesno.c, lib/yesno.h:
67058         Update FSF postal mail address.
67059
67060 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67063         tests/test-memmem.c, tests/test-stpncpy.c:
67064         Update FSF postal mail address.
67065
67066 2005-05-13  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67069         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67070         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67071         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67072         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67073         Add support for 64-bit integers in the MSVC compiler.
67074
67075 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67076
67077         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67078
67079 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67080
67081         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67082
67083 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * doc/getdate.texi (General date syntax): Don't say that date
67086         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67087         Problem reported by Nic Ferrier.
67088
67089 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67090
67091         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67092         specified in ai_socktype. Fix invalid ai_protocol
67093         check. ai_protocol is usually set to 0 or depending on
67094         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67095         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67096         ai_socktype / ai_protocol in the returned addrinfo structure.
67097
67098 2005-05-10  Simon Josefsson  <jas@extundo.com>
67099
67100         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67101         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67102
67103 2005-05-10  Karl Berry  <karl@gnu.org>
67104
67105         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67106         (from http://www.gnu.org/licenses).
67107         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67108         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67109         fdl.texi suffices.
67110
67111 2005-05-10  Karl Berry  <karl@gnu.org>
67112
67113         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67114         (COPYING.DOC): remove.
67115
67116         * config/srclist-update: new FSF address.
67117
67118 2005-05-10  Derek Price  <derek@ximbiot.com>
67119
67120         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67121         possible.
67122
67123 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67124             Bruno Haible  <bruno@clisp.org>
67125
67126         * modules/inet_ntop: New file.
67127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67128         inet_ntop.
67129
67130 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67131             Bruno Haible  <bruno@clisp.org>
67132
67133         * m4/inet_ntop.m4: New file.
67134
67135 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67136             Bruno Haible  <bruno@clisp.org>
67137
67138         * lib/inet_ntop.h: New file.
67139         * lib/inet_ntop.c: New file, from glibc with modifications.
67140
67141 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         * modules/time_r (License): Change to LGPL.
67144         * modules/extensions (License): Change to LGPL.  Actually,
67145         the license is more permissive than that, but currently gnulib-tool
67146         doesn't know how to handle more-permissive licenses.
67147
67148         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67149         Problem reported by Dave Love.
67150
67151 2005-05-08  Jim Meyering  <jim@meyering.net>
67152
67153         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67154         blank.
67155
67156 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * modules/argmatch (Depends-on): Add stdbool.
67159         * modules/backupfile (Depends-on): Likewise.
67160         * modules/chdir-long (Depends-on): Likewise.
67161         * modules/closeout (Depends-on): Likewise.
67162         * modules/cycle-check (Depends-on): Likewise.
67163         * modules/dirname (Depends-on): Likewise.
67164         * modules/fnmatch (Depends-on): Likewise.
67165         * modules/fsusage (Depends-on): Likewise.
67166         * modules/fwriteerror (Depends-on): Likewise.
67167         * modules/getcwd (Depends-on): Likewise.
67168         * modules/getloadavg (Depends-on): Likewise.
67169         * modules/hard-locale (Depends-on): Likewise.
67170         * modules/makepath (Depends-on): Likewise.
67171         * modules/mountlist (Depends-on): Likewise.
67172         * modules/nanosleep (Depends-on): Likewise.
67173         * modules/posixtm (Depends-on): Likewise.
67174         * modules/quotearg (Depends-on): Likewise.
67175         * modules/readtokens (Depends-on): Likewise.
67176         * modules/readtokens0 (Depends-on): Likewise.
67177         * modules/readutmp (Depends-on): Likewise.
67178         * modules/save-cwd (Depends-on): Likewise.
67179         * modules/strftime (Depends-on): Likewise.
67180         * modules/userspec (Depends-on): Likewise.
67181         * modules/utimecmp (Depends-on): Likewise.
67182         * modules/xgetcwd (Depends-on): Likewise.
67183         * modules/xnanosleep (Depends-on): Likewise.
67184         * modules/xstrtod (Depends-on): Likewise.
67185         * modules/yesno (Depends-on): Likewise.
67186
67187 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67190         needless checks.
67191
67192 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67193
67194         Merge from coreutils.  Among other things,
67195         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67196         * lib/fd-safer.c: New file.
67197         * lib/fcntl-safer.h, open-safer.c: Remove.
67198         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67199         * lib/dup-safer.c: Include unistd-safer.h first.
67200         Don't include errno.h.
67201         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67202         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67203         * lib/file-type.c: Rely on file-type.h change.
67204         * lib/getloadavg.c: Include unistd-safer.h.
67205         (getloadavg): Use safer open.
67206         * lib/getusershell.c: Include "stdio-safer.h".
67207         (getusershell): Use safer fopen.
67208         * lib/long-options.c (long_options): Use NULL rather than 0.
67209         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67210         'free'.
67211         * lib/modechange.c: Likewise.
67212         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67213         (MODE_DONE): New constant.
67214         (struct mode_change): Remove 'next' member.
67215         (make_node_op_equals): New function; like the old one of the
67216         same name, except it allocates an array.
67217         (mode_compile, mode_create_from_ref): Use it.
67218         (mode_compile): Allocate result as an array, not a linked list.
67219         Parse octal string ourself, so that we catch mistakes like "+0".
67220         (mode_adjust): Arg is an array, not a linked list.
67221         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67222         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67223         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67224         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67225         Remove.  This is now stat-macros.h's job.
67226         (talloc): Remove.  All callers replaced by xalloc, so that
67227         our invokers don't have to worry about reporting memory failures.
67228         (make_node_op_equals): Remove.
67229         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67230         New constants.
67231         (struct mode_change): Moved here from modechange.h.
67232         (mode_append_entry): Remove.
67233         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67234         apps to have incorrect behavior.  Use simpler algorithm for head
67235         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67236         Detect more invalid usages rather than having somewhat-random behavior.
67237         Don't insert an "a=" action, as that leads to incorrect behavior.
67238         (mode_compile, mode_create_from_ref): Return NULL on error instead
67239         of an enum, since now there's only one way to have an error.  All
67240         callers changed.
67241         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67242         at the correct time.  Simplify calculation of "+u" and its ilk.
67243         Don't mishandle "+X".
67244         (mode_free): Remove "register" and localize decls.
67245         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67246         (struct mode_change): Move to modechange.c; callers don't
67247         need to see this stuff.
67248         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67249         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67250         (mode_change, mode_adjust): Reflect the new signatures noted above.
67251         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67252         that might redefine system include files.
67253         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67254         (my_usleep): Use NULL rather than (void *) 0.
67255         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67256         Use siginterrupt to specify that system calls should be interrupted.
67257         (rpl_nanosleep): Move initialization of suspended closer to call of
67258         my_usleep.
67259         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67260         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67261         (desirable_utmp_entry): New function.
67262         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67263         using x2nrealloc, to simplify logic.
67264         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67265         size calculation.  Do not assume utmp file is a regular file.
67266         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67267         (READ_UTMP_CHECK_PIDS): New constant.
67268         * lib/save-cwd.c: Include unistd-safer.h.
67269         (save_cwd): Use fd_safer.
67270         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67271         [!_LIBC] Include "stat-macros.h" instead.
67272         * lib/unistd-safer.h (fd_safer): New decl.
67273
67274 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         * modules/getloadavg (Depends-on): Add unistd-safer.
67277         * modules/getusershell (Depends-on): Add stdio-safer.
67278         * modules/lstat (Depends-on): Remove xalloc.
67279         * modules/mkstemp (Depends-on): Add stat-macros.
67280         * modules/modechange (Depends-on): Remove xstrtol.
67281         Add stat-macros, xalloc.
67282         * modules/save-cwd (Depends-on): Add unistd-safer.
67283         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67284         * modules/unistd-safer (Files): Add lib/fd-safer.c
67285         (Makefile.am): Remove lib_SOURCES.
67286
67287         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67288         Remove fcntl-safer; unistd-safer supersedes it.
67289
67290 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67291
67292         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67293         AC_HEADER_STAT.
67294         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67295         (gl_PREREQ_CHOWN): Remove.
67296         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67297         it.  Don't require AC_HEADER_STAT.
67298         (gl_PREREQ_LSTAT): Remove.
67299         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67300         Don't require AC_HEADER_STAT.
67301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67302         (gl_PREREQ_RMDIR): Remove.
67303         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67304         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67305         the stat-macros module a prerequisite.
67306         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67307         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67308         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67309         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67310         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67311         variable names.
67312         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67313         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67314         variable prefixes.
67315         * m4/fcntl-safer.m4: Remove.
67316         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67317         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67318         Invoke gl_PREREQ_FD_SAFER.
67319         (gl_PREREQ_FD_SAFER): New macro.
67320         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67321         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67322         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67323         Remove duplicate call to AC_LIBOBJ(readutmp).
67324         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67325
67326         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67327         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67328
67329 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * MODULES.html.sh (Misc): Add byteswap.
67332
67333 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67334
67335         * modules/getcwd (Depends-on): Add extensions.
67336         * modules/openat (Depends-on): Likewise.
67337
67338 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67339
67340         * modules/byteswap: New file.
67341
67342 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67343
67344         * m4/byteswap.m4: New file.
67345
67346 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67347
67348         * lib/byteswap_.h: New file.
67349
67350 2005-04-25  Karl Berry  <karl@gnu.org>
67351
67352         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67353
67354 2005-04-25  Albert Chin  <china@thewrittenword.com>
67355
67356         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67357         Toolkit C bug.
67358
67359 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67360
67361         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67362         (func_ln_if_changed): Remove forcibly for no error message
67363         in case file does not exist.
67364
67365 2005-04-19  Simon Josefsson  <jas@extundo.com>
67366
67367         * gnulib-tool (Options): Make --symlink mean --symbolic.
67368
67369 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67370
67371         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67372
67373 2005-04-16  Simon Josefsson  <jas@extundo.com>
67374
67375         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67376
67377 2005-04-15  Simon Josefsson  <jas@extundo.com>
67378
67379         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67380
67381 2005-04-15  Simon Josefsson  <jas@extundo.com>
67382
67383         * gnulib-tool: Rename --symlink to --symbolic.
67384
67385 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67386
67387         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67388         symbolic links to files instead of copying/moving.  Add --aux-dir,
67389         specifying directory relative --dir where auxiliary build tools
67390         are placed.
67391
67392 2005-04-14  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/allocsa (License): Change to LGPL.
67395         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67396
67397 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67400         that "UTC +1 second" continues to work.  Problem reported
67401         by Dmitry V. Levin.
67402         (relunit_snumber): New rule.
67403         (relunit): Use it.
67404
67405 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * lib/getdate.y (universal_time_zone_table): New constant.
67408         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67409         universal_time_zone_table.
67410         (lookup_zone): Prefer universal_time_zone_table to
67411         local_time_zone_table, so that "GMT" time stamps are allowed in
67412         London during the summer.  Problem reported by Ian Abbott.
67413
67414 2005-04-12  Jim Meyering  <jim@meyering.net>
67415
67416         * lib/human.c (humblock): Set *options even when returning due to
67417         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67418         warning from gcc-4.
67419
67420 2005-04-09  Jim Meyering  <jim@meyering.net>
67421
67422         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67423         -Wuninitialized: initialize tm0.tm_year.
67424
67425 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67426
67427         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67428         count, since there's no maximum.  All uses changed.
67429         Add member dsts_seen.
67430         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67431         not being INT_MAX.
67432         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67433         Use pc_rels_seen to decide whther a date is absolute.
67434
67435         * lib/getdate.y (number): Don't overwrite year.
67436         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67437         check.
67438
67439 2005-04-02  Simon Josefsson  <jas@extundo.com>
67440
67441         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67442         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67443
67444 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67445
67446         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67447         where no absolute path name can be longer than PATH_MAX.
67448
67449 2005-03-27  Jim Meyering  <jim@meyering.net>
67450
67451         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67452
67453 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67456         "one's complement" -> "ones' complement" in comment, as per Knuth.
67457         "value of type" -> "type or expression" in comment.
67458         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67459
67460 2005-03-26  Jim Meyering  <jim@meyering.net>
67461
67462         Comment nits.
67463         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67464         Correct typos: s/or/of/.
67465
67466 2005-03-26  Jim Meyering  <jim@meyering.net>
67467
67468         * modules/check-include-files: Move to ../ and rename to...
67469         * check-module: ...this.
67470
67471 2005-03-25  Jim Meyering  <jim@meyering.net>
67472
67473         * modules/xvasprintf (Files): Add xalloc.h.
67474
67475 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * modules/gettext (Files): config/config.rpath ->
67478         build-aux/config.rpath
67479         * modules/iconv (Files): Likewise.
67480         Problem reported by Oskar Liljeblad.
67481
67482 2005-03-23  Jim Meyering  <jim@meyering.net>
67483
67484         * modules/check-include-files: New script to check for
67485         missing dependencies, multiple includes, etc.
67486
67487         * modules/c-strtold (Depends-on): Add xalloc.
67488         * modules/c-strtod (Depends-on): Add xalloc.
67489         * modules/hash (Depends-on): Add xalloc.
67490         (Files): Remove lib/xalloc.h.
67491
67492         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67493         * modules/userspec (Files): Add lib/inttostr.h.
67494
67495 2005-03-23  Jim Meyering  <jim@meyering.net>
67496
67497         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67498
67499 2005-03-22  Jim Meyering  <jim@meyering.net>
67500
67501         * modules/stat-macros: New module.
67502         * modules/canonicalize, modules/euidaccess, modules/file-type,
67503         * modules/filemode, modules/lchown, modules/makepath,
67504         * modules/rmdir, modules/stat: Depend on new stat-macros module
67505         rather than listing lib/stat-macros.h manually.
67506         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67507
67508 2005-03-22  Jim Meyering  <jim@meyering.net>
67509
67510         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67511
67512 2005-03-22  Bruno Haible  <bruno@clisp.org>
67513
67514         * config/srclist.txt: Replace target directory 'config' with
67515         'build-aux'.
67516         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67517         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67518         ../build-aux/.
67519
67520 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * modules/chdir-long (Depends-on): Add mempcpy.
67523
67524         * modules/acl, modules/backupfile, modules/c-strtod,
67525         modules/c-strtold, modules/canon-host, modules/canonicalize,
67526         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67527         modules/exclude, modules/exitfail, modules/file-type,
67528         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67529         modules/getdate, modules/getline, modules/getpagesize,
67530         modules/getpass, modules/getugroups, modules/group-member,
67531         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67532         modules/inttostr, modules/long-options, modules/makepath,
67533         modules/md5, modules/memcasecmp, modules/memcoll,
67534         modules/modechange, modules/mountlist, modules/path-concat,
67535         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67536         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67537         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67538         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67539         modules/strftime, modules/strndup, modules/strverscmp,
67540         modules/timespec, modules/unlocked-io, modules/userspec,
67541         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67542         modules/yesno:
67543         Remove lib_SOURCES line from Makefile.am section, as this is now
67544         done automatically by the corresponding Autoconf macro.
67545
67546 2005-03-21  Jim Meyering  <jim@meyering.net>
67547
67548         Changes imported from coreutils.
67549
67550         * lib/cycle-check.c: Don't include xalloc.h.
67551
67552         * lib/path-concat.c: Don't include assert.h.
67553         (path_concat): Remove assertion that would have triggered
67554         for ABASE starting with more than one slash.
67555         Reported by Andreas Schwab.
67556
67557         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67558         properly when ABASE is an absolute file name.
67559         Correct the description of this function.
67560         Include <assert.h>.
67561         Add an assertion and a test driver.
67562         This fixes a bug introduced on 2004-07-02.
67563         Andreas Schwab reported the resulting failure of cp --parents:
67564         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67565
67566 2005-03-21  Jim Meyering  <jim@meyering.net>
67567
67568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67569         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67570
67571 2005-03-21  Jim Meyering  <jim@meyering.net>
67572         and  Paul Eggert  <eggert@cs.ucla.edu>
67573
67574         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67575         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67576         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67577         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67578         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67579         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67580         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67581         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67582         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67583         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67584         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67585         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67586         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67587         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67588         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67589         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67590         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67591         for these modules.
67592
67593 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67596         (which shouldn't happen), generate nothing instead of returning 0
67597         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67598
67599 2005-03-16  Bruno Haible  <bruno@clisp.org>
67600
67601         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67602         HAVE_LONGLONG_64BIT.
67603
67604 2005-03-16  Bruno Haible  <bruno@clisp.org>
67605
67606         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67607         HAVE_LONGLONG_64BIT.
67608
67609 2005-03-16  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67612         HAVE_LONGLONG_64BIT.
67613
67614 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67617         reliably distinguish strftime failure from empty output on POSIX
67618         hosts.
67619
67620 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67623         (iconv_string): Don't guess a size-zero buffer, as that might cause
67624         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67625         result would be 'too large', where 'too large' is (heuristically)
67626         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67627         overflow concerns.  This will prevent some unwanted malloc failures
67628         when the inputs are very large.
67629
67630 2005-03-15  Karl Berry  <karl@gnu.org>
67631
67632         * config/srclist.txt (config.rpath): from gettext.
67633         * config/config.rpath: update.
67634
67635 2005-03-15  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67638         to 'negate'.
67639
67640         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67641         variable.
67642
67643         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67644         results.
67645
67646 2005-03-14  Simon Josefsson  <jas@extundo.com>
67647
67648         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67649         <fx@gnu.org>.
67650
67651 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67654         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67655         intprops.h.
67656         * lib/strtol.c: Likewise.
67657
67658 2005-03-14  Jim Meyering  <jim@meyering.net>
67659
67660         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67661         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67662         to be nonzero so that we (and caller) can detect the difference
67663         between a valid zero-length expansion and an error return, even
67664         when the underlying strftime fails before writing anything into
67665         that location.
67666
67667 2005-03-14  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67670         Update from GNU gettext 0.14.3.
67671
67672 2005-03-10  Jim Meyering  <jim@meyering.net>
67673
67674         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67675
67676 2005-03-10  Jim Meyering  <jim@meyering.net>
67677
67678         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67679         so that this module works on systems without fchdir.
67680
67681 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         Factor int-properties macros into a single file, except for
67684         glibc-related files.
67685         * lib/intprops.h: New file.
67686         * lib/getloadavg.c: Include it instead of limits.h.
67687         (INT_STRLEN_BOUND): Remove.
67688         * lib/human.c: Include intprops.h.
67689         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67690         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67691         302/1000.
67692         * lib/inttostr.h: Include intprops.h instead of limits.h.
67693         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67694         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67695         for consistency with intprops.h.
67696         (time_t_is_integer, twos_complement_arithmetic): Use them.
67697         * lib/sig2str.h: Include <signal.h>, intprops.h.
67698         (INT_STRLEN_BOUND): Remove.
67699         * lib/strftime.c (TYPE_SIGNED): Remove.
67700         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67701         * lib/strtol.c: Adjust comments to match intprops.h.
67702         * lib/userspec.c: Include intprops.h.
67703         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67704         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67705         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67706         instead of rolling our own expressions.
67707         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67708
67709         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67710         instead of int.
67711         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67712         the right thing even if adding 1900 would overflow.  Similarly
67713         for tm_mon + 1 and tm_yday + 1.
67714         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67715         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67716         (DO_SIGNED_NUMBER): New macro.
67717         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67718
67719 2005-03-07  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67722
67723 2005-03-07  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67726
67727 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67728
67729         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67730         (func_import): Only replace files via --import when they have actually
67731         changed.
67732
67733 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67734
67735         * m4/mmap-anon.m4: New file.
67736         * m4/pagealign_alloc.m4: New file.
67737
67738 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67739             Bruno Haible  <bruno@clisp.org>
67740
67741         * modules/pagealign_alloc: New file.
67742         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67743
67744 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67745             Bruno Haible  <bruno@clisp.org>
67746
67747         * lib/pagealign_alloc.h: New file.
67748         * lib/pagealign_alloc.c: New file.
67749
67750 2005-03-03  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67753         Use an all-permissive copyright notice, recommended by RMS.
67754
67755 2005-03-02  Bruno Haible  <bruno@clisp.org>
67756
67757         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67758         of AIX, the replacement has to be done only after <string.h> is
67759         included, therefore not in config.h. stpncpy.h does the replacement,
67760         and stpncpy.c uses it.
67761
67762 2005-03-02  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67765         stpncpy.c uses it.
67766
67767 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67770         The workaround isn't strictly needed for POSIX conformance, and
67771         it's too much of a pain to configure and maintain.  We'll ask
67772         people to fix their kernels instead.
67773         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67774         (NANOSLEEP_BUG_WORKAROUND): Remove.
67775         (xnanosleep): Remove the workaround.
67776
67777 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67780         Reported by Derek Price.
67781         (Include): Add "timespec.h".
67782
67783         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67784
67785 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67788         to detect nanosleep bug.
67789
67790 2005-03-01  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67793
67794 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         * modules/gethrxtime: New file.
67797         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67798         (Depends-on): Add gethrxtime.
67799         (configure.ac): Add gl_XNANOSLEEP.
67800         (Makefile.am): Remove lib_SOURCES line.
67801
67802 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67805         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67806
67807 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67810         * lib/timespec.h (gettime): Return void, since it always
67811         succeeds now.  All uses changed.
67812         * lib/gettime.c (gettime): Likewise.
67813         [HAVE_NANOTIME]: Prefer nanotime.
67814         Assume gettimeofday succeeds, as POSIX requires.
67815         Assime time () succeeds, since other code already does.
67816         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67817         (timespec_subtract): Remove.
67818         (NANOSLEEP_BUG_WORKAROUND): New constant.
67819         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67820         things considerably.  Use it only on GNU/Linux hosts, since the
67821         workaround shouldn't be needed elsewhere.
67822
67823 2005-02-24  Bruno Haible  <bruno@clisp.org>
67824
67825         * modules/gettext (Files): Add m4/glibc2.m4.
67826
67827 2005-02-24  Bruno Haible  <bruno@clisp.org>
67828
67829         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67830         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67831         * m4/progtest.m4:
67832         Update from GNU gettext 0.14.2.
67833         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67834
67835 2005-02-24  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67838         * lib/config.charset: Update from GNU gettext 0.14.2.
67839
67840 2005-02-24  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/gettext.h: Update from GNU gettext 0.14.2.
67843
67844 2005-02-23  Simon Josefsson  <jas@extundo.com>
67845
67846         * m4/iconvme.m4: New file.
67847
67848 2005-02-23  Jim Meyering  <jim@meyering.net>
67849
67850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67851         change.
67852         Thanks to Bruno Haible for catching it.
67853
67854 2005-02-22  Simon Josefsson  <jas@extundo.com>
67855
67856         * modules/iconvme: New file.
67857
67858         * MODULES.html.sh: Add iconvme.
67859
67860 2005-02-22  Simon Josefsson  <jas@extundo.com>
67861
67862         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67863
67864 2005-02-22  Simon Josefsson  <jas@extundo.com>
67865
67866         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67867
67868 2005-02-22  Jim Meyering  <jim@meyering.net>
67869
67870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67871         s/ifndef/ifdef/.
67872
67873 2005-02-20  Neil Conway  <neilc@samurai.com>
67874
67875         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67876         returned by OSX/Darwin if the specified buffer is not large
67877         enough for the hostname.
67878
67879 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67880
67881         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67882         pass it to _help, otherwise the latter coredumps trying to
67883         dereference state.root_argp.
67884
67885 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         * modules/chdir-long (Depends-on): Add memrchr.
67888         * modules/memrchr (Files): Add lib/memrchr.h.
67889         (Include): "memrchr.h".
67890
67891 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67894
67895 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/memrchr.h: New file.
67898         * lib/chdir-long.c: Include it.
67899         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67900         Don't bother including stddef.h.
67901
67902 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67905         inclusion.
67906         Include <sys/types.h>, for dev_t.
67907         (ME_DUMMY, ME_REMOTE): Move from here....
67908         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67909         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67910         Dmitry V. Levin.
67911         Include mountlist.h first, to test the interface.
67912
67913 2005-01-29  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/progname.c (program_name): Initialize.
67916         Needed when linking statically on MacOS X.
67917
67918 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         Sync from coreutils.
67921         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67922         (Depends-on): Add c-strtod.
67923         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67924
67925 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67926
67927         Sync from coreutils.
67928         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67929
67930         Remove files that are specific to coreutils.
67931         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67932
67933 2005-01-28  Bruno Haible  <bruno@clisp.org>
67934
67935         * modules/javacomp: New file.
67936         * MODULES.html.sh (Java): Add javacomp.
67937
67938 2005-01-28  Bruno Haible  <bruno@clisp.org>
67939
67940         * m4/javacomp.m4: New file, from GNU gettext.
67941
67942 2005-01-28  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/javacomp.sh.in: New file, from GNU gettext.
67945         * lib/javacomp.h: New file, from GNU gettext.
67946         * lib/javacomp.c: New file, from GNU gettext.
67947
67948 2005-01-26  Simon Josefsson  <jas@extundo.com>
67949
67950         * lib/gai_strerror.c: Use GPL in header.
67951
67952 2005-01-26  Bruno Haible  <bruno@clisp.org>
67953
67954         * modules/javaexec: New file.
67955         * MODULES.html.sh (Java): Add javaexec.
67956
67957 2005-01-26  Bruno Haible  <bruno@clisp.org>
67958
67959         * m4/javaexec.m4: New file, from GNU gettext.
67960
67961 2005-01-26  Bruno Haible  <bruno@clisp.org>
67962
67963         * lib/javaexec.sh.in: New file, from GNU gettext.
67964         * lib/javaexec.h: New file, from GNU gettext.
67965         * lib/javaexec.c: New file, from GNU gettext.
67966
67967 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67968
67969         * modules/lchown (Depends-on): Remove lchown.h
67970
67971 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67972
67973         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67974         must be defined if the header file was not found, in order
67975         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67976
67977 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67978
67979         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67980         initializers for struct pentry_state.
67981         (__argp_error): Check return value of __asprintf
67982         (__argp_failure): Translate error message
67983
67984         * lib/argp-parse.c: Removed braces around the expansion of N_()
67985
67986 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67989         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67990         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67991         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67992         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67993         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67994         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67995         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67996         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67997         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67998         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67999         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68000         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68001         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68002         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68003         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68004         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68005         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68006         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68007         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68008         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68009         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68010         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68011         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68012         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68013         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68014         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68015         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68016         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68017         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68018         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68019         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68020         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68021         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68022         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68023         Use an all-permissive copyright notice, recommended by RMS.
68024
68025 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * modules/chdir-long (Depends-on): Remove mempcpy.
68028
68029 2005-01-21  Jim Meyering  <jim@meyering.net>
68030
68031         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68032         same value as for Solaris 9.
68033
68034         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68035         component length.  This included changing the parameter to be
68036         of type `char *' rather than `char const *'.
68037         * lib/chdir-long.h (chdir_long): Update prototype.
68038
68039         * lib/openat.c (fdopendir, fstatat): New functions.
68040         * lib/openat.h: Include headers required for use of DIR and struct
68041         stat.
68042         [AT_SYMLINK_NOFOLLOW]: Define.
68043         (fdopendir, fstatat): Add prototypes.
68044
68045 2005-01-21  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/classpath: New file.
68048         * MODULES.html.sh (Java): Add classpath.
68049
68050 2005-01-21  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/classpath.h: New file, from GNU gettext.
68053         * lib/classpath.c: New file, from GNU gettext.
68054
68055 2005-01-20  Simon Josefsson  <jas@extundo.com>
68056
68057         * modules/version-etc-fsf: New file.
68058
68059 2005-01-20  Simon Josefsson  <jas@extundo.com>
68060
68061         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68062         * lib/version-etc.c: Remove version_etc_copyright.
68063         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68064         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68065
68066 2005-01-20  Simon Josefsson  <jas@extundo.com>
68067
68068         * lib/base64.h (isbase64): Add.
68069
68070         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68071         using a unsigned prototype, don't inline.
68072         (base64_decode): Use it.
68073
68074 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68075
68076         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68077         it.
68078
68079 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * lib/save-cwd.c (save_cwd): Remove code to support the case
68082         where fchdir is missing or flaky.
68083
68084 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68085
68086         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68087
68088 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68091         AC_LIBSOURCES now does this.
68092         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68093         with new ullong_max module.
68094
68095 2005-01-19  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/sh-quote: New file.
68098         * MODULES.html.sh (Executing programs): Add sh-quote.
68099
68100 2005-01-19  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/sh-quote.h: New file, from GNU gettext.
68103         * lib/sh-quote.c: New file, from GNU gettext.
68104
68105 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         Merge from coreutils.
68108         * m4/ullong_max.m4: New file.
68109         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68110         (gl_MACROS): Assume localeconv exists.
68111
68112 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         Merge changes from coreutils, as described below in several
68115         changelogs dated today.
68116
68117         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68118         (O_DIRECTORY): Remove; not needed here, since "." must be
68119         a directory.  All uses removed.
68120         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68121         universal on Suns, and we also need to test for IRIX.
68122         Revamp code to use 'if' rather than '#if'.
68123         Avoid unnecessary comparison of cwd->desc to 0.
68124
68125         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68126         for known valid error numbers rather than observed invalid ones.
68127
68128 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * modules/ullong_max: New file.
68131
68132         * modules/chdir-long, modules/openat: New files.
68133         * modules/save-cwd (Depends-on): Depend on chdir-long.
68134         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68135
68136 2005-01-18  Jim Meyering  <jim@meyering.net>
68137
68138         Merge from coreutils.
68139         * m4/chdir-long.m4, m4/openat.m4: New files.
68140         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68141         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68142         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68143         is sane and DOES follow symlinks.  Besides, testing 20 different
68144         systems found no broken chown implementations.
68145         Prompted by a change in rsync's copy of this macro.
68146         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68147
68148         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68149
68150         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68151         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68152         NULL-means-set-to-current-time semantics.
68153         Remove temporary file immediately, rather than waiting
68154         for configure's at-exit trap code to do it.
68155
68156 2005-01-18  Jim Meyering  <jim@meyering.net>
68157
68158         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68159
68160         * lib/utimens.c (futimens): Account for the fact that futimes
68161         can also fail with errno == ENOSYS or errno == ENOENT.
68162         Patch from Dmitry V. Levin.
68163
68164         Change the name of the robust chdir function from chdir to chdir_long.
68165         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68166         (restore_cwd): Use chdir_long, not chdir.
68167         * lib/chdir-long.c: Renamed from chdir.c.
68168         * lib/chdir-long.h: Renamed from chdir.h.
68169         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68170         Hurd.
68171
68172 2005-01-18  Bruno Haible  <bruno@clisp.org>
68173
68174         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68175         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68176         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68177         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68178         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68179         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68180         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68181         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68182         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68183         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68184         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68185         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68186         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68187         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68188         Use an all-permissive copyright notice, recommended by RMS.
68189
68190 2005-01-18  Bob Proulx  <bob@proulx.com>
68191
68192         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68193         simplify offsetof() macro construct to avoid compile failure with
68194         native HP-UX 11.0 ANSI C compiler.
68195
68196 2005-01-17  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68199         redundant because stpncpy.m4 takes care of it.
68200
68201 2005-01-17  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68204
68205 2005-01-17  Bruno Haible  <bruno@clisp.org>
68206
68207         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68208         used.
68209
68210 2005-01-17  Bruno Haible  <bruno@clisp.org>
68211
68212         * lib/fwriteerror.h (fwriteerror): Change specification to include
68213         fclose.
68214         * lib/fwriteerror.c: Include <stdbool.h>.
68215         (fwriteerror): At the end, close the file stream. Record whether
68216         stdout was already closed.
68217
68218 2005-01-17  Bruno Haible  <bruno@clisp.org>
68219
68220         * lib/execute.c (environ): Declare if needed.
68221         * lib/pipe.c (environ): Likewise.
68222         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68223
68224 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68225
68226         * modules/argp: Depend on vsnprintf
68227
68228 2005-01-10  Jim Meyering  <jim@meyering.net>
68229
68230         * modules/closeout (Depends-on): Add atexit.
68231
68232 2005-01-06  Bruno Haible  <bruno@clisp.org>
68233
68234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68235
68236 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68239         definitions to be after all include files, to avoid collisions.
68240         Problem reported by Bob Proulx.
68241
68242 2005-01-04  Jim Meyering  <jim@meyering.net>
68243
68244         Changes imported from coreutils.
68245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68246         as the mkstemp template, use a temporary directory and an
68247         8.3-friendly template to avoid trouble on systems like DJGPP.
68248         Reported by Juan M. Guerrero via Stepan Kasal.
68249         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68250         close. Remove the temporary directory right away, rather than waiting
68251         for configure's at-exit trap code to do it.
68252         Suggestion from Stepan Kasal.
68253
68254 2005-01-01  Simon Josefsson  <jas@extundo.com>
68255
68256         * gnulib-tool: Print #include directives when --import'ing.
68257
68258 2004-12-28  Simon Josefsson  <jas@extundo.com>
68259
68260         * tests/test-base64.c: Include required header files.  Remove
68261         unused variables.
68262
68263 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * modules/error (Depends-on): Remove gettext.
68266
68267 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68270         not needed.  This removes a dependency on the gettext module.
68271         [defined _LIBC]: Do not include <libintl.h>; not needed.
68272
68273 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68276         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68277
68278 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68281         HAVE_DECL_STRTOLD.
68282
68283 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * modules/getdate (Depends-on): Remove alloca-opt.
68286
68287 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68290
68291 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         * lib/argp-parse.c: Include <stddef.h>.
68294         (alignof, alignto): New macros.
68295         (parser_init): Don't assume that void * is aligned sufficiently
68296         for struct option.
68297
68298         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68299         need to extend the stack.
68300         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68301         large.
68302
68303 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68304
68305         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68306
68307 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68310         (2004-10-24) change.  Apparently this was a false alarm.
68311
68312         * modules/getdate: Depend on alloca-opt, not alloca.
68313
68314 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68317         Remove now-obsolete comment about AIX.
68318         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68319         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68320         (YYMAXDEPTH): New macro.
68321
68322 2004-12-18  Simon Josefsson  <jas@extundo.com>
68323
68324         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68325
68326 2004-12-18  Bruno Haible  <bruno@clisp.org>
68327
68328         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68329
68330 2004-12-18  Bruno Haible  <bruno@clisp.org>
68331
68332         * lib/fatal-signal.c (fatal_signals): Make non-const.
68333         (init_fatal_signals): New function.
68334         (uninstall_handlers, install_handlers): Ignore signals that were set to
68335         SIG_IGN.
68336         (at_fatal_signal): Call init_fatal_signals.
68337         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68338         SIG_IGN.
68339         Reported by Paul Eggert.
68340
68341 2004-12-18  Bruno Haible  <bruno@clisp.org>
68342
68343         * doc/alloca.texi: New file.
68344         * doc/alloca-opt.texi: New file.
68345
68346 2004-12-17  Jim Meyering  <jim@meyering.net>
68347
68348         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68349         Otherwise, install-sh could exit with improper exit status when
68350         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68351
68352 2004-12-16  Simon Josefsson  <jas@extundo.com>
68353
68354         * tests/test-base64.c: Add license.
68355
68356 2004-12-15  Stepan Kasal  <address@hidden>
68357
68358         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68359
68360 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * modules/getcwd (Files): Add m4/d-ino.m4.
68363         Suggested by Mark D. Baushke.
68364
68365 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * lib/getdate.y (textint): New member "negative".
68368         (time_zone_hhmm): New function.
68369         Expect 14 shift-reduce conflicts, not 13.
68370         (o_colon_minutes): New rule.
68371         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68372         (yylex): Set the "negative" member of signed numbers.
68373
68374 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * doc/getdate.texi (Time of day items, Time zone items):
68377         Describe new formats +00:00, UTC+00:00.
68378
68379 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68382         spurious "-l"s.  Problem reported by Stepan Kasal.
68383
68384 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68387         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68388
68389 2004-12-04  Simon Josefsson  <jas@extundo.com>
68390
68391         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68392         Vandoorselaere <yoann@prelude-ids.org>.
68393
68394 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         Changes imported from coreutils.
68397         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68398         exist.
68399         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68400
68401 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         Changes imported from coreutils.
68404         * lib/hard-locale.c: Assume <locale.h> exists.
68405         Include "strdup.h".
68406         (GLIBC_VERSION): New macro.
68407         (hard_locale): Assume setlocale exists.
68408         Rewrite to avoid #ifdef.
68409         Use strdup rather than malloc + strcpy.
68410         * lib/human.c: Assume <locale.h> exists.
68411         (human_readable): Assume localeconv exists.
68412
68413 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         * modules/hard-locale (Depends-on): Add strdup.
68416
68417 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68418
68419         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68420         convert T2, not T.  (Imported from libc.)
68421
68422 2004-11-30  Simon Josefsson  <jas@extundo.com>
68423
68424         * modules/restrict (License): Change to LGPL.
68425
68426 2004-11-30  Simon Josefsson  <jas@extundo.com>
68427
68428         * m4/restrict.m4: Add copyright and copying conditions.
68429
68430 2004-11-30  Simon Josefsson  <jas@extundo.com>
68431
68432         * m4/base64.m4: New file.
68433
68434 2004-11-30  Simon Josefsson  <jas@extundo.com>
68435
68436         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68437         base64.
68438
68439         * tests/test-base64.c: New file.
68440
68441         * modules/base64: New file.
68442
68443 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68446         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68447
68448         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68449
68450 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68453         (__getcwd.c): Don't restore errno; glibc doesn't.
68454         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68455         first, falling back to our code only if its results look suspicious.
68456         Ensure that the resulting buffer is only as large as necessary.
68457
68458         * lib/readutmp.c: Include readutmp.h first.
68459         Include <errno.h>, since readutmp.h no longer does that.
68460         * lib/readutmp.h: Don't include <errno.h>,
68461         <sys/param.h>, <time.h>; not needed to establish interface.
68462         (errno): Remove decl.
68463         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68464         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68465         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68466
68467 2004-11-28  Simon Josefsson  <jas@extundo.com>
68468
68469         * lib/base64.h, base64.c: New file.
68470
68471 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68472
68473         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68474
68475 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68478         (Depends-on): Remove pathmax, same.  Add mempcpy.
68479         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68480         (Makefile.am): Append getcwd.h to lib_SOURCES.
68481         (Include): Add getcwd.h.
68482         (Maintainer): Change from Jim Meyering to "all, glibc",
68483         since getdate now uses intended-for-glibc code.
68484         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68485         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68486
68487 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68490         HP's ANSI C compiler.
68491         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68492         Declaring int functions causes warnings on some modern systems and
68493         shouldn't be needed to compile on ancient ones.
68494         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68495         defined.
68496
68497         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68498         with the following changes.
68499         (__set_errno): Parenthesize properly.
68500         Include <stdbool.h>.
68501         (MIN, MAX, MATCHING_INO): New macros.
68502         (__getcwd): Define with prototype, not K&R form.
68503         Use heuristics to allocate default buffer on stack if possible.
68504         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68505         behavior, and to avoid the PATH_MAX limit when computing
68506         ../../../../...
68507         Use MATCHING_INO to compare inode number to file.
68508         Check for arithmetic overflow in size calculations.
68509         Fix bug in reallocation of dot array that caused getcwd to fail
68510         on directories nested deeper than 75.
68511         Be more careful about saving errno on error.
68512         Do not use realloc; use only free+malloc, as this is a bit
68513         more flexible and avoids a needless copy operation.
68514         Do not inspect st_dev and st_ino for symbolic links; POSIX
68515         doesn't specify the latter.
68516         Check for closedir errors.
68517         Avoid needless casts.
68518         Use "#ifdef weak_alias" around weak_alias, to be like other
68519         glibc code.
68520         The following changes to getcwd.c have effect only when used in
68521         gnulib; they have no effect inside glibc proper.
68522         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68523         as alloca isn't used.
68524         (alloca, __alloca): Likewise.
68525         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68526         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68527         unconditionally, as gnulib assumes C89 or better.
68528         Do not include <sys/param.h>.
68529         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68530         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68531         better.
68532         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68533         Include <dirent.h> in a way that is compatible with modern Autoconf.
68534         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68535         New macros, if not already defined.
68536         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68537         Use "_LIBC", not "defined _LIBC", for consistency.
68538         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68539         a mempcpy module.
68540         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68541         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68542         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68543         credit only to Jim Meyering and adjust the copyright dates.
68544         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68545         <stdlib.h>, <unistd.h>, "pathmax.h".
68546         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68547         (INITIAL_BUFFER_SIZE): Remove.
68548         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68549
68550 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68551
68552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68553         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68554         Use the _ONCE methods, for efficiency.
68555         Check for fcntl.h.  In test program, include <errno.h>
68556         and <fcntl.h> if available.  Remove old K&R cruft from
68557         test program.  Check for common errors in GNU/Linux,
68558         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68559         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68560         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68561         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68562         name accordingly.
68563         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68564         accommodate new getcwd.c.
68565         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68566         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68567         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68568         that's all we need now.
68569
68570 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68571
68572         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68573         argp-parse.c depends on getopt internals, that means we should
68574         always use our getopt, to be on the safe side.
68575         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68576         order not to spoil the result of an eventual previous invocation
68577         of gl_GETOPT_SUBSTITUTE.
68578
68579 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68580
68581         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68582         redefinition warnings. To avoid them, include the defines
68583         in `#if !defined __need_getopt ... #endif'. The only place
68584         where __getopt_argv_const is used is in definitions
68585         of getopt_long and getopt_long_only below, which are as well
68586         protected by `#ifndef __need_getopt'.
68587         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68588         __need_getopt after including <stdio.h> and <unistd.h> These
68589         headers might have defined it.
68590
68591 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68594
68595 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68598         (futimens): New function, which uses futimes if available.
68599         (futimens, utimens): Support timespec==NULL, with same semantics
68600         as utime and utimens.
68601         * lib/utimens.h (futimens): New decl.
68602
68603 2004-11-23  Jim Meyering  <jim@meyering.net>
68604
68605         * lib/getopt_.h: Remove trailing blanks.
68606
68607 2004-11-23  Jim Meyering  <jim@meyering.net>
68608
68609         * lib/__fpending.c: Add comment.
68610
68611 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * modules/canonicalize (Depends-on): Add xreadlink.
68614         Problem reported by James Youngman.
68615
68616 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68619         New macros.
68620         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68621         optopt): Use them instead of invoking ## directly; otherwise, the
68622         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68623
68624 2004-11-19  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/strtok_r.c: Move comments from here...
68627         * lib/strtok_r.h: ... to here.
68628
68629 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68632         implementations that mishandle size_t overflow.
68633
68634 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68637         might fail.  Problem reported by Yoann Vandoorselaere.
68638         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68639         implementations that mishandle size_t overflow.
68640
68641 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * modules/canon-host (Depends-on): Add strdup.
68644
68645 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68648
68649 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68650
68651         * lib/canon-host.c: Include "strdup.h".
68652         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68653         Use strdup instead of malloc/strcpy to duplicate strings.
68654
68655         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68656         (human_space_before_unit): New constant.
68657         * lib/human.c (human_readable): Support it.
68658
68659         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68660         (xgetcwd): Set errno correctly when failing.
68661         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68662         the failure is actually due to a PATH_MAX problem.
68663
68664         Further getopt changes to make it more likely that glibc will
68665         buy the changes back.
68666         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68667         (getopt): Use it, so to preserve glibc semantic
68668         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68669         when compiling for libc.
68670         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68671         (getopt_long, getopt_long_only): Use it.
68672
68673         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68674         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68675         (getopt): Argv is now char * const *, as per standard.
68676         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68677         not char *__getopt_argv_const *.
68678         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68679         _getopt_long_only_r): Likewise.
68680         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68681         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68682         _getopt_long_r, _getopt_long_only_r): Likewise.
68683         * lib/getopt_.h (__getopt_argv_const): Remove.
68684         (getopt): Argv is now char * const *, as per standard.
68685
68686         * lib/getdate.y (tORDINAL): New token.
68687         (day, relunit): Allow it for relative times.
68688         (relative_time_table): Use tORDINAL for ordinals.
68689
68690 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68693         Document that "second" isn't allowed as an ordinal number.
68694
68695 2004-11-16  Jim Meyering  <jim@meyering.net>
68696
68697         * modules/closeout (Depends-on): Add fpending.
68698
68699 2004-11-15  Jim Meyering  <jim@meyering.net>
68700
68701         * lib/closeout.c: Include "__fpending.h" once again.
68702         Include <stdbool.h>.
68703         (close_stdout): Don't fail just because stdout was closed initially,
68704         since some programs don't write to stdout in the normal course of
68705         operation (other than --version and --help), and we don't want this
68706         function to make e.g. `touch file >&-' fail.
68707         But do fail if it was closed and someone has tried to write to it.
68708         E.g., `printf foo >&-' must fail.
68709
68710 2004-11-13  Jim Meyering  <jim@meyering.net>
68711
68712         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68713
68714 2004-11-12  Simon Josefsson  <jas@extundo.com>
68715
68716         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68717         small doc fix is still pending.
68718
68719 2004-11-11  Simon Josefsson  <jas@extundo.com>
68720
68721         * modules/strtok_r: New file.
68722
68723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68724         strtok_r.
68725
68726 2004-11-11  Simon Josefsson  <jas@extundo.com>
68727
68728         * m4/strtok_r.m4: New file.
68729
68730         * m4/getopt.m4: Replace opterr.
68731
68732 2004-11-11  Simon Josefsson  <jas@extundo.com>
68733
68734         * lib/strtok_r.h, strtok_r.c: New file.
68735
68736 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68739         of replacing opterr, getopt, etc.  This should handle the
68740         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68741
68742 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68743
68744         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68745         we can stop lying to compilers about the constness of argv when we
68746         are compiled outside glibc.
68747         (getopt, getopt_long, getopt_long_only): Use it.
68748         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68749         _getopt_internal, getopt): Likewise.
68750         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68751         _getopt_long_only_r): Likewise.
68752         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68753         _getopt_long_r, _getopt_long_only_r): Likewise.
68754
68755         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68756         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68757         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68758         the other external symbols.
68759         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68760         declaration, since the above renaming now works around collisions.
68761
68762 2004-11-11  Jim Meyering  <jim@meyering.net>
68763
68764         * lib/linebreak.c: Remove trailing blanks.
68765         * lib/alloca_.h: Likewise.
68766         * lib/acosl.c: Likewise.
68767         * lib/euidaccess.c: Likewise.
68768         * lib/allocsa.h: Likewise.
68769
68770 2004-11-10  Simon Josefsson  <jas@extundo.com>
68771
68772         * m4/getaddrinfo.m4: New file.
68773
68774 2004-11-10  Simon Josefsson  <jas@extundo.com>
68775
68776         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68777
68778 2004-11-10  Simon Josefsson  <jas@extundo.com>
68779
68780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68781         getaddrinfo.
68782
68783         * modules/getaddrinfo: New file.
68784
68785 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68788
68789 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * lib/mktime.c (SHR): New macro, which is a portable
68792         substitute for >> that should work even on Crays.
68793         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68794         Problem reported by Mark D. Baushke in
68795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68796         * lib/getdate.y (SHR): Likewise.
68797         (tm_diff): Use it.
68798         * lib/strftime.c (SHR): Likewise.
68799         (tm_diff): Use it.
68800         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68801         quote_these_too, so that right shifts are well defined.  All uses
68802         changed.
68803
68804 2004-11-10  Jim Meyering  <jim@meyering.net>
68805
68806         Ensure that no close failure goes unreported.
68807         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68808         return early when it seems there's nothing to flush.
68809         Don't include __fpending.h.
68810
68811 2004-11-10  Jim Meyering  <jim@meyering.net>
68812
68813         * modules/closeout (Depends-on): Remove fpending.
68814
68815 2004-11-10  Jim Meyering  <jim@meyering.net>
68816
68817         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68818
68819 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68822         gl_FUNC_STRFTIME.
68823         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68824         and AC_REQUIRE when possible, to avoid duplicate checks.
68825         Check for <wchar.h>.
68826
68827 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68830
68831 2004-11-09  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/sockpfaf.m4: New file.
68834
68835 2004-11-05  Bruno Haible  <bruno@clisp.org>
68836
68837         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68838         Reported by Mark D. Baushke <mdb@cvshome.org>.
68839
68840 2004-11-04  Bruno Haible  <bruno@clisp.org>
68841
68842         2004-09-11  Bruno Haible  <bruno@clisp.org>
68843                 * allocsa.valgrind: New file.
68844         2004-02-06  Bruno Haible  <bruno@clisp.org>
68845                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68846                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68847                 Reported by Christopher Seip <chris.seip@hp.com>.
68848
68849 2004-11-04  Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68852         (Makefile.am): Distribute it.
68853
68854 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68857         with errno == ERANGE if the buffer is too small.
68858         Problem reported by Mark D. Baushke.
68859
68860 2004-11-03  Albert Chin  <china@thewrittenword.com>
68861             Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68864         equivalent, substitute $ac_type for equivalent type rather than
68865         blindly using uint32_t *always* which won't work if uint32_t is not
68866         available.  Define _UINT32_T to work around typedef of uint32_t if
68867         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68868         2.5.1.
68869
68870 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * m4/jm-macros.m4: Sync from coreutils.
68873         (gl_MACROS): Check for mbrlen, for pathchk.
68874         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68875
68876 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * lib/xreadlink.c (MAXSIZE): New macro.
68879         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68880         size does not exceed MAXSIZE.  Avoid cast.
68881         As suggested by Mark D. Baushke in
68882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68883         if readlink fails with buffer size just under MAXSIZE, try again
68884         with MAXSIZE.
68885
68886 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68889
68890 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68891         and  Paul Eggert  <eggert@cs.ucla.edu>
68892
68893         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68894         (get_date): Overparenthesize to avoid GCC warning.
68895
68896 2004-11-02  Bruno Haible  <bruno@clisp.org>
68897
68898         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68899         returns void.
68900
68901 2004-11-02  Bruno Haible  <bruno@clisp.org>
68902
68903         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68904         function returns void.
68905
68906 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68909         fflush_unlocked, flockfile, funlockfile, funlockfile,
68910         fputs_unlocked, putc_unlocked.
68911
68912 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68915         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68916         already declared.
68917
68918 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * modules/getdate (Files): Add doc/getdate.texi.
68921         (Depends-on): Add setenv, xalloc.
68922
68923 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * lib/getdate.y: Add support for TZ="foo" within a date string.
68926         Fix some bugs near time_t boundaries.  Reject dates with
68927         out-of-range components, e.g., "Sept 31".
68928         Include <stdlib.h>, "setenv.h", "xalloc.h".
68929         (ISDIGIT_LOCALE): Remove; unused.
68930         Note that the TZ and time functions used here are not reentrant.
68931         (mktime_ok, get_tz): New functions.
68932         (TZBUFSIZE): New constant.
68933         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68934         This requires that we sometimes generate our own TZ="XXX..." setting.
68935
68936 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         * doc/getdate.texi: New file, from coreutils with modifications for
68939         the new TZ parsing.
68940
68941 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68942
68943         * lib/mktime.c (not_equal_tm): Remove redundant check.
68944
68945 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * modules/regex (lib_SOURCES): Add regex.c.
68948         Reported by James Youngman in
68949         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68950
68951 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * lib/getdate.y: Use Bison 1.875 features, and some minor
68954         code cleanups.  This change does not affect semantics.
68955         Don't include <stdlib.h>; no longer needed.
68956         Don't include unlocked-io.h; only the "#if TEST" code uses
68957         stdio, and performance isn't crucial there.
68958         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68959         Bison 1.875 features as described below.
68960         All uses of "PC." replaced by "pc->".
68961         (YYSTYPE): Add a forward declaration.
68962         (yylex, yyerror): Use full prototypes in forward decls.
68963         Use "%pure-parser" rather than obsolescent "%pure_parser".
68964         Use %parse-param and %lex-param instead of obsolescent
68965         YYPARSE_PARAM and YYLEX_PARAM.
68966         (meridian_table, month_and_day_table, time_units_table,
68967         relative_time_table, time_zone_table, military_table,
68968         lookup_zone, lookup_word, get_date):
68969         Use NULL instead of 0 where appropriate.
68970         (to_hour): Avoid abort (), to avoid a dependency on
68971         stdlib.h.
68972         (yyerror, yylex): Now accepts parser_control * arg.
68973         (main) [TEST]: Use '\0' rather than 0 for char.
68974
68975 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68976
68977         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68978
68979 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68982         It's now the caller's responsibility to handle the case where
68983         !HAVE_GETPAGESIZE && !defined getpagesize.
68984
68985         * lib/mktime.c (leapyear): Arg is long int, not int.
68986
68987 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68990
68991 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68994         missing.  Problem reported by James Youngman.
68995
68996 2004-10-16  Simon Josefsson  <jas@extundo.com>
68997
68998         * gnulib-tool: Fix comments.  Fix parse problem.
68999         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69000
69001 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69004         implementation of getopt_long.  Problem reported by Alexander Taler in:
69005         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69006
69007 2004-10-15  Bruno Haible  <bruno@clisp.org>
69008
69009         * gnulib-tool: Untabify. Initialize supplied_libname.
69010         (func_usage): More homogenous output.
69011         (func_modules_transitive_closure, func_modules_to_filelist,
69012         func_emit_lib_Makefile_am): New functions.
69013         (func_import): New function, extracted from big case statement. Use
69014         func_get_license, func_modules_transitive_closure,
69015         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69016         opt_lgpl. Don't use test -a, as it's not portable.
69017         (func_create_testdir): Use func_modules_transitive_closure,
69018         func_modules_to_filelist, func_emit_lib_Makefile_am.
69019
69020 2004-10-15  Bruno Haible  <bruno@clisp.org>
69021
69022         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69023
69024 2004-10-15  Bruno Haible  <bruno@clisp.org>
69025
69026         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69027         the portions belonging to each module.
69028         Suggested by Derek Robert Price <derek@ximbiot.com>.
69029
69030 2004-10-12  Simon Josefsson  <jas@extundo.com>
69031
69032         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69033         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69034         to real functions.
69035
69036 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69037
69038         * modules/vsnprintf: New file.
69039
69040 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69041
69042         * m4/vsnprintf.m4: New file.
69043
69044 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69045
69046         * lib/vsnprintf.h: New file.
69047         * lib/vsnprintf.c: New file.
69048
69049 2004-10-11  Bruno Haible  <bruno@clisp.org>
69050
69051         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69052         vsnprintf.
69053
69054 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69057
69058 2004-10-07  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69061         fits into the provided buffer.
69062
69063 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * lib/diacrit.c, diacrit.h: Add GPL notice.
69066
69067         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69068         notice.
69069         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69070         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69071         This avoids a potential constant-folding bug.
69072
69073 2004-10-05  Bruno Haible  <bruno@clisp.org>
69074
69075         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69076         for the declaration of strsep.
69077
69078 2004-10-05  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69081
69082 2004-10-04  Simon Josefsson  <jas@extundo.com>
69083
69084         * modules/memmem: New file.
69085         * tests/test-memmem.c: New file.
69086         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69087
69088 2004-10-04  Simon Josefsson  <jas@extundo.com>
69089
69090         * m4/memmem.m4: New file.
69091
69092 2004-10-04  Simon Josefsson  <jas@extundo.com>
69093
69094         * lib/memmem.h: New file.
69095         * lib/memmem.c: New file, taken from glibc.
69096
69097 2004-10-04  Simon Josefsson  <jas@extundo.com>
69098
69099         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69100         '#ifdef USE_UNLOCKED_IO'.
69101
69102 2004-10-04  Simon Josefsson  <jas@extundo.com>
69103
69104         * config/srclist.txt: Add memmem from glibc.
69105
69106 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69109
69110         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69111         modules/exclude, modules/getdate, modules/getline,
69112         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69113         modules/getusershell, modules/linebuffer, modules/md5,
69114         modules/mountlist, modules/posixtm, modules/readtokens,
69115         modules/readutmp, modules/regex, modules/sha1,
69116         modules/version-etc, modules/yesno:
69117         Remove dependency on unlocked-io.
69118
69119 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69122
69123         * m4/unlocked-io.m4: Add copyright notice.
69124         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69125
69126 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69129         * lib/xmalloc.c (xmemdup): Likewise.
69130         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69131         XFREE): Remove these long-obsolescent macros.
69132         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69133         * lib/xstrdup.c: Remove.
69134
69135         * lib/regex.c (re_comp): Cast gettext return value to char *,
69136         Problem reported by Martin Neitzel via Mark D. Baushke.
69137
69138 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69141         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69142         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69143         regex.c, sha1.c, version-etc.c, yesno.c:
69144         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69145         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69146         the includer's responsibility.
69147
69148         Sync from coreutils.
69149
69150         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69151         points to the start of a string, as the C Standard says the
69152         resulting behavior is undefined.
69153
69154         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69155         simple -> simple_backups, numbered_existing ->
69156         numbered_existing_backups, numbered -> numbered_backups
69157         to avoid shadowing problems.  All uses changed.
69158         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69159         * lib/backupfile.c (check_extension, numbered_backup):
69160         Rename locals to avoid shadowing 'basename'.
69161         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69162         once.
69163
69164         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69165         * lib/.cvsignore: Add getopt.h.
69166
69167 2004-10-04  Bruno Haible  <bruno@clisp.org>
69168
69169         * modules/README: New file.
69170         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69171         not a module.
69172
69173 2004-10-02  Jim Meyering  <jim@meyering.net>
69174
69175         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69176
69177 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69178
69179         * modules/strsep: New file.
69180
69181 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69182
69183         * m4/strsep.m4: New file.
69184
69185 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69186
69187         * lib/strsep.h: New file.
69188         * lib/strsep.c: New file.
69189
69190 2004-10-01  Simon Josefsson  <jas@extundo.com>
69191
69192         * lib/snprintf.c (snprintf): Handle size==0.
69193
69194 2004-10-01  Simon Josefsson  <jas@extundo.com>
69195             Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69198         (snprintf): Declare 'args'.
69199
69200 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         * lib/snprintf.c: Remove comments as to why each header is needed.
69203
69204 2004-10-01  Bruno Haible  <bruno@clisp.org>
69205
69206         * MODULES.html.sh: Add strsep.
69207
69208 2004-09-30  Simon Josefsson  <jas@extundo.com>
69209
69210         * modules/snprintf: New file.
69211
69212 2004-09-30  Simon Josefsson  <jas@extundo.com>
69213
69214         * m4/snprintf.m4: New file.
69215
69216 2004-09-30  Simon Josefsson  <jas@extundo.com>
69217
69218         * lib/snprintf.h, lib/snprintf.c: New files.
69219
69220 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69221
69222         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69223         (hol_entry_help): Never translate an empty string.
69224         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69225         * lib/argp.h (OPTION_NO_TRANS): New option.
69226
69227 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * modules/argp (Maintainer): Replace Simon Josefsson
69230         by Sergey Poznyakoff.
69231
69232 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69235         changes merged back into glibc.
69236
69237 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69240
69241 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69242
69243         * lib/xvasprintf.c: Include xalloc.h.
69244         (xvasprintf): Use xalloc_die, not xmalloc_die.
69245
69246 2004-09-29  Bruno Haible  <bruno@clisp.org>
69247
69248         * modules/alloca-opt: New file, derived from modules/alloca.
69249         * modules/allocsa: Depend on alloca-opt instead of alloca.
69250         * modules/setenv: Likewise.
69251         * modules/vasnprintf: Likewise.
69252         * MODULES.html.sh: Add alloca-opt.
69253
69254 2004-09-28  Simon Josefsson  <jas@extundo.com>
69255
69256         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69257         LGPL, and to replace license template from GPL to LGPL.
69258
69259 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69260
69261         * modules/dummy: Change license to LGPL.
69262
69263 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69266
69267 2004-09-24  Simon Josefsson  <jas@extundo.com>
69268
69269         * modules/minmax (License): Change from GPL to LGPL.
69270
69271 2004-09-23  Simon Josefsson  <jas@extundo.com>
69272
69273         * gnulib-tool (--import): Typo.
69274
69275 2004-09-23  Simon Josefsson  <jas@extundo.com>
69276
69277         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69278
69279 2004-09-22  Bruno Haible  <bruno@clisp.org>
69280
69281         * modules/*: Add 'License' field.
69282         * gnulib-tool: Accept --extract-license option.
69283         (func_get_license): New function.
69284
69285 2004-09-21  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69288         Reported by Simon Josefsson.
69289
69290 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69293         gl_AC_TYPE_LONG_LONG.
69294
69295 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69298
69299 2004-09-18  Simon Josefsson  <jas@extundo.com>
69300         and  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69303         calls with autoreconf.  Define GL_LIB.
69304
69305 2004-09-14  Karl Berry  <karl@gnu.org>
69306
69307         * config/srclist.txt: unsync setenv.c, sigh.
69308
69309 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69312         Problem reported by Bruno Haible in:
69313         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69314
69315 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * config/srclist.txt: Comment out argp-pvh.c.
69318
69319 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69322         in case some system header has #define'd it.  Problem reported by
69323         Soeren D. Schulze in
69324         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69325
69326 2004-09-09  Karl Berry  <karl@gnu.org>
69327
69328         * regex.[ch]: delete from the root.  These were supposed to be
69329                 synced with emacs cvs, but this has not happened for about
69330                 a year, and anyway nothing else uses emacs regex.[ch].
69331                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69332                 lib/regex[.ch] is untouched.
69333
69334 2004-09-09  Bruno Haible  <bruno@clisp.org>
69335
69336         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69337
69338 2004-09-09  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69341         modifications.
69342         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69343
69344 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69345
69346         * modules/xvasprintf: New file.
69347         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69348
69349 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69350
69351         * lib/xvasprintf.h: New file.
69352         * lib/xvasprintf.c: New file.
69353         * lib/xasprintf.c: New file.
69354
69355 2004-09-08  Bruno Haible  <bruno@clisp.org>
69356
69357         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69358
69359 2004-09-08  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69362         length is > INT_MAX.
69363         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69364         more.
69365
69366 2004-09-08  Bruno Haible  <bruno@clisp.org>
69367
69368         * lib/stdint_.h: New file, taken from GNU clisp.
69369
69370 2004-09-08  Bruno Haible  <bruno@clisp.org>
69371             Oskar Liljeblad  <oskar@osk.mine.nu>
69372
69373         * modules/stdint: New file.
69374         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69375
69376 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         Import from coreutils.
69379         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69380         strings on unbounded length.  alloca's performance benefits aren't
69381         that important here.
69382         (V_STRDUP): Remove.
69383         (parse_with_separator): New function, with most of the internals
69384         of the old parse_user_spec.  Allow user to omit both user and group,
69385         for compatibility with FreeBSD.
69386         Clone only the user name, not the entire spec.
69387         Do not set *uid, *gid unless entirely successful.
69388         Avoid memory leak in some failing cases.
69389         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69390         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69391         (parse_user_spec): Rewrite to use parse_with_separator.
69392
69393 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * modules/userspec: Don't depend on alloca.
69396
69397 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69400
69401 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69404         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69405         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69406
69407 2004-08-16  Simon Josefsson  <jas@extundo.com>
69408
69409         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69410         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69411         Add --dry-run for --import.
69412         Let user provided command line parameters override configure.ac
69413         settings.
69414
69415 2004-08-12  Simon Josefsson  <jas@extundo.com>
69416
69417         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69418         as discussed with Paul Eggert in threads rooted at
69419         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69420         and
69421         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69422         Before, the test was empty, and relied on ELIDE_CODE in source
69423         code.)
69424         (gl_PREREQ_GETOPT): New macro.
69425         (gl_GETOPT): Use them.
69426
69427 2004-08-12  Simon Josefsson  <jas@extundo.com>
69428
69429         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69430         * lib/getopt_.h: Renamed from getopt.h.
69431
69432 2004-08-12  Simon Josefsson  <jas@extundo.com>
69433
69434         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69435         Change default library name from libfoo to libgnu.
69436         Now, if you have a configure.ac that says:
69437                 gl_SOURCE_BASE(gl)
69438                 gl_M4_BASE(gl/m4)
69439                 gl_MODULES(error getopt etcetera)
69440                 gl_INIT
69441         you can import all you need by running:
69442                 ../gnulib/gnulib-tool --import
69443
69444         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69445         (Makefile.am): Rewrite, use logic from argz.
69446         (Include): Use <getopt.h> instead of "getopt.h".
69447
69448 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * modules/argp (Files): Add m4/unlocked-io.m4.
69451         (Depends-on): Add extensions.
69452
69453 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69456         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69457         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69458         Check for program_invocation_name, program_invocation_short_name,
69459         flockfile, funlockfile, features.h, _getopt_long_only_r.
69460
69461 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69464         its complicated substitute.
69465         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69466         and program_invocation_name.
69467         (__argp_basename) [!_LIBC]: Remove; the only use was
69468         replaced by its body.
69469         (__argp_short_program_name): Change condition from
69470         !defined __argp_short_program_name to
69471         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69472         to match argp-namefrob.h.
69473         (__argp_failure): Don't assume strerror_r returns char *.
69474         * lib/argp-parse.c (N_): Define unconditionally.
69475         (argp_default_options): Fill out initializers with 0 to avoid
69476         gcc warnings.
69477
69478 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69481         getopt1.c.
69482
69483 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         Merge from coreutils.
69486
69487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69488
69489         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69490         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69491
69492 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         Merge from coreutils.
69495
69496         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69497         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69498         for Reliant Unix 5.43.
69499
69500         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69501         (union fooround): Use uintmax_t, not long int.
69502         The rest is a merge from libc:
69503         [defined _LIBC]: Include <shlib-compat.h>.
69504         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69505
69506         * lib/settime.c (settime): Recode to avoid warning with
69507         Sun Forte C 6U2.
69508
69509         * lib/strverscmp.c: Convert to UTF-8.
69510
69511 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69514         m4/uintmax_t.m4.
69515
69516 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * modules/xalloc-die: New file.
69519         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69520
69521         * modules/md5 (Files): Add m4/uint32_t.m4.
69522         * modules/sha1: Renamed from modules/sha.
69523         (Files):
69524         Rename lib/sha.h to lib/sha1.h.
69525         Rename lib/sha.c to lib/sha1.c.
69526         Rename m4/sha.m4 to m4/sha1.m4.
69527         (lib_SOURCES): Likewise.
69528         (configure.ac): Rename gl_SHA to gl_SHA1.
69529         (Include): sha.h -> sha1.h.
69530
69531 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69534         * m4/sha1.m4: Renamed from sha.m4.
69535         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69536
69537 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * lib/obstack.h (obstack_empty_p):
69540         Don't assume that chunk->contents is suitably aligned.
69541         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69542         Likewise. Problem reported by Benno in
69543         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69544
69545         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69546         readable.  This could be improved further but it'd take some work.
69547
69548 2004-08-08  Simon Josefsson  <jas@extundo.com>
69549
69550         * modules/xgethostname (Depends-on): Remove exit and error (not
69551         used).
69552
69553         * modules/getpass-gnu: Add getpass.h.
69554         (Depends-on): Add stdbool.
69555         * modules/getpass: Add getpass.h.
69556
69557 2004-08-08  Simon Josefsson  <jas@extundo.com>
69558
69559         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69560         Check getpass declaration.
69561
69562 2004-08-08  Simon Josefsson  <jas@extundo.com>
69563
69564         * lib/xgethostname.c: Don't include error.h (not used).
69565
69566         * lib/getpass.h: Add.
69567         * lib/getpass.c: Include getpass.h first.
69568
69569 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/xalloc-die.c: New file.
69572         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69573         All uses removed.
69574         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69575         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69576         xalloc-die.c.
69577         (_, N_, xalloc_die): Move to xalloc-die.c.
69578         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69579         so that we needn't mess with xalloc_msg_memory_exhausted.
69580
69581         * lib/sha1.h: Renamed from sha.h.
69582         (SHA1_H): Renamed from _SHA_H.
69583         (sha1_ctx): Renamed from sha_ctx.
69584         (sha1_init_ctx): Renamed from sha_init_ctx.
69585         (sha1_process_block): Renamed from sha_process_block.
69586         (sha1_process_bytes): Renamed from sha_process_bytes.
69587         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69588         (sha1_read_ctx): Renamed from sha_read_ctx.
69589         (sha1_stream): Renamed from sha_stream.
69590         (sha1_buffer): Renamed from sha_buffer.
69591         * lib/sha1.c: Likewise; renamed from sha.c.
69592         Do not include <sys/types.h>.
69593         Include <stddef.h> rather than <stdlib.h>.
69594
69595 2004-08-08  Bruno Haible  <bruno@clisp.org>
69596
69597         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69598         FILESYSTEM_PREFIX_LEN.
69599         * lib/progreloc.c: Likewise.
69600         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69601
69602 2004-08-06  Simon Josefsson  <jas@extundo.com>
69603
69604         * modules/progname (Depends-on): Don't depend on stdbool.
69605
69606 2004-08-06  Simon Josefsson  <jas@extundo.com>
69607
69608         * modules/getsubopt: New file.
69609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69610         getsubopt.
69611
69612 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         More merge from coreutils.
69615
69616         * m4/utimens.m4, m4/utimecmp.m4: New files.
69617         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69618         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69619         prereq.m4, sha.m4: Import changes from coreutils.
69620
69621 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         More merge from coreutils.
69624         * modules/raise, modules/readtokens0, modules/utimens:
69625         * modules/utimecmp, module/xnanosleep: New files.
69626         * modules/strftime: Add lib/strftime.h.
69627         Change include from <time.h> to "strftime.h".
69628         * modules/yesno: Add lib/yesno.h.
69629         * modules/backupfile: Remove lib/addext.c.
69630         * modules/euidaccess: Add stat-macros.h.
69631         * modules/canonicalize, modules/euidaccess,
69632         modules/filemode, modules/lchown, modules/makepath,
69633         modules/rmdir, modules/stat: Likewise.
69634
69635 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         Merge from tar.
69638         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69639         SIZE_MAX is a valid preprocessor constant.
69640         (__argp_basename): Change from "#ifndef _LIBC"
69641         to "#ifndef __argp_short_program_name", so that
69642         we don't compile these functions for tar.
69643
69644         More merges from coreutils.
69645         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69646         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69647         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69648         * lib/addext.c: Remove; no longer needed.
69649         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69650         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69651         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69652         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69653         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69654         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69655         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69656         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69657         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69658         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69659         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69660         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69661         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69662         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69663         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69664         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69665         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69666         Import changes from coreutils.
69667
69668 2004-08-05  Simon Josefsson  <jas@extundo.com>
69669
69670         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69671
69672 2004-08-05  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/getsubopt.m4: New file.
69675
69676 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69677
69678         Merge from coreutils.
69679
69680         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69681         * m4/getcwd-path-max.m4: New files.
69682
69683         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69684         FILESYSTEM_PREFIX_LEN ->
69685         FILE_SYSTEM_PREFIX_LEN.
69686         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69687         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69688         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69689         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69690
69691         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69692         prerequisite modules now handle the DOS stuff.
69693         Don't check for unistd.h.
69694
69695 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         Merge from coreutils.
69698
69699         * lib/.gdb-history: Remove; this doesn't belong here.
69700
69701         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69702         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69703         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69704         * lib/getcwd.c: New files.
69705
69706         * lib/dirname.h: Include <stdbool.h>.
69707         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69708         for consistency with POSIX terminology.  All uses changed.
69709         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69710         (strip_trailing_slashes): Use bool for booleans.
69711         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69712
69713         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69714         sometimes returns a positive errno value even when it succeeds.
69715         (print_errno_message) [!LIBC]: Fall back on strerror if
69716         __strerror_r fails.
69717
69718         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69719         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69720         (longest_relative_suffix): New function.
69721         (path_concat): Use it.  Assume first argument is not NULL.
69722         Port to DOS.  Omit redundant separators.
69723         Report an error instead of returning NULL.
69724         Use mempcpy instead of memcpy.
69725         (xpath_concat): Remove: not declared or used.
69726
69727         * lib/same.h: Include <stdbool.h>
69728         (same_name): Return bool, not int.
69729         * lib/same.c (same_name): Likewise.
69730         (errno): Don't declare; we assume C89 or better now.
69731
69732         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69733         if not already defined.
69734
69735         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69736         * lib/dup-safer.c (errno): Likewise.
69737
69738 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         Merge from coreutils.
69741         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69742         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69743         * modules/path-concat: Don't depend on strdup.
69744
69745 2004-08-03  Simon Josefsson  <jas@extundo.com>
69746
69747         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69748         * lib/progname.h: Don't include stdbool.h.
69749
69750 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69753         * MODULES.html.sh (func_all_modules): Remove fatal.
69754
69755 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69758
69759 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69762         working.
69763
69764 2004-08-02  Simon Josefsson  <jas@extundo.com>
69765
69766         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69767         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69768         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69769
69770 2004-08-01  Simon Josefsson  <jas@extundo.com>
69771
69772         * lib/xgetdomainname.c: Include stdlib.h, for free().
69773
69774 2004-07-19  Bruno Haible  <bruno@clisp.org>
69775
69776         * MODULES.html.sh (func_all_modules): Add dummy.
69777
69778 2004-07-16  Simon Josefsson  <jas@extundo.com>
69779
69780         * modules/dummy: New file.
69781
69782 2004-07-16  Simon Josefsson  <jas@extundo.com>
69783
69784         * lib/dummy.c: New file.
69785
69786 2004-07-16  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/backupfile.h: Add extern "C" for C++.
69789         * lib/closeout.h: Likewise.
69790         * lib/copy-file.h: Likewise.
69791         * lib/findprog.h: Likewise.
69792         * lib/full-write.h: Likewise.
69793         * lib/pathname.h: Likewise.
69794         * lib/progname.h: Likewise.
69795         * lib/stpcpy.h: Likewise.
69796         * lib/stpncpy.h: Likewise.
69797         * lib/strcase.h: Likewise.
69798         * lib/strstr.h: Likewise.
69799         * lib/xalloc.h: Likewise.
69800
69801         * lib/mbswidth.h: Add extern "C" for C++.
69802         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69803
69804 2004-07-13  Robert Millan  <robertmh@gnu.org>
69805
69806         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69807
69808 2004-07-09  Simon Josefsson  <jas@extundo.com>
69809
69810         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69811         failed without this.)
69812
69813 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69814
69815         * modules/chown (Files): Add lib/fchown-stub.c, since
69816         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69817
69818 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         * lib/fchown-stub.c: New file.
69821
69822 2004-06-24  Jim Meyering  <jim@meyering.net>
69823
69824         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69825
69826 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * modules/argz: Omit "#include".
69829
69830         * MODULES.html.sh (func_all_modules): Add calloc, to match
69831         2004-06-01 addition of calloc module.
69832
69833 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * m4/argz.m4: New file, which is autoupdated from libtool.
69836
69837 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69840         libtool.
69841
69842 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * config/srclist-update: Don't insist on "USA." before the
69845         close-comment, as libtool omits the period and puts the */ on a
69846         separate line.
69847         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69848         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69849
69850 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69851
69852         * modules/argz: New file.
69853         * MODULES.html.sh (func_all_modules): Add argz.
69854
69855 2004-06-12  Jim Meyering  <jim@meyering.net>
69856         and  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * modules/hash (Files): Add lib/xalloc.h.
69859         * modules/pipe (Depends-on): Add wait-process.
69860         * modules/stat (Depends-on): Add xalloc.
69861         * modules/userspec (Files): Add lib/userspec.h.
69862         * modules/xstrto
69863
69864         Upgrade from gettext-0.13.
69865         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69866         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69867         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69868
69869 2004-06-10  Jim Meyering  <jim@meyering.net>
69870
69871         * lib/calloc.c: New file.
69872
69873 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * lib/getdate.y (yylex): Allow space between sign and number.
69876         Problem reported by Dan Jacobson.
69877
69878 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         Merge from coreutils CVS.
69881
69882         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69883         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69884         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69885         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69886         xstrtol.m4: Fix copyright date and/or serial number.
69887
69888         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69889         See if we need an fchown replacement.
69890         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69891         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69892         and use the replacement function if we detect either defect.
69893
69894         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69895         gl_UTIMECMP.
69896
69897 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69898         and  Jim Meyering  <jim@meyering.net>
69899
69900         Merge from coreutils CVS.
69901
69902         * lib/stat-macros.h: New file, with contents from file-type.h
69903         and coreutils' system.h.
69904         * lib/file-type.c: Include "stat-macros.h".
69905         * lib/file-type.h (file_type): Move all macro definitions to new file,
69906         stat-macros.h.
69907
69908         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69909         Wrap old code with this conditional.
69910         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69911         function that does not dereference symlinks.
69912         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69913
69914         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69915         dependency problems.
69916         (xreadlink): Accept new arg SIZE, for efficiency.
69917         All decls and uses changed.
69918         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69919
69920         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69921         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69922
69923         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69924         sysexits.h.
69925
69926 2004-06-01  Jim Meyering  <jim@meyering.net>
69927
69928         * m4/calloc.m4: New file.
69929
69930 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69933         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69934         Also, fix a typo in a diagnostic.
69935
69936 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69939         or AC_FUNC_REALLOC.
69940
69941 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69944         macros to be defined.
69945         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69946         the allocator returns NULL because the requested size is zero.
69947
69948 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69951         var.  Add comment explaining why libc still defines it.  This
69952         merges the following patch from glibc:
69953         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69954
69955 2004-05-20  Andreas Schwab  <schwab@suse.de>
69956
69957         * m4/free.m4: Replace free if it not known to work, not the other
69958         way round.
69959
69960 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69961
69962         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69963         present in glibc since revision 1.1 of this file.
69964         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69965         obstack_alignment_mask, obstack_alloc, obstack_base,
69966         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69967         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69968         obstack_grow0, obstack_init, obstack_int_grow,
69969         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69970         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69971         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69972         nonexistent functions.
69973
69974 2004-05-18  Karl Berry  <karl@gnu.org>
69975
69976         * config/srclist.txt: break link for vasnprintf.c.
69977
69978 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         Port obstack to the AS/400, where pointers are 16 bytes wide and
69981         you cannot cast an integer to a valid pointer.  This patch is
69982         currently waiting to be integrated into glibc; see
69983         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69984
69985         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69986         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69987         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69988         (struct obstack): temp member is now a union of a pointer and
69989         an integer, instead of an integer.  All integer uses changed.
69990         This does not affect the physical layout of struct obstack,
69991         except on hosts (like the AS/400) where the size or alignment of
69992         void * is greater than that of ptrdiff_t.
69993         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69994         __STDC__)]: Store temporary in pointer member of union, not
69995         integer member.
69996         * lib/obstack.c: Include <stddef.h>, for offsetof.
69997         (struct fooalign): Remove; it doesn't need a name.
69998         (union fooround): Change double to long double, and add void *.
69999         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70000         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70001         not a macro.  Hence the values are always int; so remove all
70002         casts-to-int in uses.
70003
70004 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70007         we can get this patch merged into glibc.
70008
70009 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70010             Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * m4/argp: Depend on alloca.
70013
70014 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70015             Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70018         freecoding.
70019
70020 2004-05-17  Bruno Haible  <bruno@clisp.org>
70021
70022         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70023         precision that consists of a '.' followed by an empty digit string.
70024         Patch by Tor Lillqvist <tml@iki.fi>.
70025
70026 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70029         for backward compatibility with older code.  We need our own
70030         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70031         it under some other name, and our alloca.h will define it.
70032
70033 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70034             Derek Price  <derek@ximbiot.com>
70035
70036         * lib/alloca.c: Include <alloca.h>, to get our interface.
70037         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70038         include <alloca.h> first.  Use C89 prototype for alloca; this
70039         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70040         Use #elif for simplicity, since we can assume C89 now.
70041         Don't try to source the system alloca.h since it will not be found
70042         and to prevent recursively including its replacement.
70043         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70044         * lib/regex.c: Likewise.
70045
70046 2004-05-16  Derek Price  <derek@ximbiot.com>
70047             Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         getline cleanup.  This changes the getndelim2 API: both order of
70050         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70051         no delimiter).
70052
70053         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70054         interface does that.
70055         (getline): Always use getdelim, so that we don't have two
70056         copies of this code.
70057         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70058         if available.
70059         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70060         (GETNDELIM2_MAXIMUM): New macro.
70061         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70062         instead of the old practice of delim2==0.  All callers changed.
70063         Return -1 on overflow, instead of returning junk.
70064         Do not set *linesize unless allocation succeeds.
70065         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70066         that we include sys/types.h.
70067         * lib/getnline.h: Likewise.
70068         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70069         (getndelim2): Reorder arguments.
70070         * lib/getnline.c (getnline, getndelim):
70071         Don't discard the NMAX argument.
70072         (getnline): Invoke getndelim, to avoid code duplication.
70073         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70074         of (size_t) -1 by callers of the getnline family.
70075
70076 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70079         Check for gettimeofday.
70080         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70081         Check for settimeofday, stime.
70082
70083 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/nanosleep.c (suspended): Change its type from int to
70086         sig_atomic_t volatile.
70087         (first_call): Make it private to rpl_nanosleep, and have it
70088         be zero initially as that's a bit faster.
70089         (my_usleep): Round up fractional times instead of truncating them,
70090         as this is the usual meaning for 'sleep'.
70091
70092         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70093         doesn't work.
70094         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70095         (ENOSYS): Define if not defined.
70096         (settime): Fall back on stime if it exists and settimeofday fails.
70097         But don't bother with fallbacks if a method fails with errno == EPERM.
70098
70099 2004-05-11  Jim Meyering  <jim@meyering.net>
70100
70101         Prior to this change, the save_cwd caller required read access to the
70102         current directory on most systems (ones with the fchdir function).
70103
70104         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70105         fails, try write-only, and finally, resort to using xgetcwd.
70106
70107 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/obstack.c, obstack.h: Import changes from libc.
70110
70111 2004-04-28  Bruno Haible  <bruno@clisp.org>
70112
70113         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70114         also implicitly appends .exe to executables.
70115         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70116         accepts Windows pathnames.
70117         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70118         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70119         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70120         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70121         Reported by Derek Robert Price <derek@ximbiot.com>.
70122
70123 2004-04-21  Karl Berry  <karl@gnu.org>
70124
70125         * config/srclist.txt (localcharset.c): break sync.
70126
70127 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70128
70129         * m4/host-os.m4: Add a copyright notice.
70130
70131 2004-04-20  Jim Meyering  <jim@meyering.net>
70132
70133         Change UTILS_ to gl_ in AC_DEFINE'd names.
70134         Change utils_- and jm_-prefixed variables, too.
70135         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70136         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70138
70139         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70140         Don't emit trailing blanks.
70141         Also rename jm_-prefixed variables to have gl_ prefix.
70142
70143         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70144         Also rename jm_-prefixed variables to have gl_ prefix.
70145
70146         * m4/jm-macros.m4: Reflect the renamings.
70147         * m4/prereq.m4: Likewise.
70148
70149 2004-04-20  Jim Meyering  <jim@meyering.net>
70150
70151         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70152         memory.
70153
70154 2004-04-20  Jim Meyering  <jim@meyering.net>
70155             Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70158         memory when realloc fails.
70159
70160 2004-04-19  Jim Meyering  <jim@meyering.net>
70161
70162         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70163         now that readutmp.c may call `free (0)'.
70164
70165 2004-04-19  Bruno Haible  <bruno@clisp.org>
70166
70167         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70168         * m4/inttypes_h.m4: Likewise.
70169         * m4/stdint_h.m4: Likewise.
70170         * m4/intmax_t.m4: Likewise.
70171         * m4/uintmax_t.m4: Likewise.
70172
70173 2004-04-18  Jim Meyering  <jim@meyering.net>
70174
70175         * m4/prereq.m4: Don't forbid jm_ prefix.
70176
70177         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70178         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70179         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70180         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70181         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70182         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70183         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70184         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70185         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70186         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70187         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70188         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70189         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70190         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70191         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70192         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70193         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70194         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70195         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70196
70197 2004-04-18  Jim Meyering  <jim@meyering.net>
70198
70199         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70200         failure, don't leak memory and do call END_UTMP_ENT.
70201
70202 2004-04-16  Jim Meyering  <jim@meyering.net>
70203
70204         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70205         coreutils' stat program.
70206         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70207
70208 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70209
70210         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70211         C89.
70212         (CHAR_BIT): Remove, since we assume C89.
70213         Include <stdint.h> if available, as per current Autoconf CVS advice.
70214
70215 2004-03-31  Jim Meyering  <jim@meyering.net>
70216
70217         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70218         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70219         * m4/xalloc.m4: Likewise.
70220
70221 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70222
70223         Merge from coreutils.
70224
70225         * m4/inttostr.m4: New file.
70226         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70227         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70228         Require gl_CLOCK_TIME.
70229         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70230
70231 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70232
70233         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70234         not bool, to be more consistent with Unix conventions.
70235         Suggested by Bruno Haible.
70236
70237         Merge from coreutils.
70238
70239         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70240         * lib/umaxtostr.c: New files.
70241
70242         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70243         the usual <time.h> dance.
70244         (get_date): Change signature to support fractional time stamps.
70245         All callers changed.
70246         * lib/getdate.y: Include "getdate.h" first, as we can now
70247         assume C89 and don't need to worry about 'const'.
70248         Similarly, include "unlocked-io.h" near start, not in middle.
70249         Include <limits.h>.
70250         (textint.value): Use long int rather than int.
70251         (textint.digits): Use size_t rather than int.
70252         (BILLION, LOG10_BILLION): New constants.
70253         (parser_control): New member rel_ns.  Members day_ordinal,
70254         time_zone, month, day, hour, minutes, rel_year, rel_month,
70255         rel_day, rel_hour, rel_minutes, rel_seconds
70256         are now long int, not int.  Member seconds is now struct timespec,
70257         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70258         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70259         not int.
70260         (%union.intval): Now long int, not int.
70261         New member timespec.
70262         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70263         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70264         (spec): Now is a timespec or an item list.
70265         (timespec, items): New nonterminals.
70266         (time, rel, relunit, number, get_date):
70267         Add support for fractional seconds.
70268         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70269         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70270         (to_hour): First arg is now long int, not int.
70271         (to_year): Returns long int, not int.
70272         Don't treat year -70 like 70.
70273         (tm_diff): Returns long int, not int.
70274         (lookup_word): Use bool instead of int when appropriate.
70275         (yylex): Use size_t for count, not int.
70276         Detect overflow when parsing large integer constants.
70277         Add support for fractions.
70278         (get_date): Make pointers 'const' if possible.
70279         Use more-portable code to detect integer overflow.
70280         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70281         Don't use ctime; it's not reliable if the year has >4 digits.
70282
70283         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70284         This is for compatibility with BSD.
70285
70286         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70287         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70288         From coreutils' system.h.
70289
70290         * lib/userspec.c: Don't include "posixver.h".
70291         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70292         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70293         compatible extension.  Simplify code by removing a boolean int
70294         that was always nonzero if a string was nonnull.
70295
70296 2004-03-30  Jim Meyering  <jim@meyering.net>
70297
70298         Merge from coreutils.
70299
70300         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70301         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70302         on some systems one must include <grp.h> before it.
70303         Reported by Christian Krackowizer.
70304
70305 2004-03-30  Jim Meyering  <jim@meyering.net>
70306
70307         Merge from coreutils.
70308
70309         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70310
70311         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70312         an empty input stream.
70313
70314         * lib/readtokens.c: Include <stdbool.h>.
70315         (readtoken): Use `size_t' rather than int/long.
70316         All callers adjusted.
70317         Use `bool' rather than `int' where appropriate.
70318         Use memset rather than an explicit loop.
70319         Use x2nrealloc rather than xrealloc.
70320         Allow the use of `\0' as a delimiter.
70321         (readtokens): Likewise.
70322         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70323
70324 2004-03-30  Jim Meyering  <jim@meyering.net>
70325
70326         * m4/realloc.m4: Remove file, since now it does no more than
70327         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70328         the `configure.ac' section of module/realloc.
70329         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70330
70331 2004-03-30  Bruno Haible  <bruno@clisp.org>
70332
70333         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70334         nonnull.
70335
70336 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70337
70338         Merge changes to getloadavg.c from coreutils and Emacs.
70339
70340         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70341         Define to an expression, not to the empty string.
70342         Include cloexec.h and xalloc.h.
70343         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70344         Use set_cloexec_flag rather than rolling our own.
70345         * lib/cloexec.c, lib/cloexec.h: New files.
70346
70347 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70348
70349         * m4/cloexec.m4: New file.
70350
70351 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70352
70353         * lib/getopt.h: Sync with libc CVS.
70354
70355 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70356             Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70359         mbswidth.
70360
70361 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70362             Bruno Haible  <bruno@clisp.org>
70363
70364         * lib/mbswidth.h: Include <wchar.h> only if
70365         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70366         <wchar.h>.
70367         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70368
70369 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70370
70371         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70372         Sync with libc CVS.
70373         * lib/getopt_int.h: New file, also synced from libc.
70374
70375 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70376
70377         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70378         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70379         Bring back getopt.c, getopt.h, getopt1.c.
70380
70381 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70382
70383         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70384         All uses changed.  Check for sa_sigaction member; this fixes
70385         a bug first reported by Jason Andrade in
70386         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70387
70388 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70389
70390         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70391         '#if' expressions.  Unlike the code it replaces, it does not
70392         depend on (defined _SC_PAGESIZE).  However, it does depend on
70393         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70394         first reported by Jason Andrade in
70395         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70396
70397 2004-02-25  Simon Josefsson  <jas@extundo.com>
70398
70399         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70400
70401 2004-02-25  Simon Josefsson  <jas@extundo.com>
70402
70403         * lib/strdup.h: New file.
70404         * lib/strdup.c: Include it.
70405         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70406         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70407
70408 2004-02-23  Karl Berry  <karl@gnu.org>
70409
70410         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70411         (from fencepost.gnu.org:/gd/gnuorg).
70412
70413 2004-02-23  Karl Berry  <karl@gnu.org>
70414
70415         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70416         * config/srclist.txt: add maintain/standards documents.
70417
70418 2004-02-18  Bruno Haible  <bruno@clisp.org>
70419
70420         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70421         Reported by Derek Robert Price <derek@ximbiot.com>.
70422
70423 2004-02-16  Karl Berry  <karl@gnu.org>
70424
70425         * config/mkinstalldirs, install-sh: update from automake.
70426
70427 2004-02-06  Karl Berry  <karl@gnu.org>
70428
70429         * m4/po.m4: update from gettext 0.14.1.
70430
70431 2004-02-06  Karl Berry  <karl@gnu.org>
70432
70433         * lib/config.charset: update from gettext 0.14.1.
70434
70435 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70436
70437         Add comments and code, prompted by suggestions from Bruno Haible
70438         for sh-quote.
70439         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70440         describing the enum quoting_style values.
70441         * lib/quotearg.c (quotearg_alloc): New function.
70442         (quotearg_buffer_restyled): Treat lone { and } as special.
70443         Treat = as special.  Work around bug with older shells
70444         that "see" a '\' that is really the 2nd byte of a multibyte char.
70445         Quote empty string with shell_quoting_style.
70446
70447 2004-02-03  Bruno Haible  <bruno@clisp.org>
70448
70449         * m4/pipe.m4: New file, from GNU gettext.
70450
70451 2004-02-03  Bruno Haible  <bruno@clisp.org>
70452
70453         * lib/pipe.h: New file, from GNU gettext.
70454         * lib/pipe.c: New file, from GNU gettext.
70455
70456 2004-01-27  Bruno Haible  <bruno@clisp.org>
70457
70458         * m4/execute.m4: New file, from GNU gettext.
70459
70460 2004-01-27  Bruno Haible  <bruno@clisp.org>
70461
70462         * lib/execute.h: New file, from GNU gettext.
70463         * lib/execute.c: New file, from GNU gettext.
70464         * lib/w32spawn.h: New file, from GNU gettext.
70465
70466 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70467
70468         Merge from diffutils.
70469
70470         * lib/file-type.c (file_type): Add typed memory objects.
70471         * lib/file-type.h (S_TYPEISTMO): New macro.
70472
70473         * lib/c-stack.h (c_stack_action): Remove argv argument.
70474         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70475         (die): Don't calculate message unless segv_action returns.
70476         (get_stack_location, min_address_from_argv, max_address_from_argv,
70477         volatile stack_base, volatile_stack_size): Remove.
70478         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70479         that every segmentation violation is a stack overflow.  (Ouch!)
70480         See Debian bug 136249 (still outstanding) for more info about why
70481         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70482
70483 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70484
70485         Exit-status fix from coreutils.
70486
70487         Use exit_failure consistently in place of EXIT_FAILURE,
70488         so that program exit statuses are consistent on failure.
70489
70490         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70491         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70492         * lib/argmatch.h: Comment fix to match the above.
70493         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70494         Now a macro referring to exit_failure, instead of a separate
70495         variable.  Include "exitfail.h" to get it.
70496         * lib/xstrtol.h: Include "exitfail.h".
70497         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70498
70499         * lib/long-options.c (parse_long_options): Use prototype
70500         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70501         for clarity.
70502
70503 2004-01-21  Jim Meyering  <jim@meyering.net>
70504
70505         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70506         so as not to conflict with a different-sized __mktime_internal
70507         function in GNU libc.
70508         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70509         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70510
70511 2004-01-20  Karl Berry  <karl@gnu.org>
70512
70513         * config/config.guess: update from config.
70514
70515         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70516
70517 2004-01-20  Bruno Haible  <bruno@clisp.org>
70518
70519         Safer stack allocation.
70520         * lib/setenv.c: Include allocsa.h.
70521         (alloca): Remove fallback definition.
70522         (freea): Remove macro.
70523         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70524         instead of freea.
70525
70526 2004-01-20  Bruno Haible  <bruno@clisp.org>
70527
70528         * m4/eealloc.m4: New file, from GNU gettext.
70529
70530 2004-01-20  Bruno Haible  <bruno@clisp.org>
70531
70532         * m4/allocsa.m4: New file, from GNU gettext.
70533
70534 2004-01-20  Bruno Haible  <bruno@clisp.org>
70535
70536         * lib/xallocsa.h: New file, from GNU gettext.
70537         * lib/xallocsa.c: New file, from GNU gettext.
70538
70539 2004-01-20  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70542
70543 2004-01-20  Bruno Haible  <bruno@clisp.org>
70544
70545         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70546         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70547         specially.
70548
70549 2004-01-20  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70552         patch.
70553
70554 2004-01-20  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70557
70558 2004-01-20  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/eealloc.h: New file.
70561
70562 2004-01-20  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/binary-io.h: Avoid warnings on Cygwin.
70565
70566 2004-01-20  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/allocsa.h: New file, from GNU gettext.
70569         * lib/allocsa.c: New file, from GNU gettext.
70570
70571 2004-01-18  Karl Berry  <karl@gnu.org>
70572
70573         * doc/gpl.texi, doc/lgpl.texi: new files.
70574
70575 2004-01-18  Karl Berry  <karl@gnu.org>
70576
70577         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70578         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70579
70580 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70581
70582         Merge from coreutils.
70583
70584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70585         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70586         (gl_DEFAULT_POSIX2_VERSION): Move
70587         the documentation from 'configure' into 'config.hin',
70588         so that 'configure --help' isn't burdened by it and
70589         we don't have to worry about its formatting there.
70590         Reword the documentation so that it's more succinct
70591         and can be run together into a single paragraph.
70592         * m4/same.m4 (gl_SAME): Check for pathconf.
70593
70594 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70595
70596         Merge from coreutils.
70597
70598         * lib/posixver.c: Include posixver.h.
70599
70600         * lib/same.c: Include <stdbool.h>, <limits.h>.
70601         (_POSIX_NAME_MAX): Define if not defined.
70602         (MIN): New macro.
70603         (same_name): If file names are silently truncated, report
70604         that the file names are the same if they are the same after
70605         the silent truncation.
70606
70607         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70608         conversion function.
70609         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70610         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70611         longer needed.
70612
70613 2004-01-15  Jim Meyering  <jim@meyering.net>
70614
70615         Merge from coreutils.
70616
70617         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70618         if no library is required.
70619         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70620         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70621         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70622         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70623         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70624         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70625         value, $ac_cv_search_crypt, if it's "none required".
70626         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70627         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70628         not gl_FUNC_GETLOADAVG.
70629         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70630         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70631
70632 2004-01-15  Jim Meyering  <jim@meyering.net>
70633
70634         Merge from coreutils.
70635
70636         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70637         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70638         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70639
70640         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70641         optional configure-time default.
70642
70643         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70644
70645         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70646
70647 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70648
70649         Merge from coreutils.
70650
70651         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70652         value, $ac_cv_search_nanosleep, if it's "none required".
70653
70654 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70655
70656         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70657         with like-named macro in fnmatch.c.
70658         (EXT): Use an internal constant instead.
70659
70660         Merge fnmatch patches from glibc.
70661         * lib/fnmatch.c (mbsinit): Remove define.
70662         Add libc_hidden_ver (__fnmatch, fnmatch).
70663         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70664         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70665
70666 2004-01-14  Karl Berry  <karl@gnu.org>
70667
70668         * config/install-sh: update from automake.
70669
70670 2004-01-13  Karl Berry  <karl@gnu.org>
70671
70672         * config/install-sh: update from automake.
70673
70674 2004-01-09  Karl Berry  <karl@gnu.org>
70675
70676         * config/install-sh: update from automake.
70677
70678 2004-01-05  Karl Berry  <karl@gnu.org>
70679
70680         * config/config.{sub,guess}: update from config.
70681
70682 2003-12-31  Karl Berry  <karl@gnu.org>
70683
70684         * config/depcomp: update from automake.
70685
70686 2003-12-14  Karl Berry  <karl@gnu.org>
70687
70688         * lib/config.charset: update from gettext-runtime.
70689
70690 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70691
70692         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70693         Bug reported by Alfred M. Szmidt.
70694
70695 2003-12-03  Bruno Haible  <bruno@clisp.org>
70696
70697         * m4/gettext.m4: Upgrade from gettext-0.13.
70698         * m4/po.m4: Upgrade from gettext-0.13.
70699         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70700         * m4/intmax.m4: New file, from gettext-0.13.
70701         * m4/printf-posix.m4: New file, from gettext-0.13.
70702
70703 2003-11-29  Karl Berry  <karl@gnu.org>
70704
70705         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70706
70707 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70708             Bruno Haible  <bruno@clisp.org>
70709
70710         * lib/printf-parse.h: Don't include sys/types.h.
70711         (ARG_NONE): New macro.
70712         (char_directive): Change type of *arg_index fields to size_t.
70713         * lib/printf-parse.c: Don't include sys/types.h.
70714         (SSIZE_MAX): Remove macro.
70715         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70716         Remove unnecessary overflow check.
70717         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70718         fields.
70719
70720 2003-11-25  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70723
70724 2003-11-25  Bruno Haible  <bruno@clisp.org>
70725
70726         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70727         gt_TYPE_SSIZE_T.
70728
70729 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70730
70731         * modules/alloca: Remove dependency on xalloc.
70732
70733 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70734
70735         * lib/alloca.c: Remove dependency on xalloc module.
70736         (xalloc_die): Remove.
70737         (memory_full) [!defined emacs]: New macro.
70738         [!defined emacs]: Don't include xalloc.h.
70739         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70740         address arithmetic overflows.  Change datatypes a bit to avoid
70741         unnecessary casts.
70742
70743 2003-11-22  Jim Meyering  <jim@meyering.net>
70744
70745         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70746         s/size/size_t/.
70747
70748 2003-11-21  Karl Berry  <karl@gnu.org>
70749
70750         * config/config.{sub,guess}: update from config.
70751
70752 2003-11-18  Karl Berry  <karl@gnu.org>
70753
70754         * config/config.{sub,guess}: update from config.
70755
70756         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70757
70758 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70759
70760         * README: Mention that S+T cannot overflow if S is the size of
70761         an existing object and T is sufficiently small.
70762
70763 2003-11-17  Jim Meyering  <jim@meyering.net>
70764
70765         On systems without utime and without a utimes function capable of
70766         dealing with a NULL struct utimbuf* argument, this utime replacement
70767         could -- in unusual circumstances -- leak a file descriptor.
70768         * lib/utime.c: Include <unistd.h> and <errno.h>.
70769         (utime_null): Be sure to close `fd' and to preserve errno.
70770         Reported by Geoff Collyer via Arnold Robbins.
70771
70772 2003-11-17  Bruno Haible  <bruno@clisp.org>
70773
70774         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70775         (Depends-on): Add xsize.
70776
70777 2003-11-17  Bruno Haible  <bruno@clisp.org>
70778
70779         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70780
70781 2003-11-17  Bruno Haible  <bruno@clisp.org>
70782
70783         * lib/vasnprintf.c (alloca): Remove fallback definition.
70784         (freea): Remove definition.
70785         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70786         Reported by Paul Eggert.
70787
70788 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70789             Bruno Haible  <bruno@clisp.org>
70790
70791         Protect against address arithmetic overflow.
70792         * lib/printf-args.h: Include stddef.h.
70793         (arguments): Change type of field 'count' to size_t.
70794         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70795         'unsigned int' where appropriate.
70796         * lib/printf-parse.h: Include sys/types.h.
70797         (char_directive): Change type of *arg_index fields to ssize_t.
70798         (char_directives): Change type of fields 'count', max_*_length to
70799         size_t.
70800         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70801         (SSIZE_MAX): Define fallback value.
70802         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70803         instead of 'int' where appropriate. Check a_allocated, d_allocated
70804         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70805         * lib/vasnprintf.c: Include xsize.h.
70806         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70807         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70808         overflow. Avoid wraparound when converting a width or precision from
70809         decimal to binary.
70810
70811 2003-11-16  Bruno Haible  <bruno@clisp.org>
70812
70813         Update from GNU gettext.
70814         * lib/printf-parse.c: Generalize to it can be compiled for wide
70815         strings.
70816         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70817         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70818         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70819         SNPRINTF): New macros.
70820         Don't include <alloca.h> if the file is used inside libintl.
70821         (local_wcslen): New function, for Solaris 2.5.1.
70822         (VASNPRINTF): Use it instead of wcslen.
70823
70824 2003-11-16  Bruno Haible  <bruno@clisp.org>
70825
70826         * lib/xsize.h (xmax): New function.
70827         (xsum, xsum3, xsum4): Declare as "pure" functions.
70828
70829 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70830
70831         * modules/xalloc (Files): Undo latest change, since xalloc.h
70832         no longer needs SIZE_MAX or PTRDIFF_MAX.
70833
70834 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70835
70836         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70837         gl_PTRDIFF_MAX.
70838
70839 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70840
70841         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70842         "return", to pacify some unknown compiler.  Problem reported
70843         by Joerg Schilling.
70844
70845 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70846
70847         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70848         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70849         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70850         heuristic is just as accurate as far as we know, and it removes a
70851         dependency on size_max.m4 and ptrdiff_max.m4.
70852
70853 2003-11-11  Bruno Haible  <bruno@clisp.org>
70854
70855         * modules/xsize (Files): Add m4/size_max.m4.
70856         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70857
70858 2003-11-11  Bruno Haible  <bruno@clisp.org>
70859
70860         * m4/size_max.m4: New file.
70861         * m4/ptrdiff_max.m4: New file.
70862         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70863         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70864         (gl_XALLOC): Invoke it.
70865
70866 2003-11-11  Bruno Haible  <bruno@clisp.org>
70867
70868         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70869         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70870         defined.
70871
70872 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70873
70874         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70875         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70876         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70877         From Bruno Haible.
70878         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70879         not (size_t) -1, since it's defined here.
70880
70881 2003-11-09  Karl Berry  <karl@gnu.org>
70882
70883         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70884
70885 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70886
70887         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70888         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70889         Reject sizes of exactly SIZE_MAX bytes.
70890         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70891         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70892
70893 2003-11-05  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70896         SIZE_MAX defined in <limits.h> on Solaris.
70897
70898 2003-11-04  Jim Meyering  <jim@meyering.net>
70899
70900         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70901         variable names, rather than @VAR@.
70902         * modules/poll: Likewise.
70903
70904 2003-11-04  Bruno Haible  <bruno@clisp.org>
70905
70906         * modules/xsize: New file.
70907         * modules/linebreak: Depend on xsize.
70908         * MODULES.html.sh (func_all_modules): Add xsize.
70909
70910 2003-11-04  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/xsize.m4: New file.
70913
70914 2003-11-04  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/xsize.h: New file.
70917         * lib/linebreak.c: Include xsize.h.
70918         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70919         argument for overflow.
70920         Suggested by Paul Eggert.
70921
70922 2003-11-03  Karl Berry  <karl@gnu.org>
70923
70924         * config/config.{guess,sub}: update from config.
70925
70926 2003-11-03  Jim Meyering  <jim@meyering.net>
70927
70928         * modules/userspec (lib_SOURCES): Add userspec.h.
70929         (Include): Add "userspec.h".
70930         Improve description.
70931
70932 2003-11-03  Jim Meyering  <jim@meyering.net>
70933
70934         * lib/userspec.c: Include "userspec.h".
70935         * lib/userspec.h: New file.
70936
70937 2003-11-03  Bruno Haible  <bruno@clisp.org>
70938
70939         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70940
70941 2003-11-03  Bruno Haible  <bruno@clisp.org>
70942
70943         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70944         available, to avoid (extremely rare) race condition.
70945         Suggested by Paul Eggert.
70946
70947 2003-11-02  Karl Berry  <karl@gnu.org>
70948
70949         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70950
70951 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70952
70953         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70954         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70955         (read_filesystem_list): Set and use me_type_malloced.
70956         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70957         whatever the type happens to be), for brevity and consistency.
70958         Check for size calculation overflow on Alphas running OSF/1.
70959
70960 2003-10-31  Jim Meyering  <jim@meyering.net>
70961
70962         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70963
70964         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70965
70966 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70967             Bruno Haible  <bruno@clisp.org>
70968
70969         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70970         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70971
70972 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70975         netbsd*-gnu*.  Suggested by Robert Millan.
70976
70977 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70978
70979         * modules/group-member: Depend on stdbool.
70980
70981 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70982
70983         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70984
70985 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70986
70987         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70988         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70989         after the 'gnu' in these cases.  This fixes some bugs in the
70990         previous change, and is based on suggestions by Robert Millan.
70991
70992 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70993
70994         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70995         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70996         no longer needed.
70997         * lib/quotearg.c (quotearg_n_options): Use it.
70998         * lib/group-member.c: Include <stdbool.h>.
70999         (free_group_info): Arg is now const *; don't free arg.
71000         (get_group_info): Now returns bool and accepts struct group_info *,
71001         rather than returning a malloc'ed struct group_info *.
71002         All uses changed.  Check for overflow in internal size calculation.
71003
71004         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71005         rather than xmalloc/xrealloc.
71006         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71007         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71008         conformance bug: the old code used a pointer after freeing the
71009         storage that it addressed.
71010         * lib/hash.c (hash_initialize): Simplify the code by using
71011         xalloc_oversized rather than doing it by hand.
71012         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71013         the buffer preserved.  Use free and xmalloc instead.
71014         * lib/quotearg.c (quotearg_n_options): Likewise.
71015         Use a simpler test for size overflow.  Don't use xalloc_oversized
71016         because unsigned int might be wider than size_t (!); this suggests
71017         that we should switch from unsigned int to size_t for slot numbers.
71018
71019 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71020
71021         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71022         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71023         NetBSD kernels.  Requested by Richard Stallman.
71024
71025 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71026
71027         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71028         to allocate the returned structure.  Do not allocate a subarray,
71029         as x2nrealloc will do that.
71030         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71031         instead of xnrealloc.
71032         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71033
71034 2003-10-27  Bruno Haible  <bruno@clisp.org>
71035
71036         * lib/stdbool_.h: Better support for BeOS.
71037
71038 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71039
71040         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71041         now uses inline.
71042
71043 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71044
71045         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71046         callers that want to do their own size-overflow checking.  Include
71047         <stdbool.h>, since xalloc_oversized returns bool.
71048         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71049         to use xalloc_oversized.
71050
71051         Add two functions x2realloc, x2nrealloc, for programs that grow
71052         arrays dynamically by doubling their sizes.
71053         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71054         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71055         New functions.
71056
71057         Port to C99 semantics for 'inline' of external functions.
71058         Bug reported by Bruno Haible.
71059         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71060         with the old contents of xnmalloc.
71061         (xnmalloc, xmalloc): Use it.
71062         (xnrealloc_inline): New static inline function,
71063         with the old contents of xnrealloc.
71064         (xnrealloc, xrealloc): Use it.
71065
71066         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71067         that.
71068
71069 2003-10-26  Karl Berry  <karl@gnu.org>
71070
71071         * config/srclist.txt (COPYING.DOC): no longer available from
71072         /gd/gnuorg; don't know where the ultimate source is.
71073
71074 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71075
71076         Fix several address-calculation bugs in the hash modules,
71077         plus some minor code cleanup.
71078
71079         * lib/hash.h: Include <stdbool.h>, for bool.
71080         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71081         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71082         hash_get_n_entries, hash_get_max_bucket_length,
71083         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71084         hash_rehash): Use size_t rather than unsigned.
71085         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71086         hash_get_n_buckets_used, hash_get_n_entries,
71087         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71088         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71089         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71090         Likewise.
71091         (SIZE_MAX): Define if not defined.
71092         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71093         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71094         hash_print):
71095         Use const * when possible.
71096         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71097         (check_tuning): Fix bug: if tuning parameters were very close to
71098         0 or 1, rounding errors could have caused subscript violations.
71099         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71100         (hash_initialize): Add 'fail:' label
71101         to free table and return NULL, and use it to simplify code.
71102         Use calloc rather than clearing the storage ourself.
71103         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71104         buffer size calculations.
71105         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71106         Include <stddef.h>, for size_t.
71107         * lib/hash-pjw.c (hash_pjw): Likewise.
71108         Switch to method described by Bruno Haible.
71109         Include <limits.h>, for CHAR_BIT.
71110         (SIZE_BITS): New macro.
71111
71112 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71113
71114         * m4/getline.m4 (AM_FUNC_GETLINE):
71115         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71116         hosts.  Problem reported by Derek Robert Price in
71117         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71118         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71119         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71120
71121 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71122
71123         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71124         ceiling the allocation at NMAX bytes rather than silently
71125         discarding input bytes before NMAX is reached.  This makes
71126         a difference only if NMAX exceeds SIZE_MAX / 2.
71127
71128         * lib/obstack.c: Merge from glibc.
71129         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71130         Add libc_hidden_def (_obstack_newchunk).
71131         (_obstack_free) [! defined _LIBC]: Remove.
71132         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71133         a clone of the function body.
71134         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71135         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71136
71137         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71138         glibc.
71139         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71140         arg to memcpy.
71141
71142         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71143         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71144         Don't use lvalue casts, as GCC plans to remove support for them
71145         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71146         was also present in the non-GCC version, indicating that this
71147         code had always been buggy and had never been widely used.
71148         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71149         Use the fast variant of each macro, rather than copying the
71150         definiens of the fast variant; that way, we'll be more likely to
71151         catch future bugs in the fast variants.
71152
71153 2003-10-20  Bruno Haible  <bruno@clisp.org>
71154
71155         * modules/wait-process: New file.
71156         * MODULES.html.sh (func_all_modules): Add wait-process.
71157
71158 2003-10-20  Bruno Haible  <bruno@clisp.org>
71159
71160         * m4/wait-process.m4: New file.
71161
71162 2003-10-20  Bruno Haible  <bruno@clisp.org>
71163
71164         * lib/wait-process.h: New file, from GNU gettext.
71165         * lib/wait-process.c: New file, from GNU gettext.
71166
71167 2003-10-19  Jim Meyering  <jim@meyering.net>
71168
71169         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71170         HPUX 10.20.
71171
71172 2003-10-18  Karl Berry  <karl@gnu.org>
71173
71174         * config/config.guess: update from config.
71175
71176 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71177
71178         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71179         (getgroups): First arg is int, not size_t.
71180         Don't let 'free' mangle errno.
71181
71182 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71183
71184         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71185
71186 2003-10-16  Karl Berry  <karl@gnu.org>
71187
71188         * config/config.{guess,sub}: update from config.
71189
71190 2003-10-16  Jim Meyering  <jim@meyering.net>
71191
71192         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71193         memcpy.
71194
71195 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71196
71197         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71198         (SIZE_MAX): Remove.
71199         (new_exclude, add_exclude_file): Initial size no longer needs to
71200         be a power of 2.
71201         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71202         our own address arithmetic overflow checking.
71203
71204         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71205         (fnmatch): Do not alloca more than 2000 wide characters;
71206         instead, use malloc for large buffers.
71207         Check for address arithmetic overflow, and return -1
71208         with errno set to ENOMEM in that case.
71209         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71210         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71211         instead, return -1.  Check for address arithmetic overflow.
71212
71213 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71214
71215         Handle invalid suffixes and overflow independently, so that
71216         callers can treat them independently as needed.  Fix some bugs in
71217         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71218         suffix for a human-readable blocksize.  The major caller-visible
71219         change is the addition of a new
71220         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71221         that both overflow and suffix chars were found.
71222
71223         * lib/human.c (humblock): Don't check separately for invalid suffix
71224         char; that is xstrtoumax's job (now that its bug is fixed).
71225         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71226         INTMAX_MAX]: New macros.
71227         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71228         TYPE_MAXIMUM): New macros.
71229         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71230         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71231         if overflow occurs, as it's what __strtol does and it's more useful
71232         in practice.
71233         (__xstrtol): If __strtol reports some error other than ERANGE,
71234         reflect it to the caller as LONGINT_INVALID.  If it reports
71235         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71236         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71237         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71238         value.
71239         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71240         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71241         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71242         [defined UINTMAX_MAX]: New macros.
71243
71244 2003-10-14  Bruno Haible  <bruno@clisp.org>
71245
71246         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71247
71248 2003-10-14  Bruno Haible  <bruno@clisp.org>
71249
71250         * m4/sig_atomic_t: New file, from GNU gettext.
71251         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71252
71253 2003-10-14  Bruno Haible  <bruno@clisp.org>
71254
71255         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71256         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71257         Also use volatile where needed.
71258
71259 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71260
71261         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71262         Change maintainer from Bruno Haible to 'all'.
71263
71264 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71265
71266         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71267
71268 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71269
71270         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71271         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71272         and define in terms of the other primitives.
71273         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71274         (SIZE_MAX): Define if not already defined.
71275         (array_size_overflow): New function.
71276         (xalloc_die): Abort instead of exiting if 'error' returns.
71277         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71278         (xmalloc, xrealloc): Use them.
71279         (xcalloc): Check for address arithmetic overflow.
71280         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71281         a bit faster than strcpy.
71282
71283 2003-10-10  Simon Josefsson  <jas@extundo.com>
71284
71285         * modules/argp (Depends-on): Add restrict and strcase.
71286
71287 2003-10-10  Simon Josefsson  <jas@extundo.com>
71288
71289         * m4/argp.m4: Add AC_C_INLINE.
71290
71291 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71292
71293         Merge getpass from libc, plus a few fixes.
71294
71295         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71296         Include <stdbool.h>.
71297         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71298         __fsetlocking to empty.
71299         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71300         do include <bits/libc-lock.h>.
71301         Do not include <fcntl.h>; not needed.
71302         [_LIBC]: Include <wchar.h>.
71303         (NOTCANCEL_MODE): New macro.
71304         (flockfile, funlockfile) [_LIBC]: New macros.
71305         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71306         [!_LIBC]: New macros.
71307         (call_fclose): New function.
71308         (getpass): Use it.  Save tty stream separately; this simplifies the
71309         code and makes it more reliable if stdin happens to equal stdout.
71310         Invoke __fsetlocking on tty.
71311         Handle thread cancellation if needed.
71312         Namespace cleanup (use __tcgetattr, __getline).
71313         Use bool for Booleans.
71314         [USE_IN_LIBIO]: Handle wide streams.
71315         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71316         stream might go where.
71317
71318         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71319         doesn't have to include <stdio.h> before us.
71320         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71321         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71322         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71323         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71324         if not declared, so that we can use getpass.c code from libc without
71325         rewriting it.
71326         (flockfile, ftrylockfile, funlockfile): New macros.
71327
71328 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71329
71330         * modules/getpass: Depend on stdbool.
71331
71332 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71333
71334         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71335
71336 2003-10-07  Karl Berry  <karl@gnu.org>
71337
71338         * config/config.{guess,sub}: update from config.
71339
71340 2003-10-06  Jim Meyering  <jim@meyering.net>
71341             Bruno Haible  <bruno@clisp.org>
71342
71343         This lets translators provide better translations for the
71344         "Written by ..." part of --version output.
71345         * lib/version-etc.h: Include stdarg.h.
71346         (version_etc_copyright): Declare as readonly.
71347         (version_etc): Make this function variadic with a NULL-terminated list
71348         of author name strings.
71349         (version_etc_va): New declaration.
71350         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71351         (version_etc_copyright): Declare as readonly.
71352         (version_etc_va): New function. Provide a different translatable string
71353         for each possible number of authors < 10. Abbreviate when there are 10
71354         authors or more.
71355         (version_etc): Make this function variadic. Call version_etc_va.
71356         Suggestion from Gary V. Vaughan.
71357
71358         * lib/long-options.h (parse_long_options): Change prototype: the
71359         authors string is moved to the end and becomes variadic.
71360         * lib/long-options.c: Include stdarg.h.
71361         (parse_long_options): Make this function variadic, too.
71362         Call version_etc_va, not version_etc.
71363
71364 2003-10-06  Bruno Haible  <bruno@clisp.org>
71365
71366         * modules/version-etc-2: Remove file.
71367         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71368
71369 2003-10-06  Bruno Haible  <bruno@clisp.org>
71370
71371         * modules/fatal-signal: New file.
71372         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71373
71374 2003-10-06  Bruno Haible  <bruno@clisp.org>
71375
71376         * m4/fatal-signal.m4: New file.
71377         * m4/signalblocking.m4: New file, from GNU gettext.
71378
71379 2003-10-06  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/version-etc-2.h: Remove file.
71382         * lib/version-etc-2.c: Remove file.
71383
71384 2003-10-06  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/fatal-signal.h: New file, from GNU gettext.
71387         * lib/fatal-signal.c: New file, from GNU gettext.
71388
71389 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71390
71391         * README: Rework advice for preventing empty .o files.
71392         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71393         not <sys/types.h>.
71394
71395 2003-10-04  Karl Berry  <karl@gnu.org>
71396
71397         * lib/argp*: update from libc.
71398
71399 2003-10-04  Karl Berry  <karl@gnu.org>
71400
71401         * config/config.{guess,sub}: update from config.
71402
71403 2003-10-02  Bruno Haible  <bruno@clisp.org>
71404
71405         * modules/lchown (Include): Add lchown.h.
71406         * modules/time_r (Include): Use "..." syntax.
71407         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71408
71409 2003-10-01  Simon Josefsson  <jas@extundo.com>
71410
71411         * MODULES.html.sh (func_all_modules): Move gethostname from section
71412         'based on' to section 'lacking' POSIX:2001.
71413
71414 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71415
71416         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71417         to output mode on the same stream.
71418
71419 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71420
71421         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71422         Fix arg typo in previous patch.
71423
71424 2003-09-28  Jim Meyering  <jim@meyering.net>
71425
71426         * lib/error.c: Correct cpp indentation.
71427
71428 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71429
71430         * modules/free: New file.
71431
71432 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71433
71434         * m4/free.m4: New file.
71435
71436 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71437
71438         * lib/minmax.h (MIN, MAX)
71439         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71440         Omit the special code that used __typeof__, since we worry that
71441         it could be more trouble than it's worth.  See:
71442         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71443         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71444
71445         * lib/free.c: New file.
71446
71447 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71448
71449         Trivial fixes to Makefile.am parts of module listings.
71450         * modules/strstr: Append strstr.h to lib_SOURCES.
71451         * modules/strcase: Likewise, for strcase.h.
71452
71453 2003-09-27  Karl Berry  <karl@gnu.org>
71454
71455         * config/mkinstalldirs: update from automake.
71456
71457 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71458
71459         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71460         (error_tail): Do not loop, reallocating temporary buffer, since
71461         the output cannot contain more wide characters than the input
71462         contains bytes, the size must be big enough already.  This avoids
71463         one potential size overflow calculation.  Check for size overflow
71464         when calculating temporary buffer size.  Free temporary buffer
71465         when done, if it was allocated with malloc; this plugs a memory
71466         leak.  Remove casts from void * to pointers, that are no longer
71467         needed now that we're assuming C89 or better.
71468
71469         Merge error changes from glibc.
71470
71471         * lib/error.c, error.h: Update copyright notice header to match glibc.
71472         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71473         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71474         Disable cancellation while printing error.
71475         * lib/error.h: Prepend __ to parameter names.
71476
71477 2003-09-26  Jim Meyering  <jim@meyering.net>
71478
71479         * lib/error.c (error_tail): Move some declarations
71480         into inner scope where the local variables are used.
71481
71482 2003-09-26  Bruno Haible  <bruno@clisp.org>
71483
71484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71485         stpncpy().
71486         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71487
71488 2003-09-26  Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71491         (stpncpy): Define as alias for gnu_stpncpy.
71492         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71493
71494 2003-09-25  Simon Josefsson  <jas@extundo.com>
71495
71496         * lib/xgetdomainname.h: New file.
71497         * lib/xgetdomainname.c: New file.
71498
71499 2003-09-25  Simon Josefsson  <jas@extundo.com>
71500             Bruno Haible  <bruno@clisp.org>
71501
71502         * modules/getdomainname: New file.
71503         * modules/xgetdomainname: New file.
71504         * MODULES.html.sh (func_all_modules): Add getdomainname,
71505         xgetdomainname.
71506
71507 2003-09-25  Simon Josefsson  <jas@extundo.com>
71508             Bruno Haible  <bruno@clisp.org>
71509
71510         * m4/getdomainname.m4: New file.
71511
71512 2003-09-25  Simon Josefsson  <jas@extundo.com>
71513             Bruno Haible  <bruno@clisp.org>
71514
71515         * lib/getdomainname.h: New file.
71516         * lib/getdomainname.c: New file.
71517
71518 2003-09-25  Karl Berry  <karl@gnu.org>
71519
71520         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71521
71522 2003-09-25  Karl Berry  <karl@gnu.org>
71523
71524         * config/install-sh: update from automake.
71525
71526 2003-09-25  Bruno Haible  <bruno@clisp.org>
71527
71528         * modules/version-etc-2: New file, from modules/version-etc with
71529         modifications.
71530         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71531
71532 2003-09-25  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71535         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71536
71537 2003-09-24  Simon Josefsson  <jas@extundo.com>
71538
71539         * modules/xgethostname: Add xgethostname.h.
71540
71541 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71542
71543         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71544         the buffer associated with the argument.  Bug reported by
71545         Simon Josefsson.
71546
71547 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71548
71549         * README: Document assumptions that 'int' is at least 32 bits
71550         wide, that integer arithmetic is 2's complement without overflow,
71551         that there are no holes in integer values, that adding sizes of
71552         two nonoverlapping objects can't overflow, and that all-bits-zero
71553         yields scalar zero.  Fix spelling and capitalization typos.
71554
71555 2003-09-19  Karl Berry  <karl@gnu.org>
71556
71557         * lib/argp.h: update from libc.
71558
71559 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71560
71561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71562         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71563         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71564
71565 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71566
71567         * gnulib-tool: Use "test -h", not "test -L", for portability
71568         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71569         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71570         (sed_extract_prog): Issue s commands one-by-one, rather than
71571         using \| in one s command.
71572
71573 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71574
71575         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71576         input error, instead of returning NULL the next time we are called
71577         (and therefore losing track of errno).
71578
71579 2003-09-16  Bruno Haible  <bruno@clisp.org>
71580
71581         * gnulib-tool (func_create_testdir): Warn about duplicated
71582         dependencies.
71583
71584 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71585
71586         * modules/argmatch, modules/fatal, modules/obstack,
71587         modules/xalloc, modules/xgethostname: Sort dependencies by
71588         importance, not alphabetically.
71589
71590 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71591
71592         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71593         fails, so that the caller gets the proper errno.
71594
71595         * lib/readutmp.c (read_utmp): Likewise.
71596         Check for fstat error.  Close stream and free storage
71597         when failing.
71598
71599 2003-09-14  Karl Berry  <karl@gnu.org>
71600
71601         * config/srclist.txt (strdup.c): disable for c89 changes.
71602
71603 2003-09-14  Jim Meyering  <jim@meyering.net>
71604
71605         * lib/getloadavg.c: Correct cpp indentation.
71606         * lib/strdup.c: Likewise.
71607         * lib/vasnprintf.c: Likewise.
71608
71609 2003-09-14  Bruno Haible  <bruno@clisp.org>
71610
71611         * modules/fwriteerror: New file.
71612         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71613
71614 2003-09-14  Bruno Haible  <bruno@clisp.org>
71615
71616         * lib/fwriteerror.h: New file.
71617         * lib/fwriteerror.c: New file.
71618
71619 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71620
71621         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71622         modules/xgethostname, modules/xalloc: Depend on exit.
71623
71624 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71625
71626         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71627
71628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71629         and AC_MINIX, too, so that their extensions are available.
71630
71631         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71632         This macro has been superseded by gl_BACKUPFILE.
71633
71634         More patches to assume C89 or better.
71635
71636         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71637
71638         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71639         unconditionally.
71640         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71641         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71642         Include <string.h>, <stdlib.h> unconditionally.
71643         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71644         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71645         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71646         headers or for string.h.
71647         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71648         or strtoul.
71649
71650         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71651         headers.
71652         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71653         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71654         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71655         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71658         memcpy, memset.
71659         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71660         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71661         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71662         strtol.
71663         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71664         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71666         strtoul.
71667
71668 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71669
71670         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71671         * lib/obstack.c [!defined _LIBC]: Likewise.
71672         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71673         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71674         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71675
71676         More changes to assume C89 or better.
71677
71678         * lib/error.c (error_tail): Assume vprintf.
71679
71680         * lib/argmatch.c (getenv): Remove decl.
71681         * lib/progreloc.c (get_full_program_name): Define via prototype.
71682         * lib/setenv.c (clearenv): Likewise.
71683         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71684         needed.
71685         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71686         (malloc, memcpy): Remove decls.
71687         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71688         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71689         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71690         (memcpy): Remove macro.
71691         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71692         (__P): Remove.  All uses removed.
71693         (PTR): Remove.  All uses changed to void *.
71694         (CHAR_BIT, NULL): Remove.
71695         (spaces, zeros, memset_space, memset_zero)
71696         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71697         Remove.
71698         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71699         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71700         Define with prototype.
71701         Remove now-unnecessary prototype decl.
71702         (extra_args_spec): Assume ANSI C.  All uses changed.
71703         (extra_args_spec_iso): Remove.
71704         (my_strftime, emacs_strftimeu): Define via prototype.
71705         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71706         unconditionally.
71707         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71708         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71709         (strtoul, strtol): Remove decls.
71710         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71711         LONG_MAX): Remove.
71712         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71713         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71714         (LOCALE_PARAM_PROTO): New macro.
71715         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71716         (INTERNAL (strtol), strtol): Define with a prototype.
71717         (PARAMS): Remove.  All uses removed.
71718         * lib/tempname.c: Include <string.h> unconditionally.
71719         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71720         * lib/xgethostname.c (main): Define with a prototype.
71721         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71722         Include <stdlib.h> unconditionally.
71723         (calloc, malloc, realloc, free): Remove decls.
71724         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71725         Include <stdlib.h> unconditionally.  Sort include file names.
71726         (strtod): Remove.
71727         (xstrtod): Define with a prototype.
71728         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71729         (strtol, strtoul): Remove decls.
71730
71731 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71732
71733         More patches to assume C89 or better.
71734         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71735         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71736         string.h, memchr, STDC_HEADERS.
71737
71738 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71739
71740         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71741         Include <stdlib.h>, <string.h> unconditionally.
71742         Remove now-unnecessary cast to char *.
71743         * lib/strnlen.c: Include <string.h> unconditionally.
71744         * lib/yesno.c (yesno): Define with a prototype.
71745
71746 2003-09-11  Bruno Haible  <bruno@clisp.org>
71747
71748         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71749
71750 2003-09-10  Jim Meyering  <jim@meyering.net>
71751
71752         * lib/error.c: Correct indentation of cpp directives.
71753
71754 2003-09-10  Bruno Haible  <bruno@clisp.org>
71755
71756         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71757         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71758         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71759         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71760         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71761         <stdlib.h> and <string.h> checks.
71762         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71763         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71764
71765 2003-09-10  Bruno Haible  <bruno@clisp.org>
71766
71767         * lib/strcspn.c: Include <string.h> unconditionally.
71768         * lib/strpbrk.c: Include <string.h> unconditionally.
71769         * lib/strstr.c: Include <string.h> unconditionally.
71770         * lib/unicodeio.c: Include <string.h> unconditionally.
71771         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71772         * lib/unsetenv.c: Likewise.
71773         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71774         * lib/yesno.c: Include <stdlib.h> unconditionally.
71775         (rpmatch): Add prototype.
71776
71777 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71778
71779         More patches to assume C89 or better.
71780         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71781         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71782         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71783         or for string.h.
71784         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71785         stdlib.h.
71786         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71787         C headers.
71788         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71789         string.h.
71790         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71791         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71792         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71793         or for string.h.
71794         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71795         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71796         C headers.
71797         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71798         memcpy.
71799         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71800         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71801         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71802         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71803         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71804         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71805         string.h, free.
71806         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71807         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71808         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71809         C headers, or for string.h.
71810         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71811         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71812         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71813         headers, memory.h, stdlib.h, string.h, strings.h.
71814         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71815         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71816         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71817         strchr.
71818         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71819         headers, memory.h, string.h.
71820         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71821         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71822         free.
71823         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71824         headers.
71825         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71826         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71827         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71828         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71829         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71830
71831 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71832
71833         More K&R removal.
71834
71835         * lib/acosl.c (main): Use a prototype.
71836         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71837         tanl.c: Likewise.
71838
71839         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71840
71841         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71842         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71843         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71844         with a prototype.
71845         * lib/getopt.c (const): Remove macro.
71846         Include <string.h> unconditionally.
71847         (my_index): Remove; all uses changed to strchr.
71848         (strlen): Remove decl.
71849         (exchange): Remove forward decl; no longer needed.
71850         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71851         Define with prototype.
71852         * lib/getopt1.c (const): Remove macro.
71853         (getopt_long, getopt_long_only, main): Define with prototype.
71854
71855         * lib/getugroups.c: Include <string.h> unconditionally.
71856
71857         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71858         (getusershell, setusershell, endusershell, readname, main):
71859         Define with prototypes.
71860
71861         * lib/group-member.c: Include group-member.h first.
71862         Include <stdlib.h> unconditionally.
71863
71864         * lib/hard-locale.c: Include hard-locale.h first.
71865         Include <stdlib.h>, <string.h> unconditionally.
71866
71867         * lib/hash.c (free, malloc): Remove decls.
71868         Include <stdlib.h> unconditionally.
71869
71870         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71871         (getenv): Do not declare.
71872
71873         * lib/idcache.c: Include <string.h> unconditionally.
71874
71875         * lib/long-options.c: Include long-options.h first, to test interface.
71876         Include <stdlib.h> unconditionally.
71877
71878         * lib/makepath.c: Include makepath.h first, to test interface.
71879         Include <stdlib.h> and <string.h> unconditionally.
71880
71881         * lib/linebuffer.c: Include <stdlib.h>.
71882         (free): Remove decl.
71883
71884         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71885         stddef.h. rpl_malloc returns void *, not char *.
71886         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71887         prototype.
71888
71889         * lib/md5.h: Include <limits.h> unconditionally.
71890         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71891         (__P): Remove; all uses removed.
71892         * lib/md5.c: Include "md5.h" first.
71893         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71894         md5_buffer, md5_process_bytes, md5_process_block):
71895         Define with prototypes.
71896         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71897         * lib/sha.c: Include "sha.h" first.
71898         Include <stdlib.h>, <string.h> unconditionally.
71899
71900         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71901         * lib/memcmp.c (__ptr_t): Likewise.
71902         * lib/memrchr.c (__ptr_t): Likewise.
71903         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71904         Include <string.h> unconditionally.
71905         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71906         * lib/memchr.c: Include <stdlib.h> unconditionally.
71907         * lib/memchr.c (LONG_MAX): Remove.
71908         * lib/memrchr.c (LONG_MAX): Likewise.
71909         * lib/memchr.c (__memchr): Define via a prototype.
71910         * lib/memrchr.c (__memrchr): Likewise.
71911         * lib/memcmp.c (__P): Remove, and remove all uses.
71912         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71913         Remove forward decls; no longer needed.
71914         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71915         Use types required by C89 in prototype.
71916
71917         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71918         * lib/savedir.c: Likewise.
71919         * lib/mkdir.c (free): Remove decl.
71920         * lib/rmdir.c (rmdir): Define with a prototype.
71921         * lib/savedir.c: Include savedir.h first, to test interface.
71922
71923         * lib/mktime.c (STDC_HEADERS): Remove.
71924         Include <stdlib.h>, <string.h> unconditionally.
71925
71926         * lib/modechange.c: Include <stdlib.h> unconditionally.
71927         (malloc): Remove decl.
71928
71929         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71930         (free): Remove decl.
71931
71932         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71933         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71934         (This type really should be intptr_t, but that's a C99ism.)
71935         (_obstack_memcpy): Remove: all uses changed to memcpy.
71936         Include <string.h> unconditionally.
71937         (struct obstack): Assume __STDC__ for types of members
71938         chunkfun, freefun, extra_arg.
71939         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71940         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71941         obstack_begin, obstack_specify_allocation,
71942         obstack_specify_allocation_with_arg, obstack_chunkfun,
71943         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71944         Remove unprototyped decls and the macros that use them.
71945         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71946         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71947         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71948         (defined __STDC__ && __STDC__)]:
71949         Remove nonprototyped code.
71950         Include <stdlib.h> unconditionally.
71951         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71952         _obstack_allocated_p, _obstack_free, obstack_free,
71953         _obstack_memory_used, print_and_abort):
71954         Define using prototypes.
71955         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71956         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71957         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71958         obstack_next_free, obstack_object_size, obstack_room) [0]:
71959         Remove unused, unprototyped code.
71960
71961         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71962
71963         * lib/physmem.c (physmem_total, physmem_available, main): Define
71964         with prototypes.
71965
71966         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71967         (main): Define with a prototype.
71968
71969         * lib/posixver.c (getenv): Remove decl.
71970
71971         * lib/putenv.c (malloc): Returns void *, not char *.
71972         Include <string.h> unconditionally.
71973         (strchr, memcpy, NULL): Do not define.
71974
71975         * lib/readtokens.c: Include readtokens.h first, to test interface.
71976         Include <stdlib.h>, <string.h> unconditionally.
71977         (init_tokenbuffer): Define with a prototype.
71978
71979         * lib/regex.c (PARAMS): Remove.  All uses removed.
71980         All uses of _RE_ARGS removed, too.
71981         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71982         unconditionally.
71983         (bzero): Assume memset exists.
71984         (memcmp, memcpy, NULL): Remove.
71985         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71986         char, or assignments to local vars of type signed char.
71987         (init_syntax_once, PREFIX(extract_number_and_incr),
71988         PREFIX(print_partial_compiled_pattern),
71989         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71990         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71991         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71992         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71993         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71994         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71995         wcs_compile_range, byte_compile_range, truncate_wchar,
71996         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71997         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71998         count_mbs_length, wcs_re_match_2_internal,
71999         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72000         PREFIX(alt_match_null_string_p),
72001         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72002         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72003         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72004         now-unnecessary declaration, if any.
72005         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72006         regcomp, regexec):
72007         Remove now-unnecessary casts among pointer types.
72008         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72009
72010         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72011         (free): Remove decl.
72012
72013         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72014
72015         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72016         (free): Remove decl.
72017
72018         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72019         * lib/xgetcwd.c: Likewise.
72020
72021         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72022         (free): Remove decl.
72023
72024         * lib/strchrnul.c (strchrnul): Define with a prototype.
72025         Fix bug: c_in was not converted to char before searching.
72026
72027         The following changes are not K&R related:
72028
72029         * lib/group-member.h: Include <sys/types.h>, so that this file is
72030         self-contained.
72031         * lib/makepath.h: Likewise.
72032
72033         * lib/getusershell.c (readname, default_index, line_size, readname):
72034         Use size_t, not int, for sizes.
72035         (readname): If the size overflows, report an error instead of
72036         looping forever.
72037
72038 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72039
72040         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72041         libc.
72042
72043 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72044
72045         * README: New section: portability guidelines.
72046
72047 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72048
72049         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72050         C89 spec.
72051
72052 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72053
72054         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72055
72056 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72057
72058         Assume C89 or better; remove K&R cruft.
72059         A few of these changes were first proposed by Derek Robert Price
72060         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72061
72062         * lib/addext.c: Include <string.h> unconditionally.
72063         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72064         Don't declare getenv or malloc.
72065
72066         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72067         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72068         (NULL): Remove.
72069         (find_stack_direction, alloca): Use prototypes.
72070
72071         * lib/atexit.c (atexit): Define using a prototype.
72072
72073         * lib/basename.c, dirname.c, stripslash.c:
72074         Include <string.h> unconditionally.
72075
72076         * lib/bcopy.c: Include <stddef.h>.
72077         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72078
72079         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72080
72081         * lib/error.h (error, error_at_line, error_print_progname)
72082         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72083         * lib/error.c: Include error.h first, to check interface.
72084         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72085         (VA_START): Remove; all uses changeed to va_start.
72086         (exit, strerror): Remove decls.
72087         (error_print_progname): Prototype uncondionally.
72088         Don't include <errno.h>; no longer needed.
72089         (private_strerror): Remove.
72090         (error_tail): Always define.
72091         (error, error_at_line): Assume C89 or better; always use prototypes.
72092         * lib/fatal.c: Include "fatal.h" first, to test interface.
72093         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72094         (VA_START): Remove; all uses changed to va_start.
72095         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72096         this case.
72097         (exit): Remove decl.
72098         (fatal): Prototype unconditionally.  Assume va_start works.
72099         Abort at end, to pacify gcc.
72100
72101         * lib/euidaccess.c (main): Define with a prototype.
72102
72103         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72104
72105         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72106
72107         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72108         prototypes.
72109         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72110         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72111         (getenv): Remove decl.
72112         (fnmatch): Define using a prototype.
72113         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72114         (FCT): Define using a prototype.
72115
72116         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72117
72118         * lib/gethostname.c: Include <stddef.h>.
72119         (gethostname): Define with prototype.  Length is size_t, not int.
72120
72121 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72122
72123         Assume C89 or better; remove K&R cruft.
72124         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72125         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72126         string.h, getenv, malloc.
72127         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72128         headers.
72129         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72130         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72131         do not check for strerror.
72132         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72133         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72134         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72135         do not check for doprnt or vprintf.
72136         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72137         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72138
72139 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72140
72141         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72142         getversion.c should have been removed then, but was accidentally
72143         preserved.
72144
72145         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72146         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72147
72148 2003-09-08  Karl Berry  <karl@gnu.org>
72149
72150         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72151                 config, forget about prep.
72152
72153         * config/depcomp, missing: update from automake.
72154
72155 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72156
72157         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72158         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72159
72160 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72161
72162         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72163         copy_tm_result.  Bug reported by Simon Josefsson in
72164         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72165
72166 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72167
72168         * m4/time_r.m4: New file.
72169         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72170         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72171         is. Check for timegm declaration.
72172         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72173         Do not check for gmtime_r.
72174         Replace mktime if __mktime_internal does not exist and if mktime
72175         hasn't been replaced already.
72176
72177 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72178
72179         * lib/time_r.c, lib/time_r.h: New files.
72180
72181         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72182         __localtime_r.
72183         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72184         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72185
72186         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72187         __gmtime_r.
72188         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72189         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72190         Include <time_r.h>.
72191
72192         * lib/timegm.c: Switch to glibc implementation, with the following
72193         changes:
72194         [defined HAVE_CONFIG_H]: Include <config.h>.
72195         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72196         (__mktime_internal) [!defined _LIBC]: New decl.
72197         (__gmtime_r) [!defined _LIBC]: New macro and function.
72198         (timegm): Use a prototype, since gnulib assumes C89.
72199         Do not bother declaring tmp to be const, as it's not really usefu.
72200         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72201         (timegm): Declare only if HAVE_DECL_TIMEGM.
72202
72203 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72204
72205         * MODULES.html.sh (func_all_modules): Add time_r.
72206         * modules/time_r: New file.
72207         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72208         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72209
72210 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72211
72212         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72213         Bug reported by Lute Kamstra in
72214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72215
72216         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72217         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72218         course with correspondingly smaller numbers for tomorrow and
72219         yesterday.  From Tadayoshi Funaba.  Originally installed into
72220         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72221         coreutils merge?).
72222
72223 2003-08-31  Simon Josefsson  <jas@extundo.com>
72224
72225         * modules/timegm: New file.
72226         * MODULES.html.sh (func_all_modules): Add timegm.
72227
72228 2003-08-31  Simon Josefsson  <jas@extundo.com>
72229
72230         * m4/timegm.m4: New file.
72231
72232 2003-08-31  Simon Josefsson  <jas@extundo.com>
72233
72234         * lib/timegm.h: New file.
72235         * lib/timegm.c: New file.  Based on
72236         wget-1.8.2/src/http.c:mktime_from_utc.
72237
72238 2003-08-31  Karl Berry  <karl@gnu.org>
72239
72240         * lib/argp.h: update from libc.
72241
72242 2003-08-28  Bruno Haible  <bruno@clisp.org>
72243
72244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72245         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72246         followed by '#define fnmatch fnmatch_posix' gives an error.
72247
72248 2003-08-28  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72251         warning on QNX, which defines O_BINARY to 000000.
72252
72253 2003-08-27  Jim Meyering  <jim@meyering.net>
72254
72255         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72256         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72257         would fail after 32.  Reported by Danny Levinson.  Details here:
72258         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72259
72260 2003-08-24  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72263         MSVC7 <stdio.h> is included later.
72264
72265 2003-08-22  Simon Josefsson  <jas@extundo.com>
72266
72267         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72268
72269 2003-08-20  Karl Berry  <karl@gnu.org>
72270
72271         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72272
72273 2003-08-20  Bruno Haible  <bruno@clisp.org>
72274
72275         * modules/progname: New file.
72276         * MODULES.html.sh (func_all_modules): Add progname.
72277
72278 2003-08-20  Bruno Haible  <bruno@clisp.org>
72279
72280         * lib/progname.h: New file, from GNU gettext.
72281         * lib/progname.c: New file, from GNU gettext.
72282         * lib/progreloc.c: New file, from GNU gettext.
72283
72284 2003-08-19  Jim Meyering  <jim@meyering.net>
72285
72286         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72287         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72288
72289 2003-08-19  Bruno Haible  <bruno@clisp.org>
72290
72291         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72292         more.
72293
72294 2003-08-19  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/xstrdup.c: Assume <string.h> exists.
72297
72298 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72299
72300         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72301         in makefile rules.
72302
72303 2003-08-18  Jim Meyering  <jim@meyering.net>
72304
72305         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72306         * m4/lib-ld.m4: Likewise.
72307
72308 2003-08-18  Jim Meyering  <jim@meyering.net>
72309
72310         * lib/setenv.h: Indent nested cpp directive.
72311         * lib/vasnprintf.c: Remove trailing blanks.
72312
72313 2003-08-17  Simon Josefsson  <jas@extundo.com>
72314
72315         * modules/xstrndup: New file.
72316         * MODULES.html.sh (func_all_modules): Add xstrndup.
72317
72318 2003-08-17  Simon Josefsson  <jas@extundo.com>
72319
72320         * modules/argp: Fix autoconf macro name. Add more dependencies.
72321
72322 2003-08-17  Simon Josefsson  <jas@extundo.com>
72323
72324         * m4/xstrndup.m4: New file.
72325
72326 2003-08-17  Simon Josefsson  <jas@extundo.com>
72327
72328         * m4/argp.m4: New file.
72329
72330 2003-08-17  Simon Josefsson  <jas@extundo.com>
72331             Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/xstrndup.h: New file.
72334         * lib/xstrndup.c: New file.
72335
72336 2003-08-17  Bruno Haible  <bruno@clisp.org>
72337
72338         * modules/strndup (Files, Include): Add lib/strndup.h.
72339
72340 2003-08-17  Bruno Haible  <bruno@clisp.org>
72341
72342         * modules/euidaccess (Files): Add lib/euidaccess.h.
72343
72344 2003-08-17  Bruno Haible  <bruno@clisp.org>
72345
72346         * lib/strndup.h: New file.
72347
72348 2003-08-17  Bruno Haible  <bruno@clisp.org>
72349
72350         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72351         like AC_GNU_SOURCE.
72352         * modules/extensions (configure.ac): Comment out the invocation of
72353         gl_USE_SYSTEM_EXTENSIONS.
72354
72355 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72356
72357         Merges from coreutils, etc.
72358         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72359         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72360         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72361         fixing a typo.
72362         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72363         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72364
72365 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72366
72367         Document merge from coreutils.
72368         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72369         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72370         * modules/utime: Add m4/utimes-null.m4.
72371
72372 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72373
72374         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72375         space, undoing this 2003-08-12 change:
72376         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72377
72378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72379
72380         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72381         strtoul.c from libc, undoing this 2003-08-12 change:
72382         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72383
72384 2003-08-16  Jim Meyering  <jim@meyering.net>
72385
72386         Merges from coreutils.
72387         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72388         prefix.  Adjust cache variables similarly.  Create 500 rather than
72389         just 300 files, to exercise bug on Darwin6.5, too.
72390         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72391         $missing_dir.
72392         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72393         AM_SYS_POSIX_TERMIOS.
72394         Reported by mkc@mathdogs.com.
72395         Also change use of $am_cv_sys_posix_termios
72396         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72397         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72398         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72399         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72400         in /proc/mounts until it finds one with matching device number.  This
72401         is unnecessary when the FILE argument *is* a mount point.  No stat call
72402         is necessary in that case.  So, disable the statvfs-testing code on
72403         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72404         as RedHat bug# 84846.
72405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72406         to 1MB, so as not to render systems with no stack size limit (e.g.,
72407         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72408         Include <unistd.h>.  On some systems,
72409         it is required for the definition of _SC_PAGESIZE.
72410
72411 2003-08-16  Jim Meyering  <jim@meyering.net>
72412
72413         Merge from coreutils.
72414         * lib/xstrtoimax.c: #else #if -> #elif.
72415         * lib/xstrtoumax.c: Likewise.
72416
72417 2003-08-16  Jim Meyering  <jim@meyering.net>
72418
72419         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72420         * m4/utimes.m4: Removed.
72421         * m4/utimes-null.m4: Renamed from utimes.m4.
72422
72423         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72424         to 1MB, so as not to render systems with no stack size limit (e.g.,
72425         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72426         Include <unistd.h>.  On some systems,
72427         it is required for the definition of _SC_PAGESIZE.
72428
72429 2003-08-16  Jim Meyering  <jim@meyering.net>
72430         and Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         Merges from coreutils, etc.
72433
72434         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72435         using the latest version from cvs.  This avoids problems with #line
72436         directives using a vendor (Sun) compiler.
72437         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72438         Don't set GETGROUPS_LIB here; now it's
72439         done via getgroups.m4's wrapper function.
72440         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72441         rather than just in sh-util/configure.in, so that the
72442         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72443         same.
72444         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72445         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72446         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72447         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72448         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72449         Remove code that is now done by the newly-required macros.
72450         Append $(EXEEXT) to DF_PROG.
72451         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72452         Do not invoke or require the following here,
72453         since prereq.m4 or some gnulib .m4 now does this for us:
72454         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72455         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72456         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72457         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72458         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72459         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72460         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72461         AC_FUNC_OBSTACK.
72462         Do not replace the following functions, as this is now the job
72463         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72464         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72465         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72466         atexit getpass, strdup, getpagesize.
72467         Replace 'raise'.
72468         Do not check for the following functions, as this is now the job
72469         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72470         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72471         setregid.
72472         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72473         Check for sys/sysctl.h.
72474         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72475         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72476         of checking for ssize_t ourselves.
72477
72478         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72479         Require every macro that gnulib/modules/* suggests for us.
72480         (jm_PREREQ_ADDEXT): New macro.
72481         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72482         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72483
72484         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72485         (gl_PHYSMEM): Use it.
72486         Also check for `table' function.
72487         Check for new headers and functions.
72488         Add check for sys/sysmp.h.
72489         With suggestions from Kaveh Ghazi.
72490         Ignore headers that are present but cannot be compiled.  This
72491         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72492         C 5.4.
72493
72494 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72495
72496         Document merge from coreutils.
72497         * modules/userspec: Depend on posixver.
72498         * modules/strftime: Depend on tzset.
72499
72500 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72501
72502         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72503         rather than tab, after '#' in shell-script copyright notices.
72504         Suggested by Bruno Haible.
72505
72506 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72507
72508         * config/srclist-update: Use three spaces, rather than tab, after '#'
72509         in shell-script copyright notices.  Suggested by Bruno Haible.
72510         Remove unnecessary parenthesization in regular expression.
72511
72512 2003-08-15  Jim Meyering  <jim@meyering.net>
72513
72514         Merge from coreutils.
72515         * lib/xgethostname.c: Include <stdlib.h>.
72516         (xghostname): Don't exit for anything other than memory-related
72517         failure; just return NULL.
72518         * lib/userspec.c: Include "posixver.h".
72519         (parse_user_spec): Accept `.' as a separator only
72520         in pre-POSIX-200112 mode.
72521         * lib/strtoimax.c: Use #elif rather than #else #if.
72522         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72523         Remove function, now that we can rely on a working tzset function.
72524         [!_LIBC]: Ensure that the required autoconf test has been run.
72525         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72526         Use underlying_strftime for %r.
72527         * lib/sha.c: Merge in some clean-up and optimization changes from
72528         glibc.
72529         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72530         Ensure that it is a multiple of 64.
72531         Rearrange loop exit tests so as to avoid performing an
72532         additional fread after encountering an error or EOF.
72533         * lib/realloc.c: Update copyright date.
72534
72535 2003-08-15  Jim Meyering  <jim@meyering.net>
72536         and Paul Eggert  <eggert@twinsun.com>
72537
72538         Merge from coreutils.
72539         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72540         member but strut utmpx does not.  Needed for AIX 4.3.3.
72541         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72542
72543 2003-08-15  Jim Meyering  <jim@meyering.net>
72544         and Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         Merges from coreutils, etc.
72547         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72548         Require gl_FUNC_TZSET_CLOBBER.
72549         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72550         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72551         members.
72552
72553 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72554
72555         Help the merge from coreutils.
72556         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72557         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72558         * m4/tzset.m4: Use it too.
72559
72560 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72561
72562         * modules/tzset: New file.
72563
72564 2003-08-14  Jim Meyering  <jim@meyering.net>
72565
72566         Merges from coreutils.
72567         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72568         variable names, rather than @FNMATCH_H@.
72569         * modules/alloca: Likewise for $(ALLOCA_H).
72570
72571         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72572         the three copies of the literal target, `fnmatch.h'.
72573         * modules/alloca (alloca.h): Likewise.
72574
72575 2003-08-14  Jim Meyering  <jim@meyering.net>
72576
72577         Merge from coreutils.
72578         * m4/tzset.m4: New file.
72579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72580         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72581         otherwise, AIX 5.1 systems would end up using the latter.
72582         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72583         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72584         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72585         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72586
72587 2003-08-14  Jim Meyering  <jim@meyering.net>
72588
72589         Merge from coreutils.
72590         * lib/obstack.h: Whitespace changes.
72591         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72592         and xcalloc return values.
72593         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72594         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72595         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72596         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72597         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72598         error from mntctl.
72599         Use mntctl's return value to drive the entry-processing loop, since
72600         we can't rely on the value of the vmt_length member in the last
72601         entry.  On some systems doing so could result in exhausting
72602         virtual memory.  Based in part on a patch from Mike Jetzer.
72603
72604 2003-08-14  Jim Meyering  <jim@meyering.net>
72605         and Paul Eggert  <eggert@twinsun.com>
72606
72607         Merges from coreutils, plus other fixes.
72608         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72609         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72610         for credits and details.  Thanks to Kaveh Ghazi for helping
72611         to keep these files in sync.
72612         (ARRAY_SIZE): Define it.
72613         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72614         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72615         (memcasecmp): Don't assume size_t fits in unsigned int.
72616         Remove casts and duplicate code.
72617         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72618         (memcpy): Remove definition.
72619         Merge in some clean-up and optimization changes from glibc.
72620         [BLOCKSIZE]: Move definition to top of file.
72621         Ensure that it is a multiple of 64.
72622         Rearrange loop exit tests so as to avoid performing an
72623         additional fread after encountering an error or EOF.
72624         * lib/md5.h (md5_uintptr): Define.
72625         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72626         return to the initial working directory.  Preserve errno
72627         for caller.
72628         * lib/idcache.c: Include "xalloc.h".
72629         (xmalloc, xrealloc): Remove decls.
72630         (getuser): Remove casts no longer required in C89.
72631         * lib/human.c: Include stdio.h, for sprintf.
72632         * lib/group-member.c: Include "xalloc.h".
72633         (xmalloc, xrealloc): Remove decls.
72634         (get_group_info): Remove casts no longer required in C89.
72635         * lib/getusershell.c (readname): Remove casts no longer required in
72636         C89.
72637         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72638         * lib/getline.c: Whitespace fix, from coreutils.
72639
72640 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72641
72642         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72643         Check for isascii.
72644
72645         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72646         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72647         Undo previous (whitespace-only) change.
72648
72649 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72650
72651         * lib/exclude.c: Include <ctype.h>
72652         (IN_CTYPE_DOMAIN): New macro.
72653         (is_space): New fn.
72654         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72655         and empty lines.
72656
72657         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72658         Undo previous (whitespace-only) change.
72659
72660 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72661
72662         * config/srclist-update: Change update back to the old behavior,
72663         leaving whitespace alone.  Use one 'sed' command rather than a
72664         pipeline.
72665         (fixlicense): Now a variable, not a function.
72666         (remove_trailing_blanks): Remove.
72667         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72668         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72669         Undo previous (whitespace-only) change.
72670
72671 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72672
72673         Merge from coreutils.
72674         * modules/euidaccess: Add lib_SOURCES, include for new
72675         file euidaccess.h
72676
72677 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72678
72679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72681         Normalize leading white space and remove trailing white space.
72682
72683         Merge from coreutils
72684         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72685
72686         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72687         0.12.1.  These files are now being upgraded automatically by
72688         ../config/srclist-update.
72689
72690 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72691
72692         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72693         Normalize leading white space and remove trailing white space.
72694         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72695         notice, as per ../config/srclist-update.
72696
72697         Merge from coreutils.
72698         * lib/euidaccess.h: New file.
72699         * lib/euidaccess.c: Include it.
72700         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72701         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72702         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72703
72704 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72705
72706         * config/srclist-update: Add copyright notice.
72707         (remove_id_lines, remove_trailing_blanks): New constants.
72708         (fixfile): Use them to normalize spacing a bit in copied files.
72709         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72710         Normalize leading white space and remove trailing white space.
72711
72712         * config/texinfo.tex: Sync with texinfo.
72713
72714         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72715         strtoul.c from libc, to merge coreutils whitespace changes.
72716
72717         * config/srclist.txt: Get the following m4 files from gettext:
72718         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72719         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72720         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72721         wint_t.m4.
72722
72723 2003-08-12  Karl Berry  <karl@gnu.org>
72724
72725         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72726         been made.
72727
72728 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72729
72730         * modules/gnu-source, m4/gnu-source.m4:
72731         Remove; we're assuming Autoconf 2.54 or later now.
72732         Suggested by Bruno Haible.
72733         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72734
72735 2003-08-11  Bruno Haible  <bruno@clisp.org>
72736
72737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72738
72739 2003-08-11  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72742         (vasnprintf): Use it instead of wcslen.
72743
72744 2003-08-11  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72747         value to ensure that _Bool promotes to int. Use #define for _Bool when
72748         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72749
72750 2003-08-10  Karl Berry  <karl@gnu.org>
72751
72752         * lib/regex.h: update from libc (whitespace fix).
72753
72754 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72755
72756         Merge some files from coreutils.  These changes were
72757         originally made by Jim Meyering.
72758         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72759         many older Unixes require this.
72760         * lib/alloca.c (alloca): Remove cast to argument of free;
72761         no longer needed in C89.
72762         * lib/alloca_.h, regex.h: Fix white space to match
72763         what GNU indent does.
72764
72765 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72766
72767         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72768         apparently Emacs's Unicode mode got confused before my 2003-08-05
72769         checkin.
72770
72771 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72772
72773         * m4/extensions.m4: New file.
72774         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72775         Require gl_USE_SYSTEM_EXTENSIONS.
72776         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72777         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72778
72779 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72780
72781         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72782         * modules/extensions, modules/gnu-source: New files.
72783         * modules/timespec, modules/unlocked-io: Depend on extensions.
72784
72785 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72786
72787         * modules/restrict: New file.
72788         * MODULES.html.sh (func_all_modules): Add restrict.
72789         * modules/regex: Depend on restrict.
72790
72791 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72792
72793         * m4/restrict.m4: New file.
72794         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72795
72796 2003-08-07  Bruno Haible  <bruno@clisp.org>
72797
72798         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72799         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72800
72801 2003-08-07  Bruno Haible  <bruno@clisp.org>
72802
72803         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72804         makes the module 'getndelim2' compatible with the module 'getline'.
72805
72806 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72807
72808         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72809         byte with "\201" to avoid glitches when editing that source file
72810         with multi-gnome-terminal.
72811
72812 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72813
72814         * lib/bumpalloc.h: Remove.
72815
72816 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72817
72818         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72819         * modules/bumpalloc: Remove.
72820
72821 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72822
72823         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72824         GNU coding style.
72825
72826         Merge from coreutils.
72827         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72828         1. From glibc.
72829         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72830         from Karl Berry, implemented by Jim Meyering.
72831         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72832         from Dmitry V. Levin.
72833         Remove anachronistic cast of xrealloc.
72834         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72835         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72836         type. Otherwise, it wouldn't compile with at least /bin/cc on
72837         ymp-cray-unicos9.0.2.X.
72838         Combine two mostly-identical uses of alloca into one.
72839         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72840
72841 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72842
72843         [From Emacs.]
72844
72845         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72846         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72847         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72848         obsolete NLIST_NAME_UNION.
72849         [__GNU__]: Undef BSD and FSCALE.
72850         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72851
72852 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72853
72854         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72855         an enum type, so that it's guaranteed to promote to int.  See:
72856         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72857
72858 2003-08-03  Karl Berry  <karl@gnu.org>
72859
72860         * config/depcomp: update from automake.
72861
72862 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72863
72864         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72865         (strerror): Don't assume that a printable int fits in 14 bytes.
72866
72867 2003-07-31  Bruno Haible  <bruno@clisp.org>
72868
72869         * modules/getpass-gnu: New file.
72870         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72871
72872 2003-07-31  Bruno Haible  <bruno@clisp.org>
72873
72874         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72875
72876 2003-07-24  Karl Berry  <karl@gnu.org>
72877
72878         * config/missing: update from automake.
72879
72880 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72881             Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72884         * lib/getline.c (getline, getdelim): Likewise.
72885         Remove _GNU_SOURCE define; now it's defined in config.h through
72886         m4/getline.m4.
72887
72888 2003-07-23  Karl Berry  <karl@gnu.org>
72889
72890         * config/config.sub: update from prep.
72891
72892 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72893
72894         * modules/xalloc (Depends-on): Add exitfail.
72895         * modules/xmemcoll: Likewise.
72896
72897 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72898
72899         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72900         over-parenthesization in macros.
72901
72902         Sync with coreutils.
72903
72904         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72905         required by C99.
72906
72907         Use `exit_failure' for xalloc and xmemcoll instead of their own
72908         private exit-failure variables.
72909         * lib/xalloc.h (xalloc_exit_failure): Remove.
72910         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72911         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72912         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72913         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72914         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72915
72916 2003-07-20  Jim Meyering  <jim@meyering.net>
72917
72918         * modules/closeout (Depends-on): Add exitfail.
72919         Suggestion from Bruno Haible.
72920
72921 2003-07-19  Karl Berry  <karl@gnu.org>
72922
72923         * config/config.sub: update from prep.
72924
72925 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72926
72927         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72928         Remove.
72929         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72930         to test that it can stand by itself.  Include "exitfail.h".
72931         Clients should set exit_failure instead.
72932         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72933
72934 2003-07-18  Bruno Haible  <bruno@clisp.org>
72935
72936         * modules/getndelim2: New file.
72937         * modules/getline: Share files with module getndelim2.
72938         * modules/getnline: Depend on getndelim2 instead of sharing files with
72939         it. Add getnline.c to lib_SOURCES.
72940         * MODULES.html.sh (func_all_modules): Add getndelim2.
72941
72942 2003-07-18  Bruno Haible  <bruno@clisp.org>
72943
72944         * m4/getndelim2.m4: New file.
72945         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72946         invoke gl_PREREQ_GETNDELIM2.
72947         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72948         gl_PREREQ_GETNDELIM2.
72949         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72950         gl_GETNDELIM2.
72951
72952 2003-07-18  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/getndelim2.h: New file.
72955         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72956         getndelim2.h.
72957         (getndelim2): Make non-static. Change return type to ssize_t.
72958         * lib/getline.h: Change argument names.
72959         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72960         * lib/getnline.c: Include getndelim2.h.
72961
72962 2003-07-18  Andreas Schwab  <schwab@suse.de>
72963
72964         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72965
72966 2003-07-17  Karl Berry  <karl@gnu.org>
72967
72968         * config/config.sub: update from prep.
72969
72970 2003-07-17  Bruno Haible  <bruno@clisp.org>
72971
72972         * modules/getnline: New file.
72973         * modules/getline: Add lib/getndelim2.c to source file list.
72974         * MODULES.html.sh (func_all_modules): Add getnline.
72975
72976 2003-07-17  Bruno Haible  <bruno@clisp.org>
72977
72978         * m4/getnline.m4: New file.
72979
72980 2003-07-17  Bruno Haible  <bruno@clisp.org>
72981
72982         * m4/Makefile.am.in: Remove file.
72983         * m4/Makefile.am: Remove file.
72984         * m4/Makefile.in: Remove file.
72985
72986 2003-07-17  Bruno Haible  <bruno@clisp.org>
72987
72988         * lib/getnline.h: New file.
72989         * lib/getnline.c: New file.
72990         * lib/getndelim2.c: New file, extracted from getline.c.
72991         (getndelim2): Renamed from getdelim2, with added nmax argument.
72992         * lib/getline.c: Include getndelim2.c.
72993         (getdelim2): Moved out to getndelim2.c.
72994         (getline, getdelim): Update.
72995
72996 2003-07-17  Bruno Haible  <bruno@clisp.org>
72997
72998         * lib/Makefile.am: Remove file.
72999         * lib/Makefile.in: Remove file.
73000
73001 2003-07-17  Bruno Haible  <bruno@clisp.org>
73002
73003         * configure.in: Remove file.
73004         * Makefile.in: Remove file.
73005
73006 2003-07-17  Bruno Haible  <bruno@clisp.org>
73007
73008         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73009
73010 2003-07-16  Karl Berry  <karl@gnu.org>
73011
73012         * config/srclist-update: was running fixlicense twice, which caused
73013                 texinfo.tex to be nullified for some reason.  Simplify,
73014                 $gplsrc is no longer needed as far as I can see?
73015
73016 2003-07-16  Jim Meyering  <jim@meyering.net>
73017
73018         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73019
73020 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73021
73022         * config/srclist.txt: Get the following files from gettext-runtime/intl
73023         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73024         ref-del.sin.  From Bruno Haible.
73025         * config/srclist-update (fixfile): Change grep pattern again, since the
73026         previous fix didn't work (there was another trailing $).  Use
73027         '[$]' to escape the $s.
73028
73029 2003-07-15  Karl Berry  <karl@gnu.org>
73030
73031         * lib/vasnprintf.c: update from gettext.
73032
73033 2003-07-15  Karl Berry  <karl@gnu.org>
73034
73035         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73036         gets expanded when surrounded by '$'.
73037
73038 2003-07-15  Jim Meyering  <jim@meyering.net>
73039
73040         * modules/save-cwd: Don't depend on error.  From Derek Price.
73041
73042 2003-07-15  Jim Meyering  <jim@meyering.net>
73043
73044         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73045
73046 2003-07-14  Simon Josefsson  <jas@extundo.com>
73047
73048         * modules/mempcpy: New file.
73049         * MODULES.html.sh (func_all_modules): Add mempcpy.
73050
73051 2003-07-14  Simon Josefsson  <jas@extundo.com>
73052
73053         * m4/mempcpy.m4: New file.
73054
73055 2003-07-14  Simon Josefsson  <jas@extundo.com>
73056
73057         * lib/mempcpy.h: New file.
73058         * lib/mempcpy.c: New file.
73059
73060 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73061
73062         * modules/getdate, modules/posixtm: Depend on mktime.
73063
73064 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73065
73066         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73067         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73068         unicodeio.c, unicodeio.h, unlocked-io.h:
73069         Switch from LGPL to GPL.
73070
73071 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73072
73073         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73074         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73075         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73076         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73077         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73078         updated automatically by ../config/srclist-update.  This changes
73079         their license from LPGL to GPL.
73080
73081 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73082
73083         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73084         assumed to refer to the root of the most recent stable gettext version.
73085         * config/srclistvars.sh: Add defaults for eggert.
73086         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73087         Match "This program" as well as "The program".  This is needed
73088         for gettext.
73089
73090 2003-07-14  Jim Meyering  <jim@meyering.net>
73091
73092         Don't emit diagnostics.  Let callers do that.
73093         * lib/save-cwd.c: Don't include "error.h".
73094         (save_cwd): Don't call error.  Ensure that errno is valid
73095         when returning nonzero.
73096
73097         * lib/save-cwd.h (restore_cwd): Update prototype.
73098         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73099         Simplify.  Don't call error upon failure.  Let callers do that.
73100         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73101         when auditing is enabled.  But don't bother updating the #if.
73102
73103 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73104
73105         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73106         it breaks C++ compilation.
73107         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73108
73109 2003-07-10  Simon Josefsson  <jas@extundo.com>
73110
73111         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73112
73113 2003-07-10  Jim Meyering  <jim@meyering.net>
73114
73115         * m4/clock_time.m4: Remove trailing blank.
73116         * m4/intmax_t.m4: Likewise.
73117
73118 2003-07-10  Jim Meyering  <jim@meyering.net>
73119
73120         * lib/vasnprintf.c: Remove trailing blanks.
73121         Make cpp indentation consistent.
73122
73123 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73124
73125         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73126         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73127         Switch from LGPL to GPL.
73128
73129 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73130
73131         * config/srclist.txt: Sort sublists.  Add
73132         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73133         that differ from gnulib for one reason or another; we'd like this list
73134         to be smaller but for now let's document what we have.
73135
73136 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73137
73138         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73139         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73140         and sweeter "eval x=$x".
73141         * config/srclist.txt: Get lib/argp* from glibc.
73142
73143 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73144
73145         * lib/mktime.c: Fix some boundary cases and remove need for floating
73146         point.
73147
73148         Issue a compile-time diagnostic if time_t is floating point, or if
73149         two's complement arithmetic is not in effect, or if arithmetic
73150         right shift does not propagate the sign.  These assumptions were
73151         all in the original code but they weren't checked.
73152
73153         (TIME_T_MIDPOINT, verify): New macros.
73154         (__isleap): Remove; it has integer overflow problems.
73155         (leapyear): New function, without those problems.
73156         (ydhms_tm_diff): Remove; splitting into two parts.
73157         (ydhms_diff): New function, containing the arithmetic part of
73158         the old ydhms_tm_diff function.  Issue a compile-time
73159         diagnostic if we are not using C99 integer division.
73160         Avoid casts when possible.
73161         (guess_time_tm): New function, containing the checking part of
73162         the old ydhms_tm_diff function.  Return the new value, rather than
73163         the difference between it and the old.  Accept a new argument T
73164         so that *T specifies the old value.  Check for overflow in the result.
73165
73166         (__mktime_internal): Use a time_t offset, not a long int offset.
73167         This undoes the 2003-06-04 change, which is no longer needed now
73168         that we have better overflow checking.
73169         (localtime_offset): Likewise.
73170
73171         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73172         and long are 64-bit but int is only 32-bit.
73173         (ydhms_diff): Use long int to store year1 and yday1.
73174         Issue a compile-time diagnostic if long int is not wide enough.
73175
73176         (__mktime_internal): Use long int to store adjusted year and yday.
73177         Use plain C rather than preprocessor commands, if that doesn't
73178         affect efficiency.
73179         Check for overflow (and try to repair) after each probe
73180         rather than checking only at the very end.  This avoids some bugs
73181         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73182         does not equal GMT offset at maximum time).
73183         Use integer to check for overflow rather than floating point; this
73184         is more portable to non-IEEE hosts, and is a tad faster.
73185         When we detect that we are oscillating between two values,
73186         don't check whether tm_isdst has the requested value, since
73187         we already know the answer.  When tm_isdst has the wrong value,
73188         use a different heuristic to find the right one, based on the
73189         extreme values actually observed in practice in tz2003a,
73190         rather than the (overly optimistic) "previous 3 calendar quarters".
73191
73192         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73193         "T const" to accommodate glibc style.
73194         (check_result): Use less-confusing report format.  "long" -> "long int.
73195         (main): Likewise.
73196         Don't loop if the iteration overflows time_t.
73197         Allow a negative step in the iteration.
73198
73199 2003-07-06  Karl Berry  <karl@gnu.org>
73200
73201         * config/depcomp: update from automake.
73202         * config/config.sub: update from prep.
73203
73204 2003-07-03  Karl Berry  <karl@gnu.org>
73205
73206         * config/config.guess: update from prep.
73207
73208 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73209
73210         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73211         xreadlink.c now includes it unconditionally.
73212
73213 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73214
73215         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73216         having it depend on HAVE_SYS_TYPES_H.
73217
73218 2003-07-01  Bruno Haible  <bruno@clisp.org>
73219
73220         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73221         <sys/types.h> should be sufficient.
73222         Reported by Paul Eggert.
73223
73224 2003-06-26  Karl Berry  <karl@gnu.org>
73225
73226         * config/depcomp: update from automake.
73227
73228 2003-06-26  Bruno Haible  <bruno@clisp.org>
73229
73230         * modules/human: Depend on module stdbool.
73231
73232 2003-06-25  Bruno Haible  <bruno@clisp.org>
73233
73234         * modules/readlink: New file.
73235         * modules/xreadlink: Depend on it.
73236         * MODULES.html.sh (func_all_modules): Add readlink.
73237
73238 2003-06-25  Bruno Haible  <bruno@clisp.org>
73239
73240         * m4/readlink.m4: New file.
73241
73242 2003-06-25  Bruno Haible  <bruno@clisp.org>
73243
73244         * lib/readlink.c: New file.
73245
73246 2003-06-22  Karl Berry  <karl@gnu.org>
73247
73248         * config/srclist.txt: update mkinstalldirs from automake.
73249         * config/mkinstalldirs: update.
73250
73251 2003-06-22  Bruno Haible  <bruno@clisp.org>
73252
73253         Portability to mingw32.
73254         * m4/ssize_t.m4: New file, from GNU gettext.
73255         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73256         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73257
73258 2003-06-22  Bruno Haible  <bruno@clisp.org>
73259
73260         * modules/safe-read: Add m4/ssize_t.m4.
73261         * modules/xreadlink: Add m4/ssize_t.m4.
73262
73263 2003-06-20  Bruno Haible  <bruno@clisp.org>
73264
73265         Assume C89, so PARAMS isn't needed.
73266         * lib/unicodeio.h (PARAMS): Remove.
73267         * lib/unicodeio.c: Don't use PARAMS.
73268
73269 2003-06-18  Karl Berry  <karl@gnu.org>
73270
73271         * config/config.{guess,sub}: update from prep.
73272
73273 2003-06-18  Jim Meyering  <jim@meyering.net>
73274
73275         Merge changes from coreutils.
73276         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73277         Remove explicit declarations of xmalloc and realloc.
73278         Include xalloc.h.
73279         (read_utmp): Remove anachronistic cast of xmalloc.
73280
73281 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73282
73283         Assume C89, so PARAMS isn't needed.
73284         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73285         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73286         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73287         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73288         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73289         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73290         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73291         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73292         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73293         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73294         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73295         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73296         no longer needed. Anyway, config.h should always be included before any
73297         other file.
73298
73299 2003-06-11  Simon Josefsson  <jas@extundo.com>
73300
73301         * modules/sysexits: New file.
73302         * MODULES.html.sh (func_all_modules): Add sysexits.
73303
73304 2003-06-11  Simon Josefsson  <jas@extundo.com>
73305
73306         * lib/sysexit_.h: New file.
73307
73308 2003-06-11  Derek Price  <derek@ximbiot.com>
73309
73310         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73311         necessary.
73312
73313 2003-06-11  Bruno Haible  <bruno@clisp.org>
73314
73315         * m4/sysexits.m4: New file.
73316
73317 2003-06-10  Simon Josefsson  <jas@extundo.com>
73318
73319         * lib/argp.h: New file, from glibc.
73320         * lib/argp-ba.c: New file, from glibc.
73321         * lib/argp-eexst.c: New file, from glibc.
73322         * lib/argp-fmtstream.c: New file, from glibc.
73323         * lib/argp-fmtstream.h: New file, from glibc.
73324         * lib/argp-fs-xinl.c: New file, from glibc.
73325         * lib/argp-help.c: New file, from glibc.
73326         * lib/argp-namefrob.h: New file, from glibc.
73327         * lib/argp-parse.c: New file, from glibc.
73328         * lib/argp-pv.c: New file, from glibc.
73329         * lib/argp-pvh.c: New file, from glibc.
73330         * lib/argp-xinl.c: New file, from glibc.
73331
73332 2003-06-10  Simon Josefsson  <jas@extundo.com>
73333
73334         * modules/strchrnul: New file.
73335
73336 2003-06-10  Simon Josefsson  <jas@extundo.com>
73337
73338         * modules/argp: New file.
73339
73340 2003-06-10  Simon Josefsson  <jas@extundo.com>
73341
73342         * m4/strchrnul.m4: New file.
73343
73344 2003-06-10  Simon Josefsson  <jas@extundo.com>
73345
73346         * lib/strchrnul.h: New file.
73347         * lib/strchrnul.c: New file.
73348
73349 2003-06-10  Bruno Haible  <bruno@clisp.org>
73350
73351         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73352
73353 2003-06-07  Karl Berry  <karl@gnu.org>
73354
73355         * config/config.{guess,sub}: update from prep.
73356
73357 2003-06-07  Jim Meyering  <jim@meyering.net>
73358
73359         * modules/strtod: Use $(...) notation, not @...@ for
73360         AC_REPLACE'd variables.
73361         * modules/localcharset: Likewise.
73362
73363 2003-06-07  Jim Meyering  <jim@meyering.net>
73364
73365         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73366         in place of my name in the copyright comment.
73367         Remove definition and uses of __P.
73368
73369         From coreutils.
73370         * lib/stat.c: Don't declare xmalloc explicitly.
73371         Instead, include "xalloc.h".
73372         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73373         xrealloc, and xcalloc return values.
73374         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73375         Improve comment.
73376         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73377
73378 2003-06-07  Bruno Haible  <bruno@clisp.org>
73379
73380         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73381         avoid AC_CONFIG_LINKS.
73382         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73383         fnmatch.h, to avoid AC_CONFIG_LINKS.
73384         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73385
73386 2003-06-07  Bruno Haible  <bruno@clisp.org>
73387
73388         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73389         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73390         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73391         directory.
73392         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73393         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73394         directory.
73395
73396 2003-06-06  Jim Meyering  <jim@meyering.net>
73397
73398         Merge from coreutils.
73399         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73400         Consolidate declarations and initializations of *_base* locals.
73401
73402         Merge from coreutils.
73403         This avoids a core dump on systems without GNU putenv,
73404         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73405         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73406         (unsetenv): New static function, from GNU libc.
73407         (rpl_putenv): Use it.
73408
73409         * lib/modechange.c: Remove trailing blanks.
73410
73411         Merge from coreutils.
73412         * lib/fsusage.c: Remove declaration of statfs.
73413         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73414
73415         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73416
73417 2003-06-06  Jim Meyering  <jim@meyering.net>
73418
73419         * lib/stdbool_.h: Renamed from stdbool.h.in.
73420
73421 2003-06-06  Jim Meyering  <jim@meyering.net>
73422             Bruno Haible  <bruno@clisp.org>
73423
73424         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73425         Adjust Makefile.am snippet not to redirect directly to target.
73426         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73427
73428 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73429
73430         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73431         mismatch, look in future quarters as well as past.  This fixes a
73432         bug when processing fall-backwards gaps immediately after a long
73433         period of daylight-saving time.
73434
73435         * lib/mktime.c: Assume freestanding C89 or better.
73436         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73437         (__P): Remove; not used.
73438         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73439         (mktime, not_equal_tm, print_tm, check_result,
73440         main): Use prototypes.  Use const * where appropriate.
73441         (main): Fix typo in testing code that uncovered by above changes.
73442         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73443
73444 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73445
73446         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73447         locale.h, localeconv.  This merges changes from coreutils.
73448
73449         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73450         It can be removed after the next Autoconf is released.
73451         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73452         needed.
73453
73454 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73455
73456         * lib/mktime.c: Fix Debian bug 177940
73457         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73458         (localtime_offset): Now long int, not time_t, because we want it
73459         to be guaranteed to be signed.  All uses changed.
73460         (__mktime_internal): If overflow would occur when adding offset,
73461         don't add it.
73462
73463         Merge 'human' changes from coreutils.  Rewrite to support
73464         locale-specific notations like thousands separators.
73465         * lib/human.c: Simplify authorship notice.
73466         Include human.h immediately after config.h.
73467         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73468         <limits.h>: Do not include, since human.h does.
73469         (SIZE_MAX, UINTMAX_MAX): New macros.
73470         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73471         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73472         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73473         (power_letter): Renamed from suffixes.
73474         (generate_suffix_backwards): Remove.
73475         (adjust_value): Now takes int style (because of human.h changes)
73476         and long double value (for greater precision on some platforms).
73477         (group_number): New function.
73478         (human_readable): Use it.  Use integer options, not enum.
73479         Put the options before the sizes in the arg list.
73480         Support all the new options.
73481         The old human_readable function has been removed;
73482         use inttostr.h instead.
73483         (human_readable, default_block_size, humblock):
73484         Use uintmax_t, not int, for block sizes.
73485         (human_readable_inexact, block_size_types): Remove.
73486         (block_size_opts): New constant.
73487         (human_options): Renamed from human_block_size, with new signature
73488         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73489         * lib/human.h: Add copyright and authorship notice.
73490         Include <limits.h> and <stdbool.h> unconditionally.
73491         (PARAMS): Remove.  All uses removed.
73492         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73493         (enum human_inexact_style): Remove tag; now a nameless enum.
73494         (human_floor, human_ceiling, human_round_to_even): Now have
73495         values 2, 0, 1 rather than -1, 1, 0.
73496         (human_group_digits, human_suppress_point_zero, human_autoscale,
73497         human_base_1024, human_SI, human_B): New constants.
73498         (human_readable_inexact, human_block_size): Remove.
73499         (human_readable): Size args are now uintmax_t, not int.
73500         (human_options): New decl.
73501
73502         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73503         unnecessary now that we assume C89 or better.  This change
73504         imported from coreutils.
73505
73506         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73507         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73508         in the 2003-05-30 sync from glibc.
73509
73510         .h files should stand alone, but we shouldn't include <sys/types.h>
73511         if we can get away with just <stddef.h>.
73512
73513         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73514         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73515         rather than <sys/types.h>, as we merely need size_t.
73516         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73517         to get size_t.
73518         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73519         Include <stdio.h>, to get FILE.
73520         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73521         memcasecmp.h has included <stddef.h> and all we need is size_t.
73522         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73523         our interface, instead of including <sys/types.h>
73524
73525 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73526
73527         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73528         now, as glibc mktime is buggy on non-glibc systems.
73529
73530 2003-06-03  Karl Berry  <karl@gnu.org>
73531
73532         * config/config.sub: update from prep.
73533
73534 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73535
73536         [from coreutils]
73537         Fix some minor time-related bugs with POSIX time arguments.
73538         Some valid time stamps were being rejected (notably -1, and
73539         time stamps before 1900 on 64-bit hosts).  And some invalid
73540         time stamps were being accepted, e.g. September 31.
73541
73542         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73543         that we can return (time_t) -1 successfully.
73544         * lib/posixtm.c: Likewise.
73545         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73546         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73547         (t): Remove static var.
73548         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73549         of static var.  All uses changed.
73550         (year): Do not reject years before 1900; they can occur with
73551         64-bit time_t.
73552         (posix_time_parse): Do not check for out-of-range components;
73553         that is now the caller's responsibility, since our checks were
73554         only approximations.
73555         (posixtime): Use mktime to check for out-of-range components,
73556         since it knows them exactly.
73557         If mktime returns (time_t) -1, check whether an error actually occurred
73558         by invoking localtime on -1.
73559         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73560         posixtime failures better.
73561         Improve the test data (in comments only).
73562
73563 2003-06-02  Karl Berry  <karl@gnu.org>
73564
73565         * config/mkinstalldirs (version): new variable.
73566         (--version): new option.
73567         (usage): improve message.
73568
73569 2003-05-30  Karl Berry  <karl@gnu.org>
73570
73571         * lib/mktime.c: update from libc.
73572
73573 2003-05-30  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73576         * config/config.rpath: Upgrade to gettext-0.12.1.
73577
73578 2003-05-30  Bruno Haible  <bruno@clisp.org>
73579
73580         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73581         * m4/nls.m4: New file, from gettext-0.12.1.
73582         * m4/po.m4: New file, from gettext-0.12.1.
73583         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73584
73585 2003-05-30  Bruno Haible  <bruno@clisp.org>
73586
73587         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73588         * lib/localcharset.h: Likewise.
73589         * lib/localcharset.c: Likewise.
73590
73591 2003-05-29  Karl Berry  <karl@gnu.org>
73592
73593         * config/config.rpath: update from gettext.
73594
73595 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73596
73597         Assume the headers required for C89 freestanding compilers.
73598         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73599         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73600         * m4/human.m4 (gl_HUMAN): Likewise.
73601         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73602         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73603         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73604         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73605         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73606         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73607
73608 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73609
73610         Assume the headers required for C89 freestanding compilers.
73611         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73612         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73613         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73614         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73615         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73616         define, since <limits.h> is guaranteed to do that.
73617         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73618         * lib/exclude.c: Include <stdbool.h> unconditionally.
73619         * lib/tempname.c: Include <stddef.h> unconditionally.
73620         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73621         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73622         <stddef.h> does that.
73623         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73624         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73625         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73626         needed.
73627         * lib/xstrtol.c: Likewise.
73628         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73629         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73630
73631         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73632         warnings on some platforms.
73633
73634         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73635         arbitrarily.
73636
73637 2003-05-26  Jim Meyering  <jim@meyering.net>
73638
73639         Merge in a change from coreutils:
73640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73641         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73642         that condition, rather than `-1' which is slightly misleading.
73643         Change the name of the cache variable to have the gl_ prefix.
73644         Prompted by a patch from Richard Dawe for DJGPP.
73645
73646 2003-05-24  Karl Berry  <karl@gnu.org>
73647
73648         * config/config.guess: update from prep.
73649
73650 2003-05-22  Karl Berry  <karl@gnu.org>
73651
73652         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73653
73654 2003-05-20  Karl Berry  <karl@gnu.org>
73655
73656         * config/config.guess: update from prep.
73657
73658 2003-05-18  Karl Berry  <karl@gnu.org>
73659
73660         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73661         might actually be set by the user.
73662
73663         * config/depcomp, install-sh, mdate-sh: update from automake.
73664
73665 2003-05-17  Bruno Haible  <bruno@clisp.org>
73666
73667         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73668         invalid expansion for AC_EGREP_CPP.
73669         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73670         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73671         Suggested by Akim Demaille <akim@epita.fr> in
73672         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73673
73674 2003-05-12  Jim Meyering  <jim@meyering.net>
73675
73676         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73677         the space-padded-by-default conversion specifiers, %e, %k, %l.
73678
73679 2003-05-12  Bruno Haible  <bruno@clisp.org>
73680
73681         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73682         the string is longer than 4 KB.
73683
73684 2003-05-11  Karl Berry  <karl@gnu.org>
73685
73686         * config/config.{guess,sub}: update from prep.
73687
73688 2003-05-09  Bruno Haible  <bruno@clisp.org>
73689
73690         * modules/error: Add m4/strerror_r.m4 to file list.
73691
73692 2003-05-03  Bruno Haible  <bruno@clisp.org>
73693
73694         Upgrade to Unicode-4.0.
73695         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73696         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73697         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73698         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73699         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73700         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73701         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73702         Change width of U+E0100..U+E01EF from 1 to 0.
73703
73704 2003-04-25  Jim Meyering  <jim@meyering.net>
73705
73706         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73707         of type size_t, not int.
73708
73709 2003-04-25  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/copy-file.c: Include <stddef.h>, for size_t.
73712
73713 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73714
73715         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73716         code which expansion is under static control.  Patch imported from
73717         Akim Demaille's patch to Bison; see
73718         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73719
73720 2003-04-14  Bruno Haible  <bruno@clisp.org>
73721
73722         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73723
73724 2003-04-11  Jim Meyering  <jim@meyering.net>
73725
73726         Merge changes from Coreutils.
73727
73728         2003-03-22  Jim Meyering  <jim@meyering.net>
73729
73730         * lib/strftime.c (widen): Cast alloca return value to proper type.
73731
73732         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73733
73734         From GNU libc.
73735         * lib/strftime.c (my_strftime): Handle very large width
73736         specifications for numeric values correctly.  Improve checks for
73737         overflow.
73738
73739         2003-01-19  Jim Meyering  <jim@meyering.net>
73740
73741         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73742         definitions.
73743         (nl_get_alt_digit) [! defined my_strftime]: Define.
73744         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73745         _nl_get_alt_digit and _nl_get_walt_digit.
73746
73747         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73748         libc. These changes have no effect outside of _LIBC.
73749
73750 2003-04-10  Bruno Haible  <bruno@clisp.org>
73751
73752         * modules/findprog: New file.
73753         * MODULES.html.sh (func_all_modules): Add it.
73754
73755 2003-04-10  Bruno Haible  <bruno@clisp.org>
73756
73757         * m4/findprog.m4: New file.
73758         * m4/eaccess.m4: New file.
73759
73760 2003-04-10  Bruno Haible  <bruno@clisp.org>
73761
73762         * lib/findprog.h: New file, from GNU gettext.
73763         * lib/findprog.c: New file, from GNU gettext.
73764
73765 2003-04-05  Jim Meyering  <jim@meyering.net>
73766
73767         Merge changes from Coreutils.
73768
73769         * lib/exclude.h (PARAMS): Remove definition and uses.
73770         * lib/exclude.c: Remove uses of `PARAMS'.
73771
73772         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73773         Add test-cases for DOS filenames. Declare program_name.
73774         (main): Set up program_name.  Patch by Rich Dawe.
73775
73776         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73777         error from mntctl.
73778         Use mntctl's return value to drive the entry-processing loop, since
73779         we can't rely on the value of the vmt_length member in the last
73780         entry.  On some systems doing so could result in exhausting
73781         virtual memory.  Based in part on a patch from Mike Jetzer.
73782
73783 2003-04-04  Bruno Haible  <bruno@clisp.org>
73784
73785         * modules/linebreak: New file.
73786         * MODULES.html.sh (func_all_modules): Add it.
73787
73788 2003-04-04  Bruno Haible  <bruno@clisp.org>
73789
73790         * m4/linebreak.m4: New file.
73791
73792 2003-04-04  Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/linebreak.h: New file, from GNU gettext.
73795         * lib/linebreak.c: New file, from GNU gettext with slight
73796         modifications.
73797         * lib/lbrkprop.h: New file, from GNU gettext.
73798
73799 2003-04-03  Bruno Haible  <bruno@clisp.org>
73800
73801         * modules/utf8-ucs4: New file.
73802         * modules/utf16-ucs4: New file.
73803         * modules/ucs4-utf8: New file.
73804         * modules/ucs4-utf16: New file.
73805         * MODULES.html.sh (func_all_modules): Add them.
73806
73807 2003-04-03  Bruno Haible  <bruno@clisp.org>
73808
73809         * m4/utf-ucs4.m4: New file.
73810         * m4/ucs4-utf.m4: New file.
73811
73812 2003-04-03  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/utf8-ucs4.h: New file, from GNU gettext.
73815         * lib/utf16-ucs4.h: New file, from GNU gettext.
73816         * lib/ucs4-utf8.h: New file, from GNU gettext.
73817         * lib/ucs4-utf16.h: New file, from GNU gettext.
73818
73819 2003-04-02  Bruno Haible  <bruno@clisp.org>
73820
73821         * modules/binary-io: New file.
73822         * MODULES.html.sh (func_all_modules): Add it.
73823
73824 2003-04-02  Bruno Haible  <bruno@clisp.org>
73825
73826         * lib/binary-io.h: New file, from GNU gettext.
73827
73828 2003-04-01  Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/pathname: New file.
73831         * MODULES.html.sh (func_all_modules): Add it.
73832
73833 2003-04-01  Bruno Haible  <bruno@clisp.org>
73834
73835         * lib/pathname.h: New file, from GNU gettext.
73836         * lib/concatpath.c: New file, from GNU gettext.
73837
73838 2003-03-30  Bruno Haible  <bruno@clisp.org>
73839
73840         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73841
73842 2003-03-30  Bruno Haible  <bruno@clisp.org>
73843
73844         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73845         function chown() doesn't exist.
73846
73847 2003-03-28  Bruno Haible  <bruno@clisp.org>
73848
73849         * modules/copy-file: New file.
73850         * MODULES.html.sh (func_all_modules): Add it.
73851
73852 2003-03-28  Bruno Haible  <bruno@clisp.org>
73853
73854         * m4/copy-file.m4: New file.
73855
73856 2003-03-28  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/copy-file.h: New file, from GNU gettext.
73859         * lib/copy-file.c: New file, from GNU gettext.
73860
73861 2003-03-18  Jim Meyering  <jim@meyering.net>
73862
73863         * lib/quote.c (quote_n): Fix typo in comment.
73864
73865 2003-03-18  Bruno Haible  <bruno@clisp.org>
73866
73867         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73868         checking.
73869         * m4/onceonly_2_57.m4: Likewise.
73870
73871 2003-03-17  Bruno Haible  <bruno@clisp.org>
73872
73873         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73874         (m4_quote): Remove macro.
73875         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73876
73877 2003-03-14  Jim Meyering  <jim@meyering.net>
73878
73879         Merge changes from Coreutils.
73880         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73881         to be const, in order to avoid warnings.
73882         (obstack_room): Likewise.
73883         (obstack_empty_p): Likewise.
73884
73885 2003-03-14  Bruno Haible  <bruno@clisp.org>
73886
73887         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73888         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73889
73890 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73891
73892         Merge changes from Bison.
73893         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73894         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73895         when compiling Bison 1.875's `bitset bset = obstack_alloc
73896         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73897         * lib/hash.c: Include <stdbool.h> unconditionally.
73898
73899 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73900
73901         * m4/onceonly.m4 (m4_quote): New macro.
73902         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73903         Quote AC_FOREACH variable-expansions properly.
73904
73905 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73906
73907         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73908
73909 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73910
73911         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73912         Reported by Bruce Becker; see:
73913         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73914
73915 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73916             Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73919         Reported by John Hughes, see
73920         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73921
73922 2003-02-20  Bruno Haible  <bruno@clisp.org>
73923
73924         * MODULES.html.sh (func_all_modules): Add poll.
73925
73926 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73927
73928         * modules/poll: New file.
73929
73930 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73931
73932         * lib/poll_.h: New file.
73933         * lib/poll.c: New file.
73934
73935 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73936
73937         * m4/poll.m4: New file.
73938
73939 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73940
73941         * modules/mathl: New file.
73942
73943 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73944
73945         * lib/mathl.h: New file.
73946         * lib/acosl.c: New file.
73947         * lib/asinl.c: New file.
73948         * lib/atanl.c: New file.
73949         * lib/ceill.c: New file.
73950         * lib/cosl.c: New file.
73951         * lib/expl.c: New file.
73952         * lib/floorl.c: New file.
73953         * lib/frexpl.c: New file.
73954         * lib/ldexpl.c: New file.
73955         * lib/logl.c: New file.
73956         * lib/sincosl.c: New file.
73957         * lib/sinl.c: New file.
73958         * lib/sqrtl.c: New file.
73959         * lib/tanl.c: New file.
73960         * lib/trigl.c: New file.
73961         * lib/trigl.h: New file.
73962
73963 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73964
73965         * m4/mathl.m4: New file.
73966
73967 2003-02-18  Bruno Haible  <bruno@clisp.org>
73968
73969         * MODULES.html.sh (func_all_modules): Add mathl.
73970
73971 2003-02-17  Bruno Haible  <bruno@clisp.org>
73972
73973         * modules/mkdtemp: New module.
73974         * MODULES.html.sh (func_all_modules): Add it.
73975
73976 2003-02-17  Bruno Haible  <bruno@clisp.org>
73977
73978         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73979
73980 2003-02-17  Bruno Haible  <bruno@clisp.org>
73981
73982         * lib/mkdtemp.h: New file, from GNU gettext.
73983         * lib/mkdtemp.c: New file, from GNU gettext.
73984
73985 2003-02-02  Jim Meyering  <jim@meyering.net>
73986
73987         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73988         e.g. glibc-2.2.93.
73989
73990 2003-01-31  Bruno Haible  <bruno@clisp.org>
73991
73992         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73993         'rpl_rename'.
73994         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73995         'rpl_strnlen'.
73996         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73997         'rpl_strtod'.
73998         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73999         'rpl_utime'.
74000
74001 2003-01-31  Bruno Haible  <bruno@clisp.org>
74002
74003         * lib/rename.c: #undef rename before defining rpl_rename.
74004         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74005
74006 2003-01-30  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/vasnprintf, modules/vasprintf: New modules.
74009         * MODULES.html.sh (func_all_modules): Add them.
74010
74011 2003-01-30  Bruno Haible  <bruno@clisp.org>
74012
74013         * m4/signed.m4: New file, from GNU gettext.
74014         * m4/longdouble.m4: New file, from GNU gettext.
74015         * m4/wchar_t.m4: New file, from GNU gettext.
74016         * m4/wint_t.m4: New file, from GNU gettext.
74017         * m4/vasnprintf.m4: New file.
74018         * m4/vasprintf.m4: New file.
74019
74020 2003-01-30  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/printf-args.h: New file, from GNU gettext.
74023         * lib/printf-args.c: New file, from GNU gettext.
74024         * lib/printf-parse.h: New file, from GNU gettext.
74025         * lib/printf-parse.c: New file, from GNU gettext.
74026         * lib/vasnprintf.h: New file, from GNU gettext.
74027         * lib/vasnprintf.c: New file, from GNU gettext.
74028         * lib/asnprintf.c: New file, from GNU gettext.
74029         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74030         * lib/vasprintf.c: New file, from GNU gettext.
74031         * lib/asprintf.c: New file, from GNU gettext.
74032
74033 2003-01-29  Bruno Haible  <bruno@clisp.org>
74034
74035         * modules/stpncpy: New module.
74036         * MODULES.html.sh (func_all_modules): Add it.
74037
74038 2003-01-29  Bruno Haible  <bruno@clisp.org>
74039
74040         * m4/stpncpy.m4: New file.
74041
74042 2003-01-29  Bruno Haible  <bruno@clisp.org>
74043
74044         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74045         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74046
74047 2003-01-28  Bruno Haible  <bruno@clisp.org>
74048
74049         * modules/c-ctype: New module.
74050         * MODULES.html.sh (func_all_modules): Add it.
74051
74052 2003-01-28  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74055         Paul Eggert.
74056         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74057         Paul Eggert.
74058
74059 2003-01-27  Bruno Haible  <bruno@clisp.org>
74060
74061         * modules/xsetenv: New module.
74062         * MODULES.html.sh (func_all_modules): Add it.
74063
74064 2003-01-27  Bruno Haible  <bruno@clisp.org>
74065
74066         * lib/xsetenv.h: New file, from GNU gettext.
74067         * lib/xsetenv.c: New file, from GNU gettext.
74068
74069 2003-01-23  Jim Meyering  <jim@meyering.net>
74070
74071         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74072         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74073
74074 2003-01-23  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/minmax: New module.
74077         * MODULES.html.sh (func_all_modules): Add it.
74078
74079 2003-01-23  Bruno Haible  <bruno@clisp.org>
74080
74081         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74082         Eggert.
74083
74084 2003-01-22  Bruno Haible  <bruno@clisp.org>
74085
74086         * modules/exit: New module.
74087         * MODULES.html.sh (func_all_modules): Add it.
74088
74089 2003-01-22  Bruno Haible  <bruno@clisp.org>
74090
74091         * lib/exit.h: New file, from GNU gettext.
74092
74093 2003-01-19  Bruno Haible  <bruno@clisp.org>
74094
74095         * gnulib-tool: Recognize option --extract-maintainer.
74096         (func_get_maintainer): New function.
74097         * modules/*: Add Maintainer entry.
74098
74099 2003-01-16  Jim Meyering  <jim@meyering.net>
74100
74101         * m4/regex.m4: The `regex' struct is both input and output.
74102         Initialize it before each use.  Patch by Tim Waugh.
74103
74104 2003-01-16  Bruno Haible  <bruno@clisp.org>
74105
74106         * MODULES.html.sh: Add a table of contents. Add the module name as
74107         leftmost column. Add hyperlinks.
74108
74109 2003-01-15  Bruno Haible  <bruno@clisp.org>
74110
74111         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74112
74113 2003-01-15  Bruno Haible  <bruno@clisp.org>
74114
74115         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74116         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74117         suffix.
74118
74119 2003-01-15  Bruno Haible  <bruno@clisp.org>
74120
74121         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74122
74123 2003-01-15  Bruno Haible  <bruno@clisp.org>
74124
74125         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74126         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74127
74128 2003-01-14  Jim Meyering  <jim@meyering.net>
74129
74130         * lib/same.c (same_name): Tweak a comment.
74131
74132 2003-01-14  Bruno Haible  <bruno@clisp.org>
74133
74134         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74135         when a string comparison is sufficient.
74136
74137 2003-01-14  Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74140         'unsigned int'.
74141
74142 2003-01-14  Bruno Haible  <bruno@clisp.org>
74143
74144         * lib/hash-pjw.c: Add comment about low quality of this function.
74145
74146 2003-01-13  Bruno Haible  <bruno@clisp.org>
74147
74148         * modules/stpcpy: Distribute lib/stpcpy.h.
74149         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74150
74151 2003-01-13  Bruno Haible  <bruno@clisp.org>
74152
74153         * modules/*: Add a description.
74154         * modules/strpbrk: Fix Makefile.am snippet.
74155         * modules/strtoimax: Fix dependencies.
74156         * modules/strtoumax: Likewise.
74157
74158 2003-01-13  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74161         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74162         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74163
74164 2003-01-13  Bruno Haible  <bruno@clisp.org>
74165
74166         * gnulib-tool (func_create_testdir): Store config/* files in the main
74167         directory.
74168         * config.rpath: Move to ...
74169         * config/config.rpath: ... here.
74170         * modules/gettext: Contains config/config.rpath, not config.rpath.
74171         * modules/iconv: Likewise.
74172
74173 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74174
74175         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74176         to avoid collisions with libcurses and libreadline.
74177
74178         * m4/getstr.m4: Remove.
74179         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74180
74181 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74182
74183         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74184         to avoid collisions with libcurses and libreadline.
74185
74186         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74187         * lib/getstr.h, getstr.c: Remove.
74188         * lib/getline.c: Include "getline.h", to check interface.
74189         Move body of old getstr.c here: this defines MIN_CHUNK and
74190         declares getdelim2, which is renamed from getstr.
74191         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74192
74193         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74194         All uses changed.
74195         * lib/linebuffer.h: Likewise.
74196         (readline): Remove backward-compatibility macro.
74197
74198 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74199
74200         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74201         to avoid collisions with libcurses and libreadline.
74202         * getstr: Remove.
74203         * MODULES.html.sh: Remove getstr.
74204         * modules/getline: Depend on unlocked-io, not getstr.
74205
74206 2003-01-12  Jim Meyering  <jim@meyering.net>
74207
74208         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74209
74210 2003-01-10  Bruno Haible  <bruno@clisp.org>
74211
74212         * modules/alloca: Change Makefile.am requirements. Simplify Include
74213         requirements. Add lib/alloca_.h to file list.
74214
74215 2003-01-10  Bruno Haible  <bruno@clisp.org>
74216
74217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74218
74219 2003-01-10  Bruno Haible  <bruno@clisp.org>
74220
74221         * lib/alloca_.h: New file.
74222         * lib/getdate.y: Unconditionally include alloca.h.
74223         * lib/makepath.c: Likewise.
74224         * lib/setenv.c: Likewise.
74225         * lib/userspec.c: Likewise.
74226
74227 2003-01-09  Karl Berry  <karl@gnu.org>
74228
74229         * MODULES.html.sh: include `dirname $0` in PATH, to find
74230         gnulib-tool.
74231
74232 2003-01-09  Bruno Haible  <bruno@clisp.org>
74233
74234         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74235         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74236
74237 2003-01-09  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74240
74241 2003-01-09  Bruno Haible  <bruno@clisp.org>
74242
74243         * lib/stdbool.h.in: New file.
74244
74245 2003-01-09  Bruno Haible  <bruno@clisp.org>
74246
74247         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74248         * MODULES.html.sh: Likewise.
74249
74250 2003-01-08  Jim Meyering  <jim@meyering.net>
74251
74252         * lib/full-write.c: Undefine and define-away `const' after inclusion
74253         of errno.h, not before.  Suggestion from Bruno Haible.
74254
74255 2003-01-08  Bruno Haible  <bruno@clisp.org>
74256
74257         * modules/full-read: Depend on full-write.
74258
74259 2003-01-08  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/safe-read.c: Include specification header first, to ensure its
74262         selfcontainedness.
74263         * lib/full-write.c: Likewise.
74264
74265 2003-01-07  Jim Meyering  <jim@meyering.net>
74266
74267         * lib/full-write.c: Rework so that it may serve to define full_read,
74268         too.
74269         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74270
74271 2003-01-07  Bruno Haible  <bruno@clisp.org>
74272
74273         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74274         <inttypes.h>.
74275         * lib/xstrtol.h: Likewise.
74276         * lib/xstrtoimax.c: Likewise.
74277         * lib/xstrtoumax.c: Likewise.
74278         * lib/human.h: Likewise.
74279
74280         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74281         on systems that have <inttypes.h> but not <stdint.h>.
74282
74283 2003-01-07  Bruno Haible  <bruno@clisp.org>
74284
74285         * MODULES.html.sh: Add copyright notice.
74286         (missed_files): Omit CVS directory entries.
74287         (func_module): Make it work with sed-3.02.
74288         * MODULES.txt: Remove file.
74289
74290 2003-01-06  Jim Meyering  <jim@meyering.net>
74291
74292         * lib/version-etc.c: Update year in translatable copyright string.
74293
74294 2003-01-03  Karl Berry  <karl@gnu.org>
74295
74296         * config/config.{guess,sub}: update from prep.
74297
74298 2003-01-02  Karl Berry  <karl@gnu.org>
74299
74300         * doc/COPYING.DOC: belatedly updated to 1.2.
74301
74302 2003-01-01  Karl Berry  <karl@gnu.org>
74303
74304         * gnulib-tool (func_verify_module): report module name $module in
74305         error message, not $1.
74306         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74307         be created, only if it doesn't exist.
74308         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74309
74310 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74311
74312         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74313
74314 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74315
74316         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74317         memcmp if strcoll doesn't work.
74318
74319 2002-12-31  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74322         nonempty.
74323
74324 2002-12-31  Bruno Haible  <bruno@clisp.org>
74325
74326         * lib/memcoll.c (STRCOLL): New macro.
74327         (memcoll): Use it.
74328
74329 2002-12-31  Bruno Haible  <bruno@clisp.org>
74330
74331         * lib/localcharset.h: New file.
74332         * lib/localcharset.c: Include it.
74333         * lib/unicodeio.c: Likewise.
74334
74335 2002-12-31  Bruno Haible  <bruno@clisp.org>
74336
74337         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74338         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74339
74340 2002-12-31  Bruno Haible  <bruno@clisp.org>
74341
74342         * lib/getline.h: Include <stddef.h>, for size_t.
74343
74344         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74345         * lib/unicodeio.c: Don't include <stddef.h>.
74346
74347 2002-12-31  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74350         HAVE_TM_ZONE.
74351
74352 2002-12-24  Karl Berry  <karl@gnu.org>
74353
74354         * config/config.guess: update from prep.
74355
74356 2002-12-24  Bruno Haible  <bruno@clisp.org>
74357
74358         General infrasructure.
74359         * m4/README: Rewritten.
74360         * m4/onceonly.m4: New file.
74361         * m4/onceonly_2_57.m4: New file.
74362
74363         Module atexit.
74364         * m4/atexit.m4: New file.
74365
74366         Module strtod.
74367         * m4/strtod.m4: New file.
74368
74369         Module strtol.
74370         * m4/strtol.m4: New file.
74371
74372         Module strtoul.
74373         * m4/strtoul.m4: New file.
74374
74375         Module memchr.
74376         * m4/memchr.m4: New file.
74377
74378         Module memcmp.
74379         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74380         (jm_FUNC_MEMCMP): Invoke it.
74381
74382         Module memcpy.
74383         * m4/memcpy.m4: New file.
74384
74385         Module memmove.
74386         * m4/memmove.m4: New file.
74387
74388         Module memset.
74389         * m4/memset.m4: New file.
74390
74391         Module strcspn.
74392         * m4/strcspn.m4: New file.
74393
74394         Module strpbrk.
74395         * m4/strpbrk.m4: New file.
74396
74397         Module strstr.
74398         * m4/strstr.m4: New file.
74399
74400         Module strerror.
74401         * m4/strerror.m4: New file.
74402
74403         Module mktime.
74404         * m4/mktime.m4: Renamed from jm-mktime.m4.
74405         (gl_PREREQ_MKTIME): New macro.
74406         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74407
74408         Module malloc.
74409         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74410         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74411         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74412
74413         Module realloc.
74414         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74415         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74416         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74417
74418         Module strftime.
74419         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74420         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74421         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74422         gl_TM_GMTOFF.
74423         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74424
74425         Module xalloc.
74426         * m4/xalloc.m4: New file.
74427
74428         Module alloca.
74429         * m4/alloca.m4: New file.
74430
74431         Module putenv.
74432         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74433         (jm_FUNC_PUTENV): Invoke it.
74434
74435         Module setenv.
74436         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74437         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74438         when invoked twice.
74439         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74440         gt_FUNC_SETENV.
74441
74442         Module memrchr.
74443         * m4/memrchr.m4: New file.
74444
74445         Module stpcpy.
74446         * m4/stpcpy.m4: New file.
74447
74448         Module strcase.
74449         * m4/strcase.m4: New file.
74450
74451         Module strdup.
74452         * m4/strdup.m4: New file.
74453
74454         Module strnlen.
74455         * m4/strnlen.m4: New file.
74456
74457         Module strndup.
74458         * m4/strndup.m4: New file.
74459
74460         Module xstrtod.
74461         * m4/xstrtod.m4: New file.
74462
74463         Module xstrtol.
74464         * m4/xstrtol.m4: New file.
74465
74466         Module getdate.
74467         * m4/getdate.m4: New file.
74468
74469         Module unlocked-io.
74470         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74471         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74472         * m4/jm-glibc-io.m4n: Remove file.
74473
74474         Module long-options.
74475         * m4/long-options.m4: New file.
74476
74477         Module md5.
74478         * m4/md5.m4: New file.
74479
74480         Module sha.
74481         * m4/sha.m4: New file.
74482
74483         Module getstr.
74484         * m4/getstr.m4: New file.
74485
74486         Module getline.
74487         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74488         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74489         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74490         simply getline. Infoke gl_PREREQ_GETLINE.
74491
74492         Module obstack.
74493         * m4/obstack.m4: New file.
74494
74495         Module hash.
74496         * m4/hash.m4: New file.
74497
74498         Module readtokens.
74499         * m4/readtokens.m4: New file.
74500
74501         Module strverscmp.
74502         * m4/strverscmp.m4: New file.
74503
74504         Module stdbool.
74505         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74506         OSF/1.
74507
74508         Module strtoll.
74509         * m4/strtoll.m4: New file.
74510
74511         Module strtoull.
74512         * m4/strtoull.m4: New file.
74513
74514         Module strtoimax.
74515         * m4/strtoimax.m4: New file.
74516
74517         Module strtoumax.
74518         * m4/strtoumax.m4: New file.
74519
74520         Module xstrtoimax.
74521         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74522         jm_AC_PREREQ_XSTRTOIMAX.
74523         Moved the strtol prerequisites to strtol.m4.
74524         Moved the strtoll prerequisites to strtoll.m4.
74525         Moved the strtoimax prerequisites to strtoimax.m4.
74526
74527         Module xstrtoumax.
74528         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74529         jm_AC_PREREQ_XSTRTOUMAX.
74530         Moved the strtoul prerequisites to strtoul.m4.
74531         Moved the strtoull prerequisites to strtoull.m4.
74532         Moved the strtoumax prerequisites to strtoumax.m4.
74533
74534         Module chown.
74535         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74536         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74537
74538         Module dup2.
74539         * m4/dup2.m4: New file.
74540
74541         Module ftruncate.
74542         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74543         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74544
74545         Module getgroups.
74546         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74547         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74548
74549         Module gettimeofday.
74550         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74551         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74552         gl_PREREQ_GETTIMEOFDAY.
74553
74554         Module mkdir.
74555         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74556         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74557
74558         Module mkstemp.
74559         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74560         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74561         jm_AC_TYPE_UINTMAX_T.
74562         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74563
74564         Module stat.
74565         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74566         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74567
74568         Module lstat.
74569         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74570         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74571
74572         Module timespec.
74573         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74574         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74575         * m4/st_mtim.m4: Indentation.
74576
74577         Module nanosleep.
74578         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74579         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74580         gl_PREREQ_NANOSLEEP.
74581
74582         Module regex.
74583         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74584         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74585         (gl_REGEX): New macro.
74586
74587         Module rename.
74588         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74589         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74590
74591         Module rmdir.
74592         * m4/rmdir.m4: New file.
74593
74594         Module utime.
74595         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74596         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74597         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74598
74599         Module dirname.
74600         * m4/dirname.m4: New file.
74601
74602         Module getopt.
74603         * m4/getopt.m4: New file.
74604
74605         Module unistd-safer.
74606         * m4/unistd-safer.m4: New file.
74607
74608         Module fnmatch.
74609         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74610         declaration.
74611         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74612         (gl_FUNC_FNMATCH_POSIX): New macro.
74613         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74614         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74615         simply fnmatch.
74616
74617         Module exclude.
74618         * m4/exclude.m4: New file.
74619
74620         Module human.
74621         * m4/human.m4: New file.
74622
74623         Module acl.
74624         * m4/acl.m4: Nop.
74625
74626         Module backupfile.
74627         * m4/backupfile.m4: New file.
74628         * m4/d-ino.m4: Indentation.
74629
74630         Module fsusage.
74631         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74632         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74633         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74634
74635         Module dirfd.
74636         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74637         requirements.
74638
74639         Module euidaccess.
74640         * m4/euidaccess.m4: New file.
74641
74642         Module file-type.
74643         * m4/file-type.m4: New file.
74644
74645         Module fileblocks.
74646         * m4/fileblocks.m4: New file.
74647
74648         Module filemode.
74649         * m4/filemode.m4: New file.
74650
74651         Module isdir.
74652         * m4/isdir.m4: New file.
74653
74654         Module lchown.
74655         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74656         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74657
74658         Module makepath.
74659         * m4/makepath.m4: New file.
74660
74661         Module modechange.
74662         * m4/modechange.m4: New file.
74663
74664         Module mountlist.
74665         * m4/mountlist.m4: New file.
74666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74667         Indentation.
74668
74669         Module path-concat.
74670         * m4/path-concat.m4: New file.
74671
74672         Module pathmax.
74673         * m4/pathmax.m4: New file.
74674
74675         Module same.
74676         * m4/same.m4: New file.
74677
74678         Module save-cwd.
74679         * m4/save-cwd.m4: New file.
74680
74681         Module savedir.
74682         * m4/savedir.m4: New file.
74683
74684         Module xgetcwd.
74685         * m4/xgetcwd.m4: New file.
74686         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74687
74688         Module xreadlink.
74689         * m4/xreadlink.m4: New file.
74690
74691         Module safe-read.
74692         * m4/safe-read.m4: New file.
74693
74694         Module safe-write.
74695         * m4/safe-write.m4: New file.
74696
74697         Module closeout.
74698         * m4/closeout.m4: New file.
74699
74700         Module stdio-safer.
74701         * m4/stdio-safer.m4: New file.
74702
74703         Module getpass.
74704         * m4/getpass.m4: New file.
74705
74706         Module getugroups.
74707         * m4/getugroups.m4: New file.
74708
74709         Module group-member.
74710         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74711         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74712
74713         Module idcache.
74714         * m4/idcache.m4: New file.
74715
74716         Module userspec.
74717         * m4/userspec.m4: New file.
74718
74719         Module gettime.
74720         * m4/clock_time.m4: New file.
74721         * m4/gettime.m4: New file.
74722
74723         Module settime.
74724         * m4/settime.m4: New file.
74725
74726         Module posixtm.
74727         * m4/posixtm.m4: New file.
74728
74729         Module gethostname.
74730         * m4/gethostname.m4: New file.
74731
74732         Module canon-host.
74733         * m4/canon-host.m4: New file.
74734
74735         Module gettext.
74736         * m4/codeset.m4: New file, from gettext-0.11.5.
74737         * m4/gettext.m4: New file, from gettext-0.11.5.
74738         * m4/glibc21.m4: New file, from gettext-0.11.5.
74739         * m4/iconv.m4: New file, from gettext-0.11.5.
74740         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74741         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74742         * m4/inttypes.m4: New file, from gettext-0.11.5.
74743         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74744         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74745         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74746         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74747         * m4/lib-link.m4: New file, from gettext-0.11.5.
74748         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74749         * m4/progtest.m4: New file, from gettext-0.11.5.
74750         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74751         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74752         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74753
74754         Module localcharset.
74755         * m4/localcharset.m4: New file.
74756
74757         Module hard-locale.
74758         * m4/hard-locale.m4: New file.
74759
74760         Module mbswidth.
74761         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74762         onceonly macros.
74763         * m4/mbrtowc.m4: Add comment.
74764
74765         Module memcasecmp.
74766         * m4/memcasecmp.m4: New file.
74767
74768         Module memcoll.
74769         * m4/memcoll.m4: New file.
74770
74771         Module unicodeio.
74772         * m4/unicodeio.m4: New file.
74773
74774         Module rpmatch.
74775         * m4/rpmatch.m4: New file.
74776
74777         Module yesno.
74778         * m4/yesno.m4: New file.
74779
74780         Module exitfail.
74781         * m4/exitfail.m4: New file.
74782
74783         Module c-stack.
74784         * m4/c-stack.m4 (gl_C_STACK): New macro.
74785         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74786
74787         Module error.
74788         * m4/error.m4 (gl_ERROR): New macro.
74789         (jm_PREREQ_ERROR): Use onceonly macros.
74790
74791         Module fatal.
74792         * m4/fatal.m4: New file.
74793
74794         Module getloadavg.
74795         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74796         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74797
74798         Module getpagesize.
74799         * m4/getpagesize.m4: New file.
74800
74801         Module getusershell.
74802         * m4/getusershell.m4: New file.
74803
74804         Module physmem.
74805         * m4/physmem.m4: New file.
74806
74807         Module posixver.
74808         * m4/posixver.m4: New file.
74809
74810         Module quotearg.
74811         * m4/quotearg.m4: New file.
74812
74813         Module quote.
74814         * m4/quote.m4: New file.
74815
74816         Module readutmp.
74817         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74818
74819         Module sig2str.
74820         * m4/sig2str.m4: New file.
74821
74822         Other.
74823         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74824         ulonglong.m4.
74825         * m4/intmax_t.m4: New file.
74826         * m4/d-type.m4: Indentation.
74827         * m4/jm-macros.m4: Update.
74828         * m4/prereq.m4 (jm_PREREQ): Update.
74829         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74830         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74831         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74832         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74833         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74834         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74835         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74836         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74837         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74838         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74839         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74840         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74841         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74842         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74843         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74844         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74845         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74846         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74847         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74848
74849 2002-12-24  Bruno Haible  <bruno@clisp.org>
74850
74851         * MODULES.txt: Update according to m4/ changes.
74852
74853         Module gettext.
74854         * config.rpath: New file, from gettext-0.11.5.
74855
74856         * modules/*: New module descriptions.
74857         * gnulib-tool: New file.
74858         * MODULES.html.sh: New file.
74859
74860 2002-12-21  Karl Berry  <karl@gnu.org>
74861
74862         * doc/fdl.texi: update to version 1.2.
74863
74864 2002-12-19  Karl Berry  <karl@gnu.org>
74865
74866         * config/config.guess: update from prep.
74867
74868 2002-12-18  Bruno Haible  <bruno@clisp.org>
74869
74870         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74871         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74872
74873 2002-12-17  Bruno Haible  <bruno@clisp.org>
74874
74875         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74876         stdlib.h, string.h.
74877
74878 2002-12-17  Bruno Haible  <bruno@clisp.org>
74879
74880         * lib/canon-host.c (strdup): Remove unused declaration.
74881
74882         * lib/fsusage.c: Include full_read.h.
74883         (get_fs_usage): Use full_read instead of safe_read.
74884
74885         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74886
74887 2002-12-12  Karl Berry  <karl@gnu.org>
74888
74889         * config/config.guess: update from prep.
74890
74891 2002-12-11  Bruno Haible  <bruno@clisp.org>
74892
74893         * m4/setenv.m4: New file, from gettext-0.11.5.
74894
74895 2002-12-11  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74898         not unsetenv().
74899         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74900         modifications:
74901
74902         2002-12-11  Bruno Haible  <bruno@clisp.org>
74903
74904                 * setenv.c (alloca): Fall back to malloc.
74905                 (freea): New macro.
74906                 (setenv): Use freea() to free memory allocated with alloca().
74907
74908         2002-11-13  Bruno Haible  <bruno@clisp.org>
74909
74910                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74911                 function declarations.
74912                 * unsetenv.c (unsetenv): Likewise.
74913
74914         2002-03-04  Bruno Haible  <bruno@clisp.org>
74915
74916                 Portability to AIX 4.3.3.
74917                 * unsetenv.c: New file, extracted from setenv.c.
74918                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74919
74920         2001-12-20  Bruno Haible  <bruno@clisp.org>
74921
74922                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74923                 use malloc instead. For SunOS 4.
74924
74925         2001-12-11  Bruno Haible  <bruno@clisp.org>
74926
74927                 * setenv.c: Declare alloca.
74928                 (compar_fn_t): New typedef.
74929                 (KNOWN_VALUE, STORE_VALUE): Use it.
74930
74931         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74932         setenv.h.
74933
74934 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74935
74936         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74937         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74938         Choose values that are less likely to collide with system fnmatch
74939         options.
74940         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74941         defined (e.g., a pure POSIX system).
74942         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74943         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74944
74945 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74946
74947         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74948         a pain in practice to deal with generated m4 files.  This change
74949         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74950
74951         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74952         and jm-glibc-io.m4, as they are no longer a special case.
74953         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74954         kludge and the auto-generation stuff.  Check only whether the
74955         functions are declared, not whether they exist, since older hosts
74956         that don't declare the functions can't use the optimization anyway.
74957
74958 2002-12-06  Jim Meyering  <jim@meyering.net>
74959
74960         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74961
74962         Merge in changes from libc's misc/error.c, in preparation
74963         for the merge of gnulib's changes back into libc.
74964
74965         * lib/error.c (_): Define only if not already defined.
74966         Move definition to follow all #include directives.
74967         Include unlocked-io.h only if !_LIBC.
74968         [_LIBC]: Include <libio/libioP.h>.
74969         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74970         (fflush): Tweak definition to use INTUSE.
74971         (putc): Define.
74972
74973 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74974
74975         * lib/alloca.c [defined emacs]: Include "lisp.h".
74976         (xalloc_die) [defined emacs]: New macro.
74977         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74978         [! defined emacs]: Include <xalloc.h>.
74979         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74980         (pointer): Typedef to POINTER_TYPE *.
74981         (malloc): Remove decl; we now always use xmalloc.
74982         (alloca): Use old-style definition, since Emacs needs this.
74983         Check for arithmetic overflow when computing combined size.
74984
74985 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74986
74987         Do not generate unlocked-io.h automatically, since it's easier to
74988         maintain it by hand.
74989
74990         * lib/unlocked-io.h: New file, from GNU diffutils,
74991         but with proper copyright notice and attribution.
74992         * lib/gen-uio: Remove.
74993         * lib/Makefile.am: Add copyright notice.
74994         (libfetish_a_SOURCES): Add unlocked-io.h.
74995         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74996         (DISTCLEANFILES, io_functions): Remove macros.
74997         (EXTRA_DIST): Remove gen_uio.
74998         (unlocked-io.h): Remove rule.
74999
75000 2002-12-04  Jim Meyering  <jim@meyering.net>
75001
75002         Reflect the fact that stat.c and lstat.c are no longer generated.
75003         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75004         (DISTCLEANFILES): Likewise.
75005         (EXTRA_DIST): Likewise.
75006         (all_local): Don't depend on stat.c or lstat.c.
75007         (stat.c, lstat.c): Remove rules.
75008         (EXTRA_DIST): Remove xstat.in.
75009
75010         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75011         * lib/stat.c: New file.  Contents mostly from xstat.in.
75012         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75013         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75014
75015         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75016         too.
75017         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75018
75019 2002-12-03  Jim Meyering  <jim@meyering.net>
75020
75021         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75022         but not semantics, to minimize the differences between these two files.
75023         (safe_read): Change comment to mention SAFE_READ_ERROR.
75024
75025         * lib/safe-read.c (IS_EINTR): Define.
75026         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75027
75028 2002-12-02  Jim Meyering  <jim@meyering.net>
75029
75030         * lib/safe-read.c (EINTR): Define.
75031         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75032         (INT_MAX): Provide fallback.
75033         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75034
75035         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75036
75037 2002-12-02  Bruno Haible  <bruno@clisp.org>
75038
75039         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75040         Define, taken from safe-read.c.
75041         (INT_MAX): Provide fallback.
75042         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75043         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75044
75045         * lib/safe-read.c (EINTR): Remove definition.
75046         (safe_read): Don't use EINTR if it is absent.
75047
75048 2002-12-01  Jim Meyering  <jim@meyering.net>
75049
75050         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75051         zero.
75052         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75053
75054 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75057         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75058         with `if (! (value < limit)) abort ();', for readability.
75059
75060 2002-11-26  Karl Berry  <karl@gnu.org>
75061
75062         * lib/strdup.c: copy from libc again, with jim's ok.
75063         * lib/.cppi-disable: re-add strdup.c
75064
75065 2002-11-25  Karl Berry  <karl@gnu.org>
75066
75067         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75068         instead of "strtol.c".
75069
75070 2002-11-25  Karl Berry  <karl@gnu.org>
75071
75072         * config/install-sh: update from automake for variable quoting, $0 in
75073         error msgs, etc.
75074
75075         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75076         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75077         entry.
75078
75079 2002-11-25  Jim Meyering  <jim@meyering.net>
75080
75081         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75082
75083 2002-11-24  Karl Berry  <karl@gnu.org>
75084
75085         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75086         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75087
75088 2002-11-24  Jim Meyering  <jim@meyering.net>
75089
75090         Update from coreutils:
75091
75092         * lib/mktime.c: Merge in changes from libc.
75093
75094         Avoid a link-time failure on some Linux systems.
75095         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75096         (otherwise).
75097         (__mon_yday): Declare with the STATIC attribute.
75098         (__mktime_internal): Likewise.
75099         Based on a report from Greg Schafer.
75100
75101 2002-11-23  Jim Meyering  <jim@meyering.net>
75102
75103         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75104         Use `unsigned', not `int', as type of index.
75105
75106         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75107
75108         * lib/fsusage.c: Remove unneeded parentheses around operands of
75109         `defined'.
75110
75111 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75112
75113         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75114         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75115         so that we can be included first.
75116         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75117         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75118         No need to include stddef.h or sys/types.h any more.
75119         Surround local include files with "", not "<>".
75120         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75121         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75122         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75123         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75124         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75125         (ISPRINT): Remove; no longer needed now that we assume C89.
75126
75127         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75128         Preserve errno.
75129
75130         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75131         quotearg_char): Use SIZE_MAX rather than
75132         (size_t) -1 when we are talking about "infinity".
75133
75134         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75135
75136 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75137
75138         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75139         hint that one should use `if (! x) abort ();' rather than `assert
75140         (x);', and anyway it's one less thing to worry about configuring.
75141         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75142         hash_rehash, hash_insert): Use abort rather than assert.
75143
75144 2002-11-22  Bruno Haible  <bruno@clisp.org>
75145
75146         * lib/safe-read.h: Assume C89. Add comments.
75147         (safe_read): Change return type to size_t.
75148         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75149         byte counts > SSIZE_MAX correctly.
75150         * lib/safe-write.h: New file.
75151         * lib/safe-write.c: New file.
75152         * lib/full-read.h: New file.
75153         * lib/full-read.c: New file.
75154         * lib/full-write.h: Assume C89. Add comments.
75155         * lib/full-write.c: Include safe-write.h.
75156         (full_write): Rewritten to use safe_write.
75157         Suggested by Jim Meyering and Paul Eggert.
75158
75159 2002-11-21  Jim Meyering  <jim@meyering.net>
75160
75161         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75162
75163         Merge in changes from the coreutils.
75164
75165         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75166         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75167         <stdint.h>.
75168         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75169         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75170         int.  Work more efficiently if X is the same width as uintmax_t.
75171         Do not compare X to -1, to avoid bogus compiler warning.
75172         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75173         Don't assume that f_frsize and f_bsize are the same type.
75174
75175         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75176         warning on FreeBSD.
75177
75178         * lib/makepath.c (make_path): Restore umask *before* creating the final
75179         component.
75180         (make_path): Minor reformatting.
75181
75182         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75183         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75184         HAVE_MALLOC/HAVE_REALLOC.
75185
75186         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75187         dummy ones.  At least on GNU/Linux systems, `auto' means something
75188         else.
75189         From Michael Stone.
75190
75191 2002-11-21  Bruno Haible  <bruno@clisp.org>
75192
75193         Remove case insensitive option matching.
75194         * lib/argmatch.h (argcasematch): Remove declaration.
75195         (ARGCASEMATCH): Remove macro.
75196         (__xargmatch_internal): Remove case_sensitive argument.
75197         (XARGMATCH): Update.
75198         (XARGCASEMATCH): Remove macro.
75199         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75200         case_sensitive argument.
75201         (argcasematch): Remove function.
75202         (__xargmatch_internal): Remove case_sensitive argument.
75203         (main): Use XARGMATCH instead of XARGCASEMATCH.
75204
75205         * lib/xmalloc.c: Change compile-time error message. Add comment about
75206         required autoconf version.
75207
75208 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75209
75210         Merge argmatch cleanups from Bison.  Assume C89.
75211
75212         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75213         Include stdlib.h, for EXIT_FAILURE.
75214         Always include <string.h>, since we assume C89.
75215         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75216         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75217         Include <stddef.h> instead, since it's all we need for size_t.
75218         (PARAMS): Remove.  All uses removed.
75219         (ARRAY_CARDINALITY): Do not bother to #undef.
75220         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75221         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75222         Remove unnecessary parentheses.
75223         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75224         Insert necessary parentheses.
75225         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75226         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75227
75228 2002-11-19  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75231         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75232
75233         * lib/mbswidth.h (PARAMS): Remove macro.
75234         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75235         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75236
75237         * lib/gcd.h (PARAMS): Remove macro.
75238         (gcd): Use ANSI C function declarations.
75239         * lib/gcd.c (gcd): Likewise.
75240
75241 2002-11-15  Bruno Haible  <bruno@clisp.org>
75242
75243         * lib/strcspn.c: Include <stddef.h>.
75244         (strcspn): Use ANSI C function declaration. Change return type to
75245         size_t. Use NULL.
75246         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75247         (strpbrk): Use NULL.
75248         * lib/strpbrk.h (PARAMS): Remove macro.
75249         (strpbrk): Use ANSI C function declaration.
75250         * lib/strstr.c: Don't include <sys/types.h>.
75251         * lib/strstr.h (PARAMS): Remove macro.
75252         (strstr): Use ANSI C function declarations.
75253
75254 2002-11-14  Karl Berry  <karl@gnu.org>
75255
75256         * config/mkinstalldirs: `do' on separate line, instead of
75257         `for var; do'.
75258
75259 2002-11-06  Bruno Haible  <bruno@clisp.org>
75260
75261         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75262         * lib/gcd.c (gcd): Likewise.
75263
75264 2002-11-05  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/gcd.h: New file, from gettext-0.11.5.
75267         * lib/gcd.c: New file, from gettext-0.11.5.
75268
75269 2002-11-05  Bruno Haible  <bruno@clisp.org>
75270
75271         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75272         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75273         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75274         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75275
75276         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75277         <libintl.h>.
75278         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75279         <libintl.h>.
75280
75281         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75282         * lib/human.c: Include gettext.h instead of <libintl.h>.
75283         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75284         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75285         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75286         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75287         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75288         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75289         (textdomain): Remove definition.
75290         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75291
75292         * lib/long-options.c: Remove include of <libintl.h> and definition of
75293         _.
75294         * lib/same.c: Remove include of <libintl.h> and definition of _.
75295
75296 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75297
75298         * lib/config.charset: A few additions for Solaris.
75299
75300 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75301
75302         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75303         * lib/localcharset.c (locale_charset): Declare as extern "C".
75304
75305 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75306
75307         * lib/config.charset: msdos in uk_UA uses CP1125.
75308
75309 2002-11-04  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75312         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75313         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75314         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75315         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75316
75317 2002-11-04  Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/localcharset.c (locale_charset): Don't return an empty string.
75320
75321 2002-11-04  Bruno Haible  <bruno@clisp.org>
75322
75323         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75324         aliases.
75325
75326 2002-11-04  Bruno Haible  <bruno@clisp.org>
75327
75328         * lib/config.charset: Update for newest glibc. Add canonical names
75329         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75330
75331 2002-11-04  Bruno Haible  <bruno@clisp.org>
75332
75333         * lib/config.charset: Add support for NetBSD.
75334
75335 2002-11-04  Bruno Haible  <bruno@clisp.org>
75336
75337         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75338
75339 2002-11-01  Bruno Haible  <bruno@clisp.org>
75340
75341         * configure.in: Add AC_CONFIG_AUX_DIR call.
75342         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75343         test/Makefile.
75344         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75345
75346 2002-09-28  Karl Berry  <karl@gnu.org>
75347
75348         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75349         installed automake until the next release, since changes have been
75350         made.
75351
75352 2002-09-25  Karl Berry  <karl@gnu.org>
75353
75354         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75355         * lib/getopt*: copy from libc/posix.
75356         * lib/gettext.h: copy from gettext.
75357         * lib/.cppi-disable: add strdup.c, gettext.h.
75358
75359 2002-09-25  Karl Berry  <karl@gnu.org>
75360
75361         * config/srclist.txt: enable gettext.h check.
75362         * config/config.{guess,sub}: update from prep.
75363         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75364                 from automake 1.6.3.
75365         See srclist*.
75366
75367 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75368
75369         * regex.c (PATFETCH): Remove the translating fetch.
75370         (PATFETCH_RAW): Rename to PATFETCH.
75371         (set_image_of_range): New fun.
75372         (SET_RANGE_TABLE_WORK_AREA): Use it.
75373         (regex_compile): Don't translate the pattern chars so eagerly.
75374         Only do it when inserting an `exactn' bytecode or when handling
75375         a char-range.
75376         (mutually_exclusive_p): Avoid empty statement.
75377
75378 2002-07-06  Jim Meyering  <meyering@lucent.com>
75379
75380         * m4/README: Don't mention Makefile.am.in.
75381         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75382
75383 2002-07-01  Jim Meyering  <meyering@lucent.com>
75384
75385         * lib/c-stack.c: Include sys/time.h.
75386         From Volker Borchert.
75387
75388 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75389
75390         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75391
75392 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75393
75394         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75395         New macro.  Use it uniformly instead of
75396         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75397         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75398         reported by Vin Shelton.
75399
75400 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75401
75402         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75403         Do not assume SA_SIGINFO behavior.
75404         Bug reported by Jim Meyering on NetBSD 1.5.2.
75405
75406 2002-06-22  Jim Meyering  <meyering@lucent.com>
75407
75408         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75409         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75410
75411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75412         now that configure.ac uses AC_GNU_SOURCE.
75413         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75414         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75415
75416         Update to latest tools.  Suggestions from Paul Eggert.
75417         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75418         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75419         * m4/fnmatch.m4: Likewise.
75420         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75421         to AC_HEADER_STDBOOL
75422
75423 2002-06-22  Jim Meyering  <meyering@lucent.com>
75424
75425         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75426         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75427
75428 2002-06-22  Jim Meyering  <meyering@lucent.com>
75429
75430         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75431
75432         * lib/exitfail.c, exitfail.h: Likewise.
75433         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75434
75435         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75436         of fnmatch.h.
75437         (EXTRA_DIST): Add fnmatch_loop.c.
75438         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75439
75440         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75441         * lib/fnmatch.c: Update from diffutils-2.8.2.
75442         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75443         * lib/fnmatch.h: Remove file.
75444
75445 2002-06-21  Jim Meyering  <meyering@lucent.com>
75446
75447         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75448         * m4/mbrtowc.m4: Likewise.
75449
75450         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75451         * m4/mbswidth.m4: Reflect name change:
75452         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75453         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75454
75455         * m4/lib-link.m4: Update from gettext-0.11.2.
75456         * m4/gettext.m4: Likewise.
75457
75458         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75459         From Alfred M. Szmidt.
75460
75461 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75462
75463         * lib/file-type.h: Report an error if neither S_ISREG nor
75464         S_IFREG is defined, instead of using a test specific to glibc
75465         2.2.  This should be safe, since POSIX requires S_ISREG and
75466         Unix Version 7 had S_IFREG.  We don't need to check for
75467         <sys/types.h> since we don't use any symbols that it defines.
75468
75469 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75470
75471         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75472         $@-t, so that each temporary file name is unique and valid in the first
75473         8 characters, for operation under DOS.
75474
75475 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75476
75477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75478
75479 2002-06-15  Jim Meyering  <meyering@lucent.com>
75480
75481         Work even with DJGPP 2.03, which lacks support for symlinks.
75482         From Richard Dawe.
75483         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75484         is defined.
75485         * lib/lchown.c (S_ISLNK): Likewise.
75486
75487 2002-06-15  Jim Meyering  <meyering@lucent.com>
75488
75489         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75490         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75491         have been included before this file.
75492
75493 2002-06-14  Jim Meyering  <meyering@lucent.com>
75494
75495         * lib/file-type.h: Use the version from diffutils-2.8.2.
75496         * lib/file-type.c: Likewise.
75497
75498 2002-06-07  Jim Meyering  <meyering@lucent.com>
75499
75500         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75501         They're needed at least for NetBSD 1.5.2.
75502         ($statxfs_includes): Include those same headers.
75503         ($statxfs_includes): Include sys/vfs.h if available.
75504         ($statxfs_includes): Likewise for sys/statvfs.h.
75505         Check for the following members in both structs statfs and statvfs:
75506         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75507
75508 2002-06-01  Jim Meyering  <meyering@lucent.com>
75509
75510         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75511         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75512
75513 2002-05-28  Jim Meyering  <meyering@lucent.com>
75514
75515         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75516         Reported by Volker Borchert.
75517
75518 2002-05-27  Jim Meyering  <meyering@lucent.com>
75519
75520         Fix a problem seen only on nonconforming systems whereby ls.c's
75521         use of localtime, and then of gettimeofday would cause trouble:
75522         the localtime call used to initialize rpl_gettimeofday's save
75523         mechanism would clobber ls's current local time information so
75524         that in any long listing the first file would always be listed
75525         with date 1970-01-01.  Analysis by Volker Borchert.
75526
75527         * lib/gettimeofday.c (localtime): Undefine.
75528         (rpl_localtime): New function.
75529
75530 2002-05-27  Jim Meyering  <meyering@lucent.com>
75531
75532         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75533         localtime.
75534
75535         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75536         use the replacement function; it wouldn't resolve at link time.
75537         Reported by Volker Borchert.
75538
75539 2002-05-22  Jim Meyering  <meyering@lucent.com>
75540
75541         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75542         file-type.h.
75543         * lib/file-type.h: New file.
75544         * lib/file-type.c (file_type): New file/function.  Extracted from
75545         diffutils.
75546
75547 2002-04-30  Jim Meyering  <meyering@lucent.com>
75548
75549         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75550
75551 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75552
75553         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75554
75555 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75556
75557         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75558         Do not check for alloca.h (no longer used) or stdbool.h (was never
75559         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75560
75561 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75562
75563         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75564
75565 2002-04-29  Jim Meyering  <meyering@lucent.com>
75566
75567         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75568         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75569         Use AC_FUNC_STRNLEN here instead.
75570
75571         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75572         With autoconf-2.53a, it's part of AC_PROG_CC.
75573
75574 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75575
75576         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75578
75579 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75580
75581         * lib/sig2str.h, lib/sig2str.c: New files.
75582         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75583
75584 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75585
75586         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75587         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75588         of 127, since 64 is the largest conceivable number for ancient
75589         nonstandard hosts.
75590         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75591
75592 2002-04-28  Jim Meyering  <meyering@lucent.com>
75593
75594         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75595
75596 2002-04-24  Jim Meyering  <meyering@lucent.com>
75597
75598         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75599         (jm_PREREQ): Use it.
75600
75601         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75602         mach/mach.h fcntl.h.
75603         Check for this function: setlocale.
75604
75605 2002-04-24  Jim Meyering  <meyering@lucent.com>
75606
75607         * lib/gettext.h: New file, from Gettext.
75608         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75609         (libfetish_a_SOURCES): Add gettext.h.
75610
75611 2002-04-16  Jim Meyering  <meyering@lucent.com>
75612
75613         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75614         ut_pid, ut_id, ut_exit.
75615
75616 2002-04-16  Jim Meyering  <meyering@lucent.com>
75617
75618         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75619         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75620         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75621
75622 2002-04-12  Jim Meyering  <meyering@lucent.com>
75623
75624         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75625         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75626         existence of the getmntinfo function.  Needed for Darwin 5.3.
75627
75628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75629         This is necessary at least on Darwin 5.3.
75630
75631         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75632         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75633         strnlen.o in the library, and that makes some versions of ranlib
75634         object.
75635
75636 2002-04-12  Jim Meyering  <meyering@lucent.com>
75637
75638         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75639
75640 2002-04-09  Jim Meyering  <meyering@lucent.com>
75641
75642         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75643         to be more precise.  Rather than saying we're checking whether the
75644         function `works', say what we're testing.
75645         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75646         Reported by Bruno Haible.
75647
75648 2002-03-10  Jim Meyering  <meyering@lucent.com>
75649
75650         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75651         Suggestion from Santiago Vila.
75652
75653 2002-03-08  Jim Meyering  <meyering@lucent.com>
75654
75655         * lib/rename.c: Mention that this wrapper is needed also on
75656         mips-dec-ultrix4.4 systems.
75657
75658 2002-03-02  Jim Meyering  <meyering@lucent.com>
75659
75660         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75661         not HAVE_CLOCK_SETTIME.
75662
75663 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75664
75665         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75666         Check for clock_settime.
75667
75668 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75669
75670         * lib/nanosleep.h: Rename to....
75671         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75672
75673         * lib/gettime.c: New file.
75674         * lib/settime.c: New file.
75675         * lib/stime.c: Remove.
75676
75677         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75678         timespec.h.  Remove nanosleep.h.
75679
75680 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75681
75682         * m4/acl.m4: New file.
75683         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75684         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75685
75686 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75687
75688         * lib/acl.c, lib/acl.h: New files.
75689         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75690
75691 2002-02-24  Jim Meyering  <meyering@lucent.com>
75692
75693         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75694         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75695         cause trouble.  Reported by Nelson Beebe.
75696
75697 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75698
75699         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75700         compilers that don't know that xalloc_die never returns.
75701
75702 2002-02-20  Jim Meyering  <meyering@lucent.com>
75703
75704         * lib/getdate.c: Regenerate using bison-1.33.
75705
75706 2002-02-17  Jim Meyering  <meyering@lucent.com>
75707
75708         * config/config.guess (main): Don't use `head -1'; it's no longer
75709         portable. Use `sed 1q' instead.
75710
75711 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75712
75713         * m4/codeset.m4: Upgrade to gettext-0.11.
75714         * m4/gettext.m4: Upgrade to gettext-0.11.
75715         * m4/glibc21.m4: Upgrade to gettext-0.11.
75716         * m4/iconv.m4: Upgrade to gettext-0.11.
75717         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75718         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75719         * m4/lib-ld.m4: New file, from gettext-0.11.
75720         * m4/lib-link.m4: New file, from gettext-0.11.
75721         * m4/lib-prefix.m4: New file, from gettext-0.11.
75722         * m4/progtest.m4: Upgrade to gettext-0.11.
75723
75724 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75725
75726         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75727         (jm_PREREQ): Use it.
75728
75729 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75730
75731         * lib/posixver.c, lib/posixver.h: New files.
75732         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75733
75734 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75735             Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75738         (fwrite_success_callback): New declaration.
75739         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75740         print_unicode_char. Call failure callback instead of error.
75741         (fwrite_success_callback): New function.
75742         (exit_failure_callback): New function.
75743         (fallback_failure_callback): New function.
75744         (print_unicode_char): Call unicode_to_mb.
75745
75746 2002-01-26  Jim Meyering  <meyering@lucent.com>
75747
75748         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75749         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75750
75751 2002-01-26  Jim Meyering  <meyering@lucent.com>
75752
75753         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75754
75755 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75756
75757         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75758
75759 2002-01-22  Jim Meyering  <meyering@lucent.com>
75760
75761         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75762         Otherwise, some versions of automake would omit the rule that makes
75763         Makefile from Makefile.in.
75764
75765 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75766
75767         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75768         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75769         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75770         (memcoll): Set errno to zero if there is no error.
75771
75772         * lib/quotearg.c (quotearg_buffer_restyled):
75773         Fix bug with quoting buffers containing NUL when backslashing escapes.
75774         This bug was exposed by the other changes in this patch.
75775         (quotearg_n_options): New arg ARGSIZE.
75776         All callers changed.
75777         (quoting_options_from_style): New function.
75778         (quotearg_n_style): Use it.
75779         (quotearg_n_style_mem): New function.
75780
75781         * lib/quotearg.h (quotearg_n_style_mem): New function.
75782
75783 2002-01-19  Jim Meyering  <meyering@lucent.com>
75784
75785         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75786         Remove useless quotes: DF_PROG="df".
75787         * m4/strnlen.m4: New file.
75788
75789 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75790
75791         * lib/backupfile.c (ISDIGIT): Comment fix.
75792         * lib/getdate.y (ISDIGIT): Likewise.
75793         * lib/posixtm.c (ISDIGIT, year): Likewise.
75794         * lib/strverscmp.c (ISDIGIT): Likewise.
75795         * lib/userspec.c (ISDIGIT): Likewise.
75796
75797 2002-01-16  Jim Meyering  <meyering@lucent.com>
75798
75799         * lib/getdate.y: Add three semicolons, each just before a closing
75800         brace. Bison (as of version 1.31) no longer papers over that mistake.
75801
75802 2002-01-05  Jim Meyering  <meyering@lucent.com>
75803
75804         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75805
75806 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75807
75808         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75809         not silently exit merely because the output buffer happens to
75810         have nothing pending.
75811
75812 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75813
75814         See the big note in ../ChangeLog.
75815         * lib/human.c (suffixes): Prefer K to k for 1024.
75816         (generate_suffix_backwards): New function.
75817         (human_readable_inexact): Use it.
75818         * lib/xstrtol.c (__xstrtol): If there is no number but there
75819         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75820         Accept 'K' as well as 'k'.
75821
75822 2001-12-15  Jim Meyering  <meyering@lucent.com>
75823
75824         * lib/regex.h (__restrict_arr): Update from libc.
75825
75826         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75827         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75828         (STREQ): Define.
75829
75830 2001-12-14  Jim Meyering  <meyering@lucent.com>
75831
75832         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75833         Suggestion from Bruno Haible.
75834
75835 2001-12-10  Jim Meyering  <meyering@lucent.com>
75836
75837         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75838         xrealloc, Instead, include "xalloc.h".
75839         (initbuffer): Don't cast xmalloc return value to char*.
75840         (readline): Reword comment.
75841         Don't cast xrealloc return value to char*
75842         Return NULL, not 0.
75843
75844 2001-12-09  Jim Meyering  <meyering@lucent.com>
75845
75846         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75847         about `signed and unsigned type in conditional expression'.
75848         * lib/posixtm.c (posix_time_parse): Likewise.
75849
75850         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75851
75852         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75853         to avoid a pedantic warning.
75854
75855         * lib/getstr.c: Don't include assert.h.
75856         (getstr): Remove warning-evoking assertions.
75857         Return -1 if offset parameter is out of bounds.
75858         Change the type of a local from int to size_t.
75859
75860         * lib/strftime.c (my_strftime_localtime_r): Include this function
75861         definition in the `#if ! HAVE_TM_GMTOFF' block.
75862
75863         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75864         Include xalloc.h instead.
75865
75866 2001-12-02  Jim Meyering  <meyering@lucent.com>
75867
75868         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75869         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75870         included.
75871
75872         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75873         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75874
75875 2001-11-30  Akim Demaille  <akim@epita.fr>
75876
75877         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75878         before being defined.
75879
75880 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75881
75882         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75883         First arg is int, not unsigned.
75884         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75885         (SIZE_MAX, UINT_MAX): New macros.
75886         (quotearg_n_options): Abort if N is negative.
75887         Avoid overflow check on hosts where size_t is 64 bits and int
75888         is 32 bits, as overflow is impossible there.
75889         Fix off-by-one typo that caused unnecessary reallocation.
75890
75891 2001-11-27  Jim Meyering  <meyering@lucent.com>
75892
75893         * lib/tempname.c: Merge with version from libc.
75894         * lib/regex.c: Likewise.
75895
75896         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75897         systems for which STDC_HEADERS is 0, it was not included, resulting in
75898         a warning about an integer-to-pointer conversion problem with getenv.
75899         Reported by Volker Borchert.
75900
75901 2001-11-26  Jim Meyering  <meyering@lucent.com>
75902
75903         * lib/gtod.h: Remove file.
75904         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75905         * lib/gettimeofday.c: Don't include gtod.h.
75906         (GTOD_init): Remove function.
75907         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75908         Suggestion from Volker Borchert.
75909
75910 2001-11-23  Jim Meyering  <meyering@lucent.com>
75911
75912         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75913         it.
75914         * lib/hash.c (struct hash_table): Define it here instead.
75915
75916 2001-11-22  Jim Meyering  <meyering@lucent.com>
75917
75918         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75919
75920 2001-11-20  Jim Meyering  <meyering@lucent.com>
75921
75922         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75923         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75924
75925 2001-11-19  Jim Meyering  <meyering@lucent.com>
75926
75927         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75928         directory.  Use "conftestXXXXXX" as the template.
75929         Suggestion from Paul Eggert.
75930
75931         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75932         immediately, so the test doesn't mistakenly hit the max-open-files
75933         limit.
75934
75935 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75936
75937         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75938         (TEMPORARIES): New macro.
75939         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75940         removes an artificial limitation (e.g. HP-UX 10.20, where
75941         TMP_MAX is 17576).
75942
75943 2001-11-18  Jim Meyering  <meyering@lucent.com>
75944
75945         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75946
75947 2001-11-18  Jim Meyering  <meyering@lucent.com>
75948
75949         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75950         on SunOS 4.
75951
75952         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75953         files will be created before anything else.
75954
75955 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75956
75957         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75958         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75959
75960 2001-11-17  Jim Meyering  <meyering@lucent.com>
75961
75962         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75963         Prompted by a report from Bob Proulx.
75964
75965         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75966         Instead, require UTILS_FUNC_MKSTEMP.
75967
75968 2001-11-17  Jim Meyering  <meyering@lucent.com>
75969
75970         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75971         Now, that's done as part of AC_FUNC_STRTOD.
75972
75973 2001-11-17  Jim Meyering  <meyering@lucent.com>
75974
75975         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75976         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75977         rather than group writable.  Patch by Juan F. Codagnone.
75978
75979         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75980         xrealloc, Instead, include "xalloc.h".
75981
75982         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75983         Remove explicit declarations of xmalloc, xrealloc,
75984         and xstrdup.  Instead, include "xalloc.h".
75985
75986         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75987         unlocked-io.h.
75988         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75989         Likewise.
75990         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75991
75992         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75993         Reported by Padraig Brady.
75994
75995         * lib/mkstemp.c: #undef mkstemp.
75996         Include config.h.
75997         (rpl_mkstemp): Rename from mkstemp.
75998         Protoize.
75999
76000 2001-11-16  Jim Meyering  <meyering@lucent.com>
76001
76002         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76003         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76004         determine the amount of total physical memory, use pstat_getstatic.
76005         HPUX-11 doesn't define _SC_PHYS_PAGES.
76006         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76007         If sysconf couldn't be used to determine the amount of available
76008         physical memory, use both pstat_getstatic and pstat_getdynamic.
76009         Based on a patch from Bob Proulx.
76010
76011 2001-11-10  Jim Meyering  <meyering@lucent.com>
76012
76013         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76014         (jm_PREREQ): Use it.
76015
76016 2001-11-09  Jim Meyering  <meyering@lucent.com>
76017
76018         * m4/jm-macros.m4: Require autoconf-2.52f.
76019         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76020         Use these AC_-prefixed names, not the AM_-prefixed ones.
76021
76022         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76023
76024 2001-11-05  Jim Meyering  <meyering@lucent.com>
76025
76026         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76027
76028 2001-11-04  Jim Meyering  <meyering@lucent.com>
76029
76030         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76031         $DEFS.
76032
76033 2001-11-03  Jim Meyering  <meyering@lucent.com>
76034
76035         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76036         of AC_DEFUN.
76037
76038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76039         know the name of the variable in the macro definition.
76040
76041 2001-11-03  Jim Meyering  <meyering@lucent.com>
76042
76043         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76044         in argmatch_to_argument call.
76045
76046         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76047         argument.
76048
76049         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76050         e.g., a fault due to an attempt to free a NULL pointer.
76051
76052 2001-11-01  Jim Meyering  <meyering@lucent.com>
76053
76054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76055         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76056
76057 2001-11-01  Jim Meyering  <meyering@lucent.com>
76058
76059         * lib/dirfd.c, lib/dirfd.h: New files.
76060         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76061
76062         * lib/hash.c (hash_print) [TESTING]: Clean up.
76063
76064 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76065
76066         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76067         to avoid a warning if -Wall.
76068
76069 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76070
76071         * README: New file
76072         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76073         (per RMS's instructions, this is now the canonical source)
76074         * lgpl/, gpl/: New directories.
76075
76076 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76077
76078         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76079
76080 2001-10-21  Jim Meyering  <meyering@lucent.com>
76081
76082         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76083         this code would end up calling gettext even in packages built
76084         with --disable-nls.
76085         * lib/getopt.c (_): Likewise.
76086         * lib/regex.c (_): Likewise.
76087
76088 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76089
76090         * m4/error.m4 (jm_PREREQ_ERROR):
76091         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76092         AC_FUNC_STRERROR_R does that.
76093         Check for strerror declaration.
76094
76095         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76096         are supposed to have them these days.
76097         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76098         Merge changes from latest Autoconf CVS.
76099         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76100         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76101         POSIX decided to standardize on the int flavor of strerror_r.
76102
76103 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76104
76105         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76106         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76107         Use strerror_r that is only a macro, even if it is not a function.
76108         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76109         (private_strerror): Use prototypes, not old-style function definition.
76110         (print_errno_message): New function.
76111         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76112         char*-flavored one.
76113         (error_tail, error, error_at_line): Use it.
76114
76115 2001-10-11  Jim Meyering  <meyering@lucent.com>
76116
76117         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76118         and quote_n (1, ... to avoid clobbering a buffer.
76119
76120 2001-10-05  Jim Meyering  <meyering@lucent.com>
76121
76122         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76123         hash-pjw.h.
76124         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76125         * lib/hash-pjw.h: New file.
76126
76127 2001-09-30  Jim Meyering  <meyering@lucent.com>
76128
76129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76130         `struct fsstat' has the `f_fstypename' member.
76131         Use that to define FS_TYPE, which is now used to make
76132         the getfsstat link test tighter.
76133
76134 2001-09-30  Jim Meyering  <meyering@lucent.com>
76135
76136         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76137         Include <sys/ucred.h>, for Apple Darwin.
76138         Include sys/mount.h and sys/fs_types.h only if available.
76139         (FS_TYPE): Define.
76140         (read_filesystem_list): Use FS_TYPE.
76141
76142 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76143
76144         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76145         a boolean context.
76146
76147 2001-09-29  Jim Meyering  <meyering@lucent.com>
76148
76149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76150         [one-argument getmntent function]): Include stdio.h before mntent.h.
76151         SunOS 4.1.x needs it for the declaration of `FILE'.
76152         Patch by Volker Borchert.
76153
76154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76155         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76156         sys/fs_types.h, and make the link-test for getfsstat guard #include
76157         directives with appropriate #if HAVE_*_H tests so that we can
76158         detect getfsstat on Apple Darwin1.3.7 systems.
76159         Reported by Nelson Beebe.
76160         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76161
76162 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76163
76164         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76165         #defines strtoimax.  Also treat the other strto* functions
76166         like strtoimax.
76167
76168         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76169         Check for strtoul and strtoumax,
76170         as those declarations are made even in the signed case.
76171         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76172         Likewise, for strtol and strtoimax.
76173
76174 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76175
76176         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76177         #defines strtoimax.  Also treat the other strto* functions
76178         like strtoimax.
76179
76180         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76181         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76182         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76183
76184 2001-09-26  Jim Meyering  <meyering@lucent.com>
76185
76186         Most macros in unlocked-io.h had the wrong number of arguments.
76187         * lib/gen-uio: New script.
76188         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76189         * lib/unlocked-io.hin: Remove file.
76190         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76191         rather than trying to embed it here.
76192         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76193         Reported by Padraig Brady.
76194
76195 2001-09-25  Volker Borchert  <bt@teknon.de>
76196
76197         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76198         `result'.
76199
76200 2001-09-24  Jim Meyering  <meyering@lucent.com>
76201
76202         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76203
76204 2001-09-23  Jim Meyering  <meyering@lucent.com>
76205
76206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76207         instead of the mere test for existence of mntent.h.  The latter
76208         would get a false-positive on AIX 3.4 systems.
76209         In the outer getmntent if-block, don't die if neither of the getmntent
76210         tests succeeds.  Instead, just fall through and continue with the
76211         remaining tests.
76212
76213 2001-09-23  Jim Meyering  <meyering@lucent.com>
76214
76215         * lib/mountlist.c: Remove useless parentheses in #if directives.
76216         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76217         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76218
76219 2001-09-22  Jim Meyering  <meyering@lucent.com>
76220
76221         * m4/gettext.m4: New file.  From gettext.
76222         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76223         * m4/progtest.m4: Likewise
76224         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76225         * m4/glibc21.m4: Likewise.
76226
76227         * m4/libintl.m4: Remove.  No longer used.
76228
76229 2001-09-22  Jim Meyering  <meyering@lucent.com>
76230
76231         * lib/localcharset.c: Update from latest gettext.
76232         * lib/config.charset: Likewise.
76233
76234 2001-09-20  Jim Meyering  <meyering@lucent.com>
76235
76236         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76237         strtoimax.
76238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76239         strtoumax.
76240
76241 2001-09-20  Jim Meyering  <meyering@lucent.com>
76242
76243         * lib/xstrtol.c (strtoimax): Guard declaration with
76244         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76245         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76246         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76247         (strtoumax): Likewise, for completeness (it wasn't necessary).
76248
76249 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76250
76251         * lib/strtoimax.c (HAVE_LONG_LONG):
76252         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76253         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76254         to work around bug in IBM C compiler.
76255
76256 2001-09-17  Jim Meyering  <meyering@lucent.com>
76257
76258         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76259         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76260         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76261         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76262         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76263         whenever the right hand side need not be expanded by the shell.
76264
76265 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76266
76267         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76268         library.  It's not correct, as some older glibcs are buggy.
76269         fnmatch wasn't fixed until glibc 2.2.
76270
76271         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76272         special shell magic here.
76273
76274 2001-09-16  Jim Meyering  <meyering@lucent.com>
76275
76276         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76277         * m4/jm-macros.m4: Require it.
76278
76279 2001-09-16  Jim Meyering  <meyering@lucent.com>
76280
76281         * lib/mkdir.c: New file.
76282
76283 2001-09-15  Jim Meyering  <meyering@lucent.com>
76284
76285         * m4/jm-macros.m4: Check for help2man.
76286
76287 2001-09-11  Jim Meyering  <meyering@lucent.com>
76288
76289         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76290         The body, by Paul Eggert, was moved here from configure.in.
76291         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76292
76293 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76294
76295         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76296         (jm_PREREQ): Use it.
76297
76298 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76299
76300         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76301         Use ssize_t, not int, to store result of readlink.
76302         Check for ssize_t overflow as well as size_t overflow,
76303         as POSIX says the result of readlink is implementation-defined
76304         when ssize_t overflows.
76305         Remove unnecessary cast to char*.
76306         Use free+malloc instead of realloc, as the storage doesn't need
76307         to be preserved and it's clearer and can be more efficient that way.
76308         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76309         * lib/xreadlink.h (xreadlink): Update prototype.
76310
76311 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76312
76313         * lib/xgetcwd.c: Revert some of the previous change; intead,
76314         fix the HAVE_GETCWD_NULL code to behave more like the
76315         !HAVE_GETCWD_NULL code used to.
76316
76317         Include "xalloc.h".
76318         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76319         invoke xalloc_die.
76320
76321 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76322
76323         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76324         sys/param.h, as pathmax.h includes them.
76325
76326 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76327
76328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76329         (jm_PREREQ_XGETCWD): New macro.
76330
76331         * m4/getcwd.m4: New file.
76332
76333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76334
76335         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76336         like the HAVE_GETCWD_NULL code.
76337         Include pathmax.h if not HAVE_GETCWD.
76338         Do not include xalloc.h.
76339         (INITIAL_BUFFER_SIZE): New symbol.
76340         Do not use xmalloc / xrealloc, since the caller is responsible for
76341         handling errors.  Preserve errno around `free' during failure.
76342         Do not overrun buffer when using getwd.
76343
76344 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76345
76346         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76347         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76348         getcwd (NULL, 0).
76349
76350 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76351
76352         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76353         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76354         spotted by Jim Meyering.
76355
76356 2001-09-03  Jim Meyering  <meyering@lucent.com>
76357
76358         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76359         failure.
76360
76361 2001-09-02  Jim Meyering  <meyering@lucent.com>
76362
76363         * lib/error.c: Update from GNU libc.
76364
76365 2001-09-01  Jim Meyering  <meyering@lucent.com>
76366
76367         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76368         Used by df.
76369
76370 2001-09-01  Jim Meyering  <meyering@lucent.com>
76371
76372         * lib/xreadlink.c: New file.
76373         * lib/xreadlink.h: New file.
76374         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76375         xreadlink.h.
76376
76377         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76378         doesn't conflict with sparc Solaris 7's definition in
76379         /usr/include/sys/int_types.h.
76380
76381         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76382         files.
76383         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76384         and strncasecmp as r-values.  Unixware didn't have declarations.
76385
76386 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76387
76388         * lib/xstrtol.h: Add copyright notice.
76389         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76390         LONGINT_INVALID_SUFFIX_CHAR.
76391
76392 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76393
76394         * lib/xstrtol.c (strtoimax): New decl.
76395
76396 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76397
76398         * lib/xgetcwd.c: Don't include pathmax.h.
76399         Include stdlib.h and unistd.h if available.
76400         Include xalloc.h.
76401         (xmalloc, xstrdup, free): Remove decls.
76402         (xgetcwd): Don't assume sizes fit in unsigned.
76403         Check for overflow when computing sizes.
76404         Simplify reallocation code.
76405
76406 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76407
76408         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76409         a directory's st_size can have an arbitrary value, so the old
76410         usage could waste an arbitrary amount of memory.  All uses
76411         changed.
76412         * lib/savedir.h: Update prototype.
76413
76414 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76415
76416         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76417
76418         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76419         old strtoimax.c.
76420
76421         Also, make the following further changes to make this file's
76422         configuration more similar to that of strtol.c:
76423         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76424         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76425         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76426         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76427         changed to signed values.
76428
76429         And make the following changes as well:
76430         Fix copyright notice, as 1999 was missing.
76431         (verify): New macro.
76432         (strtoimax): Check sizes at compile-time, not run-time.
76433         Prefer strtol to strtoll if both work.
76434         (main): Remove; it was not that useful and was a pain to maintain.
76435
76436         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76437
76438 2001-08-31  Jim Meyering  <meyering@lucent.com>
76439
76440         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76441         Use an initial, malloc'd, buffer of length 128 rather than
76442         a statically allocated one of length 1024.
76443
76444 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76445
76446         Simplify code, partly by assuming autoconf 2.52 semantics.
76447
76448         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76449
76450         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76451         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76452         All uses removed.
76453         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76454         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76455         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76456         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76457         jm_AC_HEADER_INTTYPES_H.
76458         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76459
76460         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76461
76462         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76463         Quote first arg of AC_DEFUN.
76464         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76465         since they are needed to parse the include file even if we need
76466         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76467         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76468         but with opposite signedness.
76469
76470 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76471
76472         Merge 'exclude' changes from tar 1.13.22.
76473         This fixes one or two unlikely storage allocation overflow bugs,
76474         but doesn't change user-visible behavior otherwise.
76475
76476 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76477
76478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76479         (jm_PREREQ_EXCLUDE): New macro.
76480
76481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76482
76483         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76484         tm to be declared.
76485
76486 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76487
76488         * lib/hash.c: Remove '2001' from copyright notice.
76489
76490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76491
76492         * lib/full-write.h: New file.
76493         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76494         * lib/full-write.c: Correct credits, as cccp.c no longer
76495         exists and anyway it was so heavily changed from the old cccp
76496         code as to be unrecognizable.  Include full-write.h.
76497         (full_write): Return size_t, with short writes meaning failure.
76498         All callers changed.  This fixes a bug with large buffers
76499         on 64-bit hosts.
76500         * lib/utime.c: Include full-write.h.
76501
76502 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76503
76504         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76505         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76506         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76507         Include if available.
76508         (<xalloc.h>): Include
76509         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76510         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76511         collide with FNM macros.
76512         (struct patopts): New struct.
76513         (struct exclude): Use it, as exclude patterns now come with options.
76514         (new_exclude): Support above changes.
76515         (new_exclude, add_exclude_file):
76516         Initial size must now be a power of two to simplify overflow checking.
76517         (free_exclude, fnmatch_no_wildcards): New function.
76518         (excluded_filename): No longer requires options arg, as the options
76519         are determined by add_exclude.  Now returns bool, not int.
76520         (excluded_filename, add_exclude):
76521         Add support for the fancy new exclusion options.
76522         (add_exclude, add_exclude_file): Now takes int options arg.
76523         Check for arithmetic overflow when computing sizes.
76524         (add_exclude_file): xrealloc might modify errno, so don't
76525         realloc until after errno might be used.
76526
76527         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76528         New macros.
76529         (free_exclude): New decl.
76530         (add_exclude, add_exclude_file): Now takes int options arg.
76531         (excluded_filename): No longer requires options arg, as the options
76532         are determined by add_exclude.  Now returns bool, not int.
76533
76534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76535
76536         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76537
76538 2001-08-27  Jim Meyering  <meyering@lucent.com>
76539
76540         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76541
76542         * lib/version-etc.c (N_): Remove definition.
76543         Revert most of last change.
76544         Instead, simply don't mark the `Copyright...' string for translation.
76545         Based on advice from Paul Eggert.
76546
76547         * lib/strtoxmax.c: Tweak comment.
76548
76549 2001-08-26  Jim Meyering  <meyering@lucent.com>
76550
76551         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76552
76553         * m4/xstrtoimax.m4: New file.
76554         * m4/xstrtoumax.m4: Add comments explaining why we
76555         AC_REPLACE_FUNCS(strtol).
76556
76557 2001-08-26  Jim Meyering  <meyering@lucent.com>
76558
76559         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76560         of copyright with `%s' so translators don't get an untranslated
76561         message in 2002.
76562         (COPYRIGHT_YEAR): Define.
76563         (version_etc): Use fprintf rather than fputs.
76564         Suggestion from Ulrich Drepper.
76565
76566         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76567
76568         * lib/strtoll.c: New file, from GNU libc.
76569         * lib/xstrtoimax.c: New file.
76570
76571         * lib/xstrtol.h: Add xstrtoimax.
76572         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76573         * lib/strtoimax.c: New file.  Likewise, but first define
76574         STRTOUXMAX_SIGNED.
76575
76576         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76577         ...
76578         * lib/strtoxmax.c: ... then renamed to this.
76579
76580 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76581
76582         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76583         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76584         (jm_AC_TYPE_INTMAX_T): New macro.
76585         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76586
76587         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76588
76589         * m4/longlong.m4: Renamed from ulonglong.m4.
76590         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76591         * m4/uintmax_t.m4: Removed.
76592
76593 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76594
76595         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76596         Port to Solaris 8, where 'sed' requires a space after the 'r'
76597         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76598         Redirect output to $tmp just once.
76599
76600 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76601
76602         * lib/addext.c (<errno.h>): Include.
76603         (errno): Declare if not defined.
76604         (addext): Work correctly when pathconf returns -1 and leaves
76605         errno alone because there is no limit.  Also, work even if
76606         pathconf returns a value greater than SIZE_MAX.
76607
76608 2001-08-12  Jim Meyering  <meyering@lucent.com>
76609
76610         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76611         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76612         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76613         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76614         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76615         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76616         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76617         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76618         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76619         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76620         utime.m4, utimes.m4, xstrtoumax.m4:
76621         Quote the first argument in each use of AC_DEFUN.
76622
76623 2001-08-12  Jim Meyering  <meyering@lucent.com>
76624
76625         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76626         Simply `return getcwd (NULL, 0);'.
76627         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76628         Use 1300 as initial value for length, not PATH_MAX.
76629
76630         * lib/pathmax.h: Clean up cpp syntax.
76631
76632 2001-08-12  Jim Meyering  <meyering@lucent.com>
76633
76634         * lib/gettimeofday.c: New file.
76635         * lib/gtod.h: New file.
76636         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76637
76638 2001-08-05  Jim Meyering  <meyering@lucent.com>
76639
76640         * m4/jm-macros.m4: Require autoconf-2.52.
76641
76642 2001-08-04  Jim Meyering  <meyering@lucent.com>
76643
76644         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76645         stmt, to get in sync with glibc.
76646
76647 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76648
76649         The following changes are from gettext 0.10.39 as maintained by
76650         Bruno Haible.
76651
76652         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76653         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76654         with inverted sense.  All uses changed.
76655
76656         * lib/mbswidth.c: Don't include <limits.h>.
76657         Include <stdlib.h> and <string.h> unconditionally.
76658         (iswcntrl, mbsinit, ISCNTRL): New macros.
76659         (mbsnwidth): Use K&R style function declarations.
76660         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76661         can optimize it when MB_CUR_MAX == 1.
76662         The width of control characters is zero, not 1.
76663
76664 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76665
76666         The following changes are from gettext 0.10.39 as maintained by
76667         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76668
76669         * m4/codeset.m4: Upgrade to serial AM1.
76670         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76671         all uses changed.  Quote first arg of AC_DEFUN.
76672         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76673
76674         * m4/iconv.m4: Upgrade to serial AM2.
76675         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76676         Add --with-libconv-prefix.
76677         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76678         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76679         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76680         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76681         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76682
76683         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76684         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76685         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76686         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76687         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76688         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76689         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76690         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76691         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76692
76693         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76694         string.h any more.
76695
76696         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76697         not the default value.
76698
76699         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76700         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76701         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76702         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76703         Also check for iswcntrl, used for wcwidth fallback.
76704         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76705         to Autoconf 2.13.
76706
76707 2001-08-03  Jim Meyering  <meyering@lucent.com>
76708
76709         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76710         as it was in the original.  Reported by Paul Eggert.
76711
76712 2001-07-16  Jim Meyering  <meyering@lucent.com>
76713
76714         * m4/gettimeofday.m4: New file.
76715         Prompted by a report from Bernhard Baehr.
76716
76717 2001-07-15  Jim Meyering  <meyering@lucent.com>
76718
76719         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76720         stuff. Now it's in ../Makefile.cfg.
76721
76722 2001-07-15  Jim Meyering  <meyering@lucent.com>
76723
76724         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76725         (BUILT_SOURCES): Add unlocked-io.h.
76726         (io_functions): Define.
76727         (unlocked-io.h): New rule.
76728         (DISTCLEANFILES): Add unlocked-io.h.
76729         (all-local): Depend on unlocked-io.h, to ensure it is created.
76730
76731         * lib/unlocked-io.hin: New file
76732
76733         * lib/regex.c: Update from glibc.
76734
76735 2001-07-05  Jim Meyering  <meyering@lucent.com>
76736
76737         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76738         recommendation.
76739         (libfetish_a_SOURCES): Put all .h files here instead.
76740         Remove a thus-exposed (better checks in automake) duplicate and
76741         two unnecessary .h files.
76742
76743 2001-07-04  Jim Meyering  <meyering@lucent.com>
76744
76745         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76746         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76747         distcheck failure.
76748
76749 2001-07-02  Jim Meyering  <meyering@lucent.com>
76750
76751         The following changes were prompted by suggestions from Bruno Haible.
76752
76753         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76754         is now generated.
76755         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76756         definition of EXTRA_DIST.
76757         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76758         ensure that the generated file is created/updated whenever the list
76759         of $(unlocked_functions) is changed.
76760         (jm-glibc-io.m4): New rule.
76761         (unlocked-io.h): New rule -- currently unused.
76762
76763 2001-06-24  Jim Meyering  <meyering@lucent.com>
76764
76765         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76766         unmatched right bracket, rather than kludging it with an extra,
76767         falsely-matching quote in a comment.  Patch by Akim Demaille.
76768
76769 2001-06-11  Jim Meyering  <meyering@lucent.com>
76770
76771         * lib/regex.c: Update from GNU libc.
76772
76773 2001-05-27  Jim Meyering  <meyering@lucent.com>
76774
76775         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76776         Check for ut_type in struct utmp.
76777
76778 2001-05-27  Jim Meyering  <meyering@lucent.com>
76779
76780         * lib/readutmp.h (UT_TYPE): Define.
76781
76782 2001-05-24  Jim Meyering  <meyering@lucent.com>
76783
76784         * lib/argmatch.c: Include "quote.h".
76785         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76786         quote function.  Reported by Göran Uddeborg.
76787
76788 2001-05-22  Jim Meyering  <meyering@lucent.com>
76789
76790         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76791         now that we use the package-supplied version unconditionally.
76792         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76793
76794 2001-05-21  Jim Meyering  <meyering@lucent.com>
76795
76796         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76797         shell syntax errors.
76798
76799 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76800
76801         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76802
76803 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76804
76805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76806         Don't bother to check library strftime, since
76807         we'll be using our own my_strftime function anyway.
76808         Define my_strftime instead of strftime.
76809
76810 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76811
76812         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76813         which is not yet declared.
76814
76815 2001-05-15  Jim Meyering  <meyering@lucent.com>
76816
76817         * m4/regex.m4: Use proper quoting so brackets appear in the test
76818         program.
76819         Reported by, and with help from, Bruno Haible.
76820
76821 2001-05-13  Jim Meyering  <meyering@lucent.com>
76822
76823         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76824         undefined.
76825
76826 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76827
76828         dirname code cleanup.  base_name now behaves more compatibly
76829         with POSIX basename when given file names that have trailing
76830         slashes, and similarly for dir_name.  Add new primitives
76831         base_len and dir_len.  Put the directory-name-related decls
76832         into dirname.h.
76833
76834         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76835         * lib/backupfile.c (base_name): Likewise.
76836         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76837         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76838         * lib/makepath.c (strip_trailing_slashes): Likewise.
76839         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76840         ISSLASH): Likewise.
76841         * lib/rename.c (strip_trailing_slashes): Likewise.
76842         * lib/same.c (base_name): Likewise.
76843         * lib/stripslash.c (ISSLASH): Likewise.
76844
76845         * lib/addext.c: Include <dirname.h> after size_t is defined.
76846         * lib/backupfile.c: Likewise.
76847
76848         * lib/addext.c (addext): Use base_len to trim redundant
76849         trailing slashes instead of doing it ourselves.
76850         But do not trim the last slash if it is not redundant.
76851
76852         * lib/backupfile.c (find_backup_file_name,
76853         max_backup_version): Use base_len instead of rolling it ourselves.
76854         Handle the case of "" and (on DOS) "C:" correctly.
76855
76856         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76857         needed. Include <string.h>, <dirname.h>.
76858         (base_name): Allow file names ending in slashes, other than names
76859         that are all slashes.  In this case, return the basename followed
76860         by the slashes.  This is more general, and can be used in places
76861         where the original base_name purposely had an assertion failure.
76862         (base_len): New function.
76863
76864         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76865         Do not include <assert.h>; no longer needed.
76866         Include xalloc.h.
76867         (memrchr): Remove decl.
76868         (dir_name_r): Remove.
76869         (dir_len): Renamed from dirlen.  All callers changed.
76870         Rewrite in terms of base_name, for simplicity and consistency.
76871         (dir_name): Never return NULL.  All callers changed.
76872         Do not include <stdlib.h> in test program; no longer needed.
76873         return 0; is fine for test program.
76874
76875         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76876         New macros.
76877         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76878
76879         * lib/path-concat.c (path_concat): Use base_len to compute
76880         base length, not strlen; this means we cannot rely on memcpy
76881         to null-terminate.
76882
76883         * lib/same.c (STREQ): Remove.
76884         (same_name): Handle the case where the basename ends in trailing '/'.
76885
76886         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76887         a slash was stripped.  Do not strip the last slash after a
76888         file system prefix.
76889
76890 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76891
76892         * lib/Makefile.am (libfetish_a_SOURCES):
76893         Add strftime.c, since we now compile it on all hosts.
76894
76895         * lib/strftime.c (my_strftime):
76896         Define to nstrftime if emacs, but only if my_strftime is not defined.
76897         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76898         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76899         Add one more extra argument: a nanoseconds value.
76900         All uses changed.
76901         (ns): New macro.
76902         (my_strftime function): Add %N format.
76903         (emacs_strftimeu): Renamed from emacs_strftime,
76904         with extra ut argument.
76905
76906 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76907
76908         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76909
76910 2001-04-21  Jim Meyering  <meyering@lucent.com>
76911
76912         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76913         doesn't interfere.
76914
76915 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76916
76917         * m4/ftruncate.m4: Check for chsize.
76918         Link with ftruncate.o unconditionally if ftruncate is missing.
76919         This was required when cross-compiling to i586-mingw32msvc.
76920
76921 2001-04-08  Jim Meyering  <meyering@lucent.com>
76922
76923         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76924         recomputed; that's necessary when the offset spans a DST transition.
76925         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76926
76927 2001-04-02  Jim Meyering  <meyering@lucent.com>
76928
76929         * lib/regex.h, regex.c: Update from GNU libc.
76930
76931 2001-03-24  Jim Meyering  <meyering@lucent.com>
76932
76933         * m4/jm-macros.m4: Require autoconf-2.49d.
76934
76935 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76936
76937         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76938
76939 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76940
76941         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76942
76943 2001-03-17  Jim Meyering  <meyering@lucent.com>
76944
76945         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76946         now that the version in autoconf is equivalent.
76947         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76948
76949         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76950         Suggestion from Akim Demaille.
76951
76952         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76953         (jm_PREREQ_TEMPNAME): New function.
76954
76955 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76956
76957         * lib/tempname.c (uint64_t): Define to uintmax_t if
76958         not defined, and if UINT64_MAX is not defined.
76959         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76960         Reported by John David Anglin.
76961
76962 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76963
76964         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76965         resolve alias if codeset is empty.
76966         * lib/config.charset (BeOS): Use wildcard syntax.
76967
76968 2001-03-13  Jim Meyering  <meyering@lucent.com>
76969
76970         * lib/path-concat.c (path_concat)
76971         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76972         concatenating e.g., `C:' and `foo'.
76973         From Bruno Haible.
76974
76975 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76976
76977         * lib/localcharset.c (locale_charset): Don't use
76978         setlocale(LC_CTYPE,NULL). Don't return NULL.
76979         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76980
76981 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76982
76983         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76984         support for DOS/DJGPP.
76985
76986 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76987
76988         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76989         lacks mkstemp.  Compile our own tempname.c if we compile our own
76990         mkstemp.c, as mkstemp relies on tempname.
76991
76992 2001-03-01  Jim Meyering  <meyering@lucent.com>
76993
76994         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76995         AH_VERBATIM really does output its argument verbatim.
76996
76997 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76998
76999         * lib/Makefile.am (libfetish_a_SOURCES):
77000         Add dup-safer.c, fopen-safer.c.
77001         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77002
77003         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77004         * lib/unistd-safer.h: New files.
77005
77006 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77007
77008         The mkstemp replacement is taken from glibc 2.2.2, with some
77009         portability fixes for use outside glibc, as follows:
77010
77011         * lib/tempname.c (struct_stat64): New macro.
77012         (direxists, __gen_tempname): Use it.
77013         This avoids a portability problem with Solaris 8.
77014
77015         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77016         (<stddef.h>, <stdint.h>, <string.h>):
77017         Include only if STDC_HEADERS || _LIBC.
77018         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77019         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77020         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77021         (__set_errno): Define this macro if <errno.h> doesn't.
77022         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77023         Define these macros if <stdio.h> doesn't.
77024         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77025         Define these macros if <sys/stat.h>
77026         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77027         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77028         __xstat64): Define if not _LIBC.
77029         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77030         (__gen_tempname): Invoke gettimeofday only if
77031         HAVE_GETTIMEOFDAY || _LIBC;
77032         otherwise, fall back on plain "time".
77033         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77034
77035         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77036
77037         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77038
77039 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77040
77041         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77042
77043 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77044
77045         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77046         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77047         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77048         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77049
77050 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77051
77052         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77053         Remove workaround macros for hosts that have mbrtowc but not
77054         mbstate_t, as we now insist on proper declarations for both
77055         before using mbrtowc.
77056
77057 2001-02-17  Jim Meyering  <meyering@lucent.com>
77058
77059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77060         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77061         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77062         UnixWare 7.1.1.
77063
77064         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77065         rather than AC_CACHE_VAL.
77066
77067 2001-02-17  Jim Meyering  <meyering@lucent.com>
77068
77069         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77070         around included file name.
77071
77072         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77073
77074         * lib/strftime.c: Update from GNU libc (the only changes were to
77075         comments).
77076
77077 2001-02-17  Jim Meyering  <meyering@lucent.com>
77078
77079         * lib/regex.c: Update from libc.
77080
77081 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77082
77083         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77084         clash.
77085
77086 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77087
77088         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77089         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77090         Reported by Mark Hounschell via Paul Eggert.
77091
77092 2001-02-07  Jim Meyering  <meyering@lucent.com>
77093
77094         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77095
77096 2001-02-05  Jim Meyering  <meyering@lucent.com>
77097
77098         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77099         it includes the patch required for `large file' support with at least
77100         HP-UX's 10.20 /bin/cc.
77101
77102 2001-02-03  Jim Meyering  <meyering@lucent.com>
77103
77104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77105         AS_IF, now that it works once again (mysteriously).
77106         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77107
77108 2001-01-30  Jim Meyering  <meyering@lucent.com>
77109
77110         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77111         * m4/chown.m4: Rename conftestchown to conftest.chown.
77112         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77113         s/conftestdir2/conftest.d2/.
77114         * m4/utimes.m4: s/conftestdata/conftest.data/
77115         Inspired by Pavel Roskin's change in autoconf.
77116
77117 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77118
77119         * lib/config.charset: Update for FreeBSD 4.2.
77120
77121 2001-01-27  Jim Meyering  <meyering@lucent.com>
77122
77123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77124         a use of AS_IF.
77125         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77126
77127 2001-01-26  Jim Meyering  <meyering@lucent.com>
77128
77129         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77130         quotearg.c includes it.
77131
77132 2001-01-26  Jim Meyering  <meyering@lucent.com>
77133
77134         * lib/quotearg.c: Include stddef.h.
77135         * lib/quote.c: Include stddef.h.
77136         Reported by Axel Kittenberger.
77137
77138         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77139         line in double quotes so that it evokes a better diagnostic.
77140         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77141         Reported by Axel Kittenberger.
77142
77143 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77144
77145         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77146         as if it was a `charset'.
77147
77148 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77149
77150         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77151         has const.
77152
77153 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77154
77155         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77156         to avoid a warning.  Add back 'const' to inptr.
77157
77158 2001-01-20  Jim Meyering  <meyering@lucent.com>
77159
77160         Be sure that headers are checked before used in code compiled
77161         for the type checks.
77162         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77163         In place of that, invoke jm_CHECK_ALL_TYPES.
77164         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77165         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77166         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77167         The check for ssize_t was mistakenly run before the test for unistd.h.
77168
77169         The configure-time check for stdbool.h was missing.
77170         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77171         (jm_PREREQ_HASH): New function.
77172
77173 2001-01-17  Jim Meyering  <meyering@lucent.com>
77174
77175         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77176         for autoconf-2.49c.
77177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77178
77179 2001-01-16  Jim Meyering  <meyering@lucent.com>
77180
77181         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77182         From Bruno Haible.
77183
77184 2001-01-14  Jim Meyering  <meyering@lucent.com>
77185
77186         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77187         foo and bar.  Create conftestdir/ in the script, not in the C code.
77188         Remove directories in the script, not in the C code.
77189         Remove conftestdir{,2} before trying to create the directory.
77190         Make the entire configure script fail if the mkdir fails.
77191
77192 2001-01-14  Jim Meyering  <meyering@lucent.com>
77193
77194         * lib/rename.c: New file.  From Volker Borchert.
77195         Include stdlib.h, string.h or strings.h, and xalloc.h.
77196         Use strip_trailing_slashes rather than open-coding it.
77197
77198 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77199
77200         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77201
77202 2001-01-03  Jim Meyering  <meyering@lucent.com>
77203
77204         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77205         of local `inptr' to avoid warning with some system declarations of
77206         iconv.
77207
77208 2001-01-02  Volker Borchert  <bt@teknon.de>
77209
77210         * m4/rename.m4: New file.
77211         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77212
77213 2001-01-01  Jim Meyering  <meyering@lucent.com>
77214
77215         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77216         even on systems with utmpx.h.  It's necessary for the declaration of
77217         utmp's ut_user member.  Reported by Andreas Jaeger.
77218
77219         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77220         available. They are required for the declarations of getgrgid and
77221         getpwuid resp.
77222         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77223         Reported by Andreas Jaeger.
77224
77225 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77226
77227         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77228         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77229         so `make install' also works in VPATH builds.
77230
77231 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77232
77233         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77234         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77235         can be used in subdirectories.
77236
77237 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77238
77239         * lib/modechange.c: Do not assume that mode_t uses the
77240         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77241         the other-execute bit of FOO even if S_IXOTH != 1.
77242
77243         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77244         WOTH, XOTH, ALLM): New macros.
77245         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77246          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77247         Use them.
77248         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77249         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77250         (mode_compile):
77251         No need to use uintmax_t; unsigned long is long enough.
77252         Don't bother to get suffix since we don't use it.
77253
77254 2000-12-26  Jim Meyering  <meyering@lucent.com>
77255
77256         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77257         better with autoheader.
77258
77259 2000-12-24  Jim Meyering  <meyering@lucent.com>
77260
77261         * lib/hash.c (is_prime): Return explicit boolean values.
77262         (hash_get_first): Return NULL to appease Irix5.6's 89.
77263         Reported by Nelson Beebe.
77264
77265 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77266
77267         * lib/localcharset.c (locale_charset): Add support for Win32.
77268
77269 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77270
77271         * lib/physmem.h, lib/physmem.c: New files.
77272
77273         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77274         (noinst_HEADERS): Add physmem.h.
77275
77276         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77277         't' for compatibility with Solaris 8 sort.
77278
77279 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77280
77281         * lib/config.charset: Add support for BeOS.
77282
77283 2000-12-17  Jim Meyering  <meyering@lucent.com>
77284
77285         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77286         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77287
77288 2000-12-16  Jim Meyering  <meyering@lucent.com>
77289
77290         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77291         N and M) would have treated it like `chown N:N FILE'.
77292
77293         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77294
77295 2000-12-16  Jim Meyering  <meyering@lucent.com>
77296
77297         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77298         SHELLS_FILE to a file name that's useful on djgpp systems.
77299         Include stdlib.h.
77300         (ADDITIONAL_DEFAULT_SHELLS): Define.
77301         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77302         Based mostly on a patch from Prashant TR.
77303
77304 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77305
77306         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77307         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77308         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77309
77310 2000-12-08  Andreas Schwab  <schwab@suse.de>
77311
77312         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77313         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77314
77315 2000-12-07  Jim Meyering  <meyering@lucent.com>
77316
77317         * lib/stripslash.c (ISSLASH): Define.
77318         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77319         `/'.
77320         From Prashant TR.
77321
77322         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77323         (dir_name_r): Declare this function as static.
77324         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77325         manifest itself on a name containing a mix of slashes and
77326         backslashes.
77327         Make this function work with names starting with a DOS-style
77328         drive letter and colon prefix.
77329         (dir_name): Append `.' if necessary.
77330         Based mostly on patches from Prashant TR and Eli Zaretskii.
77331
77332         * lib/dirname.h (dir_name_r): Remove prototype.
77333
77334 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77335
77336         * m4/off_t-format.m4: Remove this file.
77337         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77338
77339 2000-12-06  Jim Meyering  <meyering@lucent.com>
77340
77341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77342         replacement strtoull, we may well need the replacement strtoul, too.
77343         Check for declarations of strtoul and strtoull.
77344         Check for strtol.  Mainly as a cue to cause automake to include
77345         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77346         Check for limits.h -- strtol.c needs it.
77347
77348 2000-12-05  Jim Meyering  <meyering@lucent.com>
77349
77350         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77351
77352 2000-12-04  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77355         Also include memory.h, stdlib.h, unistd.h if appropriate.
77356         Reported by Andreas Jaeger (conflicting declaration of malloc).
77357
77358 2000-12-02  Jim Meyering  <meyering@lucent.com>
77359
77360         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77361         * m4/jm-macros.m4 (jm_MACROS): require it.
77362
77363 2000-12-02  Jim Meyering  <meyering@lucent.com>
77364
77365         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77366
77367 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77368
77369         * lib/memrchr.c: Include <config.h> before any system include file.
77370
77371 2000-11-30  Jim Meyering  <meyering@lucent.com>
77372
77373         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77374
77375 2000-11-30  Jim Meyering  <meyering@lucent.com>
77376
77377         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77378
77379 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77380
77381         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77382
77383 2000-11-26  Jim Meyering  <meyering@lucent.com>
77384
77385         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77386
77387 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77388
77389         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77390         size of (size_t) -1; it's not portable.
77391
77392 2000-11-17  Jim Meyering  <meyering@lucent.com>
77393
77394         * lib/strstr.c: Update from GNU libc.
77395
77396 2000-11-17  Akim Demaille  <akim@epita.fr>
77397
77398         * lib/obstack.h: Formatting changes.
77399         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77400         prevent type checking.
77401         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77402         cast the value to (void *): assigning a `foo *' to a `void *'
77403         variable is valid.
77404         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77405
77406 2000-11-16  Jim Meyering  <meyering@lucent.com>
77407
77408         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77409
77410 2000-11-11  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77413
77414 2000-11-10  Jim Meyering  <meyering@lucent.com>
77415
77416         * lib/obstack.h: Update from GNU libc.
77417         * lib/obstack.c: Likewise.
77418
77419 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77420
77421         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77422
77423 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77424
77425         * lib/getusershell.c (setusershell): Use rewind rather than
77426         fseek/fseeko, to avoid configuration hassles with fseeko.
77427         Don't bother opening SHELLS_FILE if shellstream is NULL;
77428         it's not necessary.
77429
77430 2000-11-05  Jim Meyering  <meyering@lucent.com>
77431
77432         * lib/makepath.h (make_dir): Declare.
77433         * lib/makepath.c (make_dir): Remove `static' attribute.
77434         Tweak a comment.
77435
77436 2000-11-04  Jim Meyering  <meyering@lucent.com>
77437
77438         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77439
77440 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77441
77442         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77443         last one in a bucket, advance to the next bucket.
77444
77445 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77446
77447         * lib/fnmatch.c: Do not comment out all the code if we are using
77448         the GNU C library, because in some cases we are replacing buggy
77449         code in the GNU C library itself.
77450
77451 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77452
77453         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77454         (regex_compile): Catch bogus \(\1\).
77455
77456 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77457
77458         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77459         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77460         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77461
77462 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77463
77464         * lib/error.h, getline.h, modechange.h:
77465         Remove "2000" from Copyright line, as the file hasn't been
77466         changed this year other than in the copyright notice.
77467
77468         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77469         was changed this year.
77470
77471 2000-10-29  Jim Meyering  <meyering@lucent.com>
77472
77473         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77474         renaming.
77475         * m4/ls-mntd-fs.m4: Likewise
77476
77477 2000-10-29  Jim Meyering  <meyering@lucent.com>
77478
77479         * lib/xstat.in: Fix grammar in comment.
77480
77481 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77482
77483         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77484         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77485         doesn't define __restrict_arr.
77486
77487 2000-10-28  Jim Meyering  <meyering@lucent.com>
77488
77489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77490         (jm_PREREQ_MEMCHR): New function.
77491
77492 2000-10-28  Jim Meyering  <meyering@lucent.com>
77493
77494         * lib/memchr.c: Update from libc.
77495         Adjust for portability:
77496         [HAVE_STDLIB_H]: Include stdlib.h.
77497         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77498         Undef __memchr, too.
77499         [!weak_alias]: Define __memchr to memchr.
77500
77501         * lib/regex.c: Update from libc.
77502         * lib/regex.h: Likewise.
77503         * lib/getopt1.c: Likewise.
77504         * lib/memcmp.c: Likewise.
77505
77506         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77507         Avoid using fseek, when possible -- it's broken by design.
77508         Patch by Ulrich Drepper.
77509
77510 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77511
77512         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77513         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77514         Giving in to popular pressure to shut up the compiler with casts.
77515
77516 2000-10-26  Jim Meyering  <meyering@lucent.com>
77517
77518         * lib/strftime.c: Update from libc.
77519
77520 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77521
77522         * regex.c: More `unsigned char' -> `re_char' changes.
77523         Also change several `int' into `re_wchar_t'.
77524         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77525         (PUSH_FAILURE_POINTER): Don't cast any more.
77526         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77527         We want GCC to complain, since this piece of code makes
77528         re_match non-reentrant, which *should* be fixed.
77529         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77530         (EXTEND_BUFFER): Use RETALLOC.
77531         (SET_LIST_BIT): Don't cast.
77532         (re_wchar_t): New type.
77533         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77534         that those two functions will always properly return.
77535         (IMMEDIATE_QUIT_CHECK): Cast to void.
77536         (analyse_first): Use recursion rather than an explicit stack.
77537         (re_compile_fastmap): Can't fail anymore.
77538         (re_search_2): Don't check re_compile_fastmap for failure.
77539         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77540         Now also sets the new value (passed in a new argument).
77541         (re_match_2_internal): Use it.
77542         Also, use a new var `reg' of type size_t when looping through regs
77543         rather than reuse the inappropriate `mcnt'.
77544
77545 2000-10-25  Jim Meyering  <meyering@lucent.com>
77546
77547         * lib/obstack.c: Update from libc.
77548
77549 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77550
77551         * regex.c (regex_compile): Change the way of handling a range from
77552         a char less than 256 to a char not less than 256.
77553
77554 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77555
77556         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77557         NT-Emacs only.
77558         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77559         so that re_search functions only quit when callers expect them to.
77560
77561 2000-10-23  Jim Meyering  <meyering@lucent.com>
77562
77563         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77564         wrong.  That set_locale call must not have any side effects.
77565         From Paul Eggert.
77566
77567 2000-10-22  Jim Meyering  <meyering@lucent.com>
77568
77569         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77570         [CYCLIC]: Remove now-unused definition.
77571
77572         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77573         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77574         Suggestion from Ulrich Drepper.
77575
77576 2000-10-21  Jim Meyering  <meyering@lucent.com>
77577
77578         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77579         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77581
77582 2000-10-21  Jim Meyering  <meyering@lucent.com>
77583
77584         * lib/dirname.c (memrchr): Declare if necessary.
77585         (dir_name): Remove the restriction that there be no
77586         trailing slashes.  Now, this code skips past them, effectively
77587         ignoring them.
77588         [TEST_DIRNAME] (main): New unit tests.
77589
77590         * lib/memrchr.c: New file from GNU libc.
77591         Undef __memrchr, too.
77592         [!weak_alias]: Define __memrchr to memrchr.
77593         Guard weak_alias use with `#ifdef weak_alias'.
77594
77595 2000-10-21  Jim Meyering  <meyering@lucent.com>
77596
77597         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77598         (dir_name): Use dir_name_r.
77599         * lib/dirname.h (dir_name_r): Declare it.
77600
77601 2000-10-17  Jim Meyering  <meyering@lucent.com>
77602
77603         * lib/quote.h (PARAMS): Define and use.
77604         Reported by Akim Demaille.
77605
77606         * lib/getopt.c: Update from libc.
77607
77608 2000-10-16  Jim Meyering  <meyering@lucent.com>
77609
77610         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77611         setlocale.
77612         From Jan Fedak.
77613
77614 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77615
77616         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77617
77618 2000-09-25  Jim Meyering  <meyering@lucent.com>
77619
77620         * lib/md5.h (rol): Define (from GnuPG).
77621
77622         * lib/sha.c: Give credit (GnuPG) where due.
77623         (M): Use rol rather than open-coding it.
77624         Add a FIXME comment.
77625
77626 2000-09-21  Jim Meyering  <meyering@lucent.com>
77627
77628         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77629         Reported by Michael Stone.
77630
77631 2000-09-20  Jim Meyering  <meyering@lucent.com>
77632
77633         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77634         (noinst_HEADERS): Add sha.h.
77635         Based on code from Scott G. Miller and from GnuPG.
77636
77637 2000-09-18  Jim Meyering  <meyering@lucent.com>
77638
77639         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77640         LIBS. Otherwise, everyone ends up linking with -lelf for some
77641         configurations.
77642         Reported by Mike Stone.
77643
77644 2000-09-15  Jim Meyering  <meyering@lucent.com>
77645
77646         * lib/regex.c: Update from libc.
77647
77648 2000-09-10  Jim Meyering  <meyering@lucent.com>
77649
77650         * lib/getopt.c (_getopt_internal): Update from glibc.
77651
77652 2000-09-09  Jim Meyering  <meyering@lucent.com>
77653
77654         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77655         think it should be used as a general replacement for isascii.
77656         * lib/fnmatch.c: Likewise.
77657         * lib/mbswidth.c: Likewise
77658         * lib/regex.c: Likewise.
77659
77660         Don't use atoi.
77661         * lib/userspec.c: Include sys/param.h and limits.h.
77662         Include xstrtol.h.
77663         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77664         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77665         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77666         UID, GID.  Check range.
77667
77668 2000-09-06  Jim Meyering  <meyering@lucent.com>
77669
77670         * lib/getopt.c (_getopt_internal): Update from glibc.
77671
77672 2000-08-30  Jim Meyering  <meyering@lucent.com>
77673
77674         * lib/strftime.c: Merge in changes from GNU libc.
77675
77676 2000-08-26  Jim Meyering  <meyering@lucent.com>
77677
77678         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77679         * m4/fpending.m4: New file.
77680
77681 2000-08-26  Jim Meyering  <meyering@lucent.com>
77682
77683         * lib/closeout.c: Include "__fpending.h".
77684         (close_stdout_status): Return right away if there's nothing to flush.
77685
77686         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77687         * lib/__fpending.c: New file.
77688         * lib/__fpending.h: New file.
77689
77690 2000-08-20  Jim Meyering  <meyering@lucent.com>
77691
77692         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77693         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77694         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77695
77696 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77697
77698         Improve fileutils installation on systems where running
77699         programs (like install) can't be unlinked.
77700         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77701         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77702
77703 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77704
77705         Standardize on "memory exhausted" instead of "Memory exhausted"
77706         or "virtual memory exhausted".
77707         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77708         "virtual memory exhausted".
77709         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77710         our own message.
77711         * lib/userspec.c (parse_user_spec): Likewise.
77712         * lib/bumpalloc.h: comment fix
77713         * lib/same.c, userspec.c: Include xalloc.h.
77714
77715         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77716         not char *const and pointing to a constant array.
77717         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77718         (xrealloc): Comment fix.
77719
77720         * lib/userspec.c (parse_user_spec):
77721         Don't translate a message until just before returning,
77722         to avoid unnecessary translation.
77723
77724 2000-08-07  Jim Meyering  <meyering@lucent.com>
77725
77726         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77727         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77728         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77729         getgroups.c, gethostname.c, getopt.h, group-member.c,
77730         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77731         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77732         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77733         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77734         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77735         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77736         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77737         yesno.c: Back out Copyright date changes for each file with no change
77738         this year.  This eases coordination with other programs using the same
77739         source code modules.  From Paul Eggert.
77740
77741 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77742
77743         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77744         not char, for compatibility with glibc 2.1.3 strftime.c.
77745
77746 2000-08-03  Greg McGary  <greg@mcgary.org>
77747
77748         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77749         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77750         (EXTEND_BUFFER): Use them.
77751
77752 2000-08-01  Jim Meyering  <meyering@lucent.com>
77753
77754         * lib/dirname.c (ISSLASH): Define.
77755         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77756         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77757         both `\' and `/' may be use as path separators.
77758         Based on a patch from Prashant TR.
77759
77760 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77761
77762         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77763         slot vector a constant, since it might get modified.
77764
77765 2000-07-31  Jim Meyering  <meyering@lucent.com>
77766
77767         * lib/xmalloc.c: Use `virtual memory exhausted', not
77768         `Memory exhausted'.
77769         * lib/obstack.c (print_and_abort): Likewise.
77770
77771 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77772
77773         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77774         buffer, so that the caller can always quote one small
77775         component of a "memory exhausted" message in slot 0.
77776         From a suggestion by Jim Meyering.
77777
77778 2000-07-30  Jim Meyering  <meyering@lucent.com>
77779
77780         * lib/makepath.c (make_path): Quote the other instance, too.
77781
77782         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77783         (STATIC_BUF_SIZE): Define.
77784         (quotearg_n_options): Use only statically allocated storage when
77785         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77786         than STATIC_BUF_SIZE.
77787
77788 2000-07-29  Jim Meyering  <meyering@lucent.com>
77789
77790         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77791         * lib/dirname.c (dir_name): Likewise.
77792
77793         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77794         `/'.
77795
77796         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77797         (dir_name): Assert that there are no trailing slashes.
77798
77799 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77800
77801         * lib/mbswidth.h (mbswidth): Add a flags argument.
77802         (mbswidth): New declaration.
77803         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77804         * lib/mbswidth.c (mbswidth): Add a flags argument.
77805         (mbsnwidth): New function.
77806
77807 2000-07-24  Jim Meyering  <meyering@lucent.com>
77808
77809         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77810
77811 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77812
77813         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77814
77815 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77816
77817         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77818         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77819         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77820         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77821         invoke multibyte primitives.
77822
77823 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77824
77825         * lib/quotearg.c:
77826         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77827         so that mbstate_t is always defined.
77828
77829         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77830         be 1 in at least one GCC installation, and this configuration
77831         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77832         performance on hosts that have mbrtowc but have only unibyte
77833         locales, but I assume these hosts are rare.
77834
77835 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77836
77837         * lib/mbswidth.c (_XOPEN_SOURCE):
77838         Don't define; this causes problems on Solaris 7.
77839         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77840
77841 2000-07-23  Jim Meyering  <meyering@lucent.com>
77842
77843         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77844         too: getgrgid, getpwuid, getuid.
77845
77846 2000-07-23  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/basename.c (base_name): Add an assertion.
77849
77850 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77851
77852         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77853         shadow its mbsinit function.
77854
77855 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77856
77857         * lib/mbswidth.h: New file.
77858         * lib/mbswidth.c: New file.
77859         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77860         (noinst_HEADERS): Add mbswidth.h.
77861
77862 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77863
77864         * lib/config.charset: Add support for FreeBSD. Improve support for
77865         HP-UX and IRIX 6.
77866
77867 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77868
77869         * m4/mbswidth.m4: New file.
77870         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77871
77872 2000-07-15  Jim Meyering  <meyering@lucent.com>
77873
77874         * lib/makepath.c: Include quote.h.
77875         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77876         corresponding argument in a `quote (...)' call.
77877         Give better diagnostics.
77878
77879         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77880         (noinst_HEADERS): Add quote.h.
77881
77882         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77883         from tar's src/misc.c.
77884         * lib/quote.h: New file.  Prototypes for same.
77885
77886 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77887
77888         From a suggestion by Bruno Haible.
77889         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77890         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77891         to decide whether to define the BeOS workaround macro;
77892         this adjusts to the change to AC_MBSTATE_T.
77893
77894 2000-07-14  Jim Meyering  <meyering@lucent.com>
77895
77896         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77897         jm_AC_TYPE_UINTMAX_T.
77898
77899 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77900
77901         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77902
77903         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77904         quotearg_buffer_restyled): Add support for
77905         clocale_quoting_style.  Undo previous change to
77906         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77907         and "{RIGHT QUOTATION MARK}" msgids.
77908
77909 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77910
77911         From a suggestion by Bruno Haible.
77912         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77913         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77914         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77915         and mbstate_t, to a single-part test that simply defines mbstate_t.
77916         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77917         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77918
77919 2000-07-10  Jim Meyering  <meyering@lucent.com>
77920
77921         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77922
77923         * m4/gnu-source.m4: Output to confdefs.h directly.
77924         Suggestion from Akim Demaille.
77925
77926 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77927
77928         The old behavior of quoting `like this' doesn't look good with
77929         newer, ISO-style fonts.  See:
77930         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77931
77932         Instead, quote "like this" by default.  Let the translator
77933         tailor the locale-specific quoting behavior by providing
77934         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77935
77936         * lib/quotearg.c (N_): New macro.
77937         (gettext_default): New function.
77938         (quotearg_buffer_restyled): Use
77939         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77940         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77941
77942 2000-07-09  Jim Meyering  <meyering@lucent.com>
77943
77944         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77945         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77946
77947         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77949
77950 2000-07-09  Jim Meyering  <meyering@lucent.com>
77951
77952         * lib/Most files: Update copyright dates to include 2000.
77953
77954 2000-07-08  Jim Meyering  <meyering@lucent.com>
77955
77956         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77957         if not defined.
77958         (xgethostname): Remove now-unnecessary #ifdef.
77959         Move declaration of `err' into loop where it's used.
77960
77961 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77962         and Bruno Haible  <haible@clisp.cons.org>
77963
77964         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77965         only if the test for an object-type mbstate_t fails.  This
77966         prevents us from mistakenly reporting that mbstate_t is a
77967         system object type after we "#define mbstate_t int" to work
77968         around its lack.
77969
77970 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77971         and Bruno Haible  <haible@clisp.cons.org>
77972
77973         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77974
77975 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77976
77977         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77978         to strerror_r.
77979         Include <ctype.h> for use of isalpha.
77980
77981 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77982
77983         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77984         by allocating a larger buffer. Test the gethostname return value for
77985         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77986         returns an error and ENAMETOOLONG isn't defined.
77987
77988 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77989
77990         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77991         dimension.
77992
77993 2000-07-04  Jim Meyering  <meyering@lucent.com>
77994
77995         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77996         of the deprecated AC_CHECKING.
77997
77998 2000-07-04  Jim Meyering  <meyering@lucent.com>
77999
78000         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78001         Reported by Bruno Haible.
78002
78003 2000-07-04  Jim Meyering  <meyering@lucent.com>
78004
78005         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78006         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78007         lacks mbrtowc.
78008
78009 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78010
78011         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78012         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78013
78014 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78015         and Bruno Haible  <haible@clisp.cons.org>
78016
78017         * lib/quotearg.c (mbrtowc):
78018         Assign to *pwc, and return 1 only if result is nonzero.
78019         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78020
78021 2000-07-03  Jim Meyering  <meyering@lucent.com>
78022
78023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78024
78025 2000-07-03  Jim Meyering  <meyering@lucent.com>
78026
78027         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78028         This is necessary to get a definition of e.g., UTMP_FILE on
78029         HP-UX 10.20.
78030         From Bob Proulx.
78031
78032 2000-07-02  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78035
78036         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78037         AC_LIBOBJ(function_name).
78038         * m4/chown.m4: Likewise.
78039         * m4/fnmatch.m4: Likewise.
78040         * m4/ftruncate.m4: Likewise.
78041         * m4/getgroups.m4: Likewise.
78042         * m4/getline.m4: Likewise.
78043         * m4/group-member.m4: Likewise.
78044         * m4/jm-macros.m4: Likewise.
78045         * m4/lstat.m4: Likewise.
78046         * m4/malloc.m4: Likewise.
78047         * m4/memcmp.m4: Likewise.
78048         * m4/nanosleep.m4: Likewise.
78049         * m4/putenv.m4: Likewise.
78050         * m4/realloc.m4: Likewise.
78051         * m4/regex.m4: Likewise.
78052         * m4/stat.m4: Likewise.
78053         * m4/strftime.m4: Likewise.
78054
78055 2000-07-02  Jim Meyering  <meyering@lucent.com>
78056
78057         * lib/quotearg.c (mbstate_t): Don't define here.
78058
78059 2000-07-02  Jim Meyering  <meyering@lucent.com>
78060
78061         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78062
78063 2000-07-01  Jim Meyering  <meyering@lucent.com>
78064
78065         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78066
78067 2000-07-01  Jim Meyering  <meyering@lucent.com>
78068
78069         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78070         problem.
78071
78072 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78073
78074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78075         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78076
78077 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78078
78079         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78080         per change in ../m4/ls-mntd-fs.m4.
78081         (read_filesystem_list): Ignore symbolic links.
78082
78083 2000-06-29  Jim Meyering  <meyering@lucent.com>
78084
78085         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78086         for declaration of strcmp.
78087
78088         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78089
78090         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78091         Avoid warning by casting result to `char *' to remove `const'.
78092
78093 2000-06-28  Jim Meyering  <meyering@lucent.com>
78094
78095         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78096         included by quotearg.c, for which we perform this test.  From
78097         Bruno Haible.
78098
78099 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78100
78101         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78102         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78103         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78104
78105 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78106
78107         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78108
78109 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78110
78111         savedir now sets errno on failure and invokes xmalloc to get memory.
78112         Fix a couple of other minor bugs while we're at it.
78113
78114         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78115         (NAMLEN): Remove macro.
78116         (malloc, realloc): Remove decls.
78117         (stpcpy): Likewise.
78118         ("xalloc.h"): Include.
78119         (NAME_SIZE_DEFAULT): New macro.
78120         (savedir): Use xmalloc / xrealloc to allocate memory.
78121         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78122         Skip "" directory entries.
78123         Use strlen to calculate directory entry length, since the old method
78124         is rarely used these days and isn't worth supporting.
78125         Don't use a pointer after freeing it.
78126         Check for integer overflow when calculating allocation size.
78127         Use memcpy to copy entries, instead of stpcpy.
78128         Set errno properly when returning NULL.
78129         Check for readdir error.
78130
78131 2000-06-26  Jim Meyering  <meyering@lucent.com>
78132
78133         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78134
78135 2000-06-25  Jim Meyering  <meyering@lucent.com>
78136
78137         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78138         Linux header bug when _XOPEN_SOURCE is defined to 500.
78139
78140 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78141
78142         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78143         deficiency.
78144
78145 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78146
78147         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78148         Include xalloc.h.
78149         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78150
78151 2000-06-24  Jim Meyering  <meyering@lucent.com>
78152
78153         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78154         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78155         for which strerror does return char*, but which lacks a conveniently
78156         accessible declaration of the function.  If the compile-test says
78157         strerror_r doesn't work, then resort to a `run'-test that works on
78158         BeOS and segfaults on DEC Unix.
78159
78160 2000-06-24  Jim Meyering  <meyering@lucent.com>
78161
78162         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78163
78164 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78165
78166         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78168
78169 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78170
78171         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78172         (mbrtowc, mbstate_t): Define substitutes if
78173         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78174         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78175         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78176
78177 2000-06-23  Jim Meyering  <meyering@lucent.com>
78178
78179         * m4/afs.m4: Add missing AC_MSG_RESULT.
78180         Reported by Bruno Haible.
78181
78182         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78183         Suggestion from Bruno Haible.
78184
78185 2000-06-23  Jim Meyering  <meyering@lucent.com>
78186
78187         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78188
78189 2000-06-21  Jim Meyering  <meyering@lucent.com>
78190
78191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78192
78193 2000-06-21  Jim Meyering  <meyering@lucent.com>
78194
78195         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78196         (noinst_HEADERS): Add getstr.h.
78197
78198         * lib/getline.c (getstr): Move into a separate file.
78199         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78200         the following changes: new parameter, delim2; both delim[12]
78201         parameters have type `int', not `char'.  The latter would lose
78202         with 8-bit delimiters.
78203         * lib/getstr.h: New file.
78204
78205 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78206
78207         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78208         than 1024, return a memory chunk of least possible size, instead
78209         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78210         Use free/xmalloc instead of xrealloc to avoid copying for very long
78211         paths.
78212
78213 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78214
78215         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78216         the empty string.
78217
78218 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78219
78220         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78221         address, not strdup.  Include <stdlib.h> and don't declare free().
78222
78223 2000-06-19  Jim Meyering  <meyering@lucent.com>
78224
78225         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78226
78227 2000-06-18  Jim Meyering  <meyering@lucent.com>
78228
78229         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78230
78231         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78232         `checking whether...' message to be consistent with that of the
78233         lstat test.
78234
78235 2000-06-18  Jim Meyering  <meyering@lucent.com>
78236
78237         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78238         Besides, these days every porting target provides a mkdir function.
78239
78240         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78241         needed. (this snippet comes from src/system.h).
78242
78243 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78244
78245         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78246
78247 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78248
78249         * lib/human.c (adjust_value): New function.
78250         (human_readable_inexact): Apply rounding style even when
78251         printing approximate values.
78252
78253 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78254
78255         * lib/human.c (human_readable_inexact): Allow an input block
78256         size that is not a multiple of the output block size, and vice versa.
78257         Reported by Piergiorgio Sartor.
78258
78259 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78260
78261         * lib/getdate.y (get_date): Apply relative times after time
78262         zone indicator, not before.  Reported by Todd A. Jacobs.
78263
78264 2000-06-13  Jim Meyering  <meyering@lucent.com>
78265
78266         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78267
78268         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78269
78270 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78271
78272         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78273
78274 2000-06-12  Jim Meyering  <meyering@lucent.com>
78275
78276         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78277         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78278         optional argument.
78279         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78280         the optional argument, `lib'.
78281
78282 2000-06-08  Jim Meyering  <meyering@lucent.com>
78283
78284         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78285
78286 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78287
78288         Rewrite largefile configuration so that we don't need to run
78289         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78290         AC_CANONICAL_HOST in configure.in -- jmm]
78291
78292         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78293         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78294         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78295         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78296         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78297         All uses changed.
78298         Instead of inspecting the output of getconf, try to compile the
78299         test program without and with the macro definition.
78300         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78301         for getconf.  Instead, check for the needed flags by compiling
78302         test programs.
78303
78304 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78305
78306         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78307
78308 2000-06-04  Jim Meyering  <meyering@lucent.com>
78309
78310         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78311         SunOS 4.1.4 for which gid_t is an unsigned type.
78312
78313 2000-06-03  Jim Meyering  <meyering@lucent.com>
78314
78315         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78316         now that autoconf requires that.
78317
78318         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78319         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78320         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78321
78322 2000-06-03  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78325
78326 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78327
78328         * m4/glibc21.m4: New file.
78329         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78330
78331 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78332
78333         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78334         newer, don't install charset.alias.
78335         * lib/config.charset: Change the Linux/glibc rules so they become empty
78336         on glibc-2.1 or newer.
78337
78338 2000-06-02  Jim Meyering  <meyering@lucent.com>
78339
78340         * lib/mountlist.c: Back out last change.  Instead, do this...
78341         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78342         me_dummy member using the same `ignore'-testing code.
78343         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78344         fs_type strings.
78345         From Mark D. Roth.
78346
78347 2000-05-29  Jim Meyering  <meyering@lucent.com>
78348
78349         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78350         mounts with the `ignore' attribute.  Based on a patch from
78351         Mark D. Roth.
78352
78353 2000-05-28  Jim Meyering  <meyering@lucent.com>
78354
78355         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78356         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78357         * m4/stat.m4: Likewise.
78358         * m4/lstat.m4: Likewise.
78359         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78360
78361         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78362         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78363
78364 2000-05-26  Jim Meyering  <meyering@lucent.com>
78365
78366         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78367
78368 2000-05-24  Jim Meyering  <meyering@lucent.com>
78369
78370         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78371         autoconf requires that.
78372         * m4/lib-check.m4: Likewise.
78373         * m4/jm-macros.m4: Likewise.
78374         * m4/strftime.m4: Likewise.
78375
78376         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78377         AC_CHECK_DECLS, now that autoconf requires that.
78378
78379 2000-05-22  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78382         * m4/lstat.m4: Likewise.
78383
78384 2000-05-22  Jim Meyering  <meyering@lucent.com>
78385
78386         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78387
78388 2000-05-20  Jim Meyering  <meyering@lucent.com>
78389
78390         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78391         (jm_PREREQ): Use it.
78392
78393 2000-05-18  Jim Meyering  <meyering@lucent.com>
78394
78395         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78396         back, too, since it may have been modified by allocate_entry.
78397         (hash_delete): Rewrite to use neither the assignment operator
78398         nor the comma operator in an if-expression.
78399
78400 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78401
78402         * lib/closeout.c:
78403         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78404         Remove; no longer needed.
78405         "quotearg.h": Add include.
78406         (file_name): Do not bother to explicitly initialize to NULL; it's less
78407         efficient on some hosts.
78408         (close_stdout_status): Remove test as to whether stdout was already
78409         closed; it breaks for the case "echo x | sort >&-".
78410         Quote file name colons.
78411         Do not assume that _("write error") lacks format strings.
78412
78413 2000-05-15  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/version-etc.c (version_etc_copyright): Update the copyright
78416         string used in all --version output.
78417
78418 2000-05-14  Jim Meyering  <meyering@lucent.com>
78419
78420         * lib/closeout.c (close_stdout_set_file_name): New function.
78421         (close_stdout_status): Use new file-scoped global.
78422         Return right away if fstat says the stdout file descriptor is invalid.
78423         * lib/closeout.h (close_stdout_set_file_name): Declare.
78424
78425 2000-05-10  Jim Meyering  <meyering@lucent.com>
78426
78427         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78428         (close_stdout_set_status): New function.
78429         * lib/closeout.h (close_stdout_set_status): Declare.
78430
78431 2000-05-09  Jim Meyering  <meyering@lucent.com>
78432
78433         * m4/gettext.m4: Rename this...
78434         * m4/libintl.m4: ...to this.
78435
78436 2000-05-08  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/long-options.c: Don't include closeout.h.
78439         (parse_long_options): Don't call close_stdout for --version.
78440
78441 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78442
78443         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78444         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78445         2.1.3 bug.  This avoids a clash when files like regex.c define
78446         _GNU_SOURCE.
78447
78448 2000-05-06  Jim Meyering  <meyering@lucent.com>
78449
78450         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78451         (AC_REPLACE_FUNCS): Add strnlen.
78452
78453         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78454         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78455
78456         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78457         AC_SEARCH_LIBS call for nanosleep.
78458         (LIB_NANOSLEEP): Set and AC_SUBST.
78459
78460 2000-05-06  Jim Meyering  <meyering@lucent.com>
78461
78462         * lib/strnlen.c: Undefine __strnlen and strnlen.
78463         [!weak_alias]: Define __strnlen to strnlen.
78464
78465         * lib/atexit.c: New file, from libiberty.
78466
78467 2000-05-06  Jim Meyering  <meyering@lucent.com>
78468
78469         * lib/closeout.c (close_stdout_status): Also check for errors on the
78470         stderr stream.
78471
78472 2000-05-05  Jim Meyering  <meyering@lucent.com>
78473
78474         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78475         AC_SEARCH_LIBS call for clock_gettime.
78476         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78477
78478         * m4/search-libs.m4: Update from autoconf.
78479
78480         su doesn't work on Solaris 2.6.
78481         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78482         <shadow.h>.  Reported by Dragos Harabor.
78483
78484 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78485
78486         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78487         memcpy instead of xmalloc, xrealloc, path_concat.
78488         (locale_charset): Treat empty environment variables as absent.
78489         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78490
78491 2000-05-04  Jim Meyering  <meyering@lucent.com>
78492
78493         * lib/getopt.c: Update from glibc.
78494         * lib/obstack.c: Likewise.
78495         * lib/obstack.h: Likewise.
78496         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78497         file
78498
78499         * lib/regex.h: Likewise.
78500         * lib/strndup.c: Likewise.
78501         * lib/strnlen.c: New file, from glibc.
78502
78503 2000-05-03  Jim Meyering  <meyering@lucent.com>
78504
78505         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78506
78507 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78508
78509         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78510         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78511         compile-time test, rather than inspecting host and OS, to
78512         decide whether to define _LARGEFILE_SOURCE.
78513
78514 2000-05-01  Jim Meyering  <meyering@lucent.com>
78515
78516         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78517
78518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78519         Based on a patch from Bruno Haible.
78520
78521 2000-05-01  Jim Meyering  <meyering@lucent.com>
78522
78523         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78524
78525 2000-04-29  Jim Meyering  <meyering@lucent.com>
78526
78527         * lib/path-concat.c: Declare strdup only if it's not defined.
78528         * lib/canon-host.c: Likewise.
78529
78530 2000-04-28  Jim Meyering  <meyering@lucent.com>
78531
78532         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78533         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78534         is included first, then limits.h is included by locale.h by libintl.h.
78535         From John David Anglin.
78536
78537 2000-04-25  Jim Meyering  <meyering@lucent.com>
78538
78539         * lib/makepath.c (S_IRWXUGO): Define.
78540         (make_path): Always perform explicit chmod if MODE specifies any
78541         of the `special' permission bits.  Prompted by a bug report against
78542         install from Mate Wierdl and Joost van Baal.
78543
78544 2000-04-18  Jim Meyering  <meyering@lucent.com>
78545
78546         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78547         (jm_PREREQ): Use it.
78548
78549 2000-04-18  Jim Meyering  <meyering@lucent.com>
78550
78551         * lib/README: New file.
78552
78553         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78554         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78555
78556 2000-04-17  Jim Meyering  <meyering@lucent.com>
78557
78558         Get it right :-)
78559         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78560         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78561         Suggestion from Akim Demaille.
78562
78563 2000-04-17  Jim Meyering  <meyering@lucent.com>
78564
78565         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78566         the definition of it to rpl_strftime also defined-away the system's
78567         declaration.
78568
78569 2000-04-15  Jim Meyering  <meyering@lucent.com>
78570
78571         Use `C' to denote so-called `contiguous' files, the same way
78572         that tar does.
78573         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78574         (ftypelet): Use S_ISCTG.
78575         From Michael Deutschmann.
78576
78577 2000-04-14  Jim Meyering  <meyering@lucent.com>
78578
78579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78580         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78581         clobbered.
78582
78583 2000-04-14  Jim Meyering  <meyering@lucent.com>
78584
78585         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78586
78587 2000-04-13  Jim Meyering  <meyering@lucent.com>
78588
78589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78590         AH_VERBATIM to insert required #ifndef into config.h.in.
78591         Suggestion from Akim Demaille.
78592
78593 2000-04-12  Jim Meyering  <meyering@lucent.com>
78594
78595         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78596         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78597         Christian Krackowizer.
78598
78599         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78600         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78601         (AC_SYS_LARGEFILE): Require.
78602         (AM_C_PROTOTYPES): Require.
78603
78604 2000-04-08  Jim Meyering  <meyering@lucent.com>
78605
78606         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78607         names don't conflict.  Reported by Eli Zaretskii.
78608
78609 2000-04-07  Jim Meyering  <meyering@lucent.com>
78610
78611         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78612         sys/types.h, to work around system header problems on AIX 3.2.5.
78613         From Bruno Haible.
78614
78615 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78616
78617         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78618         bug.  Deal with the different error behavior of Irix iconv.
78619
78620 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78621
78622         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78623         IRIX if the installer said otherwise.
78624
78625 2000-04-05  Jim Meyering  <meyering@lucent.com>
78626
78627         Portability tweaks required for ultrix4.3.
78628         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78629         (jm_CHECK_DECLS): Add getutent to the list of functions.
78630         (_jm_DECL_HEADERS): Add utmpx.h.
78631         From John David Anglin.
78632
78633         * m4/strftime.m4: Back out the 2000-04-02 change.
78634         Instead of that change, simply undefine putenv in the test program.
78635
78636 2000-04-05  Jim Meyering  <meyering@lucent.com>
78637
78638         Portability tweaks required for ultrix4.3.
78639         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78640         getutent.
78641         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78642         * lib/canon-host.c: Declare strdup.
78643         * lib/path-concat.c: Likewise.
78644         From John David Anglin.
78645
78646 2000-04-04  Jim Meyering  <meyering@lucent.com>
78647
78648         Be more DOS 8.3-friendly.
78649         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78650         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78651         * lib/Makefile.am: Reflect renaming.
78652         Reported by Eli Zaretskii.
78653
78654         Use a temporary file name that won't clash with `charset.alias'
78655         in the DOS 8.3 name space.
78656         * lib/Makefile.am (charset_tmp): Define.
78657         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78658         (uninstall-local): Likewise.
78659         Reported by Eli Zaretskii.
78660
78661 2000-04-03  Jim Meyering  <meyering@lucent.com>
78662
78663         * m4/gettext.m4: Fix typo in comment.
78664
78665         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78666         textutils/configure.in).  Suggestion from Paul Eggert.
78667         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78668
78669 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78670
78671         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78672         variable in the shell rather than using putenv, which isn't
78673         portable.  This avoids the configure-time inter-test dependency
78674         on the potentially-renamed putenv function.
78675
78676 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78677
78678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78679         before checking struct stat.st_blksize, so that
78680         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78681
78682 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78683
78684         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78685         since strftime.c uses HAVE_STRFTIME to decide whether to use
78686         the underlying strftime.
78687
78688 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78689
78690         * lib/time/strftime.c (my_strftime): Make sure we call the system
78691         strftime, not ourselves, when invoking the underlying strftime.
78692
78693 2000-03-24  Jim Meyering  <meyering@lucent.com>
78694
78695         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78696         (charset_alias): Define.
78697         (install-exec-local): Factor out common code.
78698         (uninstall-local): Split lines longer than 80.
78699         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78700         (SUFFIXES): Define.
78701         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78702         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78703
78704 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78705
78706         * lib/config.charset: Output a line containing "Packages using this
78707         file".
78708         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78709         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78710         ref-del.sed): New rules.
78711
78712 2000-03-17  Jim Meyering  <meyering@lucent.com>
78713
78714         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78715         Otherwise, include <strings.h>
78716
78717 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78718
78719         * lib/unicodeio.c (utf8_wctomb): New function.
78720         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78721         format instead of in UCS-4 with platform dependent endianness.
78722
78723 2000-03-10  Jim Meyering  <meyering@lucent.com>
78724
78725         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78726         From Marco Franzen.
78727
78728 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78729
78730         * lib/savedir.c (savedir): Work even if directory size is
78731         negative; this can happen with some screwy NFS configurations.
78732
78733 2000-03-06  Jim Meyering  <meyering@lucent.com>
78734
78735         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78736         if it's NULL (because we ran out of memory).  From Bruno Haible.
78737
78738 2000-03-05  Jim Meyering  <meyering@lucent.com>
78739
78740         * lib/localcharset.c ("path-concat.h"): Include.
78741         (get_charset_aliases): Use path_concat instead of ANSI string
78742         concatenation.
78743
78744         * lib/unicodeio.h (PARAMS): Define.
78745         Use it to guard prototype.
78746
78747 2000-03-04  Jim Meyering  <meyering@lucent.com>
78748
78749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78750         for lib/localcharset.c.
78751
78752 2000-03-04  Jim Meyering  <meyering@lucent.com>
78753
78754         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78755         installing into it.
78756         (uninstall-local): Uncomment this rule so `make distcheck' works
78757         once again.
78758
78759         * lib/unicodeio.c (<errno.h>): Include it.
78760         (errno): Declare if not defined.
78761
78762         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78763
78764         * lib/config.charset: New version, incorporating remarks from a linux
78765         i18n mailing list.  From Bruno Haible.
78766
78767 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78768
78769         * m4/codeset.m4: New file.
78770         * m4/iconv.m4: New file.
78771         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78772
78773 2000-03-03  Jim Meyering  <meyering@lucent.com>
78774
78775         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78776
78777 2000-03-02  Jim Meyering  <meyering@lucent.com>
78778
78779         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78780         the messages come out on separate lines.
78781
78782         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78783         rather than jm_CHECK_DECLARATIONS.
78784         * m4/decl.m4: Remove now-unused file.
78785
78786         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78787         geteuid.
78788
78789 2000-03-02  Jim Meyering  <meyering@lucent.com>
78790
78791         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78792
78793 2000-03-01  Jim Meyering  <meyering@lucent.com>
78794
78795         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78796         * lib/unicodeio.c: Likewise.
78797
78798 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78799
78800         * lib/config.charset: New file.
78801         * lib/localcharset.c: New file.
78802         * lib/unicodeio.h, lib/unicodeio.c: New files.
78803         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78804         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78805         (noinst_HEADERS): Add unicodeio.h.
78806         (all-local, install-exec-local, charset.alias): New targets.
78807
78808 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78809
78810         * lib/quotearg.c (ALERT_CHAR): New macro.
78811         (quotearg_buffer_restyled): Use it.
78812
78813 2000-02-27  Jim Meyering  <meyering@lucent.com>
78814
78815         * m4/check-decl.m4: Add getenv to the list.
78816
78817 2000-02-27  Jim Meyering  <meyering@lucent.com>
78818
78819         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78820         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78821
78822         * lib/backupfile.c: Guard inclusion of stdlib.h with
78823         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78824         Declare malloc if needed.
78825
78826         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78827         `#ifndef HAVE_DECL..'
78828         now that autoconf always defines the HAVE_DECL_ symbols.
78829         * lib/human.c: Likewise.
78830         * lib/same.c: Likewise.
78831         * lib/strtoumax.c: Likewise.
78832
78833         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78834         declaration check was not run.
78835         * lib/hash.c: Likewise.
78836         * lib/human.c: Likewise.
78837         * lib/same.c: Likewise.
78838         * lib/strtoumax.c: Likewise.
78839
78840         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78841         `.', then first look up the entire `.'-containing string as a login
78842         name.
78843
78844 2000-02-23  Jim Meyering  <meyering@lucent.com>
78845
78846         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78847         in place of my hack.
78848
78849 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78850
78851         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78852         (textint): New typedef.
78853         (parser_control): Member year changed from int to textint.
78854         All uses changed.
78855         (YYSTYPE): Removed; replaced by %union with int and textint members.
78856         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78857         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78858         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78859         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78860         (date, number, to_year): Use width of number in digits, not its value,
78861         to determine whether it's a 2-digit year, or a 2-digit time.
78862         (yylex): Store number of digits of numeric tokens.
78863         Reported by John Kendall.
78864
78865         (parser_control): Changed from struct parser_control to typedef (for
78866         consistency).  All uses changed.
78867
78868         (tID): Removed; not used.
78869         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78870
78871 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78872
78873         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78874         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78875
78876 2000-02-12  Jim Meyering  <meyering@lucent.com>
78877
78878         * lib/userspec.c (ISDIGIT): Define it.
78879         (isdigit): Remove definition.
78880         (is_number): Use ISDIGIT, not isdigit.
78881         <libintl.h>: Include.
78882         (_ and N_): Define.
78883         (parse_user_spec): Mark translatable strings.
78884
78885 2000-02-10  Jim Meyering  <meyering@lucent.com>
78886
78887         With these changes, nanosleep.[ch] are finally enough like the other
78888         lib/* replacement files to compile on a few more losing systems.
78889
78890         * lib/nanosleep.h: Don't include config.h.
78891         Remove prototype from declaration of nanosleep.
78892         (PARAMS): Remove now-unneeded definition.
78893         * lib/nanosleep.c: #undef nanosleep.
78894         (rpl_nanosleep): Rename from nanosleep.
78895
78896 2000-02-10  Jim Meyering  <meyering@lucent.com>
78897
78898         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78899         gnu_nanosleep to rpl_nanosleep.
78900
78901 2000-02-09  Jim Meyering  <meyering@lucent.com>
78902
78903         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78904         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78905
78906 2000-02-08  Akim Demaille  <akim@epita.fr>
78907
78908         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78909         `[' and `]' and remove uses of `changequote'.
78910         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78911         (AC_SYS_LARGEFILE): Likewise.
78912         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78913         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78914         of changequote.
78915         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78916         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78917         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78918         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78919
78920 2000-02-05  Jim Meyering  <meyering@lucent.com>
78921
78922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78923         Remove explicit use of AC_HEADER_TIME.  It is required by
78924         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78925         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78926         in autoconf whereby the expansion of the latter ended up preceding
78927         the expansion of its prerequisite, AC_HEADER_TIME.
78928         Reported by Volker Borchert.
78929
78930 2000-02-03  Jim Meyering  <meyering@lucent.com>
78931
78932         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78933
78934 2000-02-03  Jim Meyering  <meyering@lucent.com>
78935
78936         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78937         rather than with `#if HAVE_UTMPNAME'.
78938
78939 2000-02-02  Jim Meyering  <meyering@lucent.com>
78940
78941         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78942         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78943         Reported by Eli Zaretskii.
78944
78945 2000-02-01  Jim Meyering  <meyering@lucent.com>
78946
78947         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78948
78949 2000-01-31  Jim Meyering  <meyering@lucent.com>
78950
78951         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78952         functions.  Add the time.h and sys/time.h headers along with the
78953         AC_REQUIRE'ment of AC_HEADER_TIME.
78954
78955 2000-01-31  Jim Meyering  <meyering@lucent.com>
78956
78957         * lib/nanosleep.h (nanosleep): Guard declaration with
78958         `#if ! HAVE_DECL_NANOSLEEP'.
78959         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78960         the declaration in that vendor's sys/timers.h.
78961         Reported by Christian Krackowizer.
78962
78963         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78964         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78965         (ISPRINT): Likewise.
78966         Reported by Tom Tromey.
78967
78968 2000-01-30  Jim Meyering  <meyering@lucent.com>
78969
78970         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78971
78972         * m4/prereq.m4 (utmp_includes): Define.
78973         Check for ut_user and ut_name members in both struct utmpx
78974         and struct utmp.
78975
78976 2000-01-30  Jim Meyering  <meyering@lucent.com>
78977
78978         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78979         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78980         header files where only utmpx.ut_user is declared.
78981
78982         * lib/readutmp.h (UT_USER): Define.
78983
78984 2000-01-29  Jim Meyering  <meyering@lucent.com>
78985
78986         * m4/lib-check.m4: New file containing library-related checks from
78987         fileutils and sh-utils (textutils had none).
78988
78989 2000-01-28  Jim Meyering  <meyering@lucent.com>
78990
78991         * m4/perl.m4: Change format of warning message to look more like that
78992         from the missing script.  Suggestion from François Pinard.
78993
78994 2000-01-25  Jim Meyering  <meyering@lucent.com>
78995
78996         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78997         well as time.h in the compile check.
78998         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78999         Fix typo in cross-compiling case: s/yes/no/.
79000
79001 2000-01-23  Jim Meyering  <meyering@lucent.com>
79002
79003         * m4/jm-macros.m4: Move df-related tests here from
79004         fileutils/configure.in
79005
79006         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79007         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79008
79009         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79010         s/space/ac_fsusage_space/.
79011         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79012
79013         * m4/ftruncate.m4: New file (derived from part of
79014         fileutils/configure.in).
79015         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79016         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79017
79018         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79019         AC_SUBST these here, rather than just in sh-util/configure.in, so
79020         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79021         all the same.
79022         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79023         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79024         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79025         (AC_SUBST(POW_LIBM)): Likewise.
79026         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79027
79028 2000-01-23  Jim Meyering  <meyering@lucent.com>
79029
79030         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79031         obstack.c.
79032
79033 2000-01-22  Jim Meyering  <meyering@lucent.com>
79034
79035         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79036
79037         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79038
79039         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79040         configure.in
79041         (AC_CHECK_HEADERS): Likewise for sh-utils.
79042         (AC_CHECK_HEADERS): Likewise for textutils.
79043         Merge the three lists of headers.
79044
79045         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79046         from fileutils' configure.in.
79047
79048         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79049         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79050         check-decl.m4.
79051
79052         * m4/check-decl.m4: Use #if rather than #ifdef.
79053         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79054         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79055         (_jm_DECL_HEADERS): Define new function.
79056         (jm_CHECK_DECLARATIONS): Require it.
79057
79058 2000-01-22  Jim Meyering  <meyering@lucent.com>
79059
79060         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79061         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79062         Required for some AIX systems.  Reported by Christian Krackowizer.
79063         [TESTING] (main): New function.
79064
79065         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79066         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79067         letters.
79068
79069         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79070         iswprint.
79071
79072         * lib/strverscmp.c (ISDIGIT): Define.
79073         (strverscmp): Use ISDIGIT, not isdigit.
79074
79075 2000-01-19  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79078         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79079         defines `struct timespec' in <sys/time.h>
79080
79081         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79082         Thanks to Akim for explaining.
79083
79084 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79085
79086         * lib/nanosleep.c (nanosleep):
79087         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79088         POSIX.1 doesn't require SA_INTERRUPT and some systems
79089         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79090         it's been part of POSIX.1 since day 1 (in 1988).
79091
79092 2000-01-17  Jim Meyering  <meyering@lucent.com>
79093
79094         * lib/interlock: Remove unused file.  Reported by François Pinard.
79095
79096 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79097
79098         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79099         alert, backslash, formfeed, and vertical tab unnecessarily in
79100         shell quoting style.
79101
79102 2000-01-16  Jim Meyering  <meyering@lucent.com>
79103
79104         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79105         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79106         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79107         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79108
79109 2000-01-16  Jim Meyering  <meyering@lucent.com>
79110
79111         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79112         because the latter didn't work.
79113
79114 2000-01-15  Jim Meyering  <meyering@lucent.com>
79115
79116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79117         (AC_REPLACE_FUNCS): Add memcpy and memset.
79118         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79119         Add strpbrk.
79120         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79121
79122 2000-01-12  Jim Meyering  <meyering@lucent.com>
79123
79124         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79125         (jm_PREREQ): Use it.
79126         (jm_PREREQ_READUTMP): New macro.
79127         (jm_PREREQ): Use it.
79128
79129 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79130
79131         Quote multibyte characters correctly.
79132         * m4/c-bs-a.m4: New file.
79133         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79134         (jm_PREREQ): Use it.
79135
79136 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79137
79138         * m4/uintmax_t.m4: Port to autoconf 2.13.
79139
79140 2000-01-08  Jim Meyering  <meyering@ascend.com>
79141
79142         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79143         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79144
79145 2000-01-04  Jim Meyering  <meyering@ascend.com>
79146
79147         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79148         jm_STRUCT_DIRENT_D_TYPE.
79149         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79150         jm_STRUCT_DIRENT_D_INO.
79151         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79152         jm_STRUCT_UTIMBUF.
79153         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79154         renamings.
79155         * m4/utime.m4: Likewise.
79156
79157         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79158         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79159
79160 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79161
79162         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79163         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79164
79165 2000-01-02  Jim Meyering  <meyering@ascend.com>
79166
79167         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79168         remember if this is necessary.
79169
79170 1999-12-26  Jim Meyering  <meyering@ascend.com>
79171
79172         * m4/jm-macros.m4: Use it here.
79173         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79174
79175 1999-12-23  Jim Meyering  <meyering@ascend.com>
79176
79177         * m4/jm-macros.m4: Check for clock_gettime (moved from
79178         fileutils/configure.in)
79179         Check for gettimeofday.
79180
79181 1999-12-20  Jim Meyering  <meyering@ascend.com>
79182
79183         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79184         autoconf-2.14a-1999-12-20.
79185
79186 1999-12-19  Jim Meyering  <meyering@ascend.com>
79187
79188         * m4/lstat-slash.m4: New file.
79189         * m4/jm-macros.m4: Use the new macro:
79190         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79191
79192 1999-12-07  Jim Meyering  <meyering@ascend.com>
79193
79194         * m4/perl.m4: Require that File::Compare be available, too.
79195         Too many systems seem to lack it.
79196
79197         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79198         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79199
79200 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79201
79202         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79203         problem with the QNX 4.25 shell, which doesn't propagate exit
79204         status of failed commands inside shell assignments.
79205
79206 1999-11-17  Jim Meyering  <meyering@ascend.com>
79207
79208         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79209
79210 1999-11-07  Jim Meyering  <meyering@ascend.com>
79211
79212         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79213
79214 1999-11-06  Jim Meyering  <meyering@ascend.com>
79215
79216         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79217         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79218
79219 1999-11-05  Jim Meyering  <meyering@ascend.com>
79220
79221         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79222         configure.in of textutils, fileutils, and sh-utils into this one
79223         (shared between those packages) file.
79224         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79225         AC_STRUCT_ST_BLKSIZE.
79226
79227 1999-11-03  Jim Meyering  <meyering@ascend.com>
79228
79229         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79230         of AC_CHECK_TYPE checks includes unistd.h.
79231         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79232         Suggestion from Akim Demaille.
79233
79234 1999-10-30  Jim Meyering  <meyering@ascend.com>
79235
79236         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79237         m4-quoted string.
79238         * m4/ls-mntd-fs.m4: Likewise.
79239         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79240         * m4/jm-winsz1.m4: Likewise.
79241
79242         * m4/const.m4: Remove file, since the fix made it into the experimental
79243         version of autoconf.
79244         * m4/mktime.m4: Likewise.
79245
79246         * m4/check-type.m4: Remove file, now that the latest version of
79247         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79248
79249         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79250         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79251         AC_CHECK_TYPE.
79252
79253 1999-10-04  Jim Meyering  <meyering@ascend.com>
79254
79255         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79256
79257 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79258
79259         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79260         2.95.1 bug with HP-UX 10.20.
79261
79262 1999-09-17  Jim Meyering  <meyering@ascend.com>
79263
79264         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79265         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79266         due to missing strdup (against sh-utils-2.0).
79267
79268 1999-08-29  Jim Meyering  <meyering@ascend.com>
79269
79270         * m4/jm-macros.m4: Require jm_BISON.
79271         * m4/bison.m4: New file.
79272
79273 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79274
79275         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79276         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79277
79278 1999-08-05  Jim Meyering  <meyering@ascend.com>
79279
79280         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79281         to avoid conflicts with `conftest' on 8+3 filesystems.
79282         Suggestion from Eli Zaretskii.
79283
79284 1999-08-04  Jim Meyering  <meyering@ascend.com>
79285
79286         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79287         fileutils and sh-utils (textutils's getline test was inadequate).
79288         (AM_FUNC_GETLINE): Run this test.
79289         (AC_CHECK_FUNCS): Check for getdelim.
79290         Reported by Bob Proulx.
79291
79292 1999-08-02  Jim Meyering  <meyering@ascend.com>
79293
79294         * m4/jm-macros.m4: Add a comment.
79295
79296 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79297
79298         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79299         <inttypes.h> defines strtoumax as a macro (and not as a
79300         function).
79301
79302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79303
79304         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79305         that we can shift, multiply and divide unsigned long long
79306         values; Ultrix cc can't do it.
79307
79308 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79309
79310         * m4/mktime.m4: New file, which is a preview of what should appear
79311         in the next public autoconf release.
79312
79313 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79314
79315         * m4/lfs.m4: Remove this file.
79316         * m4/largefile.m4: New file.  It contains the old contents of
79317         lfs.m4, except that all names with prefix AC_LFS have been
79318         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79319         compatible with future autoconf versions.  Also, some minor m4
79320         quoting problems have been fixed.
79321
79322 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79323
79324         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79325         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79326         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79327         and simplify the shell code.
79328
79329 1999-08-01  Jim Meyering  <meyering@ascend.com>
79330
79331         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79332         m4.
79333
79334 1999-07-20  Jim Meyering  <meyering@ascend.com>
79335
79336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79337
79338 1999-07-15  Jim Meyering  <meyering@ascend.com>
79339
79340         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79341
79342 1999-05-22  Jim Meyering  <meyering@ascend.com>
79343
79344         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79345
79346 1999-05-20  Jim Meyering  <meyering@ascend.com>
79347
79348         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79349         Add a colon after each `then' in case $4 is empty.
79350
79351 1999-05-16  Jim Meyering  <meyering@ascend.com>
79352
79353         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79354
79355 1999-05-10  Jim Meyering  <meyering@ascend.com>
79356
79357         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79358
79359         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79360         AC_FUNC_MKTIME.
79361
79362 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79363
79364         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79365
79366 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79367
79368         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79369         not CPPFLAGS, so that linking works correctly in IRIX.
79370
79371 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79372
79373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79374
79375 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79376
79377         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79378         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79380         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79381         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79382
79383         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79384
79385 1999-04-20  Jim Meyering  <meyering@ascend.com>
79386
79387         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79388         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79389         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79390
79391 1999-04-18  Jim Meyering  <meyering@ascend.com>
79392
79393         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79394         * m4/jm-macros.m4: Use it.
79395
79396 1999-04-06  Jim Meyering  <meyering@ascend.com>
79397
79398         * m4/strftime.m4: Remove test for %f.
79399
79400 1999-03-29  Jim Meyering  <meyering@ascend.com>
79401
79402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79403         superset of the AC_TYPE_* checks in the textutils, fileutils,
79404         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79405         AC_TYPE_PID_T.
79406
79407 1999-03-28  Jim Meyering  <meyering@ascend.com>
79408
79409         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79410         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79411         replaced e.g., in the *.sh files of the sh-utils.
79412
79413 1999-03-20  Jim Meyering  <meyering@ascend.com>
79414
79415         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79416         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79417         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79418
79419 1999-03-19  Jim Meyering  <meyering@ascend.com>
79420
79421         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79422
79423 1999-03-12  Jim Meyering  <meyering@ascend.com>
79424
79425         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79426
79427 1999-03-07  Jim Meyering  <meyering@ascend.com>
79428
79429         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79430         declared.
79431
79432 1999-02-17  Jim Meyering  <meyering@ascend.com>
79433
79434         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79435         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79436
79437 1999-02-07  Jim Meyering  <meyering@ascend.com>
79438
79439         * m4/group-member.m4: New file -- extracted from sh-utils'
79440         configure.in.
79441
79442         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79443         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79444
79445 1999-02-06  Jim Meyering  <meyering@ascend.com>
79446
79447         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79448         * m4/fnmatch.m4: Likewise.
79449         * m4/getgroups.m4: Likewise.
79450         * m4/lstat.m4: Likewise.
79451         * m4/malloc.m4: Likewise.
79452         * m4/putenv.m4: Likewise.
79453         * m4/realloc.m4: Likewise.
79454         * m4/regex.m4: Likewise.
79455         * m4/stat.m4: Likewise.
79456         * m4/strftime.m4: Likewise.
79457         Suggestion from Alain Magloire.
79458
79459         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79460         * m4/fnmatch.m4: Likewise.
79461         * m4/getgroups.m4: Likewise.
79462         * m4/getline.m4: Likewise.
79463         * m4/lstat.m4: Likewise.
79464         * m4/malloc.m4: Likewise.
79465         * m4/memcmp.m4: Likewise.
79466         * m4/putenv.m4: Likewise.
79467         * m4/realloc.m4: Likewise.
79468         * m4/regex.m4: Likewise.
79469         * m4/stat.m4: Likewise.
79470         * m4/strftime.m4: Likewise.
79471         Suggestion from Alain Magloire.
79472
79473         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79474         an argument.
79475
79476         * m4/regex.m4: Add a run-time Test for proper operation of
79477         re_compile_pattern.
79478
79479 1999-01-31  Jim Meyering  <meyering@ascend.com>
79480
79481         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79482
79483 1999-01-30  Jim Meyering  <meyering@ascend.com>
79484
79485         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79486
79487         * m4/jm-mktime.m4: Make this a wrapper around the official
79488         AM_FUNC_MKTIME rather than my private copy, now that the official one
79489         is up to date.
79490         * m4/mktime.m4: Remove file.
79491
79492         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79493         * m4/uptime.m4: Likewise.
79494         * m4/uintmax_t.m4: Likewise.
79495
79496 1999-01-28  Jim Meyering  <meyering@ascend.com>
79497
79498         * m4/jm-macros.m4: Use jm_AFS.
79499         * m4/afs.m4: New file (from fileutils' configure.in).
79500
79501         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79502         * m4/chown.m4: Likewise.
79503         * m4/d-ino.m4: Likewise.
79504         * m4/d-type.m4: Likewise.
79505         * m4/fnmatch.m4: Likewise.
79506         * m4/getgroups.m4: Likewise.
79507         * m4/gettext.m4: Likewise.
79508         * m4/jm-mktime.m4: Likewise.
79509         * m4/jm-winsz2.m4: Likewise.
79510         * m4/lcmessage.m4: Likewise.
79511         * m4/ls-mntd-fs.m4: Likewise.
79512         * m4/malloc.m4: Likewise.
79513         * m4/memcmp.m4: Likewise.
79514         * m4/putenv.m4: Likewise.
79515         * m4/realloc.m4: Likewise.
79516         * m4/st_mtim.m4: Likewise.
79517         * m4/strftime.m4: Likewise.
79518
79519 1999-01-16  Jim Meyering  <meyering@ascend.com>
79520
79521         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79522         (ARGMATCH_DIE_DECL): Define.
79523
79524 1999-01-12  Jim Meyering  <meyering@ascend.com>
79525
79526         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79527         Reported by Lars Hecking.
79528
79529 1999-01-10  Jim Meyering  <meyering@ascend.com>
79530
79531         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79532         gross kludge.
79533         * m4/inttypes_h.m4: Likewise.
79534         * m4/lstat.m4: Likewise.
79535         * m4/malloc.m4: Likewise.
79536         * m4/readdir.m4: Likewise.
79537         * m4/realloc.m4: Likewise.
79538         * m4/st_dm_mode.m4: Likewise.
79539         * m4/stat.m4: Likewise.
79540         * m4/utimbuf.m4: Likewise.
79541         * m4/utimes.m4: Likewise.
79542
79543         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79544         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79545         comments in config.h.in are meaningful.
79546
79547         * m4/jm-macros.m4: Require autoconf-2.13 here.
79548
79549         * m4/regex.m4: By default, don't use the included regex.c on systems
79550         with glibc 2.  Suggestion from Uli Drepper.
79551
79552 1999-01-02  Jim Meyering  <meyering@ascend.com>
79553
79554         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79555
79556 1998-12-18  Jim Meyering  <meyering@ascend.com>
79557
79558         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79559         Based on a suggestion from Lars Hecking.
79560
79561 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79562
79563         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79564
79565 1998-11-16  Jim Meyering  <meyering@ascend.com>
79566
79567         * m4/lfs.m4: Double-quote the `uname...` expression.
79568
79569 1998-11-14  Jim Meyering  <meyering@ascend.com>
79570
79571         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79572         * m4/stat.m4: Likewise.
79573
79574 1998-11-03  Jim Meyering  <meyering@ascend.com>
79575
79576         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79577         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79578
79579 1998-10-18  Jim Meyering  <meyering@ascend.com>
79580
79581         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79582
79583 1998-10-17  Jim Meyering  <meyering@ascend.com>
79584
79585         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79586         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79587         calls for those previously hard-coded headers.  Instead, take a new
79588         parameter.
79589         (jm_CHECK_DECLARATIONS): Reflect interface change.
79590         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79591         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79592
79593         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79594
79595 1998-10-14  Jim Meyering  <meyering@ascend.com>
79596
79597         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79598         instead of "TZ=America/Vancouver".  From Paul Eggert.
79599
79600 1998-10-11  Jim Meyering  <meyering@ascend.com>
79601
79602         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79603         This adds a test for a recently added compatibility fix for mktime.c.
79604         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79605
79606 1998-09-27  Jim Meyering  <meyering@ascend.com>
79607
79608         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79609
79610         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79611         ../configure.in, including a change from Gordon Matzigkeit to allow
79612         cross-compiling for the Hurd.
79613
79614         * m4/glibc.m4: New file/macro to test for the GNU C Library
79615         versions 1 and 2.  From Gordon Matzigkeit.
79616         Indent.
79617
79618 1998-09-21  Jim Meyering  <meyering@ascend.com>
79619
79620         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79621
79622 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79623
79624         Port nanosecond-resolution times to UnixWare 2.1.2 and
79625         pedantic Solaris 2.6.
79626
79627         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79628         AC_STRUCT_ST_MTIM.
79629         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79630         Generate name of ns member, instead of just 1 or undef.
79631         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79632
79633 1998-08-15  Jim Meyering  <meyering@ascend.com>
79634
79635         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79636         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79637         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79638         instead of jm_TYPE_SSIZE_T.
79639
79640 1998-08-12  Jim Meyering  <meyering@ascend.com>
79641
79642         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79643
79644 1998-08-02  Jim Meyering  <meyering@ascend.com>
79645
79646         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79647         in acconfig.h manually.
79648
79649 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79650
79651         * m4/st_mtim.m4: New file.
79652
79653 1998-07-28  Jim Meyering  <meyering@ascend.com>
79654
79655         * m4/utimes.m4: Undef stat.
79656
79657 1998-07-25  Jim Meyering  <meyering@ascend.com>
79658
79659         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79660         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79661
79662 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79663
79664         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79665         uid and gid actually remain unchanged.
79666
79667 1998-07-07  Jim Meyering  <meyering@ascend.com>
79668
79669         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79670
79671 1998-07-04  Jim Meyering  <meyering@ascend.com>
79672
79673         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79674         to prove that this macro can be used in packages without regex.c.
79675
79676 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79677
79678         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79679         is to be used.
79680
79681 1998-07-03  Jim Meyering  <meyering@ascend.com>
79682
79683         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79684
79685         * m4/gettext.m4: New file -- from gettext-0.10.35.
79686         * m4/lcmessage.m4: Likewise.
79687         * m4/progtest.m4: Likewise.
79688
79689         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79690         * m4/jm-macros.m4: Require the new macro.
79691
79692 1998-06-29  Jim Meyering  <meyering@ascend.com>
79693
79694         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79695         for the definition of NGROUPS (used in a system header included
79696         by sys/mount.h).
79697
79698 1998-06-28  Jim Meyering  <meyering@ascend.com>
79699
79700         * m4/ls-mntd-fs.m4: New file.
79701         * m4/fstypename.m4: New file.
79702
79703         * m4/jm-macros.m4: Require the new macro.
79704         * m4/jm-glibc-io.m4: New file.
79705
79706 1998-05-19  Jim Meyering  <meyering@ascend.com>
79707
79708         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79709         * m4/lchown.m4: New file.
79710
79711         * m4/Makefile.am.in: New file.
79712         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79713
79714 1998-05-14  Jim Meyering  <meyering@ascend.com>
79715
79716         * m4/Makefile.am (EXTRA_DIST): Add them.
79717         * m4/jm-macros.m4: New file.
79718         * m4/utimbuf.m4: New file.
79719
79720 1998-05-12  Jim Meyering  <meyering@ascend.com>
79721
79722         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79723
79724 1998-05-11  Jim Meyering  <meyering@ascend.com>
79725
79726         * m4/isc-posix.m4: New file.
79727
79728 1998-05-10  Jim Meyering  <meyering@ascend.com>
79729
79730         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79731
79732 1998-05-09  Jim Meyering  <meyering@ascend.com>
79733
79734         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79735         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79736         with automake.
79737
79738         * m4/ssize_t.m4: New file.
79739         * m4/mktime.m4: Remove file -- the new automake has this now.
79740
79741 1998-04-26  Jim Meyering  <meyering@ascend.com>
79742
79743         * m4/assert.m4: New file.
79744         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79745
79746 1998-04-05  Jim Meyering  <meyering@ascend.com>
79747
79748         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79749         (jm_PREREQ): Use it here.
79750
79751 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79752
79753         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79754         in acconfig.h.
79755
79756 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79757
79758         * m4/prereq.m4: New file.
79759         * m4/error.m4: New file.
79760         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79761
79762 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79763
79764         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79765         cache-check for the same variable -- that defeated the purpose of
79766         the test; the test program was never run.  This was a problem only
79767         on systems with losing getline functions -- HP-UX 10.20 is one.
79768         Reported by Bjorn Helgaas.
79769
79770 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79771
79772         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79773
79774 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79775
79776         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79777
79778         * m4/const.m4: New file.  Use an initializer in this declaration
79779         typedef int charset[2]; const charset x;
79780         Reported by Bob Glickstein.
79781
79782 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79783
79784         * m4/chown.m4: Fix reversed types on -1 args to chown.
79785         From Kaveh Ghazi.
79786
79787 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79788
79789         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79790         Add lseek and memchr.
79791
79792         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79793         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79794         have a 20-character limit on names.
79795
79796 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79797
79798         * m4/inttypes_h.m4: New file.
79799         * m4/uintmax_t.m4: New file.
79800         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79801
79802
79803         -----
79804
79805         Local Variables:
79806         coding: utf-8
79807         End:
79808
79809         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79810
79811         Copying and distribution of this file, with or without
79812         modification, are permitted provided the copyright notice
79813         and this notice are preserved.