gnulib-tool: fix portability problem with MacOS sed
[gnulib.git] / ChangeLog
1 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2
3         gnulib-tool: fix portability problem with MacOS sed
4         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5         before the "}".  Problem reported by Leo in
6         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7         * gnulib-tool (sed_dependencies_without_conditions):
8
9 2011-05-23  Bruno Haible  <bruno@clisp.org>
10
11         hash: Simplify autoconf macro.
12         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13
14 2011-05-23  Bruno Haible  <bruno@clisp.org>
15
16         getugroups: Fix module description.
17         * modules/getugroups (Include): Set to "getugroups.h".
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         linkat: Simplify autoconf macro.
22         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
23
24 2011-05-23  Bruno Haible  <bruno@clisp.org>
25             Eric Blake  <eblake@redhat.com>
26
27         linkat, renameat: Update dependencies.
28         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
29         * modules/linkat (Depends-on): Likewise. Remove also readlink,
30         symlinkat.
31
32 2011-05-23  Jim Meyering  <meyering@redhat.com>
33
34         maint.mk: more tight_scope improvements
35         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
36         (_gl_TS_headers): Define only in if-0'd block.
37         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
38         sometimes we must *not* use it.  Adjust uses accordingly.
39         (sc_tight_scope): Use much simpler grep-based test to determine
40         whether we skip this rule.
41
42         maint.mk: generalize/improve the tight-scope rule
43         * top/maint.mk: Emit a warning when the test is skipped.
44         (_gl_TS_dir): Add $(srcdir)/ prefix.
45         (_gl_TS_function_match): Simplify, rather than trying
46         to enumerate common types.  Otherwise, it would fail to match an
47         "extern unsigned char const *" declaration in idutils.
48         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
49         a way to support use of that type of macro.
50         (_gl_TS_var_match): Simplify regexp.
51         (_gl_TS_obj_files): New configurable variable.
52         (_gl_TS_headers): Likewise.
53
54 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55
56         verify: fix bug when gnulib <assert.h> is also included
57         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
58         is defined, not if _GL_STATIC_ASSERT_H is not defined.
59         Perhaps there's a better way, but this fixes the immediate problem.
60         Problem reported by Bruno Haible in
61         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
62
63 2011-05-22  Bruno Haible  <bruno@clisp.org>
64
65         xgetcwd: Simplify autoconf macro.
66         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
67
68 2011-05-22  Bruno Haible  <bruno@clisp.org>
69
70         New module 'mktime-internal'.
71         * modules/mktime-internal: New file.
72         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
73         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
74         mktime_internal as a C macro if libc has __mktime_internal.
75         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
76         conditions.
77         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
78
79 2011-05-22  Bruno Haible  <bruno@clisp.org>
80
81         timegm: Correct mktime replacement statements.
82         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
83         defining mktime as a C macro. This completes a 2009-07-28 commit.
84
85 2011-05-22  Bruno Haible  <bruno@clisp.org>
86
87         timegm: Simplify autoconf macro.
88         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
89
90 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
91
92         clock-time: change to LGPLv2+.
93         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
94         BSD-like but we have no mark for that; this is good enough for now.
95
96 2011-05-21  Bruno Haible  <bruno@clisp.org>
97
98         strerror_r: Fix comments.
99         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
100
101 2011-05-21  Bruno Haible  <bruno@clisp.org>
102
103         relocatable-prog-wrapper: Fix possible link error.
104         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
105         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
106         (gl_FUNC_SETENV): ... to here.
107         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
108         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
109
110 2011-05-21  Bruno Haible  <bruno@clisp.org>
111
112         relocatable-prog-wrapper: Assume strerror() exists.
113         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
114         m4/strerror.m4.
115         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
116         * lib/relocwrapper.c: Remove mention of strerror module.
117         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
118         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
119         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
120         C macro.
121
122 2011-05-21  Bruno Haible  <bruno@clisp.org>
123
124         select: Simplify replacement idiom.
125         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
126         Win32 platforms.
127         * lib/sys_select.in.h (select): Simplify accordingly.
128         * modules/select (Depends-on): Likewise.
129
130 2011-05-21  Bruno Haible  <bruno@clisp.org>
131
132         mkdir-p: Simplify autoconf macro.
133         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
134         gl_FUNC_LCHOWN.
135
136 2011-05-21  Eric Blake  <eblake@redhat.com>
137
138         strerror_r: avoid clobbering strerror on cygwin
139         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
140         fall back instead to sys_errlist.
141         * modules/strerror (configure.ac): Add witness.
142         * tests/test-strerror_r.c (main): Enhance test.
143         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
144         * tests/test-perror2.c (main): Free memory before exit.
145
146 2011-05-21  Bruno Haible  <bruno@clisp.org>
147
148         mkdtemp: Use gnulib naming conventions.
149         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
150         * modules/mkdtemp (configure.ac): Update.
151
152 2011-05-20  Eric Blake  <eblake@redhat.com>
153
154         strerror_r: avoid corrupting errno on Solaris
155         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
156         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
157
158         strerror_r: avoid compiler warning
159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
160
161         strerror_r: simplify AIX code
162         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
163
164         test-perror: avoid spurious failure on FreeBSD
165         * modules/perror-tests (Depends-on): Add strerror, now that
166         strerror_r no longer pulls it in.
167
168 2011-05-20  Bruno Haible  <bruno@clisp.org>
169
170         strerror_r-posix: Remove unused dependencies.
171         * modules/strerror_r-posix (Depends-on): Remove strerror.
172         Reported by Eric Blake.
173
174 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
175
176         intprops: remove assumption about A|B representation
177         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
178         is a valid integer if both A and B are.  Although this is true for
179         all known practical hosts, the C standard doesn't guarantee it,
180         and the code need not assume it.  Also, this change may work around
181         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
183
184 2011-05-20  Eric Blake  <eblake@redhat.com>
185
186         perror: work around FreeBSD bug
187         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
188         is broken.  Move AC_LIBOBJ...
189         * modules/perror (configure.ac): Here.
190         * doc/posix-functions/perror.texi (perror): Document this.
191         * tests/test-perror2.c (main): Enhance test.
192
193         test-perror: check for strerror interactions
194         * tests/macros.h (STREQ): Add macro.
195         * modules/perror-tests (Files): Add second test.
196         * tests/test-perror2.c (main): New file.
197         * doc/posix-functions/perror.texi (perror): Document glibc bug.
198
199         test-perror: rewrite to use init script
200         * modules/perror-tests (Files): Add init.sh.
201         * tests/test-perror.sh: Use temporary directory.
202
203 2011-05-20  Jim Meyering  <meyering@redhat.com>
204
205         maint: replace misused "a" with "an"
206         * doc/intprops.texi: "a integer"
207         * doc/regex.texi: "a explanation"
208         * lib/alignof.h: "a object"
209         * lib/argmatch.h: "a explanation"
210         * lib/argp-help.c: "a option" and "a OPTION_DOC"
211         * lib/stdint.in.h: "a integer"
212         * lib/userspec.c: "a owner"
213         * doc/gnulib.texi: Fix "a idea", and reword.
214
215 2011-05-19  Jim Meyering  <meyering@redhat.com>
216
217         maint: correct misuse of "a" and "an"
218         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
219         * lib/argp-help.c: "an docum...": s/an/a/
220         * lib/argp-parse.c: "An vector": s/An/A/
221         * lib/execute.c: "an native": s/an/a/
222         * lib/spawn-pipe.c: Likewise.
223         * lib/gc.h: "an Gc_rc": s/an/a/
224         * lib/unigbrk.in.h: "an grapheme": s/an/a/
225         * lib/fts.c: "an stat.st_dev": s/an/a/
226
227 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
228
229         intprops-tests: work around HP-UX 11.23 cc bug with constants
230         * tests/test-intprops.c (VERIFY): New macro.
231         (main): Use it, instead of verify, to work around the compiler bug; see
232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
233
234         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
235         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
236         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
237         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
238         (_GL_REMAINDER_OVERFLOW): Use it.
239
240         intprops-tests: revert unsigned part of previous change
241         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
242         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
243         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
245
246 2011-05-19  Bruno Haible  <bruno@clisp.org>
247
248         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
249         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
250         strerror_r() returned without filling the buffer.
251         Reported by Eric Blake.
252
253 2011-05-19  Eric Blake  <eblake@redhat.com>
254
255         strerror_r: guarantee unchanged errno
256         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
257         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
258         failure.
259         * tests/test-strerror_r.c (main): Enhance test.
260
261 2011-05-19  Bruno Haible  <bruno@clisp.org>
262
263         strerror_r: Reorder #if blocks.
264         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
265         for consistency with the previous commit.
266
267 2011-05-19  Bruno Haible  <bruno@clisp.org>
268
269         perror: Avoid clobbering the strerror buffer when possible.
270         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
271         * lib/strerror.c: Include it.
272         * modules/strerror (Files): Add lib/strerror-impl.h.
273         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
274         (my_strerror): New function, defined through lib/strerror-impl.h.
275         (perror): Use it instead of strerror.
276         * modules/perror (Files): Add lib/strerror-impl.h.
277         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
278
279 2011-05-19  Eric Blake  <eblake@redhat.com>
280
281         strerror_r: fix on newer cygwin
282         * lib/strerror_r.c (strerror_r): Cygwin now has
283         __xpg_strerror_r, use it.
284
285 2011-05-19  Bruno Haible  <bruno@clisp.org>
286
287         strerror_r: Avoid clobbering the strerror buffer when possible.
288         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
289         (sys_nerr, sys_errlist): New declarations.
290         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
291         HP-UX, native Win32, IRIX, and 32-bit Solaris.
292         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
293
294 2011-05-19  Bruno Haible  <bruno@clisp.org>
295
296         strerror_r: Fix test failure on mingw.
297         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
298         EXTEND_STRERROR_R.
299         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
300         macros from errno.in.h instead.
301
302 2011-05-19  Eric Blake  <eblake@redhat.com>
303
304         strerror: relax test for Solaris
305         * tests/test-strerror.c (main): Permit Solaris behavior.
306         * tests/test-strerror_r.c (main): Likewise.
307
308         strerror: enforce POSIX ruling on strerror(0)
309         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
311         * lib/strerror_r.c (rpl_strerror_r): Work around it.
312         * doc/posix-functions/strerror.texi (strerror): Document it.
313         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
314         * tests/test-strerror.c (main): Strengthen test.
315         * tests/test-strerror_r.c (main): Likewise.
316
317 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
318
319         intprop-tests: port to older and more-pedantic compilers
320         * modules/intprops-tests (Files): Add tests/macros.h.
321         * tests/test-intprops.c: Include macros.h.
322         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
323         it's no longer documented to expand to an integer constant expression.
324         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
325         argument is floating point, as it's no longer documented to expand
326         to an integer constant expression in that case.
327         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
328         compiler bugs reported by Bruno Haible.  See
329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
330         (U0, U1): New constants, to work around the same bugs.  Also,
331         in tests, use e.g., "(unsigned int) 39" rather than "39u".
332
333         intprops: work around C compiler bugs
334         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
335         bug in Sun C 5.11 2010/08/13 and other compilers; see
336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
337
338         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
339         * doc/intprops.texi (Integer Type Determination): Fix
340         documentation for TYPE_IS_INTEGER: it returns an constant
341         expression, not an integer constant expression.  Fix doc for
342         TYPE_SIGNED: it returns an integer constant expression only if its
343         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
344         hardly worth documented that way....)
345
346 2011-05-18  Bruno Haible  <bruno@clisp.org>
347
348         strerror_r: Avoid clobbering the strerror buffer when possible.
349         * lib/strerror_r.c (strerror_r): Merge the three implementations.
350         Handle gnulib defined errno values here. When strerror() returns NULL
351         or an empty string, return EINVAL.
352         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
353         gnulib defined errno values here.
354         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
355
356 2011-05-18  Eric Blake  <eblake@redhat.com>
357
358         fnmatch: avoid compiler warning
359         * lib/fnmatch_loop.c (FCT): Use correct type.
360         Reported by Matthias Bolte.
361
362 2011-05-13  Jim Meyering  <meyering@redhat.com>
363
364         maint.mk: three new prohibit_<HDR>_without_use rules
365         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
366         (sc_prohibit_stdio-safer_without_use): Likewise.
367         (sc_prohibit_xfreopen_without_use): Likewise.
368
369 2011-05-17  Jim Meyering  <meyering@redhat.com>
370
371         announce-gen: fail if the NEWS delta is empty
372         If there's nothing noteworthy in NEWS, then either you forgot
373         or you shouldn't be releasing.
374         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
375
376 2011-05-17  Pádraig Brady <P@draigBrady.com>
377
378         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
379         reserved symbols starting with double underscore from the check.
380
381 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
382
383         intprops: add doc
384         * doc/intprops.texi: New file, documenting intprops.
385         * doc/gnulib.texi (Particular Modules): Include it.
386
387         verify: add doc to gnulib manual and fix example
388         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
389         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
390         (Compile-time Assertions): Fix example so it can't overflow.
391
392 2011-05-17  Jim Meyering  <meyering@redhat.com>
393
394         warnings.m4: don't usurp save_CPPFLAGS variable name
395         * m4/warnings.m4: Prefix local temporary variable name with gl_.
396
397         doc: fix typo
398         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
399
400 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
401             Bruno Haible  <bruno@clisp.org>
402
403         doc: Tweak recent change.
404         * README (Portability guidelines): Tweak new text.
405         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
406         Interix 6.1.
407
408 2011-05-16  Eric Blake  <eblake@redhat.com>
409
410         inttypes: avoid autoconf warning
411         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
412         * m4/stdint.m4 (gl_STDINT_H): Likewise.
413
414 2011-05-16  Sam Steingold <sds@gnu.org>
415         and Eric Blake  <eblake@redhat.com>
416
417         vc-list-files: accept multiple directory operands
418         * build-aux/vc-list-files: Iterate over all remaining operands.
419
420 2011-05-16  Bruno Haible  <bruno@clisp.org>
421
422         Fix confusion regarding deprecated modules.
423         * modules/calloc (Status, Notice): Mark module as deprecated, not
424         obsolete.
425         * modules/fnmatch-posix (Status, Notice): Likewise.
426         * modules/getdate (Status, Notice): Likewise.
427         * modules/getopt (Status, Notice): Likewise.
428         * modules/malloc (Status, Notice): Likewise.
429         * modules/pipe (Status, Notice): Likewise.
430         * modules/realloc (Status, Notice): Likewise.
431         * modules/rename-dest-slash (Status, Notice): Likewise.
432         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
433         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
434         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
435         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
436         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
437
438 2011-05-16  Bruno Haible  <bruno@clisp.org>
439
440         doc: List the target platforms.
441         * doc/gnulib-intro.texi (Target Platforms): New section.
442         * doc/gnulib.texi (Introduction): Update menu.
443         * README (Portability guidelines): Refer to the new section. Update
444         statement about oldest supported environment. Remove rationale why
445         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
446         unportable C89 function.
447         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
448         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
449
450 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
451
452         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
453
454 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
455
456         intprops-tests: new module
457         * modules/intprops-tests, tests/test-intprops.c: New files.
458
459         intprops: add safe, portable integer overflow checking
460         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
461         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
462         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
463         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
464         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
465         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
466         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
467         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
468         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
469         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
470         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
471
472 2011-05-12  James Youngman  <jay@gnu.org>
473
474         Add a test for glibc's Bugzilla bug #12378.
475         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
476         doesn't allow the literal matching of a lone "[" (which is
477         required by POSIX).
478         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
479
480 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
481
482         Sync glibc change fixing Bugzilla bug #12378.
483         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
484         beginning and fall back to matching as normal character if the
485         string ends before the matching ']' is found.  This is what POSIX
486         requires.
487
488 2011-05-13  Eric Blake  <eblake@redhat.com>
489
490         getcwd-lgpl: relax test for FreeBSD
491         * doc/posix-functions/getcwd.texi (getcwd): Document portability
492         issue.
493         * tests/test-getcwd-lgpl.c (main): Relax test.
494         Reported by Matthias Bolte.
495
496 2011-05-11  Eric Blake  <eblake@redhat.com>
497
498         test-fflush: silence compiler warning
499         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
500
501 2011-05-11  Bruno Haible  <bruno@clisp.org>
502
503         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
504         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
505         * modules/canonicalize (Depends-on): Add 'nocrash'.
506         * modules/canonicalize-lgpl (Depends-on): Likewise.
507         * doc/posix-functions/realpath.texi: Update platforms list.
508         Reported by Ryan Schmidt <ryandesign@macports.org>.
509
510 2011-05-11  Bruno Haible  <bruno@clisp.org>
511
512         group-member: Declare function in <unistd.h>.
513         * lib/unistd.in.h (group_member): New declaration.
514         * lib/group-member.h: Remove file.
515         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
516         * tests/test-unistd-c++.cc: Check signature of group_member.
517         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
518         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
519         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
520         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
521         HAVE_GROUP_MEMBER.
522         * modules/group-member (Files): Remove lib/group-member.h.
523         (Depends-on): Add unistd. Specify conditions.
524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
525         (Include): Change to <unistd.h>.
526         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
527         HAVE_GROUP_MEMBER.
528         * NEWS: Mention the change.
529         * lib/euidaccess.c: Don't include group-member.h.
530
531 2011-05-11  Bruno Haible  <bruno@clisp.org>
532
533         group-member: Document module.
534         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
535         module.
536
537 2011-05-11  Bruno Haible  <bruno@clisp.org>
538
539         fclose: Fix mistake earlier today.
540         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
541
542 2011-05-11  Eric Blake  <eblake@redhat.com>
543
544         fclose: preserve fflush errors
545         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
546         Reported by Jim Meyering.
547
548         bootstrap: support a prereq of 'rpcgen -' on RHEL5
549         * build-aux/bootstrap (check_versions): When no specific version
550         is required, merely check that the app produces an exit status
551         that indicates its existence.
552
553         maint.mk: drop redundant check
554         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
555         the same but better.
556
557 2011-05-11  Bruno Haible  <bruno@clisp.org>
558
559         fclose: Fix possible link error.
560         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
561         unregister_shadow_fd. Improve comments.
562         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
563         Eric Blake.
564
565 2011-05-11  Jim Meyering  <meyering@redhat.com>
566
567         maint.mk: improve "can not" detection and generalize rule name
568         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
569         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
570         Use the same technique as in sc_prohibit_doubled_word, so that
571         we recognize "can not" also when the words are separated by a newline.
572         Suggested by Eric Blake.
573         (perl_filename_lineno_text_): Define.  Factored out of...
574         (prohibit_doubled_word_): ...here.  Use the new definition.
575         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
576         (prohibit_undesirable_word_seq_RE_): New overridable variable.
577         (ignore_undesirable_word_sequence_RE_): New overridable variable.
578
579 2011-05-10  Eric Blake  <eblake@redhat.com>
580
581         fclose: avoid double close race when possible
582         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
583         all but WINDOWS_SOCKETS.
584
585 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
586
587         openat: correct new comment
588         * lib/openat-proc.c (openat_proc_name): Correct the comment.
589
590 2011-05-10  Jim Meyering  <meyering@redhat.com>
591
592         openat: add comments
593         * lib/openat-proc.c (openat_proc_name): Add comments,
594         mostly from Eric Blake.
595
596 2011-05-09  Eric Blake  <eblake@redhat.com>
597
598         openat: reduce syscalls in first probe of /proc
599         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
600         be a directory.  Simplify the probe for .. bugs.
601         * modules/openat (Depends-on): Drop same-inode.
602         Reported by Bastien ROUCARIES.
603
604 2011-05-09  Jim Meyering  <meyering@redhat.com>
605
606         maint.mk: change semantics/name of tight_scope variables
607         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
608         Rename variables to align with semantics that make them more useful.
609
610         maint.mk: tweak new rule's name not to impinge
611         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
612         (sc_tight_scope): Use new rule name rather than $@-0.
613
614         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
615         * top/maint.mk (sc_tight_scope): New rule.
616         (sc_tight_scope-0): New rule, ifdef'd out.
617         (_gl_TS_dir): Default.
618         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
619         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
620
621 2011-05-09  Simon Josefsson  <simon@josefsson.org>
622
623         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
624         Haible <bruno@clisp.org>.
625
626 2011-05-08  Bruno Haible  <bruno@clisp.org>
627
628         Comments.
629         * m4/isnanf.m4: Add comment.
630         * m4/isnanl.m4: Likewise.
631
632 2011-05-08  Bruno Haible  <bruno@clisp.org>
633
634         glob: Remove obsolete macro.
635         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
636
637 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
638
639         intprops: Sun C 5.11 supports __typeof__
640         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
641         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
642         which is new.
643         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
644
645         intprops: switch to usual gnulib indenting and naming
646         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
647         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
648
649         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
650
651 2011-05-08  Jim Meyering  <meyering@redhat.com>
652
653         maint.mk: suppress "Entering/Leaving directory" diag in announcement
654         * top/maint.mk (release-prep): Use make's --no-print-directory
655         option when generating the announcement.  This eliminates the
656         pesky "make[2]: Entering/Leaving directory" diagnostics in the
657         generated announcement template.
658
659 2011-05-08  Bruno Haible  <bruno@clisp.org>
660
661         tzset: Fix gettimeofday wrapper on Solaris 2.6.
662         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
663         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
664
665 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
666
667         ignore-value, verify: Omit include files from lib_SOURCES.
668         * modules/ignore-value, modules/verify (Makefile.am):
669         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
670         that leads Automake to duplicate use of am__objects_... variables
671         in Makefile.in.  See
672         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
673
674 2011-05-07  Bruno Haible  <bruno@clisp.org>
675
676         fclose: Simplify autoconf macro.
677         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
678         defined.
679
680 2011-05-07  Bruno Haible  <bruno@clisp.org>
681
682         canonicalize-lgpl: Fix autoconf macro ordering bug.
683         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
684         gl_STDLIB_H_DEFAULTS.
685
686 2011-05-06  Eric Blake  <eblake@redhat.com>
687
688         maintainer-makefile: make sc_po_check easier to tune
689         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
690         to probe for strings, such as an alternate location for gnulib.
691
692         fclose: guarantee behavior on seekable stdin
693         * modules/fclose (Depends-on): Add fflush.
694         * doc/posix-functions/fclose.texi (fclose): Document this.
695         * tests/test-fclose.c (main): Make test for this unconditional.
696
697 2011-05-06  Bruno Haible  <bruno@clisp.org>
698
699         fflush, fpurge: Relicense under LGPLv2+.
700         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
701         * modules/fpurge (License): Likewise.
702         With permission from Eric Blake and Jim Meyering.
703         Suggested by Eric Blake.
704
705 2011-05-06  Karl Berry  <karl@gnu.org>
706
707         * MODULES.html.sh (func_all_modules): remove exit.
708
709 2011-05-06  Jim Meyering  <meyering@redhat.com>
710
711         maint.mk: use info-gnu@ as the default only for a stable release
712         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
713         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
714         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
715         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
716
717 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
718
719         assert-h: new module, which supports C1X-style static_assert
720         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
721         * lib/verify.h: Revamp so that this can be copied into assert.h,
722         while retaining the ability to use it standalone as before.
723         Rename private identifiers so as not to encroach on the
724         standard C namespace, since this is now used by assert.h.
725         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
726         the old verify_true.
727         (_GL_VERIFY_TRUE): New macro, with much of the contents of
728         the old verify_true.  Use _GL_VERIFY_TYPE.
729         (_GL_VERIFY): New macro, with much of the contents of the old verify.
730         (static_assert): New macro, if _GL_STATIC_ASSERT_H
731         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
732         defined when this file is copied into the replacement assert.h.
733         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
734         and _Static_assert is not built in.
735         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
736         defined, and use the new macros mentioned above.
737         * doc/posix-headers/assert.texi: Document this.
738
739 2011-05-05  Bruno Haible  <bruno@clisp.org>
740
741         fclose, fflush: Respect rules for use of AC_LIBOBJ.
742         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
743         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
744         gl_REPLACE_FCLOSE here.
745         * modules/fflush (Depends-on): Remove fclose.
746         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
747         combination with module 'fclose'.
748
749 2011-05-05  Bruno Haible  <bruno@clisp.org>
750
751         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
752         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
753         gl_FUNC_FFLUSH.
754         (gl_FUNC_FFLUSH): Use it.
755         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
757         gl_REPLACE_FSEEKO here.
758
759 2011-05-05  Bruno Haible  <bruno@clisp.org>
760
761         tzset: Relicense under LGPL.
762         * modules/tzset (License): Change to LGPL.
763         No agreement needed; it's a no-op.
764
765         strtoimax, strtoumax: Relicense under LGPL.
766         * modules/strtoimax (License): Change to LGPL.
767         * modules/strtoumax (License): Likewise.
768         With permission from Jim Meyering, Paul Eggert:
769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
771
772         getgroups: Relicense under LGPL.
773         * modules/getgroups (License): Change to LGPL.
774         With permission from Jim Meyering, Paul Eggert, Eric Blake:
775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
778
779         nanosleep: Relicense under LGPL.
780         * modules/nanosleep (License): Change to LGPL.
781         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
782         Haible:
783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
787
788         futimens: Relicense under LGPL.
789         * modules/futimens (License): Change to LGPL.
790         With permission from Eric Blake:
791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
792
793         fflush: Relicense under LGPL.
794         * modules/fflush (License): Change to LGPL.
795         With permission from Eric Blake, Bruno Haible, Jim Meyering:
796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
799
800         tmpfile: Relicense under LGPL.
801         * modules/tmpfile (License): Change to LGPL.
802         With permission from Ben Pfaff:
803         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
804
805         isfinite: Relicense under LGPL.
806         * modules/isfinite (License): Change to LGPL.
807         With permission from Ben Pfaff, Bruno Haible:
808         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
810
811         acosl..tanl: Relicense under LGPL.
812         * modules/acosl (License): Change to LGPL.
813         * modules/asinl (License): Likewise.
814         * modules/atanl (License): Likewise.
815         * modules/cosl (License): Likewise.
816         * modules/expl (License): Likewise.
817         * modules/logl (License): Likewise.
818         * modules/sinl (License): Likewise.
819         * modules/sqrtl (License): Likewise.
820         * modules/tanl (License): Likewise.
821         Source code originally from glibc and Paolo Bonzini. Agreements:
822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
824
825 2011-05-05  Bruno Haible  <bruno@clisp.org>
826
827         signal: Define sighandler_t.
828         * lib/signal.in.h (sighandler_t): New type.
829         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
830         whether sighandler_t is defined.
831         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
832         * modules/signal (Depends-on): Add extensions.
833         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
834         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
835         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
836
837 2011-05-05  Eric Blake  <eblake@redhat.com>
838
839         maint: remove useless REPLACE_*_H macros
840         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
841         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
842         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
843         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
844         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
845         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
846         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
847         * m4/btowc.m4: Update callers.
848         * m4/dirfd.m4: Likewise.
849         * m4/duplocale.m4: Likewise.
850         * m4/fchdir.m4: Likewise.
851         * m4/fdopendir.m4: Likewise.
852         * m4/inet_ntop.m4: Likewise.
853         * m4/inet_pton.m4: Likewise.
854         * m4/ioctl.m4: Likewise.
855         * m4/mbrlen.m4: Likewise.
856         * m4/mbrtowc.m4: Likewise.
857         * m4/mbsinit.m4: Likewise.
858         * m4/mbsnrtowcs.m4: Likewise.
859         * m4/mbsrtowcs.m4: Likewise.
860         * m4/poll.m4: Likewise.
861         * m4/setlocale.m4: Likewise.
862         * m4/wcrtomb.m4: Likewise.
863         * m4/wcsnrtombs.m4: Likewise.
864         * m4/wcsrtombs.m4: Likewise.
865         * m4/wctob.m4: Likewise.
866         * m4/wcwidth.m4: Likewise.
867         * modules/posix_spawn: Likewise.
868         * modules/posix_spawn_file_actions_addclose: Likewise.
869         * modules/posix_spawn_file_actions_adddup2: Likewise.
870         * modules/posix_spawn_file_actions_addopen: Likewise.
871         * modules/posix_spawn_file_actions_destroy: Likewise.
872         * modules/posix_spawn_file_actions_init: Likewise.
873         * modules/posix_spawnattr_destroy: Likewise.
874         * modules/posix_spawnattr_getflags: Likewise.
875         * modules/posix_spawnattr_getpgroup: Likewise.
876         * modules/posix_spawnattr_getschedparam: Likewise.
877         * modules/posix_spawnattr_getschedpolicy: Likewise.
878         * modules/posix_spawnattr_getsigdefault: Likewise.
879         * modules/posix_spawnattr_getsigmask: Likewise.
880         * modules/posix_spawnattr_init: Likewise.
881         * modules/posix_spawnattr_setflags: Likewise.
882         * modules/posix_spawnattr_setpgroup: Likewise.
883         * modules/posix_spawnattr_setschedparam: Likewise.
884         * modules/posix_spawnattr_setschedpolicy: Likewise.
885         * modules/posix_spawnattr_setsigdefault: Likewise.
886         * modules/posix_spawnattr_setsigmask: Likewise.
887         * modules/posix_spawnp: Likewise.
888
889 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
890
891         Add option to do-release-commit-and-tag to specify branch.
892         * build-aux/do-release-commit-and-tag: Add --branch.
893
894 2011-05-03  Bruno Haible  <bruno@clisp.org>
895
896         Avoid unnecessary compilation units, through conditional dependencies.
897         * modules/accept (Depends-on): Add conditions to the dependencies.
898         * modules/acosl (Depends-on): Likewise.
899         * modules/argz (Depends-on): Likewise.
900         * modules/asinl (Depends-on): Likewise.
901         * modules/atanl (Depends-on): Likewise.
902         * modules/atoll (Depends-on): Likewise.
903         * modules/bind (Depends-on): Likewise.
904         * modules/btowc (Depends-on): Likewise.
905         * modules/canonicalize-lgpl (Depends-on): Likewise.
906         * modules/ceil (Depends-on): Likewise.
907         * modules/ceilf (Depends-on): Likewise.
908         * modules/ceill (Depends-on): Likewise.
909         * modules/chdir-long (Depends-on): Likewise.
910         * modules/chown (Depends-on): Likewise.
911         * modules/close (Depends-on): Likewise.
912         * modules/connect (Depends-on): Likewise.
913         * modules/cosl (Depends-on): Likewise.
914         * modules/dirfd (Depends-on): Likewise.
915         * modules/dprintf (Depends-on): Likewise.
916         * modules/dprintf-posix (Depends-on): Likewise.
917         * modules/error (Depends-on): Likewise.
918         * modules/euidaccess (Depends-on): Likewise.
919         * modules/expl (Depends-on): Likewise.
920         * modules/faccessat (Depends-on): Likewise.
921         * modules/fchdir (Depends-on): Likewise.
922         * modules/fclose (Depends-on): Likewise.
923         * modules/fcntl (Depends-on): Likewise.
924         * modules/fdopendir (Depends-on): Likewise.
925         * modules/fflush (Depends-on): Likewise.
926         * modules/floor (Depends-on): Likewise.
927         * modules/floorf (Depends-on): Likewise.
928         * modules/floorl (Depends-on): Likewise.
929         * modules/fnmatch (Depends-on): Likewise.
930         * modules/fopen (Depends-on): Likewise.
931         * modules/fprintf-posix (Depends-on): Likewise.
932         * modules/frexp (Depends-on): Likewise.
933         * modules/frexp-nolibm (Depends-on): Likewise.
934         * modules/frexpl (Depends-on): Likewise.
935         * modules/frexpl-nolibm (Depends-on): Likewise.
936         * modules/fseek (Depends-on): Likewise.
937         * modules/fsusage (Depends-on): Likewise.
938         * modules/ftell (Depends-on): Likewise.
939         * modules/ftello (Depends-on): Likewise.
940         * modules/futimens (Depends-on): Likewise.
941         * modules/getcwd (Depends-on): Likewise.
942         * modules/getcwd-lgpl (Depends-on): Likewise.
943         * modules/getdelim (Depends-on): Likewise.
944         * modules/getdomainname (Depends-on): Likewise.
945         * modules/getgroups (Depends-on): Likewise.
946         * modules/gethostname (Depends-on): Likewise.
947         * modules/getline (Depends-on): Likewise.
948         * modules/getlogin_r (Depends-on): Likewise.
949         * modules/getopt-posix (Depends-on): Likewise.
950         * modules/getpeername (Depends-on): Likewise.
951         * modules/getsockname (Depends-on): Likewise.
952         * modules/getsockopt (Depends-on): Likewise.
953         * modules/getsubopt (Depends-on): Likewise.
954         * modules/getusershell (Depends-on): Likewise.
955         * modules/glob (Depends-on): Likewise.
956         * modules/grantpt (Depends-on): Likewise.
957         * modules/iconv_open (Depends-on): Likewise.
958         * modules/iconv_open-utf (Depends-on): Likewise.
959         * modules/inet_ntop (Depends-on): Likewise.
960         * modules/inet_pton (Depends-on): Likewise.
961         * modules/ioctl (Depends-on): Likewise.
962         * modules/isapipe (Depends-on): Likewise.
963         * modules/isfinite (Depends-on): Likewise.
964         * modules/isinf (Depends-on): Likewise.
965         * modules/lchown (Depends-on): Likewise.
966         * modules/ldexpl (Depends-on): Likewise.
967         * modules/link (Depends-on): Likewise.
968         * modules/linkat (Depends-on): Likewise.
969         * modules/listen (Depends-on): Likewise.
970         * modules/logl (Depends-on): Likewise.
971         * modules/lstat (Depends-on): Likewise.
972         * modules/mbrlen (Depends-on): Likewise.
973         * modules/mbrtowc (Depends-on): Likewise.
974         * modules/mbsinit (Depends-on): Likewise.
975         * modules/mbsnrtowcs (Depends-on): Likewise.
976         * modules/mbsrtowcs (Depends-on): Likewise.
977         * modules/mbtowc (Depends-on): Likewise.
978         * modules/memcmp (Depends-on): Likewise.
979         * modules/mkdir (Depends-on): Likewise.
980         * modules/mkdtemp (Depends-on): Likewise.
981         * modules/mkfifo (Depends-on): Likewise.
982         * modules/mkfifoat (Depends-on): Likewise.
983         * modules/mknod (Depends-on): Likewise.
984         * modules/mkostemp (Depends-on): Likewise.
985         * modules/mkostemps (Depends-on): Likewise.
986         * modules/mkstemp (Depends-on): Likewise.
987         * modules/mkstemps (Depends-on): Likewise.
988         * modules/mktime (Depends-on): Likewise.
989         * modules/nanosleep (Depends-on): Likewise.
990         * modules/open (Depends-on): Likewise.
991         * modules/openat (Depends-on): Likewise.
992         * modules/perror (Depends-on): Likewise.
993         * modules/poll (Depends-on): Likewise.
994         * modules/popen (Depends-on): Likewise.
995         * modules/posix_spawn (Depends-on): Likewise.
996         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
997         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
998         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
999         * modules/posix_spawnp (Depends-on): Likewise.
1000         * modules/pread (Depends-on): Likewise.
1001         * modules/printf-posix (Depends-on): Likewise.
1002         * modules/ptsname (Depends-on): Likewise.
1003         * modules/putenv (Depends-on): Likewise.
1004         * modules/pwrite (Depends-on): Likewise.
1005         * modules/readline (Depends-on): Likewise.
1006         * modules/readlink (Depends-on): Likewise.
1007         * modules/readlinkat (Depends-on): Likewise.
1008         * modules/recv (Depends-on): Likewise.
1009         * modules/recvfrom (Depends-on): Likewise.
1010         * modules/regex (Depends-on): Likewise.
1011         * modules/remove (Depends-on): Likewise.
1012         * modules/rename (Depends-on): Likewise.
1013         * modules/renameat (Depends-on): Likewise.
1014         * modules/rmdir (Depends-on): Likewise.
1015         * modules/round (Depends-on): Likewise.
1016         * modules/roundf (Depends-on): Likewise.
1017         * modules/roundl (Depends-on): Likewise.
1018         * modules/rpmatch (Depends-on): Likewise.
1019         * modules/select (Depends-on): Likewise.
1020         * modules/send (Depends-on): Likewise.
1021         * modules/sendto (Depends-on): Likewise.
1022         * modules/setenv (Depends-on): Likewise.
1023         * modules/setlocale (Depends-on): Likewise.
1024         * modules/setsockopt (Depends-on): Likewise.
1025         * modules/shutdown (Depends-on): Likewise.
1026         * modules/sigaction (Depends-on): Likewise.
1027         * modules/signbit (Depends-on): Likewise.
1028         * modules/sigprocmask (Depends-on): Likewise.
1029         * modules/sinl (Depends-on): Likewise.
1030         * modules/sleep (Depends-on): Likewise.
1031         * modules/snprintf (Depends-on): Likewise.
1032         * modules/snprintf-posix (Depends-on): Likewise.
1033         * modules/socket (Depends-on): Likewise.
1034         * modules/sprintf-posix (Depends-on): Likewise.
1035         * modules/sqrtl (Depends-on): Likewise.
1036         * modules/stat (Depends-on): Likewise.
1037         * modules/strchrnul (Depends-on): Likewise.
1038         * modules/strdup-posix (Depends-on): Likewise.
1039         * modules/strerror (Depends-on): Likewise.
1040         * modules/strerror_r-posix (Depends-on): Likewise.
1041         * modules/strndup (Depends-on): Likewise.
1042         * modules/strnlen (Depends-on): Likewise.
1043         * modules/strptime (Depends-on): Likewise.
1044         * modules/strsep (Depends-on): Likewise.
1045         * modules/strsignal (Depends-on): Likewise.
1046         * modules/strstr-simple (Depends-on): Likewise.
1047         * modules/strtod (Depends-on): Likewise.
1048         * modules/strtoimax (Depends-on): Likewise.
1049         * modules/strtok_r (Depends-on): Likewise.
1050         * modules/strtoumax (Depends-on): Likewise.
1051         * modules/symlink (Depends-on): Likewise.
1052         * modules/symlinkat (Depends-on): Likewise.
1053         * modules/tanl (Depends-on): Likewise.
1054         * modules/tcgetsid (Depends-on): Likewise.
1055         * modules/tmpfile (Depends-on): Likewise.
1056         * modules/trunc (Depends-on): Likewise.
1057         * modules/truncf (Depends-on): Likewise.
1058         * modules/truncl (Depends-on): Likewise.
1059         * modules/uname (Depends-on): Likewise.
1060         * modules/unlink (Depends-on): Likewise.
1061         * modules/unlockpt (Depends-on): Likewise.
1062         * modules/unsetenv (Depends-on): Likewise.
1063         * modules/usleep (Depends-on): Likewise.
1064         * modules/utimensat (Depends-on): Likewise.
1065         * modules/vasprintf (Depends-on): Likewise.
1066         * modules/vdprintf (Depends-on): Likewise.
1067         * modules/vdprintf-posix (Depends-on): Likewise.
1068         * modules/vfprintf-posix (Depends-on): Likewise.
1069         * modules/vprintf-posix (Depends-on): Likewise.
1070         * modules/vsnprintf (Depends-on): Likewise.
1071         * modules/vsnprintf-posix (Depends-on): Likewise.
1072         * modules/vsprintf-posix (Depends-on): Likewise.
1073         * modules/wcrtomb (Depends-on): Likewise.
1074         * modules/wcscasecmp (Depends-on): Likewise.
1075         * modules/wcscspn (Depends-on): Likewise.
1076         * modules/wcsdup (Depends-on): Likewise.
1077         * modules/wcsncasecmp (Depends-on): Likewise.
1078         * modules/wcsnrtombs (Depends-on): Likewise.
1079         * modules/wcspbrk (Depends-on): Likewise.
1080         * modules/wcsrtombs (Depends-on): Likewise.
1081         * modules/wcsspn (Depends-on): Likewise.
1082         * modules/wcsstr (Depends-on): Likewise.
1083         * modules/wcstok (Depends-on): Likewise.
1084         * modules/wcswidth (Depends-on): Likewise.
1085         * modules/wctob (Depends-on): Likewise.
1086         * modules/wctomb (Depends-on): Likewise.
1087         * modules/wctype (Depends-on): Likewise.
1088         * modules/wcwidth (Depends-on): Likewise.
1089         * modules/write (Depends-on): Likewise.
1090
1091 2011-05-03  Bruno Haible  <bruno@clisp.org>
1092
1093         Support for conditional dependencies.
1094         * doc/gnulib.texi (Module description): Document the syntax of
1095         conditional dependencies.
1096         * gnulib-tool: New option --conditional-dependencies.
1097         (func_usage): Document it.
1098         (cond_dependencies): New variable.
1099         (func_get_automake_snippet_conditional,
1100         func_get_automake_snippet_unconditional): New functions, extracted from
1101         func_get_automake_snippet.
1102         (func_get_automake_snippet): Use them.
1103         (sed_first_32_chars): New variable.
1104         (func_module_shellfunc_name): New function.
1105         (func_module_shellvar_name): New function.
1106         (func_module_conditional_name): New function.
1107         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1108         func_cond_module_condition): New functions.
1109         (func_modules_transitive_closure): Add support for conditional
1110         dependencies.
1111         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1112         conditional automake snippet in an automake conditional.
1113         (func_emit_autoconf_snippets): Emit shell functions that contain the
1114         code for conditional modules.
1115         (func_import, func_create_testdir): Update specification.
1116
1117 2011-05-03  Eric Blake  <eblake@redhat.com>
1118
1119         test-getaddrinfo: report error information
1120         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1121
1122 2011-05-03  Jim Meyering  <meyering@redhat.com>
1123
1124         bootstrap: avoid build failure when $GZIP is set
1125         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1126         program name.  If defined at all, it is supposed to list gzip options.
1127         Reported by Alan Curry in http://debbugs.gnu.org/8609
1128
1129 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1130
1131         readme-release: new module with release instructions
1132         * modules/readme-release: New module.
1133         * top/README-release: New file, from coreutils, grep, diffutils.
1134         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1135
1136 2011-05-02  Eric Blake  <eblake@redhat.com>
1137
1138         fflush: also replace fclose when fixing fflush
1139         * modules/fflush (Depends-on): Add fclose.
1140         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1141         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1142         memstreams with no backing fd.
1143         * doc/posix-functions/fclose.texi (fclose): Document the use of
1144         fflush module to fix the bug.
1145         * tests/test-fclose.c (main): Relax test when fclose is used in
1146         isolation.
1147
1148         fclose: add some tests
1149         * modules/fclose-tests: New test module.
1150         * tests/test-fclose.c: New file.
1151         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1152
1153         fclose: reduced dependencies
1154         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1155         simpler lseek.
1156         * lib/fclose.c (rpl_fclose): Likewise.
1157         Reported by Simon Josefsson.
1158
1159         exit: drop remaining clients
1160         * modules/argmatch (Depends-on): Replace exit with stdlib.
1161         * modules/copy-file (Depends-on): Likewise.
1162         * modules/execute (Depends-on): Likewise.
1163         * modules/exitfail (Depends-on): Likewise.
1164         * modules/obstack (Depends-on): Likewise.
1165         * modules/pagealign_alloc (Depends-on): Likewise.
1166         * modules/pipe-filter-gi (Depends-on): Likewise.
1167         * modules/pipe-filter-ii (Depends-on): Likewise.
1168         * modules/savewd (Depends-on): Likewise.
1169         * modules/spawn-pipe (Depends-on): Likewise.
1170         * modules/wait-process (Depends-on): Likewise.
1171         * modules/xsetenv (Depends-on): Likewise.
1172         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1173         * modules/git-merge-changelog (Depends-on): Likewise.
1174         * modules/long-options (Depends-on): Likewise.
1175         * modules/pt_chown (Depends-on): Likewise.
1176         * modules/sysexits (Depends-on): Likewise.
1177
1178         freading: relax license from LGPLv3+ to LGPLv2+
1179         * modules/freading (License): Relax LGPL version.
1180
1181 2011-05-02  Bruno Haible  <bruno@clisp.org>
1182
1183         fchdir: Remove unused dependencies.
1184         * modules/fchdir (Depends-on): Remove include_next.
1185
1186 2011-05-02  Bruno Haible  <bruno@clisp.org>
1187
1188         gnulib-tool: Refactor.
1189         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1190         from func_emit_autoconf_snippets.
1191         (func_emit_autoconf_snippets): Use it.
1192
1193 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1194
1195         * NEWS: Document removal of 'exit'.
1196         * modules/exit: Remove file.
1197
1198 2011-05-01  Bruno Haible  <bruno@clisp.org>
1199
1200         Update DEPENDENCIES.
1201         * DEPENDENCIES (gettext): Recommend the newest release.
1202         Reported by Simon Josefsson.
1203
1204 2011-05-01  Bruno Haible  <bruno@clisp.org>
1205
1206         gnulib-tool: Reduce code duplication.
1207         * gnulib-tool (func_emit_autoconf_snippets): New function.
1208         (func_import, func_create_testdir): Use it.
1209
1210 2011-04-30  Eric Blake  <eblake@redhat.com>
1211
1212         fclose: don't fail on non-seekable input stream
1213         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1214         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1215         since fflush is allowed to fail in that case.
1216
1217 2011-04-30  Bruno Haible  <bruno@clisp.org>
1218
1219         dup3: cleanup
1220         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1221
1222 2011-04-30  Bruno Haible  <bruno@clisp.org>
1223
1224         netdb: Make it work in C++ mode.
1225         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1226         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1227         module.
1228         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1229         gl_MODULE_INDICATOR_FOR_TESTS.
1230         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1231         * modules/netdb-c++-tests: New file.
1232         * tests/test-netdb-c++.cc: New file.
1233
1234 2011-04-30  Bruno Haible  <bruno@clisp.org>
1235
1236         New modules 'vfscanf', 'vscanf'.
1237         * modules/vfscanf: New file.
1238         * modules/vscanf: New file.
1239         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1240         here.
1241         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1242         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1243
1244 2011-04-30  Bruno Haible  <bruno@clisp.org>
1245
1246         passfd: Add comments.
1247         * lib/passfd.c: Add comments about platforms.
1248
1249 2011-04-30  Bruno Haible  <bruno@clisp.org>
1250
1251         sys_uio: Make <sys/uio.h> self-contained.
1252         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1253         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1254
1255 2011-04-30  Bruno Haible  <bruno@clisp.org>
1256
1257         sys_socket: Ensure 'struct iovec' definition.
1258         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1259         <sys/socket.h>.
1260         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1261
1262 2011-04-30  Bruno Haible  <bruno@clisp.org>
1263
1264         sys_uio: Protect definition of 'struct iovec'.
1265         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1266         it as a C struct.
1267
1268 2011-04-30  Bruno Haible  <bruno@clisp.org>
1269
1270         manywarnings: fix indentation
1271         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1272
1273 2011-04-30  Pádraig Brady <P@draigBrady.com>
1274
1275         manywarnings: add -Wno-missing-field-initializers if needed.
1276         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1277         option if it's needed to allow initialization with { 0, }
1278
1279 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1280
1281         announce-gen: cosmetic improvement
1282         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1283
1284 2011-04-29  Jim Meyering  <meyering@redhat.com>
1285
1286         vc-list-files: indent with spaces, not TABs
1287         * build-aux/vc-list-files: Convert leading TABs to spaces,
1288         to match the style of most other files in gnulib.
1289
1290         announce-gen: indent with spaces, not TABs
1291         * build-aux/announce-gen: Convert all TABs to spaces, to match
1292         the style of most other files in gnulib.
1293
1294 2011-04-29  Eric Blake  <eblake@redhat.com>
1295
1296         quotearg: avoid uninitialized variable use
1297         * lib/quotearg.c (quoting_options_from_style): Initialize
1298         remaining fields, and ensure that custom styles are only used via
1299         quoting_options rather than quoting_style.
1300
1301 2011-04-29  Jim Meyering  <meyering@redhat.com>
1302
1303         maint.mk: remove unused VC-tag variable
1304         * top/maint.mk (VC-tag): Remove unused variable.
1305
1306 2011-04-29  Bruno Haible  <bruno@clisp.org>
1307
1308         netdb: fix gai_strerror replacements
1309         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1310         * modules/netdb: Substitute it.
1311
1312 2011-04-29  Jim Meyering  <meyering@redhat.com>
1313
1314         test-getcwd.c: avoid new set-but-not-used warning
1315         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1316         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1317         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1318         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1319
1320         test-hash.c: avoid a new shadowing warning
1321         * tests/test-hash.c (main): Don't shadow "dup".
1322
1323 2011-04-28  Eric Blake  <eblake@redhat.com>
1324
1325         getaddrinfo: fix gai_strerror signature
1326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1327         and work around mingw with UNICODE defined.
1328         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1329         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1330         * modules/netdb (Makefile.am): Substitute it.
1331         * lib/netdb.in.h (gai_strerror): Declare replacement.
1332         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1333         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1334         the fix.
1335
1336         getsockopt: avoid compiler warning
1337         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1338         Reported by Matthias Bolte.
1339
1340         tests: drop unused link dependency
1341         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1342         * modules/dirent-safer-tests (Makefile.am): Likewise.
1343         * modules/fdopendir-tests (Makefile.am): Likewise.
1344         * modules/mkfifoat-tests (Makefile.am): Likewise.
1345         * modules/openat-safer-tests (Makefile.am): Likewise.
1346         * modules/openat-tests (Makefile.am): Likewise.
1347         * modules/readlinkat-tests (Makefile.am): Likewise.
1348         * modules/symlinkat-tests (Makefile.am): Likewise.
1349         * modules/linkat-tests (Makefile.am): Likewise.
1350         (Depends-on): Switch to filenamecat-lgpl.
1351         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1352         LIBINTL.
1353         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1354         * tests/test-linkat.c (main): Don't require xalloc.
1355
1356         hash, mgetgroups: drop xalloc dependency
1357         * lib/hash.c (includes): Adjust includes.
1358         * lib/mgetgroups.c (includes): Likewise.
1359         (xgetgroups): Move...
1360         * lib/xgetgroups.c: ...to new file.
1361         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1362         * modules/xgetgroups: New file, split from...
1363         * modules/mgetgroups: ...here.
1364         (Depends-on): Add xalloc-oversized.
1365         * modules/hash (Depends-on): Likewise.
1366         * modules/hash-tests (Depends-on): Drop xalloc.
1367         (test_hash_LDADD): Drop unused library.
1368         * tests/test-hash.c (main): Break xalloc dependency.
1369         (includes): Drop unused include.
1370
1371         xalloc-oversized: new module
1372         * modules/xalloc-oversized: New module.
1373         * modules/xalloc (Depends-on): Add it.
1374         * lib/xalloc.h (xalloc_oversized): Move...
1375         * lib/xalloc-oversized.h: ...into new file.
1376
1377         utimecmp: drop dependency on xmalloc
1378         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1379         due to memory pressure.
1380         * modules/utimecmp (Depends-on): Drop xalloc.
1381
1382 2011-04-27  Eric Blake  <eblake@redhat.com>
1383
1384         getcwd: fix mingw bugs
1385         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1386         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1387         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1388
1389 2011-04-27  Bruno Haible  <bruno@clisp.org>
1390
1391         mkstemps: Ensure declaration on MacOS X 10.5.
1392         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1393         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1394         MacOS X.
1395
1396 2011-04-27  Bruno Haible  <bruno@clisp.org>
1397
1398         mkstemp: More documentation.
1399         * doc/posix-functions/mkstemp.texi: Document header file problem on
1400         MacOS X.
1401
1402 2011-04-27  Bruno Haible  <bruno@clisp.org>
1403
1404         mkstemp: Tweak configure message when cross-compiling.
1405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1406         result as a guess.
1407
1408 2011-04-27  Bruno Haible  <bruno@clisp.org>
1409
1410         clean-temp: Clarify what it does.
1411         * lib/clean-temp.h: Add more comments.
1412         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1413         module.
1414         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1415         * doc/glibc-functions/mkstemps.texi: Likewise.
1416         * doc/glibc-functions/mkostemps.texi: Likewise.
1417
1418 2011-04-27  Eric Blake  <eblake@redhat.com>
1419
1420         fchdir: avoid extra chdir and fix test
1421         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1422         getcwd-lgpl.
1423         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1424         have to be canonical.
1425         (canonicalize_file_name): Drop unused macro.
1426         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1427
1428         filenamecat-lgpl: fix licence
1429         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1430         when it was first created.
1431
1432         linkat, renameat: add missing dependency
1433         * modules/linkat (Depends-on): Require getcwd-lgpl.
1434         * modules/renameat (Depends-on): Likewise.
1435
1436         tests: reduce dependencies
1437         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1438         * tests/test-renameat.c (main): Likewise.
1439         * modules/linkat-tests (Depends-on): Relax dependency.
1440         * modules/renameat-tests (Depends-on): Likewise.
1441         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1442         dependency explicit.
1443
1444         save-cwd: reduce default dependency
1445         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1446         * lib/save-cwd.c: Update comments.
1447         * NEWS: Document the semantic change.
1448
1449         getcwd: enhance tests
1450         * tests/test-getcwd-lgpl.c: New file, taken from...
1451         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1452         repeat long path stress tests from m4 probe.
1453         * modules/getcwd-lgpl-tests: New module.
1454         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1455         * m4/getcwd-abort-bug.m4: Update comment.
1456         * m4/getcwd-path-max.m4: Likewise.
1457
1458         getcwd-lgpl: new module
1459         * modules/getcwd-lgpl: New module.
1460         * lib/getcwd-lgpl.c: New file.
1461         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1462         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1463         * modules/getcwd (configure.ac): Set C witness.
1464         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1465
1466         getcwd: tweak comments
1467         * m4/getcwd-abort-bug.m4: Fix comments.
1468         * m4/getcwd-path-max.m4: Likewise.
1469         * m4/getcwd.m4: Likewise.
1470
1471 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1472         and Eric Blake  <eblake@redhat.com>
1473
1474         mkstemp: replace if system version uses wrong permissions
1475         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1476         read/write mode bits set in file created by mkstemp.
1477         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1478
1479 2011-04-27  Eric Blake  <eblake@redhat.com>
1480
1481         passfd: avoid compiler warning
1482         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1483         Reported by Laine Stump.
1484
1485 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1486
1487         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1488         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1489
1490 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1491         and Eric Blake  <eblake@redhat.com>
1492
1493         mkstemp: mention clean-temp module
1494         * lib/mkstemp.c: Add comment.
1495         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1496
1497 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1498
1499         inttypes: also provide default values for 32-bit tests
1500         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1501         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1502
1503 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1504
1505         strtoumax: remove dependency on strtoimax
1506         This is like the strtoull change of yesterday.
1507         * modules/strtoumax (Files): Add lib/strtoimax.c.
1508         (Depends-on): Remove strtoimax and add verify.
1509
1510         inttypes-incomplete: new module
1511         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1512         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1513         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1514         of gl_INTTYPES_H.
1515         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1516         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1517         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1518         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1519         * modules/strtoumax, modules/xstrtol (Depends-on):
1520         Depend on inttypes-incomplete, not inttypes.
1521         * modules/inttypes-incomplete: New module, containing the contents
1522         of the old modules/inttypes module, except that the Files: section
1523         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1524         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1525         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1526         (Depends-on): Depend only on inttypes-incomplete.
1527         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1528
1529         inttypes: omit now-redundant strtoimax and strtoumax work
1530         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1531         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1532
1533         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1534         This supports apps that need pointers to strtoimax and strtoumax,
1535         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1536         nonexistent functions.  See
1537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1538         et seq.
1539         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1540         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1541         a macro.
1542         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1543
1544 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1545
1546         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1547
1548 2011-04-25  Bruno Haible  <bruno@clisp.org>
1549
1550         strtol, strtoul: Mark modules as obsolete.
1551         * modules/strtol (Status, Notice): New sections.
1552         * modules/strtoul (Status, Notice): New sections.
1553
1554 2011-04-25  Bruno Haible  <bruno@clisp.org>
1555
1556         strtod: Remove check for strtod, unless supporting old platforms.
1557         * modules/strtod-obsolete: New file.
1558         * m4/strtod-obsolete.m4: New file.
1559         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1560         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1561         * modules/strtod (Depends-on): Add strtod-obsolete.
1562         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1563
1564 2011-04-25  Bruno Haible  <bruno@clisp.org>
1565
1566         strcase: Make module obsolete.
1567         * modules/strcase (Status, Notice): New sections.
1568
1569 2011-04-25  Bruno Haible  <bruno@clisp.org>
1570
1571         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1572         * modules/dup2-obsolete: New file.
1573         * m4/dup2-obsolete.m4: New file.
1574         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1575         gl_FUNC_DUP2_OBSOLETE is not also defined.
1576         * modules/dup2 (Depends-on): Add dup2-obsolete.
1577         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1578
1579 2011-04-25  Bruno Haible  <bruno@clisp.org>
1580
1581         strnlen: Avoid memchr related link error on old obsolete platforms.
1582         * modules/memchr-obsolete: New file.
1583         * m4/memchr-obsolete.m4: New file.
1584         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1585         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1586         * modules/memchr (Depends-on): Add memchr-obsolete.
1587         * modules/strnlen (Depends-on): Likewise.
1588         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1589
1590 2011-04-25  Jim Meyering  <meyering@redhat.com>
1591
1592         maint.mk: makefile_at_at_check extend and clean up
1593         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1594         in addition to */Makefile.am.
1595         Exempt legitimate uses of @VAR@ notation, e.g.,
1596         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1597         Remove obsolete coreutils-specific comment.
1598         Prompted by discussion here:
1599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1600
1601 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         strtoul: remove dependency on strtol
1604         This is so that 'configure' need not check for strtol merely because
1605         the application needs strtoul.
1606         * modules/strtoul (Files): Add lib/strtol.c.
1607         (Depends-on): Remove strtol.
1608
1609         strtoull: remove dependency on strtoul
1610         This is like the strtoll change.
1611         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1612         (Depends-on): Remove strtoul.
1613
1614         strtoll: remove dependency on strtol
1615         This is so that 'configure' need not check for strtol merely because
1616         the application needs strtoll.
1617         * modules/strtoll (Files): Add lib/strtol.c.
1618         (Depends-on): Remove strtol.
1619
1620 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         inttypes: Move some configure check to module 'imaxdiv'.
1623         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1624         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1625         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1626
1627 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1628
1629         inttypes: Move some configure check to module 'imaxabs'.
1630         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1631         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1632         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1633
1634 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1635
1636         inttypes: Remove configure tests that are not needed since 2009-12-31.
1637         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1638         gl_cv_header_working_inttypes_h.
1639
1640 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         * modules/strnlen (Depends-on): Remove memchr.
1643         The strnlen implementation doesn't need the memchr module's fixes; see
1644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1645
1646         strtol: remove dependency on wchar
1647         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1648         * modules/strtol (Depends-on): Remove wchar.
1649
1650 2011-04-21  Eric Blake  <eblake@redhat.com>
1651
1652         passfd: fix test regression on Linux
1653         * modules/passfd-tests (configure.ac): Correct socketpair check.
1654
1655         passfd: speed up configure and drop unused code
1656         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1657         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1658         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1659         Instead of probing at configure for unix_scm_rights_bsd44_way,
1660         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1661         check to a struct member probe.
1662         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1663         (sendfd, recvfd): Update preprocessor checks.
1664         * modules/passfd (Files): Reflect rename, and drop unused file.
1665         (Depends-on): Drop unused dependency.
1666
1667         passfd: allow compilation on mingw
1668         * modules/sys_socket (Depends-on): Add sys_uio.
1669         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1670         iovec and a minimal struct msghdr.
1671         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1672         * tests/test-sys_socket.c (main): Enhance test.
1673         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1674         guaranteed to provide what we need.
1675         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1676         * modules/passfd-tests (Depends-on): Add sys_wait.
1677         * tests/test-passfd.c (main): Skip test on mingw, for now.
1678         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1679         partial 'struct msghdr' implementation.
1680
1681         sys_uio: new module
1682         * modules/sys_uio: New module.
1683         * modules/sys_uio-tests: Likewise.
1684         * lib/sys_uio.in.h: New file.
1685         * m4/sys_uio_h.m4: Likewise.
1686         * tests/test-sys_uio.c: Likewise.
1687         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1688         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1689
1690 2011-04-20  Jim Meyering  <meyering@redhat.com>
1691
1692         useless-if-before-free: avoid false-positive
1693         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1694         disjunct so that it too requires a terminating ";".  Without that,
1695         this script would identify as useless one statement from gcc that
1696         was not:
1697           if (aligned_ptr)
1698             free (((void **) aligned_ptr) [-1]);
1699
1700 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1701
1702         doc: update users.txt.
1703         * users.txt: Add barcode.
1704
1705 2011-04-19  Bruno Haible  <bruno@clisp.org>
1706
1707         ioctl: Remove link dependency on native Windows.
1708         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1709         (gl_close_fn, gl_ioctl_fn): New types.
1710         (struct fd_hook): Renamed from struct close_hook. Change type of
1711         private_close_fn field. Add private_ioctl_fn field.
1712         (close_hook_fn): Add parameter for primary close method.
1713         (execute_close_hooks, execute_all_close_hooks): Likewise.
1714         (ioctl_hook_fn): New type.
1715         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1716         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1717         argument.
1718         (unregister_fd_hook): Renamed from unregister_close_hook.
1719         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1720         Don't include <unistd.h>.
1721         (close): Remove undef.
1722         (anchor): Update.
1723         (execute_close_hooks): Add argument for primary close method.
1724         (execute_all_close_hooks): Likewise.
1725         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1726         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1727         argument. Allow each argument to be NULL.
1728         (unregister_fd_hook): Renamed from unregister_close_hook.
1729         * lib/close.c (rpl_close): Pass 'close' function pointer to
1730         execute_all_close_hooks.
1731         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1732         (primary_ioctl): New function.
1733         (ioctl): Don't call ioctlsocket here. Instead, call
1734         execute_all_ioctl_hooks.
1735         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1736         close method.
1737         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1738         (fd_sockets_hook): Renamed from close_sockets_hook.
1739         (gl_sockets_startup, gl_sockets_cleanup): Update.
1740         * modules/fd-hook: Renamed from modules/close-hook. Update.
1741         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1742         * modules/sockets (Depends-on): Likewise.
1743         * modules/ioctl (Depends-on): Add fd-hook.
1744         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1745         GNULIB_SOCKET.
1746
1747 2011-04-19  Bruno Haible  <bruno@clisp.org>
1748
1749         Move the support of O_NONBLOCK in open() to the 'open' module.
1750         * modules/nonblocking (Depends-on): Remove 'open'.
1751         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1752         gl_cv_have_open_O_NONBLOCK.
1753         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1754         O_NONBLOCK support.
1755         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1756
1757 2011-04-17  Bruno Haible  <bruno@clisp.org>
1758
1759         pipe2: Simplify code.
1760         * lib/pipe2.c (pipe2): Reduce code duplication.
1761
1762 2011-04-17  Bruno Haible  <bruno@clisp.org>
1763
1764         nonblocking: Add comment.
1765         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1766
1767 2011-04-17  Bruno Haible  <bruno@clisp.org>
1768
1769         nonblocking: Add tests for sockets.
1770         * tests/test-nonblocking-socket.sh: New file.
1771         * tests/test-nonblocking-socket-main.c: New file.
1772         * tests/test-nonblocking-socket-child.c: New file.
1773         * tests/test-nonblocking-socket.h: New file.
1774         * tests/socket-server.h: New file.
1775         * tests/socket-client.h: New file.
1776         * modules/nonblocking-socket-tests: New file.
1777         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1778
1779 2011-04-17  Bruno Haible  <bruno@clisp.org>
1780
1781         nonblocking: Add tests for pipes.
1782         * tests/test-nonblocking-pipe.sh: New file.
1783         * tests/test-nonblocking-pipe-main.c: New file.
1784         * tests/test-nonblocking-pipe-child.c: New file.
1785         * tests/test-nonblocking-pipe.h: New file.
1786         * tests/test-nonblocking-writer.h: New file.
1787         * tests/test-nonblocking-reader.h: New file.
1788         * tests/test-nonblocking-misc.h: New file.
1789         * modules/nonblocking-pipe-tests: New file.
1790         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1791
1792 2011-04-16  Bruno Haible  <bruno@clisp.org>
1793
1794         gettext: Clarify the needed programmer actions.
1795         * modules/gettext (Notice): New field.
1796         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1797
1798 2011-04-16  Bruno Haible  <bruno@clisp.org>
1799
1800         strchrnul: Tweak last commit.
1801         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1802         bug.
1803         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1804         as in _GL_FUNCDECL_SYS.
1805         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1806         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1807
1808 2011-04-15  Eric Blake  <eblake@redhat.com>
1809
1810         strchrnul: work around cygwin bug
1811         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1812         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1814         * modules/string (Makefile.am): Substitute it.
1815         * lib/string.in.h (strchrnul): Use it.
1816
1817 2011-04-15  Bruno Haible  <bruno@clisp.org>
1818
1819         Don't require lib/stdio-write.c when only module 'stdio' is used.
1820         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1821         invocation.
1822         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1823
1824 2011-04-14  Bruno Haible  <bruno@clisp.org>
1825
1826         Support non-blocking pipe I/O in read() on native Windows.
1827         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1828         (read): New declaration.
1829         * lib/read.c: New file.
1830         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1831         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1832         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1833         vscanf): New declarations.
1834         * lib/stdio-read.c: New file.
1835         * m4/read.m4: New file.
1836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1837         REPLACE_READ.
1838         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1839         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1840         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1841         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1842         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1843         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1844         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1845         * modules/read: New file.
1846         * modules/nonblocking (Files): Add lib/stdio-read.c.
1847         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1848         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1849         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1850         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1851         * modules/pread (Depends-on): Add read.
1852         * modules/safe-read (Depends-on): Likewise.
1853         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1854         gets, scanf, vfscanf, vscanf): Verify signatures.
1855         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1856         problem with non-blocking pipes.
1857         * doc/posix-functions/fgetc.texi: Likewise.
1858         * doc/posix-functions/fgets.texi: Likewise.
1859         * doc/posix-functions/fread.texi: Likewise.
1860         * doc/posix-functions/fscanf.texi: Likewise.
1861         * doc/posix-functions/getc.texi: Likewise.
1862         * doc/posix-functions/getchar.texi: Likewise.
1863         * doc/posix-functions/gets.texi: Likewise.
1864         * doc/posix-functions/scanf.texi: Likewise.
1865         * doc/posix-functions/vfscanf.texi: Likewise.
1866         * doc/posix-functions/vscanf.texi: Likewise.
1867
1868 2011-04-14  Bruno Haible  <bruno@clisp.org>
1869
1870         Support non-blocking pipe I/O in write() on native Windows.
1871         * lib/write.c (rpl_write): Split a write request that failed merely
1872         because the byte count was larger than the pipe buffer's size.
1873         * doc/posix-functions/write.texi: Mention the problem with large byte
1874         counts.
1875
1876 2011-04-14  Bruno Haible  <bruno@clisp.org>
1877
1878         wchar: Ensure that wchar_t gets defined on uClibc.
1879         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1880         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1881
1882 2011-04-13  Bruno Haible  <bruno@clisp.org>
1883
1884         safe-write, full-read: Avoid unnecessary compilation units.
1885         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1886         (Depends-on): Remove safe-read. Add ssize_t.
1887         * modules/full-read (Files): Add lib/full-write.c.
1888         (Depends-on): Add full-write.
1889
1890 2011-04-13  Bruno Haible  <bruno@clisp.org>
1891
1892         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1893         * modules/pwrite (Depends-on): Add 'write'.
1894
1895 2011-04-13  Bruno Haible  <bruno@clisp.org>
1896
1897         Support non-blocking pipe I/O in write() on native Windows.
1898         * lib/unistd.in.h (write): Enable replacement also if
1899         GNULIB_UNISTD_H_NONBLOCKING is 1.
1900         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1901         (rpl_write): When failing to write on a non-blocking pipe, change
1902         errno from ENOSPC to EAGAIN.
1903         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1904         putchar, puts, vfprintf, vprintf): Enable replacement also if
1905         GNULIB_STDIO_H_NONBLOCKING is 1.
1906         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1907         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1908         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1909         CALL_WITH_SIGPIPE_EMULATION.
1910         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1911         * m4/nonblocking.m4: New file.
1912         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1913         for non-blocking I/O support.
1914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1915         GNULIB_UNISTD_H_NONBLOCKING.
1916         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1917         required for non-blocking I/O support.
1918         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1919         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1920         lib/stdio-write.c, m4/asm-underscore.m4.
1921         (Depends-on): Add stdio, unistd.
1922         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1923         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1924         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1925         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1926         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1927         problem with non-blocking pipes.
1928         * doc/posix-functions/fputc.texi: Likewise.
1929         * doc/posix-functions/fputs.texi: Likewise.
1930         * doc/posix-functions/fwrite.texi: Likewise.
1931         * doc/posix-functions/printf.texi: Likewise.
1932         * doc/posix-functions/putc.texi: Likewise.
1933         * doc/posix-functions/putchar.texi: Likewise.
1934         * doc/posix-functions/puts.texi: Likewise.
1935         * doc/posix-functions/vfprintf.texi: Likewise.
1936         * doc/posix-functions/vprintf.texi: Likewise.
1937         * doc/posix-functions/write.texi: Likewise.
1938
1939 2011-04-10  Jim Meyering  <meyering@redhat.com>
1940
1941         maint.mk: prohibit doubled words
1942         Detect them also when they're separated by a newline.
1943         There are 3 ways to customize it:
1944           - disable the test on a per file basis, as usual with rules using
1945             $(VC_LIST_EXCEPT)
1946           - replace the default doubled-word-selecting regexp (affects all files)
1947           - ignore a particular file-vs-doubled-word match
1948         I nearly used that last one to ignore the "is is" match in
1949         coreutils' NEWS file, since the text was "ls -is is ..."
1950         To do that, I would have added this line to cfg.mk:
1951           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1952         but it would have ignored any "is is" match in NEWS.
1953         Low probability, but still...
1954         Instead, I changed the text, slightly:
1955           -  ls -is is now consistent with ls -lis in ignoring values returned
1956           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1957         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1958         (prohibit_doubled_word_): Define.
1959         (sc_prohibit_doubled_word): New rule.
1960         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1961
1962 2011-04-10  Jim Meyering  <meyering@redhat.com>
1963
1964         maint: fix doubled-word typo in comment
1965         * m4/gethostname.m4: s/is is/it is/
1966         * m4/getdomainname.m4: Likewise.
1967
1968 2011-04-10  Jim Meyering  <meyering@redhat.com>
1969
1970         maint: remove doubled word: s/it it/it/
1971         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1972
1973 2011-04-10  Jim Meyering  <meyering@redhat.com>
1974
1975         maint.mk: remove useless semicolon and backslash
1976         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1977         semicolon and backslash.
1978
1979 2011-04-10  Bruno Haible  <bruno@clisp.org>
1980
1981         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1982         * modules/stdint-tests (Depends-on): Add wchar.
1983
1984 2011-04-10  Jim Meyering  <meyering@redhat.com>
1985
1986         maint: remove doubled words in comments, e.g., s/a a/a/
1987         * lib/strptime.c (day_of_the_week): s/the the/the/
1988         * tests/test-chown.h (test_chown): s/a a/a/
1989
1990         test-chown.h: correct a cast
1991         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1992         when the destination is a stat.st_gid.
1993
1994 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1995
1996         getaddrinfo: Fix test for sa_len member.
1997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1998         include <sys/types.h> before <sys/socket.h>.
1999
2000 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2001
2002         maint: change "can not" to "cannot"
2003         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2004         boundaries.
2005
2006 2011-04-09  Jim Meyering  <meyering@redhat.com>
2007
2008         maint: change "a a" to "a"
2009         * tests/test-lchown.h (test_lchown): s/a a/a/
2010
2011         maint.mk: prohibit \<the the\>
2012         * top/maint.mk (sc_prohibit_the_the): New rule.
2013
2014         maint: fix "the the" in comment
2015         * lib/count-one-bits.h: s/the the/the/
2016
2017         maint: change "can not" to "cannot"
2018         But do not change the occurrences in maintain.texi or in
2019         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2020         * doc/gnulib-tool.texi: s/can not/cannot/
2021         * doc/posix-functions/accept.texi (accept): Likewise.
2022         * doc/posix-functions/socket.texi (socket): Likewise.
2023         * lib/mbrtowc.c: Likewise.
2024
2025         maint.mk: prohibit use of "can not"
2026         * top/maint.mk (sc_prohibit_can_not): New rule.
2027         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2028
2029 2011-04-09  Bruno Haible  <bruno@clisp.org>
2030
2031         careadlinkat: Guard against misuse of careadlinkatcwd.
2032         * lib/careadlinkat.c: Include <stdlib.h>.
2033         (careadlinkatcwd): Check that the fd argument is as expected.
2034
2035 2011-04-09  Bruno Haible  <bruno@clisp.org>
2036
2037         careadlinkat: Use common coding style.
2038         * lib/careadlinkat.c: Move gnulib includes after system includes.
2039
2040 2011-04-09  Bruno Haible  <bruno@clisp.org>
2041
2042         careadlinkat: Clarify specification.
2043         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2044         (careadlinkatcwd): Add comment.
2045         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2046
2047 2011-04-09  Bruno Haible  <bruno@clisp.org>
2048
2049         areadlinkat: Avoid link error on many platforms.
2050         * modules/areadlinkat (Depends-on): Add areadlink.
2051
2052 2011-04-09  Bruno Haible  <bruno@clisp.org>
2053
2054         allocator, careadlinkat: Fix double-inclusion guard.
2055         * lib/allocator.h: Fix double-inclusion guard.
2056         * lib/careadlinkat.h: Likewise.
2057
2058 2011-04-09  Bruno Haible  <bruno@clisp.org>
2059
2060         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2061         * lib/relocwrapper.c: Update dependencies hierarchy.
2062         * build-aux/install-reloc: Update list of files to be compiled.
2063         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2064         lib/allocator.[hc].
2065
2066 2011-04-08  Eric Blake  <eblake@redhat.com>
2067
2068         strftime: silence gnulib-tool warning
2069         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2070
2071 2011-04-08  Bruno Haible  <bruno@clisp.org>
2072
2073         verify: Fix syntax error with GCC 4.6 in C++ mode.
2074         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2075         (HAVE_STATIC_ASSERT): New macro.
2076         (verify_true, verify): Use 'static_assert' if it is supported and
2077         '_Static_assert' is not supported.
2078
2079 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         allocator: New module.
2082         * modules/allocator, lib/allocator.c: New files.
2083         * lib/allocator.h (stdlib_allocator): New decl.
2084         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2085         Remove.  Do not include <stdlib.h>.
2086         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2087         * modules/careadlinkat (Files): Remove lib/allocator.h.
2088         (Depends-on): Add allocator.
2089
2090         stdlib: let modules use system malloc, realloc
2091         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2092         if !_GL_USE_STDLIB_ALLOC.
2093         (malloc, realloc): Limit this change to a smaller scope.
2094
2095         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2096         (malloc, realloc): Don't #undef; no longer needed.
2097         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2098         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2099         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2100         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2101         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2102         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2103         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2104         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2105
2106         careadlinkat: rename members to avoid problem
2107         * lib/allocator.h (struct allocator): Rename members from
2108         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2109         and realloc are #define'd.  Reported by Eric Blake in
2110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2111         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2112
2113 2011-04-08  Eric Blake  <eblake@redhat.com>
2114
2115         nonblocking: reduce dependency
2116         * tests/test-nonblocking.c: Only test sockets when in use.
2117         * modules/nonblocking-tests (Depends-on): Drop socket.
2118         (Makefile.am): Link even if sockets are not present.
2119         * modules/pipe2-tests (Makefile.am): Likewise.
2120         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2121
2122         pipe2: fix O_NONBLOCK support on mingw
2123         * modules/pipe2 (Depends-on): Add nonblocking.
2124         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2125         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2126         * tests/test-nonblocking.c (main): Likewise.
2127         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2128
2129         fcntl-h: fix O_ACCMODE on cygwin
2130         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2131         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2132
2133         pipe-filter: drop O_NONBLOCK workarounds
2134         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2135         * modules/pipe-filter-ii (Depends-on): Likewise.
2136         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2137
2138         nonblocking: provide O_NONBLOCK for mingw
2139         * modules/nonblocking (Depends-on): Add open.
2140         (configure.ac): Set new witness macro.
2141         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2142         * modules/fcntl-h (Makefile.am): Substitute it.
2143         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2144         nonblocking module is in use.
2145         * lib/nonblocking.c: Adjust portability test.
2146         * lib/open.c (open): Don't let native open see gnulib flag.
2147         * tests/test-fcntl-h.c (main): Enhance test.
2148         * tests/test-open.h (test_open): Likewise.
2149         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2150
2151         careadlinkat: fix compilation error on mingw
2152         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2153         within struct allocator.
2154
2155 2011-04-06  Eric Blake  <eblake@redhat.com>
2156
2157         binary-io: relicense under LGPLv2+
2158         * modules/binary-io (License): Relax to LGPLv2+.
2159         Requested for libvirt, and required by pipe2.
2160
2161 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2162
2163         verify: use _Static_assert if available
2164         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2165         (verify_true, verify): Use it if available.  This generates better
2166         diagnostics with GCC 4.6.0 and later.
2167
2168 2011-04-05  Bruno Haible  <bruno@clisp.org>
2169
2170         Remove leftover generated .h files after config.status changed.
2171
2172         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2173         GL_GENERATE_ALLOCA_H.
2174         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2175         GL_GENERATE_ALLOCA_H evaluates to false.
2176
2177         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2178         GL_GENERATE_ARGZ_H.
2179         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2180         evaluates to false.
2181
2182         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2183         GL_GENERATE_BYTESWAP_H.
2184         * modules/byteswap (Makefile.am): Remove byteswap.h if
2185         GL_GENERATE_BYTESWAP_H evaluates to false.
2186
2187         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2188         GL_GENERATE_ERRNO_H.
2189         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2190         evaluates to false.
2191
2192         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2193         GL_GENERATE_FLOAT_H.
2194         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2195         evaluates to false.
2196
2197         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2198         GL_GENERATE_FNMATCH_H.
2199         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2200         GL_GENERATE_FNMATCH_H evaluates to false.
2201
2202         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2203         GL_GENERATE_GLOB_H.
2204         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2205         evaluates to false.
2206
2207         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2208         automake conditional GL_GENERATE_ICONV_H.
2209         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2210         evaluates to false.
2211
2212         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2213         GL_GENERATE_NETINET_IN_H.
2214         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2215         GL_GENERATE_NETINET_IN_H evaluates to false.
2216
2217         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2218         conditional GL_GENERATE_PTHREAD_H.
2219         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2220         * modules/pthread (Makefile.am): Remove pthread.h if
2221         GL_GENERATE_PTHREAD_H evaluates to false.
2222
2223         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2224         GL_GENERATE_SCHED_H.
2225         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2226         evaluates to false.
2227
2228         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2229         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2230         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2231         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2232
2233         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2234         GL_GENERATE_STDARG_H.
2235         * modules/stdarg (Makefile.am): Remove stdarg.h if
2236         GL_GENERATE_STDARG_H evaluates to false.
2237
2238         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2239         GL_GENERATE_STDBOOL_H.
2240         * modules/stdbool (Makefile.am): Remove stdbool.h if
2241         GL_GENERATE_STDBOOL_H evaluates to false.
2242
2243         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2244         conditional GL_GENERATE_STDDEF_H.
2245         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2246         * modules/stddef (Makefile.am): Remove stddef.h if
2247         GL_GENERATE_STDDEF_H evaluates to false.
2248
2249         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2250         GL_GENERATE_STDINT_H.
2251         * modules/stdint (Makefile.am): Remove stdint.h if
2252         GL_GENERATE_STDINT_H evaluates to false.
2253
2254         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2255         GL_GENERATE_SYSEXITS_H.
2256         * modules/sysexits (Makefile.am): Remove sysexits.h if
2257         GL_GENERATE_SYSEXITS_H evaluates to false.
2258
2259         Reported by Karl Berry and Ralf Wildenhues.
2260
2261 2011-04-05  Bruno Haible  <bruno@clisp.org>
2262
2263         Ensure to rebuild generated .h files when config.status has changed.
2264         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2265         config.status.
2266         * modules/ctype (Makefile.am): Likewise.
2267         * modules/dirent (Makefile.am): Likewise.
2268         * modules/errno (Makefile.am): Likewise.
2269         * modules/fcntl-h (Makefile.am): Likewise.
2270         * modules/float (Makefile.am): Likewise.
2271         * modules/getopt-posix (Makefile.am): Likewise.
2272         * modules/glob (Makefile.am): Likewise.
2273         * modules/iconv-h (Makefile.am): Likewise.
2274         * modules/inttypes (Makefile.am): Likewise.
2275         * modules/langinfo (Makefile.am): Likewise.
2276         * modules/locale (Makefile.am): Likewise.
2277         * modules/math (Makefile.am): Likewise.
2278         * modules/netdb (Makefile.am): Likewise.
2279         * modules/netinet_in (Makefile.am): Likewise.
2280         * modules/poll-h (Makefile.am): Likewise.
2281         * modules/pthread (Makefile.am): Likewise.
2282         * modules/pty (Makefile.am): Likewise.
2283         * modules/sched (Makefile.am): Likewise.
2284         * modules/search (Makefile.am): Likewise.
2285         * modules/selinux-h (Makefile.am): Likewise.
2286         * modules/signal (Makefile.am): Likewise.
2287         * modules/spawn (Makefile.am): Likewise.
2288         * modules/stdarg (Makefile.am): Likewise.
2289         * modules/stdbool (Makefile.am): Likewise.
2290         * modules/stddef (Makefile.am): Likewise.
2291         * modules/stdint (Makefile.am): Likewise.
2292         * modules/stdio (Makefile.am): Likewise.
2293         * modules/stdlib (Makefile.am): Likewise.
2294         * modules/string (Makefile.am): Likewise.
2295         * modules/strings (Makefile.am): Likewise.
2296         * modules/sys_file (Makefile.am): Likewise.
2297         * modules/sys_ioctl (Makefile.am): Likewise.
2298         * modules/sys_select (Makefile.am): Likewise.
2299         * modules/sys_socket (Makefile.am): Likewise.
2300         * modules/sys_stat (Makefile.am): Likewise.
2301         * modules/sys_time (Makefile.am): Likewise.
2302         * modules/sys_times (Makefile.am): Likewise.
2303         * modules/sys_utsname (Makefile.am): Likewise.
2304         * modules/sys_wait (Makefile.am): Likewise.
2305         * modules/sysexits (Makefile.am): Likewise.
2306         * modules/termios (Makefile.am): Likewise.
2307         * modules/time (Makefile.am): Likewise.
2308         * modules/unistd (Makefile.am): Likewise.
2309         * modules/wchar (Makefile.am): Likewise.
2310         * modules/wctype-h (Makefile.am): Likewise.
2311         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2312
2313 2011-04-05  Bruno Haible  <bruno@clisp.org>
2314
2315         pipe2: Relicense under LGPLv2+.
2316         * modules/pipe2 (License): Change to LGPLv2+.
2317         Requested by Eric Blake, for libvirt.
2318
2319 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2320
2321         bootstrap: compute gnulib_extra_files after updating build_aux
2322         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2323         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2324
2325 2011-04-05  Eric Blake  <eblake@redhat.com>
2326
2327         bootstrap: preserve git whitelist item sorting
2328         * build-aux/bootstrap (sort_patterns): New function.
2329         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2330
2331 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2332
2333         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2334         sc_space_tab check.
2335
2336 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2337
2338         areadlink, areadlinkat: rewrite in terms of careadlinkat
2339         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2340         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2341         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2342         (malloc, realloc): Remove #undefs.
2343         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2344         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2345         readlink, ssize_t, stdint, unistd.
2346         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2347         areadlink, stdint.
2348
2349         careadlinkat: new module
2350         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2351         * modules/careadlinkat: New files, written by me with
2352         a review and feedback from Ben Pfaff in
2353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2354
2355 2011-04-01  Bruno Haible  <bruno@clisp.org>
2356
2357         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2358         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2359         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2360         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2361         Reported by Bruce Korb <bruce.korb@gmail.com>.
2362
2363 2011-04-01  Bruno Haible  <bruno@clisp.org>
2364
2365         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2366         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2367         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2368         * modules/wcpcpy (Depends-on): Add extensions.
2369         * modules/wcpncpy (Depends-on): Likewise.
2370         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2371         systems.
2372         * doc/posix-functions/wcpncpy.texi: Likewise.
2373         * doc/posix-functions/wcwidth.texi: Likewise.
2374
2375 2011-03-31  Eric Blake  <eblake@redhat.com>
2376
2377         nonblocking: fix mingw test failures
2378         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2379         non-blocking flag on regular file.
2380         (get_nonblocking_flag): Set errno on invalid fd.
2381         * tests/test-nonblocking.c (main): Avoid test failure on
2382         directories if fchdir is not active.
2383         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2384
2385 2011-03-31  Bruno Haible  <bruno@clisp.org>
2386
2387         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2388         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2389         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2390         Reported by Simon Josefsson <simon@josefsson.org>.
2391
2392 2011-03-31  Bruno Haible  <bruno@clisp.org>
2393         and Eric Blake  <eblake@redhat.com>
2394
2395         nonblocking: new module
2396         * modules/nonblocking: New module.
2397         * modules/nonblocking-tests: Likewise.
2398         * lib/nonblocking.h: New file.
2399         * lib/nonblocking.c: Likewise.
2400         * tests/test-nonblocking.c: New test.
2401         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2402
2403 2011-03-30  Bruno Haible  <bruno@clisp.org>
2404
2405         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2406         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2407         instead of 'printf' format for GCC >= 4.4.
2408         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2409         (fprintf, printf, vfprintf, vprintf): Declare with
2410         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2411         the system's vfprintf() function.
2412         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2413
2414 2011-03-30  Eric Blake  <eblake@redhat.com>
2415
2416         passfd: fix scoping bug
2417         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2418         before sendmsg/recvmsg.
2419
2420         passfd: standardize coding conventions
2421         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2422         can be learned at compile time.
2423         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2424         ifdefs.
2425         (sendfd, recvfd): Follow gnulib code conventions.
2426
2427         passfd: fix incorrect sendmsg arguments
2428         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2429         incorrect msg_controllen value.
2430         * modules/passfd-tests (Depends-on): Check for alarm.
2431         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2432         Reported by Bastien ROUCARIES.
2433
2434 2011-03-30  Bruno Haible  <bruno@clisp.org>
2435
2436         c-strcasestr: Relicense under LGPLv2+.
2437         * modules/c-strcasestr (License): Change to LGPLv2+.
2438         Requested by Eric Blake, for libvirt.
2439
2440 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2441
2442         * users.txt: Add libidn2.  Fix libtasn1 link.
2443
2444 2011-03-30  Jim Meyering  <meyering@redhat.com>
2445
2446         tests: readlink* ("",... fails with EINVAL on newer kernels
2447         readlink and readlinkat have typically failed with ENOENT for
2448         the invalid, empty file name,  "".  However, with the advent
2449         of linux-2.6.39, they fail with EINVAL.
2450         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2451         when operating on the empty file name.
2452         * tests/test-readlink.h (test_readlink): Likewise.
2453
2454 2011-03-29  Bruno Haible  <bruno@clisp.org>
2455
2456         Relicense some modules under LGPLv2+, for libidn2.
2457         * modules/array-mergesort (License): Change to LGPLv2+.
2458         * modules/c-strcaseeq (License): Likewise.
2459         * modules/striconveh (License): Likewise.
2460         * modules/striconveha (License): Likewise.
2461         * modules/uniconv/base (License): Likewise.
2462         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2463         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2464         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2465         * modules/unictype/base (License): Likewise.
2466         * modules/unictype/bidiclass-of (License): Likewise.
2467         * modules/unictype/category-M (License): Likewise.
2468         * modules/unictype/category-none (License): Likewise.
2469         * modules/unictype/category-of (License): Likewise.
2470         * modules/unictype/category-test (License): Likewise.
2471         * modules/unictype/category-test-withtable (License): Likewise.
2472         * modules/unictype/combining-class (License): Likewise.
2473         * modules/unictype/joiningtype-of (License): Likewise.
2474         * modules/unictype/scripts (License): Likewise.
2475         * modules/uninorm/base (License): Likewise.
2476         * modules/uninorm/canonical-decomposition (License): Likewise.
2477         * modules/uninorm/composition (License): Likewise.
2478         * modules/uninorm/decompose-internal (License): Likewise.
2479         * modules/uninorm/decomposition-table (License): Likewise.
2480         * modules/uninorm/nfc (License): Likewise.
2481         * modules/uninorm/nfd (License): Likewise.
2482         * modules/uninorm/u32-normalize (License): Likewise.
2483         * modules/unistr/base (License): Likewise.
2484         * modules/unistr/u32-cpy (License): Likewise.
2485         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2486         * modules/unistr/u32-to-u8 (License): Likewise.
2487         * modules/unistr/u32-uctomb (License): Likewise.
2488         * modules/unistr/u8-check (License): Likewise.
2489         * modules/unistr/u8-mblen (License): Likewise.
2490         * modules/unistr/u8-mbtouc (License): Likewise.
2491         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2492         * modules/unistr/u8-mbtoucr (License): Likewise.
2493         * modules/unistr/u8-prev (License): Likewise.
2494         * modules/unistr/u8-strlen (License): Likewise.
2495         * modules/unistr/u8-to-u32 (License): Likewise.
2496         * modules/unistr/u8-uctomb (License): Likewise.
2497         * modules/unitypes (License): Likewise.
2498         Requested by Simon Josefsson.
2499
2500 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2501
2502         lib-symbol-visibility: Add a notice.
2503         * modules/lib-symbol-visibility (Notice): New field.
2504
2505 2011-03-29  Bruno Haible  <bruno@clisp.org>
2506
2507         getaddrinfo: Doc fix.
2508         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2509         section "fixed in Gnulib".
2510
2511 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2512
2513         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2514         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2515
2516 2011-03-26  Bruno Haible  <bruno@clisp.org>
2517
2518         unictype/property-byname: Reduce the number of load-time relocations.
2519         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2520         (UC_PROPERTY_INDEX_*): New enumeration values.
2521         (uc_property_byname): Convert an index from the lookup table to an
2522         uc_property_t.
2523         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2524         values.
2525
2526 2011-03-26  Bruno Haible  <bruno@clisp.org>
2527
2528         unictype/property-byname: Allow omitted word separators and aliases.
2529         * lib/unictype/pr_byname.gperf: Add property names without word
2530         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2531         for 'space'.
2532
2533 2011-03-26  Bruno Haible  <bruno@clisp.org>
2534
2535         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2536         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2537         also hyphens to space.
2538         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2539         without spaces.
2540         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2541
2542 2011-03-26  Bruno Haible  <bruno@clisp.org>
2543
2544         unictype/joiningtype-byname: Recognize long names as well.
2545         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2546         a long name.
2547         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2548         unictype/joiningtype_byname.h.
2549         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2550         * lib/unictype/joiningtype_byname.gperf: New file.
2551         * modules/unictype/joiningtype-byname (Files): Add
2552         lib/unictype/joiningtype_byname.gperf.
2553         (Depends-on): Add gperf.
2554         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2555         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2556         long names.
2557
2558         Tests for module 'unictype/joiningtype-longname'.
2559         * modules/unictype/joiningtype-longname-tests: New file.
2560         * tests/unictype/test-joiningtype_longname.c: New file.
2561
2562         New module 'unictype/joiningtype-longname'.
2563         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2564         * lib/unictype/joiningtype_longname.c: New file.
2565         * modules/unictype/joiningtype-longname: New file.
2566         * modules/unictype/joiningtype-all (Depends-on): Add
2567         unictype/joiningtype-longname.
2568
2569 2011-03-26  Bruno Haible  <bruno@clisp.org>
2570
2571         unictype/bidiclass-byname: Recognize long names as well.
2572         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2573         name.
2574         * lib/unictype/bidi_byname.c: Include <string.h>,
2575         unictype/bidi_byname.h.
2576         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2577         * lib/unictype/bidi_byname.gperf: New file.
2578         * modules/unictype/bidiclass-byname (Files): Add
2579         lib/unictype/bidi_byname.gperf.
2580         (Depends-on): Add gperf.
2581         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2582         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2583         long names.
2584
2585         Tests for module 'unictype/bidiclass-longname'.
2586         * modules/unictype/bidiclass-longname-tests: New file.
2587         * tests/unictype/test-bidi_longname.c: New file.
2588
2589         New module 'unictype/bidiclass-longname'.
2590         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2591         * lib/unictype/bidi_longname.c: New file.
2592         * modules/unictype/bidiclass-longname: New file.
2593         * modules/unictype/bidiclass-all (Depends-on): Add
2594         unictype/bidiclass-longname.
2595
2596 2011-03-26  Bruno Haible  <bruno@clisp.org>
2597
2598         unictype/bidi*: Rename modules.
2599         * modules/unictype/bidiclass-all: Renamed from
2600         modules/unictype/bidicategory-all.
2601         * modules/unictype/bidiclass-name: Renamed from
2602         modules/unictype/bidiclass-name.
2603         (Description): Update.
2604         * modules/unictype/bidiclass-name-tests: Renamed from
2605         modules/unictype/bidicategory-name-tests.
2606         * modules/unictype/bidiclass-byname: Renamed from
2607         modules/unictype/bidicategory-byname.
2608         (Description): Update.
2609         * modules/unictype/bidiclass-byname-tests: Renamed from
2610         modules/unictype/bidicategory-byname-tests.
2611         * modules/unictype/bidiclass-of: Renamed from
2612         modules/unictype/bidicategory-of.
2613         (Description): Update.
2614         * modules/unictype/bidiclass-of-tests: Renamed from
2615         modules/unictype/bidicategory-of-tests.
2616         * modules/unictype/bidiclass-test: Renamed from
2617         modules/unictype/bidicategory-test.
2618         (Description): Update.
2619         * modules/unictype/bidiclass-test-tests: Renamed from
2620         modules/unictype/bidicategory-test-tests.
2621         * modules/unictype/bidicategory-all: New file, a simple redirection.
2622         * modules/unictype/bidicategory-name: Likewise.
2623         * modules/unictype/bidicategory-byname: Likewise.
2624         * modules/unictype/bidicategory-of: Likewise.
2625         * modules/unictype/bidicategory-test: Likewise.
2626         * modules/unictype/property-bidi-* (Dependencies): Update.
2627         * lib/unictype/bidi_*.c: Update comment.
2628
2629 2011-03-26  Bruno Haible  <bruno@clisp.org>
2630
2631         unictype/bidi*: Rename functions, part 2.
2632         * modules/unictype/bidicategory-name (configure.ac): Update required
2633         libunistring version.
2634         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2635
2636 2011-03-25  Bruno Haible  <bruno@clisp.org>
2637
2638         New module 'unictype/combining-class-all'.
2639         * modules/unictype/combining-class-all: New file.
2640
2641         Tests for module 'unictype/combining-class-byname'.
2642         * modules/unictype/combining-class-byname-tests: New file.
2643         * tests/unictype/test-combiningclass_byname.c: New file.
2644
2645         New module 'unictype/combining-class-byname'.
2646         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2647         * lib/unictype/combiningclass_byname.c: New file.
2648         * lib/unictype/combiningclass_byname.gperf: New file.
2649         * modules/unictype/combining-class-byname: New file.
2650
2651         Tests for module 'unictype/combining-class-longname'.
2652         * modules/unictype/combining-class-longname-tests: New file.
2653         * tests/unictype/test-combiningclass_longname.c: New file.
2654
2655         New module 'unictype/combining-class-longname'.
2656         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2657         * lib/unictype/combiningclass_longname.c: New file.
2658         * modules/unictype/combining-class-longname: New file.
2659
2660         Tests for module 'unictype/combining-class-name'.
2661         * modules/unictype/combining-class-name-tests: New file.
2662         * tests/unictype/test-combiningclass_name.c: New file.
2663
2664         New module 'unictype/combining-class-name'.
2665         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2666         * lib/unictype/combiningclass_name.c: New file.
2667         * modules/unictype/combining-class-name: New file.
2668
2669 2011-03-25  Bruno Haible  <bruno@clisp.org>
2670
2671         unictype/combining-class: Rename source files.
2672         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2673         of unictype/combining.h.
2674         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2675         Update.
2676         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2677         * modules/unictype/combining-class (Description): Fix.
2678         (Files, Makefile.am): Update.
2679         * tests/unictype/test-combiningclass.c: Renamed from
2680         tests/unictype/test-combining.c.
2681         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2682
2683 2011-03-25  Bruno Haible  <bruno@clisp.org>
2684
2685         unictype: Update list of canonical combining classes.
2686         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2687
2688 2011-03-25  Bruno Haible  <bruno@clisp.org>
2689
2690         unictype/category-byname: Recognize long names as well.
2691         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2692         a long name.
2693         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2694         unictype/categ_byname.h.
2695         (UC_CATEGORY_INDEX_*): New enumeration values.
2696         (uc_general_category_byname): Use uc_general_category_lookup and
2697         convert from index to value.
2698         * lib/unictype/categ_byname.gperf: New file.
2699         * modules/unictype/category-byname (Files): Add
2700         lib/unictype/categ_byname.gperf.
2701         (Depends-on): Add gperf.
2702         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2703         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2704         long names.
2705
2706         Tests for module 'unictype/category-longname'.
2707         * modules/unictype/category-longname-tests: New file.
2708         * tests/unictype/test-categ_longname.c: New file.
2709
2710         New module 'unictype/category-longname'.
2711         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2712         * lib/unictype/categ_longname.c: New file.
2713         * modules/unictype/category-longname: New file.
2714         * modules/unictype/category-all (Depends-on): Add it.
2715
2716 2011-03-25  Bruno Haible  <bruno@clisp.org>
2717
2718         Tests for module 'unictype/category-LC'.
2719         * modules/unictype/category-LC-tests: New file.
2720         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2721
2722         New module 'unictype/category-LC'.
2723         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2724         (UC_CATEGORY_LC): New declaration.
2725         (UC_CASED_LETTER): New macro.
2726         * lib/gen-uni-tables.c (is_category_LC): New function.
2727         (output_categories): Also handle category LC.
2728         (UC_CATEGORY_MASK_LC): New enumeration value.
2729         (general_category_byname): Also handle category LC.
2730         * lib/unictype/categ_LC.c: New file.
2731         * lib/unictype/categ_LC.h: New file, automatically generated.
2732         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2733         category LC.
2734         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2735         * modules/unictype/category-LC: New file.
2736         * modules/unictype/category-byname (Depends-on): Add
2737         unictype/category-LC.
2738         * modules/unictype/category-all (Depends-on): Likewise.
2739
2740 2011-03-25  Eric Blake  <eblake@redhat.com>
2741
2742         xmalloc: revert yesterday's regression
2743         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2744         realloc's underlying behavior (allowing allocation of zero-size
2745         objects, especially if malloc-gnu is also in use).
2746
2747 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2748
2749         maint.mk: add missing version to VC-tag
2750         * top/maint.mk: git tag was missing actual tag name; add it.
2751
2752         valgrind: do leak checking, and exit with code 1 on error (not 0)
2753         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2754         to VALGRIND.
2755
2756 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2757
2758         posix-modules: say what it does.
2759         * posix-modules: Add a line to the --help output saying what it does.
2760
2761 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2762
2763         xmalloc: Do not leak if underlying realloc is C99 compatible.
2764         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2765         This avoids a leak on C99-based systems.  See
2766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2767
2768 2011-03-24  Eric Blake  <eblake@redhat.com>
2769
2770         realloc: document portability problem
2771         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2772         passing 0 size to realloc.
2773
2774 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2775
2776         doc: update users.txt
2777         * users.txt: Add cvsps, tmpwatch
2778
2779 2011-03-23  Matt Rice  <ratmice@gmail.com>
2780
2781         doc: update users.txt
2782         * users.txt: Add gdb.
2783
2784 2011-03-23  Jim Meyering  <meyering@redhat.com>
2785
2786         doc: update users.txt
2787         Looking through matches up to the following URL (there are still
2788         several more pages), I found several projects that use gnulib:
2789         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2790         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2791         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2792
2793 2011-03-22  Bruno Haible  <bruno@clisp.org>
2794
2795         unictype/bidi*: Rename functions.
2796         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2797         uc_bidi_class, uc_is_bidi_class): New declarations.
2798         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2799         uc_bidi_category_byname.
2800         (uc_bidi_category_byname): New function.
2801         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2802         u_bidi_category_name.
2803         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2804         (uc_bidi_category_name): New function.
2805         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2806         uc_bidi_category.
2807         (uc_bidi_category): New function.
2808         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2809         uc_is_bidi_category. Invoke uc_bidi_class.
2810         (uc_is_bidi_category): New function.
2811         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2812         instead of uc_bidi_category_byname.
2813         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2814         instead of uc_bidi_category_name.
2815         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2816         uc_bidi_category.
2817         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2818         instead of uc_is_bidi_category.
2819
2820 2011-03-21  Bruno Haible  <bruno@clisp.org>
2821
2822         New module 'unictype/joininggroup-all'.
2823         * modules/unictype/joininggroup-all: New file.
2824
2825         Tests for module 'unictype/joininggroup-of'.
2826         * modules/unictype/joininggroup-of-tests: New file.
2827         * tests/unictype/test-joininggroup_of.c: New file.
2828         * tests/unictype/test-joininggroup_of.h: New file, automatically
2829         generated by gen-uni-tables.
2830
2831         New module 'unictype/joininggroup-of'.
2832         * modules/unictype/joininggroup-of: New file.
2833         * lib/unictype/joininggroup_of.c: New file.
2834         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2835         gen-uni-tables.
2836
2837         Tests for module 'unictype/joininggroup-byname'.
2838         * modules/unictype/joininggroup-byname-tests: New file.
2839         * tests/unictype/test-joininggroup_byname.c: New file.
2840
2841         New module 'unictype/joininggroup-byname'.
2842         * modules/unictype/joininggroup-byname: New file.
2843         * lib/unictype/joininggroup_byname.c: New file.
2844         * lib/unictype/joininggroup_byname.gperf: New file.
2845
2846         Tests for module 'unictype/joininggroup-name'.
2847         * modules/unictype/joininggroup-name-tests: New file.
2848         * tests/unictype/test-joininggroup_name.c: New file.
2849
2850         New module 'unictype/joininggroup-name'.
2851         * modules/unictype/joininggroup-name: New file.
2852         * lib/unictype/joininggroup_name.c: New file.
2853         * lib/unictype/joininggroup_name.h: New file.
2854
2855         New module 'unictype/joiningtype-all'.
2856         * modules/unictype/joiningtype-all: New file.
2857
2858         Tests for module 'unictype/joiningtype-of'.
2859         * modules/unictype/joiningtype-of-tests: New file.
2860         * tests/unictype/test-joiningtype_of.c: New file.
2861         * tests/unictype/test-joiningtype_of.h: New file, automatically
2862         generated by gen-uni-tables.
2863
2864         New module 'unictype/joiningtype-of'.
2865         * modules/unictype/joiningtype-of: New file.
2866         * lib/unictype/joiningtype_of.c: New file.
2867         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2868         gen-uni-tables.
2869
2870         Tests for module 'unictype/joiningtype-byname'.
2871         * modules/unictype/joiningtype-byname-tests: New file.
2872         * tests/unictype/test-joiningtype_byname.c: New file.
2873
2874         New module 'unictype/joiningtype-byname'.
2875         * modules/unictype/joiningtype-byname: New file.
2876         * lib/unictype/joiningtype_byname.c: New file.
2877
2878         Tests for module 'unictype/joiningtype-name'.
2879         * modules/unictype/joiningtype-name-tests: New file.
2880         * tests/unictype/test-joiningtype_name.c: New file.
2881
2882         New module 'unictype/joiningtype-name'.
2883         * modules/unictype/joiningtype-name: New file.
2884         * lib/unictype/joiningtype_name.c: New file.
2885
2886         unictype: Add support for Arabic shaping properties.
2887         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2888         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2889         declarations.
2890         (UC_JOINING_GROUP_*): New enumeration values.
2891         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2892         declarations.
2893         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2894         (unicode_joining_type): New variable.
2895         (UC_JOINING_GROUP_*): New enumeration values.
2896         (unicode_joining_group): New variable.
2897         (fill_arabicshaping, joining_type_as_c_identifier,
2898         output_joining_type_test, output_joining_type,
2899         joining_group_as_c_identifier, output_joining_group_test,
2900         output_joining_group): New functions.
2901         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2902         fill_arabicshaping and output_joining_type_test, output_joining_type,
2903         output_joining_group_test, output_joining_group.
2904         Reported by Simon Josefsson.
2905
2906 2011-03-21  Jim Meyering  <meyering@redhat.com>
2907
2908         strftime: fix a bug in yesterday's change
2909         * lib/strftime.c (add): Accommodate width's initial value of -1.
2910         Otherwise, nstrftime would copy uninitialized data into
2911         the result buffer.
2912
2913 2011-03-21  Jim Meyering  <meyering@redhat.com>
2914
2915         tests: add strftime-tests module
2916         * tests/test-strftime.c: New file.
2917         * modules/strftime-tests: New module.
2918
2919 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         strftime: don't assume a byte count fits in 'int'
2922         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2923         found this problem by static analysis, using gcc -Wstrict-overflow
2924         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2925         on an integer overflow having undefined behavior, but it turns out
2926         that the argument is a size, which might not fit in 'int' anyway,
2927
2928 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2929
2930         stdio: don't require ignore_value around fwrite
2931
2932         This patch works around libc bug 11959
2933         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2934         Without this patch, applications must often write
2935         ignore_value (fwrite (...)) even though the ignore_value is
2936         not helpful here.  It's common to write many objects, using
2937         fwrite/printf/etc., and then use ferror to detect output error.
2938
2939         I considered making this patch optional, but decided against it,
2940         because libc is obviously being inconsistent here: there is no
2941         reason libc should insist that user code must inspect fwrite
2942         return's value without also insisting that it inspect printf's,
2943         putchar's, etc.  If user code wants to have a strict style where
2944         all these functions' values are checked (so that ferror need not
2945         be checked), we could add support for that style in a new gnulib
2946         module, but in the meantime it's better to be consistent and to
2947         support common usage.
2948
2949         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2950         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2951         that we are compiling in checking mode, and if not C++, and
2952         if not already wrapping fwrite for some other reason.
2953         (fwrite): #define to rpl_fwrite if the latter is defined.
2954
2955 2011-03-20  Bruno Haible  <bruno@clisp.org>
2956
2957         verror: Fix compilation error introduced on 2011-02-13.
2958         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2959         instead of __attribute__.
2960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2961
2962 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2963             Bruno Haible  <bruno@clisp.org>
2964
2965         socklen: do not depend on sys_socket
2966         While trying to modify Emacs to use gnulib's socklen module,
2967         I discovered a circular dependency: socklen depends on sys_socket
2968         and vice versa.  Emacs can use socklen, but it does not need
2969         sys_socket because it has its own substitute for sys/socket.h.
2970         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2971         gl_TYPE_SOCKLEN_T.
2972         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2973         gl_PREREQ_SYS_H_SOCKET.
2974         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2975         gl_PREREQ_SYS_H_SOCKET.
2976         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2977         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2978         * modules/socklen (Depends-on): Do not depend on sys_socket.
2979         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2980
2981 2011-03-20  Jim Meyering  <meyering@redhat.com>
2982
2983         maint.mk: sort file names *after* new transformation
2984         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2985         prefix would have led to an unwarranted failure in GNU parted.
2986         Sort after that transformation.
2987
2988 2011-03-19  Jim Meyering  <meyering@redhat.com>
2989
2990         maint.mk: fix po-file syntax-check rule
2991         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2992         Patch by Bruno Haible.
2993
2994 2011-03-19  Bruno Haible  <bruno@clisp.org>
2995
2996         socklen: Update comment.
2997         * m4/socklen.m4: Update comment about platforms.
2998
2999 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3000             Bruno Haible  <bruno@clisp.org>
3001
3002         inet_ntop, inet_pton: Simplify.
3003         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3004         documented to provide socklen_t and we already depend on sys_socket.
3005         * modules/inet_pton (Depends-on): Likewise.
3006         * lib/arpa_inet.in.h: Adjust comment.
3007
3008 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3009             Bruno Haible  <bruno@clisp.org>
3010
3011         netdb: Simplify.
3012         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3013         documented to provide socklen_t and we already depend on sys_socket.
3014         * lib/netdb.in.h: Adjust comment.
3015
3016 2011-03-19  Bruno Haible  <bruno@clisp.org>
3017
3018         sys_socket, netdb: Document problem with socklen_t.
3019         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3020         platforms.
3021         * doc/posix-headers/netdb.texi: Likewise.
3022
3023 2011-03-18  Eric Blake  <eblake@redhat.com>
3024
3025         maint.mk: let po check work in VPATH build
3026         * top/maint.mk (po_file): Allow cfg.mk override.
3027         (sc_po_check): Allow VPATH use.
3028         Reported by Jiri Denemark.
3029
3030 2011-03-16  Jim Meyering  <meyering@redhat.com>
3031
3032         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3033         Before, you would have had to create one .x-sc_ file per rule in order
3034         to exempt offending files.  Now, you may instead use a Make variable --
3035         usually defined in cfg.mk -- whose name identifies the affected rule.
3036         * top/maint.mk (_sc_excl): Define.
3037         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3038         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3039
3040 2011-03-13  Bruno Haible  <bruno@clisp.org>
3041
3042         ignore-value tests: Avoid warnings.
3043         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3044         empty for gcc < 3.4.
3045
3046 2011-03-13  Bruno Haible  <bruno@clisp.org>
3047
3048         passfd: Fix link error on Solaris.
3049         * modules/passfd (Description): Correct.
3050         (Depends-on): Add socketlib.
3051         (Link): New section.
3052         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3053
3054 2011-03-13  Bruno Haible  <bruno@clisp.org>
3055
3056         passfd: Fix link error on AIX 5.2.
3057         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3058
3059 2011-03-13  Bruno Haible  <bruno@clisp.org>
3060
3061         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3062         * lib/sys_socket.in.h: Include <stddef.h>.
3063         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3064         CMSG_FIRSTHDR. Remove unused variable.
3065
3066 2011-03-13  Bruno Haible  <bruno@clisp.org>
3067
3068         passfd: Fix compilation error on OpenBSD.
3069         * lib/passfd.c: Include <sys/uio.h>.
3070
3071 2011-03-13  Bruno Haible  <bruno@clisp.org>
3072
3073         passfd test: Fix warnings.
3074         * tests/test-passfd.c: Include <sys/wait.h>.
3075         (main): Fix typo.
3076
3077 2011-03-13  Bruno Haible  <bruno@clisp.org>
3078
3079         passfd module, part 4, tweaks.
3080         * tests/test-passfd.c: Reorder includes.
3081         (main): Fix perror and printf calls.
3082
3083 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3084
3085         passfd module, part 4.
3086         * modules/passfd-tests: New file.
3087         * tests/test-passfd.c: New file.
3088
3089 2011-03-13  Jim Meyering  <meyering@redhat.com>
3090
3091         Makefile: rely on GNU make; derive syntax-check rule names
3092         Rather than requiring that each sc_ rule be listed as a dependent
3093         of "check", use features of GNU make to derive the list.
3094         * Makefile (syntax-check-rules): Define.
3095         (check): Depend on the new variable, not the hard-coded list.
3096
3097 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3098             Bruno Haible  <bruno@clisp.org>
3099
3100         passfd module, part 3.
3101         * lib/passfd.h (recvfd): Add a flags argument.
3102         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3103         (recvfd): Add a flags argument.
3104         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3105         exists.
3106         * modules/passfd (Depends-on): Add cloexec.
3107         Suggested by Eric Blake.
3108
3109 2011-03-13  Bruno Haible  <bruno@clisp.org>
3110
3111         passfd module, part 2, tweaks.
3112         * modules/passfd (Files): Reorder.
3113         (Depends-on): Remove errno.
3114         (Include): Remove <sys/socket.h>, <sys/un.h>.
3115         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3116         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3117         specification header. Include <sys/socket.h> always. Don't include
3118         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3119         (sendfd): Clarify that it sets errno when it fails.
3120         (recvfd): Fix specification.
3121
3122 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3123
3124         passfd module, part 2.
3125         * modules/passfd: New file.
3126         * lib/passfd.h: New file.
3127         * lib/passfd.c: New file.
3128
3129 2011-03-12  Bruno Haible  <bruno@clisp.org>
3130
3131         wcswidth, mbswidth: Avoid integer overflow.
3132         * lib/wcswidth.c: Include <limits.h>.
3133         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3134         * lib/mbswidth.c: Include <limits.h>.
3135         (mbsnwidth): Avoid 'int' overflow.
3136         Reported by Jim Meyering.
3137
3138 2011-03-12  Bruno Haible  <bruno@clisp.org>
3139
3140         futimens, utimensat: Avoid endless recursion on Solaris 10.
3141         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3142         Solaris.
3143         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3144         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3145
3146 2011-03-11  Jim Meyering  <meyering@redhat.com>
3147
3148         maint.mk: relax a regexp to accommodate other formatting styles
3149         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3150         between "ngettext" and the following "(".
3151
3152 2011-03-11  Pádraig Brady <P@draigBrady.com>
3153
3154         maint.mk: suppress a false positive warning
3155         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3156         diagnostics are marked with ngettext.
3157
3158 2011-03-10  Eric Blake  <eblake@redhat.com>
3159
3160         wchar: add explicit dependencies, for Tru64
3161         * modules/mbmemcasecoll (Depends-on): Add wchar.
3162         * modules/mbtowc (Depends-on): Likewise.
3163         * modules/vasnprintf (Depends-on): Likewise.
3164         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3165         * modules/wctomb (Depends-on): Likewise.
3166         Reported by Peter O'Gorman.
3167
3168 2011-03-08  Bruno Haible  <bruno@clisp.org>
3169
3170         passfd module, part 1, tweaks.
3171         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3172         Improve indentation. Improve AC_MSG_CHECKING messages.
3173         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3174         gl_SOCKET_FAMILIES.
3175
3176 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3177
3178         passfd module, part 1.
3179         * m4/afunix.m4: New file.
3180         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3181         sockets.
3182
3183 2011-03-08  Bruno Haible  <bruno@clisp.org>
3184
3185         regex-quote: New API.
3186         * lib/regex-quote.h: Include <stdbool.h>.
3187         (struct regex_quote_spec): New type.
3188         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3189         New declarations.
3190         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3191         'const struct regex_quote_spec *' argument.
3192         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3193         (pcre_special): New constant.
3194         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3195         New functions.
3196         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3197         'const struct regex_quote_spec *' argument.
3198         * modules/regex-quote (Depends-on): Add stdbool.
3199         * tests/test-regex-quote.c (check): Update for new API. Add test for
3200         anchored results.
3201         * NEWS: Mention the API change.
3202         Reported by Reuben Thomas and Eric Blake.
3203
3204 2011-03-06  Bruno Haible  <bruno@clisp.org>
3205
3206         regex-quote: Fix creation of POSIX extended regular expressions.
3207         * lib/regex-quote.c (ere_special): Add grouping and alternation
3208         operators.
3209
3210 2011-03-05  Bruno Haible  <bruno@clisp.org>
3211
3212         doc: Improve doc regarding autopoint vs. gnulib.
3213         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3214         disable autopoint while running autoreconf.
3215         Suggested by Ralf Wildenhues.
3216
3217 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3218
3219         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3220         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3221
3222 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3223
3224         parse-duration: remove xalloc.h dependency
3225         * lib/parse-duration.c (parse_period): handle NULL return from
3226         strdup instead of calling xstrdup().
3227         * modules/parse-duration: remove "xalloc" dependency
3228
3229 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3230
3231         bootstrap: honor m4_base when running aclocal
3232         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3233
3234 2011-03-02  Jim Meyering  <meyering@redhat.com>
3235
3236         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3237         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3238         on request from Matt Booth.
3239
3240 2011-03-01  Eric Blake  <eblake@redhat.com>
3241
3242         test-link: work on Hurd
3243         * tests/test-link.h (test_link): Hurd rejects linking directories
3244         with EISDIR instead of the POSIX-mandated EPERM.
3245
3246 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3247
3248         stdio: simplify by moving files to printf-posix, sigpipe
3249         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3250         since this symbol is needed only if printf is replaced.
3251         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3252         Require gl_ASM_SYMBOL_PREFIX.
3253         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3254         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3255         (Depends-on): Add 'raise'.
3256         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3257         * modules/stdio (Files): Remove lib/stdio-write.c,
3258         m4/asm-underscore.m4.
3259         (Depends-on): Remove 'raise'.
3260
3261         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3262         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3263         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3264         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3265
3266 2011-02-28  Bruno Haible  <bruno@clisp.org>
3267
3268         localcharset: Assume ANSI C behaviour of free().
3269         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3270         calling free().
3271         Suggested by Simon Josefsson <simon@josefsson.org>.
3272
3273 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3274             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3275             Bruno Haible  <bruno@clisp.org>  (tiny change)
3276
3277         On Cygwin, use /proc file system instead of win32 API.
3278         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3279         Win32 file names.
3280         (DllMain): Simplify by removing Cygwin specific code.
3281         (find_shared_library_fullname): Use Linux specific implementation also
3282         for Cygwin.
3283         (get_shared_library_fullname): Update accordingly.
3284         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3285         Win32 file names.
3286         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3287         Cygwin specific code.
3288
3289 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3290             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3291
3292         Fix OpenMP flag detection for various Fortran compilers.
3293         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3294         OpenMP-conditional compilation construct, to force compile
3295         failure with missing OpenMP flag.
3296         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3297
3298 2011-02-25  Eric Blake  <eblake@redhat.com>
3299
3300         strstr: expand test coverage
3301         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3302         compilation.
3303         * tests/test-memmem.c (main): Duplicate tests.
3304         * tests/test-strcasestr.c (main): Likewise.
3305         * tests/test-c-strcasestr.c (main): Likewise.
3306
3307 2011-02-25  Jim Meyering  <meyering@redhat.com>
3308
3309         maint.mk: detect missing-NL-at-EOF, too
3310         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3311         it also detects when a file lacks a newline at EOF.
3312         (require_exactly_one_NL_at_EOF_): Renamed from
3313         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3314         since people may well have .x-sc_... file names tied to the
3315         existing name.  Suggested by Eric Blake.
3316
3317 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3318
3319         dirname: move m4/dos.m4 functionality into lib/dosname.h
3320
3321         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3322         extracts symbols from it, puts them into config.h; but it's much
3323         easier to use the symbols directly.  filename.h already does this,
3324         but it disagrees with dos.m4 in some respects.  This patch
3325         introduces a different include file dosname.h that packages up
3326         dos.m4, and then later we can work on merging filename.h and
3327         dosname.h.  Applications that need only the easy-to-configure
3328         symbols should consider including dosname.h rather than dirname.h.
3329         * NEWS: Mention incompatible changes.
3330         * m4/dos.m4: Remove.
3331         * lib/dosname.h, modules/dosname: New files.
3332         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3333         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3334         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3335         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3336         Include dosname.h, not dirname.h.
3337         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3338         Include dosname.h, for definitions of symbols like ISSLASH
3339         that used to be in config.h.
3340         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3342         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3343         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3344         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3345         * modules/rmdir (Files): Likewise.
3346         * modules/stat (Files): Likewise.
3347         * modules/unlink (Files): Likewise.
3348         * modules/dirname-lgpl (Depends-on): Add dosname.
3349         * modules/lstat (Depends-on): Likewise.
3350         * modules/openat (Depends-on): Likewise.
3351         * modules/rmdir (Depends-on): Likewise.
3352         * modules/savewd (Depends-on): Likewise.
3353         * modules/stat (Depends-on): Likewise.
3354         * modules/unlink (Depends-on): Likewise.
3355         * modules/openat (Depends-on): Remove dirname-lgpl.
3356         * modules/savewd (Depends-on): Likewise.
3357         * tests/test-dirname.c: Do not use removed symbols like
3358         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3359         the remaining symbols, e.g., ISSLASH ('\\').
3360
3361 2011-02-25  Eric Blake  <eblake@redhat.com>
3362
3363         strstr: revert patches that introduced bug and pessimization
3364         * lib/str-two-way.h: Add another reference.
3365         (two_way_short_needle, two_way_long_needle): Revert changes from
3366         2011-02-24; they pessimize search speed.
3367         (critical_factorization): Partially revert changes from
3368         2010-06-22; they violate the requirement that the left half of the
3369         needle be smaller than the period of the needle.
3370
3371 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3372
3373         filenamecat: remove unnecessary dependency on dirname-lgpl
3374         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3375         is no direct dependency, just an indirect one via filenamecat-lgpl.
3376
3377         remove: remove unnecessary use of m4/dos.m4
3378         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3379         * modules/remove (FILES): Remove m4/dos.m4.
3380
3381         * lib/openat-proc.c: Don't include dirname.h; not needed.
3382
3383         backupfile: remove unnecessary use of m4/dos.m4
3384         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3385         of its symbols are used by the backupfile code.  backupfile.c does
3386         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3387         for the rare case of programs that want all their backup file
3388         names to live within 8+3 limits, and dos.m4 doesn't address that.
3389         * modules/backupfile (Files): Remove m4/dos.m4.
3390
3391 2011-02-24  Jim Meyering  <meyering@redhat.com>
3392
3393         strstr: fix a bug whereby strstr would mistakenly return NULL
3394         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3395         in period calculation.
3396         (two_way_long_needle): Likewise.
3397         The original problem was reported by Mike Stump in
3398         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3399         Ralf Wildenhues provided the short needle and haystack.
3400         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3401         Add a more involved test to trigger the bug in two_way_long_needle.
3402
3403 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3404
3405         gnulib-tool: remove use of bold display in help screen
3406         * gnulib-tool (func_usage): Do not use bold display anymore in the
3407         help screen.  That was just meant to be a temporary emphasis for a
3408         backward-incompatible change.
3409
3410 2011-02-23  Bruno Haible  <bruno@clisp.org>
3411
3412         Fix misindentation of preprocessor directives.
3413         * lib/argp-namefrob.h: Reindent preprocessor directives.
3414         * lib/getopt_int.h (struct _getopt_data): Likewise.
3415         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3416         * lib/vasnprintf.c (decode_long_double): Likewise.
3417         * tests/test-argmatch.c: Insert blank lines, for clarity.
3418         * tests/test-exclude.c: Likewise.
3419
3420 2011-02-22  Bruno Haible  <bruno@clisp.org>
3421
3422         ioctl: Fix for MacOS X in 64-bit mode.
3423         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3424         value.
3425         Suggested by Eric Blake.
3426         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3427
3428 2011-02-22  Jim Meyering  <meyering@redhat.com>
3429
3430         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3431         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3432         in lib/.
3433
3434 2011-02-22  Eric Blake  <eblake@redhat.com>
3435
3436         maint: avoid any CDPATH issue
3437         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3438
3439         maint: adjust cpp indentation for my modules, as well
3440         * Makefile (sc_cpp_indent_check): Add my name.
3441         * lib/fbufmode.c: Filter through cppi.
3442         * lib/fpurge.c: Likewise.
3443         * lib/freadable.c: Likewise.
3444         * lib/freading.c: Likewise.
3445         * lib/fwritable.c: Likewise.
3446         * lib/fwriting.c: Likewise.
3447         * lib/sigaction.c: Likewise.
3448
3449 2011-02-22  Jim Meyering  <meyering@redhat.com>
3450
3451         maint: adjust cpp indentation to reflect nesting depth
3452         I.e., in a block of code that begins with an unnested "#if",
3453         put one space between the "#" in column 1 and following token.
3454         For example,
3455         -#include <sys/vfs.h>
3456         +# include <sys/vfs.h>
3457         Do this only in .c files that are part of a module I maintain.
3458         * lib/linkat.c: Filter through cppi.
3459         * lib/nanosleep.c: Likewise.
3460         * lib/openat.c: Likewise.
3461         * lib/openat-die.c: Likewise.
3462         * lib/dup3.c: Likewise.
3463         * lib/fchownat.c: Likewise.
3464         * lib/flock.c: Likewise.
3465         * lib/fsync.c: Likewise.
3466         * lib/fts.c: Likewise.
3467         * lib/getpass.c: Likewise.
3468         * lib/gettimeofday.c: Likewise.
3469         * lib/userspec.c: Likewise.
3470         * Makefile (sc_cpp_indent_check): New rule, to check this.
3471
3472 2011-02-22  Bruno Haible  <bruno@clisp.org>
3473
3474         New module 'wctomb'.
3475         * lib/stdlib.in.h (wctomb): New declaration.
3476         * lib/wctomb.c: New file.
3477         * lib/wctomb-impl.h: New file.
3478         * m4/wctomb.m4: New file.
3479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3480         REPLACE_WCTOMB.
3481         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3482         REPLACE_WCTOMB.
3483         * modules/wctomb: New file.
3484         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3485         * doc/posix-functions/wctomb.texi: Mention the new module.
3486         * modules/wctob (Depends-on): Add wctomb.
3487
3488 2011-02-22  Bruno Haible  <bruno@clisp.org>
3489
3490         New module 'mbtowc'.
3491         * lib/stdlib.in.h (mbtowc): New declaration.
3492         * lib/mbtowc.c: New file.
3493         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3494         * m4/mbtowc.m4: New file.
3495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3496         REPLACE_MBTOWC.
3497         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3498         REPLACE_MBTOWC.
3499         * modules/mbtowc: New file.
3500         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3501         * doc/posix-functions/mbtowc.texi: Mention the new module.
3502         * modules/btowc (Depends-on): Add mbtowc.
3503
3504 2011-02-22  Bruno Haible  <bruno@clisp.org>
3505
3506         wcrtomb: Add more tests for native Windows platforms.
3507         * tests/test-wcrtomb-w32-1.sh: New file.
3508         * tests/test-wcrtomb-w32-2.sh: New file.
3509         * tests/test-wcrtomb-w32-3.sh: New file.
3510         * tests/test-wcrtomb-w32-4.sh: New file.
3511         * tests/test-wcrtomb-w32-5.sh: New file.
3512         * tests/test-wcrtomb-w32.c: New file.
3513         * modules/wcrtomb-tests (Files): Add them.
3514         (Makefile.am): Arrange to run these tests.
3515         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3516         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3517
3518 2011-02-20  Bruno Haible  <bruno@clisp.org>
3519
3520         wcrtomb: Enhance test.
3521         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3522
3523 2011-02-20  Bruno Haible  <bruno@clisp.org>
3524
3525         mbrtowc: Tiny optimization.
3526         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3527
3528 2011-02-20  Jim Meyering  <meyering@redhat.com>
3529
3530         test-exclude.c: remove unmatched #endif
3531         * tests/test-exclude.c: Remove stray #endif, left over from
3532         the change of a week ago.
3533
3534 2011-02-19  Jim Meyering  <meyering@redhat.com>
3535
3536         git-version-gen: skip "-dirty" check when appropriate
3537         * build-aux/git-version-gen: Don't run any git commands when the
3538         version string comes from .tarball-version.  Prior to this, we
3539         would run git update-index --refresh even from a just-unpacked
3540         tarball directory, and that could affect a .git/ directory in a
3541         parent of the build directory.  Reported by Mike Frysinger.
3542
3543 2011-02-19  Bruno Haible  <bruno@clisp.org>
3544
3545         unictype/property-byname: Reduce the size of the 'data' segment.
3546         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3547
3548 2011-02-19  Bruno Haible  <bruno@clisp.org>
3549
3550         unictype/scripts: Reduce the size of the 'data' segment.
3551         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3552         '%pic'.
3553         * lib/unictype/scripts_byname.gperf: Regenerated.
3554
3555 2011-02-19  Bruno Haible  <bruno@clisp.org>
3556
3557         stdint: Update documentation.
3558         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3559
3560 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3561
3562         stdint: omit redundant check for wchar.h
3563         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3564         always tests whether wchar.h exists, so remove the now-redundant test.
3565
3566 2011-02-18  Bruno Haible  <bruno@clisp.org>
3567
3568         stdint: Cut dependency to module 'wchar'.
3569         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3570         include the necessary prerequisites.
3571         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3572         * modules/stdint (Depends-on): Remove wchar.
3573         (Makefile.am): Substitute HAVE_WCHAR_H.
3574         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3575
3576 2011-02-18  Eric Blake  <eblake@redhat.com>
3577
3578         longlong: skip, rather than fail, on cross-compilation
3579         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3580         when cross-compiling; regression from 2011-02-16.
3581
3582 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3583
3584         * NEWS: Mention 2011-02-08 change to stdlib.
3585
3586 2011-02-17  Bruno Haible  <bruno@clisp.org>
3587
3588         getloadavg: Add comments about platforms.
3589         * m4/getloadavg.m4: Add comment.
3590         * lib/getloadavg.c: Likewise.
3591
3592 2011-02-17  Bruno Haible  <bruno@clisp.org>
3593
3594         getloadavg: Fix link error on Solaris 2.6.
3595         * modules/getloadavg (Link): New section.
3596         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3597         linking test-getloadavg.
3598         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3599         getloadavg.
3600
3601 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3602
3603         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3604         It was 'int', but this doesn't match the IRIX 6.5 manual.
3605         Suggested by Bruno Haible in
3606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3607
3608 2011-02-17  Bruno Haible  <bruno@clisp.org>
3609
3610         havelib: Fix comments.
3611         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3612         change.
3613
3614 2011-02-17  Bruno Haible  <bruno@clisp.org>
3615
3616         havelib: Update config.rpath.
3617         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3618
3619 2011-02-17  Bruno Haible  <bruno@clisp.org>
3620
3621         getloadavg test: Add some plausibility checks.
3622         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3623         is improbable.
3624
3625 2011-02-16  Eric Blake  <eblake@redhat.com>
3626
3627         maintainer-makefile: make syntax-check a no-op from tarballs
3628         * top/maint.mk (no-vc-detected): New rule.
3629         (local-checks-available): Use it to avoid hanging if someone tries
3630         'make syntax-check' from a tarball.  Also append to any non-syntax
3631         checks already defined in cfg.mk.
3632
3633 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3634
3635         longlong: tune, particularly for common case of c99
3636
3637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3638         or running anything if c99, or if unsigned long long int does not
3639         work.  In either case, we know the answer without further tests.
3640         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3641         it at most once, and use its results for both long long int and
3642         unsigned long long int.  This is more likely to be efficient in
3643         the common case where the program wants to check for both long
3644         long int and unsigned long long int.
3645         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3646         since the answer is already known.
3647
3648 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         getloadavg: set errno
3651         * lib/getloadavg.c: Set errno when returning -1.  If no other
3652         error number looks appropriate, set it to ENOSYS if the getloadavg
3653         looks like it can't possibly ever work, ENOTSUP otherwise.
3654         Suggested by Bruno Haible in
3655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3656
3657         getloadavg: trim unused parts and speed up 'configure'
3658         * NEWS: Document this.
3659         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3660         always compiled if getloadavg is absent.
3661         Move test code to ...
3662         * tests/test-getloadavg.c: New file, containing previous
3663         contents of test from lib/getloadavg.c.  It also contains
3664         suggestions by Bruno Haible in
3665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3666         * modules/getloadavg-tests: New file.
3667         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3668         Do tests in the same order as they're needed for getloadavg.c.
3669         Omit setgid-related tests that generate symbols KMEM_GROUP,
3670         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3671         Do only the tests that are needed to see whether the system has
3672         getloadavg, moving the other tests into ...
3673         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3674         NLIST_NAME_UNION; nobody should be using it.  Do not define
3675         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3676         relevant, as the user of this module shouldn't care how getloadavg
3677         is implemented.
3678
3679         getloadavg: omit unused var
3680         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3681
3682 2011-02-15  Jim Meyering  <meyering@redhat.com>
3683
3684         doc: update users.txt
3685         * users.txt: Update iwhd's URL.
3686
3687 2011-02-13  Bruno Haible  <bruno@clisp.org>
3688
3689         Consistent macro naming for macros that use GCC __attribute__.
3690         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3691         _ATTRIBUTE_NONNULL_.
3692         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3693         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3694         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3695         ATTRIBUTE_DEPRECATED.
3696         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3697         ATTRIBUTE_NORETURN.
3698         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3699         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3700         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3701         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3702         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3703         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3704         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3705         ATTRIBUTE_SENTINEL.
3706         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3707         ATTRIBUTE_RETURN_CHECK.
3708         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3709         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3710         ATTRIBUTE_NORETURN.
3711         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3712         Reported by Paul Eggert.
3713
3714 2011-02-13  Bruno Haible  <bruno@clisp.org>
3715
3716         Don't interfere with a program's definition of __attribute__.
3717         * lib/argp.h (__attribute__): Remove definition.
3718         (_GL_ATTRIBUTE_FORMAT): New macro.
3719         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3720         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3721         (_GL_ATTRIBUTE_FORMAT): New macro.
3722         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3723         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3724         GCC 3 or newer.
3725         * lib/error.h (__attribute__): Remove definition.
3726         (_GL_ATTRIBUTE_FORMAT): New macro.
3727         (error, error_at_line): Use it.
3728         * lib/hash.h (__attribute__): Remove definition.
3729         (ATTRIBUTE_WUR): Update definition. Define always.
3730         * lib/openat.h (__attribute__): Remove definition.
3731         (ATTRIBUTE_NORETURN): Update definition. Define always.
3732         * lib/sigpipe-die.h (__attribute__): Remove definition.
3733         (ATTRIBUTE_NORETURN): Update definition. Define always.
3734         * lib/vasnprintf.h (__attribute__): Remove definition.
3735         (_GL_ATTRIBUTE_FORMAT): New macro.
3736         (asnprintf, vasnprintf): Use it.
3737         * lib/xalloc.h (__attribute__): Remove definition.
3738         (ATTRIBUTE_NORETURN): Update definition. Define always.
3739         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3740         * lib/xmemdup0.h (__attribute__): Remove definition.
3741         (ATTRIBUTE_NORETURN): Update definition. Define always.
3742         * lib/xprintf.h (__attribute__): Remove definition.
3743         (_GL_ATTRIBUTE_FORMAT): New macro.
3744         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3745         * lib/xstrtol.h (__attribute__): Remove definition.
3746         (ATTRIBUTE_NORETURN): Update definition. Define always.
3747         * lib/xvasprintf.h (__attribute__): Remove definition.
3748         (_GL_ATTRIBUTE_FORMAT): New macro.
3749         (xasprintf, xvasprintf): Use it.
3750         * tests/test-argmatch.c (__attribute__): Remove definition.
3751         (ATTRIBUTE_NORETURN): Update definition. Define always.
3752         * tests/test-exclude.c (__attribute__): Remove definition.
3753         (ATTRIBUTE_NORETURN): Update definition. Define always.
3754         Reported by Paul Eggert.
3755
3756 2011-02-13  Bruno Haible  <bruno@clisp.org>
3757
3758         mbrtowc: Add more tests for native Windows platforms.
3759         * tests/test-mbrtowc-w32-1.sh: New file.
3760         * tests/test-mbrtowc-w32-2.sh: New file.
3761         * tests/test-mbrtowc-w32-3.sh: New file.
3762         * tests/test-mbrtowc-w32-4.sh: New file.
3763         * tests/test-mbrtowc-w32-5.sh: New file.
3764         * tests/test-mbrtowc-w32.c: New file.
3765         * modules/mbrtowc-tests (Files): Add them.
3766         (Makefile.am): Arrange to run these tests.
3767         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3768         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3769
3770 2011-02-13  Bruno Haible  <bruno@clisp.org>
3771
3772         mbrtowc: Work around native Windows bug.
3773         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3774         guess when no suitable locale for testing was found.
3775         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3776
3777 2011-02-13  Bruno Haible  <bruno@clisp.org>
3778
3779         mbsinit: Work around mingw bug.
3780         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3781         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3782         Windows.
3783         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3784
3785 2011-02-13  Bruno Haible  <bruno@clisp.org>
3786
3787         mbsinit: Don't crash for a NULL argument.
3788         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3789         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3790
3791 2011-02-13  Bruno Haible  <bruno@clisp.org>
3792
3793         Don't interfere with a program's definition of __attribute__.
3794         * lib/stdio.in.h (__attribute__): Remove definition.
3795         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3796         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3797         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3798         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3799         * lib/string.in.h (__attribute__): Remove definition.
3800         Reported by Paul Eggert.
3801
3802 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3803
3804         stdlib: don't get in the way of non-GCC __attribute__
3805         See thread starting at
3806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3807         Revert previous stdlib change, installing the following instead:
3808         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3809         to get in the way of a non-GCC compiler that supports __attribute__.
3810         (_GL_ATTRIBUTE_RETURN): New macro.
3811         (_Exit): Use it instead of __attribute__.
3812
3813 2011-02-12  Bruno Haible  <bruno@clisp.org>
3814
3815         quotearg test: Avoid test failure on mingw.
3816         * tests/test-quotearg.sh: Convert the locale identifier from native
3817         Windows syntax to Unix syntax.
3818
3819 2011-02-12  Bruno Haible  <bruno@clisp.org>
3820
3821         setlocale: Prefer gnulib's override over libintl's override.
3822         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3823         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3824         GNULIB_defined_setlocale is set.
3825
3826 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3827
3828         stdlib: support non-GCC __attribute__
3829
3830         Fix a serious and tricky problem encountered when attempting to
3831         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3832         5.5, but it crashed due to memory corruption on Solaris 10 with
3833         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3834         bits that are otherwise zero.  This tagging is optional inside
3835         Emacs but is preferred and is used when __attribute__ ((__aligned
3836         (8))) works, as it does with both recent-enough GCC and with Sun C
3837         5.11.  However, Sun C 5.11 is not GCC and does not #define
3838         __GNUC__ and __GNUC_MINOR__.
3839
3840         When I added the getloadavg module to Emacs, it brought in
3841         stdlib.in.h, which contained this fragment:
3842
3843            #ifndef __attribute__
3844            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3845            #  define __attribute__(Spec)   /* empty */
3846            # endif
3847            #endif
3848
3849         When files that include <stdlib.h> were compiled with Sun C 5.11,
3850         the above code disabled __attribute__ ((__aligned (8))), which
3851         caused variables to not be properly aligned, which eventually led
3852         to the pointer corruption mentioned above.  (This was a bit hard
3853         to diagnose, unfortunately.)
3854
3855         Several "#define __attribute__(X) /* empty */" code snippets need
3856         to be eradicated from Gnulib to work with non-GCC compilers that
3857         support __attribute__.  The Autoconf way to do this is to test for
3858         each kind of attribute that we want support for, and selectively
3859         enable that in source code.
3860
3861         Fix this problem just for stdlib.h, by adding a test for the
3862         __noreturn__ attribute, and change stdlib.in.h to use that test
3863         when needed.  This technique can be easily generalized to the
3864         other *.in.h files and attributes, and a similar technique can be
3865         used for *.h and *.c files.  This patch is enough to solve the
3866         problem for Emacs + getloadavg, and I thought I'd publish it for
3867         feedback before undertaking further, similar fixes in other
3868         modules.
3869
3870         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3871         because it's not needed for stdlib.h.  It merely substitutes the
3872         value directly into stdlib.h.  We may well need to #define it, or
3873         similar symbols, for other modules, but it's nice to also have an
3874         option to not #define it for applications like Emacs that do not
3875         need it.
3876
3877         * lib/stdlib.in.h (__attribute__): Do not #define.
3878         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3879         be defined only if the _Exit module is also used.
3880         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3882         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3883         platforms.
3884         * modules/_Exit (Files): Add m4/attribute.m4.
3885         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3886         * m4/attribute.m4: New file.
3887
3888 2011-02-12  Bruno Haible  <bruno@clisp.org>
3889
3890         wcsrtombs: Work around bug on native Windows.
3891         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3892         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3893         instead of len.
3894         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3895
3896 2011-02-12  Bruno Haible  <bruno@clisp.org>
3897
3898         mbsrtowcs: Work around bug on native Windows.
3899         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3900         against mingw bug.
3901         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3902
3903 2011-02-12  Bruno Haible  <bruno@clisp.org>
3904
3905         Avoid setlocale bugs in tests.
3906         * modules/btowc (Dependencies): Add setlocale.
3907         * modules/c-strcase (Dependencies): Likewise.
3908         * modules/mbmemcasecmp (Dependencies): Likewise.
3909         * modules/mbmemcasecoll (Dependencies): Likewise.
3910         * modules/mbrtowc (Dependencies): Likewise.
3911         * modules/mbscasecmp (Dependencies): Likewise.
3912         * modules/mbscasestr (Dependencies): Likewise.
3913         * modules/mbschr (Dependencies): Likewise.
3914         * modules/mbscspn (Dependencies): Likewise.
3915         * modules/mbsinit (Dependencies): Likewise.
3916         * modules/mbsncasecmp (Dependencies): Likewise.
3917         * modules/mbsnrtowcs (Dependencies): Likewise.
3918         * modules/mbspbrk (Dependencies): Likewise.
3919         * modules/mbspcasecmp (Dependencies): Likewise.
3920         * modules/mbsrchr (Dependencies): Likewise.
3921         * modules/mbsrtowcs (Dependencies): Likewise.
3922         * modules/mbsspn (Dependencies): Likewise.
3923         * modules/mbsstr (Dependencies): Likewise.
3924         * modules/nl_langinfo (Dependencies): Likewise.
3925         * modules/quotearg (Dependencies): Likewise.
3926         * modules/unicase/locale-language (Dependencies): Likewise.
3927         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3928         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3929         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3930         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3931         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3932         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3933         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3934         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3935         * modules/vasnprintf-posix (Dependencies): Likewise.
3936         * modules/wcrtomb (Dependencies): Likewise.
3937         * modules/wcsnrtombs (Dependencies): Likewise.
3938         * modules/wcsrtombs (Dependencies): Likewise.
3939
3940 2011-02-12  Bruno Haible  <bruno@clisp.org>
3941
3942         setlocale: Workaround native Windows bug.
3943         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3944         succeeds but sets LC_CTYPE to "C", report a failure.
3945         * tests/test-setlocale2.sh: New file.
3946         * tests/test-setlocale2.c: New file.
3947         * modules/setlocale-tests (Files): Add the new files.
3948         (Makefile.am): Enable test-setlocale2.sh test.
3949         * doc/posix-functions/setlocale.texi: Mention workaround.
3950
3951 2011-02-11  Bruno Haible  <bruno@clisp.org>
3952
3953         Tests for module 'setlocale'.
3954         * modules/setlocale-tests: New file.
3955         * tests/test-setlocale1.sh: New file.
3956         * tests/test-setlocale1.c: New file.
3957
3958         New module 'setlocale'.
3959         * lib/locale.in.h (setlocale): New declaration.
3960         * lib/setlocale.c: New file, based on
3961         gettext/gettext-runtime/intl/setlocale.c.
3962         * m4/setlocale.m4: New file.
3963         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3964         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3965         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3966         REPLACE_SETLOCALE.
3967         * modules/setlocale: New file.
3968         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3969         * doc/posix-functions/setlocale.texi: Mention the new module.
3970
3971 2011-02-11  Bruno Haible  <bruno@clisp.org>
3972
3973         Prepare for locale dependent tests on mingw.
3974         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3975         because it has the wrong locale encoding.
3976         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3977         French_France.1252 instead of "fr".
3978         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3979         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3980         because it has the wrong locale encoding.
3981         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3982         native Windows, try Turkish_Turkey.65001.
3983         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3984         Chinese_China.54936.
3985
3986         Prepare for locale dependent tests on mingw.
3987         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3988         differently.
3989         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3990         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3991         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3993
3994 2011-02-11  Eric Blake  <eblake@redhat.com>
3995
3996         strptime: avoid compiler warnings
3997         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3998         compiler warnings about dead code.
3999         Reported by Daniel P. Berrange.
4000
4001 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4002
4003         doc: update users.txt
4004         * users.txt: Add rcs.
4005
4006 2011-02-10  John W. Eaton  <jwe@gnu.org>
4007
4008         doc: update users.txt
4009         * users.txt: Add octave.
4010
4011 2011-02-10  Jim Meyering  <meyering@redhat.com>
4012
4013         doc: update users.txt
4014         * users.txt: Add iwhd.
4015
4016 2011-02-09  Bruno Haible  <bruno@clisp.org>
4017
4018         gnulib-tool: Make copyright notice adjustment more robust.
4019         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4020         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4021         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4022         License".
4023         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4024
4025 2011-02-06  Bruno Haible  <bruno@clisp.org>
4026
4027         New module 'towctrans'.
4028         * modules/towctrans: New file.
4029         * lib/wctype.in.h (towctrans): New declaration.
4030         * lib/towctrans.c: New file.
4031         * lib/towctrans-impl.h: New file.
4032         * m4/towctrans.m4: New file.
4033         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4034         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4035         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4036         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4037         * doc/posix-functions/towctrans.texi: Mention the new module.
4038
4039 2011-02-06  Bruno Haible  <bruno@clisp.org>
4040
4041         New module 'wctrans'.
4042         * modules/wctrans: New file.
4043         * lib/wctype.in.h (wctrans): New declaration.
4044         * lib/wctrans.c: New file.
4045         * lib/wctrans-impl.h: New file.
4046         * m4/wctrans.m4: New file.
4047         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4048         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4049         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4050         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4051         * doc/posix-functions/wctrans.texi: Mention the new module.
4052
4053 2011-02-06  Bruno Haible  <bruno@clisp.org>
4054
4055         New module 'iswctype'.
4056         * modules/iswctype: New file.
4057         * lib/wctype.in.h (iswctype): New declaration.
4058         * lib/iswctype.c: New file.
4059         * lib/iswctype-impl.h: New file.
4060         * m4/iswctype.m4: New file.
4061         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4062         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4063         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4064         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4065         * doc/posix-functions/iswctype.texi: Mention the new module and the
4066         HP-UX 11.00 problem.
4067
4068 2011-02-06  Bruno Haible  <bruno@clisp.org>
4069
4070         New module 'wctype'.
4071         * modules/wctype: Change to represent the wctype() substitute.
4072         * lib/wctype.in.h (wctype): New declaration.
4073         * lib/wctype.c: New file.
4074         * lib/wctype-impl.h: New file.
4075         * m4/wctype.m4: New file.
4076         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4077         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4078         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4079         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4080         * doc/posix-functions/wctype.texi: Mention the new module and the
4081         HP-UX 11.00 problem.
4082
4083 2011-02-06  Bruno Haible  <bruno@clisp.org>
4084
4085         wctype-h: Ensure wctype_t and wctrans_t are defined.
4086         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4087         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4088         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4089         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4090         HAVE_WCTRANS_T.
4091         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4092
4093 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4094
4095         flock: fix license typo
4096
4097         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4098         omitted.
4099
4100 2011-02-08  Bruno Haible  <bruno@clisp.org>
4101
4102         Split large sed scripts, for HP-UX sed.
4103         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4104         to avoid HP-UX limit of 99 commands, in the near future.
4105         * modules/stdlib (Makefile.am): Likewise.
4106         * modules/unistd (Makefile.am): Likewise.
4107         * modules/wchar (Makefile.am): Likewise.
4108         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4109         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4110         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4111
4112 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4113             Bruno Haible  <bruno@clisp.org>
4114
4115         stdlib: improve random_r modularization
4116         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4117         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4118         you also need the random_r module to get this material right.
4119         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4120         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4121         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4122
4123 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4124
4125         stdlib: don't depend on stdint
4126         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4127         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4128         be independent of whether stdint.h is needed.
4129         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4130         here, instead of ...
4131         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4132         struct random_data should be using the random_r module, not just
4133         the stdlib module (which wouldn't make sense: what package needs
4134         just struct random_data without also needing random_r?).
4135         * modules/stdlib (Depends-on): Remove stdint.
4136
4137         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4138         See the thread rooted at
4139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4140         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4141         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4142         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4143         __VMS)); previously it was always included (via fcntl--.h).
4144         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4145         hand; this is good enough for load averages.  Also, do not use
4146         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4147         flags directly if available and don't bother otherwise.  (Packages
4148         that need the extra reliability should use the modules that define
4149         these flags on older platforms that lack them.)
4150         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4151         fcntl-safer.
4152
4153 2011-02-08  Jim Meyering  <meyering@redhat.com>
4154
4155         di-set.h, ino-map.h: add multiple-inclusion guard
4156         Technically, the guard is required only for ino-map.h, due to its
4157         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4158         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4159         * lib/ino-map.h: Likewise.
4160
4161 2011-02-06  Bruno Haible  <bruno@clisp.org>
4162
4163         iswblank: Ensure declaration on glibc systems.
4164         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4165         * modules/iswblank (Dependencies): Add 'extensions'.
4166         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4167
4168 2011-02-06  Bruno Haible  <bruno@clisp.org>
4169
4170         New module 'iswblank'.
4171         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4172         * modules/iswblank: New file.
4173         * modules/wctype-h (Files): Remove lib/iswblank.c.
4174         (Makefile.am): Substitute GNULIB_ISWBLANK.
4175         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4176         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4177         (gl_WCTYPE_H_DEFAULTS): New macro.
4178         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4179         * modules/iswblank-tests: New file.
4180         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4181         * tests/test-wctype-h.c (main): Remove iswblank tests.
4182         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4183         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4184         of 'wctype-h'.
4185         * NEWS: Mention the change.
4186         * modules/mbchar (Depends-on): Add iswblank.
4187
4188 2011-02-08  Bruno Haible  <bruno@clisp.org>
4189
4190         di-set tests: Refactor.
4191         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4192         unnecessary includes.
4193         (ASSERT): Remove macro.
4194         (main): Make C90 compliant by avoiding variable declaration after
4195         statement.
4196         * modules/di-set-tests (Files): Add tests/macros.h.
4197
4198 2011-02-08  Bruno Haible  <bruno@clisp.org>
4199
4200         ino-map tests: Refactor.
4201         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4202         unnecessary includes.
4203         (ASSERT): Remove macro.
4204         (main): Make C90 compliant by avoiding variable declaration after
4205         statement.
4206         * modules/ino-map-tests (Files): Add tests/macros.h.
4207
4208 2011-02-08  Jim Meyering  <meyering@redhat.com>
4209
4210         di-set: add "const" to a cast
4211         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4212         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4213
4214 2011-02-06  Bruno Haible  <bruno@clisp.org>
4215
4216         Rename module 'wctype' to 'wctype-h'.
4217         * modules/wctype-h: Renamed from modules/wctype.
4218         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4219         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4220         (Files, Depends-on, Makefile.am): Update.
4221         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4222         (Files, Makefile.am): Update.
4223         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4224         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4225         * doc/posix-headers/wctype.texi: Update.
4226         * doc/posix-functions/iswalnum.texi: Update.
4227         * doc/posix-functions/iswalpha.texi: Update.
4228         * doc/posix-functions/iswblank.texi: Update.
4229         * doc/posix-functions/iswcntrl.texi: Update.
4230         * doc/posix-functions/iswdigit.texi: Update.
4231         * doc/posix-functions/iswgraph.texi: Update.
4232         * doc/posix-functions/iswlower.texi: Update.
4233         * doc/posix-functions/iswprint.texi: Update.
4234         * doc/posix-functions/iswpunct.texi: Update.
4235         * doc/posix-functions/iswspace.texi: Update.
4236         * doc/posix-functions/iswupper.texi: Update.
4237         * doc/posix-functions/iswxdigit.texi: Update.
4238         * doc/posix-functions/towlower.texi: Update.
4239         * doc/posix-functions/towupper.texi: Update.
4240         * NEWS: Mention the change.
4241         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4242         * modules/mbchar (Dependencies): Likewise.
4243         * modules/mbswidth (Dependencies): Likewise.
4244         * modules/quotearg (Dependencies): Likewise.
4245         * modules/regex (Dependencies): Likewise.
4246         * modules/wcscasecmp (Dependencies): Likewise.
4247         * modules/wcsncasecmp (Dependencies): Likewise.
4248         * modules/wcwidth (Dependencies): Likewise.
4249
4250 2011-02-06  Bruno Haible  <bruno@clisp.org>
4251
4252         New module 'wcswidth'.
4253         * modules/wcswidth: New file.
4254         * lib/wchar.in.h (wcswidth): New declaration.
4255         * lib/wcswidth.c: New file.
4256         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4257         * m4/wcswidth.m4: New file.
4258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4260         REPLACE_WCSWIDTH.
4261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4262         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4263         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4264         * doc/posix-functions/wcswidth.texi: Mention the new module.
4265
4266 2011-02-06  Bruno Haible  <bruno@clisp.org>
4267
4268         New module 'wcstok'.
4269         * modules/wcstok: New file.
4270         * lib/wchar.in.h (wcstok): New declaration.
4271         * lib/wcstok.c: New file.
4272         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4273         * m4/wcstok.m4: New file.
4274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4277         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4278         * doc/posix-functions/wcstok.texi: Mention the new module.
4279
4280 2011-02-06  Bruno Haible  <bruno@clisp.org>
4281
4282         New module 'wcsstr'.
4283         * modules/wcsstr: New file.
4284         * lib/wchar.in.h (wcsstr): New declaration.
4285         * lib/wcsstr.c: New file.
4286         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4287         * m4/wcsstr.m4: New file.
4288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4291         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4292         * doc/posix-functions/wcsstr.texi: Mention the new module.
4293
4294 2011-02-06  Bruno Haible  <bruno@clisp.org>
4295
4296         New module 'wcspbrk'.
4297         * modules/wcspbrk: New file.
4298         * lib/wchar.in.h (wcspbrk): New declaration.
4299         * lib/wcspbrk.c: New file.
4300         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4301         * m4/wcspbrk.m4: New file.
4302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4305         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4306         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4307
4308 2011-02-06  Bruno Haible  <bruno@clisp.org>
4309
4310         New module 'wcsspn'.
4311         * modules/wcsspn: New file.
4312         * lib/wchar.in.h (wcsspn): New declaration.
4313         * lib/wcsspn.c: New file.
4314         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4315         * m4/wcsspn.m4: New file.
4316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4319         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4320         * doc/posix-functions/wcsspn.texi: Mention the new module.
4321
4322 2011-02-06  Bruno Haible  <bruno@clisp.org>
4323
4324         New module 'wcscspn'.
4325         * modules/wcscspn: New file.
4326         * lib/wchar.in.h (wcscspn): New declaration.
4327         * lib/wcscspn.c: New file.
4328         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4329         * m4/wcscspn.m4: New file.
4330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4332         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4333         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4334         * doc/posix-functions/wcscspn.texi: Mention the new module.
4335
4336 2011-02-06  Bruno Haible  <bruno@clisp.org>
4337
4338         New module 'wcsrchr'.
4339         * modules/wcsrchr: New file.
4340         * lib/wchar.in.h (wcsrchr): New declaration.
4341         * lib/wcsrchr.c: New file.
4342         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4343         * m4/wcsrchr.m4: New file.
4344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4346         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4347         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4348         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4349
4350 2011-02-06  Bruno Haible  <bruno@clisp.org>
4351
4352         New module 'wcschr'.
4353         * modules/wcschr: New file.
4354         * lib/wchar.in.h (wcschr): New declaration.
4355         * lib/wcschr.c: New file.
4356         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4357         * m4/wcschr.m4: New file.
4358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4361         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4362         * doc/posix-functions/wcschr.texi: Mention the new module.
4363
4364 2011-02-06  Bruno Haible  <bruno@clisp.org>
4365
4366         New module 'wcsdup'.
4367         * modules/wcsdup: New file.
4368         * lib/wchar.in.h (wcsdup): New declaration.
4369         * lib/wcsdup.c: New file.
4370         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4371         * m4/wcsdup.m4: New file.
4372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4375         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4376         * doc/posix-functions/wcsdup.texi: Mention the new module.
4377
4378 2011-02-06  Bruno Haible  <bruno@clisp.org>
4379
4380         New module 'wcsxfrm'.
4381         * modules/wcsxfrm: New file.
4382         * lib/wchar.in.h (wcsxfrm): New declaration.
4383         * lib/wcsxfrm.c: New file.
4384         * lib/wcsxfrm-impl.h: New file.
4385         * m4/wcsxfrm.m4: New file.
4386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4389         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4390         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4391
4392 2011-02-06  Bruno Haible  <bruno@clisp.org>
4393
4394         New module 'wcscoll'.
4395         * modules/wcscoll: New file.
4396         * lib/wchar.in.h (wcscoll): New declaration.
4397         * lib/wcscoll.c: New file.
4398         * lib/wcscoll-impl.h: New file.
4399         * m4/wcscoll.m4: New file.
4400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4403         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4404         * doc/posix-functions/wcscoll.texi: Mention the new module.
4405
4406 2011-02-06  Bruno Haible  <bruno@clisp.org>
4407
4408         New module 'wcsncasecmp'.
4409         * modules/wcsncasecmp: New file.
4410         * lib/wchar.in.h (wcsncasecmp): New declaration.
4411         * lib/wcsncasecmp.c: New file.
4412         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4413         * m4/wcsncasecmp.m4: New file.
4414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4417         HAVE_WCSNCASECMP.
4418         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4419         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4420
4421 2011-02-06  Bruno Haible  <bruno@clisp.org>
4422
4423         New module 'wcscasecmp'.
4424         * modules/wcscasecmp: New file.
4425         * lib/wchar.in.h (wcscasecmp): New declaration.
4426         * lib/wcscasecmp.c: New file.
4427         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4428         * m4/wcscasecmp.m4: New file.
4429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4432         HAVE_WCSCASECMP.
4433         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4434         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4435
4436 2011-02-05  Bruno Haible  <bruno@clisp.org>
4437
4438         New module 'wcsncmp'.
4439         * modules/wcsncmp: New file.
4440         * lib/wchar.in.h (wcsncmp): New declaration.
4441         * lib/wcsncmp.c: New file.
4442         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4443         * m4/wcsncmp.m4: New file.
4444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4447         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4448         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4449
4450 2011-02-05  Bruno Haible  <bruno@clisp.org>
4451
4452         New module 'wcscmp'.
4453         * modules/wcscmp: New file.
4454         * lib/wchar.in.h (wcscmp): New declaration.
4455         * lib/wcscmp.c: New file.
4456         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4457         * m4/wcscmp.m4: New file.
4458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4461         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4462         * doc/posix-functions/wcscmp.texi: Mention the new module.
4463
4464 2011-02-05  Bruno Haible  <bruno@clisp.org>
4465
4466         New module 'wcsncat'.
4467         * modules/wcsncat: New file.
4468         * lib/wchar.in.h (wcsncat): New declaration.
4469         * lib/wcsncat.c: New file.
4470         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4471         * m4/wcsncat.m4: New file.
4472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4475         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4476         * doc/posix-functions/wcsncat.texi: Mention the new module.
4477
4478 2011-02-05  Bruno Haible  <bruno@clisp.org>
4479
4480         New module 'wcscat'.
4481         * modules/wcscat: New file.
4482         * lib/wchar.in.h (wcscat): New declaration.
4483         * lib/wcscat.c: New file.
4484         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4485         * m4/wcscat.m4: New file.
4486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4489         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4490         * doc/posix-functions/wcscat.texi: Mention the new module.
4491
4492 2011-02-05  Bruno Haible  <bruno@clisp.org>
4493
4494         New module 'wcpncpy'.
4495         * modules/wcpncpy: New file.
4496         * lib/wchar.in.h (wcpncpy): New declaration.
4497         * lib/wcpncpy.c: New file.
4498         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4499         * m4/wcpncpy.m4: New file.
4500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4502         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4503         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4504         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4505
4506 2011-02-05  Bruno Haible  <bruno@clisp.org>
4507
4508         New module 'wcsncpy'.
4509         * modules/wcsncpy: New file.
4510         * lib/wchar.in.h (wcsncpy): New declaration.
4511         * lib/wcsncpy.c: New file.
4512         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4513         * m4/wcsncpy.m4: New file.
4514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4517         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4518         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4519
4520 2011-02-05  Bruno Haible  <bruno@clisp.org>
4521
4522         New module 'wcpcpy'.
4523         * modules/wcpcpy: New file.
4524         * lib/wchar.in.h (wcpcpy): New declaration.
4525         * lib/wcpcpy.c: New file.
4526         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4527         * m4/wcpcpy.m4: New file.
4528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4530         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4531         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4532         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4533
4534 2011-02-05  Bruno Haible  <bruno@clisp.org>
4535
4536         New module 'wcscpy'.
4537         * modules/wcscpy: New file.
4538         * lib/wchar.in.h (wcscpy): New declaration.
4539         * lib/wcscpy.c: New file.
4540         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4541         * m4/wcscpy.m4: New file.
4542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4545         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4546         * doc/posix-functions/wcscpy.texi: Mention the new module.
4547
4548 2011-02-05  Bruno Haible  <bruno@clisp.org>
4549
4550         New module 'wcsnlen'.
4551         * modules/wcsnlen: New file.
4552         * lib/wchar.in.h (wcsnlen): New declaration.
4553         * lib/wcsnlen.c: New file.
4554         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4555         * m4/wcsnlen.m4: New file.
4556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4559         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4560         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4561
4562 2011-02-05  Bruno Haible  <bruno@clisp.org>
4563
4564         New module 'wcslen'.
4565         * modules/wcslen: New file.
4566         * lib/wchar.in.h (wcslen): New declaration.
4567         * lib/wcslen.c: New file.
4568         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4569         * m4/wcslen.m4: New file.
4570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4573         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4574         * doc/posix-functions/wcslen.texi: Mention the new module.
4575
4576 2011-02-05  Bruno Haible  <bruno@clisp.org>
4577
4578         New module 'wmemset'.
4579         * modules/wmemset: New file.
4580         * lib/wchar.in.h (wmemset): New declaration.
4581         * lib/wmemset.c: New file.
4582         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4583         * m4/wmemset.m4: New file.
4584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4586         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4587         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4588         * doc/posix-functions/wmemset.texi: Mention the new module.
4589
4590 2011-02-05  Bruno Haible  <bruno@clisp.org>
4591
4592         New module 'wmemmove'.
4593         * modules/wmemmove: New file.
4594         * lib/wchar.in.h (wmemmove): New declaration.
4595         * lib/wmemmove.c: New file.
4596         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4597         * m4/wmemmove.m4: New file.
4598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4600         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4601         HAVE_WMEMMOVE.
4602         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4603         * doc/posix-functions/wmemmove.texi: Mention the new module.
4604
4605 2011-02-05  Bruno Haible  <bruno@clisp.org>
4606
4607         New module 'wmemcpy'.
4608         * modules/wmemcpy: New file.
4609         * lib/wchar.in.h (wmemcpy): New declaration.
4610         * lib/wmemcpy.c: New file.
4611         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4612         * m4/wmemcpy.m4: New file.
4613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4615         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4616         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4617         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4618
4619 2011-02-05  Bruno Haible  <bruno@clisp.org>
4620
4621         New module 'wmemcmp'.
4622         * modules/wmemcmp: New file.
4623         * lib/wchar.in.h (wmemcmp): New declaration.
4624         * lib/wmemcmp.c: New file.
4625         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4626         * m4/wmemcmp.m4: New file.
4627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4629         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4630         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4631         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4632
4633 2011-02-07  Jim Meyering  <meyering@redhat.com>
4634
4635         di-set, ino-map: new modules, from coreutils
4636         * lib/di-set.c: New file.
4637         * lib/di-set.h: Likewise.
4638         * lib/ino-map.c: Likewise.
4639         * lib/ino-map.h: Likewise.
4640         * modules/di-set: Likewise.
4641         * modules/di-set-tests: Likewise.
4642         * modules/ino-map: Likewise.
4643         * modules/ino-map-tests: Likewise.
4644         * tests/test-di-set.c: Likewise.
4645         * tests/test-ino-map.c: Likewise.
4646
4647 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4648
4649         getloadavg: merge minor changes from Emacs
4650
4651         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4652         (getloadavg): Use memset, not bzero.
4653
4654         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4655         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4656         clash (bug#86).
4657
4658 2010-11-14  Bruno Haible  <bruno@clisp.org>
4659
4660         Allow multiple gnulib generated replacements to coexist.
4661         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4662         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4663         * lib/langinfo.in.h (nl_item): Likewise.
4664         * lib/math.in.h (_NaN, NAN): Likewise.
4665         * lib/netdb.in.h (struct addrinfo): Likewise.
4666         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4667         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4668         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4669         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4670         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4671         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4672         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4673         pthread_mutexattr_init, pthread_mutexattr_settype,
4674         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4675         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4676         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4677         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4678         * lib/sched.in.h (struct sched_param): Likewise.
4679         * lib/se-selinux.in.h (security_class_t, security_context_t,
4680         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4681         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4682         lsetfilecon, fsetfilecon, security_check_context,
4683         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4684         Likewise.
4685         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4686         Likewise.
4687         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4688         _gl_function_taking_int_returning_void_t, union sigval,
4689         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4690         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4691         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4692         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4693         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4694         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4695         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4696         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4697         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4698         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4699         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4700         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4701         socklen_t, rpl_fd_isset): Likewise.
4702         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4703         * lib/sys_time.in.h (struct timeval): Likewise.
4704         * lib/sys_times.in.h (struct tms): Likewise.
4705         * lib/sys_utsname.in.h (struct utsname):
4706         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4707         * lib/unistd.in.h (getpagesize): Likewise.
4708         * lib/wchar.in.h (mbstate_t): Likewise.
4709         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4710         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4711         towlower, towupper): Likewise.
4712         Reported by Sam Steingold <sds@gnu.org>.
4713
4714 2011-02-05  Eric Blake  <eblake@redhat.com>
4715
4716         unsetenv: work around Haiku issues
4717         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4718         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4719
4720 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4721
4722         libposix: avoid calling error() within libposix
4723         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4724         is defined.
4725
4726 2011-02-05  Eric Blake  <eblake@redhat.com>
4727
4728         strerror_r-posix: port to cygwin
4729         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4730         implementation.
4731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4732         * tests/test-strerror_r.c (main): Fix test.
4733         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4734         issue.
4735
4736 2011-02-05  Bruno Haible  <bruno@clisp.org>
4737
4738         New module 'wmemchr'.
4739         * modules/wmemchr: New file.
4740         * lib/wchar.in.h (wmemchr): New declaration.
4741         * lib/wmemchr.c: New file.
4742         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4743         * m4/wmemchr.m4: New file.
4744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4746         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4747         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4748         * doc/posix-functions/wmemchr.texi: Mention the new module.
4749
4750 2011-02-04  Eric Blake  <eblake@redhat.com>
4751
4752         fdopendir: detect FreeBSD bug
4753         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4754         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4755
4756 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4757
4758         stdbool: do not define HAVE_STDBOOL_H
4759         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4760         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4761         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4762         imported from the latest Autoconf git.  It was motivated by Emacs,
4763         which uses gnulib but does not need HAVE_STDBOOL_H.
4764
4765 2011-02-04  Bruno Haible  <bruno@clisp.org>
4766
4767         wcsnrtombs: Prepare for new module wwcsnrtombs.
4768         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4769         * lib/wcsnrtombs.c: Include it.
4770         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4771
4772         wcsrtombs: Prepare for new module wwcsrtombs.
4773         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4774         * lib/wcsrtombs.c: Include it.
4775         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4776
4777         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4778         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4779         * lib/mbsnrtowcs.c: Include it.
4780         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4781
4782         mbsrtowcs: Prepare for new module mbsrtowwcs.
4783         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4784         * lib/mbsrtowcs.c: Include it.
4785         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4786
4787 2011-02-04  Bruno Haible  <bruno@clisp.org>
4788
4789         vasnprintf: Reduce use of malloc for small format strings.
4790         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4791         (arguments): Add room for the first 7 arguments.
4792         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4793         (char_directives, u8_directives, u16_directives, u32_directives): Add
4794         room for the first 7 directives.
4795         * lib/printf-parse.c: Include <string.h>.
4796         (PRINTF_PARSE): Change memory handling code so that it uses the first
4797         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4798         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4799         Reported by Pádraig Brady <P@draigbrady.com>.
4800
4801 2011-01-31  Eric Blake  <eblake@redhat.com>
4802
4803         dup2: work around Haiku bug
4804         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4805         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4806         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4807         * tests/test-dup2.c (main): Enhance test.
4808
4809 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4810
4811         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4812         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4813         declared by eglibc 2.11.2.
4814         * lib/stdio.in.h: Likewise.
4815
4816 2011-01-31  Eric Blake  <eblake@redhat.com>
4817
4818         ignore-value: add missing test dependency
4819         * tests/test-ignore-value.c: Revert previous change; stdio.h
4820         provides off_t.
4821         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4822
4823 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4824
4825         mktime: clarify long_int width checking
4826         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4827         the top level, to make it clearer that the assumption about
4828         long_int width is being checked.  See
4829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4830
4831 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4832
4833         ignore-value: Fix self-test.
4834         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4835
4836 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         TYPE_MAXIMUM: avoid theoretically undefined behavior
4839         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4840         negative number, which the C Standard says has undefined behavior.
4841         In practice this is not a problem, but might as well do it by the book.
4842         Reported by Rich Felker and Eric Blake; see
4843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4844         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4845         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4847         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4848         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4849         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4850
4851         mktime: #undef mktime before #defining it
4852         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4853
4854         mktime: systematically normalize tm_isdst comparisons
4855         * lib/mktime.c (isdst_differ): New function.
4856         (__mktime_internal): Use it systematically for all isdst comparisons.
4857         This completes the fix for libc BZ #6723, and removes the need for
4858         normalizing tm_isdst.  See
4859         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4860         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4861
4862         mktime: fix some integer overflow issues and sidestep the rest
4863
4864         This was prompted by a bug report by Benjamin Lindner for MinGW
4865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4866         His bug is due to signed integer overflow (0 - INT_MIN), and I
4867         I scanned through mktime.c looking for other integer overflow
4868         problems, fixing all the bugs I found.
4869
4870         Although the C Standard says the resulting code is still not safe
4871         in the presence of integer overflow, in practice it should be good
4872         enough for all real-world two's-complement implementations, except
4873         for debugging environments that deliberately trap on integer
4874         overflow (e.g., gcc -ftrapv).
4875
4876         * lib/mktime.c (WRAPV): New macro.
4877         (SHR): Also check that long_int and time_t shift right in the
4878         usual way, before using the fast-but-unportable method.
4879         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4880         used.  The code already assumed two's complement, so there's
4881         no need to test for alternatives.  All uses removed.
4882         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4883         the C standard.  Problem reported by Rich Felker in
4884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4885         (twos_complement_arithmetic): Also check long_int and time_t.
4886         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4887         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4888         (__mktime_internal): Avoid integer overflow with unary subtraction
4889         in two instances where -1 - X is an adequate replacement for -X,
4890         since the calculations are approximate.
4891
4892 2011-01-29  Eric Blake  <eblake@redhat.com>
4893
4894         mktime: avoid infinite loop
4895         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4896         type; behavior is still undefined but portable to all known targets.
4897         Reported by Rich Felker.
4898
4899 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4900
4901         rename, unlink, same-inode: Relicense.
4902         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4903         * modules/unlink (License): Likewise.
4904         * modules/same-inode (License): Likewise.
4905
4906 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4907
4908         mktime: avoid problems on NetBSD 5 / i386
4909         * lib/mktime.c (long_int): New type.  This works around a problem
4910         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4911         but time_t is 64 bits, and where I expect the existing code is
4912         wrong in some cases.
4913         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4914         (ydhms_diff): Bring back the compile-time check for wide-enough
4915         year and yday.
4916
4917         mktime: fix misspelling in comment
4918         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4919         This merges all recent glibc changes of importance.
4920
4921 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4922
4923         move-if-change: cope with concurrent mv of identical file.
4924         * build-aux/move-if-change (CMPPROG): Accept environment
4925         variable as an override for `cmp'.
4926         (usage): Document CMPPROG.
4927         Adjust comparison to drop stdout.  Cope with failure of mv if
4928         the target file exists and is identical to the source, for
4929         parallel builds.
4930         Report from H.J. Lu against binutils in PR binutils/12283.
4931
4932 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4933
4934         * users.txt: Mention sharutils.
4935
4936 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4937
4938         * users.txt: Mention OATH Toolkit.
4939
4940 2011-01-27  Bruno Haible  <bruno@clisp.org>
4941
4942         Prepare for supporting FreeBSD 10.
4943         * build-aux/config.libpath: Remove handling of freebsd1*.
4944
4945 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4946
4947         Prepare for supporting FreeBSD 10.
4948         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4949         match FreeBSD 10.0.
4950
4951 2011-01-27  Bruno Haible  <bruno@clisp.org>
4952
4953         vma-iter, get-rusage-as: Add OpenBSD support.
4954         * modules/vma-iter (configure.ac): Test for mquery.
4955         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4956         * lib/vma-iter.c: Include <sys/mman.h>.
4957         (vma_iterate): Add an implementation based on mquery().
4958         * lib/resource-ext.h (get_rusage_as): Update comments.
4959         * lib/get-rusage-as.c: Likewise.
4960         * lib/get-rusage-data.c: Likewise.
4961
4962 2011-01-26  Karl Berry  <karl@gnu.org>
4963
4964         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4965         variables to make it easier to override the makeinfo program used.
4966
4967 2011-01-26  Eric Blake  <eblake@redhat.com>
4968
4969         fcntl: work around Haiku F_DUPFD bugs
4970         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4971         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4972         cloexec bit on duplication.
4973         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4974
4975 2011-01-26  Bruno Haible  <bruno@clisp.org>
4976
4977         Enable memory leak tests on AIX.
4978         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4979         * tests/test-fprintf-posix3.c (main): Likewise.
4980
4981 2011-01-26  Bruno Haible  <bruno@clisp.org>
4982
4983         Tests for module 'get-rusage-data'.
4984         * modules/get-rusage-data-tests: New file.
4985         * tests/test-get-rusage-data.c: New file.
4986
4987         New module 'get-rusage-data'.
4988         * lib/resource-ext.h (get_rusage_data): New declaration.
4989         * lib/get-rusage-data.c: New file.
4990         * modules/get-rusage-data: New file.
4991
4992 2011-01-25  Bruno Haible  <bruno@clisp.org>
4993
4994         get-rusage-as: Allow for easier testing.
4995         * lib/resource-ext.h (get_rusage_as): Add comment.
4996         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4997         (main): New function for interactive testing.
4998
4999 2011-01-25  Bruno Haible  <bruno@clisp.org>
5000
5001         vma-iter: Treat Haiku like BeOS.
5002         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5003         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5004
5005 2011-01-25  Eric Blake  <eblake@redhat.com>
5006
5007         c-stack: fix regression on cygwin when libsigsegv is present
5008         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5009
5010 2011-01-24  Bruno Haible  <bruno@clisp.org>
5011
5012         vma-iter: Avoid empty intervals.
5013         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5014         on an empty interval.
5015
5016 2011-01-24  Jim Meyering  <meyering@redhat.com>
5017
5018         u64: remove unnecessary #include
5019         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5020
5021 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5022
5023         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5024         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5025
5026 2011-01-23  Bruno Haible  <bruno@clisp.org>
5027
5028         New module 'vma-iter'.
5029         * lib/vma-iter.h: New file.
5030         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5031         * modules/vma-iter: New file.
5032         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5033         for get_rusage_as_via_iterator.
5034         (vma_iterate_callback): New function.
5035         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5036         * modules/get-rusage-as (Depends-on): Add vma-iter.
5037
5038 2011-01-23  Bruno Haible  <bruno@clisp.org>
5039
5040         uninorm: Tweak includes.
5041         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5042         Reported by Jim Meyering.
5043
5044 2011-01-23  Bruno Haible  <bruno@clisp.org>
5045
5046         get-rusage-as: Improve on NetBSD.
5047         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5048         /proc, like on FreeBSD.
5049
5050 2011-01-23  Jim Meyering  <meyering@redhat.com>
5051
5052         xreadlink.h: remove unnecessary #include
5053         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5054
5055         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5056         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5057
5058 2011-01-23  Bruno Haible  <bruno@clisp.org>
5059
5060         get-rusage-as: Fix bug.
5061         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5062         original limit when aborting the first loop.
5063
5064 2011-01-23  Bruno Haible  <bruno@clisp.org>
5065
5066         wctype: Ensure valid C syntax.
5067         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5068         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5069
5070 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5071
5072         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5074         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5075         as they are needed only for configure's test case.
5076         This removes two unnecessary symbols from config.h.
5077
5078         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5079         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5081         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5082         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5083         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5084         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5085         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5086         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5087         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5088         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5089         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5090         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5092         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5093         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5094         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5095         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5096
5097 2011-01-21  Eric Blake  <eblake@redhat.com>
5098
5099         maintainer-makefile: work with older git for submodule check
5100         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5101         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5102         Reported by Matthias Bolte.
5103
5104         bootstrap: minor portability fixes
5105         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5106         (usage): Omit leading capital and trailing . on help phrases, per
5107         GNU Coding Standards.
5108         (check_versions, top level): Prefix messages with script name.
5109
5110 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5111
5112         bootstrap: support --no-git option
5113         * build-aux/bootstrap: Add --no-git option, to be used when
5114         --gnulib-srcdir points to the exact desired checkout.
5115
5116 2011-01-21  Eric Blake  <eblake@redhat.com>
5117
5118         strerror_r-posix: work with glibc 2.13
5119         * lib/strerror_r.c (strerror_r): Fix return type.
5120
5121 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5122             Bruno Haible  <bruno@clisp.org>
5123
5124         uN_strstr: New unit tests.
5125         * modules/unistr/u8-strstr-tests: New file.
5126         * modules/unistr/u16-strstr-tests: New file.
5127         * modules/unistr/u32-strstr-tests: New file.
5128         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5129         * tests/unistr/test-u8-strstr.c: New file.
5130         * tests/unistr/test-u16-strstr.c: New file.
5131         * tests/unistr/test-u32-strstr.c: New file.
5132
5133 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5134             Bruno Haible  <bruno@clisp.org>
5135
5136         Make uN_strstr functions O(n) worst-case.
5137         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5138         16-bit and 32-bit unit cases, use the unibyte algorithm from
5139         lib/mbsstr.c.
5140         * lib/unistr/u8-strstr.c: Include <string.h>.
5141         (UNIT_IS_UINT8_T): New macro.
5142         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5143         (U_STRLEN, U_STRNLEN): New macros.
5144         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5145         (U_STRLEN, U_STRNLEN): New macros.
5146         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5147         (configure.ac): Update required libunistring version.
5148         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5149         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5150         malloca.
5151         (configure.ac): Update required libunistring version.
5152         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5153         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5154         malloca.
5155         (configure.ac): Update required libunistring version.
5156
5157 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5158             Bruno Haible  <bruno@clisp.org>
5159
5160         Prepare for faster uN_strstr functions.
5161         * lib/str-kmp.h: Support definable UNITs.
5162         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5163         needle_len argument.
5164         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5165         * lib/mbscasestr.c (mbscasestr): Likewise.
5166
5167 2011-01-21  Pádraig Brady <P@draigBrady.com>
5168
5169         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5170         * tests/test-malloca.c (main): Unset the environment variable
5171         to greatly speed up the test.
5172         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5173         * modules/malloca-tests: Depend on unsetenv.
5174
5175 2011-01-21  Pádraig Brady <P@draigBrady.com>
5176
5177         ignore-value: remove stdint dependency
5178         * lib/ignore-value.h: Remove <stdint.h>
5179         * modules/ignore-value: Remove stdint dependency.
5180
5181 2011-01-21  Jim Meyering  <meyering@redhat.com>
5182
5183         maint.mk: adjust variable name to be consistent with other gl_ vars
5184         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5185         to be lower case.
5186
5187 2011-01-20  Jim Meyering  <meyering@redhat.com>
5188
5189         maint.mk: make "check" depend on public-submodule-commit by default
5190         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5191
5192 2011-01-20  Bruno Haible  <bruno@clisp.org>
5193
5194         mbfile, mbiter: Complete change from 2008-12-21.
5195         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5196         * m4/mbiter.m4 (gl_MBITER): Likewise.
5197
5198 2011-01-20  Jim Meyering  <meyering@redhat.com>
5199
5200         init.sh: insert space between each function name and "()"
5201         * tests/init.sh: Make it a little easier to see that a function's
5202         name is "warn_", and not "warn" when looking at the first part of
5203         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5204
5205 2011-01-20  Jim Meyering  <meyering@redhat.com>
5206
5207         mountlist: clean up code formatting
5208         * lib/mountlist.c (read_file_system_list): Split a long line,
5209         correct bracing style, use NULL in place of "(struct statfs *)0",
5210         don't parenthesize return value, add spaces around "=" and after
5211         ";-in-for-stmt".
5212
5213 2011-01-14  Markus Duft <mduft@gentoo.org>
5214
5215         mountlist: add support for Interix
5216         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5217         Apply statvfs to all entries of /dev/fs.
5218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5219         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5220
5221 2011-01-20  Jim Meyering  <meyering@redhat.com>
5222
5223         maint.mk: improve the public-submodule-commit rule
5224         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5225         to suppress printing of its commands... unless V=1.
5226         Add git submodule's --quiet option to suppress printing of e.g.,
5227         "Entering gnulib" output.
5228         "cd" into $(srcdir) before running git submodule.
5229
5230 2011-01-20  Bruno Haible  <bruno@clisp.org>
5231
5232         include_next: Fix bug introduced on 2011-01-18.
5233         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5234         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5235         ac_cv_header_... variable if the second argument is not 'check'.
5236         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5237         gl_NEXT_HEADERS_INTERNAL.
5238
5239 2011-01-20  Bruno Haible  <bruno@clisp.org>
5240
5241         Allow the user to avoid the GNULIB_TEST_* macros.
5242         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5243         Suggested by Paul Eggert.
5244
5245 2011-01-14  Jim Meyering  <meyering@redhat.com>
5246
5247         bootstrap: avoid failure when there is no .gitmodules file
5248         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5249         has been assigned to, even when its value is the empty string.
5250         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5251         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5252         Reported by John W. Eaton <jwe@gnu.org>.
5253
5254 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5255
5256         assume <ctype.h>, ..., <time.h> exist
5257         For years gnulib has been assuming the existence of the headers
5258         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5259         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5260         them, since they don't appear to be needed.
5261         * README (Portability guidelines): Document this.
5262         * lib/flock.c: Assume <fcntl.h> exists.
5263         * lib/regex_internal.h: Assume <locale.h> exists.
5264         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5266         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5267         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5268         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5269         * m4/regex.m4 (gl_REGEX): Likewise.
5270         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5271         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5272         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5273         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5274         * tests/test-argp.c: Likewise.
5275         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5276
5277         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5278         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5279         AA_APPLE_UNIVERSAL_BUILD.  See
5280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5281         * NEWS: Document this.
5282
5283 2011-01-19  Eric Blake  <eblake@redhat.com>
5284
5285         c-stack: assume stack overflow if SA_SIGINFO unsupported
5286         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5287         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5288         sigaction will work.
5289         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5290         behavior match Linux.
5291         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5292
5293         stdbool-tests: accomodate Haiku
5294         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5295
5296         binary-io: fix O_TEXT on Haiku
5297         * modules/binary-io (Depends-on): Add fcntl-h.
5298         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5299         than blindly undefining O_TEXT.
5300         Reported by Scott McCreary.
5301
5302 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5303
5304         include_next: do not check for standard headers like stddef.h
5305
5306         I found this problem when modifying Emacs to use gnulib.
5307         I noticed that it added HAVE_STDDEF_H to config.h, even though
5308         gnulib always assumes <stddef.h> exists as per README and this
5309         symbol is unnecessary.
5310         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5311         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5312         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5313         faster for headers like stddef.h that are known to exist.
5314         (gl_CHECK_NEXT_HEADERS): Use it.
5315         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5316         rather than gl_CHECK_NEXT_HEADERS.
5317         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5318         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5319
5320 2011-01-18  Eric Blake  <eblake@redhat.com>
5321
5322         ansi-c++-opt: skip C++ dependency style if C++ is unused
5323         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5324         tests when we know C++ compilation is not desired.
5325         Reported by Scott McCreary.
5326
5327 2011-01-18  Bruno Haible  <bruno@clisp.org>
5328
5329         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5330         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5331         (main): Perform test also when getrlimit and setrlimit don't exist or
5332         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5333         limiting the address space size using setrlimit, compare the address
5334         space size before and after the the test.
5335         * tests/test-dprintf-posix2.c: Likewise.
5336         * tests/test-fprintf-posix3.sh: Update skip messages.
5337         * tests/test-dprintf-posix2.sh: Likewise.
5338         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5339         * modules/dprintf-posix-tests (Depends-on): Likewise.
5340         Reported by Bruce Korb <bkorb@gnu.org> and
5341         Gary V. Vaughan <gary@gnu.org>.
5342
5343 2011-01-18  Bruno Haible  <bruno@clisp.org>
5344
5345         get-rusage-as: Improvement for Cygwin.
5346         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5347         areas that are merely reserved.
5348
5349 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5350
5351         strftime: remove dependencies on multibyte modules
5352
5353         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5354         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5355         only if __osf__ is defined, and I suspect OSF doesn't need these
5356         other modules.  If my guess is wrong, we'll need to come up with a
5357         variant of strftime that doesn't need the multibyte modules.
5358
5359         I discovered this problem when attempting modify Emacs to use the
5360         strftime module.  With the previous gnulib, this caused Emacs to
5361         need 31 new files, ranging from lib/config.charset to
5362         m4/wint_t.m4.  This was overkill and I expect would be offputting
5363         to the Emacs maintainers.  After this change, only 6 new files are
5364         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5365         stdbool.m4, and tm_gmtoff.m4.
5366
5367         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5368         Suggested by Bruno Haible in
5369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5371         and do not check for wchar.h.
5372         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5373         (Depends-on): Remove mbrlen, mbsinit, wchar.
5374
5375 2011-01-18  Bruno Haible  <bruno@clisp.org>
5376
5377         Tests for module 'get-rusage-as'.
5378         * modules/get-rusage-as-tests: New file.
5379         * tests/test-get-rusage-as.c: New file.
5380
5381         New module 'get-rusage-as'.
5382         * modules/get-rusage-as: New file.
5383         * lib/resource-ext.h: New file.
5384         * lib/get-rusage-as.c: New file.
5385
5386 2011-01-17  Eric Blake  <eblake@redhat.com>
5387
5388         sigaction: relax license from LGPLv3+ to LGPLv2+
5389         * modules/sigaction (License): Relax to LGPLv2+.
5390
5391 2011-01-14  Bruno Haible  <bruno@clisp.org>
5392
5393         filemode: Make function declarations usable in C++ mode.
5394         * lib/filemode.h: Enclose function declarations in extern "C" block.
5395         Reported by John W. Eaton <jwe@gnu.org>.
5396
5397 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5398
5399         save-cwd: no longer include "xgetcwd.h"
5400         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5401         This avoids a compilation failure in projects that use save-cwd
5402         without also using the xgetcwd module.
5403
5404 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5405
5406         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5407         This is so that a program like Emacs, which needs only dtoastr,
5408         does not have to bother with distributing and compiling ftoastr
5409         and ldtoastr.
5410         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5411         * modules/dtoastr, modules/ldtoastr: New files.
5412         * modules/ftoastr: Now works just for 'float'.
5413         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5414         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5415         dtoastr.c, ldtoastr.c.
5416
5417 2011-01-11  Jim Meyering  <meyering@redhat.com>
5418
5419         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5420         There is no need to work around the lack of the fchdir function,
5421         since gnulib can now provide a replacement when required.
5422         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5423         * modules/save-cwd (Depends-on): Add fchdir.
5424
5425 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         openat, save-cwd: avoid xmalloc
5428
5429         This removes a direct (but undocumented) dependency of openat on
5430         xalloc, along with an indirect dependency via save-cwd.  It also
5431         removes a dependency of save-cwd on xgetcwd, and thereby
5432         indirectly on xalloc.  This change causes the openat substitute
5433         to fall back on save_cwd when memory is tight, and for save_cwd to
5434         fail instead of dying when memory is tight, but that's good enough.
5435         Problem and initial idea for fix reported by Bastien Roucaries in
5436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5437
5438         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5439         xalloc.h (for xmalloc).
5440         (openat_proc_name): Use malloc, not xmalloc.
5441         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5442         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5443
5444         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5445         This avoids heap allocation for file names whose lengths are in
5446         the range 512..1023, with the upper bound increasing to at most
5447         4031 depending on the platform's PATH_MAX.  (We do not want
5448         pathmax.h here as it might supply a non-constant PATH_MAX.)
5449         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5450         Perhaps they should be moved to malloca.h?
5451         (OPENAT_BUFFER_SIZE): Use them.
5452
5453 2011-01-10  Bruno Haible  <bruno@clisp.org>
5454
5455         doc: Update users.txt.
5456         * users.txt: Add recutils.
5457
5458 2011-01-09  Karl Berry  <karl@gnu.org>
5459
5460         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5461
5462         * doc/configmake.texi: New file.
5463         * doc/gnulib.texi: Include it.
5464         * modules/configmake: Move documentation from here.
5465
5466 2011-01-09  Bruno Haible  <bruno@clisp.org>
5467
5468         Update to Unicode 6.0.0.
5469         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5470         (get_lbp): Update for Unicode 6.0.0.
5471         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5472         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5473         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5474         U+11001, U+11038..U+11046. Remove U+06DE.
5475         (uc_width): Fix bounds of planes.
5476         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5477         lib/uniwidth/width.c.
5478         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5479         trailing whitespace removed.
5480         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5481         without comments, but with the original copyright notice.
5482         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5483         * lib/unicase/ignorable.h: Likewise.
5484         * lib/unicase/tocasefold.h: Likewise.
5485         * lib/unicase/tolower.h: Likewise.
5486         * lib/unicase/totitle.h: Likewise.
5487         * lib/unicase/toupper.h: Likewise.
5488         * lib/unictype/bidi_of.h: Likewise.
5489         * lib/unictype/blocks.h: Likewise.
5490         * lib/unictype/categ_C.h: Likewise.
5491         * lib/unictype/categ_Cn.h: Likewise.
5492         * lib/unictype/categ_L.h: Likewise.
5493         * lib/unictype/categ_Ll.h: Likewise.
5494         * lib/unictype/categ_Lm.h: Likewise.
5495         * lib/unictype/categ_Lo.h: Likewise.
5496         * lib/unictype/categ_Lu.h: Likewise.
5497         * lib/unictype/categ_M.h: Likewise.
5498         * lib/unictype/categ_Mc.h: Likewise.
5499         * lib/unictype/categ_Me.h: Likewise.
5500         * lib/unictype/categ_Mn.h: Likewise.
5501         * lib/unictype/categ_N.h: Likewise.
5502         * lib/unictype/categ_Nd.h: Likewise.
5503         * lib/unictype/categ_No.h: Likewise.
5504         * lib/unictype/categ_P.h: Likewise.
5505         * lib/unictype/categ_Po.h: Likewise.
5506         * lib/unictype/categ_S.h: Likewise.
5507         * lib/unictype/categ_Sc.h: Likewise.
5508         * lib/unictype/categ_Sk.h: Likewise.
5509         * lib/unictype/categ_Sm.h: Likewise.
5510         * lib/unictype/categ_So.h: Likewise.
5511         * lib/unictype/categ_of.h: Likewise.
5512         * lib/unictype/combining.h: Likewise.
5513         * lib/unictype/ctype_alnum.h: Likewise.
5514         * lib/unictype/ctype_alpha.h: Likewise.
5515         * lib/unictype/ctype_graph.h: Likewise.
5516         * lib/unictype/ctype_lower.h: Likewise.
5517         * lib/unictype/ctype_print.h: Likewise.
5518         * lib/unictype/ctype_punct.h: Likewise.
5519         * lib/unictype/ctype_upper.h: Likewise.
5520         * lib/unictype/decdigit.h: Likewise.
5521         * lib/unictype/digit.h: Likewise.
5522         * lib/unictype/numeric.h: Likewise.
5523         * lib/unictype/pr_alphabetic.h: Likewise.
5524         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5525         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5526         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5527         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5528         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5529         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5530         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5531         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5532         * lib/unictype/pr_case_ignorable.h: Likewise.
5533         * lib/unictype/pr_cased.h: Likewise.
5534         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5535         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5536         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5537         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5538         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5539         * lib/unictype/pr_combining.h: Likewise.
5540         * lib/unictype/pr_composite.h: Likewise.
5541         * lib/unictype/pr_currency_symbol.h: Likewise.
5542         * lib/unictype/pr_decimal_digit.h: Likewise.
5543         * lib/unictype/pr_deprecated.h: Likewise.
5544         * lib/unictype/pr_format_control.h: Likewise.
5545         * lib/unictype/pr_grapheme_base.h: Likewise.
5546         * lib/unictype/pr_grapheme_extend.h: Likewise.
5547         * lib/unictype/pr_grapheme_link.h: Likewise.
5548         * lib/unictype/pr_id_continue.h: Likewise.
5549         * lib/unictype/pr_id_start.h: Likewise.
5550         * lib/unictype/pr_ideographic.h: Likewise.
5551         * lib/unictype/pr_lowercase.h: Likewise.
5552         * lib/unictype/pr_math.h: Likewise.
5553         * lib/unictype/pr_numeric.h: Likewise.
5554         * lib/unictype/pr_other_alphabetic.h: Likewise.
5555         * lib/unictype/pr_other_id_continue.h: Likewise.
5556         * lib/unictype/pr_other_math.h: Likewise.
5557         * lib/unictype/pr_punctuation.h: Likewise.
5558         * lib/unictype/pr_sentence_terminal.h: Likewise.
5559         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5560         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5561         * lib/unictype/pr_unified_ideograph.h: Likewise.
5562         * lib/unictype/pr_uppercase.h: Likewise.
5563         * lib/unictype/pr_xid_continue.h: Likewise.
5564         * lib/unictype/pr_xid_start.h: Likewise.
5565         * lib/unictype/scripts.h: Likewise.
5566         * lib/unictype/scripts_byname.gperf: Likewise.
5567         * lib/unictype/sy_java_ident.h: Likewise.
5568         * lib/unigbrk/gbrkprop.h: Likewise.
5569         * lib/unilbrk/lbrkprop1.h: Likewise.
5570         * lib/unilbrk/lbrkprop2.h: Likewise.
5571         * lib/uninorm/decomposition-table2.h: Likewise.
5572         * lib/uniwbrk/wbrkprop.h: Likewise.
5573         * tests/unicase/test-cased.c: Likewise.
5574         * tests/unicase/test-ignorable.c: Likewise.
5575         * tests/unicase/test-uc_tolower.c: Likewise.
5576         * tests/unicase/test-uc_totitle.c: Likewise.
5577         * tests/unicase/test-uc_toupper.c: Likewise.
5578         * tests/unictype/test-categ_C.c: Likewise.
5579         * tests/unictype/test-categ_Cn.c: Likewise.
5580         * tests/unictype/test-categ_L.c: Likewise.
5581         * tests/unictype/test-categ_Ll.c: Likewise.
5582         * tests/unictype/test-categ_Lm.c: Likewise.
5583         * tests/unictype/test-categ_Lo.c: Likewise.
5584         * tests/unictype/test-categ_Lu.c: Likewise.
5585         * tests/unictype/test-categ_M.c: Likewise.
5586         * tests/unictype/test-categ_Mc.c: Likewise.
5587         * tests/unictype/test-categ_Me.c: Likewise.
5588         * tests/unictype/test-categ_Mn.c: Likewise.
5589         * tests/unictype/test-categ_N.c: Likewise.
5590         * tests/unictype/test-categ_Nd.c: Likewise.
5591         * tests/unictype/test-categ_No.c: Likewise.
5592         * tests/unictype/test-categ_P.c: Likewise.
5593         * tests/unictype/test-categ_Po.c: Likewise.
5594         * tests/unictype/test-categ_S.c: Likewise.
5595         * tests/unictype/test-categ_Sc.c: Likewise.
5596         * tests/unictype/test-categ_Sk.c: Likewise.
5597         * tests/unictype/test-categ_Sm.c: Likewise.
5598         * tests/unictype/test-categ_So.c: Likewise.
5599         * tests/unictype/test-ctype_alnum.c: Likewise.
5600         * tests/unictype/test-ctype_alpha.c: Likewise.
5601         * tests/unictype/test-ctype_graph.c: Likewise.
5602         * tests/unictype/test-ctype_lower.c: Likewise.
5603         * tests/unictype/test-ctype_print.c: Likewise.
5604         * tests/unictype/test-ctype_punct.c: Likewise.
5605         * tests/unictype/test-ctype_upper.c: Likewise.
5606         * tests/unictype/test-decdigit.h: Likewise.
5607         * tests/unictype/test-digit.h: Likewise.
5608         * tests/unictype/test-numeric.h: Likewise.
5609         * tests/unictype/test-pr_alphabetic.c: Likewise.
5610         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5611         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5612         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5613         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5614         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5615         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5616         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5617         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5618         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5619         * tests/unictype/test-pr_cased.c: Likewise.
5620         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5621         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5622         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5623         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5624         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5625         * tests/unictype/test-pr_combining.c: Likewise.
5626         * tests/unictype/test-pr_composite.c: Likewise.
5627         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5628         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5629         * tests/unictype/test-pr_deprecated.c: Likewise.
5630         * tests/unictype/test-pr_format_control.c: Likewise.
5631         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5632         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5633         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5634         * tests/unictype/test-pr_id_continue.c: Likewise.
5635         * tests/unictype/test-pr_id_start.c: Likewise.
5636         * tests/unictype/test-pr_ideographic.c: Likewise.
5637         * tests/unictype/test-pr_lowercase.c: Likewise.
5638         * tests/unictype/test-pr_math.c: Likewise.
5639         * tests/unictype/test-pr_numeric.c: Likewise.
5640         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5641         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5642         * tests/unictype/test-pr_other_math.c: Likewise.
5643         * tests/unictype/test-pr_punctuation.c: Likewise.
5644         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5645         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5646         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5647         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5648         * tests/unictype/test-pr_uppercase.c: Likewise.
5649         * tests/unictype/test-pr_xid_continue.c: Likewise.
5650         * tests/unictype/test-pr_xid_start.c: Likewise.
5651         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5652         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5653         changes.
5654         * lib/unictype/categ_Cc.h: Likewise.
5655         * lib/unictype/categ_Cf.h: Likewise.
5656         * lib/unictype/categ_Co.h: Likewise.
5657         * lib/unictype/categ_Cs.h: Likewise.
5658         * lib/unictype/categ_Lt.h: Likewise.
5659         * lib/unictype/categ_Nl.h: Likewise.
5660         * lib/unictype/categ_Pc.h: Likewise.
5661         * lib/unictype/categ_Pd.h: Likewise.
5662         * lib/unictype/categ_Pe.h: Likewise.
5663         * lib/unictype/categ_Pf.h: Likewise.
5664         * lib/unictype/categ_Pi.h: Likewise.
5665         * lib/unictype/categ_Ps.h: Likewise.
5666         * lib/unictype/categ_Z.h: Likewise.
5667         * lib/unictype/categ_Zl.h: Likewise.
5668         * lib/unictype/categ_Zp.h: Likewise.
5669         * lib/unictype/categ_Zs.h: Likewise.
5670         * lib/unictype/ctype_blank.h: Likewise.
5671         * lib/unictype/ctype_cntrl.h: Likewise.
5672         * lib/unictype/ctype_digit.h: Likewise.
5673         * lib/unictype/ctype_space.h: Likewise.
5674         * lib/unictype/ctype_xdigit.h: Likewise.
5675         * lib/unictype/mirror.h: Likewise.
5676         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5677         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5678         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5679         * lib/unictype/pr_bidi_control.h: Likewise.
5680         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5681         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5682         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5683         * lib/unictype/pr_bidi_pdf.h: Likewise.
5684         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5685         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5686         * lib/unictype/pr_dash.h: Likewise.
5687         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5688         * lib/unictype/pr_diacritic.h: Likewise.
5689         * lib/unictype/pr_extender.h: Likewise.
5690         * lib/unictype/pr_hex_digit.h: Likewise.
5691         * lib/unictype/pr_hyphen.h: Likewise.
5692         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5693         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5694         * lib/unictype/pr_ignorable_control.h: Likewise.
5695         * lib/unictype/pr_iso_control.h: Likewise.
5696         * lib/unictype/pr_join_control.h: Likewise.
5697         * lib/unictype/pr_left_of_pair.h: Likewise.
5698         * lib/unictype/pr_line_separator.h: Likewise.
5699         * lib/unictype/pr_logical_order_exception.h: Likewise.
5700         * lib/unictype/pr_non_break.h: Likewise.
5701         * lib/unictype/pr_not_a_character.h: Likewise.
5702         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5703         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5704         * lib/unictype/pr_other_id_start.h: Likewise.
5705         * lib/unictype/pr_other_lowercase.h: Likewise.
5706         * lib/unictype/pr_other_uppercase.h: Likewise.
5707         * lib/unictype/pr_paired_punctuation.h: Likewise.
5708         * lib/unictype/pr_paragraph_separator.h: Likewise.
5709         * lib/unictype/pr_pattern_syntax.h: Likewise.
5710         * lib/unictype/pr_pattern_white_space.h: Likewise.
5711         * lib/unictype/pr_private_use.h: Likewise.
5712         * lib/unictype/pr_quotation_mark.h: Likewise.
5713         * lib/unictype/pr_radical.h: Likewise.
5714         * lib/unictype/pr_soft_dotted.h: Likewise.
5715         * lib/unictype/pr_space.h: Likewise.
5716         * lib/unictype/pr_titlecase.h: Likewise.
5717         * lib/unictype/pr_variation_selector.h: Likewise.
5718         * lib/unictype/pr_white_space.h: Likewise.
5719         * lib/unictype/pr_zero_width.h: Likewise.
5720         * lib/unictype/sy_c_ident.h: Likewise.
5721         * lib/unictype/sy_c_whitespace.h: Likewise.
5722         * lib/unictype/sy_java_whitespace.h: Likewise.
5723         * lib/uninorm/composition-table.gperf: Likewise.
5724         * lib/uninorm/decomposition-table1.h: Likewise.
5725         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5726         LB8.
5727         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5728         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5729         * modules/unictype/*: Bump version number of expected libunistring
5730         version.
5731
5732 2011-01-09  Bruno Haible  <bruno@clisp.org>
5733
5734         Update to Unicode 5.2.0.
5735         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5736         trailing whitespace removed.
5737
5738 2011-01-09  Bruno Haible  <bruno@clisp.org>
5739
5740         New Unicode character properties, from Unicode 5.2.0.
5741         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5742         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5743         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5744         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5745         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5746         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5747         uc_is_property_cased, uc_is_property_case_ignorable,
5748         uc_is_property_changes_when_lowercased,
5749         uc_is_property_changes_when_uppercased,
5750         uc_is_property_changes_when_titlecased,
5751         uc_is_property_changes_when_casefolded,
5752         uc_is_property_changes_when_casemapped): New declarations.
5753         * lib/unictype/pr_byname.gperf: Add the new properties.
5754         * modules/unictype/property-byname (Depends-on): Depend on the new
5755         properties modules.
5756         * modules/unictype/property-all (Depends-on): Likewise.
5757         * MODULES.html.sh (Unicode string functions): Add
5758         unictype/property-case-ignorable, unictype/property-cased,
5759         unictype/property-changes-when-casefolded,
5760         unictype/property-changes-when-casemapped,
5761         unictype/property-changes-when-lowercased,
5762         unictype/property-changes-when-titlecased,
5763         unictype/property-changes-when-uppercased.
5764
5765         New module 'unictype/property-changes-when-casemapped'.
5766         * modules/unictype/property-changes-when-casemapped: New file.
5767         * lib/unictype/pr_changes_when_casemapped.c: New file.
5768         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5769         generated by gen-uni-tables.
5770         * modules/unictype/property-changes-when-casemapped-tests: New file.
5771         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5772         automatically generated by gen-uni-tables.
5773
5774         New module 'unictype/property-changes-when-casefolded'.
5775         * modules/unictype/property-changes-when-casefolded: New file.
5776         * lib/unictype/pr_changes_when_casefolded.c: New file.
5777         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5778         generated by gen-uni-tables.
5779         * modules/unictype/property-changes-when-casefolded-tests: New file.
5780         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5781         automatically generated by gen-uni-tables.
5782
5783         New module 'unictype/property-changes-when-titlecased'.
5784         * modules/unictype/property-changes-when-titlecased: New file.
5785         * lib/unictype/pr_changes_when_titlecased.c: New file.
5786         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5787         generated by gen-uni-tables.
5788         * modules/unictype/property-changes-when-titlecased-tests: New file.
5789         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5790         automatically generated by gen-uni-tables.
5791
5792         New module 'unictype/property-changes-when-uppercased'.
5793         * modules/unictype/property-changes-when-uppercased: New file.
5794         * lib/unictype/pr_changes_when_uppercased.c: New file.
5795         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5796         generated by gen-uni-tables.
5797         * modules/unictype/property-changes-when-uppercased-tests: New file.
5798         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5799         automatically generated by gen-uni-tables.
5800
5801         New module 'unictype/property-changes-when-lowercased'.
5802         * modules/unictype/property-changes-when-lowercased: New file.
5803         * lib/unictype/pr_changes_when_lowercased.c: New file.
5804         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5805         generated by gen-uni-tables.
5806         * modules/unictype/property-changes-when-lowercased-tests: New file.
5807         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5808         automatically generated by gen-uni-tables.
5809
5810         New module 'unictype/property-case-ignorable'.
5811         * modules/unictype/property-case-ignorable: New file.
5812         * lib/unictype/pr_case_ignorable.c: New file.
5813         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5814         by gen-uni-tables.
5815         * modules/unictype/property-case-ignorable-tests: New file.
5816         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5817         generated by gen-uni-tables.
5818
5819         New module 'unictype/property-cased'.
5820         * modules/unictype/property-cased: New file.
5821         * lib/unictype/pr_cased.c: New file.
5822         * lib/unictype/pr_cased.h: New file, automatically generated by
5823         gen-uni-tables.
5824         * modules/unictype/property-cased-tests: New file.
5825         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5826         gen-uni-tables.
5827
5828 2011-01-09  Bruno Haible  <bruno@clisp.org>
5829
5830         Update to Unicode 5.2.0.
5831         * lib/gen-uni-tables.c (output_predicate, output_category,
5832         output_combclass, output_bidi_category, output_decimal_digit_test,
5833         output_decimal_digit, output_digit_test, output_digit,
5834         output_numeric_test, output_numeric, output_mirror, output_scripts,
5835         output_scripts_byname, output_blocks, output_ident_category): Fix
5836         comment header.
5837         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5838         get_wbp.
5839         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5840         items.
5841         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5842         Changes_When_Lowercased, Changes_When_Uppercased,
5843         Changes_When_Titlecased, Changes_When_Casefolded,
5844         Changes_When_Casemapped.
5845         (is_property_alphabetic, is_property_default_ignorable_code_point):
5846         Update for Unicode 5.2.0.
5847         (is_property_cased, is_property_case_ignorable,
5848         is_property_changes_when_lowercased,
5849         is_property_changes_when_uppercased,
5850         is_property_changes_when_titlecased,
5851         is_property_changes_when_casefolded,
5852         is_property_changes_when_casemapped): New functions.
5853         (output_properties): Output also the properties cased, case_ignorable,
5854         changes_when_lowercased, changes_when_uppercased,
5855         changes_when_titlecased, changes_when_casefolded,
5856         changes_when_casemapped.
5857         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5858         Unicode TR#11 revision 17 -> 19.
5859         (LBP_CP): New enumeration value.
5860         (LBP_*): Adjust values accordingly.
5861         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5862         TR#14 revision 22 -> 24.
5863         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5864         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5865         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5866         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5867         is_WBP_MIDLETTER.
5868         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5869         the code1 and code2 of each composition rule.
5870         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5871         * lib/unicase/ignorable.h: Likewise.
5872         * lib/unicase/tocasefold.h: Likewise.
5873         * lib/unicase/tolower.h: Likewise.
5874         * lib/unicase/totitle.h: Likewise.
5875         * lib/unicase/toupper.h: Likewise.
5876         * lib/unictype/bidi_of.h: Likewise.
5877         * lib/unictype/blocks.h: Likewise.
5878         * lib/unictype/categ_C.h: Likewise.
5879         * lib/unictype/categ_Cf.h: Likewise.
5880         * lib/unictype/categ_Cn.h: Likewise.
5881         * lib/unictype/categ_L.h: Likewise.
5882         * lib/unictype/categ_Ll.h: Likewise.
5883         * lib/unictype/categ_Lm.h: Likewise.
5884         * lib/unictype/categ_Lo.h: Likewise.
5885         * lib/unictype/categ_Lu.h: Likewise.
5886         * lib/unictype/categ_M.h: Likewise.
5887         * lib/unictype/categ_Mc.h: Likewise.
5888         * lib/unictype/categ_Mn.h: Likewise.
5889         * lib/unictype/categ_N.h: Likewise.
5890         * lib/unictype/categ_Nd.h: Likewise.
5891         * lib/unictype/categ_Nl.h: Likewise.
5892         * lib/unictype/categ_No.h: Likewise.
5893         * lib/unictype/categ_P.h: Likewise.
5894         * lib/unictype/categ_Pd.h: Likewise.
5895         * lib/unictype/categ_Po.h: Likewise.
5896         * lib/unictype/categ_S.h: Likewise.
5897         * lib/unictype/categ_Sc.h: Likewise.
5898         * lib/unictype/categ_So.h: Likewise.
5899         * lib/unictype/categ_of.h: Likewise.
5900         * lib/unictype/combining.h: Likewise.
5901         * lib/unictype/ctype_alnum.h: Likewise.
5902         * lib/unictype/ctype_alpha.h: Likewise.
5903         * lib/unictype/ctype_graph.h: Likewise.
5904         * lib/unictype/ctype_lower.h: Likewise.
5905         * lib/unictype/ctype_print.h: Likewise.
5906         * lib/unictype/ctype_punct.h: Likewise.
5907         * lib/unictype/ctype_upper.h: Likewise.
5908         * lib/unictype/decdigit.h: Likewise.
5909         * lib/unictype/digit.h: Likewise.
5910         * lib/unictype/numeric.h: Likewise.
5911         * lib/unictype/pr_alphabetic.h: Likewise.
5912         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5913         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5914         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5915         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5916         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5917         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5918         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5919         * lib/unictype/pr_combining.h: Likewise.
5920         * lib/unictype/pr_composite.h: Likewise.
5921         * lib/unictype/pr_currency_symbol.h: Likewise.
5922         * lib/unictype/pr_dash.h: Likewise.
5923         * lib/unictype/pr_decimal_digit.h: Likewise.
5924         * lib/unictype/pr_deprecated.h: Likewise.
5925         * lib/unictype/pr_diacritic.h: Likewise.
5926         * lib/unictype/pr_extender.h: Likewise.
5927         * lib/unictype/pr_grapheme_base.h: Likewise.
5928         * lib/unictype/pr_grapheme_extend.h: Likewise.
5929         * lib/unictype/pr_grapheme_link.h: Likewise.
5930         * lib/unictype/pr_id_continue.h: Likewise.
5931         * lib/unictype/pr_id_start.h: Likewise.
5932         * lib/unictype/pr_ideographic.h: Likewise.
5933         * lib/unictype/pr_ignorable_control.h: Likewise.
5934         * lib/unictype/pr_logical_order_exception.h: Likewise.
5935         * lib/unictype/pr_lowercase.h: Likewise.
5936         * lib/unictype/pr_numeric.h: Likewise.
5937         * lib/unictype/pr_other_alphabetic.h: Likewise.
5938         * lib/unictype/pr_punctuation.h: Likewise.
5939         * lib/unictype/pr_sentence_terminal.h: Likewise.
5940         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5941         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5942         * lib/unictype/pr_unified_ideograph.h: Likewise.
5943         * lib/unictype/pr_uppercase.h: Likewise.
5944         * lib/unictype/pr_xid_continue.h: Likewise.
5945         * lib/unictype/pr_xid_start.h: Likewise.
5946         * lib/unictype/pr_zero_width.h: Likewise.
5947         * lib/unictype/scripts.h: Likewise.
5948         * lib/unictype/scripts_byname.gperf: Likewise.
5949         * lib/unictype/sy_java_ident.h: Likewise.
5950         * lib/unigbrk/gbrkprop.h: Likewise.
5951         * lib/unilbrk/lbrkprop1.h: Likewise.
5952         * lib/unilbrk/lbrkprop2.h: Likewise.
5953         * lib/unilbrk/lbrktables.h: Likewise.
5954         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5955         LBP_CP. Implement rule LB30.
5956         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5957         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5958         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5959         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5960         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5961         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5962         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5963         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5964         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5965         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5966         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5967         bits instead of 16 bits in the code1 and code2 of each composition
5968         rule.
5969         (uc_composition): Update for Unicode 5.2.0.
5970         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5971         * lib/uninorm/decomposition-table2.h: Likewise.
5972         * lib/uniwbrk/wbrkprop.h: Likewise.
5973         * tests/unicase/test-cased.c: Likewise.
5974         * tests/unicase/test-ignorable.c: Likewise.
5975         * tests/unicase/test-uc_tolower.c: Likewise.
5976         * tests/unicase/test-uc_totitle.c: Likewise.
5977         * tests/unicase/test-uc_toupper.c: Likewise.
5978         * tests/unictype/test-categ_C.c: Likewise.
5979         * tests/unictype/test-categ_Cf.c: Likewise.
5980         * tests/unictype/test-categ_Cn.c: Likewise.
5981         * tests/unictype/test-categ_L.c: Likewise.
5982         * tests/unictype/test-categ_Ll.c: Likewise.
5983         * tests/unictype/test-categ_Lm.c: Likewise.
5984         * tests/unictype/test-categ_Lo.c: Likewise.
5985         * tests/unictype/test-categ_Lu.c: Likewise.
5986         * tests/unictype/test-categ_M.c: Likewise.
5987         * tests/unictype/test-categ_Mc.c: Likewise.
5988         * tests/unictype/test-categ_Mn.c: Likewise.
5989         * tests/unictype/test-categ_N.c: Likewise.
5990         * tests/unictype/test-categ_Nd.c: Likewise.
5991         * tests/unictype/test-categ_Nl.c: Likewise.
5992         * tests/unictype/test-categ_No.c: Likewise.
5993         * tests/unictype/test-categ_P.c: Likewise.
5994         * tests/unictype/test-categ_Pd.c: Likewise.
5995         * tests/unictype/test-categ_Po.c: Likewise.
5996         * tests/unictype/test-categ_S.c: Likewise.
5997         * tests/unictype/test-categ_Sc.c: Likewise.
5998         * tests/unictype/test-categ_So.c: Likewise.
5999         * tests/unictype/test-ctype_alnum.c: Likewise.
6000         * tests/unictype/test-ctype_alpha.c: Likewise.
6001         * tests/unictype/test-ctype_graph.c: Likewise.
6002         * tests/unictype/test-ctype_lower.c: Likewise.
6003         * tests/unictype/test-ctype_print.c: Likewise.
6004         * tests/unictype/test-ctype_punct.c: Likewise.
6005         * tests/unictype/test-ctype_upper.c: Likewise.
6006         * tests/unictype/test-decdigit.h: Likewise.
6007         * tests/unictype/test-digit.h: Likewise.
6008         * tests/unictype/test-numeric.h: Likewise.
6009         * tests/unictype/test-pr_alphabetic.c: Likewise.
6010         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6011         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6012         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6013         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6014         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6015         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6016         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6017         * tests/unictype/test-pr_combining.c: Likewise.
6018         * tests/unictype/test-pr_composite.c: Likewise.
6019         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6020         * tests/unictype/test-pr_dash.c: Likewise.
6021         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6022         * tests/unictype/test-pr_deprecated.c: Likewise.
6023         * tests/unictype/test-pr_diacritic.c: Likewise.
6024         * tests/unictype/test-pr_extender.c: Likewise.
6025         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6026         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6027         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6028         * tests/unictype/test-pr_id_continue.c: Likewise.
6029         * tests/unictype/test-pr_id_start.c: Likewise.
6030         * tests/unictype/test-pr_ideographic.c: Likewise.
6031         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6032         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6033         * tests/unictype/test-pr_lowercase.c: Likewise.
6034         * tests/unictype/test-pr_numeric.c: Likewise.
6035         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6036         * tests/unictype/test-pr_punctuation.c: Likewise.
6037         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6038         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6039         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6040         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6041         * tests/unictype/test-pr_uppercase.c: Likewise.
6042         * tests/unictype/test-pr_xid_continue.c: Likewise.
6043         * tests/unictype/test-pr_xid_start.c: Likewise.
6044         * tests/unictype/test-pr_zero_width.c: Likewise.
6045         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6046         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6047         changed behaviour: line breaking is now disallowed between a letter
6048         or '=' and '('.
6049         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6050         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6051         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6052         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6053         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6054         lib/uniwidth/width.c.
6055         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6056         without comments, but with the original copyright notice.
6057         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6058         changes.
6059         * lib/unictype/categ_Cc.h: Likewise.
6060         * lib/unictype/categ_Co.h: Likewise.
6061         * lib/unictype/categ_Cs.h: Likewise.
6062         * lib/unictype/categ_Lt.h: Likewise.
6063         * lib/unictype/categ_Me.h: Likewise.
6064         * lib/unictype/categ_Pc.h: Likewise.
6065         * lib/unictype/categ_Pe.h: Likewise.
6066         * lib/unictype/categ_Pf.h: Likewise.
6067         * lib/unictype/categ_Pi.h: Likewise.
6068         * lib/unictype/categ_Ps.h: Likewise.
6069         * lib/unictype/categ_Sk.h: Likewise.
6070         * lib/unictype/categ_Sm.h: Likewise.
6071         * lib/unictype/categ_Z.h: Likewise.
6072         * lib/unictype/categ_Zl.h: Likewise.
6073         * lib/unictype/categ_Zp.h: Likewise.
6074         * lib/unictype/categ_Zs.h: Likewise.
6075         * lib/unictype/ctype_blank.h: Likewise.
6076         * lib/unictype/ctype_cntrl.h: Likewise.
6077         * lib/unictype/ctype_digit.h: Likewise.
6078         * lib/unictype/ctype_space.h: Likewise.
6079         * lib/unictype/ctype_xdigit.h: Likewise.
6080         * lib/unictype/mirror.h: Likewise.
6081         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6082         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6083         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6084         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6085         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6086         * lib/unictype/pr_bidi_control.h: Likewise.
6087         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6088         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6089         * lib/unictype/pr_bidi_pdf.h: Likewise.
6090         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6091         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6092         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6093         * lib/unictype/pr_format_control.h: Likewise.
6094         * lib/unictype/pr_hex_digit.h: Likewise.
6095         * lib/unictype/pr_hyphen.h: Likewise.
6096         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6097         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6098         * lib/unictype/pr_iso_control.h: Likewise.
6099         * lib/unictype/pr_join_control.h: Likewise.
6100         * lib/unictype/pr_left_of_pair.h: Likewise.
6101         * lib/unictype/pr_line_separator.h: Likewise.
6102         * lib/unictype/pr_math.h: Likewise.
6103         * lib/unictype/pr_non_break.h: Likewise.
6104         * lib/unictype/pr_not_a_character.h: Likewise.
6105         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6106         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6107         * lib/unictype/pr_other_id_continue.h: Likewise.
6108         * lib/unictype/pr_other_id_start.h: Likewise.
6109         * lib/unictype/pr_other_lowercase.h: Likewise.
6110         * lib/unictype/pr_other_math.h: Likewise.
6111         * lib/unictype/pr_other_uppercase.h: Likewise.
6112         * lib/unictype/pr_paired_punctuation.h: Likewise.
6113         * lib/unictype/pr_paragraph_separator.h: Likewise.
6114         * lib/unictype/pr_pattern_syntax.h: Likewise.
6115         * lib/unictype/pr_pattern_white_space.h: Likewise.
6116         * lib/unictype/pr_private_use.h: Likewise.
6117         * lib/unictype/pr_quotation_mark.h: Likewise.
6118         * lib/unictype/pr_radical.h: Likewise.
6119         * lib/unictype/pr_soft_dotted.h: Likewise.
6120         * lib/unictype/pr_space.h: Likewise.
6121         * lib/unictype/pr_titlecase.h: Likewise.
6122         * lib/unictype/pr_variation_selector.h: Likewise.
6123         * lib/unictype/pr_white_space.h: Likewise.
6124         * lib/unictype/sy_c_ident.h: Likewise.
6125         * lib/unictype/sy_c_whitespace.h: Likewise.
6126         * lib/unictype/sy_java_whitespace.h: Likewise.
6127         * modules/uni*/*: Bump version number of expected libunistring version.
6128         Reported by Simon Josefsson.
6129
6130 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6131
6132         useless-if-before-free: fix typo in --help and make the internal,
6133         automatic version date update process work once again.
6134         --help output contained a NUL character instead of the
6135         backslash-zero that was intended.  Also, the "must lie within
6136         the first 8 lines" line is on line 9, and hence not getting
6137         automatically updated.
6138         * build-aux/useless-if-before-free: Fix the former by adding a
6139         backslash, and the latter by condensing the three lines of what-it-does
6140         to a single line, leaving one line of slack for the future.
6141
6142 2011-01-09  Bruno Haible  <bruno@clisp.org>
6143
6144         uniwidth/width: Fix width of U+1D173..U+1D17A.
6145         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6146         symbolic_width, output_width_property_test): New functions.
6147         (main): Invoke output_nonspacing_property, output_width_property_test.
6148         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6149         U+1D173..U+1D17A.
6150         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6151         1.
6152         * modules/uniwidth/*: Bump version number of expected libunistring
6153         version.
6154         * modules/unilbrk/*: Likewise.
6155
6156 2011-01-08  Bruno Haible  <bruno@clisp.org>
6157
6158         uninorm tests: Preserve copyright of Unicode data file.
6159         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6160         Mention modifications.
6161
6162 2011-01-08  Bruno Haible  <bruno@clisp.org>
6163
6164         gen-uni-tables: Prepare for Unicode 5.2.0.
6165         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6166         (debug_output_lbp, output_lbp): Update.
6167
6168 2011-01-08  Bruno Haible  <bruno@clisp.org>
6169
6170         unilbrk: Clarify gen-uni-tables.c code.
6171         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6172         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6173         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6174
6175 2011-01-07  Bruno Haible  <bruno@clisp.org>
6176
6177         strtod: Restore errno when successfully parsing Infinity or NaN.
6178         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6179         restore the original errno.
6180
6181 2011-01-07  Bruno Haible  <bruno@clisp.org>
6182
6183         remove test: Avoid failure on HP-UX 11.
6184         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6185
6186 2011-01-07  Bruno Haible  <bruno@clisp.org>
6187
6188         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6189         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6190         error code.
6191
6192 2011-01-07  Pádraig Brady <P@draigBrady.com>
6193
6194         ignore-value: fixup comments, and add Eric Blake
6195         as an author since he rewrote the macros.
6196         * lib/ignore-value.h (ignore_value):  State that
6197         we now support aggregates.  Also specify exactly
6198         when the GCC warn_unused_result feature was added.
6199
6200 2011-01-06  Eric Blake  <eblake@redhat.com>
6201
6202         ignore-value: support aggregate types
6203         * lib/ignore-value.h (ignore_value): Provide separate gcc
6204         definition.
6205         * modules/ignore-value-tests: New test module.
6206         * tests/test-ignore-value.c: New test.
6207
6208         maint.mk: improve sc_prohibit_strcmp regex
6209         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6210         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6211         definition of STRNEQ.
6212
6213         signal: work around Haiku issue with SIGBUS
6214         * lib/siglist.h: Add comment.
6215         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6216         strsignal's favoring of SIGSEGV.
6217         * tests/test-signal.c (main): Avoid test failure.
6218         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6219         Reported by Scott McCreary.
6220
6221         maint.mk: add pre-release check to ensure submodule commits are public
6222         * top/maint.mk (public-submodule-commit): New rule.
6223         (submodule-checks): New variable.
6224         (alpha beta stable): Depend on the variable.
6225
6226 2011-01-05  Pádraig Brady <P@draigBrady.com>
6227         and Jim Meyering  <meyering@redhat.com>
6228
6229         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6230         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6231         (ATTRIBUTE_DEPRECATED): Define.
6232         (_ignore_case): New function.
6233         (ignore_value): New macro, to replace the old function.
6234         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6235         * modules/ignore-value (Depends-on): Add stdint.
6236
6237 2011-01-04  Eric Blake  <eblake@redhat.com>
6238
6239         doc: regenerate INSTALL
6240         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6241         @firstparagraphindent support, now that autoconf dropped it.
6242         (INSTALL_PRELUDE): Reinstate old macro.
6243         * doc/install.texi: Resync from autoconf.
6244         * doc/INSTALL: Reflect recent autoconf update.
6245         * doc/INSTALL.ISO: Likewise.
6246         * doc/INSTALL.UTF-8: Likewise.
6247         Reported by Karl Berry.
6248
6249 2011-01-04  Bruce Korb  <address@hidden>
6250
6251         git-version-gen: avoid a sub-shell
6252         * build-aux/git-version-gen: Redirect stderr in `...` via
6253         "exec 2>...", rather than via an added sub-shell.
6254
6255 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6256
6257         git-version-gen: use (...) rather than sh -c '...'
6258         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6259         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6260
6261 2011-01-03  Jim Meyering  <meyering@redhat.com>
6262
6263         git-version-gen: convert leading TABs to spaces
6264         * build-aux/git-version-gen: Expand leading TABs.
6265
6266         git-version-gen: handle failed "git rev-list"
6267         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6268         from git and proceeding as if it had succeeded but printed no SHA1
6269         checksums, suppress the diagnostic and handle the failure.
6270         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6271
6272         git-version-gen: include command name in one more diagnostic
6273         * build-aux/git-version-gen: When the required .tarball-version file
6274         was missing or unreadable, you might see the diagnostic from "cat",
6275         but no trace of the name of the invoking script.  Now, you still see
6276         the diagnostic from cat, but also get one from "git-version-gen: ".
6277         Inspired by a patch from Bruce Korb.
6278
6279         update-copyright: adjust test to match changed code
6280         * tests/test-update-copyright.sh: Change test's expected output
6281         to match new actual output.
6282
6283 2011-01-02  Bruno Haible  <bruno@clisp.org>
6284
6285         getlogin_r: Avoid test failure on HP-UX 11.
6286         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6287         ERANGE when the second argument is zero.
6288         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6289         portability problem.
6290
6291 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6292
6293         * build-aux/update-copyright: doc Simon's changes
6294
6295 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6296
6297         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6298         environment variable.
6299
6300 2011-01-02  Bruno Haible  <bruno@clisp.org>
6301
6302         unigbrk: Avoid gcc warnings.
6303         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6304         unused variable.
6305         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6306         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6307         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6308         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6309         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6310         Change type of first argument to 'const char *'.
6311         (main): Remove unused variable.
6312         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6313         type of first argument to 'const char *'.
6314         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6315         Likewise.
6316         (main): Change type of variable 's'.
6317         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6318         to 'int'.
6319
6320 2011-01-02  Bruno Haible  <bruno@clisp.org>
6321
6322         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6323         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6324         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6325         bug.
6326         * lib/pwrite.c: Undo 2010-12-31 patch.
6327         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6328
6329 2011-01-02  Bruno Haible  <bruno@clisp.org>
6330
6331         pread: Fix test whether it works.
6332         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6333
6334 2011-01-02  Bruno Haible  <bruno@clisp.org>
6335
6336         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6337         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6338         ends in "6". Don't require a specific month name. Try also the locale
6339         names found on HP-UX 11 and Solaris 7.
6340
6341 2011-01-02  Bruno Haible  <bruno@clisp.org>
6342
6343         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6344         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6345         C linkage.
6346         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6347
6348 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6349
6350         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6351         for consistency, since the "cluster" term is not used elsewhere.
6352         * lib/unigbrk.in.h: Update name.
6353         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6354         * lib/unigbrk/u16-grapheme-next.c: Update name.
6355         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6356         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6357         * lib/unigbrk/u32-grapheme-next.c: Update name.
6358         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6359         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6360         * lib/unigbrk/u8-grapheme-next.c: Update name.
6361         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6362         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6363         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6364         Suggested by Bruno Haible.
6365
6366 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6367
6368         Remove module 'u8-grapheme-len' as too redundant with
6369         'u8-grapheme-next'.
6370         * modules/unigbrk/u8-grapheme-len: Delete file.
6371         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6372         * lib/unigbrk.in.h: Remove prototype for deleted function.
6373         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6374         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6375
6376         Remove module 'u16-grapheme-len' as too redundant with
6377         'u16-grapheme-next'.
6378         * modules/unigbrk/u16-grapheme-len: Delete file.
6379         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6380         * lib/unigbrk.in.h: Remove prototype for deleted function.
6381         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6382         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6383
6384         Remove module 'u32-grapheme-len' as too redundant with
6385         'u32-grapheme-next'.
6386         * modules/unigbrk/u32-grapheme-len: Delete file.
6387         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6388         * lib/unigbrk.in.h: Remove prototype for deleted function.
6389         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6390         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6391
6392         Suggested by Bruno Haible.
6393
6394 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6395
6396         * unigbrk.in.h: Fix typo: "ben" => "been".
6397         Reported by Bruno Haible.
6398
6399 2011-01-01  Jim Meyering  <meyering@redhat.com>
6400
6401         maint: update almost all copyright ranges to include 2011
6402         Run the new "make update-copyright" rule.
6403
6404 2011-01-01  Jim Meyering  <meyering@redhat.com>
6405
6406         maint: update-copyright: exempt doc/INSTALL*
6407         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6408         since they are generated.  Suggested by Bruno Haible.
6409
6410 2011-01-01  Jim Meyering  <meyering@redhat.com>
6411
6412         maint: refine the update-copyright rule
6413         * Makefile (update-copyright): Also exclude any file that includes
6414         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6415         code that merely generates the comment.
6416
6417 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6418
6419         New module 'u8-grapheme-len'.
6420         * modules/unigbrk/u8-grapheme-len: New file.
6421         * modules/unigbrk/u8-grapheme-len-tests: New file.
6422         * lib/unigbrk.in.h: Add prototype for new function.
6423         * lib/unigbrk/u8-grapheme-len.c: New file.
6424         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6425
6426         New module 'u16-grapheme-len'.
6427         * modules/unigbrk/u16-grapheme-len: New file.
6428         * modules/unigbrk/u16-grapheme-len-tests: New file.
6429         * lib/unigbrk.in.h: Add prototype for new function.
6430         * lib/unigbrk/u16-grapheme-len.c: New file.
6431         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6432
6433         New module 'u32-grapheme-len'.
6434         * modules/unigbrk/u32-grapheme-len: New file.
6435         * modules/unigbrk/u32-grapheme-len-tests: New file.
6436         * lib/unigbrk.in.h: Add prototype for new function.
6437         * lib/unigbrk/u32-grapheme-len.c: New file.
6438         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6439
6440         New module 'u8-grapheme-next'.
6441         * modules/unigbrk/u8-grapheme-next: New file.
6442         * modules/unigbrk/u8-grapheme-next-tests: New file.
6443         * lib/unigbrk.in.h: Add prototype for new function.
6444         * lib/unigbrk/u8-grapheme-next.c: New file.
6445         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6446
6447         New module 'u16-grapheme-next'.
6448         * modules/unigbrk/u16-grapheme-next: New file.
6449         * modules/unigbrk/u16-grapheme-next-tests: New file.
6450         * lib/unigbrk.in.h: Add prototype for new function.
6451         * lib/unigbrk/u16-grapheme-next.c: New file.
6452         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6453
6454         New module 'u32-grapheme-next'.
6455         * modules/unigbrk/u32-grapheme-next: New file.
6456         * modules/unigbrk/u32-grapheme-next-tests: New file.
6457         * lib/unigbrk.in.h: Add prototype for new function.
6458         * lib/unigbrk/u32-grapheme-next.c: New file.
6459         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6460
6461         New module 'u8-grapheme-prev'.
6462         * modules/unigbrk/u8-grapheme-prev: New file.
6463         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6464         * lib/unigbrk.in.h: Add prototype for new function.
6465         * lib/unigbrk/u8-grapheme-prev.c: New file.
6466         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6467
6468         New module 'u16-grapheme-prev'.
6469         * modules/unigbrk/u16-grapheme-prev: New file.
6470         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6471         * lib/unigbrk.in.h: Add prototype for new function.
6472         * lib/unigbrk/u16-grapheme-prev.c: New file.
6473         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6474
6475         New module 'u32-grapheme-prev'.
6476         * modules/unigbrk/u32-grapheme-prev: New file.
6477         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6478         * lib/unigbrk.in.h: Add prototype for new function.
6479         * lib/unigbrk/u32-grapheme-prev.c: New file.
6480         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6481
6482         New module 'u8-grapheme-breaks'.
6483         * modules/unigbrk/u8-grapheme-breaks: New file.
6484         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6485         * lib/unigbrk.in.h: Add prototype for new function.
6486         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6487         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6488
6489         New module 'u16-grapheme-breaks'.
6490         * modules/unigbrk/u16-grapheme-breaks: New file.
6491         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6492         * lib/unigbrk.in.h: Add prototype for new function.
6493         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6494         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6495
6496         New module 'u32-grapheme-breaks'.
6497         * modules/unigbrk/u32-grapheme-breaks: New file.
6498         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6499         * lib/unigbrk.in.h: Add prototype for new function.
6500         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6501         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6502
6503         New module 'ulc-grapheme-breaks'.
6504         * modules/unigbrk/ulc-grapheme-breaks: New file.
6505         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6506         * m4/locale-ar.m4: New file.
6507         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6508         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6509         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6510
6511 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6512
6513         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6514         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6515         modified how this file was generated before I initially submitted
6516         the module, but failed to regenerate it.  This meant that several
6517         of the level2 entries were wrong.
6518         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6519         Remove the division-by-2 that is folded into the table now that
6520         gbrkprop.h has been regenerated properly.  Now -1 entries are
6521         handled correctly.
6522
6523         New module 'unigbrk/uc-gbrk-prop-tests'.
6524         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6525         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6526         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6527         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6528
6529 2011-01-01  Bruno Haible  <bruno@clisp.org>
6530
6531         Avoid use of hexadecimal escapes.
6532         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6533         instead of hexadecimal escapes.
6534
6535 2011-01-01  Jim Meyering  <meyering@redhat.com>
6536
6537         maint: new rule to update copyright year ranges
6538         * Makefile (update-copyright): New rule.
6539
6540         maint: indent with TABs in Makefile
6541         * Makefile: Expand leading sequences of spaces to TABs
6542
6543         version-etc: update the copyright year it reports
6544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6545
6546 2010-12-31  Bruno Haible  <bruno@clisp.org>
6547
6548         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6549         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6550         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6551         zero.
6552
6553 2010-12-31  Bruno Haible  <bruno@clisp.org>
6554
6555         pwrite: Work around HP-UX 11.11 bug.
6556         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6557         works and set REPLACE_PWRITE if not.
6558         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6559         function.
6560         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6561
6562 2010-12-31  Bruno Haible  <bruno@clisp.org>
6563
6564         pread: Work around HP-UX 11 bugs.
6565         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6566         and set REPLACE_PREAD if not.
6567         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6568
6569 2010-12-31  Eric Blake  <eblake@redhat.com>
6570
6571         nl_langinfo: fix YESEXPR on Irix 6.5
6572         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6573         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6574         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6575         it.
6576
6577 2010-12-31  Bruno Haible  <bruno@clisp.org>
6578
6579         iconv: Document HP-UX 11 bug.
6580         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6581
6582 2010-12-31  Bruno Haible  <bruno@clisp.org>
6583
6584         ldexpl: Fix link error on HP-UX 11.
6585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6586         LDEXPL_LIBM, using $ISNANL_LIBM.
6587
6588 2010-12-31  Eric Blake  <eblake@redhat.com>
6589
6590         ftello: avoid compilation failure with SunStudio c89
6591         * lib/ftello.c (ftello): Use lseek, not llseek.
6592
6593         tests: avoid failing coreutils tests on cygwin
6594         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6595         (create_exe_shims_): Return 0 when skipping.
6596
6597 2010-12-31  Bruno Haible  <bruno@clisp.org>
6598
6599         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6600         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6601
6602 2010-12-31  Bruno Haible  <bruno@clisp.org>
6603
6604         waitpid: Fix link error in C++ mode.
6605         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6606
6607 2010-12-31  Bruno Haible  <bruno@clisp.org>
6608
6609         isnan: Use GCC built-ins when possible.
6610         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6611         __builtin_isnan.
6612         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6613         (isnan): Define using GCC built-ins for GCC >= 4.0.
6614
6615 2010-12-31  Bruno Haible  <bruno@clisp.org>
6616
6617         isnand: Fix mistake.
6618         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6619         __builtin_isnand.
6620
6621 2010-12-31  Bruno Haible  <bruno@clisp.org>
6622
6623         open: Avoid C++ error on HP-UX 11.
6624         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6625
6626 2010-12-31  Bruno Haible  <bruno@clisp.org>
6627
6628         time_r: Add missing declarations on HP-UX 11.
6629         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6630         instead of HAVE_LOCALTIME_R.
6631         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6632         HAVE_LOCALTIME_R always.
6633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6634         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6635         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6636         HAVE_LOCALTIME_R.
6637         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6638         * doc/posix-functions/localtime_r.texi: Likewise.
6639
6640 2010-12-29  Eric Blake  <eblake@redhat.com>
6641
6642         mountlist: tweak previous commit
6643         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6644         Reported by Paul Eggert.
6645
6646         mountlist: fix local drive detection on cygwin
6647         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6648         that works for cygwin.
6649
6650 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6651
6652         ftoastr, snprintf: ftoastr + snprintf module
6653         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6654         since the snprintf module now should be good enough here.
6655         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6656         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6657         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6658         GNULIB_SNPRINTF only for the test directory, and the latter
6659         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6660         seems to suffice by itself.
6661
6662 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6663
6664         alloca: one step towards thread-safety
6665         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6666         need for a static variable.  All callers changed.  This does not
6667         make the alloca replacement thread-safe, but it's one step.
6668
6669         tests: minor indenting change
6670         * tests/init.sh: Sync from coreutils housekeeping patch
6671         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6672         to keep lines within 80 columns.
6673
6674 2010-12-28  Jim Meyering  <meyering@redhat.com>
6675
6676         regex: don't infloop on persistent failing calloc
6677         * lib/regexec.c (build_trtable): Return failure indication upon
6678         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6679         In glibc, this was fixed for version 2.13:
6680         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6681
6682 2010-12-28  Bruno Haible  <bruno@clisp.org>
6683             Paul Eggert <eggert@cs.ucla.edu>
6684
6685         linkat: Make implementation robust against system behaviour variations.
6686         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6687         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6688         way, and to -2 if it needs a generic runtime test.
6689         * lib/linkat.c (solaris_optimized_link_immediate,
6690         solaris_optimized_link_follow): New functions.
6691         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6692         (check_same_link): Use it.
6693
6694 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6695
6696         New module 'unigbrk/base'.
6697         * modules/unigbrk/base: New file.
6698         * lib/unigbrk.in.h: New file.
6699
6700         New module 'unigbrk/uc-gbrk-prop'.
6701         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6702         * modules/unigbrk/uc-gbrk-prop: New file.
6703         * lib/unigbrk/gbrkprop.h: New file.
6704         * lib/unigbrk/uc-gbrk-prop.c: New file.
6705
6706         New module 'unigbrk/uc-is-grapheme-break'.
6707         * modules/unigbrk/uc-is-grapheme-break: New file.
6708         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6709         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6710         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6711         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6712         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6713
6714         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6715
6716 2010-12-27  Bruno Haible  <bruno@clisp.org>
6717
6718         linkat test: Avoid failure on Solaris 11 2010-11.
6719         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6720
6721 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6722
6723         utimens: work around glibc rounding bug on more platforms
6724         * lib/utimens.c (fdutimens): Work around rounding bug even if
6725         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6727
6728 2010-12-27  Bruno Haible  <bruno@clisp.org>
6729
6730         select tests: Improve comments.
6731         * tests/test-select.c (do_select): Add comments.
6732
6733 2010-12-27  Bruno Haible  <bruno@clisp.org>
6734
6735         select tests: Safer way of handling timeout.
6736         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6737         at every invocation.
6738
6739 2010-12-27  Bruno Haible  <bruno@clisp.org>
6740
6741         select tests: Use 'bool' where appropriate.
6742         * tests/test-select.c (connect_to_socket): Change argument type to
6743         'bool'.
6744
6745 2010-12-27  Bruno Haible  <bruno@clisp.org>
6746
6747         select tests: Use existing modules.
6748         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6749         (configure.ac): Don't test for unistd.h.
6750         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6751         declared in <unistd.h>.
6752
6753 2010-12-27  Bruno Haible  <bruno@clisp.org>
6754
6755         mbrtowc: Work around a Solaris 7 bug.
6756         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6757         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6758         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6759         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6760         MBRTOWC_NULL_ARG1_BUG.
6761         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6762         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6763         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6764         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6765
6766 2010-12-27  Jim Meyering  <meyering@redhat.com>
6767
6768         read-file.c: tweak syntax
6769         * lib/read-file.c (fread_file): Remove space after "*" in function
6770         definitions.
6771
6772 2010-12-27  Bruno Haible  <bruno@clisp.org>
6773
6774         times test: Avoid gcc warnings on OSF/1.
6775         * tests/test-times.c (main): Cast printf arguments from clock_t to
6776         'long int'.
6777
6778 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6779
6780         utimens: work around glibc rounding bug on older Linux kernels
6781         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6782         on Linux with a glibc whose utimes might not work, then work
6783         around a longstanding glibc bug involving rounding rather than
6784         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6786
6787 2010-12-26  Bruno Haible  <bruno@clisp.org>
6788
6789         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6790         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6791         _GL_CXXALIAS_SYS.
6792         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6793
6794 2010-12-26  Bruno Haible  <bruno@clisp.org>
6795
6796         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6797         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6798         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6799         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6800         looking for the declaration.
6801         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6802         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6803         problem.
6804         * doc/posix-functions/inet_pton.texi: Likewise.
6805
6806 2010-12-26  Bruno Haible  <bruno@clisp.org>
6807
6808         arpa_inet: Use the common idioms with C++ support.
6809         * lib/arpa_inet.in.h: Include c++defs.h.
6810         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6811         support.
6812         * modules/arpa_inet (Depends-on): Add c++defs.
6813         (Makefile.am): Substitute the contents of c++defs.h.
6814         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6815         * modules/arpa_inet-c++-tests: New file.
6816         * tests/test-arpa_inet-c++.cc: New file.
6817
6818 2010-12-25  Bruno Haible  <bruno@clisp.org>
6819
6820         Fix more C++ link errors on Solaris 8.
6821         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6822         $(LIB_EACCESS).
6823         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6824         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6825         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6826         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6827         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6828
6829 2010-12-25  Bruno Haible  <bruno@clisp.org>
6830
6831         printf-posix: Fix link error when a non-GCC compiler is used.
6832         * lib/stdio.in.h (printf): When not using GCC, override printf
6833         correctly.
6834         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6835
6836 2010-12-25  Bruno Haible  <bruno@clisp.org>
6837
6838         strerror_r-posix: Update doc.
6839         * doc/posix-functions/strerror_r.texi: Update doc about the return
6840         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6841
6842 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6843
6844         utimens: simplify the logic of the previous change
6845         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6846         This should not affect whether the test succeeds or fails.
6847
6848         utimens: configure better on hosts with NFS clock skew
6849         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6850         uses the clock of the local host.  It might use the clock of the
6851         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6852         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6853
6854 2010-12-25  Bruno Haible  <bruno@clisp.org>
6855
6856         ptsname test: Avoid failure on Solaris.
6857         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6858         open a pseudo-terminal; don't use BSD-style ptys.
6859         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6860
6861 2010-12-25  Bruno Haible  <bruno@clisp.org>
6862
6863         ptsname: Avoid ERANGE failure on some systems.
6864         * lib/ptsname.c (buffer): Increase size.
6865
6866 2010-12-25  Bruno Haible  <bruno@clisp.org>
6867
6868         rename, renameat: Avoid test failures at NFS mounted locations.
6869         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6870         so that subsequent mkdir calls succeed.
6871
6872 2010-12-25  Bruno Haible  <bruno@clisp.org>
6873
6874         iswblank: Fix C++ link error on Solaris 8.
6875         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6876         _GL_FUNCDECL_SYS.
6877
6878 2010-12-25  Bruno Haible  <bruno@clisp.org>
6879
6880         unistd: Fix C++ link error on Solaris 8.
6881         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6882
6883 2010-12-25  Bruno Haible  <bruno@clisp.org>
6884
6885         readlink doc: Mention an old glibc bug.
6886         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6887
6888 2010-12-25  Bruno Haible  <bruno@clisp.org>
6889
6890         fcntl-h: Fix for use of C++ on glibc systems.
6891         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6892         also on glibc systems in C++ mode.
6893         Reported by Gary V. Vaughan <gary@gnu.org>.
6894
6895 2010-12-25  Bruno Haible  <bruno@clisp.org>
6896
6897         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6898         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6899
6900 2010-12-25  Bruno Haible  <bruno@clisp.org>
6901
6902         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6903         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6904         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6905         test whether truncl works according to ISO C 99 with IEC 60559.
6906         * m4/truncl-ieee.m4: New file.
6907         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6908         m4/signbit.m4.
6909         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6910
6911 2010-12-25  Bruno Haible  <bruno@clisp.org>
6912
6913         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6914         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6915         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6916         test whether ceill works according to ISO C 99 with IEC 60559.
6917         * m4/ceill-ieee.m4: New file.
6918         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6919         m4/signbit.m4.
6920         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6921
6922 2010-12-25  Bruno Haible  <bruno@clisp.org>
6923
6924         Ensure all prerequisites of <wchar.h> are included.
6925         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6926         before <wchar.h>.
6927         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6928         gl_MBRLEN_NUL_RETVAL): Likewise.
6929         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6930         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6931         AC_FUNC_MBRTOWC): Likewise.
6932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6933         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6934         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6935         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6936         Likewise.
6937         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6938         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6939         (gl_WCHAR_H): Improve comments.
6940         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6941
6942 2010-12-25  Bruno Haible  <bruno@clisp.org>
6943
6944         strtok_r: Fix C syntax error in autoconf macro.
6945         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6946         characters in test program.
6947
6948 2010-12-24  Bruno Haible  <bruno@clisp.org>
6949
6950         ceil, trunc, round: Fix gcc warnings.
6951         * lib/ceil.c (MIN): Undefine before redefining.
6952         * lib/trunc.c (MIN): Likewise.
6953         * lib/round.c (MIN): Likewise.
6954         Include <math.h> first.
6955
6956 2010-12-24  Bruno Haible  <bruno@clisp.org>
6957
6958         select tests: Avoid failures on OSF/1 5.1.
6959         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6960         failure of closing the last socket; it may fail with ECONNRESET.
6961
6962 2010-12-24  Eric Blake  <eblake@redhat.com>
6963
6964         stdint: avoid HP-UX 10.20 preprocessor bug
6965         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6966         than #if.
6967         * tests/test-floor2.c (main): Likewise.
6968         Reported by Peter O'Gorman.
6969
6970         pipe: make obsoletion transition easier
6971         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6972         * modules/pipe (Files): Include revived file.
6973         (Include): Drop reference, to mirror getdate's behavior.
6974
6975 2010-12-24  Bruno Haible  <bruno@clisp.org>
6976
6977         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6978         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6979         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6980         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6981
6982 2010-12-24  Bruno Haible  <bruno@clisp.org>
6983
6984         gethostname: Ensure declaration on NonStop Kernel.
6985         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6986         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6987
6988 2010-12-24  Bruno Haible  <bruno@clisp.org>
6989
6990         sys_select: Ensure all necessary types on NonStop Kernel.
6991         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6992         include <sys/time.h>.
6993         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6994         NonStop Kernel.
6995         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6996
6997 2010-12-24  Bruno Haible  <bruno@clisp.org>
6998
6999         sys_select: Remove unneeded include.
7000         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7001         have <sys/select.h>.
7002
7003 2010-12-24  Bruno Haible  <bruno@clisp.org>
7004
7005         gethostname: Provide a fallback for HOST_NAME_MAX.
7006         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7007         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7008         instead.
7009         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7010
7011 2010-12-24  Bruno Haible  <bruno@clisp.org>
7012
7013         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7014         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7015         (SA_RESTART): Likewise.
7016         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7017
7018 2010-12-24  Bruno Haible  <bruno@clisp.org>
7019
7020         signal: Define NSIG.
7021         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7022         * tests/test-signal.c (nsig): New variable.
7023         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7024
7025 2010-12-24  Bruno Haible  <bruno@clisp.org>
7026
7027         rename, renameat: Avoid test failures on OSF/1 5.1.
7028         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7029         alternative error codes.
7030         * tests/test-renameat.c (main): Likewise.
7031
7032 2010-12-24  Bruno Haible  <bruno@clisp.org>
7033
7034         *printf: Detect large precisions bug on Solaris 10/SPARC.
7035         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7036         by Paul Eggert.
7037         * tests/test-snprintf-posix.h (test_function): Add this test code here
7038         too.
7039         * tests/test-sprintf-posix.h (test_function): Likewise.
7040         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7041         * tests/test-vasprintf-posix.c (test_function): Likewise.
7042         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7043         around by gnulib.
7044         * doc/posix-functions/printf.texi: Likewise.
7045         * doc/posix-functions/snprintf.texi: Likewise.
7046         * doc/posix-functions/sprintf.texi: Likewise.
7047         * doc/posix-functions/vfprintf.texi: Likewise.
7048         * doc/posix-functions/vprintf.texi: Likewise.
7049         * doc/posix-functions/vsnprintf.texi: Likewise.
7050         * doc/posix-functions/vsprintf.texi: Likewise.
7051         * doc/posix-functions/dprintf.texi: Undo last commit.
7052         * doc/posix-functions/vdprintf.texi: Likewise.
7053
7054 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7055
7056         tests: port test-fdutimensat.c to Solaris 8
7057         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7058         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7059         On Solaris 8, it fails with errno == ENOSYS, because there is no
7060         futimens (so it can't use the fd), and there is no lutimens (so it
7061         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7062
7063         vsnprintf: make more consistent with snprintf; doc fixes
7064
7065         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7066         the byte count return problem was promoted from the snprintf-posix
7067         to the snprintf module.
7068         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7069         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7070         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7071         * tests/test-snprintf.c (main): Check the byte count returned.
7072         * tests/test-vsnprintf.c (main): Likewise.
7073
7074 2010-12-23  Eric Blake  <eblake@redhat.com>
7075
7076         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7077         * modules/sigpipe (License): Relax license.
7078
7079 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7080
7081         doc: document Solaris printf bug with large float precisions
7082         * doc/posix-functions/dprintf.texi (dprintf):
7083         * doc/posix-functions/fprintf.texi (fprintf):
7084         * doc/posix-functions/printf.texi (printf):
7085         * doc/posix-functions/snprintf.texi (snprintf):
7086         * doc/posix-functions/sprintf.texi (sprintf):
7087         * doc/posix-functions/vdprintf.texi (vdprintf):
7088         * doc/posix-functions/vfprintf.texi (vfprintf):
7089         * doc/posix-functions/vprintf.texi (vprintf):
7090         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7091         * doc/posix-functions/vsprintf.texi (vsprintf):
7092         Mention that these functions mishandle large floating point
7093         precisions on Solaris 10.  The same bug is also present in Solaris
7094         8, and I assume earlier.  This causes "cd gnulib-tests; make
7095         check" to fail on Solaris 8 (and I assume, later) when building
7096         the latest coreutils, in test-vasprintf-posix's call to
7097         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7098         the wide flavors (e.g., wprintf) so this patch just updates the
7099         documentation for the narrow ones.
7100
7101         test-posixtm.c: add two tests
7102         * tests/test-posixtm.c: Add two tests, to highlight the
7103         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7104         around this bug; this is merely to document it.
7105
7106 2010-12-22  Bruno Haible  <bruno@clisp.org>
7107
7108         getlogin_r: Work around portability problem on OSF/1.
7109         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7110         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7111         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7112         test for a truncated result.
7113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7114         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7115         * modules/getlogin_r (Depends-on): Add memchr.
7116         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7117
7118 2010-12-22  Bruno Haible  <bruno@clisp.org>
7119
7120         ptsname: Avoid test failure on OSF/1 5.1.
7121         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7122         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7123         (same_slave): New function.
7124         (main): Use it to compare ptsname's result with the expected file name.
7125
7126 2010-12-22  Bruno Haible  <bruno@clisp.org>
7127
7128         Port extended stdio modules to HP NonStop Kernel.
7129         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7130         macros.
7131         * lib/fbufmode.c: Update comments.
7132         * lib/fflush.c: Likewise.
7133         * lib/fpurge.c: Likewise.
7134         * lib/freadable.c: Likewise.
7135         * lib/freadahead.c: Likewise.
7136         * lib/freading.c: Likewise.
7137         * lib/freadptr.c: Likewise.
7138         * lib/freadseek.c: Likewise.
7139         * lib/fseeko.c: Likewise.
7140         * lib/fseterr.c: Likewise.
7141         * lib/fwritable.c: Likewise.
7142         * lib/fwriting.c: Likewise.
7143         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7144
7145 2010-12-22  Bruno Haible  <bruno@clisp.org>
7146
7147         ttyname_r: Work around bug on OSF/1 5.1.
7148         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7149         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7150         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7151         present.
7152         * lib/ttyname_r.c (ttyname_r): Update comments.
7153
7154 2010-12-22  Bruno Haible  <bruno@clisp.org>
7155
7156         round: Implement result sign according to IEEE 754.
7157         * lib/round.c (MIN, MINUS_ZERO): New macros.
7158         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7159         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7160         * tests/test-round-ieee.c (main): Likewise.
7161         * tests/test-roundl-ieee.c (main): Likewise.
7162
7163         trunc: Implement result sign according to IEEE 754.
7164         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7165         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7166         * tests/test-trunc2.c: Include minus-zero.h.
7167         (MINUS_ZERO): New macro.
7168         (trunc_reference): Keep in sync with lib/trunc.c.
7169         * tests/test-truncf2.c: Include minus-zero.h.
7170         (MINUS_ZERO): New macro.
7171         (truncf_reference): Keep in sync with lib/trunc.c.
7172         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7173         * tests/test-trunc-ieee.c (main): Likewise.
7174         * tests/test-truncl-ieee.c (main): Likewise.
7175
7176         ceil: Implement result sign according to IEEE 754.
7177         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7178         (FUNC): Return -0.0 for -1 < x < 0.
7179         * tests/test-ceil2.c: Include minus-zero.h.
7180         (MINUS_ZERO): New macro.
7181         (ceil_reference): Keep in sync with lib/ceil.c.
7182         * tests/test-ceilf2.c: Include minus-zero.h.
7183         (MINUS_ZERO): New macro.
7184         (ceilf_reference): Keep in sync with lib/ceil.c.
7185         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7186         * tests/test-ceil-ieee.c (main): Likewise.
7187         * tests/test-ceill-ieee.c (main): Likewise.
7188
7189         floor: Implement result sign according to IEEE 754.
7190         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7191         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7192         * tests/test-floorf2.c (floorf_reference): Likewise.
7193         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7194         * tests/test-floor-ieee.c (main): Likewise.
7195         * tests/test-floorl-ieee.c (main): Likewise.
7196
7197 2010-12-22  Bruno Haible  <bruno@clisp.org>
7198
7199         getaddrinfo: Update doc.
7200         * doc/posix-functions/gai_strerror.texi: Return type is also different
7201         on AIX and HP-UX.
7202
7203 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7204
7205         getaddrinfo, inet_ntop: Update doc for Solaris.
7206         * doc/posix-functions/gai_strerror.texi: Return type is also an
7207         issue on Solaris 9 and earlier.
7208         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7209         on Solaris 10 and earlier.
7210
7211 2010-12-21  Bruno Haible  <bruno@clisp.org>
7212
7213         New module 'roundl-ieee'.
7214         * modules/roundl-ieee: New file.
7215         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7216         test whether roundl works according to ISO C 99 with IEC 60559.
7217         * m4/roundl-ieee.m4: New file.
7218         * modules/roundl-ieee-tests: New file.
7219         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7220         * tests/test-roundl.c (main): Remove signbit tests.
7221         * modules/roundl-tests (Depends-on): Remove signbit.
7222         * doc/posix-functions/roundl.texi: Mention the new module.
7223
7224 2010-12-21  Bruno Haible  <bruno@clisp.org>
7225
7226         New module 'truncl-ieee'.
7227         * modules/truncl-ieee: New file.
7228         * modules/truncl-ieee-tests: New file.
7229         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7230         * tests/test-truncl.c (main): Remove signbit tests.
7231         * modules/truncl-tests (Depends-on): Remove signbit.
7232         * doc/posix-functions/truncl.texi: Mention the new module.
7233
7234 2010-12-21  Bruno Haible  <bruno@clisp.org>
7235
7236         New module 'ceill-ieee'.
7237         * modules/ceill-ieee: New file.
7238         * modules/ceill-ieee-tests: New file.
7239         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7240         * tests/test-ceill.c (main): Remove signbit tests.
7241         * modules/ceill-tests (Depends-on): Remove signbit.
7242         * doc/posix-functions/ceill.texi: Mention the new module.
7243
7244 2010-12-21  Bruno Haible  <bruno@clisp.org>
7245
7246         New module 'floorl-ieee'.
7247         * modules/floorl-ieee: New file.
7248         * modules/floorl-ieee-tests: New file.
7249         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7250         * tests/test-floorl.c (main): Remove signbit tests.
7251         * modules/floorl-tests (Depends-on): Remove signbit.
7252         * doc/posix-functions/floorl.texi: Mention the new module.
7253
7254 2010-12-21  Bruno Haible  <bruno@clisp.org>
7255
7256         New module 'round-ieee'.
7257         * modules/round-ieee: New file.
7258         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7259         whether round works according to ISO C 99 with IEC 60559.
7260         * m4/round-ieee.m4: New file.
7261         * modules/round-ieee-tests: New file.
7262         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7263         * tests/test-round1.c (main): Remove signbit tests.
7264         * modules/round-tests (Depends-on): Remove 'signbit'.
7265         * doc/posix-functions/round.texi: Mention the new module.
7266
7267 2010-12-21  Bruno Haible  <bruno@clisp.org>
7268
7269         New module 'trunc-ieee'.
7270         * modules/trunc-ieee: New file.
7271         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7272         whether trunc works according to ISO C 99 with IEC 60559.
7273         * m4/trunc-ieee.m4: New file.
7274         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7276         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7277         * modules/trunc-ieee-tests: New file.
7278         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7279         * tests/test-trunc1.c (main): Remove signbit tests.
7280         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7281         * doc/posix-functions/trunc.texi: Mention the new module.
7282
7283 2010-12-21  Bruno Haible  <bruno@clisp.org>
7284
7285         New module 'ceil-ieee'.
7286         * modules/ceil-ieee: New file.
7287         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7288         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7289         ISO C 99 with IEC 60559.
7290         * m4/ceil-ieee.m4: New file.
7291         * modules/ceil (Files): Add lib/ceil.c.
7292         (Depends-on): Add 'float'.
7293         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7294         * lib/math.in.h (ceil): New declaration.
7295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7296         REPLACE_CEIL.
7297         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7298         * modules/ceil-ieee-tests: New file.
7299         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7300         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7301         * doc/posix-functions/ceil.texi: Mention the new module.
7302
7303 2010-12-21  Bruno Haible  <bruno@clisp.org>
7304
7305         New module 'floor-ieee'.
7306         * modules/floor-ieee: New file.
7307         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7308         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7309         ISO C 99 with IEC 60559.
7310         * m4/floor-ieee.m4: New file.
7311         * modules/floor (Files): Add lib/floor.c.
7312         (Depends-on): Add 'float'.
7313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7314         * lib/math.in.h (floor): New declaration.
7315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7316         REPLACE_FLOOR.
7317         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7318         * modules/floor-ieee-tests: New file.
7319         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7320         * tests/test-math-c++.cc: Check the signature of 'floor'.
7321         * doc/posix-functions/floor.texi: Mention the new module.
7322
7323 2010-12-21  Bruno Haible  <bruno@clisp.org>
7324
7325         New module 'roundf-ieee'.
7326         * modules/roundf-ieee: New file.
7327         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7328         test whether roundf works according to ISO C 99 with IEC 60559.
7329         * m4/roundf-ieee.m4: New file.
7330         * modules/roundf-ieee-tests: New file.
7331         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7332         * tests/test-roundf1.c (main): Remove signbit tests.
7333         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7334         * doc/posix-functions/roundf.texi: Mention the new module.
7335
7336 2010-12-21  Bruno Haible  <bruno@clisp.org>
7337
7338         New module 'truncf-ieee'.
7339         * modules/truncf-ieee: New file.
7340         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7341         test whether truncf works according to ISO C 99 with IEC 60559.
7342         * m4/truncf-ieee.m4: New file.
7343         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7345         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7346         * modules/truncf-ieee-tests: New file.
7347         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7348         * tests/test-truncf1.c (main): Remove signbit tests.
7349         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7350         * doc/posix-functions/truncf.texi: Mention the new module.
7351
7352 2010-12-21  Bruno Haible  <bruno@clisp.org>
7353
7354         New module 'ceilf-ieee'.
7355         * modules/ceilf-ieee: New file.
7356         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7357         test whether ceilf works according to ISO C 99 with IEC 60559.
7358         * m4/ceilf-ieee.m4: New file.
7359         * modules/ceilf-ieee-tests: New file.
7360         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7361         * tests/test-ceilf1.c (main): Remove signbit tests.
7362         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7363         * doc/posix-functions/ceilf.texi: Mention the new module.
7364
7365 2010-12-21  Bruno Haible  <bruno@clisp.org>
7366
7367         New module 'floorf-ieee'.
7368         * modules/floorf-ieee: New file.
7369         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7370         test whether floorf works according to ISO C 99 with IEC 60559.
7371         * m4/floorf-ieee.m4: New file.
7372         * modules/floorf-ieee-tests: New file.
7373         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7374         * tests/test-floorf1.c (main): Remove signbit tests.
7375         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7376         * doc/posix-functions/floorf.texi: Mention the new module.
7377
7378 2010-12-21  Bruno Haible  <bruno@clisp.org>
7379
7380         Support for minus zero in autoconf macros.
7381         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7382         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7383         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7384         * tests/minus-zero.h: Update comments.
7385
7386 2010-12-21  Bruno Haible  <bruno@clisp.org>
7387
7388         Tests for module 'ceil'.
7389         * modules/ceil-tests: New file.
7390         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7391         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7392
7393 2010-12-21  Bruno Haible  <bruno@clisp.org>
7394
7395         Tests for module 'floor'.
7396         * modules/floor-tests: New file.
7397         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7398         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7399
7400 2010-12-21  Bruno Haible  <bruno@clisp.org>
7401
7402         math: Fix indentation.
7403         * lib/math.in.h (floorf): Fix indentation.
7404
7405 2010-12-21  Bruno Haible  <bruno@clisp.org>
7406
7407         Fix cross-compilation guesses on Solaris.
7408         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7409         not match "solaris2.10".
7410         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7411         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7412         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7413
7414 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7415
7416         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7417         This fixes a problem observed with the latest coreutils snapshot
7418         that caused a test to fail on Solaris 8.  src/csplit.c's call
7419         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7420         earlier, instead of returning the number of bytes that would have
7421         been generated; this causes csplit to incorrectly report memory
7422         exhaustion.
7423         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7424         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7425         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7426         comments to match.
7427         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7428         Fix typo in matching older versions of Solaris: "solaris2.10"
7429         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7430         only for guessing while cross-compiling.
7431         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7432
7433 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7434
7435         ftoastr: fix comment again
7436         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7438         Also, simplify example a bit by using flags = 0.
7439
7440 2010-12-20  Bruno Haible  <bruno@clisp.org>
7441
7442         round*, trunc*: Update documentation regarding glibc.
7443         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7444         * doc/posix-functions/round.texi: Likewise.
7445         * doc/posix-functions/roundl.texi: Likewise.
7446         * doc/posix-functions/truncf.texi: Likewise.
7447         * doc/posix-functions/trunc.texi: Likewise.
7448         * doc/posix-functions/truncl.texi: Likewise.
7449
7450 2010-12-20  Bruno Haible  <bruno@clisp.org>
7451
7452         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7453         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7454         * doc/posix-functions/round.texi: Likewise.
7455         * doc/posix-functions/roundl.texi: Likewise.
7456
7457 2010-12-20  Bruno Haible  <bruno@clisp.org>
7458
7459         ttyname_r: Add missing declaration on HP-UX 11.
7460         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7461         HAVE_TTYNAME_R.
7462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7463         declared. Set HAVE_TTYNAME_R always.
7464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7465         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7466         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7467         HAVE_TTYNAME_R.
7468         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7469
7470 2010-12-20  Bruno Haible  <bruno@clisp.org>
7471
7472         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7473         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7474         * doc/posix-functions/getlogin_r.texi: Likewise.
7475         * tests/test-getlogin.c: Include <errno.h>.
7476         (main): Avoid test failure on HP-UX 11.11.
7477         * tests/test-getlogin_r.c (main): Likewise.
7478
7479 2010-12-20  Bruno Haible  <bruno@clisp.org>
7480
7481         getlogin_r: Add missing declaration on HP-UX 11.
7482         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7483         declared also when it exists as a function.
7484         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7485
7486 2010-12-20  Bruno Haible  <bruno@clisp.org>
7487
7488         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7489         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7490         through wcrtomb.
7491
7492 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7493
7494         ftoastr: fix comment
7495         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7497
7498 2010-12-19  Bruno Haible  <bruno@clisp.org>
7499
7500         isnan: Ensure it is a macro.
7501         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7502         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7503         Solaris.
7504
7505 2010-12-19  Bruno Haible  <bruno@clisp.org>
7506
7507         ldexpl test: Fix link error on OSF/1 5.1.
7508         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7509
7510 2010-12-19  Bruno Haible  <bruno@clisp.org>
7511
7512         wctype: Make it work in C++ mode on OSF/1 5.1.
7513         * lib/wctype.in.h (iswblank): Declare but not define here.
7514         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7515         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7516         * modules/wctype (Files): Add lib/iswblank.c.
7517
7518 2010-12-19  Bruno Haible  <bruno@clisp.org>
7519
7520         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7521         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7522         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7523
7524 2010-12-19  Bruno Haible  <bruno@clisp.org>
7525
7526         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7528         _POSIX_PII_SOCKET.
7529         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7530         * doc/posix-functions/recvfrom.texi: Likewise.
7531         * doc/posix-functions/send.texi: Likewise.
7532         * doc/posix-functions/sendto.texi: Likewise.
7533
7534 2010-12-19  Bruno Haible  <bruno@clisp.org>
7535
7536         tcgetsid: Add missing declaration on OSF/1 5.1.
7537         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7538         HAVE_TCGETSID.
7539         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7540         Don't set HAVE_TCGETSID.
7541         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7542         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7543         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7544         HAVE_TCGETSID.
7545         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7546
7547 2010-12-19  Bruno Haible  <bruno@clisp.org>
7548
7549         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7550         * lib/stdio.in.h: During the include_next statement, let recursive
7551         includes of this file include only the system header file.
7552
7553 2010-12-19  Bruno Haible  <bruno@clisp.org>
7554
7555         iconv_open: Fix regression from 2010-12-04.
7556         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7557         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7558
7559 2010-12-19  Bruno Haible  <bruno@clisp.org>
7560
7561         stdbool test: Avoid a gcc warning.
7562         * tests/test-stdbool.c (main): Fail if e1 is false.
7563         Reported by Jim Meyering.
7564
7565 2010-12-19  Jim Meyering  <meyering@redhat.com>
7566
7567         setenv: restore to working order
7568         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7569         mistakenly removed.
7570         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7571         HAVE_SETENV.
7572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7573         HAVE_SETENV.
7574
7575 2010-12-19  Bruno Haible  <bruno@clisp.org>
7576
7577         Document some different function declarations on OSF/1 5.1.
7578         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7579         * doc/posix-functions/inet_ntop.texi: Likewise.
7580         * doc/posix-functions/gethostname.texi: Likewise.
7581         * lib/unistd.in.h (gethostname): Update comment.
7582
7583 2010-12-19  Bruno Haible  <bruno@clisp.org>
7584
7585         doc: Mention vasprintf-posix module.
7586         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7587         the 'vasprintf-posix' module.
7588         * doc/glibc-functions/vasprintf.texi: Likewise.
7589
7590 2010-12-19  Bruno Haible  <bruno@clisp.org>
7591
7592         unsetenv: Add missing declaration on OSF/1 5.1.
7593         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7594         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7595         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7597         not HAVE_UNSETENV.
7598         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7599         HAVE_UNSETENV.
7600         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7601
7602 2010-12-19  Bruno Haible  <bruno@clisp.org>
7603
7604         setenv: Add missing declaration on OSF/1 5.1.
7605         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7606         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7607         declared. Don't set HAVE_SETENV.
7608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7609         not HAVE_SETENV.
7610         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7611         HAVE_SETENV.
7612         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7613
7614 2010-12-19  Bruno Haible  <bruno@clisp.org>
7615
7616         nl_langinfo tests: Avoid gcc warning.
7617         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7618
7619 2010-12-19  Bruno Haible  <bruno@clisp.org>
7620
7621         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7622         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7623         _GL_CXXALIAS_SYS.
7624
7625 2010-12-19  Bruno Haible  <bruno@clisp.org>
7626
7627         stdbool: Relax test.
7628         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7629         address to 'bool' work in static initializer, for compilers other than
7630         GCC.
7631
7632 2010-12-19  Bruno Haible  <bruno@clisp.org>
7633
7634         ftello: Add missing declaration on OSF/1 5.1.
7635         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7636         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7638         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7639         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7640
7641 2010-12-19  Bruno Haible  <bruno@clisp.org>
7642
7643         fseeko: Add missing declaration on OSF/1 5.1.
7644         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7645         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7647         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7648         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7649
7650 2010-12-19  Bruno Haible  <bruno@clisp.org>
7651
7652         fchdir: Add missing declaration on OSF/1 5.1.
7653         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7656         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7657         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7658
7659 2010-12-19  Bruno Haible  <bruno@clisp.org>
7660
7661         relocatable-prog-wrapper: Separate from relocatable-prog.
7662         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7663         uninstall-relocwrapper rule here.
7664         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7665         Reported by Ian Beckwith <ianb@erislabs.net>.
7666
7667 2010-12-19  Bruno Haible  <bruno@clisp.org>
7668
7669         unistr/u8-mbsnlen: Add missing dependency.
7670         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7671         Reported by Ian Beckwith <ianb@erislabs.net>.
7672
7673 2010-12-19  Bruno Haible  <bruno@clisp.org>
7674
7675         iconv: Make it possible again to use this module without 'iconv-h'.
7676         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7677         if it is not defined.
7678         Reported by Ian Beckwith <ianb@erislabs.net>.
7679
7680 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7681
7682         acl: port to Solaris 8 when copying from tmpfs to ufs
7683         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7684         error number.  Problem observed on Solaris 8 with latest
7685         coreutils, with "mv A B", where A is on a tmpfs file system and B
7686         is on a ufs file system.  This caused coreutils' mv/part-symlink
7687         test to fail.
7688
7689         tests: set fail=0 at start
7690         * tests/init.sh (setup_): Move fail=0 initialization here ...
7691         (mktempd_): ... from here, so that tests can rely on fail being
7692         set to 0 initially.  This fixes a problem in coreutils; see:
7693         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7694
7695 2010-12-18  Bruno Haible  <bruno@clisp.org>
7696
7697         memmem-simple: Stylistic changes.
7698         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7699         Fix preprocessor directive indentation.
7700
7701 2010-12-15  Pádraig Brady <P@draigBrady.com>
7702
7703         memmem, memmem-simple: reorganize and expand empty needle check
7704         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7705         functional checks to memmem-simple so that one has a fully functional
7706         memmem by using just this module.
7707         Restrict the performance only check to the memmem module.
7708         Also expand the empty needle check to ensure the correct
7709         pointer is returned, not just a non NULL pointer.
7710         * doc/glibc-functions/memmem.texi: Rearrange the portability
7711         documentation to correlate with the rearranged checks.
7712         Clarify exactly how the memmem and memmem-simple modules
7713         relate to each other.
7714
7715 2010-12-15  Pádraig Brady <P@draigBrady.com>
7716             Bruno Haible  <bruno@clisp.org>
7717
7718         Improve cross-compilation guesses for uClibc.
7719         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7720         that uClibc does not have the glibc bug.
7721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7722         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7723
7724 2010-12-14  Eric Blake  <eblake@redhat.com>
7725
7726         configmake: provide fallbacks for oldest supported autotools
7727         * m4/configmake.m4: New file.
7728         * modules/configmake (Files): Ship it.
7729         (configure.ac): Use it to guarantee fallbacks.
7730
7731 2010-12-13  Pádraig Brady <P@draigBrady.com>
7732
7733         read-file: Improve handling of large files
7734         * lib/read-file.c (fread_file): Minimize realloc()s
7735         for regular files, and better manage sizes around SIZE_MAX.
7736
7737 2010-12-13  Eric Blake  <eblake@redhat.com>
7738
7739         cloexec, fcntl: relax license
7740         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7741         consent from all contributors.
7742         * modules/fcntl (License): Likewise.
7743
7744 2010-12-10  Bruno Haible  <bruno@clisp.org>
7745
7746         Tests for module 'pipe-posix'.
7747         * modules/pipe-posix-tests: New file.
7748         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7749
7750 2010-12-10  Bruno Haible  <bruno@clisp.org>
7751
7752         pipe-posix: Make it work in C++ mode.
7753         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7754         (pipe): Use common idiom, not a macro definition.
7755         * lib/pipe.c: New file.
7756         * m4/pipe.m4: New file.
7757         * modules/pipe-posix (Description): Enhance.
7758         (Files): Add lib/pipe.c, m4/pipe.m4.
7759         (configure.ac): Invoke gl_FUNC_PIPE.
7760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7761         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7762         * tests/test-unistd-c++.cc: Check the signature of pipe.
7763
7764 2010-12-10  Bruno Haible  <bruno@clisp.org>
7765
7766         Rename module 'pipe' to 'spawn-pipe'.
7767         * modules/spawn-pipe: New file, renamed from modules/pipe.
7768         (Files, configure.ac, Makefile.am): Update.
7769         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7770         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7771         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7772         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7773         "spawn-pipe.h" instead of "pipe.h".
7774         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7775         to gl_SPAWN_PIPE.
7776         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7777         (Files, Makefile.am): Update.
7778         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7779         Update.
7780         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7781         Include "spawn-pipe.h" instead of "pipe.h".
7782         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7783         * lib/javacomp.c: Likewise.
7784         * lib/javaversion.c: Likewise.
7785         * lib/pipe-filter-gi.c: Likewise.
7786         * lib/pipe-filter-ii.c: Likewise.
7787         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7788         * modules/javacomp (Depends-on): Likewise.
7789         * modules/javaversion (Depends-on): Likewise.
7790         * modules/pipe-filter-gi (Depends-on): Likewise.
7791         * modules/pipe-filter-ii (Depends-on): Likewise.
7792         * MODULES.html.sh (Executing programs): Update.
7793         * NEWS: Mention the change.
7794
7795 2010-12-10  Eric Blake  <eblake@redhat.com>
7796
7797         pipe-posix: new module
7798         * modules/pipe-posix: New file.
7799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7800         (gl_UNISTD_H): Check for declaration.
7801         * modules/unistd (Makefile.am): Substitute it.
7802         * lib/unistd.in.h (pipe): Provide it for mingw.
7803         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7804         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7805
7806 2010-12-07  Bruno Haible  <bruno@clisp.org>
7807
7808         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7809         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7810         u8_strcmp_gnu.
7811         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7812
7813 2010-12-06  Bruno Haible  <bruno@clisp.org>
7814
7815         Update internal documentation.
7816         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7817
7818 2010-12-04  Bruno Haible  <bruno@clisp.org>
7819
7820         Put more information about failed tests into the test return codes.
7821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7822         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7823         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7825         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7826         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7827         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7828         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7829         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7832         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7833         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7834         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7835         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7836         returns a bit mask.
7837         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7838         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7839         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7840         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7841         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7845         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7846         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7847         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7848         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7849         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7850         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7851         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7852         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7853         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7854         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7855         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7856         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7857         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7858         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7860         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7861         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7862         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7863         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7864         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7865         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7866         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7867         gl_PRINTF_PRECISION): Likewise.
7868         * m4/regex.m4 (gl_REGEX): Likewise.
7869         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7871         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7872         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7874         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7876         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7877         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7878         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7879         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7880         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7881         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7883         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7884         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7885         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7886         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7888         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7889         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7890         enumerated value.
7891         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7892
7893 2010-12-04  Bruno Haible  <bruno@clisp.org>
7894
7895         Update for Solaris 11 2010-11.
7896         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7897         Express, released in November 2010.
7898
7899 2010-12-04  Bruno Haible  <bruno@clisp.org>
7900
7901         nproc: Relax license.
7902         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7903         and Paul Eggert.
7904         Requested by Ludovic Courtès <ludo@gnu.org>.
7905
7906 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7907
7908         utimecmp: fine-grained src to nearby coarse-grained dest
7909
7910         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7911         and the source is on a file system with higher-resolution time
7912         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7913         not work, and the time stamps are close together, the algorithm to
7914         determine the exact resolution from the read-back mtime was buggy:
7915         it had a "!=" where it should have had an "==".  This bug has been
7916         in the code ever since it was introduced to gnulib.
7917         Problem reported by Dan Jacobson in
7918         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7919
7920 2010-11-30  Bruno Haible  <bruno@clisp.org>
7921
7922         strerror_r-posix: Fix autoconf test.
7923         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7924
7925 2010-11-28  Bruno Haible  <bruno@clisp.org>
7926             Paul Eggert  <eggert@cs.ucla.edu>
7927
7928         Tests for module 'getdomainname'.
7929         * modules/getdomainname-tests: New file.
7930         * tests/test-getdomainname.c: New file, based on
7931         tests/test-gethostname.c.
7932
7933 2010-11-28  Bruno Haible  <bruno@clisp.org>
7934             Paul Eggert  <eggert@cs.ucla.edu>
7935
7936         getdomainname: Use the system function when possible.
7937         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7938         (getdomainname): Replace if needed. Provide the declaration if it is
7939         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7940         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7941         (getdomainname): When the system has getdomainname, call the system
7942         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7943         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7944         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7945         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7946         the function if its second argument is of type 'int' or if it is found
7947         in libnsl.
7948         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7949         <sys/systeminfo.h> and sysinfo().
7950         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7952         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7953         HAVE_GETDOMAINNAME.
7954         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7955         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7956         * doc/glibc-functions/getdomainname.texi: Document the problems with
7957         the getdomainname declaration.
7958
7959 2010-11-28  Bruno Haible  <bruno@clisp.org>
7960
7961         sys_socket: Ensure ss_family field on AIX.
7962         * lib/sys_socket.in.h (ss_family): New macro definition.
7963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7964         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7965         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7966         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7967         * modules/sys_socket (Makefile.am): Substitute
7968         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7969         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7970
7971 2010-11-27  Bruno Haible  <bruno@clisp.org>
7972
7973         readline: Improve configure output.
7974         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7975         "checking for readline..." result understandable.
7976
7977 2010-11-27  Bruno Haible  <bruno@clisp.org>
7978
7979         *printf-posix: Detect a bug on Solaris 10/x86.
7980         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7981         for floating-point output.
7982         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7983         directive.
7984         * tests/test-snprintf-posix.h (test_function): Likewise.
7985         * tests/test-sprintf-posix.h (test_function): Likewise.
7986         * tests/test-vasprintf-posix.c (test_function): Likewise.
7987         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7988         * doc/posix-functions/printf.texi: Likewise.
7989         * doc/posix-functions/snprintf.texi: Likewise.
7990         * doc/posix-functions/sprintf.texi: Likewise.
7991         * doc/posix-functions/vfprintf.texi: Likewise.
7992         * doc/posix-functions/vprintf.texi: Likewise.
7993         * doc/posix-functions/vsnprintf.texi: Likewise.
7994         * doc/posix-functions/vsprintf.texi: Likewise.
7995         * doc/glibc-functions/obstack_printf.texi: Likewise.
7996         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7997
7998 2010-11-27  Bruno Haible  <bruno@clisp.org>
7999
8000         Fix link error when module libunistring-optional is in use.
8001         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8002         * modules/striconveha-tests (Makefile.am): Likewise.
8003
8004 2010-11-27  Bruno Haible  <bruno@clisp.org>
8005
8006         regex: Mention link dependencies.
8007         * modules/regex (Link): New section.
8008         * modules/rpmatch (Link): Likewise.
8009         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8010
8011 2010-11-27  Bruno Haible  <bruno@clisp.org>
8012
8013         ftoastr: Fix compilation error on Solaris.
8014         * lib/ftoastr.c: Include <config.h>.
8015
8016 2010-11-27  Bruno Haible  <bruno@clisp.org>
8017
8018         getloadavg: Update documentation.
8019         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8020
8021 2010-11-27  Bruno Haible  <bruno@clisp.org>
8022
8023         sys_socket: Fix test whether the functions are declared.
8024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8025         not <sys/select.h>.
8026
8027 2010-11-27  Bruno Haible  <bruno@clisp.org>
8028
8029         getpass: Make sure to get system declaration on some platforms.
8030         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8031         gl_USE_SYSTEM_EXTENSIONS.
8032         * modules/getpass (Depends-on): Add extensions.
8033
8034 2010-11-26  Bruno Haible  <bruno@clisp.org>
8035
8036         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8037         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8038         'iconv' module is present.
8039         (ICONV_CONST): New macro.
8040         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8041         ICONV_CONST.
8042         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8043         set ICONV_CONST.
8044         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8045         here.
8046         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8047         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8048         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8049         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8050         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8051         present.
8052
8053 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8054
8055         ftoastr: comment fix
8056         * lib/ftoastr.c: "little" -> "little or no" in comment
8057
8058 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8059
8060         stdint: port to GCC 4.3 + OSX + Octave
8061         On this platform, stdint.h is buggy and defines int64_t to long
8062         long int.  The replacement defined it to long int, causing
8063         problems with C++ style name mangling.  Instead, trust the system
8064         definition if INT64_MAX is defined, and likewise for the unsigned
8065         variant.   Problem reported by Jarno Rajahalme in
8066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8067         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8068         and don't mess with int64_t and INT64_MAX in this case.
8069         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8070
8071 2010-11-24  Bruno Haible  <bruno@clisp.org>
8072
8073         doc: Corrections regarding MacOS X 10.4 and 10.5.
8074         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8075         MacOS X.
8076         Reported by Simon Josefsson.
8077
8078 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8079
8080         Uninstall ".bin" files installed by relocwrapper.
8081         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8082         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8083         unless it is already there.
8084
8085 2010-11-21  Bruno Haible  <bruno@clisp.org>
8086
8087         Update for NetBSD 5.0.
8088         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8089         NetBSD; the test fails on NetBSD 5.0.
8090         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8091         about NetBSD.
8092
8093 2010-11-21  Bruno Haible  <bruno@clisp.org>
8094
8095         Update for HP-UX 11.23 and HP-UX 11.31.
8096         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8097         HP-UX.
8098
8099 2010-11-21  Bruno Haible  <bruno@clisp.org>
8100
8101         Update for MacOS X 10.5.
8102         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8103         MacOS X; the test fails on MacOS X 10.5.8.
8104         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8105         about MacOS X.
8106
8107 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8108
8109         bootstrap: add bootstrap_sync option.
8110         See discussion at
8111         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8113         * build-aux/bootstrap: Accept --bootstrap-sync to update
8114         bootstrap if it is not identical to the local gnulib's
8115         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8116         enable this by default.  Accept --no-bootstrap-sync to disable
8117         it.
8118
8119 2010-11-20  Bruno Haible  <bruno@clisp.org>
8120
8121         Ensure that <features.h> is included before __GLIBC__ is tested.
8122         * lib/printf-parse.h: Include <features.h>.
8123         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8124         Reported by Mike Frysinger <vapier@gentoo.org>.
8125
8126         Ensure that <features.h> is included before __GLIBC__ is tested.
8127         * lib/wchar.in.h: Include <features.h>.
8128         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8129         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8130         Reported by Mike Frysinger <vapier@gentoo.org>.
8131
8132         Ensure that <features.h> is included before __GLIBC__ is tested.
8133         * lib/arpa_inet.in.h: Include <features.h>.
8134         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8135         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8136         Reported by Mike Frysinger <vapier@gentoo.org>.
8137
8138         Ensure that <features.h> is included before __GLIBC__ is tested.
8139         * build-aux/link-warning.h: Include <features.h>.
8140         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8141         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8142         Reported by Mike Frysinger <vapier@gentoo.org>.
8143
8144         Ensure that <features.h> is included before __GLIBC__ is tested.
8145         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8146         Reported by Mike Frysinger <vapier@gentoo.org>.
8147
8148 2010-11-20  Bruno Haible  <bruno@clisp.org>
8149
8150         memmem: Fix autoconf test.
8151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8152
8153 2010-11-20  Bruno Haible  <bruno@clisp.org>
8154
8155         Port to uClibc.
8156         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8157         * lib/fcntl.in.h: Likewise.
8158         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8159         * lib/mbrtowc.c (mbrtowc): Likewise.
8160         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8161         * lib/strerror_r.c: Likewise.
8162         * lib/unistr/u8-strnlen.c: Likewise.
8163         * lib/vasnprintf.c (decimal_point_char): Likewise.
8164         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8165         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8166         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8167         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8168         * tests/test-sigaction.c (handler, main): Likewise.
8169         * lib/freading.h: Treat uClibc like a non-glibc platform.
8170         * lib/freading.c: Likewise.
8171         * lib/gettext.h: Likewise.
8172         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8173         Likewise.
8174         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8175         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8176         * lib/propername.c (proper_name_utf8): Likewise.
8177         * lib/spawn.in.h: Likewise.
8178         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8179         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8180         mem_cd_iconveh_internal): Likewise.
8181         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8182         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8183         strstr, strcasestr): Likewise.
8184         * lib/unicodeio.c (unicode_to_mb): Likewise.
8185         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8186         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8187         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8188         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8189         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8190         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8191         * lib/unistr/u8-stpncpy.c: Likewise.
8192         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8193         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8194         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8196         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8197         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8198         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8201         Likewise.
8202         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8203         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8204         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8207         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8208         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8209         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8210         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8211         * tests/test-striconveha.c (main): Likewise.
8212         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8213         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8214         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8215         * doc/posix-functions/getline.texi: Likewise.
8216         Reported by Mike Frysinger <vapier@gentoo.org>.
8217
8218 2010-11-20  Bruno Haible  <bruno@clisp.org>
8219
8220         nproc: Fix condition.
8221         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8222         HAVE_PTHREAD_AFFINITY_NP.
8223
8224 2010-11-20  Bruno Haible  <bruno@clisp.org>
8225
8226         Fix a comment.
8227         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8228
8229 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8230
8231         ftoastr: don't assume snprintf
8232         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8233         Implement a subset of snprintf here, by using sprintf safely.
8234         * modules/ftoastr (Depends-on): Remove snprintf.
8235
8236 2010-11-19  Jim Meyering  <meyering@redhat.com>
8237
8238         test-rename.h: fix compilation failure
8239         * tests/test-rename.h (test_rename): Add omitted "}".
8240
8241 2010-11-17  Jim Meyering  <meyering@redhat.com>
8242
8243         maint.mk: add a URL discussing the no-@acronym policy
8244         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8245
8246 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8247
8248         ftoastr: depend on snprintf, improve comments
8249         * lib/ftoastr.c: Also mention Loitsch's draft.
8250         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8251         needed in the current implementation, but it might simplify
8252         speeding up the code later.
8253         * modules/ftoastr: Depend on snprintf; this improves portability.
8254         Suggested by Bruno Haible in the same email.
8255
8256         ftoastr: port to hosts lacking strtof and strtold
8257         Problem reported by Bruno Haible in
8258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8259         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8260         environment and strtold (and presumably strtof) are not available.
8261         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8262         (configure.ac): Require gl_C99_STRTOLD.
8263
8264 2010-11-18  Bruno Haible  <bruno@clisp.org>
8265
8266         c-strtold: Avoid link error on AIX 7.
8267         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8268         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8269         (gl_C_STRTOLD): Test whether strtold_l exists.
8270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8271
8272 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8273
8274         intprops: new macro INT_BITS_STRLEN_BOUND
8275         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8276         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8277         not exposed.  Also, it uses a slightly tighter bound than before;
8278         though this makes no practical difference, we might as well be as
8279         tight as we easily can.
8280
8281         ftoastr: new module, for lossless conversion of floats to short strings
8282         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8283         * modules/ftoastr: New files.
8284
8285 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8286
8287         bootstrap: port to Solaris sed
8288         * build-aux/bootstrap (get_version): Port to Solaris sed.
8289         See Ralf Wildenhues's note in
8290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8291
8292 2010-11-14  Jim Meyering  <meyering@redhat.com>
8293
8294         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8295         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8296         and move definition closer to sole use.
8297
8298 2010-11-13  Jim Meyering  <meyering@redhat.com>
8299
8300         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8301         Now we require at least autoconf-2.59, which means the work-around
8302         is no longer needed.
8303         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8304         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8305         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8306         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8307         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8308
8309 2010-11-13  Bruno Haible  <bruno@clisp.org>
8310
8311         rename, renameat: Avoid test failures at NFS mounted locations.
8312         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8313         functions.
8314         (test_rename): Use assert_nonexistent.
8315         * tests/test-rename.c: Include <dirent.h>.
8316         * tests/test-renameat.c: Likewise.
8317         Reported by Gary V. Vaughan <gary@gnu.org>.
8318
8319         rename, renameat: Document Linux bug with NFS
8320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8321         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8322         * doc/posix-functions/renameat.texi: Likewise.
8323         Suggested by Eric Blake.
8324
8325 2010-11-13  Bruno Haible  <bruno@clisp.org>
8326
8327         rename test: Add comments.
8328         * tests/test-rename.h (test_rename): Add structure and comments.
8329
8330 2010-11-13  Eric Blake  <eblake@redhat.com>
8331
8332         maintainer-makefile: cover a few more files
8333         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8334         scripts generated within C files, for libvirt.
8335
8336 2010-11-13  Bruno Haible  <bruno@clisp.org>
8337
8338         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8339         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8340         character, return the number of bytes that belong together, not always
8341         1.
8342         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8343         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8344         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8345         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8346         number of bytes of an invalid character.
8347         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8348         (main): Invoke it.
8349         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8350         results.
8351         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8352         malformed byte sequences.
8353         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8354         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8355         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8356         Reported by Ben Pfaff and Paolo Bonzini.
8357
8358 2010-11-13  Bruno Haible  <bruno@clisp.org>
8359
8360         openat: Work around glibc bug with fchownat() and empty file names.
8361         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8362         (gl_FUNC_FCHOWNAT): Invoke it.
8363         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8364         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8365         Reported by Gary V. Vaughan <gary@gnu.org>.
8366
8367 2010-11-13  Bruno Haible  <bruno@clisp.org>
8368
8369         openat: Ensure autoconf macro ordering.
8370         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8371         gl_USE_SYSTEM_EXTENSIONS.
8372         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8373
8374 2010-11-13  Bruno Haible  <bruno@clisp.org>
8375
8376         Update comments.
8377         * lib/unistr/u8-check.c: Update file name in comments.
8378         * lib/unistr/u8-mblen.c: Likewise.
8379         * lib/unistr/u8-prev.c: Likewise.
8380         * lib/unistr/u8-strmblen.c: Likewise.
8381         * lib/unistr/u8-strmbtouc.c: Likewise.
8382
8383 2010-11-13  Jim Meyering  <meyering@redhat.com>
8384
8385         tests: avoid test failure on Solaris 10 due to lack of PATH export
8386         * tests/test-update-copyright.sh: Don't forget to export PATH.
8387
8388         init.sh: ensure that IFS is defined, just in case...
8389         * tests/init.sh (setup_): Ensure that IFS is defined,
8390         so that saving and restoring it works as expected.  This
8391         appears to be useful at least for an old version of dash
8392         from a long time ago (RH 6).  See here for details:
8393         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8394
8395         maint.mk: tighten "test a == b" check
8396         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8397         test to files that contain something like #!/bin/sh.
8398         Without this, coreutils would get two false positives in
8399         the comments of C source files.
8400
8401 2010-11-12  Eric Blake  <eblake@redhat.com>
8402
8403         bootstrap: fix typo in previous attempt
8404         * build-aux/bootstrap (buildreq): Correct the grouping.
8405         Reported by Paul Eggert.
8406
8407         maintainer-makefile: prohibit test x == x
8408         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8409         Based on a report by Matthias Bolte.
8410
8411         bootstrap: allow FreeBSD gzip
8412         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8413         which has no '.' and goes to stderr.
8414         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8415         Reported by Matthias Bolte.
8416
8417         maintainer-makefile: check for i18n setup
8418         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8419         will likely work.
8420
8421 2010-11-12  Bruno Haible  <bruno@clisp.org>
8422
8423         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8424         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8425         * lib/nanosleep.c (nanosleep): Likewise.
8426
8427 2010-11-11  Bruno Haible  <bruno@clisp.org>
8428
8429         fcntl-h: Fix for use of C++ on glibc systems.
8430         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8431         also on glibc systems in C++ mode.
8432         Reported by Gary V. Vaughan <gary@gnu.org>.
8433
8434 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8435
8436         mknod: avoid false failure with dash
8437         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8438
8439 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8440
8441         unlink: Fix "is it should" typo in diagnostic.
8442         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8443         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8444
8445 2010-11-11  Bruno Haible  <bruno@clisp.org>
8446
8447         Tests for module 'strerror_r-posix'.
8448         * modules/strerror_r-posix-tests: New file.
8449         * tests/test-strerror_r.c: New file.
8450         * tests/test-string-c++.cc: Check the signature of strerror_r.
8451
8452         New module 'strerror_r-posix'.
8453         * lib/string.in.h (strerror_r): New declaration.
8454         * lib/strerror_r.c: New file.
8455         * m4/strerror_r.m4: New file.
8456         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8457         of strerror_r.
8458         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8459         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8460         * modules/strerror_r-posix: New file.
8461         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8462         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8463         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8464         portability problems.
8465
8466 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8467
8468         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8469         line is also considered for output. Quoted function name in shell
8470         command, so temporary files for functions like MyClass::operator()
8471         are removed correctly without errors.
8472
8473 2010-11-09  Bruno Haible  <bruno@clisp.org>
8474
8475         * doc/posix-functions/strerror.texi: List more failing platforms.
8476
8477         * doc/posix-functions/strerror.texi: Add a comment.
8478
8479 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8480
8481         fdopendir: fix bug on MacOS X when low on file descriptors
8482
8483         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8484         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8485         All callers changed.
8486         (fdopendir): Invoke save_cwd at the top level, not after using
8487         multiple dup() calls to use up file descriptors.  Then retry
8488         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8489         less than the maximum number of open file descriptors, because
8490         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8491         on Mac OS X 10.6.4 for tar 1.24
8492         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8493         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8494         and for tar 1.25
8495         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8496
8497 2010-11-07  Bruno Haible  <bruno@clisp.org>
8498
8499         vasnprintf: Support I flag on glibc systems.
8500         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8501         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8502         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8503         snprintf function.
8504         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8505         glibc systems.
8506         * tests/test-vasnprintf-posix3.c: New file.
8507         * modules/vasnprintf-posix-tests (Files): Add it.
8508         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8509
8510 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8511
8512         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8513         * MODULES.html.sh: For compiler warnings, use name
8514         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8515
8516 2010-11-05  Eric Blake  <eblake@redhat.com>
8517
8518         ceil, floor: avoid spurious failure with icc
8519         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8520         [denormals-as-zero] when optimizing without -mieee-fp option.
8521         * tests/test-floorf2.c (floorf_reference): Likewise.
8522         * tests/test-ceilf1.c (dummy): New function.
8523         (main): Use it to outsmart icc's optimization.
8524         * tests/test-floorf1.c (dummy, main): Likewise.
8525
8526         tests: require working signbit
8527         * modules/ceilf-tests (Depends-on): Add signbit.
8528         * modules/ceill-tests (Depends-on): Likewise.
8529         * modules/floorf-tests (Depends-on): Likewise.
8530         * modules/floorl-tests (Depends-on): Likewise.
8531         * modules/round-tests (Depends-on): Likewise.
8532         * modules/roundf-tests (Depends-on): Likewise.
8533         * modules/roundl-tests (Depends-on): Likewise.
8534         * modules/trunc-tests (Depends-on): Likewise.
8535         * modules/truncf-tests (Depends-on): Likewise.
8536         * modules/truncl-tests (Depends-on): Likewise.
8537
8538         strtod: work around icc bug
8539         * lib/strtod.c (minus_zero): Define to working value.
8540         (strtod): Use it to avoid icc bug.
8541
8542         copysign: enhance tests
8543         * modules/copysign-tests (Files): Add minus-zero.h.
8544         * tests/test-copysign.c (main): Also test zeros.
8545
8546 2010-11-04  Eric Blake  <eblake@redhat.com>
8547
8548         ceil, floor, round, trunc: enhance tests of -0
8549         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8550         * tests/test-ceill.c (main): Likewise.
8551         * tests/test-floorf1.c (main): Likewise.
8552         * tests/test-floorl.c (main): Likewise.
8553         * tests/test-round1.c (main): Likewise.
8554         * tests/test-roundf1.c (main): Likewise.
8555         * tests/test-roundl.c (main): Likewise.
8556         * tests/test-trunc1.c (main): Likewise.
8557         * tests/test-truncf1.c (main): Likewise.
8558         * tests/test-truncl.c (main): Likewise.
8559
8560 2010-11-04  Eric Blake  <eblake@redhat.com>
8561
8562         frexp, tests: work around ICC bug with -zero
8563         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8564         works with more compilers.
8565         * tests/minus-zero.h: New file.
8566         * modules/ceilf-tests (Files): Include it.
8567         * modules/ceill-tests (Files): Likewise.
8568         * modules/floorf-tests (Files): Likewise.
8569         * modules/floorl-tests (Files): Likewise.
8570         * modules/frexp-nolibm-tests (Files): Likewise.
8571         * modules/frexp-tests (Files): Likewise.
8572         * modules/frexpl-nolibm-tests (Files): Likewise.
8573         * modules/frexpl-tests (Files): Likewise.
8574         * modules/isnan-tests (Files): Likewise.
8575         * modules/isnand-nolibm-tests (Files): Likewise.
8576         * modules/isnand-tests (Files): Likewise.
8577         * modules/isnanf-nolibm-tests (Files): Likewise.
8578         * modules/isnanf-tests (Files): Likewise.
8579         * modules/isnanl-nolibm-tests (Files): Likewise.
8580         * modules/isnanl-tests (Files): Likewise.
8581         * modules/round-tests (Files): Likewise.
8582         * modules/roundf-tests (Files): Likewise.
8583         * modules/roundl-tests (Files): Likewise.
8584         * modules/ldexpl-tests (Files): Likewise.
8585         * modules/signbit-tests (Files): Likewise.
8586         * modules/snprintf-posix-tests (Files): Likewise.
8587         * modules/sprintf-posix-tests (Files): Likewise.
8588         * modules/strtod-tests (Files): Likewise.
8589         * modules/trunc-tests (Files): Likewise.
8590         * modules/truncf-tests (Files): Likewise.
8591         * modules/truncl-tests (Files): Likewise.
8592         * modules/vsnprintf-posix-tests (Files): Likewise.
8593         * modules/vsprintf-posix-tests (Files): Likewise.
8594         * modules/vasnprintf-posix-tests (Files): Likewise.
8595         * modules/vasprintf-posix-tests (Files): Likewise.
8596         * tests/test-ceilf1.c (main): Use it.
8597         * tests/test-ceill.c (main): Likewise.
8598         * tests/test-floorf1.c (main): Likewise.
8599         * tests/test-floorl.c (main): Likewise.
8600         * tests/test-frexp.c (main): Likewise.
8601         * tests/test-frexpl.c (main): Likewise.
8602         * tests/test-isnan.c (main): Likewise.
8603         * tests/test-isnand.h (main): Likewise.
8604         * tests/test-isnanf.h (main): Likewise.
8605         * tests/test-isnanl.h (main): Likewise.
8606         * tests/test-ldexpl.c (main): Likewise.
8607         * tests/test-round.c (main): Likewise.
8608         * tests/test-roundf.c (main): Likewise.
8609         * tests/test-roundl.c (main): Likewise.
8610         * tests/test-signbit.c (test_signbitf, test_signbitd)
8611         (test_signbitl): Likewise.
8612         * tests/test-snprintf-posix.h (test_function): Likewise.
8613         * tests/test-sprintf-posix.h (test_function): Likewise.
8614         * tests/test-strtod.c (main): Likewise.
8615         * tests/test-trunc1.c (main): Likewise.
8616         * tests/test-truncf1.c (main): Likewise.
8617         * tests/test-truncl.c (main): Likewise.
8618
8619         isnanl: work around icc bug
8620         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8621
8622 2010-11-03  Eric Blake  <eblake@redhat.com>
8623
8624         tests: fix compiler warnings
8625         * tests/test-getopt.h (test_getopt): Fix condition.
8626         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8627         * tests/test-pipe2.c (main): Likewise.
8628         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8629
8630         utimens: fix broken m4 test
8631         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8632
8633 2010-10-28  Bruno Haible  <bruno@clisp.org>
8634
8635         posix_spawn*, getdtablesize: Relax license.
8636         * modules/posix_spawn (License): Change to LGPLv2+.
8637         * modules/posix_spawnp (License): Likewise.
8638         * modules/posix_spawn-internal (License): Likewise.
8639         * modules/posix_spawnattr_init (License): Likewise.
8640         * modules/posix_spawnattr_getflags (License): Likewise.
8641         * modules/posix_spawnattr_setflags (License): Likewise.
8642         * modules/posix_spawnattr_getpgroup (License): Likewise.
8643         * modules/posix_spawnattr_setpgroup (License): Likewise.
8644         * modules/posix_spawnattr_getschedparam (License): Likewise.
8645         * modules/posix_spawnattr_setschedparam (License): Likewise.
8646         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8647         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8648         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8649         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8650         * modules/posix_spawnattr_getsigmask (License): Likewise.
8651         * modules/posix_spawnattr_setsigmask (License): Likewise.
8652         * modules/posix_spawnattr_destroy (License): Likewise.
8653         * modules/posix_spawn_file_actions_init (License): Likewise.
8654         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8655         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8656         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8657         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8658         * modules/getdtablesize (License): Likewise.
8659         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8660
8661 2010-10-26  Bruno Haible  <bruno@clisp.org>
8662
8663         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8664         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8665         Cygwin and mingw.
8666         Suggested by Eric Blake.
8667
8668 2010-10-26  Bruno Haible  <bruno@clisp.org>
8669
8670         stdio: Work around compilation error due to renameat() on Solaris 10.
8671         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8672         * lib/renameat.c: Don't include <unistd.h> here.
8673         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8674         Reported by Paul Eggert and Eric Blake.
8675
8676 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8677
8678         renameat: port to Solaris 10, which declares renameat in unistd.h
8679
8680         * lib/renameat.c: Include unistd.h before stdio.h, because
8681         Solaris 10 declares renameat in unistd.h.  Problem encountered
8682         when building GNU tar 1.24 on Solaris 10.
8683
8684 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8685
8686         fdopendir: fix C89 compilation
8687         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8688         compilers.
8689
8690 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8691
8692         inttostr: simplify by removing unnecessary redundancy
8693         * lib/anytostr.c: Don't include verify.h.
8694         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8695         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8696         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8697         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8698         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8699         Likewise.
8700         * modules/inttostr (Depends-on): Remove 'verify'.
8701
8702 2010-10-23  Bruno Haible  <bruno@clisp.org>
8703
8704         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8705         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8706         Reported by Eric Blake.
8707
8708 2010-10-23  Bruno Haible  <bruno@clisp.org>
8709
8710         Tests: Fix LOCALE_JA on MirBSD 10.
8711         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8712         to an UTF-8 locale.
8713         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8714         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8715         Reported by Eric Blake.
8716
8717 2010-10-21  Bruno Haible  <bruno@clisp.org>
8718
8719         nl_langinfo test: Avoid test failure on NetBSD 5.
8720         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8721         Reported by Eric Blake.
8722
8723 2010-10-21  Eric Blake  <eblake@redhat.com>
8724
8725         c-stack: work around libsigsegv 2.8 bug
8726         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8727         overflow on at least PowerPC64.
8728
8729 2010-10-17  Bruno Haible  <bruno@clisp.org>
8730
8731         userspec: Drop redundant file.
8732         * modules/userspec (Files): Remove lib/inttostr.h.
8733
8734 2010-10-17  Bruno Haible  <bruno@clisp.org>
8735
8736         nl_langinfo tests: Silence some warnings.
8737         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8738         Reported by Jim Meyering.
8739
8740 2010-10-17  Bruno Haible  <bruno@clisp.org>
8741
8742         Make use of GCC's attribute __alloc_size__.
8743         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8744         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8745         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8746         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8747         __alloc_size__.
8748         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8749         Suggested by Jim Meyering.
8750
8751 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8752
8753         bootstrap: anchor .gitignore entries.
8754         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8755         with...
8756         (insert_vc_ignore): ... this new function, which prepends `/' to
8757         all .gitignore entries before passing them to
8758         insert_sorted_if_absent.
8759
8760 2010-10-16  Bruno Haible  <bruno@clisp.org>
8761
8762         nextafter: Fix configure check.
8763         * modules/nextafter (configure.ac): Correct expected prototype.
8764
8765 2010-10-16  Bruno Haible  <bruno@clisp.org>
8766
8767         termios: Update documentation.
8768         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8769
8770 2010-10-16  Bruno Haible  <bruno@clisp.org>
8771
8772         tests: Make them compile with TinyCC.
8773         * tests/test-strstr.c (main): Remove parentheses around array
8774         initializer.
8775
8776 2010-10-15  Eric Blake  <eblake@redhat.com>
8777
8778         ignore-value: make header idempotent
8779         * lib/ignore-value.h: Add double-inclusion guards.
8780         Reported by Stefan Berger.
8781
8782 2010-10-15  Jim Meyering  <meyering@redhat.com>
8783
8784         GNUmakefile: handle "stable" target, not "major"
8785         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8786         lists in maint.mk and announce-gen.  Without this, "make stable"
8787         would fail to ensure that $(VERSION) is up to date.
8788
8789 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8790
8791         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8792         & co.
8793
8794 2010-10-14  Bruno Haible  <bruno@clisp.org>
8795
8796         vasnprintf: Don't set errno to 0.
8797         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8798         block that sets it to 0.
8799         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8800
8801 2010-10-14  Bruno Haible  <bruno@clisp.org>
8802
8803         socketlib: Fix.
8804         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8805         gl_PREREQ_SYS_H_WINSOCK2.
8806         Reported by Ian Beckwith <ianb@erislabs.net>.
8807
8808 2010-10-13  Jim Meyering  <meyering@redhat.com>
8809
8810         test-select-stdin.c: avoid warn_unused_result warnings
8811         * tests/test-select-stdin.c: Include "macros.h".
8812         ASSERT that read and fflush succeed.
8813
8814 2010-10-13  Jim Meyering  <meyering@redhat.com>
8815
8816         git-version-gen: do require git-VC'd files in cwd
8817         * build-aux/git-version-gen: Reject a git version string
8818         if there are no commits associated with the current directory.
8819         This avoids an unlikely false-positive (unrelated dir whose parent
8820         repository also contains a tag matching v*), as pointed out
8821         by Giuseppe Scrivano in
8822         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8823
8824 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         argv-iter: omit nonconforming declaration
8827         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8828         enum arg_iter_err declaration, which doesn't conform to C99.
8829         Solaris 10 cc warns about this.
8830
8831 2010-10-13  Eric Blake  <eblake@redhat.com>
8832
8833         termios: fix compilation on mingw
8834         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8835         (gl_TERMIOS_H): Adjust it on mingw.
8836         * modules/termios (Makefile.am): Substitute new key.
8837         * lib/termios.in.h (includes): Make include_next conditional.
8838         * doc/posix-headers/termios.texi (termios.h): Update
8839         documentation.
8840         Reported by Daniel P. Berrange.
8841
8842 2010-10-13  Jim Meyering  <meyering@redhat.com>
8843
8844         git-version-gen: don't require that .git/ be in the current dir
8845         * build-aux/git-version-gen: Adjust this script so that it works
8846         when run from any working directory beneath the top-level .git/-
8847         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8848         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8849
8850         test-select: avoid warn_unused_result warnings
8851         * tests/test-select.c: Include "macros.h".
8852         ASSERT that each call to read, write, and pipe succeeds.
8853         While not technically required, also check each "close".
8854         * modules/select-tests (Files): Add tests/macros.h.
8855
8856         test-symlinkat: remove declaration of unused local
8857         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8858
8859         test-inttostr: avoid shadowing warnings
8860         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8861         and use malloc rather than the stack for the same reason as
8862         mentioned in the comment justifying the other allocation.
8863
8864 2010-10-11  Bruno Haible  <bruno@clisp.org>
8865
8866         stdlib: Allow multiple gnulib generated replacements to coexist.
8867         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8868         Reported by Sam Steingold <sds@gnu.org>.
8869
8870 2010-10-11  Jim Meyering  <meyering@redhat.com>
8871
8872         fix a documentation typo
8873         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8874
8875 2010-10-11  Eric Blake  <eblake@redhat.com>
8876
8877         futimens: work around Solaris 11 bug
8878         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8879         * tests/test-futimens.h (test_futimens): Enhance, rather than
8880         weaken test.
8881         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8882
8883 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8884
8885         Indentation.
8886         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8887         higher-level operators more to the left.
8888
8889 2010-10-11  Jim Meyering  <meyering@redhat.com>
8890
8891         test-futimens: avoid unwarranted test failure on Solaris 5.11
8892         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8893         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8894         because it tries to dereference the NULL name argument.
8895
8896 2010-10-11  Bruno Haible  <bruno@clisp.org>
8897
8898         Indentation.
8899         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8900         indentation.
8901
8902 2010-10-11  Jim Meyering  <meyering@redhat.com>
8903
8904         spawn.in.h: make indentation consistent with parentheses
8905         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8906         Make indentation consistent with parentheses.
8907
8908 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8909
8910         Fix mismatched parens in previous commit
8911         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8912         parens.
8913
8914 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8915
8916         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8917
8918         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8919         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8920         * lib/malloca.c: Include "verify.h".
8921         (verify1): Remove, replacing with a verify call.
8922         * lib/relocwrapper.c (verify1): Likewise.
8923         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8924         Likewise.
8925         * modules/malloca (Depends-on): Add 'verify'.
8926         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8927         * modules/vasnprintf (Depends-on): Add 'verify'.
8928         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8929         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8930         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8931         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8932         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8933         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8934         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8935
8936         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8937
8938         Formerly the style was sometimes 2*X - 1, because the C standard
8939         was wrongly thought to disallow ?: in integral constant expressions.
8940         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8941         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8942         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8943         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8944         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8945         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8946         verify that time_t cannot be floating.
8947
8948 2010-10-08  Eric Blake  <eblake@redhat.com>
8949
8950         time: enforce recent POSIX ruling that time_t is integral
8951         * lib/time.in.h (__time_t_must_be_integral): Detect any
8952         problematic systems, allowing the rest of gnulib to assume POSIX.
8953
8954 2010-10-08  Jim Meyering  <meyering@redhat.com>
8955
8956         fdopendir: fix a bug on systems lacking openat and /proc support
8957         OpenBSD 4.7 is one such system.  The most noticeable effect was
8958         failure of any application making nontrivial use of fts: rm, du,
8959         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8960           ./rm: traversal failed: `a': Bad file descriptor
8961         Debugging that, you see that even though FD 6 was closed just
8962         prior to the opendir call in fd_clone_opendir, its resulting
8963         dir->dd_fd was 8, rather than the expected value of 6:
8964
8965         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8966         93                close (fd);
8967         (gdb) n
8968         94                dir = fd_clone_opendir (dupfd);
8969         (gdb) n
8970         95                saved_errno = errno;
8971         (gdb) p dir->dd_fd
8972         $11 = 8
8973
8974         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8975         The problem is that on OpenBSD, fd_clone_opendir has to resort
8976         to using the old-style save/restore CWD mechanism, due to its
8977         lack of openat/proc support, and *that* would steal the FD (6)
8978         that opendir was supposed to use.
8979
8980         The fix is to squirrel away the desired FD so that save_cwd uses a
8981         different one, and then free the dest FD right before calling opendir.
8982         That guarantees opendir will use the required file descriptor.
8983
8984         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8985
8986 2010-10-08  Bruno Haible  <bruno@clisp.org>
8987
8988         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8989         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8990
8991 2010-10-08  Bruno Haible  <bruno@clisp.org>
8992
8993         nanosleep: Make replacement POSIX compliant.
8994         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8995         is out of range.
8996         Reported by Jim Meyering.
8997
8998 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8999
9000         bootstrap: add hook for altering gnulib.mk, for Bison
9001         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9002         the Bison bootstrapping process can rewrite file names and variables
9003         in this file before later parts of 'bootstrap' use the file.
9004         Bison wants to include lib/gnulib.mk from the top-level makefile,
9005         so it needs the file names in this file to be relative to the top
9006         level, not relative to lib; plus it needs variable names to be
9007         rewritten.
9008         (slurp): Use the new function.
9009
9010         bootstrap: reformat for readability
9011         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9012
9013 2010-10-08  Eric Blake  <eblake@redhat.com>
9014
9015         docs: update cygwin progress
9016         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9017         1.7.7.
9018         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9019         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9020         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9021         * doc/posix-functions/carg.texi (carg): Likewise.
9022         * doc/posix-functions/cargf.texi (cargf): Likewise.
9023         * doc/posix-functions/casin.texi (casin): Likewise.
9024         * doc/posix-functions/casinf.texi (casinf): Likewise.
9025         * doc/posix-functions/casinh.texi (casinh): Likewise.
9026         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9027         * doc/posix-functions/catan.texi (catan): Likewise.
9028         * doc/posix-functions/catanf.texi (catanf): Likewise.
9029         * doc/posix-functions/catanh.texi (catanh): Likewise.
9030         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9031         * doc/posix-functions/ccos.texi (ccos): Likewise.
9032         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9033         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9034         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9035         * doc/posix-functions/cexp.texi (cexp): Likewise.
9036         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9037         * doc/posix-functions/cimag.texi (cimag): Likewise.
9038         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9039         * doc/posix-functions/clog.texi (clog): Likewise.
9040         * doc/posix-functions/clogf.texi (clogf): Likewise.
9041         * doc/posix-functions/conj.texi (conj): Likewise.
9042         * doc/posix-functions/conjf.texi (conjf): Likewise.
9043         * doc/posix-functions/cpow.texi (cpow): Likewise.
9044         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9045         * doc/posix-functions/cproj.texi (cproj): Likewise.
9046         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9047         * doc/posix-functions/creal.texi (creal): Likewise.
9048         * doc/posix-functions/crealf.texi (crealf): Likewise.
9049         * doc/posix-functions/csin.texi (csin): Likewise.
9050         * doc/posix-functions/csinf.texi (csinf): Likewise.
9051         * doc/posix-functions/csinh.texi (csinh): Likewise.
9052         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9053         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9054         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9055         * doc/posix-functions/ctan.texi (ctan): Likewise.
9056         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9057         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9058         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9059         * doc/posix-headers/complex.texi (complex.h): Likewise.
9060
9061 2010-10-07  Jim Meyering  <meyering@redhat.com>
9062
9063         parse-datetime: avoid compilation failure on OpenBSD 4.7
9064         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9065         This works around a compilation failure on OpenBSD 4.7:
9066         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9067
9068 2010-10-07  Eric Blake  <eblake@redhat.com>
9069
9070         docs: update cygwin progress
9071         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9072         1.7.6.
9073         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9074         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9075         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9076         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9077         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9078         Likewise.
9079         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9080         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9081         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9082         Likewise.
9083         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9084         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9085         Likewise.
9086         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9087         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9088         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9089         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9090         Likewise.
9091         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9092         Likewise.
9093         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9094
9095         docs: update parse-datetime history
9096         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9097         documentation of this function's history and alternatives.
9098
9099         cygwin: use more robust version check
9100         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9101         exclude an eventual cygwin 1.9.1.
9102         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9104         (gl_FUNC_STRCASESTR): Likewise.
9105         Reported by Bruno Haible.
9106
9107 2010-10-06  Bruno Haible  <bruno@clisp.org>
9108
9109         string, sys_select: Avoid #including large headers unless necessary.
9110         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9111         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9112         OSF/1, BeOS, Haiku.
9113         Reported by Jim Meyering.
9114
9115 2010-10-05  Eric Blake  <eblake@redhat.com>
9116
9117         memmem, strstr, strcasestr: fix bug with long periodic needle
9118         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9119         periodic needle having false positive.
9120         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9121         and cygwin 1.7.7.
9122         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9124         (gl_FUNC_STRCASESTR): Likewise.
9125         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9126         * tests/test-memmem.c (main): Expose the bug.
9127         * tests/test-strcasestr.c (main): Likewise.
9128         * tests/test-strstr.c (main): Likewise.
9129         * tests/test-c-strcasestr.c (main): Likewise.
9130         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9131         * doc/posix-functions/strstr.texi (strstr): Likewise.
9132         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9133         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9134
9135 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9136
9137         parse-datetime: do some more renaming
9138         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9139         parse_datetime, not get_date.  Mention the renaming.
9140         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9141         in comments.
9142         * m4/bison.m4: Likewise.
9143
9144 2010-10-05  Eric Blake  <eblake@redhat.com>
9145
9146         parse-datetime: better name than get_date
9147         * NEWS: Reword the deprecation notice.
9148         * modules/get_date: Rename to modules/parse-datetime.
9149         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9150         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9151         * lib/get_date.y: Rename to lib/parse-datetime.y.
9152         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9153         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9154         * doc/getdate.texi: Provide fallback wrapper.
9155         * lib/getdate.h: Move guts, and wrap...
9156         * lib/parse-datetime.h: ...new file.
9157         * lib/parse-datetime.y (get_date): Rename...
9158         (parse_datetime): ...to this.
9159         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9160         (gl_PARSE_DATETIME): ...to this.
9161         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9162         documentation.
9163         * modules/getdate (Files): Provide fallback docs and header.
9164         (Notice, Depends-on): Update references.
9165         * tests/test-parse-datetime.c: Likewise.
9166         * DEPENDENCIES: Likewise.
9167         * MODULES.html.sh (Date and time <time.h>): Likewise.
9168         * doc/parse-datetime.texi (Date input formats)
9169         (Authors of parse_datetime): Likewise.
9170         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9171         (Include): Likewise.
9172         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9173         * gnulib-tool: Likewise.
9174         * m4/bison.m4 (gl_BISON): Likewise.
9175         Suggested by Bruno Haible.
9176
9177 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9178
9179         more ports to Solaris tr, which needs [] around ranges
9180         * gnulib-tool: Solaris tr needs [] around ranges.
9181         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9182         * tests/test-pipe-filter-gi1.c (main): Likewise.
9183         * tests/test-pipe-filter-ii1.c (main): Likewise.
9184
9185 2010-10-05  Eric Blake  <eblake@redhat.com>
9186
9187         bootstrap: fix Solaris regression
9188         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9189         around ranges.
9190         Reported by Pádraig Brady.
9191
9192         bootstrap: work with pkg-config
9193         * build-aux/bootstrap (check_versions): Also transliterate - in
9194         prerequisite name.
9195         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9196         prerequisites that were already found, to avoid confusion.
9197         Reported by Justin Clift.
9198
9199         faccessat: remove unused wrappers
9200         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9201         presence of these wrappers dragged in -lgen on Solaris.
9202         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9203
9204 2010-10-05  Jim Meyering  <meyering@redhat.com>
9205
9206         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9207         * Makefile (sc_pragma_columns): New syntax-check rule.
9208
9209 2010-10-04  Bruno Haible  <bruno@clisp.org>
9210
9211         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9212         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9213         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9214         Reported by Bruce Korb and Eric Blake.
9215
9216 2010-10-04  Bruno Haible  <bruno@clisp.org>
9217
9218         threadlib: Make option --with-libpth-prefix work.
9219         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9220         use $LIBPTH, not just -lpth.
9221
9222 2010-10-04  Bruno Haible  <bruno@clisp.org>
9223
9224         Avoid line length limitation from HP NonStop system header files.
9225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9226         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9227         * lib/ctype.in.h: Likewise.
9228         * lib/dirent.in.h: Likewise.
9229         * lib/errno.in.h: Likewise.
9230         * lib/fcntl.in.h: Likewise.
9231         * lib/float.in.h: Likewise.
9232         * lib/getopt.in.h: Likewise.
9233         * lib/iconv.in.h: Likewise.
9234         * lib/inttypes.in.h: Likewise.
9235         * lib/langinfo.in.h: Likewise.
9236         * lib/locale.in.h: Likewise.
9237         * lib/math.in.h: Likewise.
9238         * lib/netdb.in.h: Likewise.
9239         * lib/netinet_in.in.h: Likewise.
9240         * lib/poll.in.h: Likewise.
9241         * lib/pthread.in.h: Likewise.
9242         * lib/pty.in.h: Likewise.
9243         * lib/sched.in.h: Likewise.
9244         * lib/se-selinux.in.h: Likewise.
9245         * lib/search.in.h: Likewise.
9246         * lib/signal.in.h: Likewise.
9247         * lib/spawn.in.h: Likewise.
9248         * lib/stdarg.in.h: Likewise.
9249         * lib/stddef.in.h: Likewise.
9250         * lib/stdint.in.h: Likewise.
9251         * lib/stdio.in.h: Likewise.
9252         * lib/stdlib.in.h: Likewise.
9253         * lib/string.in.h: Likewise.
9254         * lib/strings.in.h: Likewise.
9255         * lib/sys_file.in.h: Likewise.
9256         * lib/sys_ioctl.in.h: Likewise.
9257         * lib/sys_select.in.h: Likewise.
9258         * lib/sys_socket.in.h: Likewise.
9259         * lib/sys_stat.in.h: Likewise.
9260         * lib/sys_time.in.h: Likewise.
9261         * lib/sys_times.in.h: Likewise.
9262         * lib/sys_utsname.in.h: Likewise.
9263         * lib/sys_wait.in.h: Likewise.
9264         * lib/sysexits.in.h: Likewise.
9265         * lib/termios.in.h: Likewise.
9266         * lib/time.in.h: Likewise.
9267         * lib/unistd.in.h: Likewise.
9268         * lib/wchar.in.h: Likewise.
9269         * lib/wctype.in.h: Likewise.
9270         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9271         * modules/ctype (Makefile.am): Likewise.
9272         * modules/dirent (Makefile.am): Likewise.
9273         * modules/errno (Makefile.am): Likewise.
9274         * modules/fcntl-h (Makefile.am): Likewise.
9275         * modules/float (Makefile.am): Likewise.
9276         * modules/getopt-posix (Makefile.am): Likewise.
9277         * modules/iconv-h (Makefile.am): Likewise.
9278         * modules/inttypes (Makefile.am): Likewise.
9279         * modules/langinfo (Makefile.am): Likewise.
9280         * modules/locale (Makefile.am): Likewise.
9281         * modules/math (Makefile.am): Likewise.
9282         * modules/netdb (Makefile.am): Likewise.
9283         * modules/netinet_in (Makefile.am): Likewise.
9284         * modules/poll-h (Makefile.am): Likewise.
9285         * modules/pthread (Makefile.am): Likewise.
9286         * modules/pty (Makefile.am): Likewise.
9287         * modules/sched (Makefile.am): Likewise.
9288         * modules/search (Makefile.am): Likewise.
9289         * modules/selinux-h (Makefile.am): Likewise.
9290         * modules/signal (Makefile.am): Likewise.
9291         * modules/spawn (Makefile.am): Likewise.
9292         * modules/stdarg (Makefile.am): Likewise.
9293         * modules/stddef (Makefile.am): Likewise.
9294         * modules/stdint (Makefile.am): Likewise.
9295         * modules/stdio (Makefile.am): Likewise.
9296         * modules/stdlib (Makefile.am): Likewise.
9297         * modules/string (Makefile.am): Likewise.
9298         * modules/strings (Makefile.am): Likewise.
9299         * modules/sys_file (Makefile.am): Likewise.
9300         * modules/sys_ioctl (Makefile.am): Likewise.
9301         * modules/sys_select (Makefile.am): Likewise.
9302         * modules/sys_socket (Makefile.am): Likewise.
9303         * modules/sys_stat (Makefile.am): Likewise.
9304         * modules/sys_time (Makefile.am): Likewise.
9305         * modules/sys_times (Makefile.am): Likewise.
9306         * modules/sys_utsname (Makefile.am): Likewise.
9307         * modules/sys_wait (Makefile.am): Likewise.
9308         * modules/sysexits (Makefile.am): Likewise.
9309         * modules/termios (Makefile.am): Likewise.
9310         * modules/time (Makefile.am): Likewise.
9311         * modules/unistd (Makefile.am): Likewise.
9312         * modules/wchar (Makefile.am): Likewise.
9313         * modules/wctype (Makefile.am): Likewise.
9314
9315 2010-10-04  Bruno Haible  <bruno@clisp.org>
9316
9317         read-file tests: Avoid a test failure on NonStop Kernel.
9318         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9319         a regular file.
9320         Reported by Joachim Schmitz <schmitz@hp.com>.
9321
9322 2010-10-03  Bruno Haible  <bruno@clisp.org>
9323
9324         gnulib-tool: Fixes for --create-testdir with --libtool.
9325         * gnulib-tool (func_get_automake_snippet): Don't augment
9326         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9327         an executable.
9328         (func_create_testdir): Handle module 'alloca' like func_import.
9329         Reported by Bruce Korb <bruce.korb@gmail.com>.
9330
9331 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9332
9333         Avoid some lines longer than 80 characters.
9334         * lib/stdint.in.h: Break long comment lines.
9335         * lib/math.in.h: Likewise.
9336         (_GL_NUM_UINT_WORDS): New macro, for readability.
9337         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9338         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9339         * lib/stdlib.in.h: Likewise.
9340         * lib/spawn.in.h: Likewise.
9341         * lib/sys_socket.in.h: Update an URL.
9342         * lib/sys_stat.in.h: Break long line.
9343
9344 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9345
9346         Improve pmccabe2html.
9347         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9348         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9349         when the sources change. Remove the line in the HTML about "Used
9350         ranges" (which implied that there might be other unused ranges),
9351         rename "Resume" to "Summary" (easier to understand for more users).
9352         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9353         styles, and some unnecessary blank lines.
9354
9355 2010-10-03  Bruno Haible  <bruno@clisp.org>
9356             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9357
9358         acl: Add support for ACLs on NonStop Kernel.
9359         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9360         Check whether the function aclsort() exists.
9361         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9362         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9363         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9364         (acl_nontrivial [HAVE_ACLSORT]: New function.
9365         (file_has_acl): Implement for NonStop Kernel.
9366         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9367         (qset_acl): Implement for NonStop Kernel.
9368         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9369         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9370         (main): Implement for NonStop Kernel.
9371         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9372         Kernel. Handle this flavor.
9373         * tests/test-set-mode-acl.sh: Likewise.
9374         * tests/test-copy-acl.sh: Likewise.
9375         * tests/test-copy-file.sh: Likewise.
9376
9377 2010-10-03  Bruno Haible  <bruno@clisp.org>
9378
9379         Info about ACLs on NonStop Kernel.
9380         * doc/acl-resources.txt: Add info about NonStop Kernel.
9381         References by Joachim Schmitz <schmitz@hp.com>.
9382
9383 2010-10-02  Bruno Haible  <bruno@clisp.org>
9384
9385         Define missing EDQUOT on NonStop Kernel.
9386         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9387         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9388         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9389         missing.
9390         * doc/posix-headers/errno.texi: Mention the NSK bug.
9391         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9392         Reported by Joachim Schmitz <schmitz@hp.com>.
9393
9394 2010-10-02  Bruno Haible  <bruno@clisp.org>
9395
9396         Update doc for POSIX:2008.
9397         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9398         Update URL of POSIX specification.
9399
9400 2010-10-02  Bruno Haible  <bruno@clisp.org>
9401
9402         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9403         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9404         from gnulib, not from Automake.
9405
9406 2010-10-02  Bruno Haible  <bruno@clisp.org>
9407
9408         New module 'system-posix'.
9409         * modules/system-posix: New file.
9410         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9411         module is present.
9412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9413         GNULIB_SYSTEM_POSIX.
9414         * modules/stdlib (Depends-on): Remove sys_wait.
9415         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9416         * doc/posix-functions/system.texi: Mention the new module.
9417         * doc/posix-headers/stdlib.texi: Likewise.
9418         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9419         define test_sys_wait_macros to a no-op.
9420         Reported by Sam Steingold <sds@gnu.org>.
9421
9422 2010-09-30  Bruno Haible  <bruno@clisp.org>
9423
9424         More renaming from 'getdate' to 'get_date'.
9425         * doc/get_date.texi: Renamed from doc/getdate.texi.
9426         * modules/get_date (Files): Update.
9427         * MODULES.html.sh (Date and time <time.h>): Update.
9428         * DEPENDENCIES: Update.
9429         * gnulib-tool: Update comment.
9430         * m4/bison.m4 (gl_BISON): Likewise.
9431         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9432
9433 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9434
9435         bootstrap: support ACLOCAL_FLAGS during aclocal
9436         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9437         can add additional -I dir for third-party .m4 files.
9438
9439 2010-09-30  Eric Blake  <eblake@redhat.com>
9440
9441         bootstrap: use glibtoolize on MacOS
9442         * build-aux/bootstrap (check_versions): Convert libtool into
9443         libtoolize.
9444         (tool search): Move libtool check earlier, and look for
9445         glibtoolize for MacOS.
9446         (gnulib_tool_options): Auto-add --libtool when appropriate.
9447         Reported by Justin Clift.
9448
9449         poll: fix typo that broke test on MacOS
9450         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9451         Reported by Justin Clift.
9452
9453         getdate: rename to get_date
9454         Note: getdate.h is not renamed, to minimize client impact.
9455         * modules/getdate: Mark obsolete.  Move old contents...
9456         * modules/get_date: ...to new module name.
9457         * modules/getdate-tests: Move...
9458         * modules/get_date-tests: ...here.
9459         * m4/getdate.m4: Move...
9460         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9461         * lib/getdate.y: Move...
9462         * lib/get_date.y: ...here.
9463         * tests/test-getdate.c: Move...
9464         * tests/test-get_date.c: ...here.
9465         * doc/posix-functions/getdate.texi (getdate): Update name.
9466         * NEWS: Mention the change.
9467
9468 2010-09-29  Bruno Haible  <bruno@clisp.org>
9469
9470         Separate the module 'waitpid' from the module 'sys_wait'.
9471         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9472         present.
9473         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9474         gl_MODULE_INDICATOR_FOR_TESTS.
9475         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9476         * modules/sys_wait (Depends-on): Remove waitpid.
9477         (Makefile.am): Substitute GNULIB_WAITPID.
9478         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9479         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9480         signature only if the 'waitpid' module is present.
9481         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9482         * NEWS: Mention the change.
9483         * modules/grantpt (Depends-on): Add waitpid.
9484         * modules/wait-process (Depends-on): Likewise.
9485
9486 2010-09-29  Bruno Haible  <bruno@clisp.org>
9487
9488         More tests for module 'sys_wait'.
9489         * modules/sys_wait-c++-tests: New file.
9490         * tests/test-sys_wait-c++.cc: New file.
9491         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9492         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9493
9494 2010-09-29  Bruno Haible  <bruno@clisp.org>
9495
9496         New module 'waitpid'.
9497         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9498         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9499         Don't include <process.h>.
9500         (waitpid): Declare only, using modern idiom.
9501         * m4/waitpid.m4: New file.
9502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9503         * modules/waitpid: New file.
9504         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9505         (Makefile.am): Update.
9506         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9507
9508 2010-09-28  Bruno Haible  <bruno@clisp.org>
9509
9510         poll: Assume ANSI C.
9511         * lib/poll.c (poll): Use an ANSI C declaration.
9512
9513 2010-09-28  Bruno Haible  <bruno@clisp.org>
9514
9515         poll-h: Create poll.h on all platforms.
9516         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9517         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9518         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9519         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9520         (gl_REPLACE_POLL_H): Don't set POLL_H.
9521         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9522         * modules/poll-h (Depends-on): Add include_next.
9523         (Makefile.am): Create poll.h unconditionally. Substitute also
9524         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9525
9526 2010-09-28  Bruno Haible  <bruno@clisp.org>
9527
9528         Tests for module 'poll-h'.
9529         * modules/poll-h-c++-tests: New file.
9530         * tests/test-poll-h-c++.cc: New file.
9531
9532         Tests for module 'poll-h'.
9533         * modules/poll-h-tests: New file.
9534         * tests/test-poll-h.c: New file.
9535
9536 2010-09-28  Bruno Haible  <bruno@clisp.org>
9537
9538         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9539         * modules/poll-h (Depends-on): Add 'extensions'.
9540
9541 2010-09-28  Bruno Haible  <bruno@clisp.org>
9542
9543         New module 'poll-h'.
9544         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9545         (poll): Use modern idiom.
9546         * modules/poll-h: New file.
9547         * modules/poll (Files): Remove lib/poll.in.h.
9548         (Depends-on): Add poll-h.
9549         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9550         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9551         * m4/poll_h.m4: New file.
9552         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9553         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9554         and invoke gl_REPLACE_POLL_H.
9555         * lib/poll.c: Use common idiom.
9556         * tests/test-poll.c: Likewise.
9557         * doc/posix-headers/poll.texi: Mention the poll-h module.
9558         Suggested by Eric Blake.
9559
9560 2010-09-26  Bruno Haible  <bruno@clisp.org>
9561
9562         sys_wait: Implement WSTOPSIG.
9563         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9564         Reported by Simon Josefsson.
9565
9566 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9567
9568         stdlib, sys_wait: Avoid compilation error on mingw.
9569         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9570
9571 2010-09-26  Bruno Haible  <bruno@clisp.org>
9572
9573         stdlib tests: Avoid code duplication.
9574         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9575         * modules/sys_wait-tests (Files): Likewise.
9576         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9577         * tests/test-stdlib.c: Include test-sys_wait.h.
9578         (main): Invoke test_sys_wait_macros.
9579         * tests/test-sys_wait.c: Include test-sys_wait.h.
9580         (main): Invoke test_sys_wait_macros.
9581
9582 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9583
9584         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9585         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9586         sure Windows sockets are working before calling getaddrinfo.
9587         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9588         * doc/gnulib.texi (Windows sockets): Fix typo.
9589
9590 2010-09-25  Bruno Haible  <bruno@clisp.org>
9591
9592         Tests for module 'regex-quote'.
9593         * modules/regex-quote-tests: New file.
9594         * tests/test-regex-quote.c: New file.
9595
9596         New module 'regex-quote'.
9597         * lib/regex-quote.h: New file.
9598         * lib/regex-quote.c: New file.
9599         * modules/regex-quote: New file.
9600         Suggested by Reuben Thomas <rrt@sc3d.org>.
9601
9602 2010-09-24  Bruno Haible  <bruno@clisp.org>
9603
9604         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9605         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9606
9607 2010-09-23  Bruno Haible  <bruno@clisp.org>
9608
9609         setenv: Relax license.
9610         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9611         Blake.
9612         Requested by Eric Blake.
9613
9614 2010-09-22  Bruno Haible  <bruno@clisp.org>
9615
9616         termios: Relax license.
9617         * modules/termios (License): Change to LGPLv2+.
9618         Requested by Eric Blake.
9619
9620 2010-09-22  Bruno Haible  <bruno@clisp.org>
9621
9622         threadlib: Allow the package to change the default to 'no'.
9623         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9624         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9625         Reported by Paul Eggert.
9626
9627 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9628             Bruno Haible  <bruno@clisp.org>
9629
9630         Fix endless loop in mbmemcasecoll.
9631         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9632         byte.
9633         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9634
9635 2010-09-22  Bruno Haible  <bruno@clisp.org>
9636
9637         Tests for module 'memcoll'.
9638         * modules/memcoll-tests: New file.
9639         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9640
9641         memcoll, xmemcoll: Clarify size vs. length.
9642         * modules/memcoll.c (memcoll0): Clarify specification.
9643         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9644         passed to collate_error.
9645
9646 2010-09-22  Bruno Haible  <bruno@clisp.org>
9647
9648         Tests for module 'memcasecmp'.
9649         * modules/memcasecmp-tests: New file.
9650         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9651
9652 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9653
9654         * lib/pthread.in.h: Add split double-inclusion guard, and include
9655         system <pthread.h> if there is one.  Use @@-style as in other
9656         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9657         pthread.h doesn't.
9658         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9659         (pthread_mutexattr_settype, pthread_mutex_trylock):
9660         New static inline functions, if there's no system <pthread.h>.
9661         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9662         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9663         Approximate with mutexes if the system lacks spinlocks, as in
9664         MacOS.
9665         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9666         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9667         @@-style.  Check for spinlocks separately.
9668         (gl_PTHREAD_DEFAULTS): New macro.
9669         * modules/pthread: Redo to use a more typical style for in.h files.
9670
9671 2010-09-21  Eric Blake  <eblake@redhat.com>
9672
9673         net_if: enhance tests
9674         * tests/test-net_if.c (main): Move signature checks earlier.
9675         Print failures to stderr.
9676         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9677         Document the bug that we do not yet fix.
9678
9679 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9680
9681         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9682         about gnulib, not GSS.
9683
9684 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9685
9686         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9687         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9688         for Emacs.
9689         * build-aux/pmccabe2html: Make Makefile.am example code more
9690         cut-and-paste friendly.
9691
9692 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9693
9694         * tests/test-net_if.c: New file.
9695         * modules/net_if-tests: New file.
9696
9697 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9698
9699         pthread: add pthread_spin_destroy
9700         * lib/pthread.in.h (pthread_spin_destroy): New function.
9701
9702 2010-09-19  Bruno Haible  <bruno@clisp.org>
9703
9704         gnulib-tool: Fix --help output.
9705         * gnulib-tool (func_usage): Fix help message.
9706         Reported by Reuben Thomas <rrt@sc3d.org>.
9707
9708 2010-09-18  Jim Meyering  <meyering@redhat.com>
9709
9710         maint.mk: avoid unexpanded \n in two diagnostics
9711         * top/maint.mk (sc_prohibit_always_true_header_tests):
9712         Don't use a literal \n in a halt=... assignment.  It would not be
9713         expanded, and the two \n bytes would appear in the diagnostic output
9714         rather than the desired newline.  Use halt=$$(printf ... instead.
9715         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9716
9717 2010-09-18  Bruno Haible  <bruno@clisp.org>
9718
9719         netinet_in: Doc tweak.
9720         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9721         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9722
9723 2010-09-18  Jim Meyering  <meyering@redhat.com>
9724
9725         init.sh: correct an outdated comment
9726         * tests/init.sh (create_exe_shims_):  s/function/alias/
9727
9728         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9729         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9730         a file named "*.exe" is removed between the glob expansion and the
9731         processing of that oddly named file.
9732
9733 2010-09-17  Eric Blake  <eblake@redhat.com>
9734
9735         mirbsd: add some more support
9736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9737         in BSD family.
9738         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9739         devices as OpenBSD.
9740         * m4/host-os.m4 (mirbsd): Add MirBSD.
9741
9742         tests: fix unportable assumption on sys/wait.h
9743         * tests/test-sys_wait.c (main): Relax test.
9744         * tests/test-stdlib.c (main): Likewise.
9745
9746         init.sh: accomodate directory with no .exes
9747         * tests/init.sh: Accomodate directory containing only scripts.
9748
9749         tests: avoid compiler warning
9750         * tests/test-stdlib.c (main): Use the variable.
9751
9752         fdutimens, fdutimensat: update signature, again
9753         * lib/utimens.h (gl_futimens): Delete, and move signature...
9754         (fdutimens): ...here.
9755         (fdutimensat): Rearrange signature.
9756         (lutimensat): Rename variable for clarity.
9757         * lib/fdutimensat.c (fdutimensat): Update signature.
9758         * lib/utimens.c (fdutimens): Likewise.
9759         (gl_futimens): Delete.
9760         (utimens, lutimens): Update callers.
9761         * lib/futimens.c (futimens): Likewise.
9762         * tests/test-fdutimensat.c: Likewise.
9763         * tests/test-utimens.c: Likewise.
9764         * tests/test-futimens.h: Update comment.
9765         * NEWS: Mention this.
9766         Suggested by Paul Eggert.
9767
9768 2010-09-17  Bruno Haible  <bruno@clisp.org>
9769
9770         Take over the maintenance of some older macros from Autoconf.
9771         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9772         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9773         GNU Autoconf.
9774         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9775         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9776
9777 2010-09-17  Eric Blake  <eblake@redhat.com>
9778
9779         fdutimensat: drop atflag validation
9780         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9781         with valid fd, to close a race scenario where futimens is
9782         unsupported and FILE was replaced by a symlink.
9783         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9784         accordingly.
9785         Suggested by Paul Eggert.
9786
9787 2010-09-16  Bruno Haible  <bruno@clisp.org>
9788
9789         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9790         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9791
9792 2010-09-16  Bruno Haible  <bruno@clisp.org>
9793
9794         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9795         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9796         login_tty exists.
9797         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9798
9799 2010-09-16  Bruno Haible  <bruno@clisp.org>
9800
9801         login_tty: Make the replacement code work on BSD systems.
9802         * lib/login_tty.c: Include <sys/ioctl.h>.
9803         (login_tty): Use ioctl TIOCSCTTY when available.
9804         * modules/login_tty (Depends-on): Add sys_ioctl.
9805         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9806
9807 2010-09-16  Bruno Haible  <bruno@clisp.org>
9808
9809         login_tty: Stricter unit test.
9810         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9811         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9812         and tcgetsid() after login_tty.
9813         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9814
9815 2010-09-16  Bruno Haible  <bruno@clisp.org>
9816
9817         New module 'tcgetsid'.
9818         * lib/tcgetsid.c: New file.
9819         * m4/tcgetsid.m4: New file.
9820         * modules/tcgetsid: New file.
9821         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9822         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9823         GNULIB_TCGETSID, HAVE_TCGETSID.
9824         * lib/termios.in.h: Include <sys/types.h>.
9825         (tcgetsid): New declaration.
9826         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9827         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9828         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9829         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9830
9831 2010-09-16  Bruno Haible  <bruno@clisp.org>
9832
9833         Tests for module 'termios'.
9834         * modules/termios-c++-tests: New file.
9835         * modules/termios-tests: New file.
9836         * tests/test-termios-c++.cc: New file.
9837         * tests/test-termios.c: New file.
9838
9839         New module 'termios'.
9840         * modules/termios: New file.
9841         * lib/termios.in.h: New file.
9842         * m4/termios_h.m4: New file.
9843         * doc/posix-headers/termios.texi: Mention the new module.
9844
9845 2010-09-16  Eric Blake  <eblake@redhat.com>
9846
9847         fdutimensat: add an atflag parameter
9848         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9849         * lib/utimens.h (fdutimensat): Update prototype.
9850         * tests/test-fdutimensat.c: Adjust test to match.
9851         * NEWS: Document the change.
9852         Suggested by Paul Eggert.
9853
9854 2010-09-16  Bruno Haible  <bruno@clisp.org>
9855
9856         Fix typos in comments.
9857         * lib/striconveh.h: Fix typo in comment.
9858         * lib/login_tty.c (login_tty): Likewise.
9859
9860 2010-09-15  Bruno Haible  <bruno@clisp.org>
9861
9862         stdlib: clarify MirBSD WEXITSTATUS bug
9863         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9864         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9865
9866 2010-09-15  Eric Blake  <eblake@redhat.com>
9867
9868         stdlib: work around MirBSD WEXITSTATUS bug
9869         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9870         * modules/stdlib (Depends-on): Add sys_wait.
9871         * tests/test-sys_wait.c (main): Enhance test.
9872         * tests/test-stdlib.c (main): Likewise.
9873         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9874
9875         docs: mention MacOS issue with WEXITSTATUS(constant)
9876         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9877         issue.
9878         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9879
9880         strnlen: add tests
9881         * modules/strnlen-tests: New file.
9882         * tests/test-strnlen.c: Likewise.
9883
9884 2010-09-14  Bruno Haible  <bruno@clisp.org>
9885
9886         unistr/base: Avoid link errors when module 'libunistring' is also used.
9887         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9888         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9889         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9890         Declare also when HAVE_LIBUNISTRING is set.
9891         Reported by Pádraig Brady <P@draigbrady.com>.
9892
9893 2010-09-14  Eric Blake  <eblake@redhat.com>
9894
9895         test-rawmemchr: make more robust
9896         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9897         (Depends-on, configure.ac): Add needed prerequisites to use it.
9898         * modules/memchr-tests (Files, Depends-on, configure.ac):
9899         Likewise, to avoid implicit reliance on memchr module prereqs.
9900         * tests/test-memchr.c (main): Ensure proper masking.
9901         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9902         reads.
9903
9904         memchr: detect glibc Alpha bug
9905         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9906         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9907         Alpha.
9908         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9909         * tests/test-memchr.c (main): Enhance test.
9910         Reported by Nelson H. F. Beebe.
9911
9912 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9913
9914         fts, getcwd, glob: audit for dirfd returning -1
9915         * lib/fts.c (opendir): Remove #define; no longer used.
9916         (opendirat): New arg PDIR_FD.  All callers changed.
9917         (fts_build, _opendir2): Use new opendirat to avoid the need for
9918         dirfd, or for checking whether dirfd returns a negative value.
9919         Don't use opendir; always use openat followed by fdopendir.
9920         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9921         it.
9922         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9923         returns -1 here.
9924         * modules/fts (Depends-on): Remove dirfd.
9925         * modules/getcwd (Depends-on): Likewise.
9926
9927 2010-09-13  Eric Blake  <eblake@redhat.com>
9928
9929         float: fix broken MirBSD header
9930         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9931         * doc/posix-headers/float.texi (float.h): Document it.
9932
9933 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9934
9935         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9936         * lib/fts.c (opendirat): New arg extra_flags.
9937         (__opendir2): Use it to avoid following symlinks when opening
9938         a directory, if symlinks are not supposed to be followed.  See
9939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9940
9941         fdopendir: preserve argument fd before returning
9942         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9943         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9944         (fdopendir): Use them, arranging for FD to be open to the same
9945         directory that it was when it started.  (It might be temporarily
9946         closed while fdopendir is running, so this not thread- or
9947         signal-safe.)  Be careful to do the right thing even when file
9948         descriptors are scarce and dup fails with errno == EMFILE.  See
9949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9950
9951 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9952
9953         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9954         * NEWS: Document change.
9955         * m4/regex.m4: Disable test for regoff_t size.
9956
9957 2010-09-13  Jim Meyering  <meyering@redhat.com>
9958
9959         fts: don't operate on an invalid file descriptor after failed dup
9960         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9961         negative file descriptor.
9962
9963 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9964
9965         savedir: add streamsavedir, deprecate fdsavedir
9966         * NEWS: Mention deprecation of fdsavedir.
9967         * lib/savedir.c (streamsavedir): New extern function, whose name
9968         ends in "savedir" to be consistent with the others.  This differs
9969         from savedirstream in that it doesn't close its argument.  The
9970         next version of GNU tar will use this instead of fdsavedir, to
9971         avoid some race conditions and conserve file descriptors.
9972         (savedirstream): Reimplement as a wrapper around streamsavedir.
9973         (fdsavedir): Add a comment deprecating this function.  As far as
9974         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9975         * lib/savedir.h (streamsavedir): New decl.
9976         (fdsavedir): Add a comment deprecating this.
9977
9978 2010-09-10  Bruno Haible  <bruno@clisp.org>
9979
9980         langinfo: Fix last commit.
9981         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9982         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9984
9985 2010-09-10  Bruno Haible  <bruno@clisp.org>
9986
9987         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9988         * lib/progreloc.c (O_EXEC): Define fallback.
9989
9990 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9991
9992         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9993         * NEWS: Document recent changes to fcntl-h.
9994         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9995         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9996         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9997         Similarly for O_SEARCH; this last was already true, but not documented.
9998         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9999         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10000         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10001         Likewise.
10002         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10003         is zero, not whether it is defined.
10004         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10005         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10006         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10007
10008 2010-09-10  Bruno Haible  <bruno@clisp.org>
10009
10010         langinfo, nl_langinfo: Fix for IRIX 5.3.
10011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10012         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10013         HAVE_LANGINFO_YESEXPR.
10014         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10015         HAVE_LANGINFO_YESEXPR.
10016         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10017         HAVE_LANGINFO_T_FMT_AMPM is 0.
10018         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10019         HAVE_LANGINFO_YESEXPR is 0.
10020         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10021         NOEXPR.
10022         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10023         * doc/posix-functions/nl_langinfo.texi: Likewise.
10024         Reported by Eric Blake.
10025
10026 2010-09-10  Bruno Haible  <bruno@clisp.org>
10027
10028         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10029         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10030         on FreeBSD 8.0 and OpenBSD 4.6.
10031         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10032         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10033         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10034         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10035         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10036         ac_includes_default.
10037         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10038
10039 2010-09-09  Eric Blake  <eblake@redhat.com>
10040
10041         strsignal: work around NetBSD bug
10042         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10043         * lib/string.in.h (includes): Likewise.
10044         * doc/posix-functions/strsignal.texi (strsignal): Document the
10045         bug.
10046         Reported by Nelson H. F. Beebe.
10047
10048         gnulib-tool: work with NetBSD /bin/sh
10049         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10050         (func_get_description, func_get_comment, func_get_status)
10051         (func_get_notice, func_get_applicability, func_get_filelist)
10052         (func_get_dependencies, func_get_autoconf_early_snippet)
10053         (func_get_autoconf_snippet, func_get_automake_snippet)
10054         (func_get_include_directive, func_get_link_directive)
10055         (func_get_license, func_get_maintainer, func_import): Avoid
10056         shell syntax errors from parsing syntax extensions.
10057
10058 2010-09-09  Bruno Haible  <bruno@clisp.org>
10059
10060         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10061         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10062         a reliable way to determine whether the 'alias' command works.
10063
10064 2010-09-08  Jim Meyering  <meyering@redhat.com>
10065
10066         init.sh: penalize a set-x-impaired shell; don't disqualify it
10067         * tests/init.sh: Too many shells corrupt application stderr when
10068         you set -x, so we can't afford to disqualify them, since at least
10069         on Irix-6.5, that would disqualify all bourne shells.
10070         Instead, use a two-pass approach.
10071         On the first pass, try to find a shell that meets the stricter
10072         condition that set -x does not corrupt stderr.
10073         If no shell meets the stricter condition, retest each candidate
10074         shell, but without that extra condition.  Finally, when
10075         VERBOSE=yes is requested and set -x might cause trouble, simply
10076         issue a warning and refrain from enabling debug output.
10077
10078 2010-09-08  Eric Blake  <eblake@redhat.com>
10079
10080         unsetenv: fix OpenBSD bug
10081         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10082         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10083         documentation.
10084         Reported by Jim Meyering.
10085
10086         strtod: work around IRIX 6.5 bug
10087         * lib/strtod.c (strtod): Reparse number on shorter string if
10088         exponent parse was invalid.
10089         * tests/test-strtod.c (main): Add check for "0x1p 2".
10090         Reported by Tom G. Christensen.
10091
10092         getopt: optimize previous patch
10093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10094         empty variable.  Speed up awk script.
10095         Reported by Paolo Bonzini.
10096
10097 2010-09-08  Jim Meyering  <meyering@redhat.com>
10098
10099         test.sh: disqualify shells for which set -x corrupts stderr
10100         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10101         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10102         appear in stderr output.  For example, this command:
10103             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10104         prints "P=1" on those two systems:
10105
10106 2010-09-08  Bruno Haible  <bruno@clisp.org>
10107
10108         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10109         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10110         commands, because some shells ignore redirections when there is an
10111         error in the command lookup.
10112         Reported by Eric Blake.
10113
10114 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10115
10116         * lib/regex.h: Fix a mention of `regex_compile' (should be
10117         `re_compile_pattern').
10118         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10119         (re_set_registers): Correct name of parameter in comment.
10120
10121         * doc/regex.texi: Add documentation for missing syntax flags.
10122         Remove commented-out documentation of defunct syntax option
10123         RE_NO_EMPTY_ALTS.
10124         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10125         Add documentation of re_set_registers.
10126         Document trick to re-use a pattern buffer by setting fastmap manually.
10127         Update documentation of struct re_pattern_buffer per public members.
10128         Uncomment documentation of equivalence class operators and
10129         collating symbol operators, since they are now implemented,
10130         Explain leftmost-longest matching in relation to alternatives.
10131         Tidy documentation of substring matching.
10132         Remove POSIX documentation, which is done better in
10133         glibc, and refer the reader there. Keep BSD API documentation, as
10134         that is not readily available elsewhere.
10135
10136 2010-09-07  Eric Blake  <eblake@redhat.com>
10137
10138         getopt: handle POSIXLY_CORRECT set but not exported
10139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10140         export state of POSIXLY_CORRECT, due to bash set -o posix.
10141         Reported by Dustin J. Mitchell.
10142
10143 2010-09-05  Bruno Haible  <bruno@clisp.org>
10144
10145         gnulib-tool: Highlight the changed options.
10146         * gnulib-tool (func_usage): Display the --import, --add-import,
10147         --remove-import explanations in bold font.
10148
10149 2010-09-06  Karl Berry  <karl@gnu.org>
10150
10151         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10152
10153 2010-09-05  Bruno Haible  <bruno@clisp.org>
10154
10155         uniwidth/width: Update comment.
10156         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10157         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10158
10159 2010-09-05  Bruno Haible  <bruno@clisp.org>
10160
10161         isinf, isnan: Relax license.
10162         * modules/isinf (License): Change from GPL to LGPL, with consent from
10163         Ben Pfaff.
10164         * modules/isnan (License): Likewise.
10165         Requested by Ludovic Courtès.
10166
10167 2010-09-04  Bruno Haible  <bruno@clisp.org>
10168
10169         gnulib-tool: Help migration from --import to --add-import or --update.
10170         * gnulib-tool: Emit a verbose error message when --import is used
10171         without any module name.
10172
10173 2010-09-04  Bruno Haible  <bruno@clisp.org>
10174
10175         Update doc about gnulib-tool.
10176         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10177         'gnulib-tool --update' in more detail.
10178         Reported by Eric Blake.
10179
10180 2010-09-04  Bruno Haible  <bruno@clisp.org>
10181
10182         gnulib-tool: Change --import. New options --add/remove-import.
10183         * gnulib-tool: New options --add-import, --remove-import.
10184         (func_usage): Document them.
10185         (have_associative): Define always.
10186         (func_import): In import mode, don't merge the specified settings with
10187         the cached settings. Implement remove-import mode.
10188         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10189         Explain when to use them versus --import.
10190         (Simple update): Use --add-import instead of --import.
10191         * NEWS: Mention the change.
10192
10193 2010-09-04  Bruno Haible  <bruno@clisp.org>
10194
10195         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10196         separate gnulib.mk.
10197
10198 2010-09-04  Bruno Haible  <bruno@clisp.org>
10199
10200         gnulib-tool: Don't talk about CVS any more.
10201         * gnulib-tool (func_usage, func_import): Write "version control"
10202         instead of CVS.
10203
10204 2010-09-04  Jim Meyering  <meyering@redhat.com>
10205
10206         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10207         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10208         false positives (whose names may be ill-chosen) when searching
10209         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10210         would cause a false-positive.
10211
10212         avoid coreutils "make distcheck" failure
10213         Coreutils tests with an absolute build directory name that contains
10214         a space.  Not quoting this directory name caused a failure.
10215         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10216         * tests/test-vc-list-files-cvs.sh: Likewise.
10217
10218 2010-09-04  Bruno Haible  <bruno@clisp.org>
10219
10220         gnulib-tool: Avoid error when run in a package without Makefile.am.
10221         * gnulib-tool: When collecting the m4dirs in a package that does not
10222         have a Makefile.am, eliminate those directories that contain no
10223         gnulib-cache.m4. Fix expression that counts these directories.
10224
10225 2010-09-04  Bruno Haible  <bruno@clisp.org>
10226
10227         update-copyright test: Improve output when perl is missing or too old.
10228         * tests/test-update-copyright.sh: Move test of Perl version down after
10229         the test whether Perl exists. Provide an explanation relating Perl's
10230         error message to Automake's SKIP: message.
10231
10232 2010-09-04  Bruno Haible  <bruno@clisp.org>
10233
10234         Don't augment PATH in TESTS_ENVIRONMENT.
10235         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10236         set abs_aux_dir instead of augmenting PATH.
10237         * modules/vc-list-files-tests (Makefile.am): Likewise.
10238         * tests/test-update-copyright.sh: Augment PATH here.
10239         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10240         path_prepend_.
10241         * tests/test-vc-list-files-git.sh: Likewise.
10242
10243 2010-09-04  Jim Meyering  <meyering@redhat.com>
10244
10245         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10246         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10247
10248 2010-09-04  Bruno Haible  <bruno@clisp.org>
10249
10250         strdup: Fix compilation error in C++ mode.
10251         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10252         the macro.
10253
10254 2010-09-04  Bruno Haible  <bruno@clisp.org>
10255
10256         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10257         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10258         macro into a function.
10259         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10260
10261 2010-09-04  Bruno Haible  <bruno@clisp.org>
10262
10263         Set PATH_SEPARATOR the same way autoconf does.
10264         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10265         the value of PATH_SEPARATOR the same way autoconf-generated configure
10266         scripts do.
10267         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10268         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10269
10270 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10271
10272         Set PATH_SEPARATOR the same way autoconf does.
10273         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10274         the same way autoconf-generated configure scripts do.
10275         * posix-modules: Likewise.
10276
10277 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10278
10279         hash: fix safe_hasher const typo
10280         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10281         const; otherwise, there is a type error later.
10282
10283 2010-09-02  Jim Meyering  <meyering@redhat.com>
10284
10285         test-update-copyright.sh: require perl 5.8.0
10286         * tests/test-update-copyright.sh: Require 5.8.0,
10287         which Tom G. Christensen has confirmed is adequate,
10288         while 5.6.1 is not.
10289
10290 2010-09-02  Eric Blake  <eblake@redhat.com>
10291
10292         tests: init.sh improvements for re-exec'ing with zsh
10293         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10294         -vx through shell re-exec.
10295         Reported by Tom G. Christensen.
10296
10297         wctype: fix typo in previous commit
10298         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10299         Reported by Ludovic Courtès.
10300
10301 2010-09-02  Jim Meyering  <meyering@redhat.com>
10302
10303         test-update-copyright.sh: skip test if Perl is too old
10304         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10305         Reported by Tom G. Christensen.
10306
10307 2010-09-02  Bruno Haible  <bruno@clisp.org>
10308
10309         wctype: Avoid compilation error on IRIX 6.5.30.
10310         * lib/wctype.in.h (iswblank): Declare with a replacement if
10311         REPLACE_ISWBLANK is set.
10312         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10313         declared. Set REPLACE_ISWBLANK.
10314         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10315         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10316         * doc/posix-headers/wctype.texi: Likewise.
10317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10318
10319 2010-09-01  Bruno Haible  <bruno@clisp.org>
10320
10321         New module 'socketlib'.
10322         * modules/socketlib: New file.
10323         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10324         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10325         * modules/sockets (Depends-on): Add socketlib.
10326         Suggested by Sam Steingold <sds@gnu.org>.
10327
10328 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10329
10330         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10331
10332         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10333         when one needs search access to a directory but not read access.
10334         On systems where it is available, it works in some cases where
10335         O_RDONLY does not, namely on directories that are searchable but
10336         not readable, and which need only to be searchable.  If O_SEARCH
10337         is not available, fall back to the traditional method of using
10338         O_RDONLY.
10339
10340         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10341         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10342         when opening a directory that needs only to be searchable.
10343         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10344         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10345         * lib/openat-proc.c (openat_proc_name): Likewise.
10346         * lib/openat.c (openat_needs_fchdir): Likewise.
10347         * lib/save-cwd.c (save_cwd): Likewise.
10348         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10349
10350 2010-08-28  Bruno Haible  <bruno@clisp.org>
10351
10352         New module 'host-cpu-c-abi'.
10353         * modules/host-cpu-c-abi: New file.
10354         * m4/host-cpu-c-abi.m4: New file, based on part of
10355         clisp/src/m4/general.m4.
10356         Requested by Sam Steingold <sds@gnu.org>.
10357
10358 2010-08-31  Eric Blake  <eblake@redhat.com>
10359         and Jim Meyering  <meyering@redhat.com>
10360
10361         hash: factor, and guard against misbehaving hasher function
10362         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10363         of table->hasher's return value.  Also protect against a hash value
10364         so large that adding it to table->bucket results in a NULL pointer.
10365         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10366         Use it in place of open-coded check-and-abort.
10367
10368 2010-08-30  Bruno Haible  <bruno@clisp.org>
10369
10370         hash: silence spurious clang warning
10371         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10372         Reported by Eric Blake.
10373
10374 2010-08-30  Eric Blake  <eblake@redhat.com>
10375
10376         strstr, memmem, strcasestr: avoid leaked shell message
10377         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10378         FreeBSD.
10379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10381
10382         tests: silence clang warning
10383         * tests/test-malloca.c (do_allocation): Avoid dead store.
10384
10385 2010-08-29  Bruno Haible  <bruno@clisp.org>
10386
10387         gettext: Fix recent mistake.
10388         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10389
10390 2010-08-29  Bruno Haible  <bruno@clisp.org>
10391
10392         selinux-h: Offer a --without-selinux option.
10393         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10394         --without-selinux was specified, skip all tests and define
10395         HAVE_SELINUX_SELINUX_H to 0.
10396         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10397         set LIB_SELINUX to empty.
10398         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10399         gl_LIBSELINUX. If --without-selinux was specified, replace
10400         selinux/context.h.
10401         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10402
10403 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10404             Bruno Haible  <bruno@clisp.org>
10405
10406         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10407         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10408         of HAVE_REALLOC.
10409         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10410         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10411         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10412         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10413
10414 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10415             Bruno Haible  <bruno@clisp.org>
10416
10417         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10418         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10419         HAVE_CALLOC.
10420         * lib/xmalloc.c: Update accordingly.
10421         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10422         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10423         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10424
10425 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10426             Bruno Haible  <bruno@clisp.org>
10427
10428         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10429         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10430         HAVE_MALLOC.
10431         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10432         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10433         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10434
10435 2010-08-29  Bruno Haible  <bruno@clisp.org>
10436
10437         Update modules list.
10438         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10439         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10440         (String handling <string.h>): Add astrxfrm.
10441         (File system functions): Add readlinkat.
10442
10443 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10444
10445         Tests for module 'realloc-gnu'.
10446         * modules/realloc-gnu-tests: New file.
10447         * tests/test-realloc-gnu.c: New file.
10448
10449         Tests for module 'calloc-gnu'.
10450         * modules/calloc-gnu-tests: New file.
10451         * tests/test-calloc-gnu.c: New file.
10452
10453         Tests for module 'malloc-gnu'.
10454         * modules/malloc-gnu-tests: New file.
10455         * tests/test-malloc-gnu.c: New file.
10456
10457 2010-08-28  Bruno Haible  <bruno@clisp.org>
10458
10459         Rename module 'realloc' -> 'realloc-gnu'.
10460         * modules/realloc-gnu: New file, copied from modules/realloc.
10461         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10462         obsolete.
10463         * modules/mgetgroups (Depends-on): Update.
10464         * doc/posix-functions/realloc.texi: Update.
10465         * NEWS: Mention the change.
10466
10467         Rename module 'calloc' -> 'calloc-gnu'.
10468         * modules/calloc-gnu: New file, copied from modules/calloc.
10469         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10470         obsolete.
10471         * doc/posix-functions/calloc.texi: Update.
10472         * NEWS: Mention the change.
10473
10474         Rename module 'malloc' -> 'malloc-gnu'.
10475         * modules/malloc-gnu: New file, copied from modules/malloc.
10476         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10477         obsolete.
10478         * modules/argp (Depends-on): Update.
10479         * modules/regex (Depends-on): Update.
10480         * doc/posix-functions/malloc.texi: Update.
10481         * NEWS: Mention the change.
10482
10483 2010-08-28  Eric Blake  <eblake@redhat.com>
10484
10485         pread, pwrite: add missing dependency
10486         * modules/pread (Depends-on): Add extensions.
10487         * modules/pwrite (Depends-on): Likewise.
10488
10489 2010-08-28  Bruno Haible  <bruno@clisp.org>
10490
10491         unistr/u*-strchr: Fix tests dependencies.
10492         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10493         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10494         Reported by Ian Beckwith <ianb@erislabs.net>.
10495
10496 2010-08-28  Bruno Haible  <bruno@clisp.org>
10497
10498         read-file: Don't occupy too much unused memory.
10499         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10500
10501 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10502             Eric Blake  <eblake@redhat.com>
10503             Bruno Haible  <bruno@clisp.org>
10504
10505         read-file: Avoid memory reallocations with regular files.
10506         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10507         (fread_file): With regular files, use the remaining length as the
10508         initial buffer size.  Check against overflow.
10509         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10510         sys_stat.
10511
10512 2010-08-28  Bruno Haible  <bruno@clisp.org>
10513
10514         ftello: Relax license.
10515         * modules/ftello (License): Relax to LGPLv2+.
10516         Reported by Eric Blake.
10517
10518 2010-08-28  Bruno Haible  <bruno@clisp.org>
10519
10520         Avoid relocwrapper link errors due to gnulib replacement functions.
10521         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10522         function.
10523         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10524
10525 2010-08-28  Bruno Haible  <bruno@clisp.org>
10526
10527         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10528         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10529         defined.
10530         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10531         Suggested by Eric Blake.
10532
10533 2010-08-28  Bruno Haible  <bruno@clisp.org>
10534
10535         sys_socket, netdb: Ensure socklen_t gets defined.
10536         * modules/sys_socket (Depends-on): Add socklen.
10537         * modules/netdb (Depends-on): Likewise.
10538         * modules/getaddrinfo (Depends-on): Remove socklen.
10539         * modules/getsockopt (Depends-on): Likewise.
10540         * modules/setsockopt (Depends-on): Likewise.
10541         * tests/test-sys_socket.c: Check that socklen_t is defined.
10542         * tests/test-netdb.c: Likewise.
10543         * m4/socklen.m4: Update comments.
10544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10545
10546 2010-08-27  Eric Blake  <eblake@redhat.com>
10547
10548         login_tty: add missing dependency
10549         * modules/login_tty (Depends-on): Add pty.
10550
10551 2010-08-26  Eric Blake  <eblake@redhat.com>
10552
10553         lib-symbol-versions: fix m4 quoting
10554         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10555         format for AC_LINK_IFELSE.
10556
10557         glob: fix compile test
10558         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10559
10560         btowc: fix missing file
10561         * modules/btowc (Files): Also ship locale-fr.m4.
10562
10563         lseek: fix link test
10564         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10565         AC_LINK_IFELSE.
10566
10567         include_next: silence autoconf 2.68 warning
10568         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10569         AC_COMPILE_IFELSE as special.
10570         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10571         autoconf < 2.68.
10572
10573         acl: fix compilation test
10574         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10575         AC_COMPILE_IFELSE.
10576
10577 2010-08-26  Bruno Haible  <bruno@clisp.org>
10578
10579         Modernize AC_TRY_RUN invocations.
10580         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10582         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10583         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10584         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10585         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10586         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10588         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10589         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10591         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10592         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10593         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10594         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10595         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10596         gl_MBRLEN_NUL_RETVAL): Likewise.
10597         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10598         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10599         Likewise.
10600         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10601         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10602         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10603         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10604         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10605         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10606         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10607         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10608         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10609         Likewise.
10610         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10611         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10613         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10614         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10615         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10616         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10617         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10618         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10620
10621 2010-08-26  Bruno Haible  <bruno@clisp.org>
10622
10623         Modernize AC_TRY_LINK invocations.
10624         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10625         AC_TRY_LINK.
10626         * m4/argp.m4 (gl_ARGP): Likewise.
10627         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10628         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10630         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10631         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10632         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10633         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10634         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10635         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10636         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10637         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10638         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10639         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10640         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10641         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10642         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10643         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10644         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10645         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10646         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10647         Likewise.
10648         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10649         Likewise.
10650         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10651         Likewise.
10652         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10654         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10655         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10656         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10657         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10658         * m4/servent.m4 (gl_SERVENT): Likewise.
10659         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10660         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10661         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10662         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10663         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10664         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10665         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10666         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10667         * modules/tsearch-tests (configure.ac): Likewise.
10668
10669 2010-08-26  Bruno Haible  <bruno@clisp.org>
10670
10671         Modernize AC_TRY_COMPILE invocations.
10672         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10673         AC_TRY_COMPILE.
10674         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10675         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10676         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10677         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10678         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10679         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10680         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10681         * m4/lock.m4 (gl_LOCK): Likewise.
10682         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10683         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10684         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10685         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10686         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10687         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10688         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10689         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10690         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10691         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10692         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10694         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10695         extraneous semicolon.
10696
10697 2010-08-26  Jim Meyering  <meyering@redhat.com>
10698
10699         stat-time: relax license LGPL
10700         * modules/stat-time (License): Change from GPL to LGPL,
10701         with consent from all contributors, for use in libguile.
10702         Requested by Ludovic Courtès.
10703
10704 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10705
10706         poll: return immediately on POLLHUP.
10707         * lib/poll.c (poll): Always set timeout before wait_timeout is
10708         computed.
10709
10710 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10711
10712         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10713         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10714         rmdir ("dir/.//"), unlinkat.
10715
10716 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         stdbool: avoid spurious failure with modern xlc
10719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10720
10721 2010-08-24  Bruno Haible  <bruno@clisp.org>
10722
10723         getloadavg: simplify code
10724         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10725         gl_have_func. Update comments.
10726
10727 2010-08-24  Eric Blake  <eblake@redhat.com>
10728
10729         getloadavg: don't define SVR4 on cygwin
10730         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10731         only define SVR4 when -lkvm is required.
10732         Reported by Yaakov Selkowitz.
10733
10734 2010-08-24  Bruno Haible  <bruno@clisp.org>
10735
10736         priv-set: fix comment
10737         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10738
10739 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10740
10741         priv-set: fix comments
10742         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10743         to match code, as suggested by David Bartley in:
10744         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10745
10746 2010-08-23  Eric Blake  <eblake@redhat.com>
10747
10748         stdbool: avoid rejecting clang
10749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10750         * tests/test-stdbool.c: Enable more tests if using the system
10751         <stdbool.h> instead of the gnulib replacement.
10752         (main): Move xlc bug test to a runtime test for all compilers.
10753         Reported by Anders Kaseorg.
10754
10755         argz: fix shell quoting issue
10756         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10757         Reported by Charles Wilson.
10758
10759 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10760             Erik Faye-Lund <kusmabite@gmail.com>
10761
10762         poll, select: handle ERROR_BROKEN_PIPE.
10763         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10764         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10765         * lib/select.c (win32_compute_revents): Do not mark a pipe
10766         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10767
10768 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10769
10770         fts: allow compilation with C++
10771         * lib/fts_.h: Specify extern "C" linkage with C++.
10772
10773 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10774
10775         Fix gnulib-tool sed script de-commentation for AIX sed.
10776         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10777         sed.
10778
10779 2010-08-17  Eric Blake  <eblake@redhat.com>
10780
10781         test-stddef: test for (some) offsetof bugs
10782         * tests/test-stddef.c: Enhance test to ensure correct type of
10783         offsetof.
10784         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10785         that we are not fixing at this time.
10786
10787 2010-08-15  Bruno Haible  <bruno@clisp.org>
10788
10789         stpncpy: Allow stpncpy to be defined as a macro.
10790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10791         if it's already correctly declared.
10792         * lib/string.in.h (stpncpy): Undefine before redefining.
10793         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10794
10795 2010-08-14  Bruno Haible  <bruno@clisp.org>
10796
10797         Rename module 'memxfrm' to 'amemxfrm'.
10798         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10799         (amemxfrm): Renamed from memxfrm.
10800         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10801         (amemxfrm): Renamed from memxfrm.
10802         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10803         * NEWS: Mention the change.
10804         * MODULES.html.sh (String handling <string.h>): Update.
10805         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10806         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10807         * lib/unicase/u16-casexfrm.c: Likewise.
10808         * lib/unicase/u32-casexfrm.c: Likewise.
10809         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10810         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10811         * lib/uninorm/u16-normxfrm.c: Likewise.
10812         * lib/uninorm/u32-normxfrm.c: Likewise.
10813         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10814         memxfrm.
10815         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10816         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10817         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10818         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10819         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10820         Suggested by Paul Eggert.
10821
10822 2010-08-14  Bruno Haible  <bruno@clisp.org>
10823
10824         Tests for module 'astrxfrm'.
10825         * modules/astrxfrm-tests: New file.
10826         * tests/test-astrxfrm.c: New file.
10827
10828         New module 'astrxfrm'.
10829         * lib/astrxfrm.h: New file.
10830         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10831         * modules/astrxfrm: New file.
10832
10833 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10834
10835         regex: Tweak doc.
10836         * doc/regex.texi (Overview): Don't mention regex.c.
10837         (GNU Regular Expression Compiling): Likewise.
10838         (Match-end-of-line Operator): Mention 'not_eol'.
10839
10840 2010-08-14  Brian Gough  <bjg@gnu.org>
10841             Bruno Haible  <bruno@clisp.org>
10842
10843         git-merge-changelog: add doc relating to use with bzr and hg.
10844         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10845
10846 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10847
10848         pthread: fix pthread.h creation for srcdir != builddir
10849         * modules/pthread (Makefile.am): Fix the rule to work also in a
10850         non-srcdir build.
10851
10852 2010-08-13  Karl Berry  <karl@gnu.org>
10853
10854         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10855         * doc/posix-*/*: force line break before @url of POSIX
10856         specifications.
10857         Suggested by Werner Lemberg.
10858
10859 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10860
10861         strtod: fix const diagnostic
10862         * lib/strtod.c (strtod): Don't assign const char * to char *,
10863         as this elicits a warning from GCC when warnings are enabled.
10864
10865 2010-08-10  Pádraig Brady <P@draigbrady.com>
10866         and Eric Blake  <eblake@redhat.com>
10867
10868         copy-acl: ignore ENOTSUP on HP-UX
10869         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10870         so that it is available for HP-UX.
10871         * lib/copy-acl.c (qcopy_acl): Use it.
10872         Reported by Patrick M. Callahan.
10873
10874 2010-08-10  Eric Blake  <eblake@redhat.com>
10875
10876         open, chown: relax license
10877         * modules/open (License): Change to LGPLv2+, with consent by all
10878         authors, for use in augeas.
10879         * modules/chown (License): Likewise.
10880         * modules/lchown (Likewise): Likewise.
10881         Requested by Adam Stokes.
10882
10883 2010-08-09  Karl Berry  <karl@gnu.org>
10884
10885         * build-aux/ar-lib: new file, import from Automake.
10886         * config/srclist.txt: autocheck for updates.
10887
10888 2010-08-09  Eric Blake  <eblake@redhat.com>
10889
10890         readlinkat: adjust client modules
10891         * modules/areadlinkat (Depends-on): Use readlinkat, not
10892         symlinkat.
10893         * modules/areadlinkat-with-size (Depends-on): Likewise.
10894
10895         mknod: be more vocal about danger of running tests as root
10896         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10897         root, since that is just asking for problems.
10898         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10899
10900         readlinkat: split into its own module
10901         * modules/symlinkat: Split readlinkat...
10902         * modules/readlinkat: ...into separate module.
10903         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10904         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10905         * lib/symlinkat.c (readlinkat): Move...
10906         * lib/readlinkat.c: ...into new file.
10907         * modules/symlinkat-tests: Split readlinkat test...
10908         * modules/readlinkat-tests: ...into separate module.
10909         * tests/test-symlinkat.c: Split...
10910         * tests/test-readlinkat.c: ...into new file.
10911         * NEWS: Document the split.
10912         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10913         * lib/unistd.in.h (readlinkat): Likewise.
10914         Suggested by Bruno Haible.
10915
10916 2010-08-08  Bruno Haible  <bruno@clisp.org>
10917
10918         memxfrm: Speed up.
10919         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10920         that usually only one call to strxfrm is necessary for each string
10921         part.
10922         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10923
10924 2010-08-07  Karl Berry  <karl@gnu.org>
10925
10926         * doc/posix-headers/limits.texi,
10927         * doc/posix-functions/malloc.texi,
10928         * doc/posix-functions/strsignal.texi: missing @item.
10929         * doc/ld-version-script.texi: spurious leading i.
10930         * doc/regex.texi (Interval Operators): no commas inside @var.
10931
10932 2010-08-01  Bruno Haible  <bruno@clisp.org>
10933
10934         Integrate the regex documentation.
10935         * doc/gnulib.texi: Define 'cn' index.
10936         (Regular expressions): New a chapter that includes regex.texi and
10937         regexprops-generic.texi.
10938         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10939         syntax.
10940
10941         Whitespace cleanup.
10942         * doc/regex.texi: Remove trailing spaces.
10943
10944         Add regex documentation.
10945         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10946         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10947         Written by Kathy A. Hargreaves and Karl Berry.
10948
10949 2010-08-01  Bruno Haible  <bruno@clisp.org>
10950
10951         link: Update documentation.
10952         * doc/posix-functions/link.texi: Update regarding Solaris.
10953
10954 2010-07-31  Bruno Haible  <bruno@clisp.org>
10955
10956         Update modules list.
10957         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10958         (String handling <string.h>): Add memcmp2, memxfrm.
10959         (Container data structures): Add xlist, xsublist, xoset.
10960         (Core language properties): Add alignof, unused-parameter.
10961         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10962         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10963         (Unibyte characters <ctype.h>): New section.
10964         (String handling <string.h>): New section.
10965         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10966         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10967         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10968         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10969         tan, tanh, tanl, y0, y1, yn.
10970         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10971         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10972         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10973         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10974         unlockpt, vdprintf, vdprintf-posix.
10975         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10976         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10977         xconcat-filename.
10978         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10979         getdtablesize, pipe2, pipe2-safer.
10980         (Security): New section.
10981         (Networking functions): Add accept4.
10982         (Signal handling): Add sigpipe.
10983         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10984         mbmemcasecoll.
10985         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10986         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10987         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10988         pipe-filter-ii.
10989         (Misc): Add argp-version-etc, login_tty, parse-duration.
10990
10991 2010-07-31  Bruno Haible  <bruno@clisp.org>
10992
10993         Improve doc in MODULES.html.
10994         * modules/linkat (Description): Add the word "function".
10995         * modules/mkfifo (Description): Likewise.
10996         * modules/mknod (Description): Likewise.
10997         * modules/remove (Description): Likewise.
10998         * modules/renameat (Description): Likewise.
10999         * modules/stat (Description): Likewise.
11000         * modules/symlink (Description): Likewise.
11001         * modules/unlink (Description): Likewise.
11002
11003 2010-07-31  Bruno Haible  <bruno@clisp.org>
11004
11005         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11006         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11007         option --enable/disable-c++ instead of --enable/disable-cxx.
11008         * NEWS: Mention the change.
11009
11010 2010-07-31  Bruno Haible  <bruno@clisp.org>
11011
11012         readlink, areadlink: Relax test a bit.
11013         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11014         alternative to ENOTDIR.
11015         * tests/test-areadlink.h (test_areadlink): Likewise.
11016         Reported by Rainer Tammer.
11017
11018 2010-07-31  Bruno Haible  <bruno@clisp.org>
11019
11020         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11021         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11022         character, perform the search using U_STRCHR.
11023         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11024         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11025         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11026         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11027         Suggested by Paolo Bonzini.
11028
11029 2010-07-31  Bruno Haible  <bruno@clisp.org>
11030
11031         unistr/u*-strstr: Fix dependencies.
11032         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11033         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11034         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11035
11036 2010-07-31  Bruno Haible  <bruno@clisp.org>
11037
11038         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11039         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11040         the beginning of the loop.
11041         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11042         cases in 'switch' statement.
11043
11044         unistr/u8-strchr: Fix several bugs.
11045         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11046         the string. When not found, return NULL, not a pointer near the end.
11047
11048         More tests for unistr/u8-strchr.
11049         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11050         that the function does not read past the first occurrence of the byte
11051         being searched.
11052         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11053         * tests/unistr/test-u16-strchr.c (main): New function.
11054         * tests/unistr/test-u32-strchr.c (main): New function.
11055
11056 2010-07-31  Bruno Haible  <bruno@clisp.org>
11057
11058         posix-modules: Ignore backup files of documentation files.
11059         * posix-modules: grep only through files named *.texi.
11060
11061 2010-07-31  Bruno Haible  <bruno@clisp.org>
11062
11063         symlinkat: Fix documentation.
11064         * doc/posix-functions/readlinkat.texi: Fix module name.
11065
11066 2010-07-31  Bruno Haible  <bruno@clisp.org>
11067
11068         fchownat: Replace also when chown has the trailing slash bug.
11069         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11070         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11071         introduced on 2010-04-10.
11072         Reported by Rainer Tammer.
11073
11074 2010-07-31  Bruno Haible  <bruno@clisp.org>
11075
11076         linkat: Work around AIX 7.1 bug.
11077         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11078         whether linkat handles trailing slash correctly. If not, replace linkat
11079         and define LINKAT_TRAILING_SLASH_BUG.
11080         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11081         check whether (fd1,file1) points to a directory if file1 or file2 ends
11082         in a slash. Code taken from lib/link.c.
11083         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11084         Reported by Rainer Tammer.
11085
11086 2010-07-31  Bruno Haible  <bruno@clisp.org>
11087
11088         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11089         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11090         This disables an xlc optimization that was causing wrong test results.
11091         Reported by Rainer Tammer.
11092
11093 2010-07-31  Bruno Haible  <bruno@clisp.org>
11094
11095         iconv: Work around AIX 6.1..7.1 bug.
11096         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11097         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11098         cross-compiling, guess no on all versions of AIX.
11099         Reported by Rainer Tammer.
11100
11101 2010-07-31  Bruno Haible  <bruno@clisp.org>
11102
11103         readlink: Relax test a bit.
11104         * tests/test-readlink.h (test_readlink): Allow different errno value
11105         when readlink is called with a file name that ends in / and refers to
11106         a file.
11107         Suggested by Eric Blake.
11108         Reported by Rainer Tammer.
11109
11110 2010-07-31  Bruno Haible  <bruno@clisp.org>
11111
11112         copysign: Does not require -lm on glibc systems.
11113         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11114         gl_COMMON_DOUBLE_MATHFUNC.
11115         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11116
11117 2010-07-31  Bruno Haible  <bruno@clisp.org>
11118
11119         duplocale: Work around AIX 7.1 bug.
11120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11121         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11122         * lib/duplocale.c (rpl_duplocale): Update comment.
11123         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11124         Reported by Rainer Tammer.
11125
11126 2010-07-30  Bruno Haible  <bruno@clisp.org>
11127
11128         dirfd: Avoid link error on AIX 7.1.
11129         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11130         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11131         exist, set REPLACE_DIRFD.
11132         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11133         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11134         * doc/posix-functions/dirfd.texi: Update.
11135         Reported by Rainer Tammer.
11136
11137 2010-07-30  Eric Blake  <eblake@redhat.com>
11138
11139         strtod: next round of AIX fixes
11140         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11141         exponent.
11142         * tests/test-strtod.c (main): Enhance tests.
11143         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11144         Reported by Rainer Tammer.
11145
11146         futimens: fix configure check
11147         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11148         Reported by Bruno Haible.
11149
11150 2010-07-30  Bruno Haible  <bruno@clisp.org>
11151
11152         getline: Update regarding AIX.
11153         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11154         Reported by Rainer Tammer.
11155
11156 2010-07-30  Bruno Haible  <bruno@clisp.org>
11157
11158         wcwidth: Drop replacement on AIX 7.
11159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11160         AIX 7.
11161         Reported by Rainer Tammer.
11162
11163 2010-07-30  Bruno Haible  <bruno@clisp.org>
11164
11165         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11166         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11167         a 'char *'.
11168         Reported by Rainer Tammer.
11169
11170 2010-07-30  Bruno Haible  <bruno@clisp.org>
11171
11172         unlink: Update regarding AIX.
11173         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11174         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11175         Reported by Rainer Tammer.
11176
11177 2010-07-30  Bruno Haible  <bruno@clisp.org>
11178
11179         symlink: Update regarding AIX.
11180         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11181         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11182         Reported by Rainer Tammer.
11183
11184 2010-07-30  Bruno Haible  <bruno@clisp.org>
11185
11186         strndup: Update regarding AIX.
11187         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11188         AIX 7.
11189         Reported by Rainer Tammer.
11190
11191 2010-07-30  Bruno Haible  <bruno@clisp.org>
11192
11193         stat: Update regarding AIX.
11194         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11195         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11196         Reported by Rainer Tammer.
11197
11198 2010-07-30  Bruno Haible  <bruno@clisp.org>
11199
11200         truncl: Fix autoconf test.
11201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11202         whether truncl works.
11203         Reported by Rainer Tammer.
11204
11205 2010-07-30  Bruno Haible  <bruno@clisp.org>
11206
11207         round: Update regarding AIX.
11208         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11209         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11210         Reported by Rainer Tammer.
11211
11212 2010-07-30  Bruno Haible  <bruno@clisp.org>
11213
11214         rename: Update regarding AIX.
11215         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11216         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11217         Reported by Rainer Tammer.
11218
11219 2010-07-30  Bruno Haible  <bruno@clisp.org>
11220
11221         printf.m4: Update regarding AIX.
11222         * m4/printf.m4: Update comments regarding AIX.
11223         Reported by Rainer Tammer.
11224
11225 2010-07-30  Bruno Haible  <bruno@clisp.org>
11226
11227         iconv: Update regarding AIX.
11228         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11229         AIX 7.
11230         Reported by Rainer Tammer.
11231
11232 2010-07-30  Bruno Haible  <bruno@clisp.org>
11233
11234         getopt: Update regarding AIX.
11235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11236         no on AIX.
11237         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11238         Reported by Rainer Tammer.
11239
11240 2010-07-30  Bruno Haible  <bruno@clisp.org>
11241
11242         ldexpl; Update regarding AIX.
11243         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11244         on AIX 7.
11245         Reported by Rainer Tammer.
11246
11247 2010-07-30  Bruno Haible  <bruno@clisp.org>
11248
11249         frexpl: Update regarding AIX.
11250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11251         on AIX 7.
11252         Reported by Rainer Tammer.
11253
11254 2010-07-30  Bruno Haible  <bruno@clisp.org>
11255
11256         open, fopen: Update regarding AIX.
11257         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11258         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11259         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11260         * doc/posix-functions/fopen.texi: Likewise.
11261         Reported by Rainer Tammer.
11262
11263 2010-07-30  Bruno Haible  <bruno@clisp.org>
11264
11265         chown: Update doc regarding AIX.
11266         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11267         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11268         Reported by Rainer Tammer.
11269
11270 2010-07-30  Eric Blake  <eblake@redhat.com>
11271
11272         strtod: fix bug in replacement function on AIX
11273         * lib/strtod.c (strtod): Special case broken "0x" parse in
11274         underlying strtod.
11275         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11276         * doc/posix-functions/strtod.texi (strtod): Likewise.
11277         Reported by Rainer Tammer.
11278
11279 2010-07-30  Bruno Haible  <bruno@clisp.org>
11280
11281         mbrlen: Fix cross-compilation guess for AIX.
11282         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11283         guess. Leftover from 2008-12-22.
11284
11285 2010-07-30  Bruno Haible  <bruno@clisp.org>
11286
11287         mbrtowc: Fix cross-compilation guess for AIX.
11288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11289         guess. Leftover from 2008-12-21.
11290
11291 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11292
11293         init.sh: work around trap limitation of some shells
11294         * tests/init.sh (setup_): Move exit trap outside of shell function.
11295
11296 2010-07-29  Eric Blake  <eblake@redhat.com>
11297
11298         strtod: aid debugging
11299         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11300         understanding why strtod is rejected.
11301
11302 2010-07-28  Bruno Haible  <bruno@clisp.org>
11303
11304         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11305         * lib/unistr/u8-chr.c: Include <string.h>.
11306         * tests/unistr/test-u8-chr.c: Likewise.
11307         * tests/unistr/test-u16-chr.c: Likewise.
11308         * tests/unistr/test-u32-chr.c: Likewise.
11309         * tests/unistr/test-u8-strchr.c: Likewise.
11310         * tests/unistr/test-u16-strchr.c: Likewise.
11311         * tests/unistr/test-u32-strchr.c: Likewise.
11312         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11313         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11314         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11315         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11316
11317 2010-07-28  Bruno Haible  <bruno@clisp.org>
11318
11319         Use spaces for indentation, not tabs.
11320         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11321
11322 2010-07-27  Bruno Haible  <bruno@clisp.org>
11323
11324         mbspcasecmp: Fix function specification.
11325         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11326         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11327         Reported by Eric Blake <eblake@redhat.com>.
11328
11329 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11330
11331         timespec: use cast and not conditional, as truncation isn't possible
11332         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11333         instead of a conditional.  Comment about the situation in more detail.
11334         This undoes most of the 2009-10-29 patch.
11335
11336 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11337
11338         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11339         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11340         * lib/unistr/u8-strchr.c: Likewise.
11341         * modules/unistr/u8-chr: Depend on memchr.
11342
11343         unistr/u*-strchr: add tests
11344         * modules/unistr/u8-strchr-tests: New file.
11345         * modules/unistr/u16-strchr-tests: New file.
11346         * modules/unistr/u32-strchr-tests: New file.
11347         * tests/unistr/test-strchr.h: New file.
11348         * tests/unistr/test-u8-strchr.c: New file.
11349         * tests/unistr/test-u16-strchr.c: New file.
11350         * tests/unistr/test-u32-strchr.c: New file.
11351
11352         unistr/u*-chr: test multibyte sequences more
11353         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11354         test vector.
11355         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11356         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11357         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11358
11359         unistr/u*-chr: test multibyte sequences
11360         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11361
11362         unistr/u*-chr: prepare for multibyte tests
11363         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11364         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11365         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11366         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11367         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11368         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11369
11370 2010-07-18  Bruno Haible  <bruno@clisp.org>
11371
11372         unistr/u8-strchr: Optimize non-ASCII argument case.
11373         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11374         because the first byte often matches anyway.
11375         Reported by Pádraig Brady <P@draigbrady.com>.
11376
11377 2010-07-15  Karl Berry  <karl@gnu.org>
11378
11379         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11380
11381 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11382
11383         getcwd: on Solaris, work better if ancestors are inaccessible
11384         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11385         buffer and size, try again with a large buffer.  This works better
11386         on Solaris, since its getcwd succeeds even if the path to the root
11387         is inaccessible, and this is helpful in common cases such as .zfs
11388         hidden directories.  Problem reported by J Chapman Flack in
11389         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11390         Use system getcwd if it's declared, not merely if it's partly
11391         working; use the partly-working test only to avoid needless effort
11392         if the system getcwd fails.
11393         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11394         comment that was already obsolete and is now even more obsolete.
11395         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11396         now might call strdup.
11397
11398 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11399
11400         pthread: Add enough so that coreutils/src/sort.c compiles.
11401         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11402         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11403         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11404         Include <sys/types.h>, in case it defines pthread_t.
11405         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11406         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11407         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11408         (pthread_rwlockattr_t, pthread_spinlock_t):
11409         New typedefs, if HAVE_PTHREAD_T is not defined.
11410         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11411         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11412         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11413         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11414         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11415         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11416         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11417         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11418         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11419         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11420         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11421         New macros.
11422         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11423         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11424         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11425         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11426         (pthread_spin_unlock): New dummy functions.
11427         (pthread_create): Return EAGAIN; don't set errno.
11428         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11429         require AC_C_INLINE.
11430         * modules/pthread (Depends-on): Add sched, time.
11431         (pthread.h): Use AM_V_GEN.
11432
11433 2010-07-13  Bruno Haible  <bruno@clisp.org>
11434
11435         striconveh: Don't malloc memory if the result buffer is sufficient.
11436         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11437         buffer if its size is sufficient.
11438         Reported by Ludovic Courtès <ludo@gnu.org>.
11439
11440 2010-07-13  Bruno Haible  <bruno@clisp.org>
11441
11442         strtod: Add safety check.
11443         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11444
11445 2010-07-12  Bruno Haible  <bruno@clisp.org>
11446
11447         Unify tests that set gl_cv_func_ldexpl_no_libm.
11448         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11449         gl_FUNC_LDEXPL.
11450         (gl_FUNC_LDEXPL): Invoke it.
11451         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11452
11453 2010-07-12  Bruno Haible  <bruno@clisp.org>
11454
11455         Unify tests that set gl_cv_func_ldexp_no_libm.
11456         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11457         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11458         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11459         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11460         * modules/strtod (Files): Add m4/ldexp.m4.
11461
11462 2010-07-12  Bruno Haible  <bruno@clisp.org>
11463
11464         Unify tests that set gl_cv_func_frexpl_no_libm.
11465         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11466         gl_FUNC_FREXPL_NO_LIBM.
11467         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11469
11470 2010-07-12  Bruno Haible  <bruno@clisp.org>
11471
11472         Unify tests that set gl_cv_func_frexp_no_libm.
11473         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11474         gl_FUNC_FREXP_NO_LIBM.
11475         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11476         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11477
11478 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11479
11480         memcoll: clarify sizes versus lengths, document better, and tweak perf
11481         * lib/memcoll.c (strcoll_loop, memcoll0):
11482         Improve quality of descriptive comments.  Name variables
11483         consistently as to whether they are lengths (which do not include
11484         terminating null) versus sizes (which do).
11485         * lib/xmemcoll.c (xmemcoll0): Likewise.
11486         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11487         returned when s1size == 0; this is easier to compile and saves
11488         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11489
11490 2010-07-12  Bruno Haible  <bruno@clisp.org>
11491
11492         Tests for module '_Exit'.
11493         * modules/_Exit-tests: New file.
11494         * tests/test-_Exit.sh: New file.
11495         * tests/test-_Exit.c: New file.
11496
11497         New module '_Exit'.
11498         * lib/stdlib.in.h (__attribute__): New macro.
11499         (_Exit): New declaration.
11500         * lib/_Exit.c: New file.
11501         * m4/_Exit.m4: New file.
11502         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11503         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11504         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11505         * modules/_Exit: New file.
11506         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11507         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11508
11509 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11510
11511         strtod: make it more-accurate typically, and don't require libm
11512         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11513         Include limits.h.  Don't include string.h.
11514         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11515         (locale_isspace): New function, so that no casts are needed to
11516         check whether *s is a space.
11517         (ldexp): Provide an unused dummy if not available.
11518         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11519         (strtod): Use them.  This implementation prefers to use the
11520         underlying strtod if available, falling back on our own code
11521         only to fix known bugs.  This is more likely to produce an
11522         accurate result.  Also, it avoids the use of libm functions.
11523         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11524         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11525         was absent, but it caused a test failure with coreutils.
11526         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11527         with libm.
11528         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11529         * modules/strtod-tests (Makefile.am): Likewise.
11530
11531 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11532             Bruno Haible  <bruno@clisp.org>
11533
11534         unistr/u8-strchr: Optimize ASCII argument case.
11535         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11536
11537 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11538
11539         (x)memcoll: minor tweaks
11540         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11541         is after the type that it qualifies.
11542         (memcoll0): Likewise.
11543         * lib/memcoll.h (memcoll0): Likewise.
11544         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11545         * lib/xmemcoll.h (xmemcoll0): Likewise.
11546         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11547         differs from memcoll in that the NUL byte is part of the argument.
11548         Omit the abort-checks, as performance is a real issue here.  Plus,
11549         the checks were wrong anyway (an off-by-one error).  Omit local
11550         variable 'diff', as it's a bit clearer that way.
11551         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11552         no longer needed.
11553
11554 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11555
11556         (x)memcoll: speedup when input is known to be NUL delimited
11557         * lib/memcoll.c: Include stdlib.
11558         (memcoll0): New function.
11559         (strcoll_loop): New function, refactored for use in both memcoll
11560         and memcoll0.
11561         * lib/memcoll.h (memcoll0): Add prototype.
11562         * lib/xmemcoll.c (xmemcoll0): New function.
11563         (collate_error): New function, refactored for use in both xmemcoll
11564         and xmemcoll0.
11565         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11566         * m4/memcoll.m4: add inline invocation.
11567
11568 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11569
11570         * build-aux/bootstrap: Remove any local translations
11571         from the translation project synchronization directory,
11572         so that local only translations are not distributed.
11573
11574 2010-07-04  Bruno Haible  <bruno@clisp.org>
11575
11576         fsusage: Clarify which code applies to which platforms.
11577         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11578         platform.
11579         * lib/fsusage.c (get_fs_usage): Likewise.
11580
11581 2010-07-04  Bruno Haible  <bruno@clisp.org>
11582
11583         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11584         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11585         Reported by Martin Lambers <marlam@marlam.de>.
11586
11587 2010-07-04  Jim Meyering  <meyering@redhat.com>
11588
11589         hash: once again explicitly disallow insertion of NULL
11590         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11591         inserting a NULL pointer cannot work with these functions.
11592         Add a comment with details.
11593         This reverts part of the 2010-07-01 commit, 5bef1a35
11594         "hash: extend module to deal with non-pointer keys".
11595
11596 2010-07-01  Bruno Haible  <bruno@clisp.org>
11597
11598         stdbool: Update doc.
11599         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11600         Info from Christian Weisgerber <naddy@mips.inka.de>.
11601
11602 2010-07-01  Jim Meyering  <meyering@redhat.com>
11603
11604         hash: extend module to deal with non-pointer keys
11605         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11606         but that allows insertion of non-pointer entries.
11607         Do not disallow an ENTRY value of NULL.
11608         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11609         * lib/hash.h (hash_insert0): Declare.
11610
11611 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11612
11613         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11614         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11615         not present (i.e. with autoconf 2.59 and when using gettextize, not
11616         gnulib), require AC_GNU_SOURCE instead.
11617
11618 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11619
11620         idpriv-drop: Fix tests.
11621         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11622         not to the test-idpriv-droptemp program.
11623
11624 2010-06-29  Bruno Haible  <bruno@clisp.org>
11625
11626         string: Fix syntax error with g++ 2.96.
11627         * lib/string.in.h (__pure__): Remove definition.
11628         (_GL_ATTRIBUTE_PURE): New macro.
11629         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11630         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11631         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11632
11633 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11634
11635         unitypes: Fix bug introduced on 2010-05-18.
11636         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11637
11638 2010-06-22  Eric Blake  <eblake@redhat.com>
11639
11640         memmem: slight optimization
11641         * lib/str-two-way.h (critical_factorization): Update comments.
11642         Reduce work during factorization phase.
11643         Reported by Carlos Bueno <carlos@bueno.org>.
11644
11645 2010-06-21  Bruno Haible  <bruno@clisp.org>
11646
11647         Fix HAVE_CALLOC_POSIX misnomer.
11648         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11649         !HAVE_CALLOC_POSIX.
11650         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11651         HAVE_CALLOC_POSIX.
11652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11653         instead of HAVE_CALLOC_POSIX.
11654         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11655         HAVE_CALLOC_POSIX.
11656
11657         Use modern idiom for calloc() replacement.
11658         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11659         AC_FUNC_CALLOC.
11660         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11661         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11662         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11663         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11664         (gl_REPLACE_CALLOC): New macro.
11665
11666 2010-06-21  Bruno Haible  <bruno@clisp.org>
11667
11668         Fix HAVE_REALLOC_POSIX misnomer.
11669         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11670         !HAVE_REALLOC_POSIX.
11671         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11672         HAVE_REALLOC_POSIX.
11673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11674         instead of HAVE_REALLOC_POSIX.
11675         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11676         HAVE_REALLOC_POSIX.
11677
11678         Use modern idiom for realloc() replacement.
11679         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11680         AC_FUNC_REALLOC.
11681         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11682         Autoconf's AC_FUNC_REALLOC.
11683         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11684         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11685         (gl_REPLACE_REALLOC): New macro.
11686         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11687
11688 2010-06-21  Bruno Haible  <bruno@clisp.org>
11689
11690         Fix HAVE_MALLOC_POSIX misnomer.
11691         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11692         !HAVE_MALLOC_POSIX.
11693         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11694         HAVE_MALLOC_POSIX.
11695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11696         instead of HAVE_MALLOC_POSIX.
11697         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11698         HAVE_MALLOC_POSIX.
11699
11700         Use modern idiom for malloc() replacement.
11701         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11702         AC_FUNC_MALLOC.
11703         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11704         Autoconf's AC_FUNC_MALLOC.
11705         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11706         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11707         (gl_REPLACE_MALLOC): New macro.
11708         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11709
11710 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11711
11712         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11713         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11714         This macro takes 3 arguments, not 4.
11715
11716 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11717
11718         ipv6: fix detection under mingw
11719         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11720         in6_addr.
11721
11722 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11723
11724         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11725         that strtod() works when cross-compiling to a glibc version known
11726         to work.
11727
11728 2010-06-15  Bruno Haible  <bruno@clisp.org>
11729
11730         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11731
11732 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11733
11734         select: Correct timeout.
11735         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11736
11737 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11738
11739         git-version-gen: init shell var to avoid env var influence
11740         * build-aux/git-version-gen (v): Init shell var to empty.
11741
11742 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11743
11744         priv-set: Don't assume that priv.h exists merely because getppriv does.
11745         See Jan Andersen's bug report about AIX 5L in
11746         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11747         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11748         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11749         * lib/priv-set.h: Likewise.
11750         * tests/test-priv-set.c: Likewise.
11751
11752 2010-06-13  Bruno Haible  <bruno@clisp.org>
11753
11754         relocatable: Make it easier to test whether to install wrappers.
11755         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11756         RELOCATABLE_VIA_WRAPPER.
11757
11758 2010-06-13  Bruno Haible  <bruno@clisp.org>
11759
11760         gnulib-tool: Display specified modules and dependencies differently.
11761         * gnulib-tool (func_show_module_list): New function.
11762         (func_import, func_create_testdir): Invoke it.
11763         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11764
11765 2010-06-13  Bruno Haible  <bruno@clisp.org>
11766
11767         gnulib-tool: Align code of func_import and func_create_testdir.
11768         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11769         specified_modules.
11770
11771 2010-06-12  Jim Meyering  <meyering@redhat.com>
11772
11773         test-inttostr: avoid spurious failure on Solaris 9
11774         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11775         to accept "%ju".  Reported by Bruno Haible.
11776
11777 2010-06-11  Jim Meyering  <meyering@redhat.com>
11778
11779         test-sys_socket: mark variables as used more readably
11780         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11781         as "used" explicitly via (void) statement casts.  This is more
11782         readable than using them in an artificial return expression.
11783         Suggestion from Bruno Haible.
11784
11785 2010-06-11  Bruno Haible  <bruno@clisp.org>
11786
11787         Avoid some more warnings from "gcc -Wwrite-strings".
11788         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11789         to 'const char *'.
11790         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11791         * tests/test-c-strcasestr.c (main): Likewise.
11792         * tests/test-mbscasestr1.c (main): Likewise.
11793         * tests/test-mbscasestr2.c (main): Likewise.
11794         * tests/test-memmem.c (main): Likewise.
11795         * tests/test-strstr.c (main): Likewise.
11796         * tests/test-strcasestr.c (main): Likewise.
11797
11798 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11799
11800         init.sh: change framework_failure_ to fail with status 99, not 1
11801         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11802         automake's parallel-tests rule that this is an unexpected failure,
11803         even if the test is listed in XFAIL_TESTS.
11804
11805 2010-06-11  Jim Meyering  <meyering@redhat.com>
11806
11807         test-inttostr: avoid warnings about 4-6KB literal strings
11808         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11809         Include "macros.h", for its definition of ASSERT.
11810         (CK): s/assert/ASSERT/
11811         * modules/inttostr-tests (Files): Add macros.h.
11812
11813         init.sh: don't use $ME_ or skip_ before they are defined
11814         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11815         their first uses.  Also hoist their companions: warn_, fail_,
11816         framework_failure_, $stderr_fileno.  Prompted by a patch from
11817         Stefano Lattarini.
11818
11819         test-sys_socket: avoid set-but-not-used warnings from gcc
11820         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11821         avoid warning about set-but-not-used variables.
11822
11823         test-xvasprintf: avoid 'const' discard warnings
11824         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11825         "const" when assigning from literal strings.
11826         (test_xasprintf): Add "void" in function argument list to placate
11827         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11828
11829         tests: avoid compilation warnings in argmatch and exclude tests...
11830         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11831         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11832         Since it always exits, declare with the "noreturn" attribute.
11833         * tests/test-argmatch.c: Likewise.
11834
11835         tests: avoid 'const' discard warnings in mbsstr tests
11836         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11837         * tests/test-mbsstr2.c (main): Likewise.
11838
11839         test-verify: avoid warning from gcc's -Wmissing-declarations
11840         * tests/test-verify.c (function): Declare to be static.
11841
11842         test-inttostr.c: include <string.h> for use of strcmp
11843         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11844
11845         test-linkat: avoid failed assertion on "other" architectures
11846         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11847         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11848         sparc: https://bugs.launchpad.net/bugs/591968
11849
11850 2010-06-11  Jim Meyering  <meyering@redhat.com>
11851
11852         printf.m4: avoid autoconf's "Expanded Before Required" warning
11853         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11854         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11855         autoconf warning.
11856
11857 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11858
11859         Replacement header templates are now named with ".in", not "_".
11860         * doc/gnulib-intro.texi: Correct.
11861
11862 2010-06-10  Jim Meyering  <meyering@redhat.com>
11863
11864         inttostr-tests: depend on snprintf, not snprintf-posix
11865         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11866         snprintf-posix, to avoid this aclocal failure:
11867           missing file gnulib-tests/vasnprintf.c
11868           configure.ac:45: error: expected source file, required through \
11869           AC_LIBSOURCES, not found
11870
11871 2010-06-10  Jim Meyering  <meyering@redhat.com>
11872
11873         inttostr: add a new function, inttostr, and tests
11874         The namesake function was not available.  The existence of the
11875         template file, inttostr.c makes its addition nontrivial.
11876         * lib/anytostr.c: Rename from inttostr.c.
11877         (anytostr): Rename from inttostr.
11878         * lib/inttostr.c: New file.
11879         * modules/inttostr (Files): Add anytostr.c.
11880         (Makefile.am): Set lib_SOURCES instead of ...
11881         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11882         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11883         * lib/offtostr.c: Likewise.
11884         * lib/uinttostr.c: Likewise.
11885         * lib/umaxtostr.c: Likewise.
11886         * modules/inttostr-tests: New file.
11887         * tests/test-inttostr.c: New file.  Test these functions.
11888
11889 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11890             Bruno Haible  <bruno@clisp.org>
11891
11892         Add "Extending Gnulib" chapter to manual.
11893         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11894         chapter.
11895         (Extending Gnulib): New chapter.
11896         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11897         chapter.
11898
11899 2010-06-09  Bruno Haible  <bruno@clisp.org>
11900
11901         Avoid relocwrapper link errors due to gnulib replacement functions.
11902         * lib/areadlink.c: Use the system's malloc, realloc functions.
11903         (areadlink): Set errno to ENOMEM explicitly.
11904         * modules/areadlink (Depends-on): Remove malloc-posix.
11905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11906
11907 2010-06-09  Bruno Haible  <bruno@clisp.org>
11908
11909         Avoid relocwrapper link errors due to gnulib replacement functions.
11910         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11911         * lib/malloca.c: Likewise.
11912         * lib/relocatable.c: Likewise.
11913         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11914         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11915         * lib/setenv.c: Use the system's malloc, realloc functions.
11916         * lib/strerror.c: Use the system's sprintf function.
11917         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11918
11919 2010-06-04  Bruno Haible  <bruno@clisp.org>
11920
11921         Prefer documented low-level autoconf macro names.
11922         * m4/lib-link.m4: Use m4_translit instead of translit.
11923         * m4/environ.m4: Likewise.
11924         * m4/mathfunc.m4: Likewise.
11925         * m4/onceonly.m4: Likewise.
11926         * m4/stdint.m4: Likewise.
11927         Suggested by Eric Blake.
11928
11929 2010-06-04  Martin Lambers  <marlam@marlam.de>
11930             Bruno Haible  <bruno@clisp.org>
11931
11932         havelib: Allow library names with '+' characters.
11933         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11934         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11935
11936 2010-06-09  Bruno Haible  <bruno@clisp.org>
11937
11938         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11939         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11940         realloc failed.
11941
11942 2010-06-08  Peter Simons  <simons@cryp.to>
11943
11944         maint.mk: make the news-check rule more configurable
11945         * top/maint.mk (news-check-lines-spec): New variable.
11946         (news-check): Use "sed -n 1,10p" in place of "head".
11947
11948 2010-06-07  Jim Meyering  <meyering@redhat.com>
11949
11950         do-release-commit-and-tag: fix typo in --help
11951         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11952
11953         regex: avoid new dead-code warning with gcc-4.6.0
11954         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11955         if-block containing a while-loop.  It's been unused for at least
11956         5 years.
11957
11958 2010-06-05  Bruno Haible  <bruno@clisp.org>
11959
11960         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11961         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11962
11963 2010-06-04  Bruno Haible  <bruno@clisp.org>
11964
11965         Update to GNU gettext 0.18.1.
11966         * modules/gettext (configure.ac): Require gettext infrastructure from
11967         version 0.18.1.
11968
11969 2010-06-03  Bruno Haible  <bruno@clisp.org>
11970
11971         Don't use AC_LIBOBJ with file names in subdirectories.
11972         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11973         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11974         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11975         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11976         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11977         gl_LIBUNISTRING_LIBSOURCE.
11978         (Makefile.am): Augment lib_SOURCES here, conditionally.
11979         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11980
11981 2010-06-03  Bruno Haible  <bruno@clisp.org>
11982
11983         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11984         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11985         expansion does not end with a newline.
11986         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11987         unnecessary newline.
11988
11989 2010-06-03  Bruno Haible  <bruno@clisp.org>
11990
11991         Reduce dependencies.
11992         * tests/test-quotearg.h: New file, extracted from
11993         tests/test-quotearg.c.
11994         * tests/test-quotearg-simple.c: New file, extracted from
11995         tests/test-quotearg.c.
11996         * tests/test-quotearg.c: Don't include <ctype.h>.
11997         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11998         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11999         use_quote_double_quotes, use_quotearg_colon): Moved to
12000         tests/test-quotearg.h.
12001         (results_g, flag_results, custom_quotes, custom_results): Moved
12002         to tests/test-quotearg-simple.c.
12003         (main): Moved the part that does not depend on gettext to
12004         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12005         performed.
12006         * modules/quotearg-simple: New file.
12007         * modules/quotearg-simple-tests: New file.
12008         * modules/quotearg (Depends-on): Add quotearg-simple.
12009         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12010         (Files): Add tests/test-quotearg.h.
12011         Reported by Paolo Bonzini.
12012
12013 2010-06-03  Bruno Haible  <bruno@clisp.org>
12014
12015         Reduce dependencies.
12016         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12017
12018 2010-06-03  Bruno Haible  <bruno@clisp.org>
12019
12020         time: Undefine more broken macros.
12021         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12022         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12023         Reported by Eric Blake.
12024
12025 2010-06-03  Bruno Haible  <bruno@clisp.org>
12026
12027         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12028         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12029         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12030         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12031         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12032         Reported by Ludovic Courtès <ludo@gnu.org>.
12033
12034 2010-06-02  Eric Blake  <eblake@redhat.com>
12035
12036         time: work with mingw + pthreads-win32 library
12037         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12038         if timespec is defined only in pthread.h.
12039         * modules/time (Makefile.am): Substitute it.
12040         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12041         <pthread.h>, when needed.
12042         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12043         from the library.
12044
12045 2010-05-31  Bruno Haible  <bruno@clisp.org>
12046
12047         Avoid expanding two macros in the wrong order.
12048         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12049         gl_LIBUNISTRING if it is defined.
12050         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12051         autoconf >= 2.64.
12052         Reported by Ludovic Courtès <ludo@gnu.org>.
12053
12054 2010-05-27  Jim Meyering  <meyering@redhat.com>
12055
12056         maint.mk: also prohibit "#undef" of always-defined symbols
12057         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12058         Allow more than one space before the symbol name.
12059         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12060         the regexp uses alternation.
12061
12062 2010-05-26  Eric Blake  <eblake@redhat.com>
12063
12064         maint.mk: avoid echo -e
12065         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12066         Convert all uses of echo -* to printf.
12067         Reported by Matthias Bolte.
12068
12069 2010-05-25  Bruno Haible  <bruno@clisp.org>
12070
12071         Update to GNU gettext 0.18, part 2.
12072         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12073         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12074
12075 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12076
12077         Add missing include in test-pwrite.c.
12078         * tests/test-pwrite.c: Include string.h, for strcmp.
12079
12080 2010-05-24  Bruno Haible  <bruno@clisp.org>
12081
12082         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12083
12084 2010-05-24  Bruno Haible  <bruno@clisp.org>
12085
12086         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12087         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12088         iconveh_error argument.
12089         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12090         U_STRCONV_TO_LOCALE.
12091         * lib/unistr/u16-strcoll.c: Likewise.
12092         * lib/unistr/u32-strcoll.c: Likewise.
12093         * modules/unistr/u8-strcoll (Depends-on): Add
12094         uniconv/u8-strconv-to-enc, localcharset. Remove
12095         uniconv/u8-strconv-to-locale.
12096         (configure.ac): Bump version number.
12097         * modules/unistr/u16-strcoll (Depends-on): Add
12098         uniconv/u16-strconv-to-enc, localcharset. Remove
12099         uniconv/u16-strconv-to-locale.
12100         (configure.ac): Bump version number.
12101         * modules/unistr/u32-strcoll (Depends-on): Add
12102         uniconv/u32-strconv-to-enc, localcharset. Remove
12103         uniconv/u32-strconv-to-locale.
12104         (configure.ac): Bump version number.
12105
12106 2010-05-24  Bruno Haible  <bruno@clisp.org>
12107
12108         Avoid a test failure on NetBSD 5.0.
12109         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12110         an iconv() bug.
12111
12112 2010-05-24  Bruno Haible  <bruno@clisp.org>
12113
12114         Adjust #include directive style.
12115         * modules/regex (Includes): Recommend to write <regex.h>.
12116
12117 2010-05-24  Bruno Haible  <bruno@clisp.org>
12118
12119         regex: Don't require alloca.
12120         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12121         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12122         only inside if (0).
12123
12124 2010-05-23  Jim Meyering  <meyering@redhat.com>
12125
12126         test-renameat.c: include <sys/stat.h>
12127         * tests/test-renameat.c: Include <sys/stat.h>; required for
12128         definition of S_IS* macros.
12129
12130 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12131
12132         Update maintainer documentation for 'relocatable-prog' module.
12133         * doc/relocatable-maint.texi: Update.
12134         Comments by Bruno Haible.
12135
12136 2010-05-23  Bruno Haible  <bruno@clisp.org>
12137
12138         git-merge-changelog: Enable --split-merged-entry by default.
12139         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12140         (usage): Don't mention this option any more.
12141         Reported by Ralf Wildenhues.
12142
12143 2010-05-23  Jim Meyering  <meyering@redhat.com>
12144
12145         test-pwrite: do not leave behind a test file named "out"
12146         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12147         The trivial-looking use of init.sh is really necessary.
12148         It ensures that the temporary file, "out", is created in
12149         a temporary directory, and removed upon termination.
12150         * tests/test-pwrite.sh: Re-add file.
12151         * modules/pwrite-tests: Reference it.
12152
12153 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12154
12155         Fix output redirection buglet in init.sh.
12156         * tests/init.sh: Fix redirection of stderr.
12157
12158 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12159
12160         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12161
12162 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12163
12164         * modules/valgrind-tests: New file.
12165         * m4/valgrind-tests.m4: New file.
12166         * doc/valgrind-tests.texi: New file.
12167         * doc/gnulib.texi (Running self-tests under valgrind): New
12168         section.
12169
12170 2010-05-19  Bruno Haible  <bruno@clisp.org>
12171
12172         Clean up dead code in recent commit.
12173         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12174         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12175         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12176         Suggested by Paolo Bonzini.
12177
12178 2010-05-19  Bruno Haible  <bruno@clisp.org>
12179
12180         Avoid valgrind error reports from libunistring.
12181         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12182         * modules/libunistring (Files): Add it.
12183         * modules/libunistring-optional (Files): Likewise.
12184
12185 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12186             Bruno Haible  <bruno@clisp.org>
12187
12188         New module 'libunistring-optional'.
12189         * modules/libunistring-optional: New file.
12190         * m4/libunistring-base.m4: New file.
12191         * m4/libunistring-optional.m4: New file.
12192         * lib/unicase.in.h: Renamed from lib/unicase.h.
12193         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12194         * lib/unictype.in.h: Renamed from lib/unictype.h.
12195         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12196         * lib/uniname.in.h: Renamed from lib/uniname.h.
12197         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12198         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12199         * lib/unistr.in.h: Renamed from lib/unistr.h.
12200         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12201         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12202         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12203         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12204         gl_LIBUNISTRING. If the library was found, determine the installed
12205         version and set LIBUNISTRING_VERSION.
12206         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12207         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12208         handle a configuration option --with-included-libunistring.
12209         * modules/libunistring (Files): Add m4/absolute-header.m4.
12210         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12211         Add m4/libunistring-base.m4.
12212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12213         (Makefile.am): Build unicase.h from unicase.in.h.
12214         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12215         Add m4/libunistring-base.m4.
12216         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12217         (Makefile.am): Build uniconv.h from uniconv.in.h.
12218         * modules/unictype/base (Files): Use unictype.in.h instead of
12219         unictype.h. Add m4/libunistring-base.m4.
12220         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12221         (Makefile.am): Build unictype.h from unictype.in.h.
12222         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12223         Add m4/libunistring-base.m4.
12224         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12225         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12226         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12227         Add m4/libunistring-base.m4.
12228         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12229         (Makefile.am): Build uniname.h from uniname.in.h.
12230         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12231         Add m4/libunistring-base.m4.
12232         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12233         (Makefile.am): Build uninorm.h from uninorm.in.h.
12234         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12235         unistdio.h. Add m4/libunistring-base.m4.
12236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12237         (Makefile.am): Build unistdio.h from unistdio.in.h.
12238         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12239         Add m4/libunistring-base.m4.
12240         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12241         (Makefile.am): Build unistr.h from unistr.in.h.
12242         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12243         Add m4/libunistring-base.m4.
12244         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12245         (Makefile.am): Build unitypes.h from unitypes.in.h.
12246         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12247         Add m4/libunistring-base.m4.
12248         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12249         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12250         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12251         uniwidth.h. Add m4/libunistring-base.m4.
12252         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12253         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12254         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12255         instead of augmenting lib_SOURCES.
12256         * modules/unicase/empty-suffix-context: Likewise.
12257         * modules/unicase/locale-language: Likewise.
12258         * modules/unicase/tolower: Likewise.
12259         * modules/unicase/totitle: Likewise.
12260         * modules/unicase/toupper: Likewise.
12261         * modules/unicase/u8-casecmp: Likewise.
12262         * modules/unicase/u8-casecoll: Likewise.
12263         * modules/unicase/u8-casefold: Likewise.
12264         * modules/unicase/u8-casexfrm: Likewise.
12265         * modules/unicase/u8-ct-casefold: Likewise.
12266         * modules/unicase/u8-ct-tolower: Likewise.
12267         * modules/unicase/u8-ct-totitle: Likewise.
12268         * modules/unicase/u8-ct-toupper: Likewise.
12269         * modules/unicase/u8-is-cased: Likewise.
12270         * modules/unicase/u8-is-casefolded: Likewise.
12271         * modules/unicase/u8-is-lowercase: Likewise.
12272         * modules/unicase/u8-is-titlecase: Likewise.
12273         * modules/unicase/u8-is-uppercase: Likewise.
12274         * modules/unicase/u8-prefix-context: Likewise.
12275         * modules/unicase/u8-suffix-context: Likewise.
12276         * modules/unicase/u8-tolower: Likewise.
12277         * modules/unicase/u8-totitle: Likewise.
12278         * modules/unicase/u8-toupper: Likewise.
12279         * modules/unicase/u16-casecmp: Likewise.
12280         * modules/unicase/u16-casecoll: Likewise.
12281         * modules/unicase/u16-casefold: Likewise.
12282         * modules/unicase/u16-casexfrm: Likewise.
12283         * modules/unicase/u16-ct-casefold: Likewise.
12284         * modules/unicase/u16-ct-tolower: Likewise.
12285         * modules/unicase/u16-ct-totitle: Likewise.
12286         * modules/unicase/u16-ct-toupper: Likewise.
12287         * modules/unicase/u16-is-cased: Likewise.
12288         * modules/unicase/u16-is-casefolded: Likewise.
12289         * modules/unicase/u16-is-lowercase: Likewise.
12290         * modules/unicase/u16-is-titlecase: Likewise.
12291         * modules/unicase/u16-is-uppercase: Likewise.
12292         * modules/unicase/u16-prefix-context: Likewise.
12293         * modules/unicase/u16-suffix-context: Likewise.
12294         * modules/unicase/u16-tolower: Likewise.
12295         * modules/unicase/u16-totitle: Likewise.
12296         * modules/unicase/u16-toupper: Likewise.
12297         * modules/unicase/u32-casecmp: Likewise.
12298         * modules/unicase/u32-casecoll: Likewise.
12299         * modules/unicase/u32-casefold: Likewise.
12300         * modules/unicase/u32-casexfrm: Likewise.
12301         * modules/unicase/u32-ct-casefold: Likewise.
12302         * modules/unicase/u32-ct-tolower: Likewise.
12303         * modules/unicase/u32-ct-totitle: Likewise.
12304         * modules/unicase/u32-ct-toupper: Likewise.
12305         * modules/unicase/u32-is-cased: Likewise.
12306         * modules/unicase/u32-is-casefolded: Likewise.
12307         * modules/unicase/u32-is-lowercase: Likewise.
12308         * modules/unicase/u32-is-titlecase: Likewise.
12309         * modules/unicase/u32-is-uppercase: Likewise.
12310         * modules/unicase/u32-prefix-context: Likewise.
12311         * modules/unicase/u32-suffix-context: Likewise.
12312         * modules/unicase/u32-tolower: Likewise.
12313         * modules/unicase/u32-totitle: Likewise.
12314         * modules/unicase/u32-toupper: Likewise.
12315         * modules/unicase/ulc-casecmp: Likewise.
12316         * modules/unicase/ulc-casecoll: Likewise.
12317         * modules/unicase/ulc-casexfrm: Likewise.
12318         * modules/uniconv/u8-conv-from-enc: Likewise.
12319         * modules/uniconv/u8-conv-to-enc: Likewise.
12320         * modules/uniconv/u8-strconv-from-enc: Likewise.
12321         * modules/uniconv/u8-strconv-from-locale: Likewise.
12322         * modules/uniconv/u8-strconv-to-enc: Likewise.
12323         * modules/uniconv/u8-strconv-to-locale: Likewise.
12324         * modules/uniconv/u16-conv-from-enc: Likewise.
12325         * modules/uniconv/u16-conv-to-enc: Likewise.
12326         * modules/uniconv/u16-strconv-from-enc: Likewise.
12327         * modules/uniconv/u16-strconv-from-locale: Likewise.
12328         * modules/uniconv/u16-strconv-to-enc: Likewise.
12329         * modules/uniconv/u16-strconv-to-locale: Likewise.
12330         * modules/uniconv/u32-conv-from-enc: Likewise.
12331         * modules/uniconv/u32-conv-to-enc: Likewise.
12332         * modules/uniconv/u32-strconv-from-enc: Likewise.
12333         * modules/uniconv/u32-strconv-from-locale: Likewise.
12334         * modules/uniconv/u32-strconv-to-enc: Likewise.
12335         * modules/uniconv/u32-strconv-to-locale: Likewise.
12336         * modules/unictype/bidicategory-byname: Likewise.
12337         * modules/unictype/bidicategory-name: Likewise.
12338         * modules/unictype/bidicategory-of: Likewise.
12339         * modules/unictype/bidicategory-test: Likewise.
12340         * modules/unictype/block-list: Likewise.
12341         * modules/unictype/block-test: Likewise.
12342         * modules/unictype/category-C: Likewise.
12343         * modules/unictype/category-Cc: Likewise.
12344         * modules/unictype/category-Cf: Likewise.
12345         * modules/unictype/category-Cn: Likewise.
12346         * modules/unictype/category-Co: Likewise.
12347         * modules/unictype/category-Cs: Likewise.
12348         * modules/unictype/category-L: Likewise.
12349         * modules/unictype/category-Ll: Likewise.
12350         * modules/unictype/category-Lm: Likewise.
12351         * modules/unictype/category-Lo: Likewise.
12352         * modules/unictype/category-Lt: Likewise.
12353         * modules/unictype/category-Lu: Likewise.
12354         * modules/unictype/category-M: Likewise.
12355         * modules/unictype/category-Mc: Likewise.
12356         * modules/unictype/category-Me: Likewise.
12357         * modules/unictype/category-Mn: Likewise.
12358         * modules/unictype/category-N: Likewise.
12359         * modules/unictype/category-Nd: Likewise.
12360         * modules/unictype/category-Nl: Likewise.
12361         * modules/unictype/category-No: Likewise.
12362         * modules/unictype/category-P: Likewise.
12363         * modules/unictype/category-Pc: Likewise.
12364         * modules/unictype/category-Pd: Likewise.
12365         * modules/unictype/category-Pe: Likewise.
12366         * modules/unictype/category-Pf: Likewise.
12367         * modules/unictype/category-Pi: Likewise.
12368         * modules/unictype/category-Po: Likewise.
12369         * modules/unictype/category-Ps: Likewise.
12370         * modules/unictype/category-S: Likewise.
12371         * modules/unictype/category-Sc: Likewise.
12372         * modules/unictype/category-Sk: Likewise.
12373         * modules/unictype/category-Sm: Likewise.
12374         * modules/unictype/category-So: Likewise.
12375         * modules/unictype/category-Z: Likewise.
12376         * modules/unictype/category-Zl: Likewise.
12377         * modules/unictype/category-Zp: Likewise.
12378         * modules/unictype/category-Zs: Likewise.
12379         * modules/unictype/category-and: Likewise.
12380         * modules/unictype/category-and-not: Likewise.
12381         * modules/unictype/category-byname: Likewise.
12382         * modules/unictype/category-name: Likewise.
12383         * modules/unictype/category-none: Likewise.
12384         * modules/unictype/category-of: Likewise.
12385         * modules/unictype/category-or: Likewise.
12386         * modules/unictype/category-test: Likewise.
12387         * modules/unictype/combining-class: Likewise.
12388         * modules/unictype/ctype-alnum: Likewise.
12389         * modules/unictype/ctype-alpha: Likewise.
12390         * modules/unictype/ctype-blank: Likewise.
12391         * modules/unictype/ctype-cntrl: Likewise.
12392         * modules/unictype/ctype-digit: Likewise.
12393         * modules/unictype/ctype-graph: Likewise.
12394         * modules/unictype/ctype-lower: Likewise.
12395         * modules/unictype/ctype-print: Likewise.
12396         * modules/unictype/ctype-punct: Likewise.
12397         * modules/unictype/ctype-space: Likewise.
12398         * modules/unictype/ctype-upper: Likewise.
12399         * modules/unictype/ctype-xdigit: Likewise.
12400         * modules/unictype/decimal-digit: Likewise.
12401         * modules/unictype/digit: Likewise.
12402         * modules/unictype/mirror: Likewise.
12403         * modules/unictype/numeric: Likewise.
12404         * modules/unictype/property-alphabetic: Likewise.
12405         * modules/unictype/property-ascii-hex-digit: Likewise.
12406         * modules/unictype/property-bidi-arabic-digit: Likewise.
12407         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12408         * modules/unictype/property-bidi-block-separator: Likewise.
12409         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12410         * modules/unictype/property-bidi-common-separator: Likewise.
12411         * modules/unictype/property-bidi-control: Likewise.
12412         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12413         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12414         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12415         * modules/unictype/property-bidi-european-digit: Likewise.
12416         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12417         * modules/unictype/property-bidi-left-to-right: Likewise.
12418         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12419         * modules/unictype/property-bidi-other-neutral: Likewise.
12420         * modules/unictype/property-bidi-pdf: Likewise.
12421         * modules/unictype/property-bidi-segment-separator: Likewise.
12422         * modules/unictype/property-bidi-whitespace: Likewise.
12423         * modules/unictype/property-byname: Likewise.
12424         * modules/unictype/property-combining: Likewise.
12425         * modules/unictype/property-composite: Likewise.
12426         * modules/unictype/property-currency-symbol: Likewise.
12427         * modules/unictype/property-dash: Likewise.
12428         * modules/unictype/property-decimal-digit: Likewise.
12429         * modules/unictype/property-default-ignorable-code-point: Likewise.
12430         * modules/unictype/property-deprecated: Likewise.
12431         * modules/unictype/property-diacritic: Likewise.
12432         * modules/unictype/property-extender: Likewise.
12433         * modules/unictype/property-format-control: Likewise.
12434         * modules/unictype/property-grapheme-base: Likewise.
12435         * modules/unictype/property-grapheme-extend: Likewise.
12436         * modules/unictype/property-grapheme-link: Likewise.
12437         * modules/unictype/property-hex-digit: Likewise.
12438         * modules/unictype/property-hyphen: Likewise.
12439         * modules/unictype/property-id-continue: Likewise.
12440         * modules/unictype/property-id-start: Likewise.
12441         * modules/unictype/property-ideographic: Likewise.
12442         * modules/unictype/property-ids-binary-operator: Likewise.
12443         * modules/unictype/property-ids-trinary-operator: Likewise.
12444         * modules/unictype/property-ignorable-control: Likewise.
12445         * modules/unictype/property-iso-control: Likewise.
12446         * modules/unictype/property-join-control: Likewise.
12447         * modules/unictype/property-left-of-pair: Likewise.
12448         * modules/unictype/property-line-separator: Likewise.
12449         * modules/unictype/property-logical-order-exception: Likewise.
12450         * modules/unictype/property-lowercase: Likewise.
12451         * modules/unictype/property-math: Likewise.
12452         * modules/unictype/property-non-break: Likewise.
12453         * modules/unictype/property-not-a-character: Likewise.
12454         * modules/unictype/property-numeric: Likewise.
12455         * modules/unictype/property-other-alphabetic: Likewise.
12456         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12457         * modules/unictype/property-other-grapheme-extend: Likewise.
12458         * modules/unictype/property-other-id-continue: Likewise.
12459         * modules/unictype/property-other-id-start: Likewise.
12460         * modules/unictype/property-other-lowercase: Likewise.
12461         * modules/unictype/property-other-math: Likewise.
12462         * modules/unictype/property-other-uppercase: Likewise.
12463         * modules/unictype/property-paired-punctuation: Likewise.
12464         * modules/unictype/property-paragraph-separator: Likewise.
12465         * modules/unictype/property-pattern-syntax: Likewise.
12466         * modules/unictype/property-pattern-white-space: Likewise.
12467         * modules/unictype/property-private-use: Likewise.
12468         * modules/unictype/property-punctuation: Likewise.
12469         * modules/unictype/property-quotation-mark: Likewise.
12470         * modules/unictype/property-radical: Likewise.
12471         * modules/unictype/property-sentence-terminal: Likewise.
12472         * modules/unictype/property-soft-dotted: Likewise.
12473         * modules/unictype/property-space: Likewise.
12474         * modules/unictype/property-terminal-punctuation: Likewise.
12475         * modules/unictype/property-test: Likewise.
12476         * modules/unictype/property-titlecase: Likewise.
12477         * modules/unictype/property-unassigned-code-value: Likewise.
12478         * modules/unictype/property-unified-ideograph: Likewise.
12479         * modules/unictype/property-uppercase: Likewise.
12480         * modules/unictype/property-variation-selector: Likewise.
12481         * modules/unictype/property-white-space: Likewise.
12482         * modules/unictype/property-xid-continue: Likewise.
12483         * modules/unictype/property-xid-start: Likewise.
12484         * modules/unictype/property-zero-width: Likewise.
12485         * modules/unictype/scripts: Likewise.
12486         * modules/unictype/syntax-c-ident: Likewise.
12487         * modules/unictype/syntax-c-whitespace: Likewise.
12488         * modules/unictype/syntax-java-ident: Likewise.
12489         * modules/unictype/syntax-java-whitespace: Likewise.
12490         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12491         * modules/unilbrk/u8-width-linebreaks: Likewise.
12492         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12493         * modules/unilbrk/u16-width-linebreaks: Likewise.
12494         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12495         * modules/unilbrk/u32-width-linebreaks: Likewise.
12496         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12497         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12498         * modules/uniname/uniname: Likewise.
12499         * modules/uninorm/canonical-decomposition: Likewise.
12500         * modules/uninorm/composition: Likewise.
12501         * modules/uninorm/decomposing-form: Likewise.
12502         * modules/uninorm/decomposition: Likewise.
12503         * modules/uninorm/filter: Likewise.
12504         * modules/uninorm/nfc: Likewise.
12505         * modules/uninorm/nfd: Likewise.
12506         * modules/uninorm/nfkc: Likewise.
12507         * modules/uninorm/nfkd: Likewise.
12508         * modules/uninorm/u8-normalize: Likewise.
12509         * modules/uninorm/u8-normcmp: Likewise.
12510         * modules/uninorm/u8-normcoll: Likewise.
12511         * modules/uninorm/u8-normxfrm: Likewise.
12512         * modules/uninorm/u16-normalize: Likewise.
12513         * modules/uninorm/u16-normcmp: Likewise.
12514         * modules/uninorm/u16-normcoll: Likewise.
12515         * modules/uninorm/u16-normxfrm: Likewise.
12516         * modules/uninorm/u32-normalize: Likewise.
12517         * modules/uninorm/u32-normcmp: Likewise.
12518         * modules/uninorm/u32-normcoll: Likewise.
12519         * modules/uninorm/u32-normxfrm: Likewise.
12520         * modules/unistdio/u8-asnprintf: Likewise.
12521         * modules/unistdio/u8-asprintf: Likewise.
12522         * modules/unistdio/u8-snprintf: Likewise.
12523         * modules/unistdio/u8-sprintf: Likewise.
12524         * modules/unistdio/u8-u8-asnprintf: Likewise.
12525         * modules/unistdio/u8-u8-asprintf: Likewise.
12526         * modules/unistdio/u8-u8-snprintf: Likewise.
12527         * modules/unistdio/u8-u8-sprintf: Likewise.
12528         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12529         * modules/unistdio/u8-u8-vasprintf: Likewise.
12530         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12531         * modules/unistdio/u8-u8-vsprintf: Likewise.
12532         * modules/unistdio/u8-vasnprintf: Likewise.
12533         * modules/unistdio/u8-vasprintf: Likewise.
12534         * modules/unistdio/u8-vsnprintf: Likewise.
12535         * modules/unistdio/u8-vsprintf: Likewise.
12536         * modules/unistdio/u16-asnprintf: Likewise.
12537         * modules/unistdio/u16-asprintf: Likewise.
12538         * modules/unistdio/u16-snprintf: Likewise.
12539         * modules/unistdio/u16-sprintf: Likewise.
12540         * modules/unistdio/u16-u16-asnprintf: Likewise.
12541         * modules/unistdio/u16-u16-asprintf: Likewise.
12542         * modules/unistdio/u16-u16-snprintf: Likewise.
12543         * modules/unistdio/u16-u16-sprintf: Likewise.
12544         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12545         * modules/unistdio/u16-u16-vasprintf: Likewise.
12546         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12547         * modules/unistdio/u16-u16-vsprintf: Likewise.
12548         * modules/unistdio/u16-vasnprintf: Likewise.
12549         * modules/unistdio/u16-vasprintf: Likewise.
12550         * modules/unistdio/u16-vsnprintf: Likewise.
12551         * modules/unistdio/u16-vsprintf: Likewise.
12552         * modules/unistdio/u32-asnprintf: Likewise.
12553         * modules/unistdio/u32-asprintf: Likewise.
12554         * modules/unistdio/u32-snprintf: Likewise.
12555         * modules/unistdio/u32-sprintf: Likewise.
12556         * modules/unistdio/u32-u32-asnprintf: Likewise.
12557         * modules/unistdio/u32-u32-asprintf: Likewise.
12558         * modules/unistdio/u32-u32-snprintf: Likewise.
12559         * modules/unistdio/u32-u32-sprintf: Likewise.
12560         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12561         * modules/unistdio/u32-u32-vasprintf: Likewise.
12562         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12563         * modules/unistdio/u32-u32-vsprintf: Likewise.
12564         * modules/unistdio/u32-vasnprintf: Likewise.
12565         * modules/unistdio/u32-vasprintf: Likewise.
12566         * modules/unistdio/u32-vsnprintf: Likewise.
12567         * modules/unistdio/u32-vsprintf: Likewise.
12568         * modules/unistdio/ulc-asnprintf: Likewise.
12569         * modules/unistdio/ulc-asprintf: Likewise.
12570         * modules/unistdio/ulc-fprintf: Likewise.
12571         * modules/unistdio/ulc-snprintf: Likewise.
12572         * modules/unistdio/ulc-sprintf: Likewise.
12573         * modules/unistdio/ulc-vasnprintf: Likewise.
12574         * modules/unistdio/ulc-vasprintf: Likewise.
12575         * modules/unistdio/ulc-vfprintf: Likewise.
12576         * modules/unistdio/ulc-vsnprintf: Likewise.
12577         * modules/unistdio/ulc-vsprintf: Likewise.
12578         * modules/unistr/u8-check: Likewise.
12579         * modules/unistr/u8-chr: Likewise.
12580         * modules/unistr/u8-cmp: Likewise.
12581         * modules/unistr/u8-cmp2: Likewise.
12582         * modules/unistr/u8-cpy: Likewise.
12583         * modules/unistr/u8-cpy-alloc: Likewise.
12584         * modules/unistr/u8-endswith: Likewise.
12585         * modules/unistr/u8-mblen: Likewise.
12586         * modules/unistr/u8-mbsnlen: Likewise.
12587         * modules/unistr/u8-mbtouc: Likewise.
12588         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12589         * modules/unistr/u8-mbtoucr: Likewise.
12590         * modules/unistr/u8-move: Likewise.
12591         * modules/unistr/u8-next: Likewise.
12592         * modules/unistr/u8-prev: Likewise.
12593         * modules/unistr/u8-set: Likewise.
12594         * modules/unistr/u8-startswith: Likewise.
12595         * modules/unistr/u8-stpcpy: Likewise.
12596         * modules/unistr/u8-stpncpy: Likewise.
12597         * modules/unistr/u8-strcat: Likewise.
12598         * modules/unistr/u8-strchr: Likewise.
12599         * modules/unistr/u8-strcmp: Likewise.
12600         * modules/unistr/u8-strcoll: Likewise.
12601         * modules/unistr/u8-strcpy: Likewise.
12602         * modules/unistr/u8-strcspn: Likewise.
12603         * modules/unistr/u8-strdup: Likewise.
12604         * modules/unistr/u8-strlen: Likewise.
12605         * modules/unistr/u8-strmblen: Likewise.
12606         * modules/unistr/u8-strmbtouc: Likewise.
12607         * modules/unistr/u8-strncat: Likewise.
12608         * modules/unistr/u8-strncmp: Likewise.
12609         * modules/unistr/u8-strncpy: Likewise.
12610         * modules/unistr/u8-strnlen: Likewise.
12611         * modules/unistr/u8-strpbrk: Likewise.
12612         * modules/unistr/u8-strrchr: Likewise.
12613         * modules/unistr/u8-strspn: Likewise.
12614         * modules/unistr/u8-strstr: Likewise.
12615         * modules/unistr/u8-strtok: Likewise.
12616         * modules/unistr/u8-to-u16: Likewise.
12617         * modules/unistr/u8-to-u32: Likewise.
12618         * modules/unistr/u8-uctomb: Likewise.
12619         * modules/unistr/u16-check: Likewise.
12620         * modules/unistr/u16-chr: Likewise.
12621         * modules/unistr/u16-cmp: Likewise.
12622         * modules/unistr/u16-cmp2: Likewise.
12623         * modules/unistr/u16-cpy: Likewise.
12624         * modules/unistr/u16-cpy-alloc: Likewise.
12625         * modules/unistr/u16-endswith: Likewise.
12626         * modules/unistr/u16-mblen: Likewise.
12627         * modules/unistr/u16-mbsnlen: Likewise.
12628         * modules/unistr/u16-mbtouc: Likewise.
12629         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12630         * modules/unistr/u16-mbtoucr: Likewise.
12631         * modules/unistr/u16-move: Likewise.
12632         * modules/unistr/u16-next: Likewise.
12633         * modules/unistr/u16-prev: Likewise.
12634         * modules/unistr/u16-set: Likewise.
12635         * modules/unistr/u16-startswith: Likewise.
12636         * modules/unistr/u16-stpcpy: Likewise.
12637         * modules/unistr/u16-stpncpy: Likewise.
12638         * modules/unistr/u16-strcat: Likewise.
12639         * modules/unistr/u16-strchr: Likewise.
12640         * modules/unistr/u16-strcmp: Likewise.
12641         * modules/unistr/u16-strcoll: Likewise.
12642         * modules/unistr/u16-strcpy: Likewise.
12643         * modules/unistr/u16-strcspn: Likewise.
12644         * modules/unistr/u16-strdup: Likewise.
12645         * modules/unistr/u16-strlen: Likewise.
12646         * modules/unistr/u16-strmblen: Likewise.
12647         * modules/unistr/u16-strmbtouc: Likewise.
12648         * modules/unistr/u16-strncat: Likewise.
12649         * modules/unistr/u16-strncmp: Likewise.
12650         * modules/unistr/u16-strncpy: Likewise.
12651         * modules/unistr/u16-strnlen: Likewise.
12652         * modules/unistr/u16-strpbrk: Likewise.
12653         * modules/unistr/u16-strrchr: Likewise.
12654         * modules/unistr/u16-strspn: Likewise.
12655         * modules/unistr/u16-strstr: Likewise.
12656         * modules/unistr/u16-strtok: Likewise.
12657         * modules/unistr/u16-to-u32: Likewise.
12658         * modules/unistr/u16-to-u8: Likewise.
12659         * modules/unistr/u16-uctomb: Likewise.
12660         * modules/unistr/u32-check: Likewise.
12661         * modules/unistr/u32-chr: Likewise.
12662         * modules/unistr/u32-cmp: Likewise.
12663         * modules/unistr/u32-cmp2: Likewise.
12664         * modules/unistr/u32-cpy: Likewise.
12665         * modules/unistr/u32-cpy-alloc: Likewise.
12666         * modules/unistr/u32-endswith: Likewise.
12667         * modules/unistr/u32-mblen: Likewise.
12668         * modules/unistr/u32-mbsnlen: Likewise.
12669         * modules/unistr/u32-mbtouc: Likewise.
12670         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12671         * modules/unistr/u32-mbtoucr: Likewise.
12672         * modules/unistr/u32-move: Likewise.
12673         * modules/unistr/u32-next: Likewise.
12674         * modules/unistr/u32-prev: Likewise.
12675         * modules/unistr/u32-set: Likewise.
12676         * modules/unistr/u32-startswith: Likewise.
12677         * modules/unistr/u32-stpcpy: Likewise.
12678         * modules/unistr/u32-stpncpy: Likewise.
12679         * modules/unistr/u32-strcat: Likewise.
12680         * modules/unistr/u32-strchr: Likewise.
12681         * modules/unistr/u32-strcmp: Likewise.
12682         * modules/unistr/u32-strcoll: Likewise.
12683         * modules/unistr/u32-strcpy: Likewise.
12684         * modules/unistr/u32-strcspn: Likewise.
12685         * modules/unistr/u32-strdup: Likewise.
12686         * modules/unistr/u32-strlen: Likewise.
12687         * modules/unistr/u32-strmblen: Likewise.
12688         * modules/unistr/u32-strmbtouc: Likewise.
12689         * modules/unistr/u32-strncat: Likewise.
12690         * modules/unistr/u32-strncmp: Likewise.
12691         * modules/unistr/u32-strncpy: Likewise.
12692         * modules/unistr/u32-strnlen: Likewise.
12693         * modules/unistr/u32-strpbrk: Likewise.
12694         * modules/unistr/u32-strrchr: Likewise.
12695         * modules/unistr/u32-strspn: Likewise.
12696         * modules/unistr/u32-strstr: Likewise.
12697         * modules/unistr/u32-strtok: Likewise.
12698         * modules/unistr/u32-to-u16: Likewise.
12699         * modules/unistr/u32-to-u8: Likewise.
12700         * modules/unistr/u32-uctomb: Likewise.
12701         * modules/uniwbrk/u8-wordbreaks: Likewise.
12702         * modules/uniwbrk/u16-wordbreaks: Likewise.
12703         * modules/uniwbrk/u32-wordbreaks: Likewise.
12704         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12705         * modules/uniwbrk/wordbreak-property: Likewise.
12706         * modules/uniwidth/u8-strwidth: Likewise.
12707         * modules/uniwidth/u8-width: Likewise.
12708         * modules/uniwidth/u16-strwidth: Likewise.
12709         * modules/uniwidth/u16-width: Likewise.
12710         * modules/uniwidth/u32-strwidth: Likewise.
12711         * modules/uniwidth/u32-width: Likewise.
12712         * modules/uniwidth/width: Likewise.
12713         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12714         with $(LIBUNISTRING).
12715         * modules/unicase/ignorable-tests: Likewise.
12716         * modules/unicase/locale-language-tests: Likewise.
12717         * modules/unicase/tolower-tests: Likewise.
12718         * modules/unicase/totitle-tests: Likewise.
12719         * modules/unicase/toupper-tests: Likewise.
12720         * modules/unicase/u8-casecmp-tests: Likewise.
12721         * modules/unicase/u8-casecoll-tests: Likewise.
12722         * modules/unicase/u8-casefold-tests: Likewise.
12723         * modules/unicase/u8-is-cased-tests: Likewise.
12724         * modules/unicase/u8-is-casefolded-tests: Likewise.
12725         * modules/unicase/u8-is-lowercase-tests: Likewise.
12726         * modules/unicase/u8-is-titlecase-tests: Likewise.
12727         * modules/unicase/u8-is-uppercase-tests: Likewise.
12728         * modules/unicase/u8-tolower-tests: Likewise.
12729         * modules/unicase/u8-totitle-tests: Likewise.
12730         * modules/unicase/u8-toupper-tests: Likewise.
12731         * modules/unicase/u16-casecmp-tests: Likewise.
12732         * modules/unicase/u16-casecoll-tests: Likewise.
12733         * modules/unicase/u16-casefold-tests: Likewise.
12734         * modules/unicase/u16-is-cased-tests: Likewise.
12735         * modules/unicase/u16-is-casefolded-tests: Likewise.
12736         * modules/unicase/u16-is-lowercase-tests: Likewise.
12737         * modules/unicase/u16-is-titlecase-tests: Likewise.
12738         * modules/unicase/u16-is-uppercase-tests: Likewise.
12739         * modules/unicase/u16-tolower-tests: Likewise.
12740         * modules/unicase/u16-totitle-tests: Likewise.
12741         * modules/unicase/u16-toupper-tests: Likewise.
12742         * modules/unicase/u32-casecmp-tests: Likewise.
12743         * modules/unicase/u32-casecoll-tests: Likewise.
12744         * modules/unicase/u32-casefold-tests: Likewise.
12745         * modules/unicase/u32-is-cased-tests: Likewise.
12746         * modules/unicase/u32-is-casefolded-tests: Likewise.
12747         * modules/unicase/u32-is-lowercase-tests: Likewise.
12748         * modules/unicase/u32-is-titlecase-tests: Likewise.
12749         * modules/unicase/u32-is-uppercase-tests: Likewise.
12750         * modules/unicase/u32-tolower-tests: Likewise.
12751         * modules/unicase/u32-totitle-tests: Likewise.
12752         * modules/unicase/u32-toupper-tests: Likewise.
12753         * modules/unicase/ulc-casecmp-tests: Likewise.
12754         * modules/unicase/ulc-casecoll-tests: Likewise.
12755         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12756         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12757         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12758         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12759         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12760         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12761         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12762         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12763         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12764         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12765         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12766         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12767         * modules/unictype/bidicategory-byname-tests: Likewise.
12768         * modules/unictype/bidicategory-name-tests: Likewise.
12769         * modules/unictype/bidicategory-of-tests: Likewise.
12770         * modules/unictype/bidicategory-test-tests: Likewise.
12771         * modules/unictype/block-list-tests: Likewise.
12772         * modules/unictype/block-of-tests: Likewise.
12773         * modules/unictype/block-test-tests: Likewise.
12774         * modules/unictype/category-C-tests: Likewise.
12775         * modules/unictype/category-Cc-tests: Likewise.
12776         * modules/unictype/category-Cf-tests: Likewise.
12777         * modules/unictype/category-Cn-tests: Likewise.
12778         * modules/unictype/category-Co-tests: Likewise.
12779         * modules/unictype/category-Cs-tests: Likewise.
12780         * modules/unictype/category-L-tests: Likewise.
12781         * modules/unictype/category-Ll-tests: Likewise.
12782         * modules/unictype/category-Lm-tests: Likewise.
12783         * modules/unictype/category-Lo-tests: Likewise.
12784         * modules/unictype/category-Lt-tests: Likewise.
12785         * modules/unictype/category-Lu-tests: Likewise.
12786         * modules/unictype/category-M-tests: Likewise.
12787         * modules/unictype/category-Mc-tests: Likewise.
12788         * modules/unictype/category-Me-tests: Likewise.
12789         * modules/unictype/category-Mn-tests: Likewise.
12790         * modules/unictype/category-N-tests: Likewise.
12791         * modules/unictype/category-Nd-tests: Likewise.
12792         * modules/unictype/category-Nl-tests: Likewise.
12793         * modules/unictype/category-No-tests: Likewise.
12794         * modules/unictype/category-P-tests: Likewise.
12795         * modules/unictype/category-Pc-tests: Likewise.
12796         * modules/unictype/category-Pd-tests: Likewise.
12797         * modules/unictype/category-Pe-tests: Likewise.
12798         * modules/unictype/category-Pf-tests: Likewise.
12799         * modules/unictype/category-Pi-tests: Likewise.
12800         * modules/unictype/category-Po-tests: Likewise.
12801         * modules/unictype/category-Ps-tests: Likewise.
12802         * modules/unictype/category-S-tests: Likewise.
12803         * modules/unictype/category-Sc-tests: Likewise.
12804         * modules/unictype/category-Sk-tests: Likewise.
12805         * modules/unictype/category-Sm-tests: Likewise.
12806         * modules/unictype/category-So-tests: Likewise.
12807         * modules/unictype/category-Z-tests: Likewise.
12808         * modules/unictype/category-Zl-tests: Likewise.
12809         * modules/unictype/category-Zp-tests: Likewise.
12810         * modules/unictype/category-Zs-tests: Likewise.
12811         * modules/unictype/category-and-not-tests: Likewise.
12812         * modules/unictype/category-and-tests: Likewise.
12813         * modules/unictype/category-byname-tests: Likewise.
12814         * modules/unictype/category-name-tests: Likewise.
12815         * modules/unictype/category-none-tests: Likewise.
12816         * modules/unictype/category-of-tests: Likewise.
12817         * modules/unictype/category-or-tests: Likewise.
12818         * modules/unictype/category-test-withtable-tests: Likewise.
12819         * modules/unictype/combining-class-tests: Likewise.
12820         * modules/unictype/ctype-alnum-tests: Likewise.
12821         * modules/unictype/ctype-alpha-tests: Likewise.
12822         * modules/unictype/ctype-blank-tests: Likewise.
12823         * modules/unictype/ctype-cntrl-tests: Likewise.
12824         * modules/unictype/ctype-digit-tests: Likewise.
12825         * modules/unictype/ctype-graph-tests: Likewise.
12826         * modules/unictype/ctype-lower-tests: Likewise.
12827         * modules/unictype/ctype-print-tests: Likewise.
12828         * modules/unictype/ctype-punct-tests: Likewise.
12829         * modules/unictype/ctype-space-tests: Likewise.
12830         * modules/unictype/ctype-upper-tests: Likewise.
12831         * modules/unictype/ctype-xdigit-tests: Likewise.
12832         * modules/unictype/decimal-digit-tests: Likewise.
12833         * modules/unictype/digit-tests: Likewise.
12834         * modules/unictype/mirror-tests: Likewise.
12835         * modules/unictype/numeric-tests: Likewise.
12836         * modules/unictype/property-alphabetic-tests: Likewise.
12837         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12838         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12839         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12840         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12841         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12842         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12843         * modules/unictype/property-bidi-control-tests: Likewise.
12844         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12845         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12846         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12847         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12848         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12849         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12850         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12851         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12852         * modules/unictype/property-bidi-pdf-tests: Likewise.
12853         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12854         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12855         * modules/unictype/property-byname-tests: Likewise.
12856         * modules/unictype/property-combining-tests: Likewise.
12857         * modules/unictype/property-composite-tests: Likewise.
12858         * modules/unictype/property-currency-symbol-tests: Likewise.
12859         * modules/unictype/property-dash-tests: Likewise.
12860         * modules/unictype/property-decimal-digit-tests: Likewise.
12861         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12862         * modules/unictype/property-deprecated-tests: Likewise.
12863         * modules/unictype/property-diacritic-tests: Likewise.
12864         * modules/unictype/property-extender-tests: Likewise.
12865         * modules/unictype/property-format-control-tests: Likewise.
12866         * modules/unictype/property-grapheme-base-tests: Likewise.
12867         * modules/unictype/property-grapheme-extend-tests: Likewise.
12868         * modules/unictype/property-grapheme-link-tests: Likewise.
12869         * modules/unictype/property-hex-digit-tests: Likewise.
12870         * modules/unictype/property-hyphen-tests: Likewise.
12871         * modules/unictype/property-id-continue-tests: Likewise.
12872         * modules/unictype/property-id-start-tests: Likewise.
12873         * modules/unictype/property-ideographic-tests: Likewise.
12874         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12875         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12876         * modules/unictype/property-ignorable-control-tests: Likewise.
12877         * modules/unictype/property-iso-control-tests: Likewise.
12878         * modules/unictype/property-join-control-tests: Likewise.
12879         * modules/unictype/property-left-of-pair-tests: Likewise.
12880         * modules/unictype/property-line-separator-tests: Likewise.
12881         * modules/unictype/property-logical-order-exception-tests: Likewise.
12882         * modules/unictype/property-lowercase-tests: Likewise.
12883         * modules/unictype/property-math-tests: Likewise.
12884         * modules/unictype/property-non-break-tests: Likewise.
12885         * modules/unictype/property-not-a-character-tests: Likewise.
12886         * modules/unictype/property-numeric-tests: Likewise.
12887         * modules/unictype/property-other-alphabetic-tests: Likewise.
12888         * modules/unictype/property-other-default-ignorable-code-point-tests:
12889         Likewise.
12890         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12891         * modules/unictype/property-other-id-continue-tests: Likewise.
12892         * modules/unictype/property-other-id-start-tests: Likewise.
12893         * modules/unictype/property-other-lowercase-tests: Likewise.
12894         * modules/unictype/property-other-math-tests: Likewise.
12895         * modules/unictype/property-other-uppercase-tests: Likewise.
12896         * modules/unictype/property-paired-punctuation-tests: Likewise.
12897         * modules/unictype/property-paragraph-separator-tests: Likewise.
12898         * modules/unictype/property-pattern-syntax-tests: Likewise.
12899         * modules/unictype/property-pattern-white-space-tests: Likewise.
12900         * modules/unictype/property-private-use-tests: Likewise.
12901         * modules/unictype/property-punctuation-tests: Likewise.
12902         * modules/unictype/property-quotation-mark-tests: Likewise.
12903         * modules/unictype/property-radical-tests: Likewise.
12904         * modules/unictype/property-sentence-terminal-tests: Likewise.
12905         * modules/unictype/property-soft-dotted-tests: Likewise.
12906         * modules/unictype/property-space-tests: Likewise.
12907         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12908         * modules/unictype/property-test-tests: Likewise.
12909         * modules/unictype/property-titlecase-tests: Likewise.
12910         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12911         * modules/unictype/property-unified-ideograph-tests: Likewise.
12912         * modules/unictype/property-uppercase-tests: Likewise.
12913         * modules/unictype/property-variation-selector-tests: Likewise.
12914         * modules/unictype/property-white-space-tests: Likewise.
12915         * modules/unictype/property-xid-continue-tests: Likewise.
12916         * modules/unictype/property-xid-start-tests: Likewise.
12917         * modules/unictype/property-zero-width-tests: Likewise.
12918         * modules/unictype/scripts-tests: Likewise.
12919         * modules/unictype/syntax-c-ident-tests: Likewise.
12920         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12921         * modules/unictype/syntax-java-ident-tests: Likewise.
12922         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12923         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12924         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12925         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12926         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12927         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12928         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12929         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12930         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12931         * modules/uniname/uniname-tests: Likewise.
12932         * modules/uninorm/canonical-decomposition-tests: Likewise.
12933         * modules/uninorm/compat-decomposition-tests: Likewise.
12934         * modules/uninorm/composition-tests: Likewise.
12935         * modules/uninorm/decomposing-form-tests: Likewise.
12936         * modules/uninorm/decomposition-tests: Likewise.
12937         * modules/uninorm/filter-tests: Likewise.
12938         * modules/uninorm/nfc-tests: Likewise.
12939         * modules/uninorm/nfd-tests: Likewise.
12940         * modules/uninorm/nfkc-tests: Likewise.
12941         * modules/uninorm/nfkd-tests: Likewise.
12942         * modules/uninorm/u8-normcmp-tests: Likewise.
12943         * modules/uninorm/u8-normcoll-tests: Likewise.
12944         * modules/uninorm/u16-normcmp-tests: Likewise.
12945         * modules/uninorm/u16-normcoll-tests: Likewise.
12946         * modules/uninorm/u32-normcmp-tests: Likewise.
12947         * modules/uninorm/u32-normcoll-tests: Likewise.
12948         * modules/unistdio/u8-asnprintf-tests: Likewise.
12949         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12950         * modules/unistdio/u8-vasprintf-tests: Likewise.
12951         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12952         * modules/unistdio/u8-vsprintf-tests: Likewise.
12953         * modules/unistdio/u16-asnprintf-tests: Likewise.
12954         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12955         * modules/unistdio/u16-vasprintf-tests: Likewise.
12956         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12957         * modules/unistdio/u16-vsprintf-tests: Likewise.
12958         * modules/unistdio/u32-asnprintf-tests: Likewise.
12959         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12960         * modules/unistdio/u32-vasprintf-tests: Likewise.
12961         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12962         * modules/unistdio/u32-vsprintf-tests: Likewise.
12963         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12964         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12965         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12966         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12967         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12968         * modules/unistr/u8-check-tests: Likewise.
12969         * modules/unistr/u8-chr-tests: Likewise.
12970         * modules/unistr/u8-cmp-tests: Likewise.
12971         * modules/unistr/u8-cmp2-tests: Likewise.
12972         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12973         * modules/unistr/u8-cpy-tests: Likewise.
12974         * modules/unistr/u8-mblen-tests: Likewise.
12975         * modules/unistr/u8-mbsnlen-tests: Likewise.
12976         * modules/unistr/u8-mbtouc-tests: Likewise.
12977         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12978         * modules/unistr/u8-mbtoucr-tests: Likewise.
12979         * modules/unistr/u8-move-tests: Likewise.
12980         * modules/unistr/u8-next-tests: Likewise.
12981         * modules/unistr/u8-prev-tests: Likewise.
12982         * modules/unistr/u8-set-tests: Likewise.
12983         * modules/unistr/u8-stpcpy-tests: Likewise.
12984         * modules/unistr/u8-stpncpy-tests: Likewise.
12985         * modules/unistr/u8-strcat-tests: Likewise.
12986         * modules/unistr/u8-strcmp-tests: Likewise.
12987         * modules/unistr/u8-strcoll-tests: Likewise.
12988         * modules/unistr/u8-strcpy-tests: Likewise.
12989         * modules/unistr/u8-strdup-tests: Likewise.
12990         * modules/unistr/u8-strlen-tests: Likewise.
12991         * modules/unistr/u8-strmblen-tests: Likewise.
12992         * modules/unistr/u8-strmbtouc-tests: Likewise.
12993         * modules/unistr/u8-strncat-tests: Likewise.
12994         * modules/unistr/u8-strncmp-tests: Likewise.
12995         * modules/unistr/u8-strncpy-tests: Likewise.
12996         * modules/unistr/u8-strnlen-tests: Likewise.
12997         * modules/unistr/u8-to-u16-tests: Likewise.
12998         * modules/unistr/u8-to-u32-tests: Likewise.
12999         * modules/unistr/u8-uctomb-tests: Likewise.
13000         * modules/unistr/u16-check-tests: Likewise.
13001         * modules/unistr/u16-chr-tests: Likewise.
13002         * modules/unistr/u16-cmp-tests: Likewise.
13003         * modules/unistr/u16-cmp2-tests: Likewise.
13004         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13005         * modules/unistr/u16-cpy-tests: Likewise.
13006         * modules/unistr/u16-mblen-tests: Likewise.
13007         * modules/unistr/u16-mbsnlen-tests: Likewise.
13008         * modules/unistr/u16-mbtouc-tests: Likewise.
13009         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13010         * modules/unistr/u16-mbtoucr-tests: Likewise.
13011         * modules/unistr/u16-move-tests: Likewise.
13012         * modules/unistr/u16-next-tests: Likewise.
13013         * modules/unistr/u16-prev-tests: Likewise.
13014         * modules/unistr/u16-set-tests: Likewise.
13015         * modules/unistr/u16-stpcpy-tests: Likewise.
13016         * modules/unistr/u16-stpncpy-tests: Likewise.
13017         * modules/unistr/u16-strcat-tests: Likewise.
13018         * modules/unistr/u16-strcmp-tests: Likewise.
13019         * modules/unistr/u16-strcoll-tests: Likewise.
13020         * modules/unistr/u16-strcpy-tests: Likewise.
13021         * modules/unistr/u16-strdup-tests: Likewise.
13022         * modules/unistr/u16-strlen-tests: Likewise.
13023         * modules/unistr/u16-strmblen-tests: Likewise.
13024         * modules/unistr/u16-strmbtouc-tests: Likewise.
13025         * modules/unistr/u16-strncat-tests: Likewise.
13026         * modules/unistr/u16-strncmp-tests: Likewise.
13027         * modules/unistr/u16-strncpy-tests: Likewise.
13028         * modules/unistr/u16-strnlen-tests: Likewise.
13029         * modules/unistr/u16-to-u32-tests: Likewise.
13030         * modules/unistr/u16-to-u8-tests: Likewise.
13031         * modules/unistr/u16-uctomb-tests: Likewise.
13032         * modules/unistr/u32-check-tests: Likewise.
13033         * modules/unistr/u32-chr-tests: Likewise.
13034         * modules/unistr/u32-cmp-tests: Likewise.
13035         * modules/unistr/u32-cmp2-tests: Likewise.
13036         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13037         * modules/unistr/u32-cpy-tests: Likewise.
13038         * modules/unistr/u32-mblen-tests: Likewise.
13039         * modules/unistr/u32-mbsnlen-tests: Likewise.
13040         * modules/unistr/u32-mbtouc-tests: Likewise.
13041         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13042         * modules/unistr/u32-mbtoucr-tests: Likewise.
13043         * modules/unistr/u32-move-tests: Likewise.
13044         * modules/unistr/u32-next-tests: Likewise.
13045         * modules/unistr/u32-prev-tests: Likewise.
13046         * modules/unistr/u32-set-tests: Likewise.
13047         * modules/unistr/u32-stpcpy-tests: Likewise.
13048         * modules/unistr/u32-stpncpy-tests: Likewise.
13049         * modules/unistr/u32-strcat-tests: Likewise.
13050         * modules/unistr/u32-strcmp-tests: Likewise.
13051         * modules/unistr/u32-strcoll-tests: Likewise.
13052         * modules/unistr/u32-strcpy-tests: Likewise.
13053         * modules/unistr/u32-strdup-tests: Likewise.
13054         * modules/unistr/u32-strlen-tests: Likewise.
13055         * modules/unistr/u32-strmblen-tests: Likewise.
13056         * modules/unistr/u32-strmbtouc-tests: Likewise.
13057         * modules/unistr/u32-strncat-tests: Likewise.
13058         * modules/unistr/u32-strncmp-tests: Likewise.
13059         * modules/unistr/u32-strncpy-tests: Likewise.
13060         * modules/unistr/u32-strnlen-tests: Likewise.
13061         * modules/unistr/u32-to-u16-tests: Likewise.
13062         * modules/unistr/u32-to-u8-tests: Likewise.
13063         * modules/unistr/u32-uctomb-tests: Likewise.
13064         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13065         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13066         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13067         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13068         * modules/uniwidth/u8-strwidth-tests: Likewise.
13069         * modules/uniwidth/u8-width-tests: Likewise.
13070         * modules/uniwidth/u16-strwidth-tests: Likewise.
13071         * modules/uniwidth/u16-width-tests: Likewise.
13072         * modules/uniwidth/u32-strwidth-tests: Likewise.
13073         * modules/uniwidth/u32-width-tests: Likewise.
13074         * modules/uniwidth/width-tests: Likewise.
13075
13076 2010-05-18  Richard Jones  <rjones@redhat.com>
13077
13078         doc: users.txt: list hivex
13079         * users.txt: Add hivex.
13080
13081 2010-05-18  Richard Jones  <rjones@redhat.com>
13082
13083         doc: users.txt: list febootstrap
13084         * users.txt: Add febootstrap.
13085
13086 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13087
13088         bootstrap: fix an error when gnulib is not used as a git submodule
13089         * build-aux/bootstrap (gnulib_path): If its length is zero then
13090         assign "gnulib" to it.
13091         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13092
13093 2010-05-16  Bruno Haible  <bruno@clisp.org>
13094
13095         Avoid autoconf warnings about AM_ICONV.
13096         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13097         2.64.
13098
13099 2010-05-16  Bruno Haible  <bruno@clisp.org>
13100
13101         absolute-header: Make the macro usable in more situations.
13102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13103         from gl_ABSOLUTE_HEADER.
13104         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13105
13106 2010-05-16  James Youngman  <jay@gnu.org>
13107
13108         doc: update users.txt
13109         * users.txt: Add CSSC.
13110
13111 2010-05-16  Jim Meyering  <meyering@redhat.com>
13112
13113         init.sh: fix an error in the previous change; add more comments
13114         * tests/init.sh: Compare exit code in loop against 9, not 2.
13115         Patch by Bruno Haible.
13116         Make the two tests more similar by adding an empty "then" clause.
13117         Add comments.
13118
13119         init.sh: avoid unnecessary shell re-exec
13120         * tests/init.sh: Improve the re-exec-required check to first test the
13121         current shell.  If it passes the test, do not search for a shell that
13122         does pass, and do not re-exec.  This test is particularly contorted to
13123         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13124         of $(...) evokes a syntax error and causes immediate shell exit with
13125         status 2.  Bruno Haible reported that the re-exec made it impossible
13126         to single-step through any init.sh-using script.
13127
13128 2010-05-16  Bruno Haible  <bruno@clisp.org>
13129
13130         Fix collision between gnulib's and libintl's printf replacements.
13131         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13132         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13133         (printf): When using GNU C, map the __printf__ function to rpl_printf
13134         via __asm__. When not using GNU C, define rpl_printf instead of
13135         __printf__.
13136         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13137         commit.
13138         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13139         commit.
13140         * m4/asm-underscore.m4: New file.
13141         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13142         * modules/stdio (Files): Add m4/asm-underscore.m4.
13143         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13144         Reported by Ben Pfaff.
13145
13146 2010-05-16  Bruno Haible  <bruno@clisp.org>
13147
13148         verify: Avoid skipping the test on openSUSE 11.0.
13149         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13150
13151 2010-05-13  Bruno Haible  <bruno@clisp.org>
13152
13153         Avoid useless warnings from G++.
13154         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13155         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13156         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13157
13158 2010-05-11  Jim Meyering  <meyering@redhat.com>
13159
13160         maint.mk: tweak preceding change
13161         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13162         regexps tighter by anchoring at EOL, and make the new group "shy"
13163         for slightly decreased overhead.
13164
13165 2010-05-11  Eric Blake  <eblake@redhat.com>
13166
13167         maint.mk: gnulib doesn't guarantee NSIG
13168         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13169
13170 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13171
13172         test-pwrite.c: Remove unused variable declaration.
13173         * tests/test-pwrite.c (main): Remove read_buf declaration.
13174
13175         Remove useless test-pwrite.sh file.
13176         * tests/test-pwrite.sh: Delete file.
13177         * modules/pwrite-tests: Remove references.
13178         Reported by Bruno Haible.
13179
13180 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13181
13182         init.sh: fix a typo
13183         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13184
13185 2010-05-10  Jim Meyering  <meyering@redhat.com>
13186
13187         maint.mk: avoid using a temporary file in the always-defined-macros check
13188         * top/maint.mk (.re-defmac): Remove rule.
13189         (gl_trap_): Remove definition.
13190         (sc_prohibit_always-defined_macros): Rewrite not to create and
13191         depend on a temporary file.  Instead, depend on GNU grep's ability
13192         to read a list of regular expressions from stdin when given "-f -".
13193
13194 2010-05-09  Bruno Haible  <bruno@clisp.org>
13195
13196         Update to GNU gettext 0.18, part 1.
13197         * m4/gettext.m4: Update to GNU gettext 0.18.
13198         * m4/intl.m4: Likewise.
13199         * m4/po.m4: Likewise.
13200         * modules/gettext (Files): Add m4/fcntl-o.m4.
13201         (configure.ac): Require gettext infrastructure from version 0.18.
13202
13203 2010-05-09  Jim Meyering  <meyering@redhat.com>
13204
13205         init.sh: enable MALLOC_PERTURB_
13206         * tests/init.sh: Enable glibc's malloc-perturbing option.
13207
13208         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13209         With my recent change in init.sh from the two-line form:
13210             -#   : ${srcdir=.}
13211             -#   . "$srcdir/init.sh"; path_prepend_ .
13212             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13213         I noticed that using the one-line form would cause this test
13214         to fail with a false-positive, or to stop working altogether,
13215         depending on whether help-version changed or all the tests did.
13216         * top/maint.mk (_hv_regex): Remove this definition.
13217         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13218         (_hv_regex_strong): Use a stronger regex to check for conformance.
13219         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13220         Give a separate diagnostic for lack of conforming use.
13221
13222         maint.mk: prohibit definition of symbols defined by gnulib
13223         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13224         definition of symbols defined by gnulib.
13225
13226 2010-05-09  Bruno Haible  <bruno@clisp.org>
13227
13228         acl: Avoid test failure on Cygwin-hosted mingw.
13229         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13230
13231 2010-05-09  Bruno Haible  <bruno@clisp.org>
13232
13233         error: Use system's fcntl function.
13234         * lib/error.c (fcntl): Undefine.
13235
13236 2010-05-09  Jim Meyering  <meyering@redhat.com>
13237
13238         verify: adjust formatting to be more consistent
13239         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13240         argument-list '('s, and after one comma.
13241
13242 2010-05-09  Bruno Haible  <bruno@clisp.org>
13243
13244         error: More reliable output on mingw.
13245         * lib/error.c: Include <windows.h>.
13246         (is_open): New function.
13247         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13248         defined.
13249
13250 2010-05-09  Bruno Haible  <bruno@clisp.org>
13251
13252         vasnprintf: Fix syntax errors in libintl build on mingw.
13253         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13254         pad_ourselves and prec_ourselves after use.
13255
13256 2010-05-08  Bruno Haible  <bruno@clisp.org>
13257
13258         * lib/config.charset: Update comments for Cygwin 1.7.
13259         * lib/localcharset.c: Likewise.
13260
13261 2010-05-07  Jim Meyering  <meyering@redhat.com>
13262
13263         init.sh: improve comments
13264         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13265         . "${srcdir=.}/init.sh"; path_prepend_ .
13266         Add a note about path_prepend_ and the alternative of using
13267         TESTS_ENVIRONMENT.
13268
13269 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13270
13271         exclude: Unescape hashed patterns in wildcard mode.
13272         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13273         to the hash list.
13274         * tests/test-exclude8.sh: New test case.
13275         * modules/exclude-tests: Add new test.
13276
13277 2010-05-05  Eric Blake  <eblake@redhat.com>
13278
13279         verify: automate tests
13280         * modules/verify-tests: New module.
13281         * tests/test-verify.sh: New file.
13282         * tests/test-verify.c: Guard each negative test with a unique id.
13283         Also avoid warning about unused left hand of comma expressions.
13284
13285 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13286
13287         Further improvements to verify.h, suggested by Eric Blake.
13288         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13289         the GL_* versions, to avoid collision with OpenGL.
13290         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13291         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13292         than testing merely whether it's defined.
13293
13294         Modify verify.h to pacify gcc -Wredundant_decls.
13295         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13296         These use the prefix "GL_" since they're likely to be useful elsewhere.
13297         We may need to break them out into a different .h file.
13298         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13299         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13300         of verify_function__.
13301
13302 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13303
13304         Tests for module pwrite.
13305         * modules/pwrite-tests: New file.
13306         * tests/test-pwrite.sh: New file.
13307         * tests/test-pwrite.c: New file.
13308
13309         New module pwrite.
13310         * lib/unistd.in.h (pwrite): New declaration.
13311         * lib/pwrite.c: New file, from glibc with modifications.
13312         * m4/pwrite.m4: New file.
13313         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13314         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13315         REPLACE_PWRITE.
13316         * modules/pwrite: New file.
13317         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13318         REPLACE_PWRITE.
13319         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13320         * doc/posix-functions/pwrite.texi: Mention the new module.
13321
13322 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13323
13324         pread: Update documentation.
13325         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13326
13327 2010-05-04  Eric Blake  <eblake@redhat.com>
13328
13329         docs: update cygwin progress
13330         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13331         this bug.
13332         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13333         Added in cygwin 1.7.2.
13334         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13335         Likewise.
13336         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13337         Likewise.
13338         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13339         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13340         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13341         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13342         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13343         Mention nproc module.
13344         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13345         bug in cygwin 1.7.5 addition.
13346         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13347         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13348         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13349         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13350         1.7.5.
13351         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13352         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13353         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13354         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13355         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13356         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13357         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13358         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13359         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13360         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13361         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13362         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13363         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13364         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13365         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13366         Likewise.
13367         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13368         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13369         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13370         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13371         Likewise.
13372         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13373         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13374         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13375         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13376         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13377         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13378         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13379         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13380         Likewise.
13381         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13382         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13383         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13384         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13385         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13386         Likewise.
13387         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13388         Likewise.
13389         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13390         Likewise.
13391         * doc/glibc-functions/xdrrec_endofrecord.texi
13392         (xdrrec_endofrecord): Likewise.
13393         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13394         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13395         Likewise.
13396         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13397         Likewise.
13398
13399 2010-05-04  Jim Meyering  <meyering@redhat.com>
13400
13401         gendocs.sh: make its "-s FILE" option more useful
13402         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13403         $PACKAGE to reflect the probably-different basename of "FILE".
13404
13405 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13406
13407         bootstrap: don't ignore download_po_files failure
13408         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13409         failure.
13410
13411 2010-05-03  Jim Meyering  <meyering@redhat.com>
13412
13413         maint.mk: allow to pass options to gendocs.sh
13414         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13415         (gendocs_options_): New overridable variable.
13416
13417         gnu-web-doc-update: don't ignore configure or build failure
13418         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13419
13420         announce-gen: backslash-escape '@'s in --help output
13421         * build-aux/announce-gen: Fix syntax errors.
13422
13423         maint.mk, announce-gen: allow project-specific announcement mail headers
13424         * top/maint.mk (translation_project_): Define default.
13425         (announcement_Cc_, announcement_mail_headers_): Likewise.
13426         (announcement): Invoke announce-gen with new --mail-headers option.
13427         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13428
13429         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13430         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13431         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13432         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13433         line in the "err2" output file when running "make check" in verbose
13434         mode (i.e., with set -x enabled).
13435
13436 2010-05-03  Bruno Haible  <bruno@clisp.org>
13437
13438         wctob: Fix for weird platforms.
13439         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13440         argument value.
13441
13442 2010-05-03  Jim Meyering  <meyering@redhat.com>
13443
13444         maint.mk: prohibit unwarranted use of <strings.h>
13445         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13446         strings.h in a file that does not also use strcasecmp, strncasecmp,
13447         ffs or ffsll.
13448
13449         maint.mk: remove obsolete comments
13450         * top/maint.mk: Remove stale, commented-out rules.
13451
13452 2010-05-02  Bruno Haible  <bruno@clisp.org>
13453
13454         wcwidth: Declare also when it's aliased.
13455         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13456         macro.
13457
13458 2010-05-02  Bruno Haible  <bruno@clisp.org>
13459
13460         Fix regression from 2010-04-25.
13461         * gnulib-tool (func_modules_transitive_closure): Check the status of
13462         all modules, not only of the tests that are of the form foo-tests where
13463         foo is a module.
13464
13465 2010-05-02  Bruno Haible  <bruno@clisp.org>
13466
13467         wctob: Work around nasty Cygwin 1.7.2 bug.
13468         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13469         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13470
13471 2010-05-01  Bruno Haible  <bruno@clisp.org>
13472
13473         fpurge: Sharper test.
13474         * tests/test-fpurge.c (main): Add one more ftell check.
13475         * modules/fpurge-tests (Depends-on): Add ftell.
13476         Suggested by Eric Blake.
13477
13478 2010-05-01  Bruno Haible  <bruno@clisp.org>
13479
13480         ftello: Another test.
13481         * tests/test-ftello3.c: New file.
13482         * modules/ftello-tests (Files): Add it.
13483         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13484         MOSTLYCLEANFILES.
13485
13486         ftell: Another test.
13487         * tests/test-ftell3.c: New file.
13488         * modules/ftell-tests (Files): Add it.
13489         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13490         MOSTLYCLEANFILES.
13491
13492 2010-05-01  Bruno Haible  <bruno@clisp.org>
13493
13494         ftell, ftello: Work around Solaris bug.
13495         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13496         * lib/ftello.c: Include stdio-impl.h.
13497         (ftello): On Solaris, when _IOWRT is set, compute the result without
13498         looking at _IOREAD.
13499         * modules/ftello (Files): Add lib/stdio-impl.h.
13500         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13501         * doc/posix-functions/ftello.texi: Likewise.
13502         Reported by Eric Blake.
13503
13504 2010-05-01  Bruno Haible  <bruno@clisp.org>
13505
13506         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13507         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13508         the _IOWRT flag is also set.
13509
13510 2010-05-01  Bruno Haible  <bruno@clisp.org>
13511
13512         Fix doc about a HP-UX stdio bug.
13513         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13514         * doc/posix-functions/ftello.texi: Likewise.
13515
13516 2010-05-01  Bruno Haible  <bruno@clisp.org>
13517
13518         lseek test: Fix failure on Solaris.
13519         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13520         output.
13521
13522 2010-04-30  Jim Meyering  <meyering@redhat.com>
13523
13524         bootstrap: don't ignore failure to generate po*/Makevars
13525         * build-aux/bootstrap (with_gettext): Don't ignore failure
13526         to create po/Makevars or runtime-po/Makevars.
13527
13528 2010-04-29  Eric Blake  <eblake@redhat.com>
13529
13530         headers: relax license to LGPLv2+
13531         * modules/fcntl-h (License): Relax license.
13532         * modules/getopt-posix (License): Likewise.
13533         * modules/locale (License): Likewise.
13534         * modules/math (License): Likewise.
13535         * modules/pty (License): Likewise.
13536         * modules/sched (License): Likewise.
13537         * modules/search (License): Likewise.
13538         * modules/spawn (License): Likewise.
13539         * modules/stdarg (License): Likewise.
13540         * modules/sysexits (License): Likewise.
13541
13542 2010-04-29  Jim Meyering  <meyering@redhat.com>
13543
13544         inttypes: relax license to LGPLv2+
13545         * modules/inttypes (License): Relax license.
13546
13547 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13548
13549         * top/maint.mk (indent): Run twice to produce idempotent results.
13550
13551 2010-04-28  Bruno Haible  <bruno@clisp.org>
13552
13553         getdate: Generate getdate.c in the source directory.
13554         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13555         MOSTLYCLEANFILES.
13556         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13557
13558 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13559
13560         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13561         is not declared as a const *; avoid warnings in that case.
13562
13563 2010-04-28  Eric Blake  <eblake@redhat.com>
13564
13565         canonicalize-lgpl: avoid compiler warning
13566         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13567         declaration' / 'extraneous semicolon' warning with some compilers.
13568         Reported by Andreas Gruenbacher.
13569
13570 2010-04-28  Jim Meyering  <meyering@redhat.com>
13571
13572         init.sh: ensure a more reliable exit status when exiting via trap
13573         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13574         Inspired by patches from Dmitry V. Levin.
13575         Also trap on signal 3 (SIGQUIT).
13576
13577 2010-04-27  Bruno Haible  <bruno@clisp.org>
13578
13579         Update doc about utimes().
13580         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13581         'utimens' module.
13582         Reported by Andreas Gruenbacher <agruen@suse.de>.
13583
13584 2010-04-27  Eric Blake  <eblake@redhat.com>
13585
13586         full-read, full-write: relax license
13587         * modules/full-read (License): Drop to LGPLv2+.
13588         * modules/full-write (License): Likewise.
13589         * modules/safe-read (License): Likewise.
13590         * modules/safe-write (License): Likewise.
13591
13592         pthread: mention library for linking
13593         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13594
13595 2010-04-27  Jim Meyering  <meyering@redhat.com>
13596
13597         maint.mk: fix a bug introduced in last change
13598         * top/maint.mk (gl_assured_headers_): Now that all names are on
13599         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13600         is not anchored to end of word, it should be adequate.
13601
13602         maint.mk: avoid side-effect in latest syntax-check
13603         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13604         to run commands via $(shell...), and hence to incur cost only when
13605         the new rule is actually run.
13606
13607         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13608         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13609         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13610         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13611         (gl_assured_headers_, az_, AZ_): Define.
13612         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13613
13614 2010-04-26  Jim Meyering  <jim@meyering.net>
13615             Bruno Haible  <bruno@clisp.org>
13616
13617         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13619         Prompted by an exchange with Gilles Espinasse.
13620
13621 2010-04-26  Jim Meyering  <meyering@redhat.com>
13622
13623         git-version-gen: aesthetic tweak
13624         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13625         so that the command remains on a single line.
13626
13627 2010-04-26  Eric Blake  <eblake@redhat.com>
13628
13629         git-version-gen: allow use on EBCDIC hosts
13630         * build-aux/git-version-gen (dirty): Use literal rather than tying
13631         ourselves to ascii.
13632         Reported by Steve Goetze.
13633
13634 2010-04-25  Bruno Haible  <bruno@clisp.org>
13635
13636         netdb: Add support for GNULIB_POSIXCHECK.
13637         * lib/netdb.in.h: Include warn-on-use.h.
13638         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13639         functions are used when GNULIB_POSIXCHECK is defined and the
13640         getaddrinfo module is not in use.
13641         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13642         freeaddrinfo, gai_strerror, getnameinfo are declared.
13643         * modules/netdb (Depends-on): Add warn-on-use.
13644         (Makefile.am): Include warn-on-use.h in netdb.h.
13645
13646 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13647
13648         build: avoid "make check" failure without .git/ directory
13649         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13650         there is no .git/ directory.
13651
13652 2010-04-25  Bruno Haible  <bruno@clisp.org>
13653
13654         ptsname: Fix misuse of ttyname_r.
13655         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13656         of errno.
13657
13658 2010-04-25  Bruno Haible  <bruno@clisp.org>
13659
13660         ttyname_r: Make it work on Solaris 10.
13661         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13662         if the system function has the POSIX declaration. Test whether the
13663         function fails if the buffer is less than 128 bytes large.
13664         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13665         system's ttyname_r function. Provide a reasonably large buffer.
13666         * modules/ttyname_r (Depends-on): Add extensions.
13667         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13668
13669 2010-04-25  Bruno Haible  <bruno@clisp.org>
13670
13671         Use the 'extensions' module for some more functions on Solaris.
13672         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13673         module.
13674         * doc/posix-functions/ctime_r.texi: Likewise.
13675         * doc/posix-functions/getgrgid_r.texi: Likewise.
13676         * doc/posix-functions/getgrnam_r.texi: Likewise.
13677         * doc/posix-functions/getpwnam_r.texi: Likewise.
13678         * doc/posix-functions/getpwuid_r.texi: Likewise.
13679         * doc/posix-functions/readdir_r.texi: Likewise.
13680         * doc/posix-functions/sigwait.texi: Likewise.
13681         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13682         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13683
13684 2010-04-25  Bruno Haible  <bruno@clisp.org>
13685
13686         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13687         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13688         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13689         * lib/ttyname_r.c: Include <limits.h>.
13690         (ttyname_r): Define using the system's ttyname_r function, if it exists
13691         and not on Solaris.
13692         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13693         set.
13694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13695         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13696         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13697         Reported by Simon Josefsson.
13698
13699 2010-04-25  Bruno Haible  <bruno@clisp.org>
13700
13701         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13702         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13703         * doc/posix-functions/ctime_r.texi: Likewise.
13704         * doc/posix-functions/getgrgid_r.texi: Likewise.
13705         * doc/posix-functions/getgrnam_r.texi: Likewise.
13706         * doc/posix-functions/getlogin_r.texi: Likewise.
13707         * doc/posix-functions/getpwnam_r.texi: Likewise.
13708         * doc/posix-functions/getpwuid_r.texi: Likewise.
13709         * doc/posix-functions/readdir_r.texi: Likewise.
13710         * doc/posix-functions/sigwait.texi: Likewise.
13711         * doc/posix-functions/ttyname_r.texi: Likewise.
13712         Reported by Simon Josefsson.
13713
13714 2010-04-25  Bruno Haible  <bruno@clisp.org>
13715
13716         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13717         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13718         also to --create-testdir.
13719         (func_acceptable): Don't consider the status of *-tests modules here.
13720         (func_modules_transitive_closure): Consider it here, before including a
13721         test module.
13722         (func_import, func_create_testdir): Set inc_all_direct_tests,
13723         inc_all_indirect_tests.
13724         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13725         --create-testdir and --create-megatestdir.
13726
13727 2010-04-25  Bruno Haible  <bruno@clisp.org>
13728
13729         gnulib-tool: Add --without-*-tests options.
13730         * gnulib-tool (func_usage): Document the --without-*-tests options.
13731         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13732         excl_unportable_tests): New variables.
13733         Fail if they are specified with --import or --update.
13734         (func_acceptable): Respect the excl_*_tests variables.
13735         (func_import): Set the excl_*_tests variables to empty.
13736
13737 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13738             Bruno Haible  <bruno@clisp.org>
13739
13740         Work around a MacOS X 10.4 bug with openpty.
13741         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13742         * tests/test-openpty.c (main): Close the master side explicitly.
13743
13744 2010-04-25  Bruno Haible  <bruno@clisp.org>
13745
13746         strnlen: Fix a C++ test error on MacOS X and Solaris.
13747         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13748         the function is not declared.
13749         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13750         Simon Josefsson.
13751
13752 2010-04-24  Bruno Haible  <bruno@clisp.org>
13753
13754         Avoid a gcc warning.
13755         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13756         of correct type for %08lx directive.
13757         Reported by Eric Blake.
13758
13759 2010-04-24  Bruno Haible  <bruno@clisp.org>
13760
13761         vasnprintf: Correct errno value in case of out-of-memory.
13762         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13763         or sprintf. Use the errno value from SNPRINTF or sprintf.
13764         Reported by Ian Beckwith <ianb@erislabs.net>.
13765
13766 2010-04-24  Bruno Haible  <bruno@clisp.org>
13767
13768         ansi-c++-opt: Find correct compiler when cross-compiling.
13769         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13770         AC_CHECK_PROGS.
13771         Reported by Simon Josefsson.
13772
13773 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13774
13775         vc-list-files: Add support for subversion
13776         * build-aux/vc-list-files: Use "svn list" to generate the list of
13777         files controlled by subversion.
13778
13779 2010-04-23  Jim Meyering  <meyering@redhat.com>
13780
13781         vc-list-files tests: convert to use init.sh
13782         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13783         path_prepend_.
13784         Use Exit, not exit.
13785         Use skip_ rather than open coding it.
13786         Remove trap set-up and compare definitions.
13787         * tests/test-vc-list-files-git.sh: Likewise.
13788         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13789
13790 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13791
13792         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13793         backup files.
13794
13795 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13796
13797         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13798
13799 2010-04-20  Eric Blake  <eblake@redhat.com>
13800
13801         tests: be robust to ignored SIGPIPE
13802         * tests/test-select-in.sh: Consume all output.
13803         * tests/test-lseek.sh: Check correct exit status, while avoiding
13804         EPIPE.
13805
13806 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13807             Bruno Haible  <bruno@clisp.org>
13808
13809         visibility: Don't use -fvisibility if it leads to a warning.
13810         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13811         yes, don't pretend that visibility works if it leads to a warning.
13812         Reported by Mike Gran <spk121@yahoo.com>.
13813
13814 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13815
13816         * build-aux/bootstrap: Use "git -h" for testing for supported options
13817         instead of "git --help".  The short-form option only shows a summary,
13818         and doesn't layout the full man page.  Grep for the full option name
13819         in the summary, too.
13820
13821 2010-04-19  Bruno Haible  <bruno@clisp.org>
13822
13823         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13824         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13825         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13826         mention of RELOCATABLE_STRIP.
13827         Reported by Sylvain Beucler <beuc@beuc.net>.
13828
13829 2010-04-19  Bruno Haible  <bruno@clisp.org>
13830
13831         * lib/diffseq.h: Fix typo in comment.
13832         Reported by Eric Blake.
13833
13834 2010-04-19  Bruno Haible  <bruno@clisp.org>
13835
13836         ioctl: Move autoconf macro to a .m4 file.
13837         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13838         * modules/ioctl (Files): Add it.
13839         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13840         Reported by Ian Beckwith <ianb@erislabs.net>.
13841
13842 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13843             Bruno Haible  <bruno@clisp.org>
13844
13845         diffseq: Accommodate use-case with abstract arrays.
13846         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13847         is not defined.
13848         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13849         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13850
13851 2010-04-18  Bruno Haible  <bruno@clisp.org>
13852
13853         * doc/posix-headers/stdbool.texi: More precise wording.
13854
13855 2010-04-17  Jim Meyering  <meyering@redhat.com>
13856
13857         maint.mk: use gnu-style indentation in an embedded perl script
13858         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13859         Rename variable: s/two/last_two_bytes/
13860
13861 2010-04-16  Eric Blake  <eblake@redhat.com>
13862
13863         test-stdbool: skip test that fails with Solaris CC
13864         * tests/test-stdbool.c (f): Skip test that causes compilation
13865         error under buggy C++ compiler.
13866         * lib/stdbool.in.h: Document the limitation.
13867         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13868
13869         setenv: allow compilation with C++
13870         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13871         register keyword.
13872
13873         stdint: allow test to pass with C++
13874         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13875
13876         getopt: allow compilation with C++
13877         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13878         struct.
13879         * lib/getopt.c (_getopt_internal_r): Use correct type.
13880         Reported by Dagobert Michelson, via Joel E. Denny.
13881
13882 2010-04-16  Bruno Haible  <bruno@clisp.org>
13883
13884         Override netdb.h always.
13885         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13886         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13887         Reported by Ludovic Courtès <ludo@gnu.org>.
13888
13889 2010-04-15  Bruno Haible  <bruno@clisp.org>
13890
13891         openpty: Fix mistake from 2010-03-21.
13892         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13893         Reported by Simon Josefsson.
13894
13895 2010-04-15  Eric Blake  <eblake@redhat.com>
13896
13897         test-forkpty: fix expected signature
13898         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13899         Reported by Simon Josefsson.
13900
13901 2010-04-15  Jim Meyering  <meyering@redhat.com>
13902
13903         maint.mk: texinfo_suffix_re_: correct the default regexp
13904         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13905
13906         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13907         make it configurable via texinfo_suffix_re_.
13908
13909 2010-04-14  Eric Blake  <eblake@redhat.com>
13910
13911         strtok_r: relax license to LGPLv2+
13912         * modules/strtok_r (License): Relax license.
13913         Reported by Matthias Bolte.
13914
13915 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13916
13917         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13918         version 1.4.4 by default instead of requiring the libgcrypt
13919         version used during build.  This makes it possible to use the
13920         application with older but still binary compatible libgcrypt
13921         versions.
13922
13923 2010-04-13  Eric Blake  <eblake@redhat.com>
13924
13925         getopt-gnu: match recent glibc fixes and posix ruling
13926         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13927         '+' handling, when requesting extensions.
13928         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13929         'W;' handling.
13930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13931         * doc/posix-functions/getopt.texi (getopt): Document this.
13932         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13933         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13934         Likewise.
13935
13936         getopt: merge bug fixes from glibc
13937         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13938         diagnostics.  Honor '+:' correctly.  Reject ';'.
13939
13940         getopt-posix: detect MacOS bug
13941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13942         optind when missing a required argument.
13943         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13944         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13945         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13946         Likewise.
13947
13948         getopt-posix: avoid spurious failure on Solaris
13949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13950         an indicator that setting optind=1 is sufficient for reset.
13951
13952         getopt-posix: avoid spurious failure on FreeBSD
13953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13954         in POSIX mode, since the m4 test uses it.
13955
13956         gnulib-tool: silence warning on BSD sh
13957         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13958
13959 2010-04-13  Jim Meyering  <meyering@redhat.com>
13960
13961         doc: users.txt: GNU patch now uses gnulib
13962         * users.txt: Add patch.
13963
13964 2010-04-12  Jim Meyering  <meyering@redhat.com>
13965
13966         maint.mk: generate more concise timing data for syntax-check rules
13967         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13968         " done" from each line that reports a syntax-check test duration.
13969
13970 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13971
13972         git-version-gen: use "git update-index..." rather than "git status"
13973         * build-aux/git-version-gen: Use git update-index --refresh, not
13974         "git status".  With some versions of git, "git status" would fail
13975         to update the index and result in an unwarranted "-dirty" suffix.
13976
13977 2010-04-11  Jim Meyering  <meyering@redhat.com>
13978
13979         openat: correct formatting (no semantic change)
13980         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13981         Suggested by Bruno Haible.
13982
13983 2010-04-11  Bruno Haible  <bruno@clisp.org>
13984
13985         Stricter declaration checking in testdirs.
13986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13987         If for_tests is true, augment AM_CPPFLAGS to define
13988         GNULIB_STRICT_CHECKING.
13989         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13990         GNULIB_STRICT_CHECKING is defined, verify that the function is
13991         declared.
13992
13993 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13994             Bruno Haible  <bruno@clisp.org>
13995
13996         libunistring: Improve configure output.
13997         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13998         Don't say "consider installing GNU libunistring" when checking again
13999         with libiconv.
14000
14001 2010-04-11  Bruno Haible  <bruno@clisp.org>
14002
14003         libunistring: Correct value of $LTLIBUNISTRING.
14004         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14005         correct the value of $LTLIBUNISTRING.
14006
14007 2010-04-11  Bruno Haible  <bruno@clisp.org>
14008
14009         havelib: Add static libraries to LIBS in the right order.
14010         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14011         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14012
14013 2010-04-11  Bruno Haible  <bruno@clisp.org>
14014
14015         libunistring: Detect libunistring also when it depends on libiconv.
14016         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14017         the second AC_LIB_HAVE_LINKFLAGS invocation.
14018
14019 2010-04-11  James Youngman  <jay@gnu.org>
14020
14021         close-stream: declare local scalars to be "const"
14022         * lib/close-stream.c (close_stream): Make boolean variables const
14023         to document the fact that we set but do not change them.
14024
14025 2010-04-11  Bruno Haible  <bruno@clisp.org>
14026
14027         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14028
14029 2010-04-11  Jim Meyering  <meyering@redhat.com>
14030
14031         maint.mk: don't include dist-check.mk
14032         * top/maint.mk: Remove bogus include directive.
14033
14034         maint.mk: improve empty-line-at-EOF check
14035         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14036         solution, rather than tail+Perl-based one.  The latter would read
14037         a few kilobytes from the end of each file, and did not handle empty
14038         files properly.
14039
14040         maint.mk: print the elapsed time for each syntax-check rule
14041         * top/maint.mk (sc_m_rules_): Save start time in a file.
14042         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14043         (local-check): Interpose the .z rules
14044
14045 2010-04-11  Jim Meyering  <meyering@redhat.com>
14046
14047         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14048         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14049         empty file with one that ends in an empty line.
14050
14051 2010-04-10  Bruno Haible  <bruno@clisp.org>
14052
14053         mkdir: Make it work on mingw64.
14054         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14055         * lib/mkdir.c: Update comment.
14056         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14057
14058 2010-04-10  Bruno Haible  <bruno@clisp.org>
14059
14060         Don't override improved macro from newer autoconf.
14061         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14062         autoconf >= 2.62.
14063         Reported by Joel E. Denny <jdenny@clemson.edu>.
14064
14065 2010-04-10  Jim Meyering  <meyering@redhat.com>
14066
14067         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14068         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14069
14070         maint.mk: correct a diagnostic
14071         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14072         in diagnostic; now use $prohibit.
14073
14074 2010-04-10  Bruno Haible  <address@hidden>
14075
14076         fchownat: Fix a C++ test error on Solaris 8.
14077         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14078         the function does not exist.
14079
14080 2010-04-10  Bruno Haible  <bruno@clisp.org>
14081
14082         vasnprintf: Add more tests.
14083         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14084         (test_function): Test converting an invalid wide string.
14085
14086         vasnprintf: Correct handling of unconvertible wide string arguments.
14087         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14088         VASNPRINTF.
14089         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14090         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14091         smaller than the expected maximum need for the directive. Set errno to
14092         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14093         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14095         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14096         * modules/vasnprintf (Files): Add m4/printf.m4.
14097         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14098
14099 2010-04-10  Bruno Haible  <bruno@clisp.org>
14100
14101         vasnprintf: Fix crash in %ls directive.
14102         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14103         string is passed as argument to %ls, with no precision and no width.
14104         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14105
14106 2010-04-10  Bruno Haible  <bruno@clisp.org>
14107
14108         vasnprintf: Fix multiple test failures on mingw.
14109         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14110         _snprintf, or snwprintf, not _snwprintf.
14111
14112 2010-04-10  Bruno Haible  <bruno@clisp.org>
14113
14114         write: Fix a C++ test error on mingw.
14115         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14116
14117 2010-04-10  Bruno Haible  <bruno@clisp.org>
14118
14119         vasnprintf test: Reduce code duplication.
14120         * tests/test-vasnprintf.c (test_function): New function, extracted from
14121         test_vasnprintf.
14122         (test_vasnprintf, test_asnprintf): Invoke it.
14123
14124 2010-04-10  Bruno Haible  <bruno@clisp.org>
14125
14126         strnlen: Fix warning in C++ mode on MacOS X.
14127         * lib/string.in.h (strnlen): Use the modern idiom.
14128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14129         defining strnlen as a macro already in <config.h>.
14130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14131         REPLACE_STRNLEN.
14132         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14133         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14134
14135 2010-04-08  James Youngman  <jay@gnu.org>
14136
14137         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14138         the example.
14139
14140 2010-04-09  Jim Meyering  <meyering@redhat.com>
14141
14142         maint.mk: print better diagnostic when there is no $(_hv_file)
14143         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14144         announce that when $(_hv_file) (aka help-version) does not exist.
14145
14146         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14147         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14148         not try to interpret its random input bytes.  Jarno Rajahalme reported
14149         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14150         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14151         (mktempd_): Likewise, just in case.
14152
14153         ftruncate: add two years to projected module removal date: 2012
14154         * m4/ftruncate.m4: Adjust comments.
14155
14156         ftruncate: mark module as obsolete; even MinGW provides it, now
14157         * modules/ftruncate (Status): Obsolete.
14158         (Notice): Say that.
14159         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14160         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14161
14162 2010-04-08  Bruno Haible  <bruno@clisp.org>
14163
14164         Fix side effects from tests-related modules.
14165         * modules/dprintf-posix (Comment): New section.
14166         * modules/fprintf-posix (Comment): Likewise.
14167         * modules/obstack-printf-posix (Comment): Likewise.
14168         * modules/printf-posix (Comment): Likewise.
14169         * modules/snprintf-posix (Comment): Likewise.
14170         * modules/sprintf-posix (Comment): Likewise.
14171         * modules/vasnprintf-posix (Comment): Likewise.
14172         * modules/vasprintf-posix (Comment): Likewise.
14173         * modules/vdprintf-posix (Comment): Likewise.
14174         * modules/vfprintf-posix (Comment): Likewise.
14175         * modules/vprintf-posix (Comment): Likewise.
14176         * modules/vsnprintf-posix (Comment): Likewise.
14177         * modules/vsprintf-posix (Comment): Likewise.
14178         * modules/xprintf-posix (Comment): Likewise.
14179         * modules/xvasprintf-posix (Comment): Likewise.
14180         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14181         * modules/floorf-tests (Depends-on): Likewise.
14182         * modules/round-tests (Depends-on): Likewise.
14183         * modules/roundf-tests (Depends-on): Likewise.
14184         * modules/trunc-tests (Depends-on): Likewise.
14185         * modules/truncf-tests (Depends-on): Likewise.
14186         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14187         'fprintf-posix' module is not present.
14188         * tests/test-floorf2.c (check): Likewise.
14189         * tests/test-trunc2.c (check): Likewise.
14190         * tests/test-truncf2.c (check): Likewise.
14191         * tests/test-round2.c (equal): Likewise.
14192         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14193
14194 2010-04-07  Karl Berry  <karl@gnu.org>
14195
14196         * config/srclist.txt,
14197         * config/srclistvars.sh,
14198         * config/srclist-update: doc fixes.
14199
14200 2010-04-07  Jim Meyering  <meyering@redhat.com>
14201
14202         maint.mk: add a PATH crosschecking syntax-check rule
14203         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14204         Useful if you use a test like the one in help-version (coreutils,
14205         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14206         printed by prog --version.
14207
14208 2010-04-06  Bruno Haible  <bruno@clisp.org>
14209
14210         Fix link error on mingw.
14211         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14212         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14213
14214 2010-04-06  Bruno Haible  <bruno@clisp.org>
14215
14216         Assume rmdir exists.
14217         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14218
14219 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14220
14221         doc: update users.txt
14222         * users.txt: Add gcal.
14223
14224 2010-04-06  Jim Meyering  <meyering@redhat.com>
14225
14226         init.sh: simply unset TMPDIR rather than risking env -i
14227         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14228         although it probably works fine on all Unix-based systems, some
14229         systems (Cygwin?) cannot tolerate a totally cleared environment.
14230         Suggestion from Eric Blake.
14231
14232 2010-04-06  Jim Meyering  <meyering@redhat.com>
14233
14234         init.sh: portability fix: use env's POSIX-specified -i option not -u
14235         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14236         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14237
14238 2010-04-05  Bruno Haible  <bruno@clisp.org>
14239
14240         btowc: Work around Cygwin 1.7.2 bug.
14241         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14242         does not map NUL to 0.
14243         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14244
14245 2010-04-05  Bruno Haible  <bruno@clisp.org>
14246
14247         Make the multithread modules work on Cygwin 1.7.2.
14248         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14249         imported symbols can be declared weak, so that it returns "no" on
14250         Cygwin 1.7.2.
14251
14252 2010-04-05  Bruno Haible  <bruno@clisp.org>
14253
14254         Use the module 'strncat'.
14255         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14256
14257         Tests for module 'strncat'.
14258         * modules/strncat-tests: New file.
14259         * tests/test-strncat.c: New file.
14260
14261         New module 'strncat'.
14262         * lib/string.in.h (strncat): New declaration.
14263         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14264         * m4/strncat.m4: New file, based on m4/memchr.m4.
14265         * modules/strncat: New file.
14266         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14267         is declared.
14268         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14269         REPLACE_STRNCAT.
14270         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14271         REPLACE_STRNCAT.
14272         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14273         module.
14274         * tests/test-string-c++.cc: Check signature of strncat.
14275
14276 2010-04-05  Jim Meyering  <meyering@redhat.com>
14277
14278         xstrtoumax-tests: convert to use init.sh
14279         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14280         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14281         Use Exit, not exit.
14282         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14283
14284         xstrtoimax-tests: convert to use init.sh
14285         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14286         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14287         Use Exit, not exit.
14288         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14289
14290 2010-04-05  Bruno Haible  <bruno@clisp.org>
14291
14292         sys_socket: Avoid #define replacements in C++ mode.
14293         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14294         warning to the function if possible, rather than #defining the symbol
14295         to a dysfunctional alias.
14296
14297 2010-04-05  Bruno Haible  <bruno@clisp.org>
14298
14299         fseeko: Fix C++ test error on mingw.
14300         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14301         gl_FUNC_FSEEKO.
14302         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14303         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14305         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14306
14307 2010-04-05  Bruno Haible  <bruno@clisp.org>
14308
14309         duplocale: Improve test output.
14310         * tests/test-duplocale.c (main): Print reason for skipped test.
14311
14312 2010-04-05  Bruno Haible  <bruno@clisp.org>
14313
14314         Assume rmdir exists.
14315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14316         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14317
14318 2010-04-05  Bruno Haible  <bruno@clisp.org>
14319
14320         Fix link error on Solaris 8 with cc.
14321         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14322
14323 2010-04-05  Bruno Haible  <bruno@clisp.org>
14324
14325         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14326         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14327
14328 2010-04-05  Bruno Haible  <bruno@clisp.org>
14329
14330         vasprintf: Update documentation.
14331         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14332
14333 2010-04-05  Bruno Haible  <bruno@clisp.org>
14334
14335         ptsname: Improve test.
14336         * tests/test-ptsname.c (main): Also try the various master names of BSD
14337         systems.
14338
14339 2010-04-05  Bruno Haible  <bruno@clisp.org>
14340
14341         memchr: Avoid a possible C++ test error.
14342         * lib/string.in.h (memchr): Provide declaration if function is missing.
14343         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14344         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14346         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14347
14348 2010-04-05  Bruno Haible  <bruno@clisp.org>
14349
14350         strtok_r: Improve idiom.
14351         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14352         AC_LIBOBJ is used.
14353
14354 2010-04-05  Bruno Haible  <bruno@clisp.org>
14355
14356         strdup: Improve idiom.
14357         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14358         AC_LIBOBJ is used.
14359         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14360         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14361         when AC_LIBOBJ is used.
14362
14363 2010-04-05  Bruno Haible  <bruno@clisp.org>
14364
14365         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14366         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14367         don't set REPLACE_MBSINIT to 1.
14368         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14369         don't set REPLACE_MBRTOWC to 1.
14370         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14371         exist, don't set REPLACE_MBSRTOWCS to 1.
14372         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14373         exist, don't set REPLACE_MBSNRTOWCS to 1.
14374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14375         don't set REPLACE_WCRTOMB to 1.
14376         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14377         exist, don't set REPLACE_WCSRTOMBS to 1.
14378         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14379         exist, don't set REPLACE_WCSNRTOMBS to 1.
14380
14381 2010-04-05  Bruno Haible  <bruno@clisp.org>
14382
14383         ldexpl: Improve idiom.
14384         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14385         make sure to set HAVE_DECL_LDEXPL to 0.
14386
14387 2010-04-05  Jim Meyering  <meyering@redhat.com>
14388
14389         xstrtol-tests: convert to use init.sh
14390         * modules/xstrtol-tests (Files): Add tests/init.sh.
14391         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14392         Use Exit, not exit.
14393         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14394
14395         atexit-tests: convert to use init.sh
14396         * modules/atexit-tests (Files): Add tests/init.sh.
14397         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14398         Use Exit, not exit.
14399         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14400
14401         init.sh: fix typo
14402         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14403
14404         init.sh: make it easier for a test script to write to the tty, ...
14405         when using automake's parallel-tests mode.
14406         * tests/init.sh (stderr_fileno_): Define overridable variable.
14407         (warn_): New function, to use it.
14408         (fail_, skip_, framework_failure_): Use warn_.
14409
14410 2010-04-04  Bruno Haible  <bruno@clisp.org>
14411
14412         btowc: Avoid warning.
14413         * lib/btowc.c: Include <stdlib.h>.
14414         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14415
14416 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14417             Bruno Haible  <bruno@clisp.org>
14418
14419         wchar: Port to NetBSD 1.5.
14420         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14421         * lib/wctype.in.h (WEOF): Likewise.
14422
14423 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14424             Bruno Haible  <bruno@clisp.org>
14425
14426         Port extended stdio to NetBSD 1.5.
14427         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14428         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14429         older.
14430
14431 2010-04-04  Bruno Haible  <bruno@clisp.org>
14432
14433         string: Remove unused substitution.
14434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14435         HAVE_DECL_STRERROR.
14436         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14437
14438 2010-04-04  Bruno Haible  <bruno@clisp.org>
14439
14440         strtod: Avoid a possible C++ test error.
14441         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14442         set REPLACE_STRTOD.
14443
14444 2010-04-04  Bruno Haible  <bruno@clisp.org>
14445
14446         strerror: Update documentation.
14447         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14448
14449 2010-04-04  Bruno Haible  <bruno@clisp.org>
14450
14451         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14452         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14453         _GL_CXXALIAS_SYS_CAST.
14454
14455 2010-04-04  Bruno Haible  <bruno@clisp.org>
14456
14457         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14458         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14459         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14460         REPLACE_FREXPL to 1.
14461         * doc/posix-functions/frexpl.texi: Update documentation.
14462
14463 2010-04-04  Bruno Haible  <bruno@clisp.org>
14464
14465         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14466         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14467
14468 2010-04-04  Bruno Haible  <bruno@clisp.org>
14469
14470         Implement nanosleep for native Windows.
14471         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14472
14473 2010-04-04  Bruno Haible  <bruno@clisp.org>
14474
14475         math: Fix some C++ test errors on Solaris 8.
14476         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14477
14478 2010-04-04  Bruno Haible  <bruno@clisp.org>
14479
14480         math: Fix some C++ test errors on Cygwin.
14481         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14482         truncl): Provide declaration if the system does not have it.
14483         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14484         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14485         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14486         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14487         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14488         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14489         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14490         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14491         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14492         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14493         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14494         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14495         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14496         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14497         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14498         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14500         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14501         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14502         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14503         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14504         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14505
14506 2010-04-04  Bruno Haible  <bruno@clisp.org>
14507
14508         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14509         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14510         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14511         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14512         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14513         * m4/isinf.m4 (gl_ISINF): Likewise.
14514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14515
14516 2010-04-04  Bruno Haible  <bruno@clisp.org>
14517
14518         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14519         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14520
14521 2010-04-04  Bruno Haible  <bruno@clisp.org>
14522
14523         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14524         * modules/tmpfile (configure.ac): Update.
14525
14526         tmpfile: Fix C++ test error on mingw.
14527         * lib/stdio.in.h (tmpfile): New declaration.
14528         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14529         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14530         * modules/tmpfile (Depends-on): Add stdio.
14531         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14532         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14533         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14534         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14535         REPLACE_TMPFILE.
14536         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14537
14538 2010-04-04  Bruno Haible  <bruno@clisp.org>
14539
14540         ioctl: Fix C++ test error on mingw.
14541         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14542         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14543         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14544
14545 2010-04-03  Bruno Haible  <bruno@clisp.org>
14546
14547         wcwidth: Fix C++ test error on mingw.
14548         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14550         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14551
14552 2010-04-03  Bruno Haible  <bruno@clisp.org>
14553
14554         nanosleep: Fix C++ test error on mingw.
14555         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14556         * lib/time.in.h (nanosleep): Use modern idiom.
14557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14558         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14559         REPLACE_NANOSLEEP to 1.
14560         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14561         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14562
14563 2010-04-03  Bruno Haible  <bruno@clisp.org>
14564
14565         strptime: Fix C++ test error on mingw.
14566         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14567         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14568         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14569         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14571         not REPLACE_STRPTIME.
14572         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14573         REPLACE_STRPTIME.
14574
14575 2010-04-03  Bruno Haible  <bruno@clisp.org>
14576
14577         timegm: Fix C++ test error on mingw.
14578         * lib/time.in.h (timegm): Use modern idiom.
14579         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14580         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14582         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14583
14584 2010-04-03  Bruno Haible  <bruno@clisp.org>
14585
14586         timegm: Assume declaration if function exists.
14587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14588         if it exists. Don't clobber ac_cv_func_timegm.
14589
14590 2010-04-03  Bruno Haible  <bruno@clisp.org>
14591
14592         time_r: Fix C++ test error on mingw.
14593         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14594         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14595         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14596         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14597         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14598
14599 2010-04-03  Bruno Haible  <bruno@clisp.org>
14600
14601         time_r: Minor updates.
14602         * modules/time_r (Description): Mention the provided functions.
14603         * lib/time_r.c: Don't include <string.h>.
14604         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14605         * doc/posix-functions/localtime_r.texi: Likewise.
14606
14607 2010-04-03  Bruno Haible  <bruno@clisp.org>
14608
14609         time: Fix regression introduced on 2010-03-08.
14610         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14611         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14612
14613 2010-04-03  Jim Meyering  <meyering@redhat.com>
14614
14615         maint.mk: don't silently disable project-specific syntax-check rules
14616         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14617         that they need to convert their project-specific syntax-check rules
14618         to use the new _sc_search_regexp.
14619
14620 2010-04-03  Bruno Haible  <bruno@clisp.org>
14621
14622         fchdir: Fix regression introduced on 2010-03-08.
14623         * lib/unistd.in.h (fchdir): Fix declaration.
14624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14626         REPLACE_FCHDIR.
14627         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14628         REPLACE_FCHDIR.
14629
14630 2010-04-03  Bruno Haible  <bruno@clisp.org>
14631
14632         getpagesize: Fix C++ test error on mingw.
14633         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14634         system does not declare the function.
14635         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14636         declared.
14637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14638         HAVE_DECL_GETPAGESIZE.
14639         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14640
14641 2010-04-03  Bruno Haible  <bruno@clisp.org>
14642
14643         stdio: Make C++ tests work on mingw.
14644         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14645         does not declare the function.
14646
14647 2010-04-03  Bruno Haible  <bruno@clisp.org>
14648
14649         ftello: Fix C++ test error on mingw.
14650         * lib/stdio.in.h (ftello): Use modern idiom.
14651         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14652         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14653         is missing and that it needs to be replaced.
14654         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14656         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14657
14658 2010-04-03  Bruno Haible  <bruno@clisp.org>
14659
14660         fseeko: Fix C++ test error on mingw.
14661         * lib/stdio.in.h (fseeko): Use modern idiom.
14662         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14663         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14664         is missing and that it needs to be replaced.
14665         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14667         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14668
14669 2010-04-03  Bruno Haible  <bruno@clisp.org>
14670
14671         mkstemp: Fix C++ test error on mingw.
14672         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14674         function is missing and that it needs to be replaced.
14675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14676         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14677
14678 2010-04-03  Bruno Haible  <bruno@clisp.org>
14679
14680         stpncpy: Fix C++ test error on mingw.
14681         * lib/string.in.h (stpncpy): Use modern idiom.
14682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14683         function is missing and that it needs to be replaced.
14684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14685         REPLACE_STPNCPY.
14686         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14687
14688 2010-04-03  Bruno Haible  <bruno@clisp.org>
14689
14690         sys_stat: Fix C++ test error on mingw.
14691         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14692         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14693
14694 2010-04-03  Bruno Haible  <bruno@clisp.org>
14695
14696         pty: Update doc.
14697         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14698
14699 2010-04-03  Bruno Haible  <bruno@clisp.org>
14700
14701         unistd: Fix C++ test error on mingw.
14702         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14703
14704 2010-04-03  Bruno Haible  <bruno@clisp.org>
14705
14706         Update doc regarding mingw.
14707         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14708         * doc/glibc-functions/login_tty.texi: Likewise.
14709         * doc/glibc-functions/forkpty.texi: Likewise.
14710
14711 2010-04-03  Bruno Haible  <bruno@clisp.org>
14712
14713         stdlib: Avoid compilation failure of c-strtold on mingw.
14714         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14715
14716 2010-04-03  Bruno Haible  <bruno@clisp.org>
14717
14718         locale: Make C++ tests work on Cygwin and mingw.
14719         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14720         cannot provide the function.
14721         Reported by Simon Josefsson.
14722
14723 2010-04-03  Bruno Haible  <bruno@clisp.org>
14724
14725         localename: Port to MacOS X 10.6.
14726         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14727         memory layout of the locales in MacOS X 10.6 as well.
14728         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14729
14730 2010-04-02  Bruno Haible  <bruno@clisp.org>
14731
14732         gnulib-tool: Ensure that long-running tests are executed last.
14733         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14734         running tests after the one for the other tests.
14735
14736 2010-04-02  Bruno Haible  <bruno@clisp.org>
14737
14738         gnulib-tool: Ensure the tests in the main directory are executed first.
14739         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14740         start with the current directory.
14741
14742 2010-04-02  Bruno Haible  <bruno@clisp.org>
14743
14744         Tests for module 'havelib', moved here from GNU gettext.
14745         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14746         modifications.
14747         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14748         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14749         with modifications.
14750         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14751         modifications.
14752         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14753         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14754         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14755         with modifications.
14756         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14757         with modifications.
14758         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14759         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14760         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14761         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14762         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14763         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14764         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14765         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14766         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14767         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14768         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14769         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14770         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14771         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14772         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14773         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14774         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14775         with modifications.
14776         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14777         with modifications.
14778         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14779         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14780         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14781         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14782         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14783         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14784         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14785         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14786         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14787         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14788         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14789         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14790         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14791         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14792         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14793         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14794         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14795         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14796         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14797         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14798         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14799         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14800         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14801         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14802         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14803         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14804         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14805         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14806         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14807         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14808         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14809         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14810         * tests/havelib/rpathx/rpathx.c: New file, from
14811         gettext/autoconf-lib-link.
14812         * tests/havelib/rpathx/Makefile.am: New file, from
14813         gettext/autoconf-lib-link.
14814         * tests/havelib/rpathx/configure.ac: New file, from
14815         gettext/autoconf-lib-link with modifications.
14816         * tests/havelib/rpathy/rpathy.c: New file, from
14817         gettext/autoconf-lib-link.
14818         * tests/havelib/rpathy/Makefile.am: New file, from
14819         gettext/autoconf-lib-link.
14820         * tests/havelib/rpathy/configure.ac: New file, from
14821         gettext/autoconf-lib-link with modifications.
14822         * tests/havelib/rpathz/rpathz.c: New file, from
14823         gettext/autoconf-lib-link.
14824         * tests/havelib/rpathz/Makefile.am: New file, from
14825         gettext/autoconf-lib-link.
14826         * tests/havelib/rpathz/configure.ac: New file, from
14827         gettext/autoconf-lib-link with modifications.
14828         * tests/havelib/rpathlx/usex.c: New file, from
14829         gettext/autoconf-lib-link.
14830         * tests/havelib/rpathlx/Makefile.am: New file, from
14831         gettext/autoconf-lib-link.
14832         * tests/havelib/rpathlx/configure.ac: New file, from
14833         gettext/autoconf-lib-link with modifications.
14834         * tests/havelib/rpathly/usey.c: New file, from
14835         gettext/autoconf-lib-link.
14836         * tests/havelib/rpathly/Makefile.am: New file, from
14837         gettext/autoconf-lib-link.
14838         * tests/havelib/rpathly/configure.ac: New file, from
14839         gettext/autoconf-lib-link with modifications.
14840         * tests/havelib/rpathlz/usez.c: New file, from
14841         gettext/autoconf-lib-link.
14842         * tests/havelib/rpathlz/Makefile.am: New file, from
14843         gettext/autoconf-lib-link.
14844         * tests/havelib/rpathlz/configure.ac: New file, from
14845         gettext/autoconf-lib-link with modifications.
14846         * tests/havelib/rpathlyx/usey.c: New file, from
14847         gettext/autoconf-lib-link.
14848         * tests/havelib/rpathlyx/Makefile.am: New file, from
14849         gettext/autoconf-lib-link.
14850         * tests/havelib/rpathlyx/configure.ac: New file, from
14851         gettext/autoconf-lib-link with modifications.
14852         * tests/havelib/rpathlzyx/usez.c: New file, from
14853         gettext/autoconf-lib-link.
14854         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14855         gettext/autoconf-lib-link.
14856         * tests/havelib/rpathlzyx/configure.ac: New file, from
14857         gettext/autoconf-lib-link with modifications.
14858         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14859         with modifications.
14860
14861 2010-04-02  Bruno Haible  <bruno@clisp.org>
14862
14863         gnulib-tool: Create distributed built sources also for the tests.
14864         * gnulib-tool (func_create_testdir): Also generate distributed built
14865         sources in the tests directory.
14866
14867 2010-04-02  Bruno Haible  <bruno@clisp.org>
14868
14869         gnulib-tool: Obey user's environment variables.
14870         * gnulib-tool (func_create_testdir): When creating built sources,
14871         respect the environment variables for autoconf, automake, etc. given by
14872         the user.
14873
14874 2010-04-02  Bruno Haible  <bruno@clisp.org>
14875
14876         gnulib-tool: Provide the value of --m4-base to modules.
14877         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14878         of gl_m4_base.
14879
14880 2010-04-02  Eric Blake  <eblake@redhat.com>
14881
14882         maint.mk: fix some fallout
14883         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14884         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14885
14886 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14887
14888         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14889         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14890         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14891         (sc_cast_of_x_alloc_return_value): Likewise.
14892         (sc_cast_of_alloca_return_value): Likewise.
14893         (sc_space_tab): Likewise.
14894         (sc_prohibit_atoi_atof): Likewise.
14895         (sc_prohibit_magic_number_exit): Likewise.
14896         (sc_error_exit_success): Likewise.
14897         (sc_file_system): Likewise.
14898         (sc_prohibit_have_config_h): Likewise.
14899         (sc_require_config_h): Likewise.
14900         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14901         (sc_obsolete_symbols): Likewise.
14902         (sc_changelog): Likewise.
14903         (sc_program_name): Likewise.
14904         (sc_the_the): Likewise.
14905         (sc_trailing_blank): Likewise.
14906         (sc_two_space_separator_in_usage): Likewise.
14907         (sc_useless_cpp_parens): Likewise.
14908         (sc_GPL_version): Likewise.
14909         (sc_GFDL_version): Likewise.
14910         (sc_texinfo_acronym): Likewise.
14911         (sc_prohibit_cvs_keyword): Likewise.
14912         (sc_prohibit_stat_st_blocks): Likewise.
14913         (sc_prohibit_S_IS_definition): Likewise.
14914         (sc_redundant_const): Likewise.
14915         (sc_makefile_TAB_only_indentation): Likewise.
14916         (sc_m4_quote_check): Likewise.
14917         (sc_makefile_path_separator_check): Likewise.
14918         (sc_copyright_check): Likewise.
14919         (sc_Wundef_boolean): Likewise.
14920         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14921
14922         maint.mk: match 0 or more whitespace-before-function-call '('
14923         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14924         that have zero or two-and-more spaces between the function name
14925         and the open parenthesis.
14926         (sc_error_message_warn_fatal): Likewise.
14927         (sc_error_message_uppercase): Likewise.
14928         (sc_error_message_period): Likewise.
14929
14930 2010-03-31  Eric Blake  <eblake@redhat.com>
14931
14932         maint.mk: check for [ as well as test
14933         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14934         Based on a libvirt report by Matthias Bolte.
14935
14936         gnumakefile: don't squelch _version output
14937         * top/GNUmakefile (_version): Create one-shot dependency rather
14938         than using $(shell) when version must be regenerated.
14939         (_autoreconf): Run verbosely, by default.
14940
14941         sys_time: avoid compiler warnings
14942         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14943         unconditional, fixing regression from 2010-03-29.
14944         Reported by Simon Josefsson.
14945
14946 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14947
14948         maint.mk: s/_header_without_use/_sc_header_without_use/
14949         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14950         (sc_prohibit_assert_without_use): Use the new name.
14951         (sc_prohibit_close_stream_without_use): Likewise.
14952         (sc_prohibit_getopt_without_use): Likewise.
14953         (sc_prohibit_quotearg_without_use): Likewise.
14954         (sc_prohibit_quote_without_use): Likewise.
14955         (sc_prohibit_long_options_without_use): Likewise.
14956         (sc_prohibit_inttostr_without_use): Likewise.
14957         (sc_prohibit_ignore_value_without_use): Likewise.
14958         (sc_prohibit_error_without_use): Likewise.
14959         (sc_prohibit_xalloc_without_use): Likewise.
14960         (sc_prohibit_hash_without_use): Likewise.
14961         (sc_prohibit_hash_pjw_without_use): Likewise.
14962         (sc_prohibit_safe_read_without_use): Likewise.
14963         (sc_prohibit_argmatch_without_use): Likewise.
14964         (sc_prohibit_canonicalize_without_use): Likewise.
14965         (sc_prohibit_root_dev_ino_without_use): Likewise.
14966         (sc_prohibit_openat_without_use): Likewise.
14967         (sc_prohibit_c_ctype_without_use): Likewise.
14968         (sc_prohibit_signal_without_use): Likewise.
14969         (sc_prohibit_intprops_without_use): Likewise.
14970
14971 2010-03-30  Eric Blake  <eblake@redhat.com>
14972
14973         maint: improve module indicators
14974         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14975         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14976         columns, and avoid extra macro expansion.
14977
14978         fdopendir: work around FreeBSD bug
14979         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14981         * modules/dirent (Makefile.am): Substitute it.
14982         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14983         declaration.
14984         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14985         fix.
14986         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14987
14988 2010-03-29  Bruno Haible  <bruno@clisp.org>
14989
14990         Emit #pragma system_header after the inclusion guard, not before.
14991         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14992         guard that spans the entire file, not before. This enables an
14993         optimization in GCC's preprocessor.
14994         * lib/ctype.in.h: Likewise.
14995         * lib/dirent.in.h: Likewise.
14996         * lib/errno.in.h: Likewise.
14997         * lib/float.in.h: Likewise.
14998         * lib/getopt.in.h: Likewise.
14999         * lib/iconv.in.h: Likewise.
15000         * lib/langinfo.in.h: Likewise.
15001         * lib/locale.in.h: Likewise.
15002         * lib/math.in.h: Likewise.
15003         * lib/netdb.in.h: Likewise.
15004         * lib/netinet_in.in.h: Likewise.
15005         * lib/pty.in.h: Likewise.
15006         * lib/sched.in.h: Likewise.
15007         * lib/se-selinux.in.h: Likewise.
15008         * lib/search.in.h: Likewise.
15009         * lib/spawn.in.h: Likewise.
15010         * lib/stdarg.in.h: Likewise.
15011         * lib/stdint.in.h: Likewise.
15012         * lib/string.in.h: Likewise.
15013         * lib/strings.in.h: Likewise.
15014         * lib/sys_file.in.h: Likewise.
15015         * lib/sys_ioctl.in.h: Likewise.
15016         * lib/sys_time.in.h: Likewise.
15017         * lib/sys_times.in.h: Likewise.
15018         * lib/sys_utsname.in.h: Likewise.
15019         * lib/sys_wait.in.h: Likewise.
15020         * lib/sysexits.in.h: Likewise.
15021         * lib/wctype.in.h: Likewise.
15022
15023 2010-03-28  James Youngman  <jay@gnu.org>
15024
15025         save-cwd: don't leak a file descriptor when the caller execs.
15026         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15027         saved file descriptor.
15028         * modules/save-cwd (Depends-on): Depend on cloexec.
15029
15030 2010-03-29  Bruno Haible  <bruno@clisp.org>
15031
15032         Remove vestiges of fts-lgpl module.
15033         * lib/fts_.h: Assume GNULIB_FTS is 1.
15034         * lib/fts.c: Likewise.
15035         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15036
15037 2010-03-28  Bruno Haible  <bruno@clisp.org>
15038
15039         Fix definition of tests witness macro.
15040         * gnulib-tool (func_import): Fix definition of witness macro.
15041
15042 2010-03-28  Bruno Haible  <bruno@clisp.org>
15043
15044         Fix ioctl's protoype on glibc systems.
15045         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15046         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15047         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15048         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15049         signature. If not, arrange to replace the ioctl function.
15050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15051         REPLACE_IOCTL.
15052         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15053         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15054         Reported by Ludovic Courtès <ludo@gnu.org>.
15055
15056 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15057
15058         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15059         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15060         made it so grep -r --include=GLOB* ... did not work.
15061
15062 2010-03-26  Jim Meyering  <meyering@redhat.com>
15063             Eric Blake  <eblake@redhat.com>
15064
15065         maint.mk: prohibit use of test's -o and -a operators
15066         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15067
15068 2010-03-28  Bruno Haible  <bruno@clisp.org>
15069
15070         Remove unused GNULIB_XYZ macro definitions.
15071         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15072         invocation.
15073
15074 2010-03-28  Bruno Haible  <bruno@clisp.org>
15075
15076         Mark privileged tests modules.
15077         * modules/idpriv-drop-tests (Status): New section.
15078         * modules/idpriv-droptemp-tests (Status): New section.
15079
15080 2010-03-28  Bruno Haible  <bruno@clisp.org>
15081
15082         Split C++ tests into separate tests modules.
15083         * modules/dirent-c++-tests: New file, extracted from
15084         modules/dirent-tests.
15085         * modules/dirent-tests: Depend on it.
15086         * modules/fcntl-h-c++-tests: New file, extracted from
15087         modules/fcntl-h-tests.
15088         * modules/fcntl-h-tests: Depend on it.
15089         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15090         * modules/glob-tests: Depend on it.
15091         * modules/iconv-h-c++-tests: New file, extracted from
15092         modules/iconv-h-tests.
15093         * modules/iconv-h-tests: Depend on it.
15094         * modules/langinfo-c++-tests: New file, extracted from
15095         modules/langinfo-tests.
15096         * modules/langinfo-tests: Depend on it.
15097         * modules/locale-c++-tests: New file, extracted from
15098         modules/locale-tests.
15099         * modules/locale-tests: Depend on it.
15100         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15101         * modules/math-tests: Depend on it.
15102         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15103         * modules/pty-tests: Depend on it.
15104         * modules/search-c++-tests: New file, extracted from
15105         modules/search-tests.
15106         * modules/search-tests: Depend on it.
15107         * modules/signal-c++-tests: New file, extracted from
15108         modules/signal-tests.
15109         * modules/signal-tests: Depend on it.
15110         * modules/spawn-c++-tests: New file, extracted from
15111         modules/spawn-tests.
15112         * modules/spawn-tests: Depend on it.
15113         * modules/stdio-c++-tests: New file, extracted from
15114         modules/stdio-tests.
15115         * modules/stdio-tests: Depend on it.
15116         * modules/stdlib-c++-tests: New file, extracted from
15117         modules/stdlib-tests.
15118         * modules/stdlib-tests: Depend on it.
15119         * modules/string-c++-tests: New file, extracted from
15120         modules/string-tests.
15121         * modules/string-tests: Depend on it.
15122         * modules/sys_ioctl-c++-tests: New file, extracted from
15123         modules/sys_ioctl-tests.
15124         * modules/sys_ioctl-tests: Depend on it.
15125         * modules/sys_select-c++-tests: New file, extracted from
15126         modules/sys_select-tests.
15127         * modules/sys_select-tests: Depend on it.
15128         * modules/sys_socket-c++-tests: New file, extracted from
15129         modules/sys_socket-tests.
15130         * modules/sys_socket-tests: Depend on it.
15131         * modules/sys_stat-c++-tests: New file, extracted from
15132         modules/sys_stat-tests.
15133         * modules/sys_stat-tests: Depend on it.
15134         * modules/sys_time-c++-tests: New file, extracted from
15135         modules/sys_time-tests.
15136         * modules/sys_time-tests: Depend on it.
15137         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15138         * modules/time-tests: Depend on it.
15139         * modules/unistd-c++-tests: New file, extracted from
15140         modules/unistd-tests.
15141         * modules/unistd-tests: Depend on it.
15142         * modules/wchar-c++-tests: New file, extracted from
15143         modules/wchar-tests.
15144         * modules/wchar-tests: Depend on it.
15145         * modules/wctype-c++-tests: New file, extracted from
15146         modules/wctype-tests.
15147         * modules/wctype-tests: Depend on it.
15148         Reported by Simon Josefsson.
15149
15150 2010-03-28  Bruno Haible  <bruno@clisp.org>
15151
15152         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15153         * gnulib-tool (func_exists_module): New function, extracted from
15154         func_verify_module.
15155         (func_verify_module): Use it.
15156         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15157         'foo' only if 'foo' exists.
15158         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15159         module.
15160
15161 2010-03-28  Bruno Haible  <bruno@clisp.org>
15162
15163         gnulib-tool: Add support for special categories of tests.
15164         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15165         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15166         (func_usage): Document them.
15167         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15168         inc_unportable_tests, inc_all_tests): New variables.
15169         (func_acceptable): Consider these variables.
15170         (func_modules_transitive_closure): Make it work when the 'Status' field
15171         consists of multiple words.
15172         (func_import): Store and restore the values of inc_cxx_tests,
15173         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15174         inc_all_tests in gnulib-comp.m4.
15175         (func_create_testdir): Set inc_all_tests to true.
15176         * doc/gnulib.texi (Extra tests modules): New section.
15177         Suggested by Jim Meyering.
15178
15179 2010-03-28  Bruno Haible  <bruno@clisp.org>
15180
15181         ansi-c++-opt: Allow turning off the C++ build by default.
15182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15183         gl_CXX_CHOICE_DEFAULT_NO is defined.
15184         Requested by Eric Blake.
15185
15186 2010-03-28  Bruno Haible  <bruno@clisp.org>
15187
15188         unistd: Avoid #define replacements in C++ mode.
15189         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15190         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15191         setsockopt, shutdown, select): In C++, attach a warning to the function
15192         if possible, rather than #defining the symbol to a dysfunctional alias.
15193         Reported by John W. Eaton <jwe@gnu.org>.
15194
15195 2010-03-28  Bruno Haible  <bruno@clisp.org>
15196
15197         Fix link errors on mingw.
15198         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15199         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15200         $(LIBSOCKET).
15201         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15202         $(LIBSOCKET).
15203
15204 2010-03-28  Bruno Haible  <bruno@clisp.org>
15205             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15206
15207         lib-ignore: Determine different options for different compilers.
15208         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15209         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15210         Add comments.
15211         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15212         * NEWS: Mention the change.
15213
15214 2010-03-27  Bruno Haible  <bruno@clisp.org>
15215
15216         Remove unused GNULIB_XYZ macro definitions.
15217         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15218         * modules/fseek (configure.ac): Likewise.
15219         * modules/ioctl (configure.ac): Likewise.
15220         * modules/open (configure.ac): Likewise.
15221         * modules/stdlib-safer (configure.ac): Likewise.
15222
15223 2010-03-27  Bruno Haible  <bruno@clisp.org>
15224
15225         Add a remark about certain modules.
15226         * modules/malloc (Comment): New section.
15227         * modules/realloc (Comment): Likewise.
15228         * modules/sigpipe (Comment): Likewise.
15229
15230 2010-03-27  Bruno Haible  <bruno@clisp.org>
15231
15232         Resolve conflict between the two kinds of module indicators.
15233         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15234         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15235         * modules/canonicalize (configure.ac): Invoke
15236         gl_MODULE_INDICATOR_FOR_TESTS.
15237         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15238         GNULIB_XYZ.
15239         * tests/test-dirent-c++.cc: Likewise.
15240         * tests/test-dirent-safer.c: Likewise.
15241         * tests/test-dup2.c: Likewise.
15242         * tests/test-fchdir.c: Likewise.
15243         * tests/test-fcntl-h-c++.cc: Likewise.
15244         * tests/test-getopt.c: Likewise.
15245         * tests/test-getopt.h: Likewise.
15246         * tests/test-langinfo-c++.cc: Likewise.
15247         * tests/test-locale-c++.cc: Likewise.
15248         * tests/test-math-c++.cc: Likewise.
15249         * tests/test-pty-c++.cc: Likewise.
15250         * tests/test-search-c++.cc: Likewise.
15251         * tests/test-signal-c++.cc: Likewise.
15252         * tests/test-spawn-c++.cc: Likewise.
15253         * tests/test-stdio-c++.cc: Likewise.
15254         * tests/test-stdlib-c++.cc: Likewise.
15255         * tests/test-string-c++.cc: Likewise.
15256         * tests/test-sys_ioctl-c++.cc: Likewise.
15257         * tests/test-sys_select-c++.cc: Likewise.
15258         * tests/test-sys_socket-c++.cc: Likewise.
15259         * tests/test-sys_stat-c++.cc: Likewise.
15260         * tests/test-sys_time-c++.cc: Likewise.
15261         * tests/test-time-c++.cc: Likewise.
15262         * tests/test-unistd-c++.cc: Likewise.
15263         * tests/test-wchar-c++.cc: Likewise.
15264         * tests/uninorm/test-u8-nfc.c: Likewise.
15265         * tests/uninorm/test-u8-nfd.c: Likewise.
15266         * tests/uninorm/test-u8-nfkc.c: Likewise.
15267         * tests/uninorm/test-u8-nfkd.c: Likewise.
15268         * tests/uninorm/test-u16-nfc.c: Likewise.
15269         * tests/uninorm/test-u16-nfd.c: Likewise.
15270         * tests/uninorm/test-u16-nfkc.c: Likewise.
15271         * tests/uninorm/test-u16-nfkd.c: Likewise.
15272         * tests/uninorm/test-u32-nfc.c: Likewise.
15273         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15274         * tests/uninorm/test-u32-nfd.c: Likewise.
15275         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15276         * tests/uninorm/test-u32-nfkc.c: Likewise.
15277         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15278         * tests/uninorm/test-u32-nfkd.c: Likewise.
15279         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15280         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15281
15282 2010-03-27  Bruno Haible  <bruno@clisp.org>
15283
15284         Distinguish two kinds of module indicators.
15285         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15286         gl_MODULE_INDICATOR.
15287         (gl_MODULE_INDICATOR): New macro.
15288         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15289         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15290         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15291         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15292         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15293         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15294         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15295         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15296         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15297         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15298         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15299         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15302         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15303         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15305         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15306         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15307         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15308         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15309         * modules/cloexec (configure.ac): Likewise.
15310         * modules/getopt-gnu (configure.ac): Likewise.
15311         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15312         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15313         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15314         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15315
15316 2010-03-27  Bruno Haible  <bruno@clisp.org>
15317
15318         New module description field 'Comment'.
15319         * gnulib-tool: New option --extract-comment.
15320         (func_usage): Document it.
15321         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15322         (func_get_comment): New function.
15323         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15324
15325 2010-03-27  Bruno Haible  <bruno@clisp.org>
15326
15327         Addendum to 2010-02-07 commit.
15328         * gnulib-tool (func_usage): Document --extract-applicability option.
15329
15330 2010-03-27  Bruno Haible  <bruno@clisp.org>
15331
15332         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15333         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15334         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15335         rather than link errors.
15336
15337 2010-03-27  Bruno Haible  <bruno@clisp.org>
15338
15339         Avoid side effects from tests-related modules on the compilation of lib.
15340         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15341         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15342         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15343         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15344         macro.
15345         (func_import): Define a witness macro. Assign it a value that depends
15346         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15347         tests-related modules.
15348         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15349         Reported by Jim Meyering.
15350
15351 2010-03-27  Bruno Haible  <bruno@clisp.org>
15352
15353         Factorize common .m4 code.
15354         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15355         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15356         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15357         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15358         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15359         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15360         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15361         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15362         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15363         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15364         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15365         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15366         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15367         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15368         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15369         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15370         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15371         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15373         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15374         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15376         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15377         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15378         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15379         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15380         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15382         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15383         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15384         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15385         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15386
15387 2010-03-27  Bruno Haible  <bruno@clisp.org>
15388
15389         Fix a compilation error on Cygwin with g++ >= 4.3.
15390         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15391         if it is undefined or if we alias it to chmod.
15392         (lstat): Don't warn about the use of this function if it is undefined
15393         or if we alias it to stat.
15394         Reported by Simon Josefsson.
15395
15396 2010-03-27  Bruno Haible  <bruno@clisp.org>
15397
15398         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15399         * modules/getlogin (configure.ac): Update.
15400
15401         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15402         * modules/getlogin_r (configure.ac): Update.
15403
15404         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15406         * modules/inet_ntop (configure.ac): Update.
15407
15408         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15409         * modules/inet_pton (configure.ac): Update.
15410
15411         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15412         * modules/mbslen (configure.ac): Update.
15413
15414         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15415         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15416         * modules/forkpty (configure.ac): Update.
15417         * modules/openpty (configure.ac): Update.
15418
15419 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15420
15421         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15422         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15423
15424 2010-03-25  Eric Blake  <eblake@redhat.com>
15425
15426         maint: use pragma consistently across replacement headers
15427         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15428         * lib/dirent.in.h (system_header): Likewise.
15429         * lib/errno.in.h (system_header): Likewise.
15430         * lib/float.in.h (system_header): Likewise.
15431         * lib/getopt.in.h (system_header): Likewise.
15432         * lib/iconv.in.h (system_header): Likewise.
15433         * lib/inttypes.in.h (system_header): Likewise.
15434         * lib/langinfo.in.h (system_header): Likewise.
15435         * lib/locale.in.h (system_header): Likewise.
15436         * lib/math.in.h (system_header): Likewise.
15437         * lib/netdb.in.h (system_header): Likewise.
15438         * lib/netinet_in.in.h (system_header): Likewise.
15439         * lib/pty.in.h (system_header): Likewise.
15440         * lib/sched.in.h (system_header): Likewise.
15441         * lib/se-selinux.in.h (system_header): Likewise.
15442         * lib/search.in.h (system_header): Likewise.
15443         * lib/spawn.in.h (system_header): Likewise.
15444         * lib/stdarg.in.h (system_header): Likewise.
15445         * lib/stdint.in.h (system_header): Likewise.
15446         * lib/string.in.h (system_header): Likewise.
15447         * lib/strings.in.h (system_header): Likewise.
15448         * lib/sys_file.in.h (system_header): Likewise.
15449         * lib/sys_ioctl.in.h (system_header): Likewise.
15450         * lib/sys_socket.in.h (system_header): Likewise.
15451         * lib/sys_times.in.h (system_header): Likewise.
15452         * lib/sys_utsname.in.h (system_header): Likewise.
15453         * lib/sys_wait.in.h (system_header): Likewise.
15454         * lib/sysexits.in.h (system_header): Likewise.
15455         * lib/unistd.in.h (system_header): Likewise.
15456         * lib/wctype.in.h (system_header): Likewise.
15457
15458         arpa/inet: fix mingw compilation warning
15459         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15460         Reported by Matthew Bolte.
15461
15462 2010-03-25  Bruno Haible  <bruno@clisp.org>
15463
15464         Avoid collision between gnulib wrapper and libintl wrapper.
15465         * lib/printf.c (printf): Don't define if a printf wrapper is already
15466         defined in intl/printf.c.
15467         Reported by Michel Boaventura <michel@michelboaventura.com>.
15468
15469 2010-03-25  Bruno Haible  <bruno@clisp.org>
15470
15471         Use ANSI C.
15472         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15473
15474 2010-03-25  Bruno Haible  <bruno@clisp.org>
15475
15476         Minor formatting changes.
15477         * lib/acosl.c: Insert space before function argument list.
15478         * lib/argz.c: Likewise.
15479         * lib/asinl.c: Likewise.
15480         * lib/expl.c: Likewise.
15481         * lib/gen-uni-tables.c: Likewise.
15482         * lib/gettext.h: Likewise.
15483         * lib/glthread/lock.h: Likewise.
15484         * lib/tanl.c: Likewise.
15485         * lib/uniname/uniname.c: Likewise.
15486         * tests/test-idpriv-drop.c: Likewise.
15487         * tests/test-idpriv-droptemp.c: Likewise.
15488         * tests/test-lock.c: Likewise.
15489         * tests/test-tls.c: Likewise.
15490         * lib/argp-help.c: Insert space before function-like macro argument
15491         list.
15492         * lib/memcmp.c: Likewise.
15493         * tests/test-base64.c: Likewise.
15494         * lib/localename.c: Insert space before sizeof's argument list.
15495         * lib/safe-alloc.h: Likewise.
15496         * lib/file-set.h: Insert space before macro argument list.
15497         * tests/test-argp.c: Likewise.
15498         * lib/argp-namefrob.h: Insert space before function parameter list.
15499         * lib/getaddrinfo.c: Likewise.
15500         * lib/netdb.in.h: Likewise.
15501         * lib/parse-duration.h: Likewise.
15502         * lib/parse-duration.c: Likewise.
15503         * lib/poll.c: Likewise.
15504         * lib/select.c: Likewise.
15505         * lib/trim.h: Likewise.
15506         * tests/test-usleep.c: Likewise.
15507         * lib/ldexpl.c: Insert space before function parameter list and before
15508         function argument list.
15509         * lib/logl.c: Likewise.
15510         * lib/sqrtl.c: Likewise.
15511         * lib/trim.c: Likewise.
15512         * lib/cosl.c: Use GNU style indentation. Insert space before function
15513         argument list.
15514         * lib/sinl.c: Likewise.
15515         * lib/tsearch.c: Insert space after 'for'.
15516         Reported by Jim Meyering.
15517
15518 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15519
15520         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15521         config header before grepping, as it's not present before
15522         autoreconf/configure are run.  Reported by Simon Josefsson.
15523
15524 2010-03-23  Bruno Haible  <bruno@clisp.org>
15525
15526         pt_chown: Make it work with automake < 1.11.
15527         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15528         Reported by Simon Josefsson.
15529
15530 2010-03-23  Bruno Haible  <bruno@clisp.org>
15531
15532         pt_chown: Don't depend on GPLed modules.
15533         * lib/pt_chown.c: Don't include idpriv.h.
15534         (main): Don't drop privileges.
15535         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15536         Reported by Simon Josefsson.
15537
15538 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15539
15540         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15541         suggestions from karl@freefriends.org (Karl Berry).
15542
15543 2010-03-22  Eric Blake  <eblake@redhat.com>
15544
15545         gethostname: further tweaks
15546         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15547         are overriding gethostname.
15548         Suggested by Bruno Haible.
15549
15550 2010-03-21  Bruno Haible  <bruno@clisp.org>
15551
15552         Fix comments.
15553         * lib/forkpty.c (rpl_forkpty): Fix comment.
15554         * lib/openpty.c (rpl_openpty): Likewise.
15555         Reported by Eric Blake.
15556
15557 2010-03-22  Eric Blake  <eblake@redhat.com>
15558
15559         gethostname: fix build on mingw
15560         * lib/unistd.in.h (includes): Work around fact that mingw
15561         <winsock2.h> re-includes <unistd.h>, by avoiding any
15562         redeclarations if we are being included by <winsock2.h>.
15563         Reported by Matthias Bolte.
15564
15565 2010-03-21  Bruno Haible  <bruno@clisp.org>
15566
15567         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15568         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15569         modifications.
15570         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15571         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15572         provide the replacement.
15573         * modules/forkpty (Depends-on): Add openpty, login_tty.
15574         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15575         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15576         * doc/glibc-functions/forkpty.texi: More supported platforms.
15577         * config/srclist.txt: Add forkpty.c (commented).
15578
15579 2010-03-21  Bruno Haible  <bruno@clisp.org>
15580
15581         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15582         (Makefile.am): Verify that PTY_LIB is defined.
15583
15584         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15585
15586 2010-03-21  Bruno Haible  <bruno@clisp.org>
15587
15588         Tests for module 'login_tty'.
15589         * modules/login_tty-tests: New file.
15590         * tests/test-login_tty.c: New file.
15591
15592         New module 'login_tty'.
15593         * lib/login_tty.c: New file.
15594         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15595         * modules/login_tty: New file.
15596         * doc/glibc-functions/login_tty.texi: Mention the new module.
15597
15598 2010-03-21  Bruno Haible  <bruno@clisp.org>
15599
15600         login_tty: Documentation.
15601         * doc/glibc-functions/login_tty.texi: New file.
15602         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15603
15604 2010-03-21  Bruno Haible  <bruno@clisp.org>
15605
15606         pty: Consistent macro naming.
15607         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15608         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15609         * modules/pty (configure.ac): Update.
15610
15611 2010-03-21  Bruno Haible  <bruno@clisp.org>
15612
15613         Tests for openpty: Make stricter.
15614         * tests/test-openpty.c (main): Add test of canonical processing and
15615         erase.
15616         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15617
15618         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15619         * lib/openpty.c (openpty): New replacement function.
15620         * lib/pty.in.h: Include <termios.h>.
15621         (openpty): Update declaration. Add comments.
15622         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15623         is not declared, arrange to provide the replacement. Check for _getpty
15624         and posix_openpt.
15625         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15626         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15627         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15628         * modules/pty-tests (test_pty_c___LDADD): New variable.
15629         * doc/glibc-functions/openpty.texi: More supported platforms.
15630
15631 2010-03-21  Bruno Haible  <bruno@clisp.org>
15632
15633         setenv: Tweaks.
15634         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15635         the test program.
15636         * doc/posix-functions/setenv.texi: Update platforms list.
15637
15638 2010-03-21  Bruno Haible  <bruno@clisp.org>
15639
15640         New module 'unlockpt'.
15641         * lib/unlockpt.c: New file, from glibc with modifications.
15642         * m4/unlockpt.m4: New file.
15643         * modules/unlockpt: New file.
15644         * lib/stdlib.in.h (unlockpt): New declaration.
15645         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15646         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15647         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15648         HAVE_UNLOCKPT.
15649         * doc/posix-functions/unlockpt.texi: Mention the new module.
15650         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15651         * config/srclist.txt: Add unlockpt.c (commented).
15652
15653 2010-03-21  Jim Meyering  <meyering@redhat.com>
15654
15655         maint.mk: prohibit inclusion of "intprops.h" without use
15656         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15657
15658 2010-03-21  Bruno Haible  <bruno@clisp.org>
15659
15660         New module 'grantpt'.
15661         * lib/grantpt.c: New file, from glibc with modifications.
15662         * m4/grantpt.m4: New file.
15663         * modules/grantpt: New file.
15664         * lib/stdlib.in.h (grantpt): New declaration.
15665         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15666         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15667         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15668         HAVE_GRANTPT.
15669         * doc/posix-functions/grantpt.texi: Mention the new module.
15670         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15671         * config/srclist.txt: Add grantpt.c (commented).
15672
15673 2010-03-21  Bruno Haible  <bruno@clisp.org>
15674
15675         New module 'pt_chown'.
15676         * lib/pt_chown.c: New file, from glibc with modifications.
15677         * lib/pty-private.h: New file, from glibc with modifications.
15678         * modules/pt_chown: New file.
15679         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15680
15681 2010-03-21  Bruno Haible  <bruno@clisp.org>
15682
15683         Tests for module 'ptsname'.
15684         * modules/ptsname-tests: New file.
15685         * tests/test-ptsname.c: New file.
15686
15687         New module 'ptsname'.
15688         * lib/ptsname.c: New file, from glibc with modifications.
15689         * m4/ptsname.m4: New file.
15690         * modules/ptsname: New file.
15691         * lib/stdlib.in.h (ptsname): New declaration.
15692         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15693         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15694         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15695         HAVE_PTSNAME.
15696         * doc/posix-functions/ptsname.texi: Mention the new module.
15697         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15698         * config/srclist.txt: Add ptsname.c (commented).
15699
15700 2010-03-21  Bruno Haible  <bruno@clisp.org>
15701
15702         Tests for module 'ttyname_r'.
15703         * modules/ttyname_r-tests: New file.
15704         * tests/test-ttyname_r.c: New file.
15705
15706         New module 'ttyname_r'.
15707         * lib/ttyname_r.c: New file.
15708         * m4/ttyname_r.m4: New file.
15709         * modules/ttyname_r: New file.
15710         * lib/unistd.in.h (ttyname_r): New declaration.
15711         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15712         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15713         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15714         HAVE_TTYNAME_R.
15715         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15716         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15717
15718 2010-03-20  Bruno Haible  <bruno@clisp.org>
15719
15720         signal: Undefine macro definitions in C++ mode.
15721         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15722         sigfillset): Undefine macro definitions from the system header in C++
15723         mode.
15724         Reported by John W. Eaton <jwe@gnu.org>.
15725
15726 2010-03-20  Bruno Haible  <bruno@clisp.org>
15727
15728         Ensure no #include statements inside extern "C" { ... }.
15729         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15730         contain #include statements.
15731         * lib/time.in.h: Likewise.
15732
15733 2010-03-20  Bruno Haible  <bruno@clisp.org>
15734
15735         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15736         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15737         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15738         Reported by John W. Eaton <jwe@gnu.org>.
15739
15740 2010-03-20  Bruno Haible  <bruno@clisp.org>
15741
15742         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15743         Reported by Jim Meyering.
15744
15745 2010-03-20  Bruno Haible  <bruno@clisp.org>
15746
15747         pipe: Set errno upon failure.
15748         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15749         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15750         errno value in error message.
15751
15752 2010-03-20  Bruno Haible  <bruno@clisp.org>
15753             Jim Meyering  <meyering@redhat.com>
15754
15755         lchown: Avoid "unused variable" warning.
15756         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15757
15758 2010-03-20  Bruno Haible  <bruno@clisp.org>
15759
15760         Work around unlink() bug on MacOS X 10.5.6.
15761         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15762         attempting to unlink a parent directory.
15763         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15764         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15765         activate for the replacement function.
15766         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15767
15768 2010-03-20  Bruno Haible  <bruno@clisp.org>
15769
15770         Fix link errors on Solaris 8.
15771         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15772         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15773
15774 2010-03-19  Jim Meyering  <meyering@redhat.com>
15775
15776         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15777         The _LIBC implementation of build_range_exp correctly honors the
15778         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15779         However, the non-_LIBC implementation would ignore that syntax-bit
15780         flag and return REG_ERANGE unconditionally.
15781         This change makes it honor that flag.
15782         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15783         Make two pointer parameters "const".
15784         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15785         (parse_bracket_exp): Update caller.
15786
15787         regex.m4: correct the reversed range endpoint ([b-a]) test
15788         * m4/regex.m4: When requiring that [b-a] evoke failure,
15789         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15790         test pass once again for x86-based systems.
15791
15792 2010-03-19  Bruno Haible  <bruno@clisp.org>
15793
15794         scandir: Fix link error on Solaris 8.
15795         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15796         macros.
15797
15798 2010-03-19  Bruno Haible  <bruno@clisp.org>
15799
15800         getusershell: Fix documentation.
15801         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15802         module.
15803         * doc/glibc-functions/setusershell.texi: Likewise.
15804
15805         getusershell: Provide declaration, missing on Solaris 9.
15806         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15807         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15808         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15809         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15811         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15812         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15813         HAVE_GETUSERSHELL.
15814         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15815
15816 2010-03-19  Bruno Haible  <bruno@clisp.org>
15817
15818         wctype: Provide iswblank function.
15819         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15820         exists and is fine.
15821         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15822         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15823         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15824         * doc/posix-functions/iswblank.texi: Update.
15825
15826 2010-03-19  Bruno Haible  <bruno@clisp.org>
15827
15828         Tests of module 'pty' in C++ mode.
15829         * modules/pty-tests: New file.
15830         * tests/test-pty-c++.cc: New file.
15831         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15832
15833 2010-03-19  Eric Blake  <eblake@redhat.com>
15834
15835         logb: fix documentation
15836         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15837         1.5 declaration bug.
15838
15839         forkpty, openpty: prefer glibc's const-safe prototype
15840         * lib/forkpty.c (rpl_forkpty): New file.
15841         * lib/openpty.c (rpl_openpty): Likewise.
15842         * modules/forkpty (Files): Distribute it.
15843         * modules/openpty (Files): Likewise.
15844         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15845         check...
15846         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15847         replacement for for non-const BSD signature.
15848         * modules/pty (Makefile.am): Substitute witnesses.
15849         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15850         * tests/test-forkpty.c: Update signature check.
15851         * tests/test-openpty.c: Likewise.
15852         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15853         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15854
15855         forkpty, openpty: split functions into new modules
15856         * modules/pty (Makefile.am): Substitute new witnesses.
15857         (Libraries): Move library detection...
15858         * modules/forkpty: ...into new module.
15859         * modules/openpty: Another new module.
15860         * modules/pty-tests: Rename and split...
15861         * modules/forkpty-tests: ...to this...
15862         * modules/openpty-tests: ...and this.
15863         * tests/test-pty.c: Rename and split...
15864         * tests/test-forkpty.c: ...to this...
15865         * tests/test-openpty.c: ...and this.
15866         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15867         (gl_PTY): Split library searching...
15868         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15869         (gl_FORKPTY, gl_OPENPTY): New macros.
15870         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15871         * NEWS: Mention the split.
15872         * MODULES.html.sh (Misc): Document the modules.
15873         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15874         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15875
15876         pty: improve replacement header
15877         * lib/pty.in.h: New file.
15878         * modules/pty (Files): Ship it.
15879         (Makefile.am): Always build replacement.
15880         * m4/pty.m4: Rename...
15881         * m4/pty_h.m4: ...to this.
15882         (gl_PTY): Modernize setting of witness macros; update check of
15883         forkpty to take proper advantage of cache.
15884         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15885
15886         getopt: avoid compiler warning
15887         * lib/getopt.c (attribute_hidden): Remove unused macro.
15888
15889 2010-03-18  Bruno Haible  <bruno@clisp.org>
15890
15891         Fix link errors on Solaris 8.
15892         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15893         * modules/search-tests (test_search_c___LDADD): Likewise.
15894         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15895         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15896         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15897         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15898         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15899         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15900         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15901
15902 2010-03-18  Bruno Haible  <bruno@clisp.org>
15903
15904         Fix bug introduced on 2010-03-14.
15905         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15906         (gl_SPAWN_H): Require it.
15907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15908         Reported by Simon Josefsson.
15909
15910 2010-03-18  Bruno Haible  <bruno@clisp.org>
15911
15912         Fix typo introduced on 2009-12-31.
15913         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15914         posix_spawn_file_actions_adddup2.
15915
15916 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15917         and Eric Blake  <eblake@redhat.com>
15918
15919         test-vc-list-files-git: make more robust
15920         * tests/test-vc-list-files-git.sh: Unset problematic environment
15921         variables.  Chain commands together.
15922
15923 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15924
15925         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15926         `AC_CHECK_DECL' invocation.
15927
15928 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15929
15930         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15931         appears before executable statements. Suggested by Petr Sumbera
15932         <Petr.Sumbera@Sun.COM>.
15933
15934 2010-03-14  Bruno Haible  <bruno@clisp.org>
15935
15936         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15937         portability problems. Instead use a simpler test.
15938         (main): Check that invalid arguments are rejected only on Linux.
15939
15940 2010-03-14  Bruno Haible  <bruno@clisp.org>
15941
15942         Fix bug introduced on 2009-12-31.
15943         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15944         gl_PREREQ_SYS_H_WINSOCK2 always.
15945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15946         SYS_SOCKET_H variable.
15947         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15948         Update comments.
15949         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15950         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15951         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15952         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15953         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15954
15955 2010-03-14  Bruno Haible  <bruno@clisp.org>
15956
15957         Fix values returned by sinl, cosl.
15958         * lib/trigl.h: Add specification comments.
15959         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15960         that combines the values from the precomputed table with the values of
15961         the Chebyshev polynomials.
15962
15963 2010-03-14  Bruno Haible  <bruno@clisp.org>
15964
15965         Fix compilation error when modules 'posix_spawn[p]' are not used.
15966         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15968
15969 2010-03-14  Bruno Haible  <bruno@clisp.org>
15970
15971         Fix compilation error on mingw when module 'time_r' is not used.
15972         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15973         is 1.
15974         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15975         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15976         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15977         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15978
15979 2010-03-14  Bruno Haible  <bruno@clisp.org>
15980
15981         Fix compilation error with Sun C.
15982         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15983         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15984         instead of GCC specific ULONG_LONG_MAX.
15985         * lib/xstrtoll.c: Likewise.
15986         * lib/xstrtoull.c: Likewise.
15987
15988 2010-03-13  Bruno Haible  <bruno@clisp.org>
15989
15990         Allow the user to disable C++ code and tests.
15991         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15992         (gl_PROG_ANSI_CXX): Require it.
15993
15994 2010-03-13  Bruno Haible  <bruno@clisp.org>
15995
15996         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15997         cases.
15998
15999 2010-03-13  Bruno Haible  <bruno@clisp.org>
16000
16001         Test that gnulib does not break the standard C++ headers.
16002         * tests/test-locale-c++2.cc: New file.
16003         * modules/locale-tests (Files): Add it.
16004         (Makefile.am): Compile it for test-locale-c++.
16005         * tests/test-math-c++2.cc: New file.
16006         * modules/math-tests (Files): Add it.
16007         (Makefile.am): Compile it for test-math-c++.
16008         * tests/test-signal-c++2.cc: New file.
16009         * modules/signal-tests (Files): Add it.
16010         (Makefile.am): Compile it for test-signal-c++.
16011         * tests/test-stdio-c++2.cc: New file.
16012         * modules/stdio-tests (Files): Add it.
16013         (Makefile.am): Compile it for test-stdio-c++.
16014         * tests/test-stdlib-c++2.cc: New file.
16015         * modules/stdlib-tests (Files): Add it.
16016         (Makefile.am): Compile it for test-stdlib-c++.
16017         * tests/test-string-c++2.cc: New file.
16018         * modules/string-tests (Files): Add it.
16019         (Makefile.am): Compile it for test-string-c++.
16020         * tests/test-time-c++2.cc: New file.
16021         * modules/time-tests (Files): Add it.
16022         (Makefile.am): Compile it for test-time-c++.
16023         Reported by John W. Eaton <jwe@gnu.org>.
16024
16025 2010-03-13  Bruno Haible  <bruno@clisp.org>
16026
16027         * gnulib-tool (func_usage): Clarify which options are available for
16028         --create-testdir and --create-megatestdir.
16029
16030 2010-03-13  Bruno Haible  <bruno@clisp.org>
16031
16032         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16033         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16034         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16035         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16036         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16037         when appropriate.
16038         Reported by Jim Meyering.
16039
16040 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16041
16042         * gnulib-tool (func_import): Explain origin of code.
16043
16044 2010-03-12  Bruno Haible  <bruno@clisp.org>
16045
16046         Fix problem with automake's definition of CXXLINK.
16047         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16048         Reported by Simon Josefsson and Ludovic Courtès.
16049
16050 2010-03-12  Bruno Haible  <bruno@clisp.org>
16051
16052         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16053         stable releases.
16054
16055 2010-03-11  Bruno Haible  <bruno@clisp.org>
16056
16057         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16058         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16059         whether the system provides one variant or multiple variants of the
16060         function.
16061         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16062         C++ compilers.
16063         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16064         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16065         Reported by Jim Meyering.
16066
16067 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16068
16069         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16070
16071 2010-03-08  Bruno Haible  <bruno@clisp.org>
16072
16073         gnulib-tool: Add support for --libtool in --create-testdir.
16074         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16075         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16076
16077 2010-03-08  Eric Blake  <eblake@redhat.com>
16078
16079         gnulib-tool.texi: mention possibility of git submodule
16080         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16081         submodules.
16082         * doc/.gitignore: Ignore another generated file.
16083
16084 2010-03-08  Karl Berry  <karl@gnu.org>
16085
16086         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16087         of committing gnulib files while skipping others.
16088
16089 2010-03-07  Bruno Haible  <bruno@clisp.org>
16090
16091         Tests of module 'wctype' in C++ mode.
16092         * tests/test-wctype-c++.cc: New file.
16093         * modules/wctype-tests (Files): Add it and tests/signature.h.
16094         (Depends-on): Add ansi-c++-opt.
16095         (Makefile.am): Arrange to compile and run test-wctype-c++.
16096
16097         Tests of module 'wchar' in C++ mode.
16098         * tests/test-wchar-c++.cc: New file.
16099         * modules/wchar-tests (Files): Add it and tests/signature.h.
16100         (Depends-on): Add ansi-c++-opt.
16101         (Makefile.am): Arrange to compile and run test-wchar-c++.
16102         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16103         gl_MODULE_INDICATOR.
16104
16105         Tests of module 'unistd' in C++ mode.
16106         * tests/test-unistd-c++.cc: New file.
16107         * modules/unistd-tests (Files): Add it and tests/signature.h.
16108         (Depends-on): Add ansi-c++-opt.
16109         (Makefile.am): Arrange to compile and run test-unistd-c++.
16110         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16111         gl_MODULE_INDICATOR.
16112
16113         Tests of module 'time' in C++ mode.
16114         * tests/test-time-c++.cc: New file.
16115         * modules/time-tests (Files): Add it and tests/signature.h.
16116         (Depends-on): Add ansi-c++-opt.
16117         (Makefile.am): Arrange to compile and run test-time-c++.
16118         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16119
16120         Tests of module 'sys_time' in C++ mode.
16121         * tests/test-sys_time-c++.cc: New file.
16122         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16123         (Depends-on): Add ansi-c++-opt.
16124         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16125         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16126         gl_MODULE_INDICATOR.
16127
16128         Tests of module 'sys_stat' in C++ mode.
16129         * tests/test-sys_stat-c++.cc: New file.
16130         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16131         (Depends-on): Add ansi-c++-opt.
16132         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16133         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16134         gl_MODULE_INDICATOR.
16135
16136         Tests of module 'sys_socket' in C++ mode.
16137         * tests/test-sys_socket-c++.cc: New file.
16138         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16139         (Depends-on): Add ansi-c++-opt.
16140         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16141         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16142         gl_MODULE_INDICATOR.
16143
16144         Tests of module 'sys_select' in C++ mode.
16145         * tests/test-sys_select-c++.cc: New file.
16146         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16147         (Depends-on): Add ansi-c++-opt.
16148         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16149         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16150         gl_MODULE_INDICATOR.
16151
16152         Tests of module 'sys_ioctl' in C++ mode.
16153         * tests/test-sys_ioctl-c++.cc: New file.
16154         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16155         (Depends-on): Add ansi-c++-opt.
16156         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16157         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16158         gl_MODULE_INDICATOR.
16159
16160         Tests of module 'string' in C++ mode.
16161         * tests/test-string-c++.cc: New file.
16162         * modules/string-tests (Files): Add it and tests/signature.h.
16163         (Depends-on): Add ansi-c++-opt.
16164         (Makefile.am): Arrange to compile and run test-string-c++.
16165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16166         gl_MODULE_INDICATOR.
16167
16168         Tests of module 'stdlib' in C++ mode.
16169         * tests/test-stdlib-c++.cc: New file.
16170         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16171         (Depends-on): Add ansi-c++-opt.
16172         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16173         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16174         gl_MODULE_INDICATOR.
16175
16176         Tests of module 'stdio' in C++ mode.
16177         * tests/test-stdio-c++.cc: New file.
16178         * modules/stdio-tests (Files): Add it and tests/signature.h.
16179         (Depends-on): Add ansi-c++-opt.
16180         (Makefile.am): Arrange to compile and run test-stdio-c++.
16181         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16182         gl_MODULE_INDICATOR.
16183
16184         Tests of module 'spawn' in C++ mode.
16185         * tests/test-spawn-c++.cc: New file.
16186         * modules/spawn-tests (Files): Add it and tests/signature.h.
16187         (Depends-on): Add ansi-c++-opt.
16188         (Makefile.am): Arrange to compile and run test-spawn-c++.
16189         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16190         gl_MODULE_INDICATOR.
16191
16192         Tests of module 'signal' in C++ mode.
16193         * tests/test-signal-c++.cc: New file.
16194         * modules/signal-tests (Files): Add it and tests/signature.h.
16195         (Depends-on): Add ansi-c++-opt.
16196         (Makefile.am): Arrange to compile and run test-signal-c++.
16197         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16198         gl_MODULE_INDICATOR.
16199
16200         Tests of module 'search' in C++ mode.
16201         * tests/test-search-c++.cc: New file.
16202         * modules/search-tests (Files): Add it and tests/signature.h.
16203         (Depends-on): Add ansi-c++-opt.
16204         (Makefile.am): Arrange to compile and run test-search-c++.
16205         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16206         gl_MODULE_INDICATOR.
16207
16208         Tests of module 'math' in C++ mode.
16209         * tests/test-math-c++.cc: New file.
16210         * modules/math-tests (Files): Add it and tests/signature.h.
16211         (Depends-on): Add ansi-c++-opt.
16212         (Makefile.am): Arrange to compile and run test-math-c++.
16213         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16214
16215         Tests of module 'locale' in C++ mode.
16216         * tests/test-locale-c++.cc: New file.
16217         * modules/locale-tests (Files): Add it and tests/signature.h.
16218         (Depends-on): Add ansi-c++-opt.
16219         (Makefile.am): Arrange to compile and run test-locale-c++.
16220         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16221         gl_MODULE_INDICATOR.
16222
16223         Tests of module 'langinfo' in C++ mode.
16224         * tests/test-langinfo-c++.cc: New file.
16225         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16226         (Depends-on): Add ansi-c++-opt.
16227         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16228         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16229         gl_MODULE_INDICATOR.
16230
16231         Tests of module 'iconv-h' in C++ mode.
16232         * tests/test-iconv-h-c++.cc: New file.
16233         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16234         (Depends-on): Add ansi-c++-opt.
16235         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16236
16237         Tests of module 'glob' in C++ mode.
16238         * tests/test-glob-c++.cc: New file.
16239         * modules/glob-tests (Files): Add it.
16240         (Depends-on): Add ansi-c++-opt.
16241         (Makefile.am): Arrange to compile and run test-glob-c++.
16242
16243         Tests of module 'fcntl-h' in C++ mode.
16244         * tests/test-fcntl-h-c++.cc: New file.
16245         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16246         (Depends-on): Add ansi-c++-opt.
16247         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16248         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16249         gl_MODULE_INDICATOR.
16250
16251         Tests of module 'dirent' in C++ mode.
16252         * tests/test-dirent-c++.cc: New file.
16253         * modules/dirent-tests (Files): Add it and tests/signature.h.
16254         (Depends-on): Add ansi-c++-opt.
16255         (Makefile.am): Arrange to compile and run test-dirent-c++.
16256         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16257         gl_MODULE_INDICATOR.
16258
16259         New module 'ansi-c++-opt'.
16260         * modules/ansi-c++-opt: New file.
16261         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16262
16263         Document C++ namespace mode.
16264         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16265
16266         wctype: Avoid #define replacements in C++ mode.
16267         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16268         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16269         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16270         In C++, define a namespaced alias symbol.
16271         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16272         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16273         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16274         rule.
16275
16276         wchar: Avoid #define replacements in C++ mode.
16277         * lib/wchar.in.h: Include c++defs.h.
16278         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16279         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16280         symbol.
16281         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16282         * modules/wchar (Depends-on): Add c++defs.
16283         (Makefile.am): Update wchar.h rule.
16284
16285         unistd: Avoid #define replacements in C++ mode.
16286         * lib/unistd.in.h: Include c++defs.h.
16287         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16288         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16289         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16290         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16291         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16292         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16293         symbol.
16294         (environ): Update.
16295         * modules/unistd (Depends-on): Add c++defs.
16296         (Makefile.am): Update unistd.h rule.
16297
16298         time: Avoid #define replacements in C++ mode.
16299         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16300         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16301         define a namespaced alias symbol.
16302         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16303         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16304         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16305         * modules/time (Depends-on): Add c++defs, warn-on-use.
16306         (Makefile.am): Update time.h rule.
16307         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16308         * modules/nanosleep (configure.ac): Likewise.
16309         * modules/strptime (configure.ac): Likewise.
16310         * modules/timegm (configure.ac): Likewise.
16311
16312         sys_time: Avoid #define replacements in C++ mode.
16313         * lib/sys_time.in.h: Include c++defs.h.
16314         (gettimeofday): In C++, define a namespaced alias symbol.
16315         * modules/sys_time (Depends-on): Add c++defs.
16316         (Makefile.am): Update sys/time.h rule.
16317
16318         sys_stat: Avoid #define replacements in C++ mode.
16319         * lib/sys_stat.in.h: Include c++defs.h.
16320         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16321         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16322         namespaced alias symbol.
16323         In C++, define a namespaced alias symbol.
16324         * modules/sys_stat (Depends-on): Add c++defs.
16325         (Makefile.am): Update sys/stat.h rule.
16326
16327         sys_socket: Avoid #define replacements in C++ mode.
16328         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16329         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16330         definitions also when the system has a <sys/socket.h>.
16331         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16332         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16333         In C++, define a namespaced alias symbol.
16334         * modules/sys_socket (Depends-on): Add c++defs.
16335         (Makefile.am): Update sys/socket.h rule.
16336
16337         sys_select: Avoid #define replacements in C++ mode.
16338         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16339         definitions also when the system has a <sys/select.h>.
16340         (select): In C++, define a namespaced alias symbol.
16341         * modules/sys_select (Depends-on): Add c++defs.
16342         (Makefile.am): Update sys/select.h rule.
16343
16344         sys_ioctl: Avoid #define replacements in C++ mode.
16345         * lib/sys_ioctl.in.h: Include c++defs.h.
16346         (ioctl): In C++, define a namespaced alias symbol.
16347         * modules/sys_ioctl (Depends-on): Add c++defs.
16348         (Makefile.am): Update sys/ioctl.h rule.
16349
16350         string: Avoid #define replacements in C++ mode.
16351         * lib/string.in.h: Include c++defs.h.
16352         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16353         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16354         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16355         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16356         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16357         * modules/string (Depends-on): Add c++defs.
16358         (Makefile.am): Update string.h rule.
16359
16360         stdlib: Avoid #define replacements in C++ mode.
16361         * lib/stdlib.in.h: Include c++defs.h.
16362         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16363         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16364         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16365         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16366         symbol.
16367         * modules/stdlib (Depends-on): Add c++defs.
16368         (Makefile.am): Update stdlib.h rule.
16369
16370         stdio: Avoid #define replacements in C++ mode.
16371         * lib/stdio.in.h: Include c++defs.h.
16372         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16373         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16374         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16375         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16376         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16377         namespaced alias symbol.
16378         * modules/stdio (Depends-on): Add c++defs.
16379         (Makefile.am): Update stdio.h rule.
16380
16381         spawn: Avoid #define replacements in C++ mode.
16382         * lib/spawn.in.h: Include c++defs.h.
16383         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16384         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16385         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16386         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16387         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16388         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16389         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16390         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16391         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16392         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16393         In C++, define a namespaced alias symbol.
16394         * modules/spawn (Depends-on): Add c++defs.
16395         (Makefile.am): Update spawn.h rule.
16396
16397         signal: Avoid #define replacements in C++ mode.
16398         * lib/signal.in.h: Include c++defs.h.
16399         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16400         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16401         namespaced alias symbol.
16402         * modules/signal (Depends-on): Add c++defs.
16403         (Makefile.am): Update signal.h rule.
16404
16405         search: Avoid #define replacements in C++ mode.
16406         * lib/search.in.h: Include c++defs.h.
16407         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16408         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16409         symbol.
16410         * modules/search (Depends-on): Add c++defs.
16411         (Makefile.am): Update search.h rule.
16412
16413         math: Avoid #define replacements in C++ mode.
16414         * lib/math.in.h: Include c++defs.h.
16415         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16416         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16417         trunc, truncl): In C++, define a namespaced alias symbol.
16418         * modules/math (Depends-on): Add c++defs.
16419         (Makefile.am): Update math.h rule.
16420
16421         locale: Avoid #define replacements in C++ mode.
16422         * lib/locale.in.h: Include c++defs.h.
16423         (duplocale): In C++, define a namespaced alias symbol.
16424         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16425         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16426         * modules/locale (Depends-on): Add c++defs.
16427         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16428
16429         langinfo: Avoid #define replacements in C++ mode.
16430         * lib/langinfo.in.h: Include c++defs.h.
16431         (nl_langinfo): In C++, define a namespaced alias symbol.
16432         * modules/langinfo (Depends-on): Add c++defs.
16433         (Makefile.am): Update langinfo.h rule.
16434
16435         iconv-h: Avoid #define replacements in C++ mode.
16436         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16437         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16438         symbol.
16439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16440         whenever iconv is present.
16441         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16442         (Makefile.am): Update iconv.h rule.
16443
16444         glob: Avoid #define replacements in C++ mode.
16445         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16446         (_gl_glob_errfunc_fn): New type.
16447         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16448         symbol.
16449         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16450         (Makefile.am): Update glob.h rule.
16451
16452         fcntl-h: Avoid #define replacements in C++ mode.
16453         * lib/fcntl.in.h: Include c++defs.h.
16454         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16455         * modules/fcntl-h (Depends-on): Add c++defs.
16456         (Makefile.am): Update fcntl.h rule.
16457
16458         dirent: Avoid #define replacements in C++ mode.
16459         * lib/dirent.in.h: Include c++defs.h.
16460         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16461         namespaced alias symbol.
16462         (dirfd): Update declaration.
16463         * modules/dirent (Depends-on): Add c++defs.
16464         (Makefile.am): Update dirent.h rule.
16465
16466         ctype: Make it usable in C++ code.
16467         * lib/ctype.in.h: Include c++defs.h.
16468         (isblank): Declare as extern "C".
16469         * modules/ctype (Depends-on): Add c++defs.
16470         (Makefile.am): Update ctype.h rule.
16471
16472         New module 'c++defs'.
16473         * modules/c++defs: New file.
16474         * build-aux/c++defs.h: New file.
16475         Reported by John W. Eaton <jwe@gnu.org>.
16476
16477 2010-03-07  Bruno Haible  <bruno@clisp.org>
16478
16479         logb: Provide missing declaration for Cygwin.
16480         * lib/math.in.h (logb): New declaration.
16481         * m4/logb.m4: New file.
16482         * modules/logb (Files): Add m4/logb.m4.
16483         (Depends-on): Add math.
16484         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16485         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16487         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16488         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16489
16490 2010-03-07  Bruno Haible  <bruno@clisp.org>
16491
16492         Fix test-cond link error.
16493         * tests/test-cond.c: Include <stdio.h>.
16494
16495 2010-03-07  Bruno Haible  <bruno@clisp.org>
16496
16497         Fix test-dirent-safer link error.
16498         * modules/dirent-safer-tests (Makefile.am): Define
16499         test_dirent_safer_LDADD.
16500
16501 2010-03-07  Bruno Haible  <bruno@clisp.org>
16502
16503         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16504         among default module list.
16505
16506 2010-03-07  Bruno Haible  <bruno@clisp.org>
16507
16508         Fix link error on platforms with GNU libiconv.
16509         * modules/unistr/u8-strcoll-tests (Makefile): Define
16510         test_u8_strcoll_LDADD.
16511         * modules/unistr/u16-strcoll-tests (Makefile): Define
16512         test_u16_strcoll_LDADD.
16513         * modules/unistr/u32-strcoll-tests (Makefile): Define
16514         test_u32_strcoll_LDADD.
16515
16516 2010-03-07  Bruno Haible  <bruno@clisp.org>
16517
16518         Use POSIX declarations for socket functions.
16519         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16520         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16521         rpl_sendto): Change declaration to match POSIX.
16522         * lib/connect.c (rpl_connect): Likewise.
16523         * lib/accept.c (rpl_accept): Likewise.
16524         * lib/bind.c (rpl_bind): Likewise.
16525         * lib/getpeername.c (rpl_getpeername): Likewise.
16526         * lib/getsockname.c (rpl_getsockname): Likewise.
16527         * lib/recv.c (rpl_recv): Likewise.
16528         * lib/send.c (rpl_send): Likewise.
16529         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16530         * lib/sendto.c (rpl_sendto): Likewise.
16531
16532 2010-03-06  Bruno Haible  <bruno@clisp.org>
16533
16534         Clarify access, euidaccess, faccessat.
16535         * doc/posix-functions/faccessat.texi: Mention security problem under
16536         "Other problems", not "Portability problems".
16537         * doc/posix-functions/access.texi: Likewise. Mention a related security
16538         problem.
16539         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16540         * lib/euidaccess.c: Add comments about platforms.
16541         * lib/unistd.in.h (access, euidaccess): Add warnings.
16542
16543 2010-03-07  Bruno Haible  <bruno@clisp.org>
16544
16545         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16546         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16547         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16548         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16549         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16550         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16551         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16552         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16553         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16555         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16556         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16557         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16558         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16559         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16560         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16561         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16562         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16563         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16564         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16565         Likewise.
16566         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16567         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16568         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16569         Likewise.
16570         * tests/test-spawn.c (main): Make it work when
16571         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16572
16573 2010-03-07  Bruno Haible  <bruno@clisp.org>
16574
16575         Fix incorrect Makefile.am generation in German locale.
16576         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16577         Execute sed command with character range in C locale.
16578
16579 2010-03-06  Bruno Haible  <bruno@clisp.org>
16580
16581         Tests for module 'iconv-h'.
16582         * modules/iconv-h-tests: New file.
16583         * tests/test-iconv-h.c: New file.
16584
16585         New module 'iconv-h'.
16586         * modules/iconv-h: New file.
16587         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16588         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16589         (configure.ac): Remove gl_ICONV_H.
16590         (Makefile.am): Remove rule for iconv.h.
16591
16592 2010-03-06  Bruno Haible  <bruno@clisp.org>
16593
16594         More consistent naming of *.m4 files.
16595         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16596         * modules/wctype (Files): Update.
16597
16598         More consistent naming of *.m4 files.
16599         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16600         * modules/wchar (Files): Update.
16601
16602 2010-03-06  Jim Meyering  <meyering@redhat.com>
16603
16604         euidaccess: relax license to LGPLv2+
16605         * modules/euidaccess (License): Relax to LGPLv2+.
16606
16607 2010-03-06  Bruno Haible  <bruno@clisp.org>
16608
16609         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16610         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16611         (Makefile.am): Augment lib_SOURCES instead.
16612
16613 2010-03-04  Jim Meyering  <meyering@redhat.com>
16614
16615         utime: remove obsolete module
16616         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16617         unnecessary for years, and has been marked as obsolete for 10 months.
16618         * modules/utime: Remove file.
16619         * lib/utime.c: Remove file.
16620         * m4/utime.m4: Remove file.
16621         * m4/utimes-null.m4: Remove file.
16622         * doc/posix-functions/utime.texi (utime): Remove reference to
16623         the module.  Move the sole "fixed by gnulib" item into the
16624         "problems not fixed by Gnulib" list.
16625         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16626
16627 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16628
16629         * modules/exit (License): Relax license to LGPLv2+.
16630         (Status): Mark as obsolete.
16631         * NEWS: Mention deprecated 'exit' module.
16632         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16633         of now obsolete 'exit'.
16634
16635 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16636
16637         fts-lgpl: remove unused module
16638         * modules/fts-lgpl: Remove.
16639         * MODULES.html.sh (func_all_modules): Adjust.
16640         * check-module (find_included_lib_files): Adjust.
16641         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16642
16643 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16644
16645         copy-acl: enhance Solaris ACL error handling
16646         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16647         * lib/set-mode-acl.c (qset_acl): Likewise.
16648
16649 2010-03-02  Bruno Haible  <bruno@clisp.org>
16650
16651         spawn: Don't override the system defined values on FreeBSD 8.
16652         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16653         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16654         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16655         if HAVE_POSIX_SPAWN is 1.
16656         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16657
16658 2010-03-01  Bruno Haible  <bruno@clisp.org>
16659
16660         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16661         regarding Automake.
16662
16663 2010-02-25  Bruno Haible  <bruno@clisp.org>
16664
16665         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16666         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16667         setting, not afterwards.
16668         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16669
16670 2010-02-24  Eric Blake  <eblake@redhat.com>
16671
16672         bootstrap, git-version-gen: use timestamp
16673         * build-aux/git-version-gen (scriptversion): Force UTC.
16674         * build-aux/bootstrap (scriptversion): New variable.
16675
16676         bootstrap: allow older git
16677         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16678         older than 1.6.4.  Requested by the libvirt project.
16679
16680 2010-02-23  Eric Blake  <eblake@redhat.com>
16681
16682         warn-on-use: work with old autoconf
16683         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16684         AS_VAR semantics of autoconf 2.60.
16685         Reported by Bruno Haible.
16686
16687         bootstrap: improve some comments
16688         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16689         clarification comments.
16690
16691         gettimeofday: provide correct function
16692         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16693         when replacement is declared, otherwise provide gettimeofday.
16694         Reported by Michael Goffioul.
16695
16696 2010-02-23  Jim Meyering  <meyering@redhat.com>
16697
16698         lib-ignore: relax license to "unlimited", not LGPLv2+
16699         * modules/lib-ignore (License): Relax to "unlimited".
16700
16701 2010-02-23  Jim Meyering  <meyering@redhat.com>
16702
16703         lib-ignore: relax license to LGPLv2+
16704         * modules/lib-ignore (License): Relax to LGPLv2+.
16705
16706 2010-02-22  Eric Blake  <eblake@redhat.com>
16707
16708         lseek: avoid bash 3.2 broken pipe bug
16709         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16710         warning from bash 3.2.
16711         Reported by Ben Pfaff, with analysis from Bruno Haible.
16712
16713         bootstrap: support non-FSF copyright holder
16714         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16715         bootstrap.conf override of COPYRIGHT_HOLDER.
16716         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16717
16718         bootstrap: interoperate with gettext 0.14.1
16719         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16720
16721         bootstrap: allow for alternate submodule location
16722         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16723         hardcoding submodule location.
16724         (gnulib_mk): Allow direct use of Makefile.am.
16725
16726         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16727         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16728         rather than reconfiguring where the submodule points.
16729
16730         gettimeofday: restore support for platforms that lack function
16731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16732         replacement if function is missing.
16733         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16734         * modules/sys_time (Makefile.am): Substitute it.
16735         * lib/sys_time.in.h (gettimeofday): Check it.
16736         Reported by Michael Goffioul.
16737
16738 2010-02-21  Bruno Haible  <bruno@clisp.org>
16739
16740         * lib/stdio.in.h (obstack_printf): Fix typo.
16741
16742 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16743
16744         vc-list-files: use bzr ls's -R option
16745         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16746         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16747
16748 2010-02-21  Jim Meyering  <meyering@redhat.com>
16749
16750         init.sh: fix EXEEXT shims to work also for names like test-prog
16751         * tests/init.sh: Re-exec a better shell, when needed.
16752         If the current shell lacks support for posix $(...), an init.sh-using
16753         test will now try to find a shell that supports that.  If EXEEXT is
16754         nonempty, we also require support for hyphen-in-alias-name and shell
16755         substitutions like ${var#glob}.  Failure to find such a shell results
16756         in a skipped test.
16757
16758 2010-02-21  Bruno Haible  <bruno@clisp.org>
16759
16760         Really work around around "broken pipe" error message from bash 3.2.
16761         * gnulib-tool (func_reset_sigpipe): Remove function.
16762         (echo): In bash 3.2, define to a function that uses printf.
16763         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16764
16765 2010-02-20  Bruno Haible  <bruno@clisp.org>
16766
16767         Restore support for automake 1.9.6 with autoconf 2.61.
16768         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16769         Reported by James Youngman <jay@gnu.org>.
16770
16771 2010-02-20  Bruno Haible  <bruno@clisp.org>
16772
16773         Improve *printf warning condition.
16774         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16775         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16776         and the function is overridden due to SIGPIPE emulation.
16777
16778 2010-02-20  Bruno Haible  <bruno@clisp.org>
16779
16780         * lib/stdio.in.h: Tweak comments.
16781
16782 2010-02-19  Bruno Haible  <bruno@clisp.org>
16783
16784         Make it easier to find modules. New gnulib-tool option '--find'.
16785         * gnulib-tool: New option --find.
16786         (func_usage): Document it.
16787         (func_sanitize_modulelist): New function, extracted from
16788         func_all_modules.
16789         (func_all_modules): Invoke it.
16790         * doc/gnulib-tool.texi (Which modules?): New node.
16791
16792 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16793
16794         * lib/sys_select.in.h: Provide select replacement even if
16795         sys/select.h exists on a system, for Interix.
16796
16797 2010-02-18  Jim Meyering  <meyering@redhat.com>
16798
16799         init.sh: don't use $(...) just yet
16800         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16801         to accommodate e.g., Solaris' /bin/sh.
16802
16803 2010-02-17  Bruno Haible  <bruno@clisp.org>
16804
16805         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16806         Reported by Ludovic Courtès <ludo@gnu.org>.
16807
16808 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16809
16810         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16811         linking with -lintl.
16812
16813 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16814
16815         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16816         if not provided by the system's netdb.h.  Reported by
16817         ludo@gnu.org (Ludovic Courtès).
16818
16819 2010-02-15  Jim Meyering  <meyering@redhat.com>
16820
16821         init.sh: improve portability and efficiency
16822         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16823         "dummy" in a for loop.
16824         Use '!', not '^' to select the complement of a character set used
16825         in a "case" statement.
16826         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16827         Suggestions from Eric Blake.
16828
16829         init.sh: automatically accommodate programs with the .exe suffix
16830         Automatically arrange for an invocation of "prog" to execute the
16831         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16832         may use the simpler "prog", yet still work when built on a system
16833         that requires specifying the added suffix.
16834         Do this by constructing a function named "prog" that invokes
16835         "prog.exe" for each .exe file in selected directories.
16836         * tests/init.sh (find_exe_basenames_): New function.
16837         (create_exe_shim_functions_): New function.
16838         (path_prepend_): Use it.
16839
16840         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16841         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16842         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16843
16844 2010-02-14  Jim Meyering  <meyering@redhat.com>
16845
16846         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16847         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16848         (sc_prohibit_hash_pjw_without_use): New rule.
16849
16850         maint.mk: allow the default upload destination dir to be overridden
16851         * top/maint.mk (upload_dest_dir_): Define with a default that
16852         preserves the status quo.
16853         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16854         Reported by Peter Simons.
16855
16856         maint.mk: prohibit inclusion of "hash.h" without_use
16857         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16858
16859 2010-02-10  Jim Meyering  <meyering@redhat.com>
16860
16861         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16862         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16863
16864 2010-02-09  Eric Blake  <ebb9@byu.net>
16865         and Bruno Haible  <bruno@clisp.org>
16866
16867         obstack-printf-posix: ensure declaration
16868         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16869         extracted from gl_FUNC_OBSTACK_PRINTF.
16870         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16871         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16872         Likewise.
16873         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16874         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16875         0.
16876
16877 2010-02-08  Bruno Haible  <bruno@clisp.org>
16878
16879         gnulib-tool: Fix typo in 2010-02-07 commit.
16880         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16881         Reported by Eric Blake.
16882
16883 2010-02-07  Bruno Haible  <bruno@clisp.org>
16884
16885         gnulib-tool: Fix up caching patches.
16886         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16887         option --no-cache. Use associative arrays when supported by the shell.
16888         (sed_comments): New variable.
16889         (modcache): Renamed from do_cache.
16890         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16891         abbreviate unnecessarily.
16892         (have_associative): New variable.
16893         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16894         way also for ksh and zsh.
16895         (func_init_sed_convert_to_cache_statements): New function, extracted
16896         from func_cache_lookup_module. Add support for associative arrays.
16897         Don't set the c_MODULE_cached variable here. Ignore all lines before
16898         the first field header. Remove only the final newline, not all trailing
16899         newlines. Support empty fields correctly. Limit the use of 'eval' to
16900         assignments.
16901         (func_get_description, func_get_status, func_get_notice,
16902         func_get_applicability, func_get_filelist, func_get_dependencies,
16903         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16904         func_get_automake_snippet, func_get_include_directive,
16905         func_get_link_directive, func_get_license, func_get_maintainer):
16906         Update documentation. List the unoptimized code first. Add support for
16907         associative arrays. Limit the use of 'eval' to assignments.
16908         (func_get_applicability): Undo stylistic pessimisations.
16909         (func_get_automake_snippet, func_get_include_directive): Reduce code
16910         duplication.
16911         (func_modules_transitive_closure, func_modules_add_dummy,
16912         func_modules_notice, func_modules_to_filelist, func_add_file,
16913         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16914         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16915         func_create_testdir, func_create_megatestdir): Update documentation.
16916
16917 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16918
16919         * gnulib-tool (func_cache_lookup_module): Store the module name
16920         belonging to the cache variable; error out if two different
16921         module names map to the same cache variable name.
16922
16923 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16924
16925         gnulib-tool: Make caching optional.
16926         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16927         Update matching short versions of --no-changelog.
16928         (func_usage): Update.
16929         (sed_extract_cache_prog): Renamed from ...
16930         (sed_extract_prog): ... this; revert to old extraction script.
16931         (func_get_description, func_get_status)
16932         (func_get_notice, func_get_applicability, func_get_filelist)
16933         (func_get_dependencies, func_get_autoconf_early_snippet)
16934         (func_get_autoconf_snippet, func_get_automake_snippet)
16935         (func_get_include_directive, func_get_link_directive)
16936         (func_get_license, func_get_maintainer): If $do_cache is false,
16937         use old, non-caching extraction scripts.
16938         Suggestion by Bruno Haible.
16939
16940 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16941
16942         gnulib-tool: cache module metainformation.
16943         * gnulib-tool (sed_extract_prog): Match newline before each
16944         header, and rewrite header to a shell variable suffix.
16945         (func_cache_var, func_cache_lookup_module): New functions,
16946         to turn a module name into a cache variable prefix, and to
16947         look up and cache module metainformation.
16948         (func_get_description, func_get_status)
16949         (func_get_notice, func_get_applicability, func_get_filelist)
16950         (func_get_dependencies, func_get_autoconf_early_snippet)
16951         (func_get_autoconf_snippet, func_get_automake_snippet)
16952         (func_get_include_directive, func_get_link_directive)
16953         (func_get_license, func_get_maintainer): Use
16954         func_cache_lookup_module.
16955
16956 2010-02-07  Bruno Haible  <bruno@clisp.org>
16957
16958         fnctl: Fix missing dependency.
16959         * modules/fcntl (Depends-on): Add getdtablesize.
16960         Reported by John W. Eaton <jwe@gnu.org>.
16961
16962 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16963
16964         Argp: fix recognition of short alias options.
16965
16966         * lib/argp-parse.c (convert_options): Fix improper use of
16967         `|' between character values.
16968         * tests/test-argp.c (group1_option): New alias option
16969         --read (-r).
16970         (group1_parser): Special handling for 'r'.
16971         (test15): New test case.
16972         (test_fun): Add test15.
16973         * tests/test-argp-2.sh: Update expected --help and --usage
16974         outputs.
16975
16976 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16977
16978         * tests/test-argp.c: Fix indentation.
16979
16980 2010-02-04  Eric Blake  <ebb9@byu.net>
16981
16982         gettimeofday: expose type of second argument
16983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16984         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16985         * tests/test-gettimeofday.c: Use it to silence warning.
16986         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16987         the issue.
16988
16989 2010-02-03  Jim Meyering  <meyering@redhat.com>
16990
16991         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16992         * lib/regcomp.c (TYPE_SIGNED): Define.
16993         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16994
16995         regcomp.c: avoid a new -Wshadow warning
16996         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16997
16998 2010-02-01  Jim Meyering  <meyering@redhat.com>
16999
17000         removing useless parentheses in cpp #define directives
17001         For motivation, see commit c0221df4, "define STREQ(a,b)
17002         consistently, removing useless parentheses"
17003         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17004         * lib/mountlist.c (MNT_IGNORE): Likewise.
17005         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17006
17007 2010-02-01  Eric Blake  <ebb9@byu.net>
17008
17009         sys_time: use link-warning
17010         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17011         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17012         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17013         * modules/sys_time (Depends-on): Add warn-on-use.
17014         (Makefile.am): Always build replacement.
17015         (configure.ac): Update substitutions.
17016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17017         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17018         bother with SYS_TIME_H.
17019         * modules/gettimeofday (configure.ac): Declare indicator.
17020         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17021         in use.
17022
17023         closein-tests: silence compiler warning
17024         * tests/test-closein.c (main): Ignore fread result.
17025         * modules/closein-tests (Depends-on): Add ignore-value.
17026
17027         tests: silence warning about system return
17028         * tests/test-areadlink-with-size.c (main): Ignore system result.
17029         * tests/test-areadlink.c (main): Likewise.
17030         * tests/test-areadlinkat-with-size.c (main): Likewise.
17031         * tests/test-areadlinkat.c (main): Likewise.
17032         * tests/test-canonicalize-lgpl.c (main): Likewise.
17033         * tests/test-canonicalize.c (main): Likewise.
17034         * tests/test-chown.c (main): Likewise.
17035         * tests/test-fchownat.c (main): Likewise.
17036         * tests/test-fdutimensat.c (main): Likewise.
17037         * tests/test-fstatat.c (main): Likewise.
17038         * tests/test-futimens.c (main): Likewise.
17039         * tests/test-lchown.c (main): Likewise.
17040         * tests/test-link.c (main): Likewise.
17041         * tests/test-linkat.c (main): Likewise.
17042         * tests/test-lstat.c (main): Likewise.
17043         * tests/test-mkdir.c (main): Likewise.
17044         * tests/test-mkdirat.c (main): Likewise.
17045         * tests/test-mkfifo.c (main): Likewise.
17046         * tests/test-mkfifoat.c (main): Likewise.
17047         * tests/test-mknod.c (main): Likewise.
17048         * tests/test-readlink.c (main): Likewise.
17049         * tests/test-remove.c (main): Likewise.
17050         * tests/test-rename.c (main): Likewise.
17051         * tests/test-renameat.c (main): Likewise.
17052         * tests/test-rmdir.c (main): Likewise.
17053         * tests/test-symlink.c (main): Likewise.
17054         * tests/test-symlinkat.c (main): Likewise.
17055         * tests/test-unlink.c (main): Likewise.
17056         * tests/test-unlinkat.c (main): Likewise.
17057         * tests/test-utimens.c (main): Likewise.
17058         * tests/test-utimensat.c (main): Likewise.
17059         * modules/areadlink-tests (Depends-on): Add ignore-value.
17060         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17061         * modules/areadlinkat-tests (Depends-on): Likewise.
17062         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17063         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17064         * modules/canonicalize-tests (Depends-on): Likewise.
17065         * modules/chown-tests (Depends-on): Likewise.
17066         * modules/fdutimensat-tests (Depends-on): Likewise.
17067         * modules/futimens-tests (Depends-on): Likewise.
17068         * modules/lchown-tests (Depends-on): Likewise.
17069         * modules/link-tests (Depends-on): Likewise.
17070         * modules/linkat-tests (Depends-on): Likewise.
17071         * modules/lstat-tests (Depends-on): Likewise.
17072         * modules/mkdir-tests (Depends-on): Likewise.
17073         * modules/mkfifo-tests (Depends-on): Likewise.
17074         * modules/mkfifoat-tests (Depends-on): Likewise.
17075         * modules/mknod-tests (Depends-on): Likewise.
17076         * modules/openat-tests (Depends-on): Likewise.
17077         * modules/readlink-tests (Depends-on): Likewise.
17078         * modules/remove-tests (Depends-on): Likewise.
17079         * modules/rename-tests (Depends-on): Likewise.
17080         * modules/renameat-tests (Depends-on): Likewise.
17081         * modules/rmdir-tests (Depends-on): Likewise.
17082         * modules/symlink-tests (Depends-on): Likewise.
17083         * modules/symlinkat-tests (Depends-on): Likewise.
17084         * modules/unlink-tests (Depends-on): Likewise.
17085         * modules/utimens-tests (Depends-on): Likewise.
17086         * modules/utimensat-tests (Depends-on): Likewise.
17087
17088 2010-01-31  Bruno Haible  <bruno@clisp.org>
17089
17090         Perform the same test for many <math.h> functions.
17091         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17092         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17093         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17094         of gl_MATHFUNC.
17095         * modules/acos (configure.ac): Likewise.
17096         * modules/asin (configure.ac): Likewise.
17097         * modules/atan (configure.ac): Likewise.
17098         * modules/atan2 (configure.ac): Likewise.
17099         * modules/cbrt (configure.ac): Likewise.
17100         * modules/copysign (configure.ac): Likewise.
17101         * modules/cos (configure.ac): Likewise.
17102         * modules/cosh (configure.ac): Likewise.
17103         * modules/erf (configure.ac): Likewise.
17104         * modules/erfc (configure.ac): Likewise.
17105         * modules/exp (configure.ac): Likewise.
17106         * modules/fmod (configure.ac): Likewise.
17107         * modules/hypot (configure.ac): Likewise.
17108         * modules/j0 (configure.ac): Likewise.
17109         * modules/j1 (configure.ac): Likewise.
17110         * modules/jn (configure.ac): Likewise.
17111         * modules/lgamma (configure.ac): Likewise.
17112         * modules/log (configure.ac): Likewise.
17113         * modules/log10 (configure.ac): Likewise.
17114         * modules/log1p (configure.ac): Likewise.
17115         * modules/pow (configure.ac): Likewise.
17116         * modules/remainder (configure.ac): Likewise.
17117         * modules/sin (configure.ac): Likewise.
17118         * modules/sinh (configure.ac): Likewise.
17119         * modules/tan (configure.ac): Likewise.
17120         * modules/tanh (configure.ac): Likewise.
17121         * modules/y0 (configure.ac): Likewise.
17122         * modules/y1 (configure.ac): Likewise.
17123         * modules/yn (configure.ac): Likewise.
17124         Suggested by Paolo Bonzini.
17125
17126 2010-01-31  Bruno Haible  <bruno@clisp.org>
17127
17128         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17129
17130 2010-01-31  Bruno Haible  <bruno@clisp.org>
17131
17132         Work around getdelim() bug on FreeBSD 8.0.
17133         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17134         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17135         not work.
17136         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17137         is 1.
17138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17139         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17140         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17141         a non-zero size.
17142         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17143
17144 2010-01-31  Bruno Haible  <bruno@clisp.org>
17145
17146         Work around getline() bug on FreeBSD 8.0.
17147         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17148         and a non-zero size.
17149         * tests/test-getline.c (main): Likewise.
17150         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17151         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17152
17153 2010-01-28  Eric Blake  <ebb9@byu.net>
17154
17155         regex: fix build failure
17156         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17157         platforms.
17158
17159 2010-01-28  Jim Meyering  <meyering@redhat.com>
17160
17161         regex: do not ignore memory allocation failure
17162         * lib/regex_internal.c (create_cd_newstate): Detect
17163         re_node_set_init_copy failure.   Extracted from glibc commit
17164         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17165
17166         regex: sync more white-space changes from libc
17167         * lib/regex_internal.c: White-space only changes.
17168         * lib/regexec.c: Likewise.
17169
17170         regex: add many uses of __attribute_warn_unused_result__
17171         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17172         * lib/regexec.c: Likewise.
17173         Extracted from a messy glibc commit.
17174
17175         regcomp.c: spelling and merge-artifact from glibc
17176         * lib/regcomp.c: Merge remainder of glibc's
17177         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17178
17179         regcomp.c: sync white-space changes from glibc
17180         * lib/regcomp.c: Merge to accommodate white space
17181         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17182
17183         regcomp.c: do not ignore internal return values
17184         * lib/regcomp.c: Do not ignore internal return values.
17185         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17186         but without its white-space changes and spelling fixes.
17187
17188         regex_internal.h: define __attribute_warn_unused_result__
17189         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17190
17191         maint: add a syntax-check rule to check for vulnerable Makefile.in
17192         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17193
17194 2010-01-27  Jim Meyering  <meyering@redhat.com>
17195
17196         ncftpput-ftp: clean up spaces
17197         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17198         Remove trailing blanks.
17199
17200 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17201
17202         * build-aux/git-version-gen: Fix copyright statement.
17203         * build-aux/gnupload: Likewise.
17204         * tests/test-arcfour.c: Likewise.
17205         * tests/test-arctwo.c: Likewise.
17206         * tests/test-count-one-bits.c: Likewise.
17207         * tests/test-crc.c: Likewise.
17208         * tests/test-des.c: Likewise.
17209         * tests/test-gc-arcfour.c: Likewise.
17210         * tests/test-gc-arctwo.c: Likewise.
17211         * tests/test-gc-des.c: Likewise.
17212         * tests/test-gc-hmac-md5.c: Likewise.
17213         * tests/test-gc-hmac-sha1.c: Likewise.
17214         * tests/test-gc-md2.c: Likewise.
17215         * tests/test-gc-md4.c: Likewise.
17216         * tests/test-gc-md5.c: Likewise.
17217         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17218         * tests/test-gc-rijndael.c: Likewise.
17219         * tests/test-gc-sha1.c: Likewise.
17220         * tests/test-gc.c: Likewise.
17221         * tests/test-gethostname.c: Likewise.
17222         * tests/test-gettimeofday.c: Likewise.
17223         * tests/test-hash.c: Likewise.
17224         * tests/test-hmac-md5.c: Likewise.
17225         * tests/test-hmac-sha1.c: Likewise.
17226         * tests/test-md2.c: Likewise.
17227         * tests/test-md4.c: Likewise.
17228         * tests/test-md5.c: Likewise.
17229         * tests/test-memchr.c: Likewise.
17230         * tests/test-memchr2.c: Likewise.
17231         * tests/test-memcmp.c: Likewise.
17232         * tests/test-memmem.c: Likewise.
17233         * tests/test-memrchr.c: Likewise.
17234         * tests/test-rawmemchr.c: Likewise.
17235         * tests/test-read-file.c: Likewise.
17236         * tests/test-rijndael.c: Likewise.
17237         * tests/test-sockets.c: Likewise.
17238         * tests/test-strchrnul.c: Likewise.
17239         * tests/test-strstr.c: Likewise.
17240         * tests/test-strtod.c: Likewise.
17241         * build-aux/ncftpput-ftp: Likewise.
17242
17243 2010-01-26  Eric Blake  <ebb9@byu.net>
17244
17245         ignore-value: update recommended header name
17246         * modules/ignore-value (Include): Only use <> for headers that
17247         exist in glibc.
17248
17249 2010-01-26  Jim Meyering  <meyering@redhat.com>
17250
17251         test-userspec.c: avoid compiler warnings
17252         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17253         and "initialization discards qualifiers..." warnings.
17254         Put the first "uid" in its own scope, and make char* members "const".
17255
17256 2010-01-25  Bruno Haible  <bruno@clisp.org>
17257
17258         gnulib-tool: Make warning diagnostics consistent.
17259         * gnulib-tool (func_warning): New function.
17260         Use it everywhere where gnulib-tool produces output to stderr and it is
17261         not a fatal error.
17262
17263 2010-01-25  Bruno Haible  <bruno@clisp.org>
17264
17265         Fix test dependencies.
17266         * modules/xstrtol-tests (Depends-on): Add inttypes.
17267         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17268
17269 2010-01-25 Pádraig Brady <P@draigBrady.com>
17270
17271         syntax-check: detect incorrect boolean macro values in config.h
17272         * modules/maintainer-makefile (configure.ac): Parameterize the location
17273         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17274         The logic is from Eric Blake and the location indicated by Jim Meyering.
17275         Note the more natural CONFIG_HEADER name is prohibited by automake
17276         for backwards compatibility reasons.
17277         * top/maint.mk (sc_Wundef_boolean): New rule.
17278
17279 2010-01-25  Jim Meyering  <meyering@redhat.com>
17280
17281         bootstrap: detect MacOS 10.6's shasum, too
17282         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17283         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17284
17285 2010-01-23  Jim Meyering  <meyering@redhat.com>
17286
17287         xstrtoll: new module
17288         * modules/xstrtoll: New file.
17289         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17290         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17291         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17292         ./configure fails if you use this module and lack "long long".
17293         * modules/xstrtoll-tests: New module.
17294         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17295         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17296         new init.sh-based test framework.
17297
17298 2010-01-24  Bruno Haible  <bruno@clisp.org>
17299
17300         Tests for module 'yn'.
17301         * modules/yn-tests: New file.
17302         * tests/test-yn.c: New file.
17303
17304         Tests for module 'y1'.
17305         * modules/y1-tests: New file.
17306         * tests/test-y1.c: New file.
17307
17308         Tests for module 'y0'.
17309         * modules/y0-tests: New file.
17310         * tests/test-y0.c: New file.
17311
17312         Tests for module 'tanh'.
17313         * modules/tanh-tests: New file.
17314         * tests/test-tanh.c: New file.
17315
17316         Tests for module 'tan'.
17317         * modules/tan-tests: New file.
17318         * tests/test-tan.c: New file.
17319
17320         Tests for module 'sqrt'.
17321         * modules/sqrt-tests: New file.
17322         * tests/test-sqrt.c: New file.
17323
17324         Tests for module 'sinh'.
17325         * modules/sinh-tests: New file.
17326         * tests/test-sinh.c: New file.
17327
17328         Tests for module 'sin'.
17329         * modules/sin-tests: New file.
17330         * tests/test-sin.c: New file.
17331
17332         Tests for module 'rint'.
17333         * modules/rint-tests: New file.
17334         * tests/test-rint.c: New file.
17335
17336         Tests for module 'remainder'.
17337         * modules/remainder-tests: New file.
17338         * tests/test-remainder.c: New file.
17339
17340         Tests for module 'pow'.
17341         * modules/pow-tests: New file.
17342         * tests/test-pow.c: New file.
17343
17344         Tests for module 'nextafter'.
17345         * modules/nextafter-tests: New file.
17346         * tests/test-nextafter.c: New file.
17347
17348         Tests for module 'modf'.
17349         * modules/modf-tests: New file.
17350         * tests/test-modf.c: New file.
17351
17352         Tests for module 'logb'.
17353         * modules/logb-tests: New file.
17354         * tests/test-logb.c: New file.
17355
17356         Tests for module 'log1p'.
17357         * modules/log1p-tests: New file.
17358         * tests/test-log1p.c: New file.
17359
17360         Tests for module 'log10'.
17361         * modules/log10-tests: New file.
17362         * tests/test-log10.c: New file.
17363
17364         Tests for module 'log'.
17365         * modules/log-tests: New file.
17366         * tests/test-log.c: New file.
17367
17368         Tests for module 'lgamma'.
17369         * modules/lgamma-tests: New file.
17370         * tests/test-lgamma.c: New file.
17371
17372         Tests for module 'ldexp'.
17373         * modules/ldexp-tests: New file.
17374         * tests/test-ldexp.c: New file.
17375
17376         Tests for module 'jn'.
17377         * modules/jn-tests: New file.
17378         * tests/test-jn.c: New file.
17379
17380         Tests for module 'j1'.
17381         * modules/j1-tests: New file.
17382         * tests/test-j1.c: New file.
17383
17384         Tests for module 'j0'.
17385         * modules/j0-tests: New file.
17386         * tests/test-j0.c: New file.
17387
17388         Tests for module 'hypot'.
17389         * modules/hypot-tests: New file.
17390         * tests/test-hypot.c: New file.
17391
17392         Tests for module 'fmod'.
17393         * modules/fmod-tests: New file.
17394         * tests/test-fmod.c: New file.
17395
17396         Tests for module 'fabs'.
17397         * modules/fabs-tests: New file.
17398         * tests/test-fabs.c: New file.
17399
17400         Tests for module 'exp'.
17401         * modules/exp-tests: New file.
17402         * tests/test-exp.c: New file.
17403
17404         Tests for module 'erfc'.
17405         * modules/erfc-tests: New file.
17406         * tests/test-erfc.c: New file.
17407
17408         Tests for module 'erf'.
17409         * modules/erf-tests: New file.
17410         * tests/test-erf.c: New file.
17411
17412         Tests for module 'cosh'.
17413         * modules/cosh-tests: New file.
17414         * tests/test-cosh.c: New file.
17415
17416         Tests for module 'cos'.
17417         * modules/cos-tests: New file.
17418         * tests/test-cos.c: New file.
17419
17420         Tests for module 'copysign'.
17421         * modules/copysign-tests: New file.
17422         * tests/test-copysign.c: New file.
17423
17424         Tests for module 'cbrt'.
17425         * modules/cbrt-tests: New file.
17426         * tests/test-cbrt.c: New file.
17427
17428         Tests for module 'atan2'.
17429         * modules/atan2-tests: New file.
17430         * tests/test-atan2.c: New file.
17431
17432         Tests for module 'atan'.
17433         * modules/atan-tests: New file.
17434         * tests/test-atan.c: New file.
17435
17436         Tests for module 'asin'.
17437         * modules/asin-tests: New file.
17438         * tests/test-asin.c: New file.
17439
17440         Tests for module 'acos'.
17441         * modules/acos-tests: New file.
17442         * tests/test-acos.c: New file.
17443
17444 2010-01-24  Bruno Haible  <bruno@clisp.org>
17445
17446         Fix tests for common <math.h> functions.
17447         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17448         code snippet that references the function pointer, rather than merely
17449         calling the function. Substitute the FUNC_LIBM variable.
17450         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17451         * modules/acos (configure.ac): Likewise.
17452         * modules/asin (configure.ac): Likewise.
17453         * modules/atan (configure.ac): Likewise.
17454         * modules/atan2 (configure.ac): Likewise.
17455         * modules/cbrt (configure.ac): Likewise.
17456         * modules/copysign (configure.ac): Likewise.
17457         * modules/cos (configure.ac): Likewise.
17458         * modules/cosh (configure.ac): Likewise.
17459         * modules/erf (configure.ac): Likewise.
17460         * modules/erfc (configure.ac): Likewise.
17461         * modules/exp (configure.ac): Likewise.
17462         * modules/fabs (configure.ac): Likewise.
17463         * modules/fmod (configure.ac): Likewise.
17464         * modules/hypot (configure.ac): Likewise.
17465         * modules/j0 (configure.ac): Likewise.
17466         * modules/j1 (configure.ac): Likewise.
17467         * modules/jn (configure.ac): Likewise.
17468         * modules/ldexp (configure.ac): Likewise.
17469         * modules/lgamma (configure.ac): Likewise.
17470         * modules/log (configure.ac): Likewise.
17471         * modules/log10 (configure.ac): Likewise.
17472         * modules/log1p (configure.ac): Likewise.
17473         * modules/logb (configure.ac): Likewise.
17474         * modules/modf (configure.ac): Likewise.
17475         * modules/nextafter (configure.ac): Likewise.
17476         * modules/pow (configure.ac): Likewise.
17477         * modules/remainder (configure.ac): Likewise.
17478         * modules/rint (configure.ac): Likewise.
17479         * modules/sin (configure.ac): Likewise.
17480         * modules/sinh (configure.ac): Likewise.
17481         * modules/tan (configure.ac): Likewise.
17482         * modules/tanh (configure.ac): Likewise.
17483         * modules/y0 (configure.ac): Likewise.
17484         * modules/y1 (configure.ac): Likewise.
17485         * modules/yn (configure.ac): Likewise.
17486
17487 2010-01-24  Bruno Haible  <bruno@clisp.org>
17488
17489         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17490         * tests/test-acosl.c (x): New variable.
17491         (main): Store argument in x and fetch it from x.
17492         * tests/test-asinl.c (x): New variable.
17493         (main): Store argument in x and fetch it from x.
17494         * tests/test-atanl.c (x): New variable.
17495         (main): Store argument in x and fetch it from x.
17496         * tests/test-cosl.c (x): New variable.
17497         (main): Store argument in x and fetch it from x.
17498         * tests/test-expl.c (x): New variable.
17499         (main): Store argument in x and fetch it from x.
17500         * tests/test-logl.c (x): New variable.
17501         (main): Store argument in x and fetch it from x.
17502         * tests/test-sinl.c (x): New variable.
17503         (main): Store argument in x and fetch it from x.
17504         * tests/test-sqrtl.c (x): New variable.
17505         (main): Store argument in x and fetch it from x.
17506         * tests/test-tanl.c (x): New variable.
17507         (main): Store argument in x and fetch it from x.
17508
17509 2010-01-24  Bruno Haible  <bruno@clisp.org>
17510
17511         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17512         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17513         assignments to the initial TESTS_ENVIRONMENT.
17514         * doc/gnulib.texi (Unit test modules): Document it.
17515         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17516         TESTS_ENVIRONMENT.
17517         * modules/btowc-tests (Makefile.am): Likewise.
17518         * modules/c-stack-tests (Makefile.am): Likewise.
17519         * modules/c-strcase-tests (Makefile.am): Likewise.
17520         * modules/copy-file-tests (Makefile.am): Likewise.
17521         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17522         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17523         * modules/mbrtowc-tests (Makefile.am): Likewise.
17524         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17525         * modules/mbscasestr-tests (Makefile.am): Likewise.
17526         * modules/mbschr-tests (Makefile.am): Likewise.
17527         * modules/mbscspn-tests (Makefile.am): Likewise.
17528         * modules/mbsinit-tests (Makefile.am): Likewise.
17529         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17530         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17531         * modules/mbspbrk-tests (Makefile.am): Likewise.
17532         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17533         * modules/mbsrchr-tests (Makefile.am): Likewise.
17534         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17535         * modules/mbsspn-tests (Makefile.am): Likewise.
17536         * modules/mbsstr-tests (Makefile.am): Likewise.
17537         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17538         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17539         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17540         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17541         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17542         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17543         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17544         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17545         * modules/wcrtomb-tests (Makefile.am): Likewise.
17546         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17547         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17548         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17549         assignments from TESTS_ENVIRONMENT.
17550         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17551         augmentation.
17552         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17553         * modules/atexit-tests (Makefile.am): Likewise.
17554         * modules/binary-io-tests (Makefile.am): Likewise.
17555         * modules/closein-tests (Makefile.am): Likewise.
17556         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17557         * modules/exclude-tests (Makefile.am): Likewise.
17558         * modules/fflush-tests (Makefile.am): Likewise.
17559         * modules/fpending-tests (Makefile.am): Likewise.
17560         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17561         * modules/freadahead-tests (Makefile.am): Likewise.
17562         * modules/freadptr-tests (Makefile.am): Likewise.
17563         * modules/freadseek-tests (Makefile.am): Likewise.
17564         * modules/fseek-tests (Makefile.am): Likewise.
17565         * modules/fseeko-tests (Makefile.am): Likewise.
17566         * modules/ftell-tests (Makefile.am): Likewise.
17567         * modules/ftello-tests (Makefile.am): Likewise.
17568         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17569         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17570         * modules/lseek-tests (Makefile.am): Likewise.
17571         * modules/parse-duration-tests (Makefile.am): Likewise.
17572         * modules/perror-tests (Makefile.am): Likewise.
17573         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17574         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17575         * modules/pipe-tests (Makefile.am): Likewise.
17576         * modules/pread-tests (Makefile.am): Likewise.
17577         * modules/printf-posix-tests (Makefile.am): Likewise.
17578         * modules/select-tests (Makefile.am): Likewise.
17579         * modules/sigpipe-tests (Makefile.am): Likewise.
17580         * modules/tsearch-tests (Makefile.am): Likewise.
17581         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17582         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17583         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17584         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17585         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17586         * modules/version-etc-tests (Makefile.am): Likewise.
17587         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17588         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17589         * modules/xalloc-die-tests (Makefile.am): Likewise.
17590         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17591         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17592         * modules/xstrtol-tests (Makefile.am): Likewise.
17593         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17594         * modules/yesno-tests (Makefile.am): Likewise.
17595         Suggested by Jim Meyering.
17596
17597 2010-01-24  Bruno Haible  <bruno@clisp.org>
17598
17599         More documentation.
17600         * doc/gnulib.texi (Writing modules): New chapter.
17601         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17602         the new chapter.
17603
17604 2010-01-24  Jim Meyering  <meyering@redhat.com>
17605
17606         maint.mk: do not prepend "./" after filtering
17607         * top/maint.mk (_prepend_srcdir_prefix): New variable
17608         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17609         "./" when $(srcdir) is ".".
17610
17611         define STREQ(a,b) consistently, removing useless parentheses
17612         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17613         since the only risk is that "a" or "b" contains an unparenthesized
17614         comma, but if either did that, STREQ would have 3 or more arguments.
17615         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17616         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17617         * lib/hash-triple.c (STREQ): Likewise.
17618         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17619         * lib/getugroups.c (STREQ): Likewise.
17620
17621 2010-01-23  Jim Meyering  <meyering@redhat.com>
17622
17623         maint.mk: fix syntax-check in a non-srcdir build directory
17624         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17625         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17626
17627 2010-01-22  Jim Meyering  <meyering@redhat.com>
17628
17629         userspec: add unit tests
17630         * tests/test-userspec.c: New file.
17631         * modules/userspec-tests: Likewise.
17632
17633 2010-01-21  Jim Meyering  <meyering@redhat.com>
17634
17635         maint.mk: handle source file names containing "." robustly
17636         * top/maint.mk (_dot_escaped_srcdir): Define.
17637         (VC_LIST): Use it in LHS of sed substitution.
17638
17639 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17640
17641         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17642         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17643         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17644         from a non-srcdir build.
17645
17646 2010-01-20  Eric Blake  <ebb9@byu.net>
17647
17648         warn-on-use: use instead of link-warning
17649         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17650         * modules/unistd (Depends-on, Makefile.am): Likewise.
17651         * modules/arpa_inet (Depends-on): Replace link-warning with
17652         warn-on-use.
17653         (Makefile.am): Update rules accordingly.
17654         * modules/ctype (Depends-on, Makefile.am): Likewise.
17655         * modules/dirent (Depends-on, Makefile.am): Likewise.
17656         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17657         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17658         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17659         * modules/locale (Depends-on, Makefile.am): Likewise.
17660         * modules/math (Depends-on, Makefile.am): Likewise.
17661         * modules/search (Depends-on, Makefile.am): Likewise.
17662         * modules/signal (Depends-on, Makefile.am): Likewise.
17663         * modules/spawn (Depends-on, Makefile.am): Likewise.
17664         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17665         * modules/string (Depends-on, Makefile.am): Likewise.
17666         * modules/strings (Depends-on, Makefile.am): Likewise.
17667         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17668         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17669         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17670         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17671         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17672         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17673         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17674         * modules/wchar (Depends-on, Makefile.am): Likewise.
17675         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17676         should be poisoned.
17677         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17678         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17679         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17680         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17681         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17682         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17683         * m4/math_h.m4 (gl_MATH_H): Likewise.
17684         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17685         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17686         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17687         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17688         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17689         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17690         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17691         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17693         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17694         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17696         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17697         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17698         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17699         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17700         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17701         GL_LINK_WARNING.
17702         * lib/ctype.in.h: Likewise.
17703         * lib/dirent.in.h: Likewise.
17704         * lib/fcntl.in.h: Likewise.
17705         * lib/inttypes.in.h: Likewise.
17706         * lib/langinfo.in.h: Likewise.
17707         * lib/locale.in.h: Likewise.
17708         * lib/math.in.h: Likewise.
17709         * lib/search.in.h: Likewise.
17710         * lib/signal.in.h: Likewise.
17711         * lib/spawn.in.h: Likewise.
17712         * lib/stdio.in.h: Likewise.
17713         * lib/stdlib.in.h: Likewise.
17714         * lib/string.in.h: Likewise.
17715         * lib/strings.in.h: Likewise.
17716         * lib/sys_file.in.h: Likewise.
17717         * lib/sys_ioctl.in.h: Likewise.
17718         * lib/sys_select.in.h: Likewise.
17719         * lib/sys_socket.in.h: Likewise.
17720         * lib/sys_stat.in.h: Likewise.
17721         * lib/sys_times.in.h: Likewise.
17722         * lib/sys_utsname.in.h: Likewise.
17723         * lib/unistd.in.h: Likewise.
17724         * lib/wchar.in.h: Likewise.
17725
17726 2010-01-20  Bruno Haible  <bruno@clisp.org>
17727
17728         Avoid duplicate -lm.
17729         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17730         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17732         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17733         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17734         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17735         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17736         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17737         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17738         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17739         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17740         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17741         Reported by Paolo Bonzini.
17742
17743 2010-01-19  Bruno Haible  <bruno@clisp.org>
17744
17745         langinfo, nl_langinfo: Relicense under LGPLv2+.
17746         * modules/langinfo (License): Change to LGPLv2+.
17747         * modules/nl_langinfo (License): Likewise.
17748         Patch by David Lutterkort <lutter@redhat.com>.
17749
17750 2010-01-19  Bruno Haible  <bruno@clisp.org>
17751
17752         Avoid compilation error with cc on OSF/1 5.1.
17753         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17754         statement, not before.
17755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17756
17757 2010-01-18  Bruno Haible  <bruno@clisp.org>
17758
17759         Avoid a link error due to the __printf__ symbol.
17760         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17761         and 2.6.x.
17762         (__format__, __printf__): Remove definitions.
17763         * lib/argp-fmtstream.h: Likewise.
17764         * lib/argp.h: Likewise.
17765         * lib/error.h: Likewise.
17766         * lib/vasnprintf.h: Likewise.
17767         * lib/xprintf.h: Likewise.
17768         * lib/xvasprintf.h: Likewise.
17769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17770
17771 2010-01-18  Bruno Haible  <bruno@clisp.org>
17772
17773         Tests for module 'tanl'.
17774         * modules/tanl-tests: New file.
17775         * tests/test-tanl.c: New file.
17776
17777         Tests for module 'sqrtl'.
17778         * modules/sqrtl-tests: New file.
17779         * tests/test-sqrtl.c: New file.
17780
17781         Tests for module 'sinl'.
17782         * modules/sinl-tests: New file.
17783         * tests/test-sinl.c: New file.
17784
17785         Tests for module 'logl'.
17786         * modules/logl-tests: New file.
17787         * tests/test-logl.c: New file.
17788
17789         Tests for module 'expl'.
17790         * modules/expl-tests: New file.
17791         * tests/test-expl.c: New file.
17792
17793         Tests for module 'cosl'.
17794         * modules/cosl-tests: New file.
17795         * tests/test-cosl.c: New file.
17796
17797         Tests for module 'atanl'.
17798         * modules/atanl-tests: New file.
17799         * tests/test-atanl.c: New file.
17800
17801         Tests for module 'asinl'.
17802         * modules/asinl-tests: New file.
17803         * tests/test-asinl.c: New file.
17804
17805         Tests for module 'acosl'.
17806         * modules/acosl-tests: New file.
17807         * tests/test-acosl.c: New file.
17808
17809         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17810         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17811         tanl): Use the standard gnulib idiom.
17812         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17813         * lib/sinl.c: Likewise.
17814         * lib/tanl.c: Don't include trigl.c.
17815         (kernel_tanl): Make static.
17816         * lib/sincosl.c: Include trigl.h first.
17817         * lib/trigl.c: Likewise.
17818         * m4/acosl.m4: New file.
17819         * m4/asinl.m4: New file.
17820         * m4/atanl.m4: New file.
17821         * m4/cosl.m4: New file.
17822         * m4/expl.m4: New file.
17823         * m4/logl.m4: New file.
17824         * m4/sinl.m4: New file.
17825         * m4/sqrtl.m4: New file.
17826         * m4/tanl.m4: New file.
17827         * m4/mathl.m4: Remove file.
17828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17829         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17830         Don't initialize GNULIB_MATHL.
17831         * modules/acosl: New file.
17832         * modules/asinl: New file.
17833         * modules/atanl: New file.
17834         * modules/cosl: New file.
17835         * modules/expl: New file.
17836         * modules/logl: New file.
17837         * modules/sinl: New file.
17838         * modules/sqrtl: New file.
17839         * modules/tanl: New file.
17840         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17841         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17842         substitute GNULIB_MATHL.
17843         * modules/mathl: Rewritten.
17844         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17845         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17846         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17847         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17848         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17849         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17850         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17851         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17852         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17853
17854 2010-01-18  Bruno Haible  <bruno@clisp.org>
17855
17856         sqrt: Make gl_FUNC_SQRT requirable.
17857         * m4/sqrt.m4: New file.
17858         * modules/sqrt (Files): Add it.
17859         (configure.ac): Invoke gl_FUNC_SQRT.
17860
17861 2010-01-18  Bruno Haible  <bruno@clisp.org>
17862
17863         New modules for common <math.h> functions.
17864         * m4/mathfunc.m4: New file.
17865         * modules/acos: New file.
17866         * modules/asin: New file.
17867         * modules/atan: New file.
17868         * modules/atan2: New file.
17869         * modules/cbrt: New file.
17870         * modules/copysign: New file.
17871         * modules/cos: New file.
17872         * modules/cosh: New file.
17873         * modules/erf: New file.
17874         * modules/erfc: New file.
17875         * modules/exp: New file.
17876         * modules/fabs: New file.
17877         * modules/fmod: New file.
17878         * modules/hypot: New file.
17879         * modules/j0: New file.
17880         * modules/j1: New file.
17881         * modules/jn: New file.
17882         * modules/ldexp: New file.
17883         * modules/lgamma: New file.
17884         * modules/log: New file.
17885         * modules/log10: New file.
17886         * modules/log1p: New file.
17887         * modules/logb: New file.
17888         * modules/modf: New file.
17889         * modules/nextafter: New file.
17890         * modules/pow: New file.
17891         * modules/remainder: New file.
17892         * modules/rint: New file.
17893         * modules/sin: New file.
17894         * modules/sinh: New file.
17895         * modules/sqrt: New file.
17896         * modules/tan: New file.
17897         * modules/tanh: New file.
17898         * modules/y0: New file.
17899         * modules/y1: New file.
17900         * modules/yn: New file.
17901         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17902         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17903         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17904         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17905         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17906         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17907         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17908         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17909         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17910         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17911         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17912         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17913         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17914         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17915         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17916         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17917         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17918         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17919         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17920         * doc/posix-functions/log.texi: Mention the 'log' module.
17921         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17922         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17923         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17924         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17925         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17926         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17927         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17928         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17929         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17930         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17931         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17932         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17933         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17934         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17935         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17936         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17937
17938 2010-01-18  Jim Meyering  <meyering@redhat.com>
17939
17940         ignore-value: relax license to LGPLv2+
17941         * modules/ignore-value (License): Relax to LGPLv2+.
17942
17943         getdate: don't leak when TZ contains two or more '"'s
17944         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17945         double quote in TZ after the first one.
17946
17947         readtokens: do not leak internal token_lengths buffer
17948         * lib/readtokens.c (readtokens): Free the local, lengths,
17949         when the supplied "token_lengths" parameter is NULL.
17950
17951 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17952
17953         Fix a couple of missing LIBTHREAD link failures on AIX.
17954         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17955         $(LIBTHREAD).
17956         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17957
17958         Link test-poll against INET_PTON_LIB.
17959         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17960         for inet_pton on Solaris 10.
17961
17962 2010-01-17  Bruno Haible  <bruno@clisp.org>
17963
17964         unistdio/*-sprintf: Fix typo in module description.
17965         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17966         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17967         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17968         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17969         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17970         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17971         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17973
17974 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17975
17976         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17977         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17978         variables in shell case patterns, for AIX and HP-UX ksh.
17979
17980         Split large sed scripts, for HP-UX sed.
17981         * modules/stdio: Split sed scripts around 50 sed commands,
17982         to avoid HP-UX limit of 99 commands, in the near future.
17983         * modules/string: Likewise.
17984         * modules/unistd: Likewise.
17985
17986         gnulib-tool: avoid writing in the current directory.
17987         * gnulib-tool (func_emit_lib_Makefile_am)
17988         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17989         not in the current directory, so concurrent gnulib-tool
17990         instances do not interfere.
17991
17992 2010-01-16  Jim Meyering  <meyering@redhat.com>
17993
17994         doc: update users.txt
17995         * users.txt: Add grep.
17996         (diffutils, gzip): Update URLs.
17997
17998 2010-01-12  Bruno Haible  <bruno@clisp.org>
17999
18000         posix_spawn: Avoid test failure on Cygwin.
18001         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18002         characters.
18003         Reported by Simon Josefsson.
18004
18005 2010-01-12  Bruno Haible  <bruno@clisp.org>
18006
18007         * tests/test-cond.c (main): When skipping the test, show the reason.
18008
18009 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18010
18011         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18012
18013 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18014
18015         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18016         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18017
18018 2010-01-12  Eric Blake  <ebb9@byu.net>
18019
18020         build: guarantee AS_VAR_IF
18021         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18022         (gl_AS_VAR_IF): Move...
18023         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18024         Reported by Simon Josefsson.
18025
18026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18027
18028         * lib/stdio.in.h: Fix typo.
18029
18030 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18031
18032         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18033         libgpg-error.
18034
18035 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18036
18037         * tests/test-xalloc-die.sh: Use $EXEEXT.
18038
18039 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18040             Bruno Haible  <bruno@clisp.org>
18041
18042         getlogin, getlogin_r: Avoid test failure.
18043         * tests/test-getlogin.c: Include <stdio.h>.
18044         (main): Skip the test when the function fails because stdin is not a
18045         tty.
18046         * tests/test-getlogin_r.c: Include <stdio.h>.
18047         (main): Skip the test when the function fails because stdin is not a
18048         tty.
18049
18050 2010-01-11  Eric Blake  <ebb9@byu.net>
18051
18052         tests: avoid more large file warnings
18053         * tests/test-fflush.c: Avoid warning about ftell use.
18054         * tests/test-fseek.c: Avoid warning about fseek use.
18055
18056 2010-01-10  Bruno Haible  <bruno@clisp.org>
18057
18058         nproc: Work better on Linux when /proc and /sys are not mounted.
18059         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18060         as lower bound when, on glibc/Linux systems,
18061         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18062         Suggested by Pádraig Brady <P@draigbrady.com>.
18063         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18064
18065         nproc: Refactor.
18066         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18067         extracted from num_processors.
18068         (num_processors): Call it.
18069
18070 2010-01-11  Jim Meyering  <meyering@redhat.com>
18071
18072         utimecmp: avoid new warning from upcoming gcc-4.5.0
18073         * lib/utimecmp.c (BILLION): Define using #define rather than an
18074         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18075
18076 2010-01-11  Eric Blake  <ebb9@byu.net>
18077
18078         math: add portability warnings for classification macros
18079         * modules/math (Depends-on): Add warn-on-use.
18080         (Makefile.am): Provide new substitutions.
18081         * m4/math_h.m4 (gl_MATH_H): Require inline.
18082         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18083         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18084         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18085         implement warnings.
18086
18087         unistd: warn on use of environ without module
18088         * modules/unistd (Depends-on): Add warn-on-use.
18089         (Makefile.am): Provide new substitutions.
18090         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18091         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18092
18093         stdio: warn on suspicious uses
18094         * modules/stdio (Depends-on): Add warn-on-use.
18095         (Makefile.am): Provide new substitutions.
18096         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18097         fseeko.
18098         * lib/stdio.in.h (gets): Always warn on use.
18099         (fseek, ftell): Adjust when warnings are issued, and honor
18100         _GL_NO_LARGE_FILES as a way to silence the warning.
18101         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18102         any warning about large file offsets.
18103         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18104         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18105         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18106         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18107         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18108         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18109         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18110         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18111
18112         warn-on-use: new module
18113         * modules/warn-on-use: New file.
18114         * build-aux/warn-on-use.h: Likewise.
18115         * m4/warn-on-use.m4: Likewise.
18116         * MODULES.html.sh (Support for building): Mention it.
18117
18118 2010-01-10  Bruno Haible  <bruno@clisp.org>
18119
18120         Tests for module 'unistr/u32-strdup'.
18121         * modules/unistr/u32-strdup-tests: New file.
18122         * tests/unistr/test-u32-strdup.c: New file.
18123
18124         Tests for module 'unistr/u16-strdup'.
18125         * modules/unistr/u16-strdup-tests: New file.
18126         * tests/unistr/test-u16-strdup.c: New file.
18127
18128         Tests for module 'unistr/u8-strdup'.
18129         * modules/unistr/u8-strdup-tests: New file.
18130         * tests/unistr/test-u8-strdup.c: New file.
18131         * tests/unistr/test-strdup.h: New file.
18132
18133         Tests for module 'unistr/u32-strncmp'.
18134         * modules/unistr/u32-strncmp-tests: New file.
18135         * tests/unistr/test-u32-strncmp.c: New file.
18136
18137         Tests for module 'unistr/u16-strncmp'.
18138         * modules/unistr/u16-strncmp-tests: New file.
18139         * tests/unistr/test-u16-strncmp.c: New file.
18140
18141         Tests for module 'unistr/u8-strncmp'.
18142         * modules/unistr/u8-strncmp-tests: New file.
18143         * tests/unistr/test-u8-strncmp.c: New file.
18144         * tests/unistr/test-strncmp.h: New file.
18145
18146         Tests for module 'unistr/u32-strcoll'.
18147         * modules/unistr/u32-strcoll-tests: New file.
18148         * tests/unistr/test-u32-strcoll.c: New file.
18149
18150         Tests for module 'unistr/u16-strcoll'.
18151         * modules/unistr/u16-strcoll-tests: New file.
18152         * tests/unistr/test-u16-strcoll.c: New file.
18153
18154         Tests for module 'unistr/u8-strcoll'.
18155         * modules/unistr/u8-strcoll-tests: New file.
18156         * tests/unistr/test-u8-strcoll.c: New file.
18157
18158         Tests for module 'unistr/u32-strcmp'.
18159         * modules/unistr/u32-strcmp-tests: New file.
18160         * tests/unistr/test-u32-strcmp.c: New file.
18161         * tests/unistr/test-u32-strcmp.h: New file.
18162
18163         Tests for module 'unistr/u16-strcmp'.
18164         * modules/unistr/u16-strcmp-tests: New file.
18165         * tests/unistr/test-u16-strcmp.c: New file.
18166         * tests/unistr/test-u16-strcmp.h: New file.
18167
18168         Tests for module 'unistr/u8-strcmp'.
18169         * modules/unistr/u8-strcmp-tests: New file.
18170         * tests/unistr/test-u8-strcmp.c: New file.
18171         * tests/unistr/test-u8-strcmp.h: New file.
18172         * tests/unistr/test-strcmp.h: New file.
18173
18174         Tests for module 'unistr/u32-strncat'.
18175         * modules/unistr/u32-strncat-tests: New file.
18176         * tests/unistr/test-u32-strncat.c: New file.
18177
18178         Tests for module 'unistr/u16-strncat'.
18179         * modules/unistr/u16-strncat-tests: New file.
18180         * tests/unistr/test-u16-strncat.c: New file.
18181
18182         Tests for module 'unistr/u8-strncat'.
18183         * modules/unistr/u8-strncat-tests: New file.
18184         * tests/unistr/test-u8-strncat.c: New file.
18185         * tests/unistr/test-strncat.h: New file.
18186
18187         Tests for module 'unistr/u32-strcat'.
18188         * modules/unistr/u32-strcat-tests: New file.
18189         * tests/unistr/test-u32-strcat.c: New file.
18190
18191         Tests for module 'unistr/u16-strcat'.
18192         * modules/unistr/u16-strcat-tests: New file.
18193         * tests/unistr/test-u16-strcat.c: New file.
18194
18195         Tests for module 'unistr/u8-strcat'.
18196         * modules/unistr/u8-strcat-tests: New file.
18197         * tests/unistr/test-u8-strcat.c: New file.
18198         * tests/unistr/test-strcat.h: New file.
18199
18200         Tests for module 'unistr/u32-stpncpy'.
18201         * modules/unistr/u32-stpncpy-tests: New file.
18202         * tests/unistr/test-u32-stpncpy.c: New file.
18203
18204         Tests for module 'unistr/u16-stpncpy'.
18205         * modules/unistr/u16-stpncpy-tests: New file.
18206         * tests/unistr/test-u16-stpncpy.c: New file.
18207
18208         Tests for module 'unistr/u8-stpncpy'.
18209         * modules/unistr/u8-stpncpy-tests: New file.
18210         * tests/unistr/test-u8-stpncpy.c: New file.
18211         * tests/unistr/test-stpncpy.h: New file.
18212
18213         Tests for module 'unistr/u32-strncpy'.
18214         * modules/unistr/u32-strncpy-tests: New file.
18215         * tests/unistr/test-u32-strncpy.c: New file.
18216
18217         Tests for module 'unistr/u16-strncpy'.
18218         * modules/unistr/u16-strncpy-tests: New file.
18219         * tests/unistr/test-u16-strncpy.c: New file.
18220
18221         Tests for module 'unistr/u8-strncpy'.
18222         * modules/unistr/u8-strncpy-tests: New file.
18223         * tests/unistr/test-u8-strncpy.c: New file.
18224         * tests/unistr/test-strncpy.h: New file.
18225
18226         Tests for module 'unistr/u32-stpcpy'.
18227         * modules/unistr/u32-stpcpy-tests: New file.
18228         * tests/unistr/test-u32-stpcpy.c: New file.
18229
18230         Tests for module 'unistr/u16-stpcpy'.
18231         * modules/unistr/u16-stpcpy-tests: New file.
18232         * tests/unistr/test-u16-stpcpy.c: New file.
18233
18234         Tests for module 'unistr/u8-stpcpy'.
18235         * modules/unistr/u8-stpcpy-tests: New file.
18236         * tests/unistr/test-u8-stpcpy.c: New file.
18237         * tests/unistr/test-stpcpy.h: New file.
18238
18239         Tests for module 'unistr/u32-strcpy'.
18240         * modules/unistr/u32-strcpy-tests: New file.
18241         * tests/unistr/test-u32-strcpy.c: New file.
18242
18243         Tests for module 'unistr/u16-strcpy'.
18244         * modules/unistr/u16-strcpy-tests: New file.
18245         * tests/unistr/test-u16-strcpy.c: New file.
18246
18247         Tests for module 'unistr/u8-strcpy'.
18248         * modules/unistr/u8-strcpy-tests: New file.
18249         * tests/unistr/test-u8-strcpy.c: New file.
18250         * tests/unistr/test-strcpy.h: New file.
18251
18252         Tests for module 'unistr/u32-strnlen'.
18253         * modules/unistr/u32-strnlen-tests: New file.
18254         * tests/unistr/test-u32-strnlen.c: New file.
18255
18256         Tests for module 'unistr/u16-strnlen'.
18257         * modules/unistr/u16-strnlen-tests: New file.
18258         * tests/unistr/test-u16-strnlen.c: New file.
18259
18260         Tests for module 'unistr/u8-strnlen'.
18261         * modules/unistr/u8-strnlen-tests: New file.
18262         * tests/unistr/test-u8-strnlen.c: New file.
18263         * tests/unistr/test-strnlen.h: New file.
18264
18265         Tests for module 'unistr/u32-strlen'.
18266         * modules/unistr/u32-strlen-tests: New file.
18267         * tests/unistr/test-u32-strlen.c: New file.
18268
18269         Tests for module 'unistr/u16-strlen'.
18270         * modules/unistr/u16-strlen-tests: New file.
18271         * tests/unistr/test-u16-strlen.c: New file.
18272
18273         Tests for module 'unistr/u8-strlen'.
18274         * modules/unistr/u8-strlen-tests: New file.
18275         * tests/unistr/test-u8-strlen.c: New file.
18276
18277         Tests for module 'unistr/u32-prev'.
18278         * modules/unistr/u32-prev-tests: New file.
18279         * tests/unistr/test-u32-prev.c: New file.
18280
18281         Tests for module 'unistr/u16-prev'.
18282         * modules/unistr/u16-prev-tests: New file.
18283         * tests/unistr/test-u16-prev.c: New file.
18284
18285         Tests for module 'unistr/u8-prev'.
18286         * modules/unistr/u8-prev-tests: New file.
18287         * tests/unistr/test-u8-prev.c: New file.
18288
18289         Tests for module 'unistr/u32-next'.
18290         * modules/unistr/u32-next-tests: New file.
18291         * tests/unistr/test-u32-next.c: New file.
18292
18293         Tests for module 'unistr/u16-next'.
18294         * modules/unistr/u16-next-tests: New file.
18295         * tests/unistr/test-u16-next.c: New file.
18296
18297         Tests for module 'unistr/u8-next'.
18298         * modules/unistr/u8-next-tests: New file.
18299         * tests/unistr/test-u8-next.c: New file.
18300
18301         Tests for module 'unistr/u32-strmbtouc'.
18302         * modules/unistr/u32-strmbtouc-tests: New file.
18303         * tests/unistr/test-u32-strmbtouc.c: New file.
18304
18305         Tests for module 'unistr/u16-strmbtouc'.
18306         * modules/unistr/u16-strmbtouc-tests: New file.
18307         * tests/unistr/test-u16-strmbtouc.c: New file.
18308
18309         Tests for module 'unistr/u8-strmbtouc'.
18310         * modules/unistr/u8-strmbtouc-tests: New file.
18311         * tests/unistr/test-u8-strmbtouc.c: New file.
18312
18313         Tests for module 'unistr/u32-strmblen'.
18314         * modules/unistr/u32-strmblen-tests: New file.
18315         * tests/unistr/test-u32-strmblen.c: New file.
18316
18317         Tests for module 'unistr/u16-strmblen'.
18318         * modules/unistr/u16-strmblen-tests: New file.
18319         * tests/unistr/test-u16-strmblen.c: New file.
18320
18321         Tests for module 'unistr/u8-strmblen'.
18322         * modules/unistr/u8-strmblen-tests: New file.
18323         * tests/unistr/test-u8-strmblen.c: New file.
18324
18325         Tests for module 'unistr/u32-cpy-alloc'.
18326         * modules/unistr/u32-cpy-alloc-tests: New file.
18327         * tests/unistr/test-u32-cpy-alloc.c: New file.
18328
18329         Tests for module 'unistr/u16-cpy-alloc'.
18330         * modules/unistr/u16-cpy-alloc-tests: New file.
18331         * tests/unistr/test-u16-cpy-alloc.c: New file.
18332
18333         Tests for module 'unistr/u8-cpy-alloc'.
18334         * modules/unistr/u8-cpy-alloc-tests: New file.
18335         * tests/unistr/test-u8-cpy-alloc.c: New file.
18336         * tests/unistr/test-cpy-alloc.h: New file.
18337
18338         Tests for module 'unistr/u32-mbsnlen'.
18339         * modules/unistr/u32-mbsnlen-tests: New file.
18340         * tests/unistr/test-u32-mbsnlen.c: New file.
18341
18342         Tests for module 'unistr/u16-mbsnlen'.
18343         * modules/unistr/u16-mbsnlen-tests: New file.
18344         * tests/unistr/test-u16-mbsnlen.c: New file.
18345
18346         Tests for module 'unistr/u8-mbsnlen'.
18347         * modules/unistr/u8-mbsnlen-tests: New file.
18348         * tests/unistr/test-u8-mbsnlen.c: New file.
18349
18350         Tests for module 'unistr/u32-chr'.
18351         * modules/unistr/u32-chr-tests: New file.
18352         * tests/unistr/test-u32-chr.c: New file.
18353
18354         Tests for module 'unistr/u16-chr'.
18355         * modules/unistr/u16-chr-tests: New file.
18356         * tests/unistr/test-u16-chr.c: New file.
18357
18358         Tests for module 'unistr/u8-chr'.
18359         * modules/unistr/u8-chr-tests: New file.
18360         * tests/unistr/test-u8-chr.c: New file.
18361         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18362
18363         Tests for module 'unistr/u32-cmp2'.
18364         * modules/unistr/u32-cmp2-tests: New file.
18365         * tests/unistr/test-u32-cmp2.c: New file.
18366
18367         Tests for module 'unistr/u16-cmp2'.
18368         * modules/unistr/u16-cmp2-tests: New file.
18369         * tests/unistr/test-u16-cmp2.c: New file.
18370
18371         Tests for module 'unistr/u8-cmp2'.
18372         * modules/unistr/u8-cmp2-tests: New file.
18373         * tests/unistr/test-u8-cmp2.c: New file.
18374         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18375
18376         Tests for module 'unistr/u32-cmp'.
18377         * modules/unistr/u32-cmp-tests: New file.
18378         * tests/unistr/test-u32-cmp.c: New file.
18379
18380         Tests for module 'unistr/u16-cmp'.
18381         * modules/unistr/u16-cmp-tests: New file.
18382         * tests/unistr/test-u16-cmp.c: New file.
18383
18384         Tests for module 'unistr/u8-cmp'.
18385         * modules/unistr/u8-cmp-tests: New file.
18386         * tests/unistr/test-u8-cmp.c: New file.
18387         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18388
18389         Tests for module 'unistr/u32-set'.
18390         * modules/unistr/u32-set-tests: New file.
18391         * tests/unistr/test-u32-set.c: New file.
18392
18393         Tests for module 'unistr/u16-set'.
18394         * modules/unistr/u16-set-tests: New file.
18395         * tests/unistr/test-u16-set.c: New file.
18396
18397         Tests for module 'unistr/u8-set'.
18398         * modules/unistr/u8-set-tests: New file.
18399         * tests/unistr/test-u8-set.c: New file.
18400         * tests/unistr/test-set.h: New file.
18401
18402         Tests for module 'unistr/u32-move'.
18403         * modules/unistr/u32-move-tests: New file.
18404         * tests/unistr/test-u32-move.c: New file.
18405
18406         Tests for module 'unistr/u16-move'.
18407         * modules/unistr/u16-move-tests: New file.
18408         * tests/unistr/test-u16-move.c: New file.
18409
18410         Tests for module 'unistr/u8-move'.
18411         * modules/unistr/u8-move-tests: New file.
18412         * tests/unistr/test-u8-move.c: New file.
18413         * tests/unistr/test-move.h: New file.
18414
18415         Tests for module 'unistr/u32-cpy'.
18416         * modules/unistr/u32-cpy-tests: New file.
18417         * tests/unistr/test-u32-cpy.c: New file.
18418
18419         Tests for module 'unistr/u16-cpy'.
18420         * modules/unistr/u16-cpy-tests: New file.
18421         * tests/unistr/test-u16-cpy.c: New file.
18422
18423         Tests for module 'unistr/u8-cpy'.
18424         * modules/unistr/u8-cpy-tests: New file.
18425         * tests/unistr/test-u8-cpy.c: New file.
18426         * tests/unistr/test-cpy.h: New file.
18427
18428 2010-01-09  Bruno Haible  <bruno@clisp.org>
18429
18430         Tests for module 'unistr/u32-uctomb'.
18431         * modules/unistr/u32-uctomb-tests: New file.
18432         * tests/unistr/test-u32-uctomb.c: New file.
18433
18434         Tests for module 'unistr/u16-uctomb'.
18435         * modules/unistr/u16-uctomb-tests: New file.
18436         * tests/unistr/test-u16-uctomb.c: New file.
18437
18438         Tests for module 'unistr/u8-uctomb'.
18439         * modules/unistr/u8-uctomb-tests: New file.
18440         * tests/unistr/test-u8-uctomb.c: New file.
18441
18442         Tests for module 'unistr/u32-mbtoucr'.
18443         * modules/unistr/u32-mbtoucr-tests: New file.
18444         * tests/unistr/test-u32-mbtoucr.c: New file.
18445
18446         Tests for module 'unistr/u16-mbtoucr'.
18447         * modules/unistr/u16-mbtoucr-tests: New file.
18448         * tests/unistr/test-u16-mbtoucr.c: New file.
18449
18450         Tests for module 'unistr/u8-mbtoucr'.
18451         * modules/unistr/u8-mbtoucr-tests: New file.
18452         * tests/unistr/test-u8-mbtoucr.c: New file.
18453
18454         Tests for module 'unistr/u32-mbtouc'.
18455         * modules/unistr/u32-mbtouc-tests: New file.
18456         * tests/unistr/test-u32-mbtouc.c: New file.
18457
18458         Tests for module 'unistr/u16-mbtouc'.
18459         * modules/unistr/u16-mbtouc-tests: New file.
18460         * tests/unistr/test-u16-mbtouc.c: New file.
18461
18462         Tests for module 'unistr/u8-mbtouc'.
18463         * modules/unistr/u8-mbtouc-tests: New file.
18464         * tests/unistr/test-u8-mbtouc.c: New file.
18465
18466         Tests for module 'unistr/u32-mbtouc-unsafe'.
18467         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18468         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18469         * tests/unistr/test-u32-mbtouc.h: New file.
18470
18471         Tests for module 'unistr/u16-mbtouc-unsafe'.
18472         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18473         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18474         * tests/unistr/test-u16-mbtouc.h: New file.
18475
18476         Tests for module 'unistr/u8-mbtouc-unsafe'.
18477         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18478         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18479         * tests/unistr/test-u8-mbtouc.h: New file.
18480
18481         Tests for module 'unistr/u32-mblen'.
18482         * modules/unistr/u32-mblen-tests: New file.
18483         * tests/unistr/test-u32-mblen.c: New file.
18484
18485         Tests for module 'unistr/u16-mblen'.
18486         * modules/unistr/u16-mblen-tests: New file.
18487         * tests/unistr/test-u16-mblen.c: New file.
18488
18489         Tests for module 'unistr/u8-mblen'.
18490         * modules/unistr/u8-mblen-tests: New file.
18491         * tests/unistr/test-u8-mblen.c: New file.
18492
18493         Tests for module 'unistr/u32-to-u16'.
18494         * modules/unistr/u32-to-u16-tests: New file.
18495         * tests/unistr/test-u32-to-u16.c: New file.
18496
18497         Tests for module 'unistr/u32-to-u8'.
18498         * modules/unistr/u32-to-u8-tests: New file.
18499         * tests/unistr/test-u32-to-u8.c: New file.
18500
18501         Tests for module 'unistr/u16-to-u32'.
18502         * modules/unistr/u16-to-u32-tests: New file.
18503         * tests/unistr/test-u16-to-u32.c: New file.
18504
18505         Tests for module 'unistr/u16-to-u8'.
18506         * modules/unistr/u16-to-u8-tests: New file.
18507         * tests/unistr/test-u16-to-u8.c: New file.
18508
18509         Tests for module 'unistr/u8-to-u32'.
18510         * modules/unistr/u8-to-u32-tests: New file.
18511         * tests/unistr/test-u8-to-u32.c: New file.
18512
18513         Tests for module 'unistr/u8-to-u16'.
18514         * modules/unistr/u8-to-u16-tests: New file.
18515         * tests/unistr/test-u8-to-u16.c: New file.
18516
18517         Tests for module 'unistr/u32-check'.
18518         * modules/unistr/u32-check-tests: New file.
18519         * tests/unistr/test-u32-check.c: New file.
18520
18521         Tests for module 'unistr/u16-check'.
18522         * modules/unistr/u16-check-tests: New file.
18523         * tests/unistr/test-u16-check.c: New file.
18524
18525         Tests for module 'unistr/u8-check'.
18526         * modules/unistr/u8-check-tests: New file.
18527         * tests/unistr/test-u8-check.c: New file.
18528
18529         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18530         (category_equals): New function.
18531         (main): Add more tests.
18532         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18533
18534         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18535
18536 2010-01-10  Bruno Haible  <bruno@clisp.org>
18537
18538         unistr/u*-strcoll: Try harder to distinguish different strings.
18539         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18540         compare s1 and s2 to see if they are different.
18541
18542 2010-01-10  Bruno Haible  <bruno@clisp.org>
18543
18544         unistr/u*-stpncpy: Fix the return value.
18545         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18546         description of the return value consistent with stpncpy in glibc.
18547         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18548         written non-NUL unit.
18549
18550 2010-01-10  Bruno Haible  <bruno@clisp.org>
18551
18552         unistr/u*-next: Add missing dependencies.
18553         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18554         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18555         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18556
18557 2010-01-10  Bruno Haible  <bruno@clisp.org>
18558
18559         unistr/u8-mbsnlen: Fix return value for incomplete character.
18560         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18561         u8_mblen.
18562         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18563         Remove unistr/u8-mblen.
18564         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18565         u16_mblen.
18566         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18567         Remove unistr/u16-mblen.
18568
18569 2010-01-10  Bruno Haible  <bruno@clisp.org>
18570
18571         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18572         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18573         Reported by Brian Gough <bjg@gnu.org> and
18574         Chris Clayton <chris2553@googlemail.com> via
18575         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18576
18577 2010-01-09  Bruno Haible  <bruno@clisp.org>
18578
18579         unistr/u16-to-u32: Reject invalid input.
18580         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18581         u16_mbtouc.
18582         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18583         Remove unistr/u16-mbtouc.
18584
18585         unistr/u16-to-u8: Reject invalid input.
18586         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18587         u16_mbtouc.
18588         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18589         Remove unistr/u16-mbtouc.
18590
18591         unistr/u8-to-u32: Reject invalid input.
18592         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18593         u8_mbtouc.
18594         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18595         Remove unistr/u8-mbtouc.
18596
18597         unistr/u8-to-u16: Reject invalid input.
18598         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18599         u8_mbtouc.
18600         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18601         Remove unistr/u8-mbtouc.
18602
18603 2010-01-09  Bruno Haible  <bruno@clisp.org>
18604
18605         Tests for module 'getlogin'.
18606         * modules/getlogin-tests: New file.
18607         * tests/test-getlogin.c: New file.
18608
18609         New module 'getlogin'.
18610         * lib/unistd.in.h (getlogin): New declaration.
18611         * lib/getlogin.c: New file.
18612         * m4/getlogin.m4: New file.
18613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18614         HAVE_GETLOGIN.
18615         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18616         HAVE_GETLOGIN.
18617         * modules/getlogin: New file.
18618         * doc/posix-functions/getlogin.texi: Mention the new module.
18619         Reported by John W. Eaton <jwe@gnu.org>.
18620
18621 2010-01-09  Bruno Haible  <bruno@clisp.org>
18622
18623         getlogin_r: Support for native Windows.
18624         * lib/getlogin_r.c: Include <windows.h>
18625         (getlogin_r): Implement for native Windows.
18626         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18627         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18628         via John W. Eaton <jwe@gnu.org>.
18629
18630 2010-01-09  Bruno Haible  <bruno@clisp.org>
18631
18632         getlogin_r: Small fixes.
18633         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18634         succeeds.
18635         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18636         before testing whether getlogin_r is declared. No need to set
18637         HAVE_DECL_GETLOGIN_R to 1.
18638         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18639
18640 2010-01-09  Bruno Haible  <bruno@clisp.org>
18641
18642         * lib/unistd.in.h (getlogin_r): Add comment.
18643
18644 2010-01-09  Bruno Haible  <bruno@clisp.org>
18645
18646         Tests for module 'getlogin_r'.
18647         * modules/getlogin_r-tests: New file.
18648         * tests/test-getlogin_r.c: New file.
18649
18650 2010-01-09  Jim Meyering  <meyering@redhat.com>
18651
18652         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18653         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18654         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18655
18656 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18657
18658         * lib/dup2.c (rpl_dup2): Improve comment.
18659
18660 2010-01-08  Eric Blake  <ebb9@byu.net>
18661
18662         maint.mk: allow packages to add makefile @@ exceptions
18663         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18664         (sc_makefile_check): Rename...
18665         (sc_makefile_at_at_check): ...to this, and use hook.
18666
18667         dup2: work around mingw bug
18668         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18669         Reported by Simon Josefsson.
18670
18671 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18672
18673         glob: Fix C++ compilation.
18674         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18675         C++.
18676
18677 2010-01-07  Bruno Haible  <bruno@clisp.org>
18678
18679         Fix indentation of wctype.in.h, broken since 2007-01-06.
18680         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18681
18682 2010-01-07  Bruno Haible  <bruno@clisp.org>
18683
18684         mbslen: Avoid collision with system function.
18685         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18686         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18687         * m4/mbslen.m4: New file.
18688         * modules/mbslen (Files): Add it.
18689         (configure.ac): Invoke gl_MBSLEN.
18690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18691         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18692         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18693         via Ian Beckwith <ianb@erislabs.net>.
18694
18695 2010-01-07  Bruno Haible  <bruno@clisp.org>
18696
18697         dirent: Document the last fix.
18698         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18699
18700 2010-01-07  Bruno Haible  <bruno@clisp.org>
18701
18702         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18703         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18704         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18705         va_list are defined.
18706         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18707         Reported by Eric Blake.
18708
18709 2010-01-07  Bruno Haible  <bruno@clisp.org>
18710
18711         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18712         * modules/xlist (Depends-on): Add 'list',
18713         * modules/xoset (Depends-on): Add 'oset'.
18714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18715
18716 2010-01-07  Bruno Haible  <bruno@clisp.org>
18717
18718         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18719         * doc/posix-functions/strncasecmp.texi: Likewise.
18720
18721 2010-01-07  Bruno Haible  <bruno@clisp.org>
18722
18723         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18724
18725 2010-01-07  John W. Eaton  <jwe@octave.org>
18726
18727         wctype: allow C++ use
18728         * lib/wctype.in.h: Add extern "C" block for C++.
18729
18730 2010-01-06  Eric Blake  <ebb9@byu.net>
18731
18732         maint.mk: detect incorrect GFDL usage
18733         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18734
18735 2010-01-06  Jim Meyering  <meyering@redhat.com>
18736         and Eric Blake  <ebb9@byu.net>
18737
18738         maint.mk: ignore multi-line copyright in NEWS
18739         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18740
18741 2010-01-06  Eric Blake  <ebb9@byu.net>
18742
18743         select: add missing dependency
18744         * modules/select-tests (Depends-on): Move sockets dependency...
18745         * modules/select (Depends-on): ...here.
18746         Reported by Ian Beckwith.
18747
18748         doc: regenerate INSTALL
18749         * doc/INSTALL: Reflect recent autoconf update.
18750         * doc/INSTALL.ISO: Likewise.
18751         * doc/INSTALL.UTF-8: Likewise.
18752
18753         pread: fix compilation on glibc
18754         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18755         Reported by Ralf Wildenhues.
18756
18757         dirent: fix test failure
18758         * lib/dirent.in.h (includes): Guarantee ino_t.
18759         Reported by Ralf Wildenhues.
18760
18761 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18762
18763         linkat, renameat: avoid bad free
18764         * lib/at-func2.c (at_func2): Fix typo.
18765         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18766
18767 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18768
18769         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18770         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18771         to avoid failure of symlink test later.
18772
18773 2010-01-06  Eric Blake  <ebb9@byu.net>
18774
18775         stdio, unistd: guarantee ssize_t
18776         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18777         2008 are exposed when needed.
18778         * lib/stdio.in.h (includes): Likewise.
18779         Reported by Ralf Wildenhues.
18780
18781 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18782
18783         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18784         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18785         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18786
18787 2010-01-06  Jim Meyering  <meyering@redhat.com>
18788
18789         readtokens: this module *does* require xalloc.h
18790         It uses only functions that were omitted by the old syntax-check rule.
18791         * lib/readtokens.c: Include "xalloc.h" once again.
18792         * modules/readtokens (Depends-on): Add xalloc.
18793         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18794
18795 2010-01-05  Eric Blake  <ebb9@byu.net>
18796
18797         maint: support 'make announcement' from a VPATH build
18798         * top/maint.mk (announcement): Look for correct NEWS file.
18799
18800 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18801
18802         utimens (fdutimens): ignore a negative FD, per contract
18803         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18804         when we have a valid file descriptor.  Otherwise, using a brand
18805         new glibc (with just-patched futimens that now fails with EBADF)
18806         would cause this function to fail with ENOSYS.
18807         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18808         See also http://bugzilla.redhat.com/552320.
18809
18810 2010-01-05  Eric Blake  <ebb9@byu.net>
18811
18812         strcase: document what it provides
18813         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18814         gnulib module.
18815         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18816         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18817
18818 2010-01-05  Jim Meyering  <meyering@redhat.com>
18819
18820         maint: remove useless inclusions of "xalloc.h"
18821         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18822         * lib/readtokens.c: Likewise.
18823         * lib/same.c: Likewise.
18824         * modules/getloadavg (Depends-on): Remove xalloc.
18825         * modules/readtokens: Likewise.
18826         * modules/same: Likewise.
18827
18828         maint.mk: include 4 more function names in alloca.h-checking regexp
18829         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18830         regexp.  Before, we would give a false-positive (saying alloca.h
18831         is included unnecessarily) when the only uses involved omitted symbols.
18832
18833         xalloc.h: use consistent formatting
18834         * lib/xalloc.h: Move declarations to start in the first column.
18835
18836 2010-01-05  Eric Blake  <ebb9@byu.net>
18837
18838         mkdir: avoid xalloc
18839         * lib/mkdir.c (includes): Drop unused header.
18840         Reported by John W. Eaton.
18841
18842 2010-01-04  Jim Meyering  <meyering@redhat.com>
18843
18844         nl_langinfo: avoid configure-time syntax error
18845         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18846         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18847         the empty string.  Don't let that provoke a shell syntax error.
18848
18849         regcomp, regexec, fnmatch: avoid array bounds read error
18850         * lib/regcomp.c (build_equiv_class): From glibc:
18851         Use only the low 24 bits of a findidx return value as an index
18852         into the weights array.  Patch by Ulrich Drepper:
18853         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18854         * lib/regexec.c (check_node_accept_bytes): Likewise.
18855         * lib/fnmatch_loop.c (FCT): Likewise.
18856
18857         regcomp: skip collseq lookup when there are no rules
18858         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18859         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18860
18861         regcomp: recognize ill-formed { } expressions
18862         * lib/regcomp.c (parse_dup_op): From glibc:
18863         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18864
18865         regcomp: fix typo in comment
18866         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18867         s/satisfy/satisfies/.
18868
18869         regcomp: sync from glibc: remove dead store
18870         * lib/regcomp.c (duplicate_node_closure): Remove useless
18871         search_duplicated_node call and dead store.
18872
18873         regcomp: sync from glibc; always use nl_langinfo
18874         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18875         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18876         * modules/regex (Depends-on): Add nl_langinfo.
18877
18878 2010-01-04  Eric Blake  <ebb9@byu.net>
18879
18880         fdopendir: fix configure test
18881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18882
18883 2010-01-01  Bruno Haible  <bruno@clisp.org>
18884
18885         wchar: Remove unused configure check.
18886         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18887
18888 2010-01-01  Eric Blake  <ebb9@byu.net>
18889
18890         headers: make check of system header explicit
18891         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18892         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18893         ourselves.
18894         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18895         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18896         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18897         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18898         internals.
18899         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18900         missing.
18901         Suggested by Bruno Haible.
18902
18903 2010-01-01  Jim Meyering  <meyering@redhat.com>
18904
18905         ChangeLog: tweak to eliminate unnecessary copyright line
18906         * ChangeLog: Remove a copyright line that was mistakenly updated
18907         by today's update-copyright run.  Reported by Eric Blake.
18908
18909         test-update-copyright: don't let envvar setting cause test failure
18910         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18911
18912 2010-01-01  Bruno Haible  <bruno@clisp.org>
18913
18914         localename: Avoid gcc warning.
18915         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18916         function if it is not used.
18917
18918 2010-01-01  Jim Meyering  <meyering@redhat.com>
18919
18920         update nearly all FSF copyright year lists to include 2010
18921         Use the same procedure as for 2009, outlined in
18922         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18923
18924         version-etc: set COPYRIGHT_YEAR to 2010
18925         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18926
18927 2009-12-31  Eric Blake  <ebb9@byu.net>
18928
18929         doc: correct availability of cygwin 1.5.x getopt
18930         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18931         variables.
18932         * doc/posix-functions/opterr.texi (opterr): Likewise.
18933         * doc/posix-functions/optind.texi (optind): Likewise.
18934         * doc/posix-functions/optopt.texi (optopt): Likewise.
18935         * doc/posix-functions/tzname.texi (tzname): Likewise.
18936
18937         openat: update maintainer
18938         * modules/openat (Maintainer): Add myself.
18939
18940         utimens: avoid shadowing warning
18941         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18942         buffers into one, to avoid shadowing, as well as avoiding a
18943         redundant stat.
18944         Reported by Jim Meyering.
18945
18946         test-dup2: avoid compiler warning
18947         * tests/test-dup2.c (is_inheritable): Only define if used.
18948
18949 2010-01-01  Bruno Haible  <bruno@clisp.org>
18950
18951         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18952         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18953         defined, use wctomb instead of wcrtomb.
18954
18955 2010-01-01  Bruno Haible  <bruno@clisp.org>
18956
18957         iconv: Reject native Solaris iconv.
18958         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18959         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18960
18961 2009-12-31  Bruno Haible  <bruno@clisp.org>
18962
18963         * tests/test-signal.c (main): Remove test of 'SIG'.
18964
18965 2009-12-31  Bruno Haible  <bruno@clisp.org>
18966
18967         spawn: Fix incomplete fix.
18968         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18969         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18970         warnings for GNULIB_POSIXCHECK again.
18971         Reported by Eric Blake.
18972
18973 2009-12-31  Bruno Haible  <bruno@clisp.org>
18974
18975         Avoid namespace pollution on glibc systems.
18976         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18977         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18978         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18979         glibc systems.
18980
18981 2009-12-31  Bruno Haible  <bruno@clisp.org>
18982
18983         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18984         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18985         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18986         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18987         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18988         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18989         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18990
18991 2009-12-31  Bruno Haible  <bruno@clisp.org>
18992
18993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18994         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18995         afterwards.
18996
18997 2009-12-31  Bruno Haible  <bruno@clisp.org>
18998
18999         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19000         SYS_UTSNAME_H.
19001
19002 2009-12-31  Bruno Haible  <bruno@clisp.org>
19003
19004         spawn: Fix misapplied patch.
19005         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19006         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19007         warnings for GNULIB_POSIXCHECK.
19008
19009 2009-12-31  Bruno Haible  <bruno@clisp.org>
19010
19011         times: Update after sys_times changed.
19012         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19013         * modules/times (Files): Add it.
19014         (configure.ac): Invoke gl_FUNC_TIMES.
19015
19016 2009-12-31  Bruno Haible  <bruno@clisp.org>
19017
19018         Use AC_C_INLINE where necessary.
19019         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19022         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19023         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19024         * m4/mbiter.m4 (gl_MBITER): Likewise.
19025         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19026         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19027         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19028         * modules/u64 (configure.ac): Likewise.
19029
19030 2009-12-31  Bruno Haible  <bruno@clisp.org>
19031
19032         Use AC_C_INLINE instead of module 'inline' where possible.
19033         * modules/inline (Description): Clarify purpose.
19034         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19035         * modules/count-one-bits (Depends-on): Remove inline.
19036         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19037         * modules/openat (Depends-on): Remove inline.
19038         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19039         instead of depending on module 'inline'.
19040         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19041         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19042         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19043         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19044         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19045         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19046         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19047         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19048         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19049         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19050         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19051         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19052         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19053         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19054         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19055         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19056         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19057         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19058         Likewise.
19059         * modules/unictype/property-ascii-hex-digit (Depends-on,
19060         configure.ac): Likewise.
19061         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19062         configure.ac): Likewise.
19063         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19064         configure.ac): Likewise.
19065         * modules/unictype/property-bidi-block-separator (Depends-on,
19066         configure.ac): Likewise.
19067         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19068         configure.ac): Likewise.
19069         * modules/unictype/property-bidi-common-separator (Depends-on,
19070         configure.ac): Likewise.
19071         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19072         Likewise.
19073         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19074         configure.ac): Likewise.
19075         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19076         configure.ac): Likewise.
19077         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19078         configure.ac): Likewise.
19079         * modules/unictype/property-bidi-european-digit (Depends-on,
19080         configure.ac): Likewise.
19081         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19082         configure.ac): Likewise.
19083         * modules/unictype/property-bidi-left-to-right (Depends-on,
19084         configure.ac): Likewise.
19085         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19086         configure.ac): Likewise.
19087         * modules/unictype/property-bidi-other-neutral (Depends-on,
19088         configure.ac): Likewise.
19089         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19090         Likewise.
19091         * modules/unictype/property-bidi-segment-separator (Depends-on,
19092         configure.ac): Likewise.
19093         * modules/unictype/property-bidi-whitespace (Depends-on,
19094         configure.ac): Likewise.
19095         * modules/unictype/property-combining (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-composite (Depends-on, configure.ac):
19098         Likewise.
19099         * modules/unictype/property-currency-symbol (Depends-on,
19100         configure.ac): Likewise.
19101         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19102         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19103         Likewise.
19104         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19105         configure.ac): Likewise.
19106         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19107         Likewise.
19108         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19109         Likewise.
19110         * modules/unictype/property-extender (Depends-on, configure.ac):
19111         Likewise.
19112         * modules/unictype/property-format-control (Depends-on, configure.ac):
19113         Likewise.
19114         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19115         Likewise.
19116         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19117         Likewise.
19118         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19119         Likewise.
19120         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19121         Likewise.
19122         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19123         Likewise.
19124         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19125         Likewise.
19126         * modules/unictype/property-id-start (Depends-on, configure.ac):
19127         Likewise.
19128         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19129         Likewise.
19130         * modules/unictype/property-ids-binary-operator (Depends-on,
19131         configure.ac): Likewise.
19132         * modules/unictype/property-ids-trinary-operator (Depends-on,
19133         configure.ac): Likewise.
19134         * modules/unictype/property-ignorable-control (Depends-on,
19135         configure.ac): Likewise.
19136         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19137         Likewise.
19138         * modules/unictype/property-join-control (Depends-on, configure.ac):
19139         Likewise.
19140         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19141         Likewise.
19142         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19143         Likewise.
19144         * modules/unictype/property-logical-order-exception (Depends-on,
19145         configure.ac): Likewise.
19146         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19147         Likewise.
19148         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19149         * modules/unictype/property-non-break (Depends-on, configure.ac):
19150         Likewise.
19151         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19152         Likewise.
19153         * modules/unictype/property-numeric (Depends-on, configure.ac):
19154         Likewise.
19155         * modules/unictype/property-other-alphabetic (Depends-on,
19156         configure.ac): Likewise.
19157         * modules/unictype/property-other-default-ignorable-code-point
19158         (Depends-on, configure.ac): Likewise.
19159         * modules/unictype/property-other-grapheme-extend (Depends-on,
19160         configure.ac): Likewise.
19161         * modules/unictype/property-other-id-continue (Depends-on,
19162         configure.ac): Likewise.
19163         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19164         Likewise.
19165         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19166         Likewise.
19167         * modules/unictype/property-other-math (Depends-on, configure.ac):
19168         Likewise.
19169         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19170         Likewise.
19171         * modules/unictype/property-paired-punctuation (Depends-on,
19172         configure.ac): Likewise.
19173         * modules/unictype/property-paragraph-separator (Depends-on,
19174         configure.ac): Likewise.
19175         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19176         Likewise.
19177         * modules/unictype/property-pattern-white-space (Depends-on,
19178         configure.ac): Likewise.
19179         * modules/unictype/property-private-use (Depends-on, configure.ac):
19180         Likewise.
19181         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19182         Likewise.
19183         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19184         Likewise.
19185         * modules/unictype/property-radical (Depends-on, configure.ac):
19186         Likewise.
19187         * modules/unictype/property-sentence-terminal (Depends-on,
19188         configure.ac): Likewise.
19189         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19190         Likewise.
19191         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19192         * modules/unictype/property-terminal-punctuation (Depends-on,
19193         configure.ac): Likewise.
19194         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19195         Likewise.
19196         * modules/unictype/property-unassigned-code-value (Depends-on,
19197         configure.ac): Likewise.
19198         * modules/unictype/property-unified-ideograph (Depends-on,
19199         configure.ac): Likewise.
19200         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19201         Likewise.
19202         * modules/unictype/property-variation-selector (Depends-on,
19203         configure.ac): Likewise.
19204         * modules/unictype/property-white-space (Depends-on, configure.ac):
19205         Likewise.
19206         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19207         Likewise.
19208         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19209         Likewise.
19210         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19211         Likewise.
19212         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19213         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19214         Likewise.
19215
19216 2009-12-31  Bruno Haible  <bruno@clisp.org>
19217
19218         Remove unnecessary AC_C_INLINE invocation.
19219         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19220         since 2009-08-21.
19221
19222 2009-12-31  Jim Meyering  <meyering@redhat.com>
19223
19224         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19225         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19226         With this change, we can all remove the gpg_key_ID = ... definition
19227         from our respective cfg.mk files.
19228
19229         maint.mk: create announcement template in ~/, not in /tmp
19230         * top/maint.mk (emit_upload_commands): Adjust.
19231         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19232         Remove temporary file, .ci-msg.
19233
19234 2009-12-31  Eric Blake  <ebb9@byu.net>
19235
19236         link-warning: always build headers with link warnings
19237         * modules/arpa_inet (Makefile.am): Always build replacement
19238         header.
19239         * modules/ctype (Makefile.am): Likewise.
19240         * modules/dirent (Makefile.am): Likewise.
19241         * modules/inttypes (Makefile.am): Likewise.
19242         * modules/langinfo (Makefile.am): Likewise.
19243         * modules/locale (Makefile.am): Likewise.
19244         * modules/spawn (Makefile.am): Likewise.
19245         * modules/sys_file (Makefile.am): Likewise.
19246         * modules/sys_ioctl (Makefile.am): Likewise.
19247         * modules/sys_select (Makefile.am): Likewise.
19248         * modules/sys_socket (Makefile.am): Likewise.
19249         * modules/sys_times (Makefile.am): Likewise.
19250         * modules/sys_utsname (Makefile.am): Likewise.
19251         * modules/sys_wait (Makefile.am): Likewise.
19252         * modules/wchar (Makefile.am): Likewise.
19253         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19254         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19255         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19256         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19257         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19258         Likewise.
19259         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19260         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19261         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19262         Likewise.
19263         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19264         Likewise.
19265         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19267         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19269         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19271         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19272         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19273         (gl_WCHAR_H_DEFAULTS): Likewise.
19274
19275 2009-12-31  Eric Blake  <ebb9@byu.net>
19276
19277         signal, spawn: use link warnings
19278         * lib/signal.in.h (sigset_t): Make unconditional.
19279         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19280         (sigpending, sigprocmask, sigaction): Add link warnings.
19281         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19282         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19283         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19284         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19285         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19286         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19287         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19288         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19289         (posix_spawn_file_actions_destroy)
19290         (posix_spawn_file_actions_addopen)
19291         (posix_spawn_file_actions_addclose)
19292         (posix_spawn_file_actions_adddup2): Likewise.
19293         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19294         * tests/test-signal.c (main): Enhance test.
19295
19296         spawn: improve wrapper support
19297         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19298         (gl_SPAWN_H_DEFAULTS): New defaults.
19299         * modules/spawn (Makefile.am): Substitute them.
19300         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19301         Only declare if missing or broken.
19302
19303         sys_times, sys_utsname: use include_next
19304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19305         header.
19306         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19308         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19309         * modules/sys_times (Depends-on): Add include_next.
19310         (Makefile.am): Substitute additional values.
19311         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19312         * lib/sys_times.in.h (includes): Include native header, if
19313         available.
19314         * lib/sys_utsname.in.h (includes): Likewise.
19315         * tests/test-sys_times.c (main): Enhance test.
19316
19317         fdutimensat: revert prior patch
19318         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19319         utimens.h.
19320         Reported by Bruno Haible.
19321
19322 2009-12-30  Eric Blake  <ebb9@byu.net>
19323
19324         sys_wait: drop link-warning dependency
19325         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19326         link-warning efforts.
19327         * lib/sys_wait.in.h: Likewise.
19328
19329         fdutimensat: remove bogus dependency
19330         * modules/fdutimensat (Depends-on): Drop inline.
19331
19332         unistd: fix typo
19333         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19334
19335 2009-12-30  Bruno Haible  <bruno@clisp.org>
19336
19337         Fix compilation error with Solaris cc.
19338         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19339         * lib/unicase/u16-is-invariant.c: Likewise.
19340         * lib/unicase/u32-is-invariant.c: Likewise.
19341         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19342
19343 2009-12-30  Bruno Haible  <bruno@clisp.org>
19344
19345         Fix test crash.
19346         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19347         locales.
19348         Reported by Simon Josefsson <simon@josefsson.org>.
19349
19350 2009-12-30  Bruno Haible  <bruno@clisp.org>
19351
19352         Fix compilation error on most platforms.
19353         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19354         Reported by Simon Josefsson <simon@josefsson.org>
19355         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19356
19357 2009-12-30  Eric Blake  <ebb9@byu.net>
19358
19359         futimens, utimensat: work around ntfs-3g bug
19360         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19361         a ctime bug is present, and expand workaround to cover ntfs-3g.
19362         * lib/utimens.c (fdutimens, lutimens): Likewise.
19363         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19364         (validate_timespec): Adjust return value.
19365         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19366         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19367         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19368
19369 2009-12-29  Eric Blake  <ebb9@byu.net>
19370
19371         link-warning: make usage consistent
19372         * modules/ctype (Depends-on): Add link-warning.
19373         (Makefile.am): Update rules accordingly.
19374         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19375         * modules/locale (Depends-on, Makefile.am): Likewise.
19376         * modules/sys_file (Makefile.am): Likewise.
19377         * modules/getopt-posix (Makefile.am): Delete unused link warning
19378         efforts.
19379         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19380         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19381         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19382         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19383
19384         stdio: remove unused variables
19385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19386         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19387         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19388
19389         tests: test more substitute headers
19390         * modules/ctype-tests: New file.
19391         * modules/dirent-tests: Likewise.
19392         * modules/spawn-tests: Likewise.
19393         * modules/sys_file-tests: Likewise.
19394         * modules/sys_ioctl-tests: Likewise.
19395         * modules/sys_wait-tests: Likewise.
19396         * tests/test-ctype.c: Likewise.
19397         * tests/test-dirent.c: Likewise.
19398         * tests/test-spawn.c: Likewise.
19399         * tests/test-sys_file.c: Likewise.
19400         * tests/test-sys_ioctl.c: Likewise.
19401         * tests/test-sys_wait.c: Likewise.
19402         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19403         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19404         whether or not flock is in use.
19405
19406         tests: remove License section from module
19407         * modules/arpa_inet-tests: Remove unneeded section.
19408         * modules/byteswap-tests: Likewise.
19409         * modules/ceilf-tests: Likewise.
19410         * modules/ceill-tests: Likewise.
19411         * modules/crypto/des-tests: Likewise.
19412         * modules/crypto/gc-arcfour-tests: Likewise.
19413         * modules/crypto/gc-arctwo-tests: Likewise.
19414         * modules/crypto/gc-des-tests: Likewise.
19415         * modules/crypto/gc-hmac-md5-tests: Likewise.
19416         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19417         * modules/crypto/gc-md2-tests: Likewise.
19418         * modules/crypto/gc-md4-tests: Likewise.
19419         * modules/crypto/gc-md5-tests: Likewise.
19420         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19421         * modules/crypto/gc-rijndael-tests: Likewise.
19422         * modules/crypto/gc-sha1-tests: Likewise.
19423         * modules/crypto/gc-tests: Likewise.
19424         * modules/crypto/md2-tests: Likewise.
19425         * modules/crypto/md4-tests: Likewise.
19426         * modules/fcntl-h-tests: Likewise.
19427         * modules/floorf-tests: Likewise.
19428         * modules/floorl-tests: Likewise.
19429         * modules/frexp-nolibm-tests: Likewise.
19430         * modules/frexp-tests: Likewise.
19431         * modules/frexpl-nolibm-tests: Likewise.
19432         * modules/frexpl-tests: Likewise.
19433         * modules/getaddrinfo-tests: Likewise.
19434         * modules/inttypes-tests: Likewise.
19435         * modules/isfinite-tests: Likewise.
19436         * modules/isinf-tests: Likewise.
19437         * modules/ldexpl-tests: Likewise.
19438         * modules/locale-tests: Likewise.
19439         * modules/math-tests: Likewise.
19440         * modules/netdb-tests: Likewise.
19441         * modules/netinet_in-tests: Likewise.
19442         * modules/printf-frexp-tests: Likewise.
19443         * modules/printf-frexpl-tests: Likewise.
19444         * modules/priv-set-tests: Likewise.
19445         * modules/random_r-tests: Likewise.
19446         * modules/round-tests: Likewise.
19447         * modules/roundf-tests: Likewise.
19448         * modules/roundl-tests: Likewise.
19449         * modules/search-tests: Likewise.
19450         * modules/select-tests: Likewise.
19451         * modules/signal-tests: Likewise.
19452         * modules/stdbool-tests: Likewise.
19453         * modules/stddef-tests: Likewise.
19454         * modules/stdint-tests: Likewise.
19455         * modules/stdio-tests: Likewise.
19456         * modules/stdlib-tests: Likewise.
19457         * modules/string-tests: Likewise.
19458         * modules/strings-tests: Likewise.
19459         * modules/sys_select-tests: Likewise.
19460         * modules/sys_socket-tests: Likewise.
19461         * modules/sys_stat-tests: Likewise.
19462         * modules/sys_time-tests: Likewise.
19463         * modules/sys_utsname-tests: Likewise.
19464         * modules/sysexits-tests: Likewise.
19465         * modules/time-tests: Likewise.
19466         * modules/trunc-tests: Likewise.
19467         * modules/truncf-tests: Likewise.
19468         * modules/truncl-tests: Likewise.
19469         * modules/tsearch-tests: Likewise.
19470         * modules/unistd-tests: Likewise.
19471         * modules/wchar-tests: Likewise.
19472         * modules/wctype-tests: Likewise.
19473
19474         tests: fix license on several tests
19475         * tests/test-des.c: Update to GPLv3+.
19476         * tests/test-flock.c: Likewise.
19477         * tests/test-fsync.c: Likewise.
19478         * tests/test-futimens.h: Likewise.
19479         * tests/test-gc-arcfour.c: Likewise.
19480         * tests/test-gc-arctwo.c: Likewise.
19481         * tests/test-gc-des.c: Likewise.
19482         * tests/test-gc-hmac-md5.c: Likewise.
19483         * tests/test-gc-hmac-sha1.c: Likewise.
19484         * tests/test-gc-md2.c: Likewise.
19485         * tests/test-gc-md4.c: Likewise.
19486         * tests/test-gc-md5.c: Likewise.
19487         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19488         * tests/test-gc-rijndael.c: Likewise.
19489         * tests/test-gc-sha1.c: Likewise.
19490         * tests/test-gc.c: Likewise.
19491         * tests/test-getcwd.c: Likewise.
19492         * tests/test-link.c: Likewise.
19493         * tests/test-link.h: Likewise.
19494         * tests/test-lutimens.h: Likewise.
19495         * tests/test-md2.c: Likewise.
19496         * tests/test-md4.c: Likewise.
19497         * tests/test-mkdir.h: Likewise.
19498         * tests/test-rename.c: Likewise.
19499         * tests/test-rename.h: Likewise.
19500         * tests/test-safe-alloc.c: Likewise.
19501         * tests/test-utimens-common.h: Likewise.
19502         * tests/test-utimens.h: Likewise.
19503
19504         maint: sync license texts
19505         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19506         * doc/gpl-3.0.texi: Revert copyright year update.
19507         * doc/lgpl-3.0.texi: Likewise.
19508
19509 2009-12-29  Jim Meyering  <meyering@redhat.com>
19510
19511         update nearly all FSF copyright year lists to include 2009
19512         The files named by the following are exempted:
19513             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19514               test -f "$dst" && { echo "$dst"; continue; }
19515               test -d "$dst" || continue
19516               echo "$dst"/$(basename "$src")
19517             done > exempt
19518             git ls-files tests/unictype >> exempt
19519         In the remaining files, convert to all-interval notation if
19520         - there is already at least one year interval like 2000-2003
19521         - the file is maintained by me
19522         - the file is in lib/uni*/, where that style already prevails
19523         Otherwise, use update-copyright's default.
19524
19525 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19526         and Eric Blake  <ebb9@byu.net>
19527
19528         tests: don't require debug system() to pass
19529         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19530         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19531         * tests/test-unlink.h (test_unlink_func): Likewise.
19532         * tests/test-fstatat.c (main): ...into callers.
19533         * tests/test-lstat.c (main): Likewise.
19534         * tests/test-rmdir.c (main): Likewise.
19535         * tests/test-unlink.c (main): Likewise.
19536         * tests/test-unlinkat.c (main): Likewise.
19537         * tests/test-areadlink-with-size.c (main): Don't require a
19538         debug-only system call to pass, aiding cross-testing to mingw.
19539         * tests/test-areadlink.c (main): Likewise.
19540         * tests/test-areadlinkat-with-size.c (main): Likewise.
19541         * tests/test-areadlinkat.c (main): Likewise.
19542         * tests/test-canonicalize-lgpl.c (main): Likewise.
19543         * tests/test-canonicalize.c (main): Likewise.
19544         * tests/test-chown.c (main): Likewise.
19545         * tests/test-fchownat.c (main): Likewise.
19546         * tests/test-lchown.c (main): Likewise.
19547         * tests/test-fdutimensat.c (main): Likewise.
19548         * tests/test-futimens.c (main): Likewise.
19549         * tests/test-link.c (main): Likewise.
19550         * tests/test-linkat.c (main): Likewise.
19551         * tests/test-mkdir.c (main): Likewise.
19552         * tests/test-mkdirat.c (main): Likewise.
19553         * tests/test-mkfifo.c (main): Likewise.
19554         * tests/test-mkfifoat.c (main): Likewise.
19555         * tests/test-mknod.c (main): Likewise.
19556         * tests/test-readlink.c (main): Likewise.
19557         * tests/test-remove.c (main): Likewise.
19558         * tests/test-rename.c (main): Likewise.
19559         * tests/test-renameat.c (main): Likewise.
19560         * tests/test-symlink.c (main): Likewise.
19561         * tests/test-symlinkat.c (main): Likewise.
19562         * tests/test-utimens.c (main): Likewise.
19563         * tests/test-utimensat.c (main): Likewise.
19564
19565 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19566
19567         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19568         on $(UNUSED_PARAMETER_H) to avoid build failure.
19569
19570 2009-12-28  Jim Meyering  <meyering@redhat.com>
19571
19572         update-copyright: you may specify a max. line length other than 72
19573         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19574
19575         maint: use consistent FSF copyright line syntax
19576         * lib/posixtm.c: Add missing comma in FSF copyright line.
19577         * lib/posixtm.h: Likewise.
19578         * lib/getugroups.c: Add missing ", Inc.".
19579
19580         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19581         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19582         FSF copyright line.  Remove trailing blanks.
19583
19584 2009-12-28  Eric Blake  <ebb9@byu.net>
19585
19586         test-dup2: reduce dependencies
19587         * modules/cloexec (Configure.ac): Set witness.
19588         * modules/dup2-tests (Depends-on): Drop cloexec.
19589         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19590         not present.
19591         Suggested by Bruno Haible.
19592
19593 2009-12-26  Bruno Haible  <bruno@clisp.org>
19594
19595         Remove an unneeded dependency.
19596         * modules/fseterr (Depends-on): Remove dup2.
19597
19598 2009-12-26  Eric Blake  <ebb9@byu.net>
19599
19600         tests: use macros.h in more places
19601         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19602         (ASSERT_STREAM): Provide default of stderr.
19603         * tests/test-dirent-safer.c: Include macros.h, using alternate
19604         stream for assertions.
19605         * tests/test-dup-safer.c: Likewise.
19606         * tests/test-freopen-safer.c: Likewise.
19607         * tests/test-getopt.c: Likewise.
19608         * tests/test-openat-safer.c: Likewise.
19609         * tests/test-pipe.c: Likewise.
19610         * tests/test-popen-safer.c: Likewise.
19611         * modules/dirent-safer-tests (Files): Include macros.h.
19612         * modules/unistd-safer-tests (Files): Likewise.
19613         * modules/freopen-safer-tests (Files): Likewise.
19614         * modules/getopt-posix-tests (Files): Likewise.
19615         * modules/openat-safer-tests (Files): Likewise.
19616         * modules/pipe-tests (Files): Likewise.
19617
19618 2009-12-26  Bruno Haible  <bruno@clisp.org>
19619
19620         javacomp: Portability fix.
19621         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19622         that it also works on Solaris.
19623
19624 2009-12-26  Bruno Haible  <bruno@clisp.org>
19625
19626         localename: Fix storage allocation of gl_locale_name_thread's result.
19627         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19628         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19629         all platforms that have 'uselocale'.
19630         (gl_locale_name_thread_unsafe): New function, extracted from
19631         gl_locale_name_thread.
19632         (gl_locale_name_thread): Call struniq on all platforms that have
19633         'uselocale'.
19634         * tests/test-localename.c (test_locale_name_thread): Check that the
19635         resulting strings are permanently allocated.
19636         * modules/localename-tests (Depends-on): Add strdup.
19637
19638 2009-12-26  Bruno Haible  <bruno@clisp.org>
19639
19640         * tests/test-localename.c (categories): Fill in the strings.
19641
19642 2009-12-26  Jim Meyering  <meyering@redhat.com>
19643
19644         isdir: complete the removal of m4/isdir.m4
19645         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19646
19647         isdir: clean up, since at least grep still uses it
19648         * lib/isdir.c: Include "isdir.h".
19649         (S_ISDIR): Remove now-unneeded definition.
19650         * modules/isdir (Files): Add lib/isdir.h.
19651         * lib/isdir.h: New file, with declaration.
19652         * m4/isdir.m4: Remove file -- unneeded.
19653
19654 2009-12-25  Bruno Haible  <bruno@clisp.org>
19655
19656         selinux-h: Make generated .h files standalone.
19657         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19658         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19659         * lib/se-selinux.in.h: Likewise.
19660         * modules/selinux-h (Depends-on): Add unused-parameter.
19661         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19662         selinux/selinux.h and selinux/context.h.
19663         Suggested by Eric Blake.
19664
19665 2009-12-25  Bruno Haible  <bruno@clisp.org>
19666
19667         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19668         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19669         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19670         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19671         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19672
19673 2009-12-24  Bruno Haible  <bruno@clisp.org>
19674
19675         openat: Fix warning.
19676         * lib/openat-proc.c: Include <unistd.h>.
19677
19678 2009-12-24  Bruno Haible  <bruno@clisp.org>
19679
19680         New module 'unused-parameter'.
19681         * build-aux/unused-parameter.h: New file, extracted from earlier
19682         gnulib-common.m4.
19683         * modules/unused-parameter: New file.
19684         * lib/unistr.h: Include unused-parameter.h.
19685         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19686         _GL_UNUSED.
19687         * modules/unistr/base (Depends-on): Add unused-parameter.
19688
19689 2009-12-24  Bruno Haible  <bruno@clisp.org>
19690
19691         Add missing dependencies to 'extensions' module.
19692         * m4/extensions.m4: Add comment.
19693         * modules/accept4 (Depends-on): Add extensions.
19694         * modules/dup3 (Depends-on): Likewise.
19695         * modules/fcntl (Depends-on): Likewise.
19696         * modules/futimens (Depends-on): Likewise.
19697         * modules/mknod (Depends-on): Likewise.
19698         * modules/pipe2 (Depends-on): Likewise.
19699         * modules/stat-time (Depends-on): Likewise.
19700         * modules/strcasestr-simple (Depends-on): Likewise.
19701         * modules/strsignal (Depends-on): Likewise.
19702         * modules/utimensat (Depends-on): Likewise.
19703         * modules/localcharset (Depends-on): Likewise. Needed because of
19704         gl_FCNTL_O_FLAGS.
19705         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19706         AC_TYPE_MBSTATE_T.
19707         * modules/wcsnrtombs (Depends-on): Likewise.
19708         * modules/wcsrtombs (Depends-on): Likewise.
19709
19710 2009-12-24  Bruno Haible  <bruno@clisp.org>
19711
19712         binary-io: Avoid gcc warning due to SET_BINARY.
19713         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19714         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19715
19716 2009-12-24  Bruno Haible  <bruno@clisp.org>
19717
19718         Avoid future namespace pollution on glibc systems.
19719         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19720         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19721         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19722         glibc systems.
19723
19724 2009-12-24  Bruno Haible  <bruno@clisp.org>
19725
19726         Refactor common macros used in tests.
19727         * tests/macros.h: New file.
19728         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19729         and/or <stdlib.h>, if appropriate.
19730         (ASSERT, SIZEOF): Remove macros.
19731         * tests/test-areadlink-with-size.c: Likewise.
19732         * tests/test-areadlinkat.c: Likewise.
19733         * tests/test-areadlinkat-with-size.c: Likewise.
19734         * tests/test-argmatch.c: Likewise.
19735         * tests/test-argv-iter.c: Likewise.
19736         * tests/test-array-mergesort.c: Likewise.
19737         * tests/test-array_list.c: Likewise.
19738         * tests/test-array_oset.c: Likewise.
19739         * tests/test-avltree_list.c: Likewise.
19740         * tests/test-avltree_oset.c: Likewise.
19741         * tests/test-avltreehash_list.c: Likewise.
19742         * tests/test-base64.c: Likewise.
19743         * tests/test-binary-io.c: Likewise.
19744         * tests/test-bitrotate.c: Likewise.
19745         * tests/test-btowc.c: Likewise.
19746         * tests/test-byteswap.c: Likewise.
19747         * tests/test-c-ctype.c: Likewise.
19748         * tests/test-c-stack.c: Likewise.
19749         * tests/test-c-strcasecmp.c: Likewise.
19750         * tests/test-c-strcasestr.c: Likewise.
19751         * tests/test-c-strncasecmp.c: Likewise.
19752         * tests/test-c-strstr.c: Likewise.
19753         * tests/test-canonicalize-lgpl.c: Likewise.
19754         * tests/test-canonicalize.c: Likewise.
19755         * tests/test-carray_list.c: Likewise.
19756         * tests/test-ceilf1.c: Likewise.
19757         * tests/test-ceilf2.c: Likewise.
19758         * tests/test-ceill.c: Likewise.
19759         * tests/test-chown.c: Likewise.
19760         * tests/test-cloexec.c: Likewise.
19761         * tests/test-copy-acl.c: Likewise.
19762         * tests/test-copy-file.c: Likewise.
19763         * tests/test-count-one-bits.c: Likewise.
19764         * tests/test-dprintf-posix.c: Likewise.
19765         * tests/test-dup2.c: Likewise.
19766         * tests/test-dup3.c: Likewise.
19767         * tests/test-duplocale.c: Likewise.
19768         * tests/test-fbufmode.c: Likewise.
19769         * tests/test-fchdir.c: Likewise.
19770         * tests/test-fchownat.c: Likewise.
19771         * tests/test-fcntl-safer.c: Likewise.
19772         * tests/test-fcntl.c: Likewise.
19773         * tests/test-fdopendir.c: Likewise.
19774         * tests/test-fdutimensat.c: Likewise.
19775         * tests/test-fflush2.c: Likewise.
19776         * tests/test-file-has-acl.c: Likewise.
19777         * tests/test-filevercmp.c: Likewise.
19778         * tests/test-flock.c: Likewise.
19779         * tests/test-floorf1.c: Likewise.
19780         * tests/test-floorf2.c: Likewise.
19781         * tests/test-floorl.c: Likewise.
19782         * tests/test-fnmatch.c: Likewise.
19783         * tests/test-fopen.h: Likewise.
19784         * tests/test-fpending.c: Likewise.
19785         * tests/test-fprintf-posix.c: Likewise.
19786         * tests/test-fpurge.c: Likewise.
19787         * tests/test-freadable.c: Likewise.
19788         * tests/test-freadahead.c: Likewise.
19789         * tests/test-freading.c: Likewise.
19790         * tests/test-freadptr.c: Likewise.
19791         * tests/test-freadptr2.c: Likewise.
19792         * tests/test-freadseek.c: Likewise.
19793         * tests/test-freopen.c: Likewise.
19794         * tests/test-frexp.c: Likewise.
19795         * tests/test-frexpl.c: Likewise.
19796         * tests/test-fseek.c: Likewise.
19797         * tests/test-fseeko.c: Likewise.
19798         * tests/test-fstatat.c: Likewise.
19799         * tests/test-fstrcmp.c: Likewise.
19800         * tests/test-fsync.c: Likewise.
19801         * tests/test-ftell.c: Likewise.
19802         * tests/test-ftello.c: Likewise.
19803         * tests/test-func.c: Likewise.
19804         * tests/test-futimens.c: Likewise.
19805         * tests/test-fwritable.c: Likewise.
19806         * tests/test-fwriting.c: Likewise.
19807         * tests/test-getcwd.c: Likewise.
19808         * tests/test-getdate.c: Likewise.
19809         * tests/test-getdelim.c: Likewise.
19810         * tests/test-getdtablesize.c: Likewise.
19811         * tests/test-getgroups.c: Likewise.
19812         * tests/test-getline.c: Likewise.
19813         * tests/test-getndelim2.c: Likewise.
19814         * tests/test-glob.c: Likewise.
19815         * tests/test-hash.c: Likewise.
19816         * tests/test-i-ring.c: Likewise.
19817         * tests/test-iconv-utf.c: Likewise.
19818         * tests/test-iconv.c: Likewise.
19819         * tests/test-idpriv-drop.c: Likewise.
19820         * tests/test-idpriv-droptemp.c: Likewise.
19821         * tests/test-inet_ntop.c: Likewise.
19822         * tests/test-inet_pton.c: Likewise.
19823         * tests/test-isblank.c: Likewise.
19824         * tests/test-isfinite.c: Likewise.
19825         * tests/test-isinf.c: Likewise.
19826         * tests/test-isnan.c: Likewise.
19827         * tests/test-isnand.h: Likewise.
19828         * tests/test-isnanf.h: Likewise.
19829         * tests/test-isnanl.h: Likewise.
19830         * tests/test-lchown.c: Likewise.
19831         * tests/test-ldexpl.c: Likewise.
19832         * tests/test-link.c: Likewise.
19833         * tests/test-linkat.c: Likewise.
19834         * tests/test-linked_list.c: Likewise.
19835         * tests/test-linkedhash_list.c: Likewise.
19836         * tests/test-localename.c: Likewise.
19837         * tests/test-lseek.c: Likewise.
19838         * tests/test-lstat.c: Likewise.
19839         * tests/test-mbmemcasecmp.c: Likewise.
19840         * tests/test-mbmemcasecoll.c: Likewise.
19841         * tests/test-mbrtowc.c: Likewise.
19842         * tests/test-mbscasecmp.c: Likewise.
19843         * tests/test-mbscasestr1.c: Likewise.
19844         * tests/test-mbscasestr2.c: Likewise.
19845         * tests/test-mbscasestr3.c: Likewise.
19846         * tests/test-mbscasestr4.c: Likewise.
19847         * tests/test-mbschr.c: Likewise.
19848         * tests/test-mbscspn.c: Likewise.
19849         * tests/test-mbsinit.c: Likewise.
19850         * tests/test-mbsncasecmp.c: Likewise.
19851         * tests/test-mbsnrtowcs.c: Likewise.
19852         * tests/test-mbspbrk.c: Likewise.
19853         * tests/test-mbspcasecmp.c: Likewise.
19854         * tests/test-mbsrchr.c: Likewise.
19855         * tests/test-mbsrtowcs.c: Likewise.
19856         * tests/test-mbsspn.c: Likewise.
19857         * tests/test-mbsstr1.c: Likewise.
19858         * tests/test-mbsstr2.c: Likewise.
19859         * tests/test-mbsstr3.c: Likewise.
19860         * tests/test-memchr.c: Likewise.
19861         * tests/test-memchr2.c: Likewise.
19862         * tests/test-memcmp.c: Likewise.
19863         * tests/test-memmem.c: Likewise.
19864         * tests/test-memrchr.c: Likewise.
19865         * tests/test-mkdir.c: Likewise.
19866         * tests/test-mkdirat.c: Likewise.
19867         * tests/test-mkfifo.c: Likewise.
19868         * tests/test-mkfifoat.c: Likewise.
19869         * tests/test-mknod.c: Likewise.
19870         * tests/test-nanosleep.c: Likewise.
19871         * tests/test-nl_langinfo.c: Likewise.
19872         * tests/test-obstack-printf.c: Likewise.
19873         * tests/test-open.c: Likewise.
19874         * tests/test-openat.c: Likewise.
19875         * tests/test-pipe-filter-gi1.c: Likewise.
19876         * tests/test-pipe-filter-gi2-main.c: Likewise.
19877         * tests/test-pipe-filter-ii1.c: Likewise.
19878         * tests/test-pipe-filter-ii2-main.c: Likewise.
19879         * tests/test-pipe2.c: Likewise.
19880         * tests/test-popen.h: Likewise.
19881         * tests/test-posixtm.c: Likewise.
19882         * tests/test-pread.c: Likewise.
19883         * tests/test-printf-frexp.c: Likewise.
19884         * tests/test-printf-frexpl.c: Likewise.
19885         * tests/test-printf-posix.c: Likewise.
19886         * tests/test-priv-set.c: Likewise.
19887         * tests/test-quotearg.c: Likewise.
19888         * tests/test-random_r.c: Likewise.
19889         * tests/test-rawmemchr.c: Likewise.
19890         * tests/test-rbtree_list.c: Likewise.
19891         * tests/test-rbtree_oset.c: Likewise.
19892         * tests/test-rbtreehash_list.c: Likewise.
19893         * tests/test-readlink.c: Likewise.
19894         * tests/test-remove.c: Likewise.
19895         * tests/test-rename.c: Likewise.
19896         * tests/test-renameat.c: Likewise.
19897         * tests/test-rmdir.c: Likewise.
19898         * tests/test-round1.c: Likewise.
19899         * tests/test-roundf1.c: Likewise.
19900         * tests/test-roundl.c: Likewise.
19901         * tests/test-safe-alloc.c: Likewise.
19902         * tests/test-sameacls.c: Likewise.
19903         * tests/test-set-mode-acl.c: Likewise.
19904         * tests/test-setenv.c: Likewise.
19905         * tests/test-sigaction.c: Likewise.
19906         * tests/test-signbit.c: Likewise.
19907         * tests/test-sleep.c: Likewise.
19908         * tests/test-snprintf-posix.c: Likewise.
19909         * tests/test-snprintf.c: Likewise.
19910         * tests/test-sprintf-posix.c: Likewise.
19911         * tests/test-stat-time.c: Likewise.
19912         * tests/test-stat.c: Likewise.
19913         * tests/test-strcasestr.c: Likewise.
19914         * tests/test-strchrnul.c: Likewise.
19915         * tests/test-strerror.c: Likewise.
19916         * tests/test-striconv.c: Likewise.
19917         * tests/test-striconveh.c: Likewise.
19918         * tests/test-striconveha.c: Likewise.
19919         * tests/test-strsignal.c: Likewise.
19920         * tests/test-strstr.c: Likewise.
19921         * tests/test-strtod.c: Likewise.
19922         * tests/test-strverscmp.c: Likewise.
19923         * tests/test-symlink.c: Likewise.
19924         * tests/test-symlinkat.c: Likewise.
19925         * tests/test-trunc1.c: Likewise.
19926         * tests/test-trunc2.c: Likewise.
19927         * tests/test-truncf1.c: Likewise.
19928         * tests/test-truncf2.c: Likewise.
19929         * tests/test-truncl.c: Likewise.
19930         * tests/test-uname.c: Likewise.
19931         * tests/test-unlink.c: Likewise.
19932         * tests/test-unlinkat.c: Likewise.
19933         * tests/test-unsetenv.c: Likewise.
19934         * tests/test-usleep.c: Likewise.
19935         * tests/test-utimens.c: Likewise.
19936         * tests/test-utimensat.c: Likewise.
19937         * tests/test-vasnprintf-posix.c: Likewise.
19938         * tests/test-vasnprintf-posix2.c: Likewise.
19939         * tests/test-vasnprintf.c: Likewise.
19940         * tests/test-vasprintf-posix.c: Likewise.
19941         * tests/test-vasprintf.c: Likewise.
19942         * tests/test-vdprintf-posix.c: Likewise.
19943         * tests/test-vfprintf-posix.c: Likewise.
19944         * tests/test-vprintf-posix.c: Likewise.
19945         * tests/test-vsnprintf-posix.c: Likewise.
19946         * tests/test-vsnprintf.c: Likewise.
19947         * tests/test-vsprintf-posix.c: Likewise.
19948         * tests/test-wcrtomb.c: Likewise.
19949         * tests/test-wcsnrtombs.c: Likewise.
19950         * tests/test-wcsrtombs.c: Likewise.
19951         * tests/test-wctype.c: Likewise.
19952         * tests/test-wcwidth.c: Likewise.
19953         * tests/test-xfprintf-posix.c: Likewise.
19954         * tests/test-xmemdup0.c: Likewise.
19955         * tests/test-xprintf-posix.c: Likewise.
19956         * tests/test-xvasprintf.c: Likewise.
19957         * tests/unicase/test-locale-language.c: Likewise.
19958         * tests/unicase/test-mapping-part1.h: Likewise.
19959         * tests/unicase/test-predicate-part1.h: Likewise.
19960         * tests/unicase/test-u8-casecmp.c: Likewise.
19961         * tests/unicase/test-u8-casecoll.c: Likewise.
19962         * tests/unicase/test-u8-casefold.c: Likewise.
19963         * tests/unicase/test-u8-is-cased.c: Likewise.
19964         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19965         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19966         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19967         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19968         * tests/unicase/test-u8-tolower.c: Likewise.
19969         * tests/unicase/test-u8-totitle.c: Likewise.
19970         * tests/unicase/test-u8-toupper.c: Likewise.
19971         * tests/unicase/test-u16-casecmp.c: Likewise.
19972         * tests/unicase/test-u16-casecoll.c: Likewise.
19973         * tests/unicase/test-u16-casefold.c: Likewise.
19974         * tests/unicase/test-u16-is-cased.c: Likewise.
19975         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19976         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19977         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19978         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19979         * tests/unicase/test-u16-tolower.c: Likewise.
19980         * tests/unicase/test-u16-totitle.c: Likewise.
19981         * tests/unicase/test-u16-toupper.c: Likewise.
19982         * tests/unicase/test-u32-casecmp.c: Likewise.
19983         * tests/unicase/test-u32-casecoll.c: Likewise.
19984         * tests/unicase/test-u32-casefold.c: Likewise.
19985         * tests/unicase/test-u32-is-cased.c: Likewise.
19986         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19987         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19988         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19989         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19990         * tests/unicase/test-u32-tolower.c: Likewise.
19991         * tests/unicase/test-u32-totitle.c: Likewise.
19992         * tests/unicase/test-u32-toupper.c: Likewise.
19993         * tests/unicase/test-ulc-casecmp.c: Likewise.
19994         * tests/unicase/test-ulc-casecoll.c: Likewise.
19995         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19996         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19997         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19998         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19999         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20000         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20001         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20002         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20003         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20004         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20005         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20006         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20007         * tests/unictype/test-bidi_byname.c: Likewise.
20008         * tests/unictype/test-bidi_name.c: Likewise.
20009         * tests/unictype/test-bidi_of.c: Likewise.
20010         * tests/unictype/test-bidi_test.c: Likewise.
20011         * tests/unictype/test-block_list.c: Likewise.
20012         * tests/unictype/test-block_of.c: Likewise.
20013         * tests/unictype/test-block_test.c: Likewise.
20014         * tests/unictype/test-categ_and.c: Likewise.
20015         * tests/unictype/test-categ_and_not.c: Likewise.
20016         * tests/unictype/test-categ_byname.c: Likewise.
20017         * tests/unictype/test-categ_name.c: Likewise.
20018         * tests/unictype/test-categ_none.c: Likewise.
20019         * tests/unictype/test-categ_of.c: Likewise.
20020         * tests/unictype/test-categ_or.c: Likewise.
20021         * tests/unictype/test-categ_test_withtable.c: Likewise.
20022         * tests/unictype/test-combining.c: Likewise.
20023         * tests/unictype/test-decdigit.c: Likewise.
20024         * tests/unictype/test-digit.c: Likewise.
20025         * tests/unictype/test-mirror.c: Likewise.
20026         * tests/unictype/test-numeric.c: Likewise.
20027         * tests/unictype/test-pr_byname.c: Likewise.
20028         * tests/unictype/test-pr_test.c: Likewise.
20029         * tests/unictype/test-predicate-part1.h: Likewise.
20030         * tests/unictype/test-scripts.c: Likewise.
20031         * tests/unictype/test-sy_c_ident.c: Likewise.
20032         * tests/unictype/test-sy_java_ident.c: Likewise.
20033         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20034         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20035         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20036         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20037         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20038         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20039         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20040         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20041         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20042         * tests/uninorm/test-compat-decomposition.c: Likewise.
20043         * tests/uninorm/test-composition.c: Likewise.
20044         * tests/uninorm/test-decomposing-form.c: Likewise.
20045         * tests/uninorm/test-decomposition.c: Likewise.
20046         * tests/uninorm/test-u8-nfc.c: Likewise.
20047         * tests/uninorm/test-u8-nfd.c: Likewise.
20048         * tests/uninorm/test-u8-nfkc.c: Likewise.
20049         * tests/uninorm/test-u8-nfkd.c: Likewise.
20050         * tests/uninorm/test-u8-normcmp.c: Likewise.
20051         * tests/uninorm/test-u8-normcoll.c: Likewise.
20052         * tests/uninorm/test-u16-nfc.c: Likewise.
20053         * tests/uninorm/test-u16-nfd.c: Likewise.
20054         * tests/uninorm/test-u16-nfkc.c: Likewise.
20055         * tests/uninorm/test-u16-nfkd.c: Likewise.
20056         * tests/uninorm/test-u16-normcmp.c: Likewise.
20057         * tests/uninorm/test-u16-normcoll.c: Likewise.
20058         * tests/uninorm/test-u32-nfc.c: Likewise.
20059         * tests/uninorm/test-u32-nfd.c: Likewise.
20060         * tests/uninorm/test-u32-nfkc.c: Likewise.
20061         * tests/uninorm/test-u32-nfkd.c: Likewise.
20062         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20063         * tests/uninorm/test-u32-normcmp.c: Likewise.
20064         * tests/uninorm/test-u32-normcoll.c: Likewise.
20065         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20066         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20067         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20068         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20069         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20070         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20071         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20072         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20073         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20074         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20075         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20076         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20077         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20078         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20079         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20080         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20081         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20082         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20083         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20084         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20085         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20086         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20087         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20088         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20089         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20090         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20091         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20092         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20093         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20094         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20095         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20096         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20097         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20098         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20099         * tests/uniwidth/test-u8-width.c: Likewise.
20100         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20101         * tests/uniwidth/test-u16-width.c: Likewise.
20102         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20103         * tests/uniwidth/test-u32-width.c: Likewise.
20104         * tests/uniwidth/test-uc_width.c: Likewise.
20105         * tests/uniwidth/test-uc_width2.c: Likewise.
20106         * modules/acl-tests (Files): Add tests/macros.h.
20107         * modules/areadlink-tests (Files): Likewise.
20108         * modules/areadlink-with-size-tests (Files): Likewise.
20109         * modules/areadlinkat-tests (Files): Likewise.
20110         * modules/areadlinkat-with-size-tests (Files): Likewise.
20111         * modules/argmatch-tests (Files): Likewise.
20112         * modules/argv-iter-tests (Files): Likewise.
20113         * modules/array-list-tests (Files): Likewise.
20114         * modules/array-mergesort-tests (Files): Likewise.
20115         * modules/array-oset-tests (Files): Likewise.
20116         * modules/avltree-list-tests (Files): Likewise.
20117         * modules/avltree-oset-tests (Files): Likewise.
20118         * modules/avltreehash-list-tests (Files): Likewise.
20119         * modules/base64-tests (Files): Likewise.
20120         * modules/binary-io-tests (Files): Likewise.
20121         * modules/bitrotate-tests (Files): Likewise.
20122         * modules/btowc-tests (Files): Likewise.
20123         * modules/byteswap-tests (Files): Likewise.
20124         * modules/c-ctype-tests (Files): Likewise.
20125         * modules/c-stack-tests (Files): Likewise.
20126         * modules/c-strcase-tests (Files): Likewise.
20127         * modules/c-strcasestr-tests (Files): Likewise.
20128         * modules/c-strstr-tests (Files): Likewise.
20129         * modules/canonicalize-lgpl-tests (Files): Likewise.
20130         * modules/canonicalize-tests (Files): Likewise.
20131         * modules/carray-list-tests (Files): Likewise.
20132         * modules/ceilf-tests (Files): Likewise.
20133         * modules/ceill-tests (Files): Likewise.
20134         * modules/chown-tests (Files): Likewise.
20135         * modules/cloexec-tests (Files): Likewise.
20136         * modules/copy-file-tests (Files): Likewise.
20137         * modules/count-one-bits-tests (Files): Likewise.
20138         * modules/dprintf-posix-tests (Files): Likewise.
20139         * modules/dup2-tests (Files): Likewise.
20140         * modules/dup3-tests (Files): Likewise.
20141         * modules/duplocale-tests (Files): Likewise.
20142         * modules/fbufmode-tests (Files): Likewise.
20143         * modules/fchdir-tests (Files): Likewise.
20144         * modules/fcntl-safer-tests (Files): Likewise.
20145         * modules/fcntl-tests (Files): Likewise.
20146         * modules/fdopendir-tests (Files): Likewise.
20147         * modules/fdutimensat-tests (Files): Likewise.
20148         * modules/fflush-tests (Files): Likewise.
20149         * modules/filevercmp-tests (Files): Likewise.
20150         * modules/flock-tests (Files): Likewise.
20151         * modules/floorf-tests (Files): Likewise.
20152         * modules/floorl-tests (Files): Likewise.
20153         * modules/fnmatch-tests (Files): Likewise.
20154         * modules/fopen-safer-tests (Files): Likewise.
20155         * modules/fopen-tests (Files): Likewise.
20156         * modules/fpending-tests (Files): Likewise.
20157         * modules/fprintf-posix-tests (Files): Likewise.
20158         * modules/fpurge-tests (Files): Likewise.
20159         * modules/freadable-tests (Files): Likewise.
20160         * modules/freadahead-tests (Files): Likewise.
20161         * modules/freading-tests (Files): Likewise.
20162         * modules/freadptr-tests (Files): Likewise.
20163         * modules/freadseek-tests (Files): Likewise.
20164         * modules/freopen-tests (Files): Likewise.
20165         * modules/frexp-nolibm-tests (Files): Likewise.
20166         * modules/frexp-tests (Files): Likewise.
20167         * modules/frexpl-nolibm-tests (Files): Likewise.
20168         * modules/frexpl-tests (Files): Likewise.
20169         * modules/fseek-tests (Files): Likewise.
20170         * modules/fseeko-tests (Files): Likewise.
20171         * modules/fstrcmp-tests (Files): Likewise.
20172         * modules/fsync-tests (Files): Likewise.
20173         * modules/ftell-tests (Files): Likewise.
20174         * modules/ftello-tests (Files): Likewise.
20175         * modules/func-tests (Files): Likewise.
20176         * modules/futimens-tests (Files): Likewise.
20177         * modules/fwritable-tests (Files): Likewise.
20178         * modules/fwriting-tests (Files): Likewise.
20179         * modules/getcwd-tests (Files): Likewise.
20180         * modules/getdate-tests (Files): Likewise.
20181         * modules/getdelim-tests (Files): Likewise.
20182         * modules/getdtablesize-tests (Files): Likewise.
20183         * modules/getgroups-tests (Files): Likewise.
20184         * modules/getline-tests (Files): Likewise.
20185         * modules/getndelim2-tests (Files): Likewise.
20186         * modules/glob-tests (Files): Likewise.
20187         * modules/hash-tests (Files): Likewise.
20188         * modules/i-ring-tests (Files): Likewise.
20189         * modules/iconv-tests (Files): Likewise.
20190         * modules/iconv_open-utf-tests (Files): Likewise.
20191         * modules/idpriv-drop-tests (Files): Likewise.
20192         * modules/idpriv-droptemp-tests (Files): Likewise.
20193         * modules/inet_ntop-tests (Files): Likewise.
20194         * modules/inet_pton-tests (Files): Likewise.
20195         * modules/isblank-tests (Files): Likewise.
20196         * modules/isfinite-tests (Files): Likewise.
20197         * modules/isinf-tests (Files): Likewise.
20198         * modules/isnan-tests (Files): Likewise.
20199         * modules/isnand-nolibm-tests (Files): Likewise.
20200         * modules/isnand-tests (Files): Likewise.
20201         * modules/isnanf-nolibm-tests (Files): Likewise.
20202         * modules/isnanf-tests (Files): Likewise.
20203         * modules/isnanl-nolibm-tests (Files): Likewise.
20204         * modules/isnanl-tests (Files): Likewise.
20205         * modules/lchown-tests (Files): Likewise.
20206         * modules/ldexpl-tests (Files): Likewise.
20207         * modules/link-tests (Files): Likewise.
20208         * modules/linkat-tests (Files): Likewise.
20209         * modules/linked-list-tests (Files): Likewise.
20210         * modules/linkedhash-list-tests (Files): Likewise.
20211         * modules/localename-tests (Files): Likewise.
20212         * modules/lseek-tests (Files): Likewise.
20213         * modules/lstat-tests (Files): Likewise.
20214         * modules/mbmemcasecmp-tests (Files): Likewise.
20215         * modules/mbmemcasecoll-tests (Files): Likewise.
20216         * modules/mbrtowc-tests (Files): Likewise.
20217         * modules/mbscasecmp-tests (Files): Likewise.
20218         * modules/mbscasestr-tests (Files): Likewise.
20219         * modules/mbschr-tests (Files): Likewise.
20220         * modules/mbscspn-tests (Files): Likewise.
20221         * modules/mbsinit-tests (Files): Likewise.
20222         * modules/mbsncasecmp-tests (Files): Likewise.
20223         * modules/mbsnrtowcs-tests (Files): Likewise.
20224         * modules/mbspbrk-tests (Files): Likewise.
20225         * modules/mbspcasecmp-tests (Files): Likewise.
20226         * modules/mbsrchr-tests (Files): Likewise.
20227         * modules/mbsrtowcs-tests (Files): Likewise.
20228         * modules/mbsspn-tests (Files): Likewise.
20229         * modules/mbsstr-tests (Files): Likewise.
20230         * modules/memchr-tests (Files): Likewise.
20231         * modules/memchr2-tests (Files): Likewise.
20232         * modules/memcmp-tests (Files): Likewise.
20233         * modules/memmem-tests (Files): Likewise.
20234         * modules/memrchr-tests (Files): Likewise.
20235         * modules/mkdir-tests (Files): Likewise.
20236         * modules/mkfifo-tests (Files): Likewise.
20237         * modules/mkfifoat-tests (Files): Likewise.
20238         * modules/mknod-tests (Files): Likewise.
20239         * modules/nanosleep-tests (Files): Likewise.
20240         * modules/nl_langinfo-tests (Files): Likewise.
20241         * modules/obstack-printf-tests (Files): Likewise.
20242         * modules/open-tests (Files): Likewise.
20243         * modules/openat-tests (Files): Likewise.
20244         * modules/pipe-filter-gi-tests (Files): Likewise.
20245         * modules/pipe-filter-ii-tests (Files): Likewise.
20246         * modules/pipe2-tests (Files): Likewise.
20247         * modules/popen-safer-tests (Files): Likewise.
20248         * modules/popen-tests (Files): Likewise.
20249         * modules/posixtm-tests (Files): Likewise.
20250         * modules/pread-tests (Files): Likewise.
20251         * modules/printf-frexp-tests (Files): Likewise.
20252         * modules/printf-frexpl-tests (Files): Likewise.
20253         * modules/printf-posix-tests (Files): Likewise.
20254         * modules/priv-set-tests (Files): Likewise.
20255         * modules/quotearg-tests (Files): Likewise.
20256         * modules/random_r-tests (Files): Likewise.
20257         * modules/rawmemchr-tests (Files): Likewise.
20258         * modules/rbtree-list-tests (Files): Likewise.
20259         * modules/rbtree-oset-tests (Files): Likewise.
20260         * modules/rbtreehash-list-tests (Files): Likewise.
20261         * modules/readlink-tests (Files): Likewise.
20262         * modules/remove-tests (Files): Likewise.
20263         * modules/rename-tests (Files): Likewise.
20264         * modules/renameat-tests (Files): Likewise.
20265         * modules/rmdir-tests (Files): Likewise.
20266         * modules/round-tests (Files): Likewise.
20267         * modules/roundf-tests (Files): Likewise.
20268         * modules/roundl-tests (Files): Likewise.
20269         * modules/safe-alloc-tests (Files): Likewise.
20270         * modules/setenv-tests (Files): Likewise.
20271         * modules/sigaction-tests (Files): Likewise.
20272         * modules/signbit-tests (Files): Likewise.
20273         * modules/sleep-tests (Files): Likewise.
20274         * modules/snprintf-posix-tests (Files): Likewise.
20275         * modules/snprintf-tests (Files): Likewise.
20276         * modules/sprintf-posix-tests (Files): Likewise.
20277         * modules/stat-tests (Files): Likewise.
20278         * modules/stat-time-tests (Files): Likewise.
20279         * modules/strcasestr-tests (Files): Likewise.
20280         * modules/strchrnul-tests (Files): Likewise.
20281         * modules/strerror-tests (Files): Likewise.
20282         * modules/striconv-tests (Files): Likewise.
20283         * modules/striconveh-tests (Files): Likewise.
20284         * modules/striconveha-tests (Files): Likewise.
20285         * modules/strsignal-tests (Files): Likewise.
20286         * modules/strstr-tests (Files): Likewise.
20287         * modules/strtod-tests (Files): Likewise.
20288         * modules/strverscmp-tests (Files): Likewise.
20289         * modules/symlink-tests (Files): Likewise.
20290         * modules/symlinkat-tests (Files): Likewise.
20291         * modules/trunc-tests (Files): Likewise.
20292         * modules/truncf-tests (Files): Likewise.
20293         * modules/truncl-tests (Files): Likewise.
20294         * modules/uname-tests (Files): Likewise.
20295         * modules/unicase/cased-tests (Files): Likewise.
20296         * modules/unicase/ignorable-tests (Files): Likewise.
20297         * modules/unicase/locale-language-tests (Files): Likewise.
20298         * modules/unicase/tolower-tests (Files): Likewise.
20299         * modules/unicase/totitle-tests (Files): Likewise.
20300         * modules/unicase/toupper-tests (Files): Likewise.
20301         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20302         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20303         * modules/unicase/u8-casefold-tests (Files): Likewise.
20304         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20305         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20306         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20307         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20308         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20309         * modules/unicase/u8-tolower-tests (Files): Likewise.
20310         * modules/unicase/u8-totitle-tests (Files): Likewise.
20311         * modules/unicase/u8-toupper-tests (Files): Likewise.
20312         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20313         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20314         * modules/unicase/u16-casefold-tests (Files): Likewise.
20315         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20316         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20317         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20318         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20319         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20320         * modules/unicase/u16-tolower-tests (Files): Likewise.
20321         * modules/unicase/u16-totitle-tests (Files): Likewise.
20322         * modules/unicase/u16-toupper-tests (Files): Likewise.
20323         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20324         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20325         * modules/unicase/u32-casefold-tests (Files): Likewise.
20326         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20327         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20328         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20329         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20330         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20331         * modules/unicase/u32-tolower-tests (Files): Likewise.
20332         * modules/unicase/u32-totitle-tests (Files): Likewise.
20333         * modules/unicase/u32-toupper-tests (Files): Likewise.
20334         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20335         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20336         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20337         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20338         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20339         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20340         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20341         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20342         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20343         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20344         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20345         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20346         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20347         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20348         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20349         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20350         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20351         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20352         * modules/unictype/block-list-tests (Files): Likewise.
20353         * modules/unictype/block-of-tests (Files): Likewise.
20354         * modules/unictype/block-test-tests (Files): Likewise.
20355         * modules/unictype/category-C-tests (Files): Likewise.
20356         * modules/unictype/category-Cc-tests (Files): Likewise.
20357         * modules/unictype/category-Cf-tests (Files): Likewise.
20358         * modules/unictype/category-Cn-tests (Files): Likewise.
20359         * modules/unictype/category-Co-tests (Files): Likewise.
20360         * modules/unictype/category-Cs-tests (Files): Likewise.
20361         * modules/unictype/category-L-tests (Files): Likewise.
20362         * modules/unictype/category-Ll-tests (Files): Likewise.
20363         * modules/unictype/category-Lm-tests (Files): Likewise.
20364         * modules/unictype/category-Lo-tests (Files): Likewise.
20365         * modules/unictype/category-Lt-tests (Files): Likewise.
20366         * modules/unictype/category-Lu-tests (Files): Likewise.
20367         * modules/unictype/category-M-tests (Files): Likewise.
20368         * modules/unictype/category-Mc-tests (Files): Likewise.
20369         * modules/unictype/category-Me-tests (Files): Likewise.
20370         * modules/unictype/category-Mn-tests (Files): Likewise.
20371         * modules/unictype/category-N-tests (Files): Likewise.
20372         * modules/unictype/category-Nd-tests (Files): Likewise.
20373         * modules/unictype/category-Nl-tests (Files): Likewise.
20374         * modules/unictype/category-No-tests (Files): Likewise.
20375         * modules/unictype/category-P-tests (Files): Likewise.
20376         * modules/unictype/category-Pc-tests (Files): Likewise.
20377         * modules/unictype/category-Pd-tests (Files): Likewise.
20378         * modules/unictype/category-Pe-tests (Files): Likewise.
20379         * modules/unictype/category-Pf-tests (Files): Likewise.
20380         * modules/unictype/category-Pi-tests (Files): Likewise.
20381         * modules/unictype/category-Po-tests (Files): Likewise.
20382         * modules/unictype/category-Ps-tests (Files): Likewise.
20383         * modules/unictype/category-S-tests (Files): Likewise.
20384         * modules/unictype/category-Sc-tests (Files): Likewise.
20385         * modules/unictype/category-Sk-tests (Files): Likewise.
20386         * modules/unictype/category-Sm-tests (Files): Likewise.
20387         * modules/unictype/category-So-tests (Files): Likewise.
20388         * modules/unictype/category-Z-tests (Files): Likewise.
20389         * modules/unictype/category-Zl-tests (Files): Likewise.
20390         * modules/unictype/category-Zp-tests (Files): Likewise.
20391         * modules/unictype/category-Zs-tests (Files): Likewise.
20392         * modules/unictype/category-and-not-tests (Files): Likewise.
20393         * modules/unictype/category-and-tests (Files): Likewise.
20394         * modules/unictype/category-byname-tests (Files): Likewise.
20395         * modules/unictype/category-name-tests (Files): Likewise.
20396         * modules/unictype/category-none-tests (Files): Likewise.
20397         * modules/unictype/category-of-tests (Files): Likewise.
20398         * modules/unictype/category-or-tests (Files): Likewise.
20399         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20400         * modules/unictype/combining-class-tests (Files): Likewise.
20401         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20402         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20403         * modules/unictype/ctype-blank-tests (Files): Likewise.
20404         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20405         * modules/unictype/ctype-digit-tests (Files): Likewise.
20406         * modules/unictype/ctype-graph-tests (Files): Likewise.
20407         * modules/unictype/ctype-lower-tests (Files): Likewise.
20408         * modules/unictype/ctype-print-tests (Files): Likewise.
20409         * modules/unictype/ctype-punct-tests (Files): Likewise.
20410         * modules/unictype/ctype-space-tests (Files): Likewise.
20411         * modules/unictype/ctype-upper-tests (Files): Likewise.
20412         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20413         * modules/unictype/decimal-digit-tests (Files): Likewise.
20414         * modules/unictype/digit-tests (Files): Likewise.
20415         * modules/unictype/mirror-tests (Files): Likewise.
20416         * modules/unictype/numeric-tests (Files): Likewise.
20417         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20418         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20419         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20420         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20421         Likewise.
20422         * modules/unictype/property-bidi-block-separator-tests (Files):
20423         Likewise.
20424         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20425         Likewise.
20426         * modules/unictype/property-bidi-common-separator-tests (Files):
20427         Likewise.
20428         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20429         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20430         Likewise.
20431         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20432         Likewise.
20433         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20434         Likewise.
20435         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20436         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20437         Likewise.
20438         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20439         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20440         Likewise.
20441         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20442         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20443         * modules/unictype/property-bidi-segment-separator-tests (Files):
20444         Likewise.
20445         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20446         * modules/unictype/property-byname-tests (Files): Likewise.
20447         * modules/unictype/property-combining-tests (Files): Likewise.
20448         * modules/unictype/property-composite-tests (Files): Likewise.
20449         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20450         * modules/unictype/property-dash-tests (Files): Likewise.
20451         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20452         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20453         Likewise.
20454         * modules/unictype/property-deprecated-tests (Files): Likewise.
20455         * modules/unictype/property-diacritic-tests (Files): Likewise.
20456         * modules/unictype/property-extender-tests (Files): Likewise.
20457         * modules/unictype/property-format-control-tests (Files): Likewise.
20458         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20459         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20460         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20461         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20462         * modules/unictype/property-hyphen-tests (Files): Likewise.
20463         * modules/unictype/property-id-continue-tests (Files): Likewise.
20464         * modules/unictype/property-id-start-tests (Files): Likewise.
20465         * modules/unictype/property-ideographic-tests (Files): Likewise.
20466         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20467         * modules/unictype/property-ids-trinary-operator-tests (Files):
20468         Likewise.
20469         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20470         * modules/unictype/property-iso-control-tests (Files): Likewise.
20471         * modules/unictype/property-join-control-tests (Files): Likewise.
20472         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20473         * modules/unictype/property-line-separator-tests (Files): Likewise.
20474         * modules/unictype/property-logical-order-exception-tests (Files):
20475         Likewise.
20476         * modules/unictype/property-lowercase-tests (Files): Likewise.
20477         * modules/unictype/property-math-tests (Files): Likewise.
20478         * modules/unictype/property-non-break-tests (Files): Likewise.
20479         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20480         * modules/unictype/property-numeric-tests (Files): Likewise.
20481         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20482         * modules/unictype/property-other-default-ignorable-code-point-tests
20483         (Files): Likewise.
20484         * modules/unictype/property-other-grapheme-extend-tests (Files):
20485         Likewise.
20486         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20487         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20488         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20489         * modules/unictype/property-other-math-tests (Files): Likewise.
20490         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20491         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20492         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20493         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20494         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20495         * modules/unictype/property-private-use-tests (Files): Likewise.
20496         * modules/unictype/property-punctuation-tests (Files): Likewise.
20497         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20498         * modules/unictype/property-radical-tests (Files): Likewise.
20499         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20500         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20501         * modules/unictype/property-space-tests (Files): Likewise.
20502         * modules/unictype/property-terminal-punctuation-tests (Files):
20503         Likewise.
20504         * modules/unictype/property-test-tests (Files): Likewise.
20505         * modules/unictype/property-titlecase-tests (Files): Likewise.
20506         * modules/unictype/property-unassigned-code-value-tests (Files):
20507         Likewise.
20508         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20509         * modules/unictype/property-uppercase-tests (Files): Likewise.
20510         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20511         * modules/unictype/property-white-space-tests (Files): Likewise.
20512         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20513         * modules/unictype/property-xid-start-tests (Files): Likewise.
20514         * modules/unictype/property-zero-width-tests (Files): Likewise.
20515         * modules/unictype/scripts-tests (Files): Likewise.
20516         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20517         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20518         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20519         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20520         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20521         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20522         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20523         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20524         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20525         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20526         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20527         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20528         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20529         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20530         * modules/uninorm/composition-tests (Files): Likewise.
20531         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20532         * modules/uninorm/decomposition-tests (Files): Likewise.
20533         * modules/uninorm/filter-tests (Files): Likewise.
20534         * modules/uninorm/nfc-tests (Files): Likewise.
20535         * modules/uninorm/nfd-tests (Files): Likewise.
20536         * modules/uninorm/nfkc-tests (Files): Likewise.
20537         * modules/uninorm/nfkd-tests (Files): Likewise.
20538         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20539         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20540         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20541         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20542         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20543         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20544         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20545         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20546         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20547         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20548         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20549         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20550         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20551         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20552         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20553         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20554         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20555         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20556         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20557         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20558         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20559         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20560         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20561         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20562         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20563         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20564         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20565         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20566         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20567         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20568         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20569         * modules/uniwidth/u8-width-tests (Files): Likewise.
20570         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20571         * modules/uniwidth/u16-width-tests (Files): Likewise.
20572         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20573         * modules/uniwidth/u32-width-tests (Files): Likewise.
20574         * modules/uniwidth/width-tests (Files): Likewise.
20575         * modules/unlink-tests (Files): Likewise.
20576         * modules/unsetenv-tests (Files): Likewise.
20577         * modules/usleep-tests (Files): Likewise.
20578         * modules/utimens-tests (Files): Likewise.
20579         * modules/utimensat-tests (Files): Likewise.
20580         * modules/vasnprintf-posix-tests (Files): Likewise.
20581         * modules/vasnprintf-tests (Files): Likewise.
20582         * modules/vasprintf-posix-tests (Files): Likewise.
20583         * modules/vasprintf-tests (Files): Likewise.
20584         * modules/vdprintf-posix-tests (Files): Likewise.
20585         * modules/vfprintf-posix-tests (Files): Likewise.
20586         * modules/vprintf-posix-tests (Files): Likewise.
20587         * modules/vsnprintf-posix-tests (Files): Likewise.
20588         * modules/vsnprintf-tests (Files): Likewise.
20589         * modules/vsprintf-posix-tests (Files): Likewise.
20590         * modules/wcrtomb-tests (Files): Likewise.
20591         * modules/wcsnrtombs-tests (Files): Likewise.
20592         * modules/wcsrtombs-tests (Files): Likewise.
20593         * modules/wctype-tests (Files): Likewise.
20594         * modules/wcwidth-tests (Files): Likewise.
20595         * modules/xmemdup0-tests (Files): Likewise.
20596         * modules/xprintf-posix-tests (Files): Likewise.
20597         * modules/xvasprintf-tests (Files): Likewise.
20598
20599 2009-12-24  Eric Blake  <ebb9@byu.net>
20600
20601         test-nanosleep: fix typo
20602         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20603         patch.
20604         Reported by Bruno Haible.
20605
20606 2009-12-24  Bruno Haible  <bruno@clisp.org>
20607
20608         Reduce namespace pollution on glibc systems.
20609         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20610         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20611         systems.
20612         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20613         <getopt.h> on glibc systems.
20614         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20615         systems.
20616         * lib/fcntl.c: Include <unistd.h> here instead.
20617
20618 2009-12-24  Bruno Haible  <bruno@clisp.org>
20619
20620         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20621
20622 2009-12-24  Eric Blake  <ebb9@byu.net>
20623
20624         tests: add signature checks
20625         * tests/signature.h (SIGNATURE_CHECK): New file.
20626         * modules/atexit-tests (Files): Use it.
20627         * modules/btowc-tests (Files): Likewise.
20628         * modules/canonicalize-lgpl-tests (Files): Likewise.
20629         * modules/ceilf-tests (Files): Likewise.
20630         * modules/ceill-tests (Files): Likewise.
20631         * modules/chown-tests (Files): Likewise.
20632         * modules/dprintf-posix-tests (Files): Likewise.
20633         * modules/dup2-tests (Files): Likewise.
20634         * modules/dup3-tests (Files): Likewise.
20635         * modules/duplocale-tests (Files): Likewise.
20636         * modules/fchdir-tests (Files): Likewise.
20637         * modules/fcntl-tests (Files): Likewise.
20638         * modules/fdopendir-tests (Files): Likewise.
20639         * modules/fflush-tests (Files): Likewise.
20640         * modules/flock-tests (Files): Likewise.
20641         * modules/floorf-tests (Files): Likewise.
20642         * modules/floorl-tests (Files): Likewise.
20643         * modules/fnmatch-tests (Files): Likewise.
20644         * modules/fopen-tests (Files): Likewise.
20645         * modules/fprintf-posix-tests (Files): Likewise.
20646         * modules/freopen-tests (Files): Likewise.
20647         * modules/frexp-nolibm-tests (Files): Likewise.
20648         * modules/frexp-tests (Files): Likewise.
20649         * modules/frexpl-nolibm-tests (Files): Likewise.
20650         * modules/frexpl-tests (Files): Likewise.
20651         * modules/fseek-tests (Files): Likewise.
20652         * modules/fseeko-tests (Files): Likewise.
20653         * modules/fsync-tests (Files): Likewise.
20654         * modules/ftell-tests (Files): Likewise.
20655         * modules/ftello-tests (Files): Likewise.
20656         * modules/futimens-tests (Files): Likewise.
20657         * modules/getaddrinfo-tests (Files): Likewise.
20658         * modules/getcwd-tests (Files): Likewise.
20659         * modules/getdelim-tests (Files): Likewise.
20660         * modules/getdtablesize-tests (Files): Likewise.
20661         * modules/getgroups-tests (Files): Likewise.
20662         * modules/gethostname-tests (Files): Likewise.
20663         * modules/getline-tests (Files): Likewise.
20664         * modules/getopt-posix-tests (Files): Likewise.
20665         * modules/gettimeofday-tests (Files): Likewise.
20666         * modules/glob-tests (Files): Likewise.
20667         * modules/iconv-tests (Files): Likewise.
20668         * modules/inet_ntop-tests (Files): Likewise.
20669         * modules/inet_pton-tests (Files): Likewise.
20670         * modules/isblank-tests (Files): Likewise.
20671         * modules/lchown-tests (Files): Likewise.
20672         * modules/ldexpl-tests (Files): Likewise.
20673         * modules/link-tests (Files): Likewise.
20674         * modules/linkat-tests (Files): Likewise.
20675         * modules/lseek-tests (Files): Likewise.
20676         * modules/lstat-tests (Files): Likewise.
20677         * modules/mbrtowc-tests (Files): Likewise.
20678         * modules/mbsinit-tests (Files): Likewise.
20679         * modules/mbsnrtowcs-tests (Files): Likewise.
20680         * modules/mbsrtowcs-tests (Files): Likewise.
20681         * modules/memchr-tests (Files): Likewise.
20682         * modules/memcmp-tests (Files): Likewise.
20683         * modules/memmem-tests (Files): Likewise.
20684         * modules/memrchr-tests (Files): Likewise.
20685         * modules/mkdir-tests (Files): Likewise.
20686         * modules/mkfifo-tests (Files): Likewise.
20687         * modules/mkfifoat-tests (Files): Likewise.
20688         * modules/mknod-tests (Files): Likewise.
20689         * modules/nanosleep-tests (Files): Likewise.
20690         * modules/nl_langinfo-tests (Files): Likewise.
20691         * modules/obstack-printf-tests (Files): Likewise.
20692         * modules/open-tests (Files): Likewise.
20693         * modules/openat-tests (Files): Likewise.
20694         * modules/perror-tests (Files): Likewise.
20695         * modules/pipe2-tests (Files): Likewise.
20696         * modules/poll-tests (Files): Likewise.
20697         * modules/popen-tests (Files): Likewise.
20698         * modules/posix_spawn-tests (Files): Likewise.
20699         * modules/posix_spawnp-tests (Files): Likewise.
20700         * modules/pread-tests (Files): Likewise.
20701         * modules/printf-posix-tests (Files): Likewise.
20702         * modules/pty-tests (Files): Likewise.
20703         * modules/random_r-tests (Files): Likewise.
20704         * modules/rawmemchr-tests (Files): Likewise.
20705         * modules/readlink-tests (Files): Likewise.
20706         * modules/remove-tests (Files): Likewise.
20707         * modules/rename-tests (Files): Likewise.
20708         * modules/renameat-tests (Files): Likewise.
20709         * modules/rmdir-tests (Files): Likewise.
20710         * modules/round-tests (Files): Likewise.
20711         * modules/roundf-tests (Files): Likewise.
20712         * modules/roundl-tests (Files): Likewise.
20713         * modules/select-tests (Files): Likewise.
20714         * modules/setenv-tests (Files): Likewise.
20715         * modules/sigaction-tests (Files): Likewise.
20716         * modules/sleep-tests (Files): Likewise.
20717         * modules/snprintf-posix-tests (Files): Likewise.
20718         * modules/snprintf-tests (Files): Likewise.
20719         * modules/sprintf-posix-tests (Files): Likewise.
20720         * modules/stat-tests (Files): Likewise.
20721         * modules/strcasestr-tests (Files): Likewise.
20722         * modules/strchrnul-tests (Files): Likewise.
20723         * modules/strerror-tests (Files): Likewise.
20724         * modules/strsignal-tests (Files): Likewise.
20725         * modules/strstr-tests (Files): Likewise.
20726         * modules/strtod-tests (Files): Likewise.
20727         * modules/strverscmp-tests (Files): Likewise.
20728         * modules/symlink-tests (Files): Likewise.
20729         * modules/symlinkat-tests (Files): Likewise.
20730         * modules/times-tests (Files): Likewise.
20731         * modules/trunc-tests (Files): Likewise.
20732         * modules/truncf-tests (Files): Likewise.
20733         * modules/truncl-tests (Files): Likewise.
20734         * modules/tsearch-tests (Files): Likewise.
20735         * modules/uname-tests (Files): Likewise.
20736         * modules/unlink-tests (Files): Likewise.
20737         * modules/unsetenv-tests (Files): Likewise.
20738         * modules/usleep-tests (Files): Likewise.
20739         * modules/utimensat-tests (Files): Likewise.
20740         * modules/vasprintf-tests (Files): Likewise.
20741         * modules/vdprintf-posix-tests (Files): Likewise.
20742         * modules/vfprintf-posix-tests (Files): Likewise.
20743         * modules/vprintf-posix-tests (Files): Likewise.
20744         * modules/vsnprintf-posix-tests (Files): Likewise.
20745         * modules/vsnprintf-tests (Files): Likewise.
20746         * modules/vsprintf-posix-tests (Files): Likewise.
20747         * modules/wcrtomb-tests (Files): Likewise.
20748         * modules/wcsnrtombs-tests (Files): Likewise.
20749         * modules/wcsrtombs-tests (Files): Likewise.
20750         * modules/wcwidth-tests (Files): Likewise.
20751         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20752         * tests/test-isinf.c (isinf): Likewise.
20753         * tests/test-isnan.c (isnan): Likewise.
20754         * tests/test-signbit.c (signbit): Likewise.
20755         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20756         declaration, either as macro or with correct signature.
20757         (select): Ensure function under test is declared with correct
20758         signature in correct header.
20759         * tests/test-atexit.c (atexit): Likewise.
20760         * tests/test-btowc.c (btowc): Likewise.
20761         * tests/test-canonicalize-lgpl.c (realpath)
20762         (canonicalize_file_name): Likewise.
20763         * tests/test-ceilf1.c (ceilf): Likewise.
20764         * tests/test-ceill.c (ceill): Likewise.
20765         * tests/test-chown.c (chown): Likewise.
20766         * tests/test-dprintf-posix.c (dprintf): Likewise.
20767         * tests/test-dup2.c (dup2): Likewise.
20768         * tests/test-dup3.c (dup3): Likewise.
20769         * tests/test-duplocale.c (duplocale): Likewise.
20770         * tests/test-fchdir.c (fchdir): Likewise.
20771         * tests/test-fchownat.c (fchownat): Likewise.
20772         * tests/test-fcntl.c (fcntl): Likewise.
20773         * tests/test-fdopendir.c (fdopendir): Likewise.
20774         * tests/test-fflush.c (fflush): Likewise.
20775         * tests/test-flock.c (flock): Likewise.
20776         * tests/test-floorf1.c (floorf): Likewise.
20777         * tests/test-floorl.c (floorl): Likewise.
20778         * tests/test-fnmatch.c (fnmatch): Likewise.
20779         * tests/test-fopen.c (fopen): Likewise.
20780         * tests/test-fprintf-posix.c (fprintf): Likewise.
20781         * tests/test-freopen.c (freopen): Likewise.
20782         * tests/test-frexp.c (frexp): Likewise.
20783         * tests/test-frexpl.c (frexpl): Likewise.
20784         * tests/test-fseek.c (fseek): Likewise.
20785         * tests/test-fseeko.c (fseeko): Likewise.
20786         * tests/test-fstatat.c (fstatat): Likewise.
20787         * tests/test-fsync.c (fsync): Likewise.
20788         * tests/test-ftell.c (ftell): Likewise.
20789         * tests/test-ftello.c (ftello): Likewise.
20790         * tests/test-futimens.c (futimens): Likewise.
20791         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20792         (gai_strerror): Likewise.
20793         * tests/test-getcwd.c (getcwd): Likewise.
20794         * tests/test-getdelim.c (getdelim): Likewise.
20795         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20796         * tests/test-getgroups.c (getgroups): Likewise.
20797         * tests/test-gethostname.c (gethostname): Likewise.
20798         * tests/test-getline.c (getline): Likewise.
20799         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20800         Likewise.
20801         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20802         * tests/test-glob.c (glob, globfree): Likewise.
20803         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20804         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20805         * tests/test-inet_pton.c (inet_pton): Likewise.
20806         * tests/test-isblank.c (isblank): Likewise.
20807         * tests/test-lchown.c (lchown): Likewise.
20808         * tests/test-ldexpl.c (ldexpl): Likewise.
20809         * tests/test-link.c (link): Likewise.
20810         * tests/test-linkat.c (linkat): Likewise.
20811         * tests/test-lseek.c (lseek): Likewise.
20812         * tests/test-lstat.c (lstat): Likewise.
20813         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20814         * tests/test-mbsinit.c (mbsinit): Likewise.
20815         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20816         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20817         * tests/test-memchr.c (memchr): Likewise.
20818         * tests/test-memcmp.c (memcmp): Likewise.
20819         * tests/test-memmem.c (memmem): Likewise.
20820         * tests/test-memrchr.c (memrchr): Likewise.
20821         * tests/test-mkdir.c (mkdir): Likewise.
20822         * tests/test-mkdirat.c (mkdirat): Likewise.
20823         * tests/test-mkfifo.c (mkfifo): Likewise.
20824         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20825         * tests/test-mknod.c (mknod): Likewise.
20826         * tests/test-nanosleep.c (nanosleep): Likewise.
20827         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20828         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20829         Likewise.
20830         * tests/test-open.c (open): Likewise.
20831         * tests/test-openat.c (openat): Likewise.
20832         * tests/test-perror.c (perror): Likewise.
20833         * tests/test-pipe2.c (pipe2): Likewise.
20834         * tests/test-poll.c (poll): Likewise.
20835         * tests/test-popen.c (popen, pclose): Likewise.
20836         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20837         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20838         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20839         (posix_spawn_file_actions_destroy)
20840         (posix_spawn_file_actions_addclose)
20841         (posix_spawn_file_actions_addopen)
20842         (posix_spawn_file_actions_adddup2): Likewise.
20843         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20844         * tests/test-pread.c (pread): Likewise.
20845         * tests/test-printf-posix.c (printf): Likewise.
20846         * tests/test-pty.c (openpty, forkpty): Likewise.
20847         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20848         (random_r): Likewise.
20849         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20850         * tests/test-readlink.c (readlink): Likewise.
20851         * tests/test-remove.c (remove): Likewise.
20852         * tests/test-rename.c (rename): Likewise.
20853         * tests/test-renameat.c (renameat): Likewise.
20854         * tests/test-rmdir.c (rmdir): Likewise.
20855         * tests/test-round1.c (round): Likewise.
20856         * tests/test-roundf1.c (roundf): Likewise.
20857         * tests/test-roundl.c (roundl): Likewise.
20858         * tests/test-setenv.c (setenv): Likewise.
20859         * tests/test-sigaction.c (sigaction): Likewise.
20860         * tests/test-sleep.c (sleep): Likewise.
20861         * tests/test-snprintf.c (snprintf): Likewise.
20862         * tests/test-sprintf-posix.c (sprintf): Likewise.
20863         * tests/test-stat.c (stat): Likewise.
20864         * tests/test-stpncpy.c (stpncpy): Likewise.
20865         * tests/test-strcasestr.c (strcasestr): Likewise.
20866         * tests/test-strchrnul.c (strchrnul): Likewise.
20867         * tests/test-strerror.c (strerror): Likewise.
20868         * tests/test-strsignal.c (strsignal): Likewise.
20869         * tests/test-strstr.c (strstr): Likewise.
20870         * tests/test-strtod.c (strtod): Likewise.
20871         * tests/test-strverscmp.c (strverscmp): Likewise.
20872         * tests/test-symlink.c (symlink): Likewise.
20873         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20874         * tests/test-times.c (times): Likewise.
20875         * tests/test-trunc1.c (trunc): Likewise.
20876         * tests/test-truncf1.c (truncf): Likewise.
20877         * tests/test-truncl.c (truncl): Likewise.
20878         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20879         Likewise.
20880         * tests/test-uname.c (uname): Likewise.
20881         * tests/test-unlink.c (unlink): Likewise.
20882         * tests/test-unlinkat.c (unlinkat): Likewise.
20883         * tests/test-unsetenv.c (unsetenv): Likewise.
20884         * tests/test-usleep.c (usleep): Likewise.
20885         * tests/test-utimensat.c (utimensat): Likewise.
20886         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20887         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20888         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20889         * tests/test-vprintf-posix.c (vprintf): Likewise.
20890         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20891         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20892         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20893         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20894         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20895         * tests/test-wcwidth.c (wcwidth): Likewise.
20896
20897         build: pull in conditional headers during GNULIB_POSIXCHECK
20898         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20899         definitions from any conditionally-included headers.
20900         * lib/stdlib.in.h (includes): Likewise.
20901         * lib/unistd.in.h (includes): Likewise.
20902
20903 2009-12-24  Bruno Haible  <bruno@clisp.org>
20904
20905         * tests/test-argv-iter.c: Include header file being tested immediately
20906         after config.h.
20907         * tests/test-base64.c: Likewise.
20908         * tests/test-flock.c: Likewise.
20909         * tests/test-fsync.c: Likewise.
20910         * tests/test-getdate.c: Likewise.
20911         * tests/test-getndelim2.c: Likewise.
20912         * tests/test-isfinite.c: Likewise.
20913         * tests/test-isinf.c: Likewise.
20914         * tests/test-strerror.c: Likewise.
20915         * tests/test-strsignal.c: Likewise.
20916
20917 2009-12-23  Eric Blake  <ebb9@byu.net>
20918
20919         unistd: work around cygwin bug
20920         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20921         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20922         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20923
20924 2009-12-23  Bruno Haible  <bruno@clisp.org>
20925
20926         localename: More tests.
20927         * tests/test-localename.c (SIZEOF): New macro.
20928         (categories): New variable.
20929         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20930         test_locale_name_default): Add test w.r.t. thread locale.
20931         (test_locale_name_thread): New function.
20932         (main): Invoke it.
20933
20934         localename: Make aware of thread locale.
20935         * lib/localename.h (gl_locale_name_thread): New declaration.
20936         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20937         behaviour with respect to thread locale.
20938         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20939         <langinfo.h>, glthread/lock.h.
20940         (SIZE_BITS): New macro.
20941         (string_hash): New function.
20942         (struct hash_node): New type.
20943         (HASH_TABLE_SIZE): New macro.
20944         (struniq_hash_table, struniq_lock): New variables.
20945         (struniq): New function.
20946         (gl_locale_name_thread): New function.
20947         (gl_locale_name): Invoke it.
20948         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20949         * modules/localename (Depends-on): Add lock.
20950         Reported by Mike Gran <spk121@yahoo.com>.
20951
20952 2009-12-23  Eric Blake  <ebb9@byu.net>
20953
20954         va-args: new module
20955         * modules/va-args: New file.
20956         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20957         * MODULES.html.sh (Core language properties): Mention it.
20958
20959         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20960         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20961         named alias for __attribute__((__unused__)).
20962         * lib/chown.c: Update client.
20963         * lib/fchmodat.c: Likewise.
20964         * lib/fts.c: Likewise.
20965         * lib/getdate.y: Likewise.
20966         * lib/getgroups.c: Likewise.
20967         * lib/getopt.c: Likewise.
20968         * lib/getugroups.c: Likewise.
20969         * lib/mkdir.c: Likewise.
20970         * lib/mkfifo.c: Likewise.
20971         * lib/mkfifoat.c: Likewise.
20972         * lib/mknod.c: Likewise.
20973         * lib/mknodat.c: Likewise.
20974         * lib/readlink.c: Likewise.
20975         * lib/se-context.in.h: Likewise.
20976         * lib/se-selinux.in.h: Likewise.
20977         * lib/sockets.c: Likewise.
20978         * lib/symlink.c: Likewise.
20979         * lib/symlinkat.c: Likewise.
20980         * lib/unicodeio.c: Likewise.
20981         * lib/unistr.h: Likewise.
20982         * tests/test-areadlink.c: Likewise.
20983         * tests/test-areadlinkat.c: Likewise.
20984         * tests/test-filenamecat.c: Likewise.
20985         * tests/test-fseeko.c: Likewise.
20986         * tests/test-ftello.c: Likewise.
20987         * tests/test-getdate.c: Likewise.
20988         * tests/test-getgroups.c: Likewise.
20989         * tests/test-gethostname.c: Likewise.
20990         * tests/test-quotearg.c: Likewise.
20991         * tests/test-version-etc.c: Likewise.
20992         * tests/test-xalloc-die.c: Likewise.
20993         * tests/test-xfprintf-posix.c: Likewise.
20994         * tests/test-xprintf-posix.c: Likewise.
20995         * tests/test-xvasprintf.c: Likewise.
20996
20997         tests: avoid compiler warnings
20998         * tests/test-fcntl.c (main): Delete unused parameters.
20999         * tests/test-freopen-safer.c (main): Likewise.
21000         * tests/test-xalloc-die.c (main): Mark unused parameters.
21001         * tests/test-fseeko.c (main): Likewise.
21002         * tests/test-ftello.c (main): Likewise.
21003         * tests/test-nanosleep.c (main): Avoid declaration warning.
21004         * tests/test-sleep.c (main): Likewise.
21005         * tests/test-unsetenv.c (main): Silence warning about string
21006         literal.
21007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21008
21009 2009-12-23  Bruno Haible  <bruno@clisp.org>
21010
21011         * tests/test-localename.c (test_locale_name): New function, extracted
21012         from main. Also test mixed situations.
21013         (test_locale_name_posix, test_locale_name_environ,
21014         test_locale_name_default): New functions.
21015         (main): Invoke them all.
21016         * modules/localename-tests (configure.ac): Test for newlocale.
21017
21018 2009-12-23  Bruno Haible  <bruno@clisp.org>
21019
21020         unistd: Ensure getcwd gets declared before being overridden.
21021         * lib/unistd.in.h: Conditionally include <io.h>.
21022
21023 2009-12-22  Bruno Haible  <bruno@clisp.org>
21024
21025         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21026         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21027         (gl_WCHAR_H): Invoke it.
21028         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21029         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21030         Reported by Karl Berry <karl@freefriends.org>.
21031
21032 2009-12-22  Eric Blake  <ebb9@byu.net>
21033
21034         math, unistd: avoid redundant includes
21035         * lib/math.in.h (isnan): No need to re-include <math.h>.
21036         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21037
21038         getsubopt: work around cygwin bug
21039         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21040         avoid conflicting with system getsubopt.
21041         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21042         bug.
21043
21044         getopt: synchronize from glibc
21045         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21046         parameter order.  Adjust all callers.
21047         (_getopt_internal_r, main): Adjust quoting in error messages.
21048         Drop considerations for outdated POSIX 1003.2 error message.
21049         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21050         callers.
21051         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21052
21053         test-getopt: test stderr behavior
21054         * modules/getopt-posix-tests (Depends-on): Add dup2.
21055         * tests/test-getopt.c (ASSERT): Avoid stderr.
21056         (main): Move stderr to a temporary file.
21057         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21058         Instead, add parameter to inform caller if output occurred.
21059         (test_getopt): Adjust all existing tests to expect silence, and
21060         add new tests of leading ":".
21061         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21062         glibc shortcomings with leading "-:" or "+:" in optstring.
21063         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21064         Likewise.
21065         * doc/posix-functions/getopt.texi (getopt): Likewise.
21066
21067         test-getopt: enhance test
21068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21069         supports optind=0.
21070         * tests/test-getopt.c (OPTIND_MIN): Move...
21071         * tests/test-getopt.h (OPTIND_MIN): ...here.
21072         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21073         Require that optind=0 works, since modern BSD supports it in
21074         addition to optreset, and since coreutils expects it.
21075         (test_getopt_long_only): New test.
21076         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21077         glibc shortcomings with 'W;', and enforcement of optind=0.
21078         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21079         Likewise.
21080
21081 2009-12-21  Bruno Haible  <bruno@clisp.org>
21082
21083         localename: Improvements for MacOS X and Cygwin.
21084         * lib/localename.h (gl_locale_name_environ): New declaration.
21085         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21086         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21087         (gl_locale_name_posix): Invoke it.
21088         (gl_locale_name_default): Add comments. Use Windows native API also on
21089         Cygwin.
21090
21091 2009-12-21  Bruno Haible  <bruno@clisp.org>
21092
21093         Update list of Win32 locale ids.
21094         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21095         (LANG_SAMI): Renamed from LANG_SAAMI.
21096         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21097         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21098         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21099         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21100         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21101         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21102         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21103         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21104         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21105         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21106         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21107         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21108         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21109         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21110         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21111         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21112         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21113         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21114         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21115         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21116         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21117         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21118         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21119         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21120         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21121         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21122         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21123         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21124         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21125         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21126         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21127         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21128         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21129         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21130         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21131         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21132         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21133         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21134         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21135         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21136         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21137         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21138         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21139         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21140         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21141         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21142         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21143         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21144         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21145         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21146         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21147         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21148         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21149         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21150         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21151         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21152         Add more languages and countries for Sami, Sorbian. Add more countries
21153         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21154         for Pashto. Change country for Syriac, Tswana.
21155
21156 2009-12-21  Eric Blake  <ebb9@byu.net>
21157
21158         test-utimens: avoid spurious failure
21159         * tests/test-chown.h (nap): Factor...
21160         * tests/nap.h: ...into new file.
21161         * tests/test-lchown.h (nap): Avoid duplication.
21162         * tests/test-utimens-common.h (nap): Use shared implementation,
21163         necessary on file systems with 1-second resolution.
21164         * modules/chown-tests (Files): Include new file.
21165         * modules/fdutimensat-tests (Files): Likewise.
21166         * modules/futimens-tests (Files): Likewise.
21167         * modules/lchown-tests (Files): Likewise.
21168         * modules/openat-tests (Files): Likewise.
21169         * modules/utimens-tests (Files): Likewise.
21170         * modules/utimensat-tests (Files): Likewise.
21171
21172 2009-12-19  Eric Blake  <ebb9@byu.net>
21173
21174         futimens, utimensat: work around Linux bug
21175         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21176         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21177         * lib/utimensat.c (rpl_utimensat): Work around it.
21178         * lib/futimens.c (rpl_futimens): Adjust comment.
21179
21180         utimens: work around Linux ctime bug
21181         * lib/utimens.c (detect_ctime_bug): New helper function.
21182         (update_timespec): Differentiate between workaround needed for
21183         this bug vs. what is needed for systems that lack utimensat.
21184         (fdutimens, lutimens): Work around bug.
21185
21186         utimens: check for ctime update
21187         * tests/test-utimens-common.h (check_ctime): Define.
21188         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21189         * tests/test-futimens.h (test_futimens): Likewise.
21190         * tests/test-lutimens.h (test_lutimens): Likewise.
21191         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21193
21194 2009-12-19  Bruno Haible  <bruno@clisp.org>
21195
21196         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21197         * tests/test-dprintf-posix2.sh: New file.
21198         * tests/test-dprintf-posix2.c: New file.
21199         * modules/dprintf-posix-tests (Files): Add them.
21200         (configure.ac): Check for getrlimit and setrlimit.
21201         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21202
21203 2009-12-19  Bruno Haible  <bruno@clisp.org>
21204
21205         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21206         * tests/test-fprintf-posix3.sh: New file.
21207         * tests/test-fprintf-posix3.c: New file.
21208         * modules/fprintf-posix-tests (Files): Add them.
21209         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21210
21211 2009-12-19  Eric Blake  <ebb9@byu.net>
21212
21213         dirfd: fix prototype
21214         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21215         * lib/dirfd.c (dirfd): Likewise.
21216
21217         canonicalize: reduce memory usage
21218         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21219         allocation to size.
21220         Reported by Solar Designer <solar@openwall.com>.
21221
21222 2009-12-19  Bruno Haible  <bruno@clisp.org>
21223
21224         New module attribute 'Applicability'.
21225         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21226         * gnulib-tool: New option --extract-applicability.
21227         (func_usage): Document it.
21228         (sed_extract_prog): Recognize it.
21229         (func_get_applicability): New function.
21230         (func_import): Generalize handling of 'link-warning' module.
21231         * modules/link-warning (Applicability): New section.
21232         * modules/arg-nonnull (Applicability): New section.
21233         Repoted by Simon Josefsson <simon@josefsson.org>.
21234
21235 2009-12-19  Bruno Haible  <bruno@clisp.org>
21236
21237         fflush: tweak
21238         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21239         * lib/fseeko.c (rpl_fseeko): Likewise.
21240
21241 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21242
21243         * lib/gl_list.h: Fix typo in comment.
21244
21245 2009-12-16  Eric Blake  <ebb9@byu.net>
21246
21247         fcntl: use to simplify other modules
21248         * modules/cloexec (Depends-on): Add fcntl.
21249         * modules/fchdir (Depends-on): Likewise.
21250         * modules/fd-safer-flag (Depends-on): Likewise.
21251         * modules/unistd-safer (Depends-on): Likewise.
21252         * modules/dup3 (configure.ac): Set module indicator.
21253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21254         missing.
21255         * lib/fchdir.c (_gl_register_dup): Fix comment.
21256         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21257         * lib/dup-safer.c (dup_safer): Likewise.
21258         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21259         * lib/dup3.c (dup3): Likewise.
21260         * tests/test-fchdir.c (main): Enhance test.
21261         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21262
21263         fcntl: port portions of fcntl to mingw
21264         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21265         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21266         replacement for mingw.
21267         * modules/fcntl (Description): Update.
21268         (Depends-on): Add dup2.
21269         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21270         * modules/fcntl-h (Makefile.am): Substitute it.
21271         * lib/fcntl.in.h (fcntl): Update declaration.
21272         (F_DUPFD, F_GETFD): New macros, when needed.
21273         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21274         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21275         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21276         we now guarantee.
21277
21278         fcntl: work around cygwin bug in F_DUPFD
21279         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21280         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21281         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21282         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21283         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21284
21285         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21286         * modules/fcntl (Files): List new files.
21287         (configure.ac): Run a test.
21288         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21289         * lib/fcntl.c (rpl_fcntl): Likewise.
21290         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21291         (gl_FCNTL_H): Always replace fcntl.h.
21292         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21293         * lib/fcntl.in.h (fcntl): Declare replacement.
21294         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21295         needed, plus a witness.
21296         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21297         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21298         * tests/test-fcntl.c: New file.
21299         * modules/fcntl-tests: Likewise.
21300
21301         binary-io: avoid potential compilation warning
21302         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21303         directives.
21304
21305         fflush: avoid compilation error on NetBSD
21306         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21307         between off_t and fpos_t, since the latter is sometimes a struct.
21308         * lib/fseeko.c (rpl_fseeko): Likewise.
21309         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21310
21311 2009-12-15  Eric Blake  <ebb9@byu.net>
21312
21313         fcntl-h, stdio, sys_ioctl: fix declarations
21314         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21315         function must not take arguments.
21316         * lib/sys_ioctl.in.h (ioctl): Likewise.
21317         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21318         (open): Add a link warning.
21319
21320 2009-12-15  Jim Meyering  <meyering@redhat.com>
21321
21322         areadlink, areadlink-with-size: relax license to LGPLv2+
21323         * modules/areadlink (License): Relax to LGPLv2+.
21324         * modules/areadlink-with-size (License): Likewise.
21325
21326 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21327             Bruno Haible  <bruno@clisp.org>
21328
21329         *printf: Fix memory leak.
21330         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21331         * lib/vfprintf.c (vfprintf): Likewise.
21332         * lib/dprintf.c (dprintf): Likewise.
21333         * lib/vdprintf.c (vdprintf): Likewise.
21334
21335 2009-12-14  Eric Blake  <ebb9@byu.net>
21336
21337         accept4: adjust module dependencies
21338         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21339
21340         utimens: one more try at avoiding compiler warning
21341         * lib/utimens.c (lutimens): Lower scope of result.
21342
21343 2009-12-13  Bruno Haible  <bruno@clisp.org>
21344
21345         Move the malloc checking from module 'list' to new module 'xlist'.
21346         * modules/xlist: New file.
21347         * lib/gl_xlist.h: New file.
21348         * lib/gl_xlist.c: New file.
21349         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21350         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21351         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21352         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21353         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21354         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21355         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21356         gl_sortedlist_nx_add): New declarations.
21357         (struct gl_list_implementation): Rename and change methods accordingly.
21358         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21359         (gl_list_nx_create): Renamed from gl_list_create.
21360         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21361         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21362         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21363         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21364         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21365         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21366         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21367         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21368         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21369         gl_list_create_empty.
21370         (gl_list_nx_create): Renamed from gl_list_create.
21371         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21372         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21373         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21374         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21375         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21376         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21377         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21378         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21379         * lib/gl_array_list.c: Don't include xalloc.h.
21380         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21381         NULL upon out-of-memory.
21382         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21383         out-of-memory.
21384         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21385         Change return type to 'int'.
21386         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21387         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21388         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21389         upon out-of-memory.
21390         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21391         upon out-of-memory.
21392         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21393         upon out-of-memory.
21394         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21395         upon out-of-memory.
21396         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21397         out-of-memory.
21398         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21399         Update.
21400         (gl_array_list_implementation): Update.
21401         * lib/gl_carray_list.c: Don't include xalloc.h.
21402         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21403         Return NULL upon out-of-memory.
21404         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21405         out-of-memory.
21406         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21407         Change return type to 'int'.
21408         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21409         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21410         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21411         upon out-of-memory.
21412         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21413         upon out-of-memory.
21414         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21415         out-of-memory.
21416         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21417         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21418         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21419         Update.
21420         (gl_carray_list_implementation): Update.
21421         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21422         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21423         gl_linked_create_empty. Return NULL upon out-of-memory.
21424         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21425         out-of-memory.
21426         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21427         Change return type to 'int'. Return -1 upon out-of-memory.
21428         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21429         out-of-memory.
21430         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21431         upon out-of-memory.
21432         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21433         upon out-of-memory.
21434         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21435         NULL upon out-of-memory.
21436         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21437         upon out-of-memory.
21438         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21439         out-of-memory.
21440         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21441         Update.
21442         * lib/gl_linked_list.c: Don't include xalloc.h.
21443         (gl_linked_list_implementation): Update.
21444         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21445         (add_to_bucket): Change return type to 'int'.
21446         (gl_linkedhash_list_implementation): Update.
21447         * lib/gl_anytree_list1.h (free_subtree): New function.
21448         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21449         gl_tree_create_empty. Return NULL upon out-of-memory.
21450         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21451         Change return type to 'int'. Return -1 upon out-of-memory.
21452         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21453         out-of-memory.
21454         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21455         (gl_tree_remove_node): New function, moved here from
21456         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21457         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21458         Update.
21459         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21460         malloc, not xmalloc. Return NULL upon out-of-memory.
21461         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21462         out-of-memory.
21463         (gl_tree_remove_node_from_tree): New function, extracted from
21464         gl_tree_remove_node.
21465         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21466         upon out-of-memory.
21467         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21468         out-of-memory.
21469         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21470         upon out-of-memory.
21471         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21472         upon out-of-memory.
21473         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21474         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21475         not xmalloc. Return NULL upon out-of-memory.
21476         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21477         out-of-memory.
21478         (gl_tree_remove_node_from_tree): New function, extracted from
21479         gl_tree_remove_node.
21480         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21481         upon out-of-memory.
21482         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21483         out-of-memory.
21484         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21485         upon out-of-memory.
21486         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21487         upon out-of-memory.
21488         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21489         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21490         gl_anytree_list1.h before gl_anyavltree_list2.h.
21491         (gl_avltree_list_implementation): Update.
21492         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21493         gl_anytree_list1.h before gl_anyavltree_list2.h.
21494         (gl_rbtree_list_implementation): Update.
21495         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21496         Change return type to 'int'. Return -1 upon out-of-memory. Use
21497         __builtin_expect.
21498         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21499         (gl_avltreehash_list_implementation): Update.
21500         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21501         (gl_rbtreehash_list_implementation): Update.
21502         * modules/array-list (Depends-on): Remove xalloc.
21503         * modules/carray-list (Depends-on): Likewise.
21504         * modules/linked-list (Depends-on): Likewise.
21505         * modules/linkedhash-list (Depends-on): Likewise.
21506         * modules/avltree-list (Depends-on): Likewise.
21507         * modules/rbtree-list (Depends-on): Likewise.
21508         * modules/avltreehash-list (Depends-on): Likewise.
21509         * modules/rbtreehash-list (Depends-on): Likewise.
21510
21511         * modules/xsublist: New file.
21512         * lib/gl_xsublist.h: New file.
21513         * lib/gl_xsublist.c: New file.
21514         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21515         (gl_sublist_nx_create): New declaration.
21516         * lib/gl_sublist.c: Don't include xalloc.h.
21517         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21518         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21519         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21520         Change return type to 'int'. Return -1 upon out-of-memory.
21521         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21522         upon out-of-memory.
21523         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21524         NULL upon out-of-memory.
21525         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21526         upon out-of-memory.
21527         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21528         NULL upon out-of-memory.
21529         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21530         NULL upon out-of-memory.
21531         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21532         upon out-of-memory.
21533         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21534         (gl_sublist_list_implementation): Update.
21535         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21536         upon out-of-memory.
21537         * modules/sublist (Depends-on): Remove xalloc.
21538
21539         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21540         * tests/test-carray_list.c: Likewise.
21541         * tests/test-linked_list.c: Likewise.
21542         * tests/test-linkedhash_list.c: Likewise.
21543         * tests/test-avltree_list.c: Likewise.
21544         * tests/test-rbtree_list.c: Likewise.
21545         * tests/test-avltreehash_list.c: Likewise.
21546         * tests/test-rbtreehash_list.c: Likewise.
21547         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21548         * modules/carray-list-tests (Makefile.am): Likewise.
21549         * modules/linked-list-tests (Makefile.am): Likewise.
21550         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21551         * modules/avltree-list-tests (Makefile.am): Likewise.
21552         * modules/rbtree-list-tests (Makefile.am): Likewise.
21553         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21554         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21555
21556         * NEWS: Mention the changes.
21557
21558         * lib/clean-temp.c: Include gl_xlist.h.
21559         * modules/clean-temp (Depends-on): Add xlist.
21560
21561         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21562         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21563
21564         * tests/test-array_oset.c: Include gl_xlist.h.
21565         * modules/array-oset-tests (Depends-on): Add xlist.
21566
21567         Reported by José E. Marchesi <jemarch@gnu.org>.
21568
21569 2009-12-13  Bruno Haible  <bruno@clisp.org>
21570
21571         Move the malloc checking from module 'oset' to new module 'xoset'.
21572         * modules/xoset: New file.
21573         * lib/gl_xoset.h: New file.
21574         * lib/gl_xoset.c: New file.
21575         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21576         declarations.
21577         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21578         (struct gl_oset_implementation): Rename and change methods accordingly.
21579         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21580         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21581         'int'. Mark as __warn_unused_result__.
21582         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21583         gl_oset_create_empty.
21584         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21585         'int'.
21586         * lib/gl_array_oset.c: Don't include xalloc.h.
21587         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21588         malloc, not xmalloc.
21589         (grow): Change return type to 'int'. Don't call xalloc_die.
21590         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21591         to 'int'.
21592         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21593         'int'.
21594         (gl_array_oset_implementation): Update.
21595         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21596         gl_tree_create_empty.
21597         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21598         'int'.
21599         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21600         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21601         xmalloc.
21602         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21603         not xmalloc.
21604         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21605         xmalloc.
21606         (gl_avltree_oset_implementation): Update.
21607         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21608         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21609         xmalloc.
21610         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21611         not xmalloc.
21612         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21613         xmalloc.
21614         (gl_rbtree_oset_implementation): Update.
21615         * modules/array-oset (Depends-on): Remove xalloc.
21616         * modules/avltree-oset (Depends-on): Likewise.
21617         * modules/rbtree-oset (Depends-on): Likewise.
21618         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21619         * tests/test-avltree_oset.c: Likewise.
21620         * tests/test-rbtree_oset.c: Likewise.
21621         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21622         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21623         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21624         * NEWS: Mention the change.
21625
21626 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21627
21628         maint.mk: allow a project to override release-prep commands
21629         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21630         commands into a new rule.
21631         (release-prep): New rule.
21632         (release-prep-hook): New overridable variable.
21633
21634 2009-12-13  Bruno Haible  <bruno@clisp.org>
21635
21636         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21637
21638 2009-12-13  Jim Meyering  <meyering@redhat.com>
21639
21640         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21641         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21642
21643 2009-12-12  Bruno Haible  <bruno@clisp.org>
21644
21645         duplocale: Tweak.
21646         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21647
21648 2009-12-12  Karl Berry  <karl@gnu.org>
21649
21650         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21651
21652 2009-12-12  Bruno Haible  <bruno@clisp.org>
21653
21654         * m4/po.m4: Undo incorrect untabification.
21655
21656 2009-12-12  Bruno Haible  <bruno@clisp.org>
21657
21658         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21659         * modules/c-strtod (Depends-on): Add locale.
21660         * modules/c-strtold (Depends-on): Likewise.
21661
21662 2009-12-12  Bruno Haible  <bruno@clisp.org>
21663
21664         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21665
21666 2009-12-11  Eric Blake  <ebb9@byu.net>
21667
21668         setenv: relax requirement in light of POSIX ruling
21669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21670         not NULL.
21671         * tests/test-setenv.c (main): Relax test.
21672         * tests/test-unsetenv.c (main): Likewise.
21673         * doc/posix-functions/setenv.texi (setenv): Document this.
21674         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21675
21676 2009-12-11  Bruno Haible  <bruno@clisp.org>
21677
21678         New module 'fd-safer-flag'.
21679         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21680         * lib/dup-safer.c (dup_safer_flag): Remove function.
21681         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21682         * lib/fd-safer.c (fd_safer_flag): Remove function.
21683         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21684         * modules/cloexec (configure.ac): Drop indicator macro.
21685         * modules/fd-safer-flag: New file.
21686         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21687         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21688         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21689
21690 2009-12-11  Bruno Haible  <bruno@clisp.org>
21691
21692         Tests for module 'nl_langinfo'.
21693         * modules/nl_langinfo-tests: New file.
21694         * tests/test-nl_langinfo.sh: New file.
21695         * tests/test-nl_langinfo.c: New file.
21696
21697         New module 'nl_langinfo'.
21698         * lib/nl_langinfo.c: New file.
21699         * m4/nl_langinfo.m4: New file.
21700         * modules/nl_langinfo: New file.
21701         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21702
21703 2009-12-11  Bruno Haible  <bruno@clisp.org>
21704
21705         Tests for module 'langinfo'.
21706         * modules/langinfo-tests: New file.
21707         * tests/test-langinfo.c: New file.
21708
21709         New module 'langinfo'.
21710         * lib/langinfo.in.h: New file.
21711         * m4/langinfo_h.m4: New file.
21712         * modules/langinfo: New file.
21713         * doc/posix-headers/langinfo.texi: Mention the new module.
21714
21715 2009-12-11  Bruno Haible  <bruno@clisp.org>
21716
21717         * lib/config.charset: Untabify.
21718
21719 2009-12-11  Bruno Haible  <bruno@clisp.org>
21720
21721         * modules/unistd-safer (configure.ac): Drop indicator macro.
21722
21723 2009-12-11  Bruno Haible  <bruno@clisp.org>
21724
21725         Move pipe2-safer code to its own file.
21726         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21727         * lib/pipe-safer.c (pipe2_safer): Remove function.
21728         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21729         (Makefile.am): Add it to lib_SOURCES.
21730
21731 2009-12-10  Bruno Haible  <bruno@clisp.org>
21732
21733         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21734
21735 2009-12-10  Bruno Haible  <bruno@clisp.org>
21736
21737         Declare which arguments expect non-NULL values, for GCC and clang.
21738         * build-aux/arg-nonnull.h: New file.
21739         * modules/arg-nonnull: New file.
21740         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21741         (inet_ntop, inet_pton): Use it.
21742         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21743         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21744         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21745         (open, openat): Use it.
21746         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21747         (fnmatch): Use it.
21748         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21749         (getopt, getopt_long, getopt_long_only): Use it.
21750         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21751         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21752         Use it.
21753         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21754         (iconv_open): Use it.
21755         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21756         (strtoimax, strtoumax): Use it.
21757         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21758         (duplocale): Use it.
21759         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21760         (frexp, frexpl): Use it.
21761         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21762         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21763         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21764         (tsearch, tfind, tdelete, twalk): Use it.
21765         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21766         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21767         sigpending): Use it.
21768         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21769         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21770         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21771         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21772         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21773         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21774         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21775         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21776         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21777         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21778         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21779         Use it.
21780         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21781         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21782         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21783         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21784         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21785         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21786         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21787         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21788         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21789         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21790         strtoull, unsetenv): Use it.
21791         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21792         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21793         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21794         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21795         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21796         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21797         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21798         (strcasecmp, strncasecmp): Use it.
21799         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21800         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21801         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21802         rpl_setsockopt): Use it.
21803         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21804         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21805         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21806         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21807         (gettimeofday): Use it.
21808         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21809         (times): Use it.
21810         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21811         (uname): Use it.
21812         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21813         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21814         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21815         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21816         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21817         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21818         unlinkat, write): Use it.
21819         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21820         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21821         * lib/argv-iter.h: Include arg-nonnull.h.
21822         (_ATTRIBUTE_NONNULL_): Remove macro.
21823         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21824         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21825         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21826         optimization.
21827         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21828         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21829         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21830         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21831         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21832         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21833         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21834         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21835         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21836         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21837         * modules/dirent (Depends-on): Add arg-nonnull.
21838         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21839         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21840         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21841         * modules/fnmatch (Depends-on): Add arg-nonnull.
21842         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21843         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21844         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21845         * modules/glob (Depends-on): Add arg-nonnull.
21846         (Makefile.am): Insert arg-nonnull.h into glob.h.
21847         * modules/iconv_open (Depends-on): Add arg-nonnull.
21848         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21849         * modules/inttypes (Depends-on): Add arg-nonnull.
21850         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21851         * modules/locale (Depends-on): Add arg-nonnull.
21852         (Makefile.am): Insert arg-nonnull.h into locale.h.
21853         * modules/math (Depends-on): Add arg-nonnull.
21854         (Makefile.am): Insert arg-nonnull.h into math.h.
21855         * modules/netdb (Depends-on): Add arg-nonnull.
21856         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21857         * modules/search (Depends-on): Add arg-nonnull.
21858         (Makefile.am): Insert arg-nonnull.h into search.h.
21859         * modules/signal (Depends-on): Add arg-nonnull.
21860         (Makefile.am): Insert arg-nonnull.h into signal.h.
21861         * modules/spawn (Depends-on): Add arg-nonnull.
21862         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21863         * modules/stdio (Depends-on): Add arg-nonnull.
21864         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21865         * modules/stdlib (Depends-on): Add arg-nonnull.
21866         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21867         * modules/string (Depends-on): Add arg-nonnull.
21868         (Makefile.am): Insert arg-nonnull.h into string.h.
21869         * modules/strings (Depends-on): Add arg-nonnull.
21870         (Makefile.am): Insert arg-nonnull.h into strings.h.
21871         * modules/sys_socket (Depends-on): Add arg-nonnull.
21872         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21873         * modules/sys_stat (Depends-on): Add arg-nonnull.
21874         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21875         * modules/sys_time (Depends-on): Add arg-nonnull.
21876         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21877         * modules/sys_times (Depends-on): Add arg-nonnull.
21878         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21879         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21880         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21881         * modules/time (Depends-on): Add arg-nonnull.
21882         (Makefile.am): Insert arg-nonnull.h into time.h.
21883         * modules/unistd (Depends-on): Add arg-nonnull.
21884         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21885         * modules/wchar (Depends-on): Add arg-nonnull.
21886         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21887         * modules/argv-iter (Depends-on): Add arg-nonnull.
21888         * tests/test-canonicalize.c (null_ptr): New function.
21889         (main): Use it.
21890         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21891         (main): Use it.
21892         * tests/test-memmem.c (null_ptr): New function.
21893         (main): Use it.
21894         Reported by Jim Meyering.
21895
21896 2009-12-10  Bruno Haible  <bruno@clisp.org>
21897
21898         Use spaces for indentation, not tabs.
21899         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21900         * m4/*.m4: Untabify.
21901         * build-aux/*.h: Untabify.
21902         * tests/**/*.[hc]: Untabify.
21903         * README: New section "Indent with spaces, not TABs", based on
21904         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21905         * NEWS: Mention the change.
21906
21907 2009-12-10  Bruno Haible  <bruno@clisp.org>
21908
21909         pty test: Fix link error.
21910         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21911         test_pty_LDADD.
21912
21913 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21914
21915         * modules/pty: New file.
21916         * modules/pty-tests: New file.
21917         * m4/pty.m4: New file.
21918         * tests/test-pty.c: New file.
21919         * doc/glibc-headers/pty.texi: Modified.
21920         * doc/glibc-functions/forkpty.texi: Modified.
21921         * doc/glibc-functions/openpty.texi: Modified.
21922
21923 2009-12-10  Bruno Haible  <bruno@clisp.org>
21924
21925         Avoid syntax error in C++ mode.
21926         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21927
21928 2009-12-10  Bruno Haible  <bruno@clisp.org>
21929
21930         Use sed with option -e.
21931         * gnulib-tool (func_version, func_emit_copyright_notice,
21932         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21933         option -e to sed.
21934         * modules/link-warning (Makefile.am): Likewise.
21935
21936 2009-12-10  Jim Meyering  <meyering@redhat.com>
21937
21938         mgetgroups: do not write bytes beyond end of malloc'd buffer
21939         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21940         username, we call getgroups with a one-element-shorter buffer,
21941         but still told it the length was original, max_n_groups.
21942
21943 2009-12-09  Eric Blake  <ebb9@byu.net>
21944
21945         cloexec: relax license
21946         * modules/cloexec (Maintainer): Add myself.
21947         (License): Use LGPL, not GPL.
21948
21949         link-warning: optimize generation
21950         * modules/link-warning (Makefile.am): Reduce process usage.
21951
21952 2009-12-09  Bruno Haible  <bruno@clisp.org>
21953
21954         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21955         workaround was added on 2009-11-17.
21956
21957 2009-12-09  Jim Meyering  <meyering@redhat.com>
21958             Bruno Haible  <bruno@clisp.org>
21959
21960         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21961         * modules/link-warning (Makefile.am): Make the comment-removing sed
21962         command more robust in the face of bootstrap-prepended comment lines.
21963
21964 2009-12-09  Bruno Haible  <bruno@clisp.org>
21965
21966         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21967         most one group.
21968
21969 2009-12-09  Simon Josefsson <simon@josefsson.org>
21970             Bruno Haible  <bruno@clisp.org>
21971
21972         * build-aux/link-warning.h: Add copyright notice.
21973         * modules/link-warning (Makefile.am): Generate link-warning.h from
21974         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21975         * NEWS: Mention change in link-warning module.
21976         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21977         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21978         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21979         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21980         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21981         * modules/math (Makefile.am): Add dependency to math.h.
21982         * modules/search (Makefile.am): Add dependency to search.h.
21983         * modules/signal (Makefile.am): Add dependency to signal.h.
21984         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21985         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21986         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21987         * modules/string (Makefile.am): Add dependency to string.h.
21988         * modules/strings (Makefile.am): Add dependency to strings.h.
21989         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21990         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21991         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21992         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21993         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21994         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21995         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21996         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21997         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21998
21999 2009-12-09  Bruno Haible  <bruno@clisp.org>
22000
22001         fchdir: Optimize away rpl_fstat when possible.
22002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22003         REPLACE_OPEN_DIRECTORY.
22004         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22005
22006 2009-12-09  Bruno Haible  <bruno@clisp.org>
22007
22008         * lib/fchdir.c: Update comment.
22009
22010 2009-12-09  Bruno Haible  <bruno@clisp.org>
22011
22012         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22013
22014 2009-12-08  Eric Blake  <ebb9@byu.net>
22015
22016         fchdir: avoid memory leak on re-registration.
22017         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22018
22019 2009-12-08  Jim Meyering  <meyering@redhat.com>
22020
22021         init.sh: avoid Solaris 10 /bin/sh portability problem
22022         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22023         sourced script:
22024           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22025           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22026           bar
22027         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22028         and two tests used that idiom.
22029         * tests/init.sh: Update suggested usage comments.
22030         (path_prepend_): New function, to be used in place
22031         of the --src-path=DIR option.
22032         (setup_): Move PATH-prepending code into path_prepend_.
22033         * tests/test-pread.sh: Adapt to new usage.
22034         * tests/test-xalloc-die.sh: Likewise.
22035
22036 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22037
22038         * doc/gnulib.texi (Glibc pty.h): Add.
22039         * doc/glibc-functions/forkpty.texi: Add.
22040         * doc/glibc-functions/openpty.texi: Add.
22041         Suggested by Bruno Haible.
22042
22043 2009-12-08  Eric Blake  <ebb9@byu.net>
22044
22045         fchdir: fix logic bugs
22046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22047         * tests/test-fchdir.c (main): Enhance test.
22048         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22049         is in use.
22050
22051         dup2: fix logic bugs
22052         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22053         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22054         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22055         exists.
22056         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22057
22058 2009-12-07  Eric Blake  <ebb9@byu.net>
22059
22060         unlink: fix m4 detection
22061         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22062
22063         unistd-safer: add unit test
22064         * modules/unistd-safer-tests: New file.
22065         * tests/test-dup-safer.c: Likewise.
22066         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22067         * tests/test-dup2.c (setmode): Likewise.
22068         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22069
22070         cloexec: preserve text vs. binary across dup_cloexec
22071         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22072         mode.
22073         * modules/dup2-tests (Depends-on): Add binary-io.
22074         * modules/cloexec-tests (Depends-on): Likewise.
22075         * tests/test-dup2.c (setmode, is_mode): New helpers.
22076         (main): Add tests that translation mode is preserved.
22077         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22078         Reported by Bruno Haible.
22079
22080         mgetgroups: reduce duplicate listings
22081         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22082         resulting array.
22083         * tests/test-chown.h (test_chown): Simplify client.
22084         * tests/test-lchown.h (test_lchown): Likewise.
22085
22086 2009-12-06  Bruno Haible  <bruno@clisp.org>
22087
22088         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22089         value.
22090
22091 2009-12-06  Bruno Haible  <bruno@clisp.org>
22092
22093         * lib/progname.c: Include stdio.h, stdlib.h.
22094         (set_program_name): Reject a NULL argument.
22095
22096 2009-12-05  Eric Blake  <ebb9@byu.net>
22097
22098         pipe2-safer: new module
22099         * modules/pipe2-safer: New file.
22100         * lib/unistd-safer.h (pipe2_safer): New prototype.
22101         * lib/unistd--.h (pipe2): New wrapper.
22102         * lib/pipe-safer.c (pipe2_safer): New function.
22103         * modules/pipe (Depends-on): Add pipe2-safer.
22104         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22105
22106         stdlib-safer: preserve cloexec flag for mkostemp[s]
22107         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22108         fd_safer_flag.
22109
22110         unistd-safer: allow preservation of cloexec status via flag
22111         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22112         prototypes.
22113         * lib/dup-safer.c (dup_safer_flag): New function.
22114         * lib/fd-safer.c (fd_safer_flag): Likewise.
22115         * modules/cloexec (configure.ac): Set witness.
22116
22117         test-dup2: enhance test
22118         * modules/dup2-tests (Depends-on): Add cloexec.
22119         * tests/test-dup2.c (main): Enhance test.
22120
22121         cloexec: add dup_cloexec
22122         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22123         header and comments.
22124         * lib/cloexec.c (set_cloexec_flag): Add comments.
22125         (dup_cloexec): New function, with mingw implementation borrowed
22126         from...
22127         * lib/w32spawn.h (dup_noinherit): ...here.
22128         * modules/execute (Depends-on): Add cloexec.
22129         * modules/pipe (Depends-on): Likewise.
22130         * modules/cloexec (Depends-on): Add dup2.
22131         * modules/cloexec-tests (Files): New file.
22132         * tests/test-cloexec.c: Likewise.
22133
22134         test-xalloc-die: fix test for mingw
22135         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22136         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22137         directory and .exe suffix off argv[0] output.
22138
22139         test-fseeko: fix test for mingw
22140         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22141         than undefining fseek, so test will pass on mingw.
22142
22143 2009-12-05  Bruno Haible  <bruno@clisp.org>
22144
22145         * lib/progname.h (set_program_name): Clarify specification.
22146         * lib/progname.c (set_program_name): Likewise.
22147         Reported by Jim Meyering.
22148
22149 2009-12-05  Jim Meyering  <meyering@redhat.com>
22150
22151         maint.mk: backslash-escape parens in default regexp
22152         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22153         backslash-escape the literal parentheses.
22154
22155         maint.mk: news-date-check: use grep -E
22156         * top/maint.mk (today): Define a Make variable, not a...
22157         (news-date-check): ...shell variable.
22158         (news-date-regexp): Use the Make variable.
22159         Use grep's -E option.  Change the failing diagnostic to mention
22160         the variable, $(news-date-regexp).
22161
22162 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22163
22164         maintainer-makefile: allow customization of NEWS entry format
22165         * top/maint.mk (news-date-regexp): New overridable variable.
22166         (news-date-check): Use it.
22167
22168 2009-12-04  Eric Blake  <ebb9@byu.net>
22169
22170         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22171         * lib/mgetgroups.h (xgetgroups): New prototype.
22172         * lib/mgetgroups.c (xgetgroups): New wrapper.
22173         (mgetgroups): Handle ENOSYS.
22174         * modules/mgetgroups (Depends-on): Add realloc.
22175         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22176
22177         mgetgroups: avoid argument promotion issues with -1
22178         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22179         for invalid gid_t.
22180         * tests/test-chown.h (getegid, test_chown): Likewise.
22181         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22182
22183 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22184
22185         exclude: Fix header file problems.
22186         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22187
22188 2009-12-01  Jim Meyering  <meyering@redhat.com>
22189
22190         fts: fts_open: do not let an empty string cause immediate failure
22191         This is required in support of GNU rm, for which the command
22192         "rm A '' B" must process and remove both A and B, in spite of
22193         the empty string argument.
22194         * lib/fts.c (fts_open): Do not let the presence of an empty string
22195         cause fts_open to fail immediately.  Most fts-using tools must be
22196         able to process all arguments, in order, and can be expected to
22197         diagnose such arguments themselves.
22198
22199 2009-11-30  Eric Blake  <ebb9@byu.net>
22200
22201         utimens: fix compilation error
22202         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22203         Declare variable at right scope.
22204
22205 2009-11-29  Jim Meyering  <meyering@redhat.com>
22206
22207         bootstrap: handle perl-5.11's changed --version output
22208         * build-aux/bootstrap (get_version): Handle perl separately,
22209         since perl-5.11's --version output is different.
22210
22211 2009-11-28  Jim Meyering  <meyering@redhat.com>
22212
22213         userspec: depend on the inttostr module, too
22214         * modules/userspec (Depends-on): Add inttostr.
22215
22216         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22217         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22218         number of MAXUID when it evaluates to (uid_t) -1.
22219         Likewise for group ID.  Reported by Matt McCutchen in
22220         <http://savannah.gnu.org/bugs/?28113>
22221
22222         userspec: reformat to use spaces, not TABs
22223         * lib/userspec.c: Expand TABs to spaces.
22224         Add Emacs' "indent-tabs-mode: nil" hint.
22225
22226 2009-11-27  Eric Blake  <ebb9@byu.net>
22227
22228         getopt-gnu: flush out another BSD bug
22229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22230         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22231         flush out BSD bug.
22232         * tests/test-getopt.h (test_getopt): End lists with NULL.
22233         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22234         (test_getopt_long_posix): Enhance test.
22235         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22236         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22237         getopt-gnu.
22238         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22239         Likewise.
22240
22241 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22242
22243         * modules/idpriv-droptemp-tests (Notice): Fix text.
22244
22245 2009-11-27  Jim Meyering  <meyering@redhat.com>
22246
22247         test-xalloc-die: avoid spurious failure due to libtool argv difference
22248         In a libtool-enabled project, this test would fail due to a difference
22249         in the emitted program name, e.g.,
22250         -test-xalloc-die: memory exhausted
22251         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22252         Use program to avoid that.
22253         * modules/xalloc-die-tests (Depends-on): Add progname.
22254         * tests/test-xalloc-die.c: Include progname.h".
22255         (program_name): Remove decl.
22256         (main): Call set_program_name.
22257         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22258
22259 2009-11-26  Richard Jones  <rjones@redhat.com>
22260
22261         w32sock: leave win32 error in place.
22262         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22263
22264 2009-11-26  Eric Blake  <ebb9@byu.net>
22265
22266         init.sh: suggest to use skip_ and fail_ functions in comments
22267         * tests/init.sh: Add a sentence.
22268
22269 2009-11-25  Bruno Haible  <bruno@clisp.org>
22270
22271         init.sh: add documentation in comments
22272         * tests/init.sh: Add some developer and user documentation.
22273
22274 2009-11-26  Jim Meyering  <meyering@redhat.com>
22275
22276         init.sh: accommodate even those who specify bogus srcdir manually
22277         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22278         configure-time tests to be sanitized, so that there is no need to
22279         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22280         (with no double quotes) suffices.  However, since tests may be
22281         invoked manually, and since you may explicitly set srcdir to the
22282         name of a directory containing spaces, do quote its uses here.
22283         * tests/test-pread.sh: Likewise.
22284         Suggested by Bruno Haible.
22285
22286         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22287         * tests/test-pread.sh: Write no data into the pipe, because
22288         test-pread actually reads none.  This avoids a diagnostic,
22289         "bash: echo: write error: Broken pipe", that arises in the unusual
22290         event something is ignoring SIGPIPE, and might be interpreted
22291         as some sort of failure.  Reported by Bruno Haible.
22292
22293 2009-11-25  Jim Meyering  <meyering@redhat.com>
22294
22295         test-pread: cover failure with ESPIPE and EINVAL
22296         * tests/test-pread.c (main): Test for failure, too.
22297         * tests/test-pread.sh: Invoke with stdin on a pipe.
22298         Suggested by Eric Blake.
22299
22300         pread: improvement and fix
22301         * modules/pread (Depends-on): Depend on lseek, for portability to
22302         e.g., mingw.  Suggested by Eric Blake.
22303         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22304
22305         unistd.in.h: correct declaration of pread
22306         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22307         Reported by Richard W.M. Jones.
22308
22309         test-pread.sh: distribute the test script
22310         * modules/pread-tests (Files): Include test-pread.sh.
22311
22312         test-pread.sh: clean up
22313         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22314         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22315         That is unnecessary, since it's always ".".
22316         Suggestion from Eric Blake.
22317
22318         test-pread.sh: make executable
22319         * tests/test-pread.sh: Set executable bit.
22320         Reported by Eric Blake.
22321
22322         correct typo in test-pread.sh
22323         * tests/test-pread.sh: Add #! line.
22324
22325         test pread
22326         * tests/test-pread.c: New file.
22327         * tests/test-pread.sh: Likewise.
22328         * modules/pread-tests: Likewise.
22329
22330         pread: new module
22331         * modules/pread: New file.
22332         * lib/unistd.in.h (pread): Define/declare.
22333         * lib/pread.c (pread): New file.
22334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22335         * modules/unistd (Makefile.am): Substitute witnesses.
22336         * doc/posix-functions/pread.texi (pread): Update.
22337         * MODULES.html.sh: Add pread.
22338
22339 2009-11-25  Jim Meyering  <meyering@redhat.com>
22340
22341         tests/init.sh: new file to be used via most *.sh tests
22342         * tests/init.sh: New file.
22343
22344 2009-11-25  Eric Blake  <ebb9@byu.net>
22345
22346         utimens: work around older Linux failure with symlinks
22347         * lib/utimens.c (lutimensat_works_really): New variable.
22348         (fdutimens, lutimens): Use it to manage kernels that support
22349         nanosecond times on files, but not on symlinks.
22350         Reported by OndÅ™ej Vašík.
22351
22352         utimes: fix configure grammar
22353         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22354
22355 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22356
22357         regex: Fix fastmap for multibyte character ranges.
22358         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22359         characters when a multibyte character range is included.
22360
22361 2009-11-22  Andy Wingo  <wingo@pobox.com>
22362
22363         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22364         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22365
22366 2009-11-24  Bruno Haible  <bruno@clisp.org>
22367
22368         doc: Most *_l functions exist in MacOS X 10.5.
22369         * doc/posix-functions/duplocale.texi: Update platforms list.
22370         * doc/posix-functions/freelocale.texi: Likewise.
22371         * doc/posix-functions/newlocale.texi: Likewise.
22372         * doc/posix-functions/uselocale.texi: Likewise.
22373         * doc/posix-functions/isalnum_l.texi: Likewise.
22374         * doc/posix-functions/isalpha_l.texi: Likewise.
22375         * doc/posix-functions/isblank_l.texi: Likewise.
22376         * doc/posix-functions/iscntrl_l.texi: Likewise.
22377         * doc/posix-functions/isdigit_l.texi: Likewise.
22378         * doc/posix-functions/isgraph_l.texi: Likewise.
22379         * doc/posix-functions/islower_l.texi: Likewise.
22380         * doc/posix-functions/isprint_l.texi: Likewise.
22381         * doc/posix-functions/ispunct_l.texi: Likewise.
22382         * doc/posix-functions/isspace_l.texi: Likewise.
22383         * doc/posix-functions/isupper_l.texi: Likewise.
22384         * doc/posix-functions/iswalnum_l.texi: Likewise.
22385         * doc/posix-functions/iswalpha_l.texi: Likewise.
22386         * doc/posix-functions/iswblank_l.texi: Likewise.
22387         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22388         * doc/posix-functions/iswctype_l.texi: Likewise.
22389         * doc/posix-functions/iswdigit_l.texi: Likewise.
22390         * doc/posix-functions/iswgraph_l.texi: Likewise.
22391         * doc/posix-functions/iswlower_l.texi: Likewise.
22392         * doc/posix-functions/iswprint_l.texi: Likewise.
22393         * doc/posix-functions/iswpunct_l.texi: Likewise.
22394         * doc/posix-functions/iswspace_l.texi: Likewise.
22395         * doc/posix-functions/iswupper_l.texi: Likewise.
22396         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22397         * doc/posix-functions/isxdigit_l.texi: Likewise.
22398         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22399         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22400         * doc/posix-functions/strcoll_l.texi: Likewise.
22401         * doc/posix-functions/strfmon_l.texi: Likewise.
22402         * doc/posix-functions/strftime_l.texi: Likewise.
22403         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22404         * doc/posix-functions/strxfrm_l.texi: Likewise.
22405         * doc/posix-functions/tolower_l.texi: Likewise.
22406         * doc/posix-functions/toupper_l.texi: Likewise.
22407         * doc/posix-functions/towctrans_l.texi: Likewise.
22408         * doc/posix-functions/towlower_l.texi: Likewise.
22409         * doc/posix-functions/towupper_l.texi: Likewise.
22410         * doc/posix-functions/wcscoll_l.texi: Likewise.
22411         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22412         * doc/posix-functions/wctrans_l.texi: Likewise.
22413         * doc/posix-functions/wctype_l.texi: Likewise.
22414         * doc/glibc-functions/strptime_l.texi: Likewise.
22415         * doc/glibc-functions/strtod_l.texi: Likewise.
22416         * doc/glibc-functions/strtof_l.texi: Likewise.
22417         * doc/glibc-functions/strtol_l.texi: Likewise.
22418         * doc/glibc-functions/strtold_l.texi: Likewise.
22419         * doc/glibc-functions/strtoll_l.texi: Likewise.
22420         * doc/glibc-functions/strtoul_l.texi: Likewise.
22421         * doc/glibc-functions/strtoull_l.texi: Likewise.
22422         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22423         * doc/glibc-functions/wcstod_l.texi: Likewise.
22424         * doc/glibc-functions/wcstof_l.texi: Likewise.
22425         * doc/glibc-functions/wcstol_l.texi: Likewise.
22426         * doc/glibc-functions/wcstold_l.texi: Likewise.
22427         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22428         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22429         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22430
22431 2009-11-24  Bruno Haible  <bruno@clisp.org>
22432
22433         duplocale: Fix logic bug.
22434         * lib/duplocale.c: Don't include <langinfo.h>.
22435         (_NL_LOCALE_NAME): Remove macro.
22436         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22437         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22438
22439 2009-11-23  Jim Meyering  <meyering@redhat.com>
22440
22441         test-update-copyright: don't hard-code /usr/bin/perl
22442         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22443         perl to print the current year.  Gilles Espinasse reported that
22444         the replaced use of perl was hard-coded as /usr/bin/perl.
22445
22446 2009-11-23  Bruno Haible  <bruno@clisp.org>
22447
22448         duplocale: Add support for glibc 2.3.x.
22449         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22450
22451 2009-11-22  Bruno Haible  <bruno@clisp.org>
22452
22453         vasnprintf: Tiny optimization.
22454         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22455         MacOS X.
22456
22457 2009-11-22  Bruno Haible  <bruno@clisp.org>
22458
22459         Tests for module 'duplocale'.
22460         * modules/duplocale-tests: New file.
22461         * tests/test-duplocale.c: New file.
22462
22463         New module 'duplocale'.
22464         * m4/duplocale.m4: New file.
22465         * lib/locale.in.h (duplocale): New declaration.
22466         * lib/duplocale.c: New file.
22467         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22468         gl_LOCALE_H_DEFAULTS): New macros.
22469         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22470         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22471         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22472         REPLACE_DUPLOCALE.
22473         * modules/duplocale: New file.
22474         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22475
22476 2009-11-22  Bruno Haible  <bruno@clisp.org>
22477
22478         * modules/locale-tests (configure.ac): Test for newlocale function.
22479         * tests/test-locale.c: When the system has extended locale functions,
22480         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22481
22482         locale: Make locale_t available when possible.
22483         * lib/locale.in.h: Include <xlocale.h> when it exists.
22484         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22485         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22486         * modules/locale (Depends-on): Add extensions.
22487         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22488         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22489
22490 2009-11-22  Bruno Haible  <bruno@clisp.org>
22491
22492         Add comments.
22493         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22494         invocation.
22495         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22496         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22497         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22498
22499 2009-11-22  Bruno Haible  <bruno@clisp.org>
22500
22501         error: account for the possibility of freopen (stdout).
22502         * lib/error.c: Include <unistd.h>.
22503         (flush_stdout): New function, extracted from error and error_at_line.
22504         Determine stdout's fd dynamically.
22505         (error, error_at_line): Invoke flush_stdout.
22506         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22507         * modules/error (Depends-on): Add unistd.
22508
22509 2009-11-22  Bruno Haible  <bruno@clisp.org>
22510
22511         diffseq: Add comment.
22512         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22513
22514 2009-11-22  Jim Meyering  <meyering@redhat.com>
22515
22516         c-stack: avoid defining an unused static function
22517         * lib/c-stack.c (find_stack_direction): Do not define this function
22518         when it will not be used.
22519
22520         diffseq: avoid spurious gcc warnings
22521         * lib/diffseq.h (IF_LINT2): Define.
22522         (compareseq): Use it to initialize two members of "part".
22523         This avoids two used-uninitialized warnings.
22524
22525 2009-11-21  Jim Meyering  <meyering@redhat.com>
22526
22527         c-stack: avoid "ignoring return value of `write'" warning
22528         * lib/c-stack.c: Include "ignore-value.h".
22529         (die): Explicitly ignore each write return value.
22530         * modules/c-stack (Depends-on): Add ignore-value.
22531
22532 2009-11-21  Bruno Haible  <bruno@clisp.org>
22533
22534         diffseq: reduce scope of variable 'best'.
22535         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22536         variable, earlier used for two different purposes.
22537
22538 2009-11-21  Jim Meyering  <meyering@redhat.com>
22539
22540         diffseq: remove useless assignment to "best"
22541         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22542         assignment.  At that point "best" is already guaranteed to be zero.
22543
22544 2009-11-20  Eric Blake  <ebb9@byu.net>
22545
22546         build: mention ftp redirector in release announcements
22547         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22548         values that used to come from cfg.mk; mention FTP redirect URL.
22549         * build-aux/announce-gen: Mention the mirror list.
22550         Suggested by Karl Berry.
22551
22552         nanosleep: improve port to mingw
22553         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22555         LIB_NANOSLEEP, but only when needed.
22556         * modules/select (Link): Document LIBSOCKET.
22557         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22558         enough.
22559
22560         nanosleep: work around cygwin bug
22561         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22562         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22563         bug.
22564         (getnow): Delete, not needed.
22565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22566         LIB_CLOCK_GETTIME.
22567         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22568         clock-time, gettime.
22569         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22570         bug.
22571         * modules/nanosleep-tests: New test.
22572         * tests/test-nanosleep.c: New file.
22573
22574         sleep: work around cygwin bug
22575         * lib/sleep.c (rpl_sleep): Work around the bug.
22576         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22577         (gl_PREREQ_SLEEP): Delete unused macro.
22578         * modules/sleep (Depends-on): Add verify.
22579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22580         * modules/unistd (Makefile.am): Substitute witness.
22581         * lib/unistd.in.h (sleep): Update prototype.
22582         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22583         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22584         * modules/sleep-tests (Depends-on): Check for alarm.
22585
22586 2009-11-20  Jim Meyering  <meyering@redhat.com>
22587
22588         maint.mk: improve sc_prohibit_magic_number_exit
22589         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22590         so it does not match uses like System.exit(1).
22591         Add comments showing how to correct all offenders.
22592
22593 2009-11-19  Eric Blake  <ebb9@byu.net>
22594
22595         xalloc-die-tests: add missing library
22596         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22597
22598         test-xvasprintf: silence compiler warnings
22599         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22600         empty string from gcc.
22601
22602 2009-11-19  Jim Meyering  <meyering@redhat.com>
22603
22604         xfreopen: new module, from coreutils
22605         * modules/xfreopen: New module.
22606         * lib/xfreopen.c: New file.
22607         * lib/xfreopen.h: New file.
22608         * MODULES.html.sh (File stream based Input/Output"): Add it.
22609
22610 2009-11-19  Eric Blake  <ebb9@byu.net>
22611
22612         manywarnings: depend on warnings
22613         * modules/manywarnings (Depends-on): Add warnings.
22614
22615         build: avoid compiler warnings
22616         * lib/select.c (rpl_select): Delete unused variable.
22617         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22618
22619 2009-11-18  Eric Blake  <ebb9@byu.net>
22620
22621         tests: avoid false negative with --with-packager
22622         * tests/test-version-etc.sh: Discard packager information.
22623         * tests/test-argp-version-etc-1.sh: Likewise.
22624         Reported by Mike Frysinger.
22625
22626         utimens: fix regression on Solaris
22627         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22628         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22629         can only change fd timestamps via futimesat.  Instead, use an
22630         additional witness macro to avoid BSD bug.
22631         Reported by Jim Meyering.
22632
22633 2009-11-17  Eric Blake  <ebb9@byu.net>
22634
22635         usleep: use it to simplify tests
22636         * modules/stat-time-tests (Depends-on): Add usleep.
22637         (configure.ac): Drop usleep check.
22638         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22639         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22640         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22641         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22642         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22643         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22644         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22645         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22646         Likewise.
22647         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22648         * tests/test-lchown.h (nap): Likewise.
22649         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22650         * tests/test-stat-time.c (nap): Likewise.
22651         * tests/test-utimens-common.h (nap): Update comments.
22652
22653         usleep: new module
22654         * modules/usleep: New file.
22655         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22656         * lib/usleep.c (usleep): Likewise.
22657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22658         * modules/unistd (Makefile.am): Substitute witnesses.
22659         * lib/unistd.in.h (usleep): Add declaration.
22660         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22661         * MODULES.html.sh (Date and time): Likewise.
22662         * modules/usleep-tests (Depends-on): New test.
22663         * tests/test-usleep.c: New file.
22664
22665         chown: work around OpenBSD bug
22666         * lib/chown.c (rpl_chown): Work around the bug.
22667         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22668         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22669         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22670         * modules/chown (Depends-on): Add stdbool.
22671         * modules/lchown (Depends-on): Likewise.
22672         * doc/posix-functions/chown.texi (chown): Document the bug.
22673         * doc/posix-functions/lchown.texi (lchown): Likewise.
22674         * tests/test-lchown.h (test_chown): Relax test.
22675
22676         mkstemp: avoid conflict with C++ keyword template
22677         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22678         * lib/mkostemp.c (mkostemp): Likewise.
22679         * lib/mkostemps.c (mkostemps): Likewise.
22680         * lib/mkstemp.c (mkstemp): Likewise.
22681         * lib/mkstemps.c (mkstemps): Likewise.
22682
22683         xalloc-die-tests: optimize
22684         * tests/test-xalloc-die.sh: Reduce number of processes.
22685
22686 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22687
22688         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22689         patch from ludo@gnu.org (Ludovic Courtès).
22690
22691 2009-11-17  Jim Meyering  <meyering@redhat.com>
22692
22693         version-etc: use proper license string
22694         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22695         * modules/version-etc-fsf: Likewise.
22696
22697 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22698
22699         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22700         printed to stdout.  Deal with EOL differences.
22701
22702 2009-11-17  Eric Blake  <ebb9@byu.net>
22703
22704         unsetenv: work around Solaris bug
22705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22706         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22707         Reported by Jim Meyering.
22708
22709         vasnprintf: avoid compiler warnings
22710         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22711         variables.
22712         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22713
22714 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22715
22716         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22717         settings since xalloc-die is no longer the self test,
22718         xalloc-die.sh is.
22719
22720 2009-11-17  Jim Meyering  <meyering@redhat.com>
22721
22722         test-xalloc-die.sh: make the code agree with the commit log
22723         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22724         at the end, just in case you happen to have a test-xalloc-die
22725         program in some other PATH directory.
22726
22727         test-xalloc-die.sh: fix a portability bug
22728         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22729         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22730         Otherwise, argv[0] (as often seen in diagnostics) would be too
22731         system-dependent, sometimes with, and sometimes without the leading "./".
22732
22733         version-etc-fsf: relax license to LGPLv3+
22734         * modules/version-etc-fsf (License): Relax license.
22735
22736 2009-11-16  Eric Blake  <ebb9@byu.net>
22737
22738         xalloc-die-tests: avoid printing null pointer
22739         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22740         shell script.
22741         * tests/test-xalloc-die.c (program_name): Declare.
22742         * tests/test-xalloc-die.sh (tmpfiles): New file.
22743
22744         setenv, unsetenv: work around various bugs
22745         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22746         (setenv) [HAVE_SETENV]: Work around bugs.
22747         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22748         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22749         for bugs.
22750         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22751         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22753         * modules/stdlib (Makefile.am): Update substitutions.
22754         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22755         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22756         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22757         * modules/setenv-tests: New test.
22758         * modules/unsetenv-tests: Likewise.
22759         * tests/test-setenv.c: New file.
22760         * tests/test-unsetenv.c: Likewise.
22761
22762 2009-11-16  Jim Meyering  <meyering@redhat.com>
22763
22764         version-etc: relax license to LGPLv3+
22765         * modules/version-etc (License): Relax license.
22766
22767         better AC_REQUIRE expanded-before-required-warning avoidance
22768         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22769         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22770         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22771         which is no longer needed.
22772
22773 2009-11-16  Eric Blake  <ebb9@byu.net>
22774
22775         test-freading: clean up temporary file
22776         * tests/test-freading.c (main): Remove file on success, and use
22777         ASSERT more liberally.
22778         Reported by Jim Meyering.
22779
22780 2009-11-16  Jim Meyering  <meyering@redhat.com>
22781
22782         avoid new AC_REQUIRE expanded-before-required warnings
22783         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22784         merely using it.
22785         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22786         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22787
22788 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22789
22790         * tests/test-xalloc-die.c: New file.
22791         * modules/xalloc-die-tests: New file.
22792         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22793         XFAIL_TESTS so it can be appended by modules.
22794
22795 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22796
22797         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22798         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22799
22800 2009-11-14  Eric Blake  <ebb9@byu.net>
22801
22802         fnmatch: avoid compiler warning
22803         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22804         to silence compiler warning about mismatch signedness in ?:.
22805         Reported by Robert Millan.
22806
22807         intprops: add double-inclusion guard
22808         * lib/intprops.h: Allow idempotent includes.
22809         Suggested by Bruce Korb.
22810
22811         openat: detect Solaris fchownat bug
22812         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22813         penalizing glibc chownat when only lchownat is broken.
22814         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22815         trailing slash bugs.
22816         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22817         * modules/openat-tests (Files): Include more files.
22818         (Depends-on): Add mgetgroups, sleep, stat-time.
22819         (configure.ac): Add additional checks.
22820         (Makefile.am): Build new test.
22821         * tests/test-fchownat.c: New file.
22822
22823         lchown: detect Solaris and FreeBSD bug
22824         * lib/lchown.c (rpl_lchown): Work around bug.
22825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22827         * modules/unistd (Makefile.am): Populate it.
22828         * lib/unistd.in.h (lchown): Update declaration.
22829         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22830         * modules/lchown-tests: New file.
22831         * tests/test-lchown.h (test_lchown): Likewise.
22832         * tests/test-lchown.c (main): Likewise.
22833
22834         chown: detect Solaris and FreeBSD bug
22835         * lib/chown.c (rpl_chown): Work around bug.
22836         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22837         (gl_PREREQ_CHOWN): Delete.
22838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22839         * modules/unistd (Makefile.am): Populate it.
22840         * lib/unistd.in.h (chown): Update declaration.
22841         * lib/lchown.c (chown): Update client.
22842         * modules/lchown (Depends-on): Add lstat.
22843         * doc/posix-functions/chown.texi (chown): Document the bug.
22844         * doc/posix-functions/getgroups.texi (getgroups): Document
22845         getgroups pitfall.
22846         * modules/chown-tests: New file.
22847         * tests/test-chown.h (test_chown): Likewise.
22848         * tests/test-chown.c (main): Likewise.
22849
22850 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22851
22852         gnulib-tool: correctly detect absence of m4 directories
22853         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22854
22855 2009-11-14  Jim Meyering  <meyering@redhat.com>
22856
22857         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22858         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22859
22860 2009-11-14  John W. Eaton  <jwe@gnu.org>
22861
22862         strftime.h: wrap funtion declaration in extern "C" block
22863         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22864
22865 2009-11-13  Eric Blake  <ebb9@byu.net>
22866
22867         getgroups: avoid compiler warning
22868         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22869
22870         getgroups: work around FreeBSD bug
22871         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22872         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22873         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22874         * tests/test-getgroups.c (main): Fix buffer overrun.
22875
22876         getgroups: avoid compilation failure
22877         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22878         * modules/getgroups (Depends-on): Add stdint.
22879
22880 2009-11-13  Jim Meyering  <meyering@redhat.com>
22881
22882         test-getgroups: avoid compilation failure
22883         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22884
22885 2009-11-13  Eric Blake  <ebb9@byu.net>
22886
22887         mgetgroups: new module, taken from coreutils
22888         * modules/mgetgroups: New file.
22889         * lib/mgetgroups.h: Likewise.
22890         * lib/mgetgroups.c (mgetgroups): Likewise.
22891         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22892         * MODULES.html.sh (Users and groups): Mention it.
22893
22894         getgroups: don't expose GETGROUPS_T to user
22895         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22896         an element at a time if GETGROUPS_T is wrong size.
22897         * lib/getugroups.h (getugroups): Change signature.
22898         * lib/unistd.in.h (getgroups): Likewise.
22899         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22900         signature needs fixing.
22901         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22902         AC_TYPE_GETGROUPS.
22903         * modules/group-member (Depends-on): Add getgroups.
22904         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22905         (group_member): Rely on getgroups replacement.
22906         * lib/getugroups.c (getugroups): Use gid_t.
22907         * tests/test-getgroups.c (main): Likewise.
22908         * NEWS: Mention the signature change.
22909         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22910         problem with signature.
22911         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22912         GETGROUPS_T is still useful for setgroups.
22913
22914         getgroups, getugroups: provide stubs for mingw
22915         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22916         * lib/getugroups.c (getugroups): Likewise.
22917         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22918         function.  Modernize replacement scheme.
22919         (gl_PREREQ_GETGROUPS): Delete.
22920         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22921         * modules/getgroups (configure.ac): Declare witness.
22922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22923         * modules/unistd (Depends-on): Substitute witness.
22924         * lib/unistd.in.h (getgroups): Declare replacement.
22925
22926         getgroups: avoid calling exit
22927         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22928         drop xalloc.
22929         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22930         dependencies.
22931         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22932         exiting, in the rare case of malloc failure.
22933
22934         getgroups: fix logic error
22935         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22936         has more than 20 groups.
22937         * modules/getgroups-tests: New test.
22938         * tests/test-getgroups.c: New file.
22939
22940 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22941
22942         * tests/test-base64.c: Improve.
22943
22944 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22945
22946         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22947         Blake <ebb9@byu.net>.
22948
22949 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22950
22951         * tests/test-xvasprintf.c: Add %s%s related checks.
22952
22953 2009-11-12  Eric Blake  <ebb9@byu.net>
22954
22955         version-etc: match standards.texi style
22956         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22957         and use <> only for URLs.
22958
22959 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22960
22961         fts: do not fail on a submount during traversal
22962         * lib/fts.c (fts_build): Read the stat info again after opening
22963         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22964         Original report at http://bugzilla.redhat.com/501848.
22965
22966 2009-11-12  Jim Meyering  <meyering@redhat.com>
22967
22968         bootstrap: sync from coreutils
22969         * build-aux/bootstrap (bootstrap_epilogue): New function.
22970         Use git_modules_config in one more place.  This make bootstrap's
22971         --gnulib-srcdir option more useful for testing.
22972
22973         bootstrap: generalize autoheader check
22974         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22975         AC_CONFIG_HEADERS.
22976
22977 2009-11-11  Eric Blake  <ebb9@byu.net>
22978
22979         mkfifoat: use new modules for Solaris and BSD bugs
22980         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22981         * lib/mkfifoat.c (mknodat): Split...
22982         * lib/mknodat.c (mknodat): ...into new file.
22983         * modules/mkfifoat (Files): Ship new file.
22984         (Depends-on): Add mkfifo, mknod.
22985         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22986         (Depends-on): Add symlink.
22987         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22988         redundant with test_mkfifo.h.
22989         (do_mkfifoat, do_mknodat): New helpers.
22990
22991         mknod: new module
22992         * modules/mknod: New file.
22993         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22994         * lib/mknod.c (mknod): Likewise.
22995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22996         defaults.
22997         * modules/sys_stat (Makefile.am): Substitute them.
22998         * lib/sys_stat.in.h (mknod): Declare replacement.
22999         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23000         Document it.
23001         * doc/posix-functions/mknod.texi (mknod): Likewise.
23002         * modules/mknod-tests: New test.
23003         * tests/test-mknod.c: Likewise.
23004
23005         mkfifo: new module
23006         * modules/mkfifo: New file.
23007         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23008         * lib/mkfifo.c (mkfifo): Likewise.
23009         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23010         defaults.
23011         * modules/sys_stat (Makefile.am): Substitute them.
23012         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23013         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23014         Document it.
23015         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23016         * modules/mkfifo-tests: New test.
23017         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23018         from test-mkfifoat.c.
23019         * tests/test-mkfifo.c: New file.
23020
23021         readlink: detect FreeBSD bug
23022         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23023         slash on symlink.
23024         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23025         * tests/test-readlink.h (test_readlink): Enhance test.
23026
23027         symlink: detect FreeBSD bug
23028         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23029         slash on symlink.
23030         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23031         * tests/test-symlink.h (test_symlink): Enhance test.
23032
23033 2009-11-10  Eric Blake  <ebb9@byu.net>
23034
23035         link: detect FreeBSD bug
23036         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23037         symlink.
23038         * doc/posix-functions/link.texi (link): Document the bug.
23039         * tests/test-link.h (test_link): Enhance test.
23040         * tests/test-linkat.c (main): Update caller.
23041
23042         unlink, remove: detect FreeBSD bug
23043         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23044         slash on symlink.
23045         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23046         * doc/posix-functions/remove.texi (remove): Likewise.
23047         * tests/test-unlink.h (test_unlink): Enhance test.
23048         * tests/test-remove.c (main): Likewise.
23049
23050 2009-11-09  Eric Blake  <ebb9@byu.net>
23051
23052         rename: detect FreeBSD bug
23053         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23054         slash on symlink.
23055         * modules/renameat-tests (Depends-on): Add filenamecat.
23056         * tests/test-rename.h (test_rename): Allow one more errno.
23057         * tests/test-renameat.c (main): Likewise.
23058         * doc/posix-functions/rename.texi (rename): Document the bug.
23059
23060         open: detect FreeBSD bug
23061         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23062         symlink.
23063         * doc/posix-functions/open.texi (open): Document the bug.
23064         * doc/posix-functions/utimes.texi (utimes): Likewise.
23065         * tests/test-open.h (test_open): Add parameters, and test symlink
23066         handling.
23067         * tests/test-open.c (main): Adjust caller.
23068         * tests/test-fcntl-safer.c (main): Likewise.
23069         * modules/open-tests (Depends-on): Add stdbool, symlink.
23070         * modules/fcntl-safer-tests (Depends-on): Likewise.
23071         * tests/test-openat.c (main): Add test-open tests.
23072
23073         stat: detect FreeBSD bug
23074         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23075         symlink.
23076         * doc/posix-functions/stat.texi (stat): Document the bug.
23077         * tests/test-stat.h (test_stat_func): Add argument.
23078         * tests/test-stat.c (main): Adjust caller.
23079         * tests/test-fstatat.c (main): Likewise.
23080         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23081         Reported by Jim Meyering.
23082
23083 2009-11-09  James Youngman  <jay@gnu.org>
23084
23085         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23086         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23087
23088 2009-11-08  Jim Meyering  <meyering@redhat.com>
23089
23090         utimens: remove invalid futimesat call
23091         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23092         It used the file descriptor of the target file as the DIR_FD
23093         parameter and NULL as the file name.  That caused failure with
23094         errno == EFAULT on FreeBSD-8.0-rc2
23095
23096 2009-11-07  Eric Blake  <ebb9@byu.net>
23097
23098         fflush, freadseek: use fseeko, not fseek
23099         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23100         (clear_ungetc_buffer): Avoid potential problems on large files.
23101         * lib/freadseek.c (freadseek): Likewise.
23102         * modules/freadseek (Depends-on): Add fseeko.
23103         * modules/fseek (configure.ac): Set a witness.
23104         * tests/test-fflush.c (main): Use fseeko.
23105         * tests/test-fpurge.c (fseek): Disable link warning.
23106         * tests/test-freadable.c (fseek): Likewise.
23107         * tests/test-freading.c (fseek): Likewise.
23108         * tests/test-fseeko.c (fseek): Likewise.
23109         * tests/test-ftell.c (fseek): Likewise.
23110         * tests/test-ftello.c (fseek): Likewise.
23111         * tests/test-fwritable.c (fseek): Likewise.
23112         * tests/test-fwriting.c (fseek): Likewise.
23113
23114 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23115
23116         * modules/memchr (Depends-on): Drop getpagesize dependency.
23117
23118 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23119
23120         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23121         Reported by Ludovic Courtès.
23122         * build-aux/pmccabe2html: Improve example usage.
23123         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23124
23125 2009-11-06  Jim Meyering  <meyering@redhat.com>
23126
23127         do-release-commit-and-tag: New module.
23128         Automate the release-commit and tag process.
23129         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23130         * modules/do-release-commit-and-tag: New file.
23131         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23132
23133 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23134
23135         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23136         because test-select.c uses inet_pton.
23137
23138 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23139
23140         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23141         GETADDRINFO_LIB.  Bump serial number.
23142         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23143         Suggested by Eric Blake <ebb9@byu.net>.
23144
23145 2009-11-05  Eric Blake  <ebb9@byu.net>
23146
23147         strtod: detect darwin bug
23148         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23149         Reported by Leo Davis.
23150
23151         freopen-safer: new module
23152         * modules/freopen-safer: New module.
23153         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23154         * lib/freopen-safer.c (freopen_safer): New file.
23155         * lib/stdio-safer.h (freopen_safer): New declaration.
23156         * lib/stdio--.h (freopen): New override.
23157         * MODULES.html.sh (File stream based Input/Output): Mention it.
23158         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23159         freopen-safer module.
23160         * doc/posix-functions/stderr.texi (stderr): Likewise.
23161         * doc/posix-functions/stdin.texi (stdin): Likewise.
23162         * doc/posix-functions/stdout.texi (stdout): Likewise.
23163         * modules/freopen-safer-tests: New test.
23164         * tests/test-reopen-safer.c: New file.
23165
23166 2009-11-05  Jim Meyering  <meyering@redhat.com>
23167
23168         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23169         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23170
23171 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23172
23173         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23174
23175 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23176
23177         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23178
23179 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23180
23181         Fix link error.
23182         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23184
23185 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23186
23187         * tests/test-func.c: Also test value of __func__.
23188
23189 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23190
23191         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23192         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23193
23194 2009-11-05  Bruno Haible  <bruno@clisp.org>
23195
23196         Fix link error.
23197         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23198         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23199         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23200
23201 2009-11-05  Bruno Haible  <bruno@clisp.org>
23202
23203         Tests for module 'inet_pton'.
23204         * modules/inet_pton-tests: New file.
23205         * tests/test-inet_pton.c: New file.
23206
23207 2009-11-05  Bruno Haible  <bruno@clisp.org>
23208
23209         Tests for module 'inet_ntop'.
23210         * modules/inet_ntop-tests: New file.
23211         * tests/test-inet_ntop.c: New file.
23212
23213 2009-11-04  Eric Blake  <ebb9@byu.net>
23214
23215         stdlib-safer: wrap all mkstemp variants
23216         * modules/mkostemp (configure.ac): Set witness.
23217         * modules/mkostemps (configure.ac): Likewise.
23218         * modules/mkstemps (configure.ac): Likewise.
23219         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23220         (mkstemps_safer): Wrap more functions.
23221         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23222         wrapping.
23223         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23224         (mkstemps_safer): Implement the wrappers.
23225
23226         mkstemps, mkostemps: new modules
23227         * modules/mkostemps: New module.
23228         * modules/mkstemps: Likewise.
23229         * lib/mkostemps.c (mkostemps): New file.
23230         * lib/mkstemps.c (mkstemps): Likewise.
23231         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23232         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23234         * modules/stdlib (Makefile.am): Substitute them.
23235         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23236         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23237         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23238         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23239         * MODULES.html.sh (File system functions): Mention them.
23240
23241         tempname: resync from glibc
23242         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23243         same values for __GT_FILE as glibc.  Abort even when assertions
23244         are disabled.
23245         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23246         match its value otherwise.  Allow idempotent inclusion.
23247         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23248         * lib/mkostemp.c (mkostemp): Likewise.
23249         * lib/mkstemp.c (mkstemp): Likewise.
23250         * lib/tmpfile.c (tmpfile): Likewise.
23251         * NEWS: Document this.
23252
23253         utimens: fix use of futimens on older Linux
23254         * lib/utimens.c (fdutimens): Use updated, rather than original,
23255         timespec to avoid bug in older Linux kernel.
23256         Reported by Simon Josefsson.
23257
23258 2009-11-04  Bruno Haible  <bruno@clisp.org>
23259
23260         Make num_processors more flexible and consistent.
23261         * lib/nproc.h (enum nproc_query): New type.
23262         (num_processors): Add a 'query' argument.
23263         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23264         (num_processors): Add a 'query' argument. Test the value of the
23265         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23266         mingw, count the number of CPUs available for the current process.
23267         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23268         Check for sched_getaffinity and sched_getaffinity_np.
23269         * modules/nproc (Depends-on): Add c-ctype, extensions.
23270         * NEWS: Mention the change.
23271
23272 2009-11-03  Bruno Haible  <bruno@clisp.org>
23273
23274         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23275
23276 2009-11-03  Jim Meyering  <meyering@redhat.com>
23277
23278         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23279         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23280         if it is defined.
23281
23282 2009-11-02  Eric Blake  <ebb9@byu.net>
23283
23284         mktime, timegm: share common declaration
23285         * lib/mktime-internal.h: New file.
23286         * lib/mktime.c: Use it rather than open-coding a declaration.
23287         * lib/timegm.c: Likewise.
23288         * modules/mktime (Files): Ship it.
23289         * modules/timegm (Files): Likewise.
23290         Suggested by Bruno Haible.
23291
23292         test-update-copyright: update test to match script changes
23293         * tests/test-update-copyright.sh: Avoid hard-coding perl
23294         location.  Don't update *.bak created by earlier runs.
23295
23296 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23297             Simon Josefsson  <simon@josefsson.org>
23298             Bruno Haible  <bruno@clisp.org>
23299
23300         Fix link error on Solaris 8.
23301         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23302         also in libnsl. Define also INET_PTON_LIB.
23303         * modules/inet_pton (Link): New section.
23304
23305 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23306             Bruno Haible  <bruno@clisp.org>
23307
23308         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23309         * modules/inet_ntop (Link): New section.
23310         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23311
23312 2009-11-02  Eric Blake  <ebb9@byu.net>
23313
23314         maint: avoid compiler warnings in m4 macros
23315         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23316         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23317
23318 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23319
23320         * m4/pmccabe2html.m4: Remove file.
23321         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23322         function.  Change maintainer.
23323         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23324         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23325         Courtès).
23326
23327 2009-10-31  Eric Blake  <ebb9@byu.net>
23328
23329         fseeko: fix m4 regression
23330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23331         regression from 2009-10-27.
23332         Reported by Ralf Wildenhues.
23333
23334 2009-10-31  Jim Meyering  <meyering@redhat.com>
23335
23336         inttostr: aesthetics and improved (compile-time) safety
23337         Define inttype_is_signed rather than inttype_is_unsigned,
23338         since the sole use is via "#if inttype_is_signed".
23339         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23340         inttype_is_unsigned.
23341         * lib/offtostr.c (inttype_is_signed): Likewise.
23342         * lib/uinttostr.c (inttype_is_signed): Likewise.
23343         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23344         * lib/inttostr.c (inttostr): Use verify to cross-check the
23345         inttype_is_signed value and the signedness of the actual type.
23346         * modules/inttostr (Depends-on): Add verify.
23347
23348 2009-10-30  Eric Blake  <ebb9@byu.net>
23349
23350         build: avoid compiler warnings
23351         * lib/fchmodat.c (lchmod): Mark unused variables.
23352         * lib/getopt.c (_getopt_initialize): Likewise.
23353         * lib/mktime.c (__mktime_internal): Provide prototype.
23354         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23355         older gcc that do not understand #pragma GCC diagnostic.
23356         * lib/uinttostr.c (inttype_is_unsigned): Define.
23357         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23358
23359 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23360
23361         stat: fix compilation on AIX
23362         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23363         only see struct stat64.
23364
23365 2009-10-30  Eric Blake  <ebb9@byu.net>
23366
23367         exclude: make more robust
23368         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23369         rather than masking a coding bug.
23370         Suggested by Bruno Haible.
23371
23372 2009-10-30  Jim Meyering  <meyering@redhat.com>
23373
23374         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23375         Rather than putting #!/usr/bin/perl on the first line,
23376         start with a variant of what's recommended by "man perlrun" that
23377         invokes the first "perl" program from your shell's search path.
23378         * build-aux/gitlog-to-changelog: Replace #!... as above.
23379         Add a "Local Variables" perl mode setting.
23380         Prompted by a patch from Ludovic Courtès.
23381         Improved by Eric Blake.
23382         * build-aux/useless-if-before-free: Likewise.
23383         * build-aux/announce-gen: Likewise.
23384         * build-aux/update-copyright: Likewise.
23385
23386 2009-10-29  Eric Blake  <ebb9@byu.net>
23387
23388         filenamecat-lgpl: adjust clients
23389         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23390         filenamecat.
23391         * modules/renameat (Depends-on): Likewise.
23392
23393         filenamecat: split into filenamecat-lgpl
23394         * modules/filenamecat-lgpl: New module.
23395         * modules/filenamecat (Files): Move library-safe files into
23396         filenamecat-lgpl.
23397         (Depends-on): Add filenamecat-lgpl.
23398         (configure.ac): Declare witness.
23399         * lib/filenamecat.h (file_name_concat): Only declare when using
23400         GPL module.
23401         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23402         Move...
23403         * lib/filenamecat-lgpl.c: ...into new file.
23404         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23405         (gl_FILE_NAME_CONCAT): Use it.
23406         * MODULES.html.sh (File system functions): Mention new module.
23407
23408         argp: avoid memory leak
23409         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23410         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23411         base_name, since the latter malloc()s and can call exit().
23412         Leak introduced 2006-07-03.
23413
23414         dirname-lgpl: adjust clients that don't need full dirname
23415         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23416         * modules/filenamecat (Depends-on): Likewise.
23417         * modules/linkat (Depends-on): Likewise.
23418         * modules/mkancesdirs (Depends-on): Likewise.
23419         * modules/mkdir (Depends-on): Likewise.
23420         * modules/openat (Depends-on): Likewise.
23421         * modules/savewd (Depends-on): Likewise.
23422         * modules/rename (Depends-on): Likewise.
23423         (License): Relax license.
23424         * modules/mkdir-tests (Depends-on): Drop progname.
23425         (Makefile.am): Delete unneeded LDADD.
23426         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23427
23428         dirname: split into dirname-lgpl
23429         * modules/dirname-lgpl: New module.
23430         * modules/dirname (Files): Move library-safe files into
23431         dirname-lgpl.
23432         (Depends-on): Add dirname-lgpl.
23433         (configure.ac): Declare witness.
23434         * modules/double-slash-root (License): Relax license.
23435         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23436         module.
23437         * lib/dirname.c (dir_len, mdir_name): Move...
23438         * lib/dirname-lgpl.c: ...into new file.
23439         * lib/basename.c (last_component, base_len): Move...
23440         * lib/basename-lgpl.c: ...into new file.
23441         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23442         (gl_DIRNAME): Use it.
23443         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23444         Mention new module.
23445         * modules/dirname-tests (Depends-on): Add progname.
23446         * tests/test-dirname.c (program_name): Delete.
23447
23448         mkdir: make safe for libraries
23449         * modules/mkdir (Depends-on): Drop xalloc.
23450         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23451         exit.
23452
23453         tests: avoid some compiler warnings
23454         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23455         literals.
23456         * tests/test-memchr.c (main): Avoid type mismatch.
23457         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23458         * tests/test-base64.c (main): Likewise.
23459         * tests/test-getdelim.c (main): Likewise.
23460         * tests/test-gethostname.c (main): Likewise.
23461         * tests/test-getline.c (main): Likewise.
23462         * tests/test-netinet_in.c (main): Likewise.
23463         * tests/test-select.c (open_server_socket, main): Likewise.
23464         * tests/test-select-stdin.c (main): Likewise.
23465         * tests/test-sockets.c (main): Likewise.
23466         * tests/test-strsignal.c (main): Likewise.
23467         * tests/test-sys_select.c (main): Likewise.
23468         * tests/test-sys_socket.c (main): Likewise.
23469         * tests/test-u64.c (main): Likewise.
23470         * tests/test-xfprintf-posix.c (main): Likewise.
23471         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23472
23473         sockets: avoid compiler warning
23474         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23475
23476         maint: detect usage(1) and other suspicious exits
23477         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23478
23479 2009-10-29  Jim Meyering  <meyering@redhat.com>
23480
23481         timespec: long-to-int truncation could make timespec_cmp malfunction
23482         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23483         a multiple of 2^32 nanoseconds as no difference.
23484
23485 2009-10-28  Jim Meyering  <meyering@redhat.com>
23486
23487         fprintftime: wrap macro code argument in "do {...} while(0)"
23488         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23489         cpy macro must be a statement that can be followed by a semicolon.
23490         Now that the else clause contains a comment and is hence longer
23491         than one line, I require curly braces.  That in turn requires
23492         that we wrap this code block in the standard do...while(0).
23493
23494         fprintftime: remove stray semicolon from previous change
23495         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23496
23497         fprintftime: avoid a warning about ignored fwrite return value
23498         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23499         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23500         that is unsafe.
23501         * modules/fprintftime (Depends-on): Add ignore-value.
23502
23503         exclude: avoid an unwarranted warning
23504         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23505
23506 2009-10-27  Eric Blake  <ebb9@byu.net>
23507
23508         fseek: avoid compilation failure when fflush is replaced
23509         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23510         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23511         module is in use.
23512         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23513         module is not in use; since REPLACE_FSEEK worked otherwise.
23514         (GNULIB_FTELLO): Likewise for ftell.
23515         Reported by Ian Beckwith and others.
23516
23517 2009-10-27  Bruno Haible  <bruno@clisp.org>
23518
23519         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23520         Reported by Jim Meyering.
23521
23522 2009-10-27  Jim Meyering  <jim@meyering.net>
23523             Bruno Haible  <bruno@clisp.org>
23524
23525         Avoid warning despite dropping the return value of fwrite.
23526         * lib/unicodeio.c: Include ignore-value.h.
23527         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23528         * modules/unicodeio (Depends-on): Add ignore-value.
23529
23530 2009-10-26  Eric Blake  <ebb9@byu.net>
23531
23532         areadlinkat: fix fallback path
23533         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23534         pointer and zero.
23535
23536 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23537
23538         Use a better IO block size for modern systems
23539         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23540         * lib/md2.c: Likewise.
23541         * lib/md4.c: Likewise.
23542         * lib/md5.c: Likewise.
23543         * lib/sha1.c: Likewise.
23544         * lib/sha256.c: Likewise.
23545         * lib/sha512.c: Likewise.
23546
23547 2009-10-22  Eric Blake  <ebb9@byu.net>
23548
23549         tests: avoid several compiler warnings
23550         * tests/test-getcwd.c (main): Avoid buffer underflow.
23551         * tests/test-getdate.c (main): String literals are not safe with
23552         putenv, so use setenv.  Declare unused argument.
23553         * modules/getdate-tests (Depends-on): Add setenv.
23554         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23555         problems with string literals in char *.
23556         * tests/test-hash.c (main): Avoid shadowing declaration.
23557         (insert_new): Treat string literals as char const *.
23558         * tests/test-getopt.h (test_getopt): Likewise.
23559         (getopt_loop): Alter types to minimize casting elsewhere.
23560         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23561         (test_getopt_long_posix): Likewise.
23562         (do_getopt_long): Add wrapper to minimize casting.
23563         * tests/test-atexit.c (clear_temp_file): Use void.
23564         * tests/test-areadlink-with-size.c (main): Declare unused
23565         arguments.
23566         * tests/test-areadlink.c (main): Likewise.
23567         * tests/test-areadlinkat-with-size.c (main): Likewise.
23568         * tests/test-areadlinkat.c (main): Likewise.
23569         * tests/test-canonicalize-lgpl.c (main): Likewise.
23570         * tests/test-canonicalize.c (main): Likewise.
23571         * tests/test-dirent-safer.c (main): Likewise.
23572         * tests/test-dirname.c (main): Likewise.
23573         * tests/test-dup2.c (main): Likewise.
23574         * tests/test-fchdir.c (main): Likewise.
23575         * tests/test-fcntl-h.c (main): Likewise.
23576         * tests/test-fcntl-safer.c (main): Likewise.
23577         * tests/test-fdopendir.c (main): Likewise.
23578         * tests/test-fdutimensat.c (main): Likewise.
23579         * tests/test-fflush.c (main): Likewise.
23580         * tests/test-filenamecat.c (main): Likewise.
23581         * tests/test-filevercmp.c (main): Likewise.
23582         * tests/test-fopen-safer.c (main): Likewise.
23583         * tests/test-fopen.c (main): Likewise.
23584         * tests/test-fpending.c (main): Likewise.
23585         * tests/test-fpurge.c (main): Likewise.
23586         * tests/test-freading.c (main): Likewise.
23587         * tests/test-fstatat.c (main): Likewise.
23588         * tests/test-fsync.c (main): Likewise.
23589         * tests/test-futimens.c (main): Likewise.
23590         * tests/test-getndelim2.c (main): Likewise.
23591         * tests/test-gettimeofday.c (main): Likewise.
23592         * tests/test-getopt.c (main): Likewise.
23593         * tests/test-i-ring.c (main): Likewise.
23594         * tests/test-inttypes.c (main): Likewise.
23595         * tests/test-link.c (main): Likewise.
23596         * tests/test-lstat.c (main): Likewise.
23597         * tests/test-math.c (main): Likewise.
23598         * tests/test-md5.c (main): Likewise.
23599         * tests/test-memchr2.c (main): Likewise.
23600         * tests/test-memrchr.c (main): Likewise.
23601         * tests/test-mkdir.c (main): Likewise.
23602         * tests/test-mkdirat.c (main): Likewise.
23603         * tests/test-mkfifoat.c (main): Likewise.
23604         * tests/test-open.c (main): Likewise.
23605         * tests/test-openat-safer.c (main): Likewise.
23606         * tests/test-openat.c (main): Likewise.
23607         * tests/test-quotearg.c (main): Likewise.
23608         * tests/test-rawmemchr.c (main): Likewise.
23609         * tests/test-readlink.c (main): Likewise.
23610         * tests/test-remove.c (main): Likewise.
23611         * tests/test-rename.c (main): Likewise.
23612         * tests/test-renameat.c (main): Likewise.
23613         * tests/test-rmdir.c (main): Likewise.
23614         * tests/test-sha1.c (main): Likewise.
23615         * tests/test-signal.c (main): Likewise.
23616         * tests/test-sigaction.c (main): Likewise.
23617         * tests/test-stat.c (main): Likewise.
23618         * tests/test-stat-time.c (main): Likewise.
23619         * tests/test-stddef.c (main): Likewise.
23620         * tests/test-stdint.c (main): Likewise.
23621         * tests/test-stdio.c (main): Likewise.
23622         * tests/test-stdlib.c (main): Likewise.
23623         * tests/test-strchrnul.c (main): Likewise.
23624         * tests/test-strerror.c (main): Likewise.
23625         * tests/test-string.c (main): Likewise.
23626         * tests/test-strtod.c (main): Likewise.
23627         * tests/test-strverscmp.c (main): Likewise.
23628         * tests/test-symlink.c (main): Likewise.
23629         * tests/test-symlinkat.c (main): Likewise.
23630         * tests/test-sys_stat.c (main): Likewise.
23631         * tests/test-sys_time.c (main): Likewise.
23632         * tests/test-time.c (main): Likewise.
23633         * tests/test-unistd.c (main): Likewise.
23634         * tests/test-unlink.c (main): Likewise.
23635         * tests/test-unlinkat.c (main): Likewise.
23636         * tests/test-utimens.c (main): Likewise.
23637         * tests/test-utimensat.c (main): Likewise.
23638         * tests/test-version-etc.c (main): Likewise.
23639         * tests/test-wchar.c (main): Likewise.
23640         * tests/test-wctype.c (main): Likewise.
23641         * tests/test-xprintf-posix.c (main): Likewise.
23642         * tests/test-posixtm.c (main): Likewise.
23643         (STREQ): Delete unused macro.
23644         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23645         shadowed variables.
23646         * tests/test-memchr.c (main): Likewise.
23647
23648 2009-10-21  Eric Blake  <ebb9@byu.net>
23649
23650         areadlinkat: avoid failure on older glibc
23651         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23652         rather than mis-comparing 0 against FUNC_RESULT of char*.
23653
23654 2009-10-21  Bruno Haible  <bruno@clisp.org>
23655
23656         * modules/stpncpy (License): Relicense under LGPLv2+.
23657         Reported by David Lutterkort <lutter@redhat.com>.
23658
23659 2009-10-20  Eric Blake  <ebb9@byu.net>
23660
23661         utimensat: work around Solaris 9 bug
23662         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23663         has trailing slash bugs.
23664         * tests/test-lutimens.h (test_lutimens): Enhance test.
23665         * tests/test-utimens.h (test_utimens): Likewise.
23666         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23667         * doc/posix-functions/utimes.texi (utimes): Likewise.
23668         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23669         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23670         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23671         * doc/posix-functions/futimens.texi (futimens): Likewise.
23672
23673         fdutimensat: new module
23674         * modules/fdutimensat: New file.
23675         * lib/fdutimensat.c (fdutimensat): Likewise.
23676         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23677         * MODULES.html.sh (File system functions): Mention module.
23678         * modules/fdutimensat-tests: New test.
23679         * tests/test-fdutimensat.c: Likewise.
23680
23681         doc: regenerate INSTALL
23682         * doc/INSTALL: Reflect recent autoconf update.
23683         * doc/INSTALL.ISO: Likewise.
23684         * doc/INSTALL.UTF-8: Likewise.
23685
23686 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23687
23688         acl: warn if ACL support is not detected
23689         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23690
23691 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23692
23693         * lib/nproc.h: Add extern "C" block for C++.
23694
23695 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23696             Bruno Haible  <bruno@clisp.org>
23697
23698         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23699         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23700         * doc/posix-functions/isalpha.texi: Likewise.
23701         * doc/posix-functions/isblank.texi: Likewise.
23702         * doc/posix-functions/iscntrl.texi: Likewise.
23703         * doc/posix-functions/isdigit.texi: Likewise.
23704         * doc/posix-functions/isgraph.texi: Likewise.
23705         * doc/posix-functions/islower.texi: Likewise.
23706         * doc/posix-functions/isprint.texi: Likewise.
23707         * doc/posix-functions/ispunct.texi: Likewise.
23708         * doc/posix-functions/isspace.texi: Likewise.
23709         * doc/posix-functions/isupper.texi: Likewise.
23710         * doc/posix-functions/isxdigit.texi: Likewise.
23711
23712 2009-10-18  Bruno Haible  <bruno@clisp.org>
23713
23714         Tests for module 'isblank'.
23715         * modules/isblank-tests: New file.
23716         * tests/test-isblank.c: New file.
23717
23718         New module 'isblank'.
23719         * lib/isblank.c: New file.
23720         * m4/isblank.m4: New file.
23721         * modules/isblank: New file.
23722         * doc/posix-functions/isblank.texi: Mention the new module.
23723
23724 2009-10-18  Bruno Haible  <bruno@clisp.org>
23725
23726         New module 'ctype'.
23727         * lib/ctype.in.h: New file.
23728         * m4/ctype.m4: New file.
23729         * modules/ctype: New file.
23730         * doc/posix-headers/ctype.texi: Mention the new module.
23731
23732 2009-10-18  Jim Meyering  <meyering@redhat.com>
23733
23734         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23735         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23736         right after its initialization, rather than farther down.
23737         Keeping these in close proximity makes it easier to ensure
23738         that each such variable is initialized.  E.g.,
23739
23740             LIB_CLOCK_GETTIME=
23741             AC_SUBST([LIB_CLOCK_GETTIME])
23742
23743         This change also increments these serial numbers.
23744         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23745         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23747
23748 2009-10-18  Bruno Haible  <bruno@clisp.org>
23749
23750         Don't let environment variables perturb build.
23751         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23752         (gl_PREREQ_GETHRXTIME): ... not here.
23753
23754 2009-10-18  Bruno Haible  <bruno@clisp.org>
23755
23756         Avoid symlink attack in localcharset module.
23757         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23758         (O_NOFOLLOW): Define fallback.
23759         (get_charset_aliases): Don't open the file if it is a symbolic link.
23760         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23761         gl_FCNTL_H.
23762         (gl_FCNTL_H): Require it.
23763         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23764         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23765         Reported by Fergal Glynn <fglynn@veracode.com>.
23766
23767 2009-10-18  Bruno Haible  <bruno@clisp.org>
23768
23769         Implement nproc for mingw.
23770         * lib/nproc.c: Include <windows.h>
23771         (num_processors): On native Windows platforms, try GetSystemInfo.
23772
23773 2009-10-18  Bruno Haible  <bruno@clisp.org>
23774
23775         Implement nproc for IRIX.
23776         * lib/nproc.c: Include <sys/sysmp.h>.
23777         (num_processors): On IRIX systems, try sysmp.
23778         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23779
23780 2009-10-18  Bruno Haible  <bruno@clisp.org>
23781
23782         Implement nproc for HP-UX.
23783         * lib/nproc.c: Include <sys/pstat.h>
23784         (num_processors): On HP-UX systems, try pstat_getdynamic.
23785         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23786         pstat_getdynamic.
23787
23788 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23789             Bruno Haible  <bruno@clisp.org>
23790
23791         Implement nproc for NetBSD, OpenBSD.
23792         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23793         (ARRAY_SIZE): New macro.
23794         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23795         * m4/nproc.m4: New file.
23796         * modules/nproc (Files): Add m4/nproc.m4.
23797         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23798         (Makefile.am): Instead, augment lib_SOURCES.
23799
23800 2009-10-18  Bruno Haible  <bruno@clisp.org>
23801
23802         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23803         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23804         sys/param.h.
23805
23806 2009-10-16  Eric Blake  <ebb9@byu.net>
23807
23808         utimensat: new module
23809         * modules/utimensat: New file.
23810         * lib/utimensat.c (utimensat): Likewise.
23811         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23812         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23813         so we can work around Linux bugs.
23814         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23815         * modules/sys_stat (Makefile.am): Substitute them.
23816         * lib/sys_stat.in.h (utimensat): Declare it.
23817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23818         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23819         * modules/utimensat-tests: New test.
23820         * tests/test-utimensat.c: Likewise.
23821
23822         utimens: let lutimens work on non-symlinks
23823         * lib/utimens.c (lutimens): Fall back to utimens rather than
23824         failing with ENOSYS, when file is not a symlink.
23825         (utimens): Reduce redirection.
23826         * tests/test-lutimens.h (test_lutimens): Update test to cover
23827         non-symlinks.
23828         * tests/test-utimens.h (test_utimens): Update test to cover
23829         symlinks.
23830         * tests/test-utimens.c (main): Update caller.
23831
23832         utimens: cache whether utimensat syscall works
23833         * lib/utimens.c (utimensat_works_really): New cache variable.
23834         (fdutimens, lutimens): Use it to avoid failing syscall.
23835
23836         test-stat-time, test-utimens: improve portability
23837         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23838         ext4 on alpha, and for cygwin.
23839         * tests/test-utimens-common.h: New file.
23840         (nap): Factor delays into single function.
23841         * tests/test-lutimens.h (test_lutimens): Use new header.
23842         * tests/test-futimens.h (test_futimens): Likewise.
23843         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23844         timestamps to occur from same machine, as was done previously for
23845         test_utimens.
23846         * modules/utimens-tests (Files): Ship new file.
23847         * modules/futimens-tests (Files): Likewise.
23848         Reported in part by Jim Meyering.
23849
23850         sys_stat: sort replacement declarations
23851         * lib/sys_stat.in.h: Sort declarations.
23852         * lib/futimens.c (futimens): Fix typo.
23853
23854 2009-10-15  Jim Meyering  <meyering@redhat.com>
23855
23856         don't let environment settings perturb build
23857         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23858         could cause a configure-time and/or build-time malfunction.
23859         Typically, a configure-time function-in-library test is performed
23860         via code like this:
23861
23862           LIB_VAR=
23863           AC_SUBST([LIB_VAR])
23864           prefix_saved_LIBS=$LIBS
23865             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23866                        [test "$ac_cv_search_FUNC" = "none required" ||
23867                         LIB_VAR=$ac_cv_search_FUNC])
23868           LIBS=$prefix_saved_LIBS
23869
23870         However, in each of the files affected by this change, the LIB_VAR=
23871         initialization was omitted.  Thus, when set in the environment, its
23872         value would propagate into generated Makefiles when FUNC is not found
23873         in LIB_NAME.
23874         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23875         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23877
23878 2009-10-14  Eric Blake  <ebb9@byu.net>
23879
23880         fchdir: avoid infinite recursion in mingw
23881         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23882         recursing.
23883
23884         test-stat-time: port to mingw
23885         * tests/test-stat-time.c (force_unlink): Return a value.
23886         (test_ctime) [W32]: Fix compilation error.
23887         (nap): Don't call usleep with too large an argument.  Use
23888         force_unlink.
23889         * doc/pastposix-functions/usleep.texi (usleep): Document the
23890         portability issue.
23891
23892 2009-10-13  Jim Meyering  <meyering@redhat.com>
23893
23894         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23895         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23896         * modules/pipe-filter-ii: Likewise.
23897         * modules/sys_socket-tests: Likewise.
23898         * modules/tsearch-tests: Likewise.
23899         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23900         (check): Depend on it.
23901
23902 2009-10-12  Eric Blake  <ebb9@byu.net>
23903
23904         utimens-tests: port to NFS file systems
23905         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23906         comparisons to avoid spurious failures from timestamp drift
23907         between NFS machines.
23908
23909 2009-10-12  Eric Blake  <ebb9@byu.net>
23910
23911         stat-time-tests: minor cleanups
23912         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23913         * tests/test-stat-time.c (nap): Separate assignment from call.
23914         Suggested by Paolo Bonzini and Bruno Haible.
23915
23916         sys_stat: guarantee struct timespec
23917         * lib/sys_stat.in.h (includes): Always include <time.h>
23918         * modules/sys_stat (Depends-on): Add time.
23919         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23920         mode_t permission values.
23921         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23922         get at subsecond timestamps.
23923
23924 2009-10-10  Eric Blake  <ebb9@byu.net>
23925
23926         futimens: new module
23927         * modules/futimens: New file.
23928         * lib/futimens.c (futimens): Likewise.
23929         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23930         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23931         we can work around Linux bugs.
23932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23933         * modules/sys_stat (Makefile.am): Substitute them.
23934         * lib/sys_stat.in.h (futimens): Declare it.
23935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23936         * doc/posix-functions/futimens.texi (futimens): Likewise.
23937         * modules/futimens-tests: New test.
23938         * tests/test-futimens.c: Likewise.
23939
23940         utimens: introduce fdutimens
23941         * lib/utimens.h (fdutimens): New prototype.
23942         * lib/utimens.c (gl_futimens): Move guts...
23943         (fdutimens): ...to new interface.
23944         * tests/test-utimens.c (do_fdutimens): Use it.
23945
23946         utimens: add UTIME_NOW and UTIME_OMIT support
23947         * lib/utimens.c (validate_timespec, update_timespec): New helper
23948         functions.
23949         (gl_futimens, lutimens): Use them.
23950         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23951         stdbool, sys_stat.
23952         (Link): Mention resulting library dependency.
23953         * modules/utimecmp (Link): Likewise.
23954         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23955         (Makefile.am): Pick up library dependency.
23956         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23957         definition.
23958         * tests/test-sys_stat.c: Test the definitions.
23959         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23960         * NEWS: Document library dependency.
23961
23962         utimecmp: support symlink timestamps
23963         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23964         hashing when possible.  Use pathconf when available.
23965         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23966         * modules/utimecmp (Depends-on): Add lstat.
23967
23968         utimens: add lutimens interface
23969         * lib/utimens.c (lutimens): New function.
23970         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23971         * lib/utimens.h (lutimens): Declare new interface.
23972         * tests/test-utimens.c (main): Enhance test.
23973         * tests/test-lutimens.h (test_lutimens): New file.
23974         * modules/utimens-tests (Files): Distribute it.
23975         (Depends-on): Add symlink.
23976         (configure.ac): Check for usleep.
23977
23978         utimens: validate futimens usage
23979         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23980         fewer syscalls on failure later on.  Avoid compiler warning on
23981         mingw.
23982         * modules/utimens (Depends-on): Add dup2.
23983
23984         utimens: add test
23985         * modules/utimens-tests: New test.
23986         * tests/test-utimens.h: New file.
23987         * tests/test-futimens.h: Likewise.
23988         * tests/test-utimens.c: Likewise.
23989
23990         doc: mention timestamp portability issues
23991         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23992         instead.
23993         * doc/posix-functions/utime.texi (utime): Likewise.
23994         * doc/posix-functions/utimes.texi (utimes): Likewise.
23995         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23996         instead.
23997         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23998         module.
23999         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24000         Mention weakness with symlink timestamps.
24001         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24002         to utimensat/futimens instead.
24003         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24004
24005         test-dup2: enhance test
24006         * tests/test-dup2.c (main): Also check AT_FDCWD.
24007
24008         test-stat-time: avoid more spurious failures
24009         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24010         xfs; and avoid race if the two timestamps cross quantization edge.
24011
24012         relocatable: prefer 'file system' over 'filesystem'
24013         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24014         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24015         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24016         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24017         * lib/relocatable.c (compute_curr_prefix): Likewise.
24018
24019 2009-10-10  Jim Meyering  <meyering@redhat.com>
24020
24021         stat-time-tests: check for the usleep function
24022         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24023
24024 2009-10-10  Bruno Haible  <bruno@clisp.org>
24025
24026         * modules/xnanosleep: Put the Link section after the Include section.
24027
24028 2009-10-09  Eric Blake  <ebb9@byu.net>
24029
24030         dup2: work around FreeBSD 6.1 bug
24031         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24032         * doc/posix-functions/dup2.texi (dup2): Document it.
24033         Reported by Nelson H. F. Beebe and Jim Meyering.
24034
24035         test-stat-time: port to buggy NFS clients
24036         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24037         (test_ctime): Also skip test if mtime and ctime are skewed.
24038
24039         maint: prefer 'file system' over 'filesystem'
24040         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24041         * doc/posix-functions/lstat.texi (lstat): Likewise.
24042         * lib/file-has-acl.c (file_has_acl): Likewise.
24043         * lib/fwriteerror.c [TEST]: Likewise.
24044         * tests/test-areadlink.h (test_areadlink): Likewise.
24045         * tests/test-areadlinkat-with-size.c (main): Likewise.
24046         * tests/test-areadlinkat.c (main): Likewise.
24047         * tests/test-canonicalize-lgpl.c (main): Likewise.
24048         * tests/test-canonicalize.c (main): Likewise.
24049         * tests/test-fstatat.c (main): Likewise.
24050         * tests/test-linkat.c (main): Likewise.
24051         * tests/test-lstat.h (test_lstat_func): Likewise.
24052         * tests/test-mkdir.h (test_mkdir): Likewise.
24053         * tests/test-readlink.h (test_readlink): Likewise.
24054         * tests/test-remove.c (main): Likewise.
24055         * tests/test-rename.h (test_rename): Likewise.
24056         * tests/test-renameat.c (main): Likewise.
24057         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24058         * tests/test-symlink.h (test_symlink): Likewise.
24059         * tests/test-symlinkat.c (main): Likewise.
24060         * tests/test-unlink.h (test_unlink_func): Likewise.
24061         * tests/test-unlinkat.c (main): Likewise.
24062
24063         maint: make realtime library usage explicit
24064         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24065         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24066         * modules/settime (Link): Likewise.
24067         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24068
24069         test-stat-time: speed up execution
24070         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24071         warning on mingw.
24072         (nap): New helper function.
24073         (prepare_test): Use it to reduce sleep time.
24074         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24075         execution.
24076         * modules/stat-time-tests (configure.ac): Check for usleep.
24077
24078 2009-10-09  Jim Meyering  <meyering@redhat.com>
24079
24080         selinux-h: always use getfilecon wrappers
24081         * lib/getfilecon.c: New file.
24082         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24083         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24084         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24085         (fgetfilecon): Provide a stub.
24086         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24087         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24088         file unconditionally.
24089         When <selinux/selinux.h> is found, arrange to use wrappers.
24090         * modules/selinux-h (Files): Add getfilecon.c.
24091         (Makefile.am): Substitute include-next-related bits
24092         into the now-always-generated selinux/selinux.h file.
24093         * doc/glibc-functions/lgetfilecon.texi: New file.
24094         * doc/glibc-functions/fgetfilecon.texi: New file.
24095         * doc/glibc-functions/getfilecon.texi: New file.
24096         * doc/glibc-functions/getfilecon-desc.texi: New file.
24097         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24098         which to pull in the new files.
24099         * MODULES.html.sh (Misc): Add selinux-h.
24100
24101 2009-10-08  Jim Meyering  <meyering@redhat.com>
24102
24103         unistd: fix comment typo
24104         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24105
24106 2009-10-08  Eric Blake  <ebb9@byu.net>
24107
24108         areadlink: use SIZE_MAX consistently
24109         * modules/areadlink (Depends-on): Add stdint.
24110         * modules/areadlink-with-size (Depends-on): Likewise.
24111         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24112         gives NULL; drop sys/types, since unistd gives size_t; and add
24113         stdint for SIZE_MAX.
24114         (SIZE_MAX): Rely on headers.
24115         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24116         and add stdint.
24117         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24118         (SIZE_MAX): Likewise.
24119         (INITIAL_BUF_SIZE): Turn into enum.
24120         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24121
24122 2009-10-08  Jim Meyering  <meyering@redhat.com>
24123
24124         areadlinkat: avoid compilation failure
24125         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24126         Fix typo in comment.
24127
24128 2009-10-07  Eric Blake  <ebb9@byu.net>
24129
24130         areadlinkat-with-size: new module
24131         * modules/areadlinkat-with-size: New module.
24132         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24133         * lib/areadlink.h (areadlinkat): Declare it.
24134         * MODULES.html.sh (File system functions): Mention it.
24135         * modules/areadlinkat-with-size-tests: New test.
24136         * tests/test-areadlinkat-with-size.c: New file.
24137
24138         xreadlinkat: new module
24139         * modules/xreadlinkat: New module.
24140         * lib/xreadlinkat.c (xreadlinkat): New file.
24141         * lib/xreadlink.h (xreadlinkat): Declare it.
24142         * MODULES.html.sh (File system functions): Mention it.
24143
24144         areadlinkat: new module
24145         * lib/at-func.c (FUNC_FAIL): New define.
24146         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24147         * modules/areadlinkat: New module.
24148         * lib/linkat.c (areadlinkat): Move...
24149         * lib/areadlinkat.c (areadlinkat): ...to new file.
24150         * lib/areadlink.h (areadlinkat): Declare it.
24151         * modules/linkat (Depends-on): Add areadlinkat.
24152         * MODULES.html.sh (File system functions): Mention it.
24153         * modules/areadlinkat-tests: New test.
24154         * tests/test-areadlinkat.c: New file.
24155
24156         areadlink, areadlink-with-size: add tests
24157         * modules/areadlink-tests: New test.
24158         * modules/areadlink-with-size-tests: Likewise.
24159         * tests/test-areadlink.h: New file.
24160         * tests/test-areadlink.c: Likewise.
24161         * tests/test-areadlink-with-size.c: Likewise.
24162
24163         maint: minor cleanups
24164         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24165         _UNUSED_PARAMETER_ instead.
24166         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24167         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24168         * modules/linkat-tests (Files): Distribute test-link.h.
24169
24170         openat, utimens: whitespace cleanup
24171         * lib/openat.c: Prefer space throughout, rather than mix of 8
24172         spaces vs. tabs.
24173         * lib/at-func.c: Likewise.
24174         * lib/utimens.c: Likewise.
24175
24176         openat: avoid using wrong fd
24177         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24178         working directory chooses same fd.
24179         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24180
24181         mkdir, mkdirat: fix cygwin 1.5.x bug
24182         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24183         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24184         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24185         bug.
24186         (gl_PREREQ_MKDIR): Delete unused macro.
24187         * modules/mkdir (Files): Track file rename.
24188         (configure.ac): Update macro name.
24189         * modules/openat (Depends-on): Add mkdir.
24190         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24191
24192         mkdir, mkdirat: add tests
24193         * modules/mkdir-tests: New test.
24194         * tests/test-mkdir.h: New file.
24195         * tests/test-mkdir.c: Likewise.
24196         * tests/test-mkdirat.c: Likewise.
24197         * modules/openat-tests (Files): Add new files.
24198         (Makefile.am): Run new test.
24199
24200 2009-10-06  Eric Blake  <ebb9@byu.net>
24201
24202         doc: tweak *at function documentation
24203         * doc/posix-functions/faccessat.texi (faccessat): Mention
24204         known issue with replacement.
24205         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24206         * doc/posix-functions/linkat.texi (linkat): Likewise.
24207         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24208         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24209         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24210         * doc/posix-functions/renameat.texi (renameat): Likewise.
24211         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24212
24213         openat: fix GNU/Hurd bug in unlinkat
24214         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24215         broken.
24216         * doc/posix-functions/unlink.texi (unlink): Document this.
24217         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24218
24219         fdopendir: fix GNU/Hurd bug
24220         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24221         allowing non-directory fds.
24222         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24224         * modules/dirent (Makefile.am): Substitute it.
24225         * lib/dirent.in.h (fdopendir): Declare replacement.
24226         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24227         * tests/test-fdopendir.c (main): Test something other than
24228         /dev/null, since on Hurd that behaves like a directory.
24229
24230         test-symlink: port to GNU/Hurd
24231         * tests/test-symlink.h (test_symlink): Relax expected errno.
24232
24233         doc: tweak more cygwin information
24234         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24235         now compatible with glibc.
24236         * doc/posix-functions/getopt.texi (getopt): Likewise.
24237
24238         getopt-gnu: add another test
24239         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24240         guarantee behavior relied on by m4.
24241         * tests/test-getopt.c (main): Use it.
24242         * modules/getopt-posix-tests (Depends-on): Add setenv.
24243         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24244
24245         getopt: fix compilation on darwin
24246         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24247         include.
24248         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24249         Reported by Ludovic Courtès.
24250
24251 2009-10-06  Bruno Haible  <bruno@clisp.org>
24252
24253         * modules/size_max (Description): Discourage its use.
24254         Reported by Simon Josefsson.
24255
24256 2009-10-06  Jim Meyering  <meyering@redhat.com>
24257
24258         linkat: avoid compilation failure
24259         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24260
24261 2009-10-05  Eric Blake  <ebb9@byu.net>
24262
24263         linkat: support Linux 2.6.17
24264         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24265         linkat on Linux, but allow cache variable override.
24266         * lib/linkat.c (rpl_linkat): Define override.
24267         * modules/linkat (Depends-on): Add symlinkat.
24268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24269         * modules/unistd (Makefile.am): Substitute it.
24270         * lib/unistd.in.h (linkat): Declare replacement.
24271         Reported by Pádraig Brady.
24272
24273         quotearg: port test to systems with C.UTF-8 locale
24274         * tests/test-quotearg.c (struct result_strings): Add another
24275         member, differentiating between C.ASCII and C.UTF-8 handling.
24276         (compare_strings): Add parameter.
24277         (main): Adjust all callers.
24278
24279         getopt: avoid clash with FreeBSD _getopt_internal
24280         * lib/getopt.in.h (_getopt_internal): Override the name.
24281         * lib/getopt_int.h (includes): Pick up any overrides.
24282         Reported by Reuben Thomas.
24283
24284         hash: allow C89 compilation
24285         * lib/hash.c (check_tuning): Move declaration before statement.
24286         Reported by Reuben Thomas.
24287
24288 2009-10-05  Karl Berry  <karl@gnu.org>
24289
24290         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24291
24292 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24293             Bruno Haible  <bruno@clisp.org>
24294
24295         * lib/uname.c (uname): Use a table-driven algorithm to compute
24296         Windows NT versions.
24297
24298 2009-10-04  Bruno Haible  <bruno@clisp.org>
24299
24300         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24301         program_invocation_short_name.
24302         * modules/progname (configure.ac): Test for presence of
24303         program_invocation_short_name.
24304         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24305
24306 2009-10-04  Bruno Haible  <bruno@clisp.org>
24307
24308         * lib/progname.c (set_program_name): Fix comment.
24309         Reported by Jim Meyering.
24310
24311 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24312             Bruno Haible  <bruno@clisp.org>
24313
24314         * lib/uname.c: Include <string.h>.
24315         (uname): Do only one call to GetVersionEx in the common case.
24316
24317 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24318             Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24321         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24322         (uname): Add support for Windows CE and various non-x86 CPU types.
24323
24324 2009-10-03  Bruno Haible  <bruno@clisp.org>
24325
24326         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24327         invocation to tests/configure.ac.
24328         Reported by Ian Beckwith <ianb@erislabs.net>.
24329
24330 2009-10-02  Eric Blake  <ebb9@byu.net>
24331
24332         fchdir: avoid compiler warning
24333         * lib/fchdir.c (canonicalize_file_name)
24334         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24335
24336         test-open: support mingw errno values
24337         * tests/test-open.h (test_open): Relax test.
24338         * tests/test-fopen.h (test_fopen): Likewise.
24339         * tests/test-openat-safer.c (main): Likewise.
24340
24341         open: fix opening directory on mingw
24342         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24343
24344         test-open: on GNU/Hurd, /dev/null is a directory
24345         * tests/test-fopen.h (main): Rename...
24346         (test_fopen): ...to this.  Use a guaranteed non-directory when
24347         confirming open behavior on trailing slash.
24348         * tests/test-openat-safer.c (main): Likewise.
24349         * tests/test-open.h (main): Likewise....
24350         (test_open): ...to this.
24351         * tests/test-fopen.c (main): Adjust caller.
24352         * tests/test-fopen-safer.c (main): Likewise.
24353         * tests/test-open.c (main): Likewise.
24354         * tests/test-fcntl-safer.c (main): Likewise.
24355         Reported by Samuel Thibault.
24356
24357         rename, fchdir: don't ignore chdir failure
24358         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24359         * lib/rename.c (rpl_rename) [W32]: Likewise.
24360         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24361         an empty destination directory if source cannot be renamed,
24362         although there is still possibility for failure.
24363         * doc/posix-functions/rename.texi (rename): Document the race.
24364         Reported by Jim Meyering.
24365
24366         maint: cleanup whitespace in recent commits
24367         * lib/rename.c (rpl_rename): Remove tabs.
24368         * tests/test-link.h (test_link): Likewise.
24369         * lib/fchdir.c (get_name): Likewise.
24370         Reported by Jim Meyering.
24371
24372 2009-10-02  Ben Pfaff  <blp@gnu.org>
24373
24374         relocatable-prog-wrapper: Add missing dependency on
24375         double-slash-root.
24376         * modules/relocatable-prog-wrapper: Add dependency.
24377         Reported by Ian Beckwith <ianb@erislabs.net>.
24378
24379 2009-10-02  Eric Blake  <ebb9@byu.net>
24380
24381         renameat: fix Solaris bugs
24382         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24383         needed fixing.
24384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24385         * modules/stdio (Makefile.am): Substitute it.
24386         * lib/stdio.in.h (renameat): Declare replacement.
24387         * lib/renameat.c (rpl_renameat): Implement fix.
24388
24389         renameat: new module
24390         * modules/renameat: New file.
24391         * lib/renameat.c (renameat): Likewise.
24392         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24394         * modules/stdio (Makefile.am): Substitute them.
24395         * lib/stdio.in.h (renameat): Declare it.
24396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24397         * doc/posix-functions/renameat.texi (renameat): Likewise.
24398         * modules/renameat-tests: New test.
24399         * tests/test-renameat.c: Likewise.
24400
24401         rename: fix mingw bugs
24402         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24403         directory overwrite bugs.
24404
24405         rename: fix another cygwin 1.5 bug
24406         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24407         checks.
24408         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24409         unnecessary cygwin workarounds.  Also work around bug with moving
24410         full directory onto an empty one.
24411         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24412
24413         rename-dest-slash: merge into rename module
24414         * modules/rename-dest-slash (Status): Mark obsolete.
24415         (Depends-on): Add rename.
24416         (Files): Let rename do it all.
24417         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24418         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24419         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24420         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24421         * lib/rename.c (rpl_rename): Update comments.
24422
24423         rename: fix cygwin 1.5.x bugs
24424         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24425         * lib/rename.c (rpl_rename): Work around them.
24426         * modules/rename (Depends-on): Add same-inode.
24427
24428         rename: fix Solaris 10 bug
24429         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24430         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24431         was the only bug.
24432
24433         rename: fix Solaris 9 bug
24434         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24435         on non-directory.  Avoid calling exit.
24436         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24437         strdup.
24438         * modules/rename-tests (Depends-on): Drop lstat.
24439         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24440         (gl_PREREQ_RENAME): Delete unused macro.
24441
24442         rename-dest-slash: fix NetBSD bug
24443         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24444         links.
24445         * modules/rename-dest-slash (Depends-on): Add same-inode.
24446
24447         rename-tests: new test, exposes several platform bugs
24448         * modules/rename-tests: New file.
24449         * tests/test-rename.h: Likewise.
24450         * tests/test-rename.c: Likewise.
24451         * doc/posix-functions/rename.texi (rename): Improve documentation,
24452         including bugs that will eventually be fixed in gnulib.
24453
24454 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24455
24456         * lib/uname.c: Include <stdlib.h>
24457         (uname): Assume version info is available.
24458
24459 2009-10-02  Jim Meyering  <meyering@redhat.com>
24460
24461         gnu-web-doc-update: correct --help output
24462         * build-aux/gnu-web-doc-update: Make --help output relevant.
24463
24464         gnu-web-doc-update: add standard options
24465         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24466
24467         gnu-web-doc-update: New module.
24468         Use this script to automatically update the on-line web documentation
24469         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24470         * modules/gnu-web-doc-update: New file, from coreutils.
24471         * build-aux/gnu-web-doc-update: New script.
24472
24473 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24474
24475         link: LoadLibrary is not needed.
24476         * lib/link.c: Use GetModuleHandle.
24477
24478 2009-10-01  Eric Blake  <ebb9@byu.net>
24479
24480         getopt: bump serial number
24481         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24482         change.
24483
24484         tests: tighten link, rmdir, and remove tests
24485         * tests/test-link.h (includes): No need to use <config.h> here.
24486         Clean up if directory hard link was created, otherwise test for
24487         trailing '.'.
24488         * tests/test-linkat.c (main): Simplify.
24489         * tests/test-remove.c (main): Enhance test for trailing '.'.
24490         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24491
24492 2009-10-01  Jim Meyering  <meyering@redhat.com>
24493
24494         maint.mk: requiring "make major" was annoying, for a "minor" release.
24495         What is intended is "stable", to contrast with alpha and beta,
24496         so require "make stable", not "make major".
24497         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24498         (get_tool_versions): Likewise.
24499         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24500
24501 2009-09-30  Ben Pfaff  <blp@gnu.org>
24502
24503         Fix broken build of replacement for Windows tmpfile().
24504         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24505         flags argument added along with the 'mkostemp' module.
24506
24507 2009-09-28  Bruno Haible  <bruno@clisp.org>
24508
24509         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24510         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24511         to 'remove_elt'.
24512         (gl_list_remove): Update.
24513         * lib/gl_list.c (gl_list_remove): Update.
24514         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24515         to 'remove_elt'.
24516         (gl_oset_remove): Update.
24517         * lib/gl_list.c (gl_oset_remove): Update.
24518         Reported by Eric Blake.
24519
24520 2009-09-28  Eric Blake  <ebb9@byu.net>
24521
24522         doc: mention yet more cygwin 1.7 status
24523         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24524         cygwin.
24525         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24526         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24527
24528         argp: fix test failure
24529         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24530         that are not upper-case.  Pass correct range to tolower.
24531
24532 2009-09-27  Jim Meyering  <meyering@redhat.com>
24533
24534         test-yesno: work around sparc-dash here-document infelicity
24535         Without this change, the literal \177 byte in a here document
24536         would make dash 0.5.5.1-3 access uninitialized memory.
24537         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24538         Instead, use a marker, "@", and filter through tr to create the desired
24539         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24540
24541 2009-09-27  Bruno Haible  <bruno@clisp.org>
24542
24543         Disable untested support for new flavours of ACLs on AIX.
24544         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24545         progress.
24546         * lib/set-mode-acl.c (qset_acl): Likewise.
24547
24548 2008-12-07  Bruno Haible  <bruno@clisp.org>
24549
24550         Add support for new flavours of ACLs on AIX. (Untested.)
24551         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24552         (file_has_acl): Add support for newer AIX.
24553         * lib/set-mode-acl.c (qset_acl): Likewise.
24554         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24555         Rainer Tammer <tammer@tammer.net>.
24556
24557 2009-09-26  Eric Blake  <ebb9@byu.net>
24558
24559         argp: fix compilation of getopt
24560         * lib/getopt.in.h (includes): Use different guard than glibc.
24561         Reported by Sergey Poznyakoff.
24562
24563         doc: mention more cygwin 1.7 status
24564         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24565         bug.
24566         * doc/posix-functions/execl.texi (execl): Likewise.
24567         * doc/posix-functions/execle.texi (execle): Likewise.
24568         * doc/posix-functions/execlp.texi (execlp): Likewise.
24569         * doc/posix-functions/execv.texi (execv): Likewise.
24570         * doc/posix-functions/execve.texi (execve): Likewise.
24571         * doc/posix-functions/execvp.texi (execvp): Likewise.
24572         * doc/glibc-functions/canonicalize_file_name.texi
24573         (canonicalize_file_name): Cygwin 1.7 now provides this.
24574         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24575         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24576         on AT_SYMLINK_NOFOLLOW.
24577
24578 2009-09-24  Eric Blake  <ebb9@byu.net>
24579
24580         test-linkat: make test more robust
24581         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24582
24583         getopt: fix inclusion guards for cygwin
24584         * modules/getopt-posix (Depends-on): Add include-next.
24585         (Makefile.am): Substitute more items in replacement header.
24586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24587         <getopt.h>.
24588         * lib/getopt.in.h (includes): Use split inclusion guard, and
24589         prefer <getopt.h> over include <unistd.h> when one is present.
24590         (option): Also override name of 'struct option'.
24591
24592         same-inode: revert prior change; it is not yet ready
24593         * NEWS: Undo mention of this change.
24594         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24595         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24596         * lib/cycle-check.c (cycle_check): Likewise.
24597         * lib/same.c (same_name): Likewise.
24598         * lib/at-func2.c (at_func2): Likewise.
24599
24600 2009-09-23  Eric Blake  <ebb9@byu.net>
24601
24602         linkat: new module
24603         * modules/linkat: New file.
24604         * lib/at-func2.c (at_func2): Likewise.
24605         * lib/linkat.c (linkat): Likewise.
24606         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24607         * lib/openat-priv.h (at_func2): Add declaration.
24608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24609         * modules/unistd (Makefile.am): Substitute them.
24610         * lib/unistd.in.h (linkat): Declare it.
24611         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24612         * doc/posix-functions/linkat.texi (linkat): Likewise.
24613         * doc/posix-functions/link.texi (link): Tweak wording.
24614         * tests/test-link.c (main): Move guts...
24615         * tests/test-link.h (test_link): ...into new file.
24616         * modules/linkat-tests: New test.
24617         * tests/test-linkat.c: Likewise.
24618         * modules/link-tests (Files): Ship new file.
24619         (Depends-on): Add stdbool.
24620
24621         dirname: add library-safe mdir_name
24622         * lib/dirname.h (mdir_name): New prototype.
24623         * lib/dirname.c (dir_name): Move guts...
24624         (mdir_name): ...to new function that avoids xalloc_die.
24625
24626         fchdir: another mingw fix
24627         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24628         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24629         on mingw (where it has not yet been ported), and make it optional
24630         elsewhere.
24631         (_gl_register_fd): Use it.
24632
24633         same-inode: make SAME_INODE tri-state, to port to mingw
24634         * NEWS: Mention this change.
24635         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24636         st_ino always being 0.
24637         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24638         * lib/cycle-check.c (cycle_check): Likewise.
24639         * lib/same.c (same_name): Likewise.
24640
24641         lstat: avoid mingw compilation error
24642         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24643         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24644         lstat ourselves.
24645         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24646         was adequate.
24647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24648         the checks for lstat.
24649         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24650
24651         link: fix test failure on Solaris 9
24652         * lib/link.c (rpl_link): Don't assume link will catch bogus
24653         trailing slash on source.
24654
24655         test-symlinkat: enhance test
24656         * tests/test-readlink.c (main): Move guts...
24657         * tests/test-readlink.h (test_readlink): ...into new file.
24658         * tests/test-symlink.c (main): Move guts...
24659         * tests/test-symlink.h (test_symlink): ...into new file.
24660         * tests/test-symlinkat.c (main): Use new files for further
24661         coverage.
24662         (do_symlink, do_readlink): New helper functions.
24663         * modules/symlink-tests (Files): Ship new file.
24664         (Depends-on): Add stdbool.
24665         * modules/readlink-tests (Files): Ship new file.
24666         (Depends-on): Add stdbool.
24667         * modules/symlinkat-tests (Files): Use new files.
24668
24669 2009-09-23  Eric Blake  <ebb9@byu.net>
24670
24671         readlink: document portability issue with symlink length
24672         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24673         systems have bogus st_size on symlinks, and mention the
24674         areadlink-with-size module.
24675         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24676         * doc/posix-functions/readlink.texi (readlink): Mention the
24677         areadlink module, and ERANGE failure.
24678         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24679         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24680
24681         readlink: fix Solaris 9 bug with trailing slash
24682         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24683         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24684         * doc/posix-functions/readlink.texi (readlink): Document this.
24685         * modules/readlink-tests: New test.
24686         * tests/test-readlink.c: Likewise.
24687
24688         readlink: fix cygwin 1.5.x bug with return type
24689         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24690         * lib/unistd.in.h (readlink): Use ssize_t.
24691         * lib/readlink.c (readlink): Likewise.
24692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24693         * modules/unistd (Makefile.am): Substitute it.
24694         * lib/unistd.in.h (readlink): Declare replacement.
24695         * doc/posix-functions/readlink.texi (readlink): Document this.
24696
24697         symlink: use throughout gnulib
24698         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24699         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24700         symlink is not used.
24701         * modules/symlinkat (Depends-on): Add symlink.
24702         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24703         * modules/canonicalize-tests (Depends-on): Likewise.
24704         * modules/lstat-tests (Depends-on): Likewise.
24705         * modules/openat-tests (Depends-on): Likewise.
24706         * modules/remove-tests (Depends-on): Likewise.
24707         * modules/rmdir-tests (Depends-on): Likewise.
24708         * modules/unlink-tests (Depends-on): Likewise.
24709         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24710         * tests/test-canonicalize.c (symlink): Likewise.
24711         * tests/test-fstatat.c (symlink): Likewise.
24712         * tests/test-lstat.c (symlink): Likewise.
24713         * tests/test-remove.c (symlink): Likewise.
24714         * tests/test-rmdir.c (symlink): Likewise.
24715         * tests/test-unlink.c (symlink): Likewise.
24716         * tests/test-unlinkat.c (symlink): Likewise.
24717
24718         symlink: new module, for Solaris 9 bug
24719         * modules/symlink: New file.
24720         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24721         * lib/symlink.c: Likewise.
24722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24723         * modules/unistd (Makefile.am): Substitute them.
24724         * lib/unistd.in.h (symlink): Declare replacement.
24725         * MODULES.html.sh (File system functions): Mention it.
24726         * doc/posix-functions/symlink.texi (symlink): Likewise.
24727         * modules/symlink-tests: New test.
24728         * tests/test-symlink.c: Likewise.
24729
24730 2009-09-23  Bruno Haible  <bruno@clisp.org>
24731
24732         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24733         when needed.
24734         Test case: gnulib-tool --import --with-tests atexit inttypes.
24735         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24736
24737 2009-09-23  Bruno Haible  <bruno@clisp.org>
24738
24739         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24740         subcommand, not in a subshell.
24741
24742 2009-09-22  Eric Blake  <ebb9@byu.net>
24743
24744         unistd: sort replacement declarations
24745         * lib/unistd.in.h: Sort declarations.
24746
24747         open, openat: minor optimization
24748         * lib/open.c (open): If open succeeded, len is non-zero.
24749         * lib/openat.c (rpl_openat): Likewise.
24750
24751         link-follow: ensure correct result
24752         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24753         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24754         distinguish between possible failures.
24755
24756 2009-09-21  Eric Blake  <ebb9@byu.net>
24757
24758         fts: avoid compiler warning
24759         * lib/fts.c (dirent_inode_sort_may_be_useful)
24760         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24761
24762 2009-09-19  Bruno Haible  <bruno@clisp.org>
24763
24764         * lib/progreloc.c (canonicalize_file_name): New declaration.
24765
24766 2009-09-19  Eric Blake  <ebb9@byu.net>
24767
24768         link: fix quoting
24769         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24770
24771         openat: fix openat bugs on Solaris 9
24772         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24773         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24774         * modules/openat (Depends-on): Add open.
24775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24776         * modules/fcntl-h (Makefile.am): Substitute it.
24777         * lib/fcntl.in.h (openat): Declare replacement.
24778         * doc/posix-functions/openat.texi (openat): Document this.
24779
24780         openat: move fstatat and unlinkat into correct files
24781         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24782         compiled.
24783         * lib/openat.c (fstatat, unlinkat): Move...
24784         * lib/fstatat.c (fstatat): ...into correct files.
24785         * lib/unlinkat.c (unlinkat): Likewise.
24786
24787         openat: fix unlinkat bugs on Solaris 9
24788         * lib/unlinkat.c (unlinkat): New file.
24789         * modules/openat (Depends-on): Add unlink.
24790         (Files): Distribute it.
24791         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24792         trailing slash behavior is broken.
24793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24794         * modules/unistd (Makefile.am): Substitute it.
24795         * lib/unistd.in.h (unlinkat): Declare replacement.
24796         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24797
24798         openat: fix fstatat bugs on Solaris 9
24799         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24800         stat.
24801         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24802
24803         test-unlinkat: enhance test, to expose Solaris 9 bug
24804         * tests/test-unlink.c (main): Factor guts...
24805         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24806         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24807         * tests/test-rmdir.c (main): Adjust caller.
24808         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24809         (unlinker): New helper function.
24810         (rmdirat): Enhance check.
24811         * modules/rmdir-tests (Depends-on): Add stdbool.
24812         * modules/unlink-tests (Depends-on): Likewise.
24813         (Files): Add test-unlink.h.
24814         * modules/openat-tests (Files): Likewise.
24815         (Depends-on): Add unlinkdir.
24816
24817         test-fstatat: new test, to expose Solaris 9 bugs
24818         * tests/test-stat.c (main): Factor guts...
24819         * tests/test-stat.h (test_stat_func): ...into new file.
24820         * tests/test-lstat.c (main): Factor guts...
24821         * tests/test-lstat.h (test_lstat_func): ...into new file.
24822         * tests/test-fstatat.c: New file.
24823         * modules/stat-tests (Files): Add test-stat.h.
24824         * modules/lstat-tests (Files): Add test-lstat.h.
24825         (Depends-on): Add stdbool.
24826         * modules/openat-tests (Depends-on): Add pathmax.
24827         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24828         (Makefile.am): Run new test.
24829
24830         remove: new module, for mingw and Solaris 9 bugs
24831         * modules/remove: New file.
24832         * lib/remove.c: Likewise.
24833         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24835         * modules/stdio (Makefile.am): Use them.
24836         * lib/stdio.in.h (remove): Declare replacement.
24837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24838         * doc/posix-functions/remove.texi (remove): Likewise.
24839         * modules/remove-tests: New test.
24840         * tests/test-remove.c: Likewise.
24841
24842         unlink: new module, for Solaris 9 bug
24843         * modules/unlink: New file.
24844         * lib/unlink.c: Likewise.
24845         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24847         * modules/unistd (Makefile.am): Use them.
24848         * lib/unistd.in.h (stat): Declare replacement.
24849         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24850         * doc/posix-functions/unlink.texi (unlink): Likewise.
24851         * modules/unlink-tests: New test.
24852         * tests/test-unlink.c: Likewise.
24853
24854         lstat: fix Solaris 9 bug
24855         * lib/lstat.c (lstat): Also check for trailing slash on
24856         non-symlink, non-directories.  Use stat module to simplify logic.
24857         * doc/posix-functions/lstat.texi (lstat): Document it.
24858         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24859         (configure.ac): Check for symlink.
24860         * tests/test-lstat.c (main): Add more tests.
24861
24862         stat: add as dependency to other modules
24863         * modules/chown (Depends-on): Add stat.
24864         * modules/euidaccess (Depends-on): Likewise.
24865         * modules/fchdir (Depends-on): Likewise.
24866         * modules/isdir (Depends-on): Likewise.
24867         * modules/link (Depends-on): Likewise.
24868         * modules/lstat (Depends-on): Likewise.
24869         * modules/mkdir-p (Depends-on): Likewise.
24870         * modules/modechange (Depends-on): Likewise.
24871         * modules/open (Depends-on): Likewise.
24872         * modules/readlink (Depends-on): Likewise.
24873         * modules/same (Depends-on): Likewise.
24874
24875         stat: fix Solaris 9 bug
24876         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24877         slash.
24878         * lib/stat.c (rpl_stat): Work around it.
24879         * doc/posix-functions/stat.texi (stat): Update documentation.
24880
24881         stat: new module, for mingw bug
24882         * modules/stat: New file.
24883         * lib/stat.c: Likewise.
24884         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24886         * modules/sys_stat (Makefile.am): Use them.
24887         * lib/sys_stat.in.h (stat): Declare replacement.
24888         * lib/openat.c (fstatat): Deal with lstat and stat being function
24889         macros.
24890         * modules/openat (Depends-on): Add inline.
24891         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24892         * doc/posix-functions/stat.texi (stat): Likewise.
24893         * modules/stat-tests: New test.
24894         * tests/test-stat.c: Likewise.
24895
24896 2009-09-19  Jim Meyering  <meyering@redhat.com>
24897
24898         syntax-check: detect unnecessary inclusion of canonicalize.h
24899         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24900
24901 2009-09-19  Eric Blake  <ebb9@byu.net>
24902
24903         canonicalize-lgpl: adjust clients to use correct header
24904         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24905         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24906         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24907         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24908         * lib/progreloc.c (includes): Likewise.
24909
24910 2009-09-19  Jim Meyering  <meyering@redhat.com>
24911
24912         test-posixtm.c: correct a comment
24913         * tests/test-posixtm.c: Correct first-line comment.
24914         Spotted by Eric Blake.
24915
24916 2009-09-16  Jim Meyering  <meyering@redhat.com>
24917
24918         posixtm-tests: make T const-correct; add a test case
24919         * tests/test-posixtm.c (T): Declare const.
24920         Add a test for -(2^31+1).
24921         Remove useless can-succeed-only-in-2002 test.
24922
24923         posixtm-tests: adjust the sole failing test
24924         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24925         expected output matches what mktime now produces.  Cross-checked via
24926         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24927
24928         posixtm: move #ifdef'd tests into a new module
24929         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24930         * tests/test-posixtm.c: ... this new file.
24931         * modules/posixtm-tests: New module.
24932
24933 2009-09-19  Eric Blake  <ebb9@byu.net>
24934
24935         openat: simplify use of at-func.c
24936         * lib/at-func.c (includes): Include prerequisites here, to
24937         simplify requirements on client files.
24938         * lib/openat-priv.h: Add double-inclusion guard.
24939         * lib/faccessat.c (includes): Simplify.
24940         * lib/fchmodat.c (includes): Likewise.
24941         * lib/fchownat.c (includes): Likewise.
24942         * lib/mkdirat.c (includes): Likewise.
24943         * lib/mkfifoat.c (includes): Likewise.
24944         * lib/symlinkat.c (includes): Likewise.
24945
24946         openat: allow return of fd 0
24947         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24948         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24949         unistd-safer.
24950         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24951         <fcntl.h>; this module does not leak fds.
24952         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24953         must be allowed to return 0, leaving openat_safer to add the
24954         safety.
24955         (openat_permissive): Avoid writing to just-opened fd 2 if
24956         restoring the current directory fails.
24957         * lib/openat-die.c (openat_restore_fail): Add comment.
24958         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24959         (save_cwd): Guarantee safe fd, but without use of open_safer.
24960         * tests/test-openat.c: New test.
24961         * modules/openat-tests (Files, Makefile.am): Distribute and build
24962         new file.
24963
24964         relocatable-prog-wrapper: fix build
24965         * modules/relocatable-prog-wrapper (Files): Update name of
24966         canonicalize m4 file, broken on 2009-09-17.
24967         Reported by emad hajjar <aleppos@hotmail.com>.
24968
24969 2009-09-19  Bruno Haible  <bruno@clisp.org>
24970
24971         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24972         * lib/safe-alloc.c: Likewise.
24973         Reported by Ian Beckwith <ianb@erislabs.net>.
24974
24975 2009-09-18  Bruno Haible  <bruno@clisp.org>
24976
24977         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24978         Reported by <erobles@sensacd.com.mx>.
24979
24980 2009-09-17  Eric Blake  <ebb9@byu.net>
24981
24982         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24983         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24984         slashes when checking if last component is missing.
24985         * tests/test-canonicalize.c (main): Test this.
24986
24987         canonicalize, canonicalize-lgpl: honor // if distinct from /
24988         * modules/canonicalize (Files): Add double-slash-root.m4.
24989         * modules/canonicalize-lgpl (Files): Likewise.
24990         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24991         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24992         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24993         fallback definition.
24994         (canonicalize_filename_mode): Use it to protect //.
24995         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24996         (__realpath): Likewise.
24997         * tests/test-canonicalize.c (main): Test this.
24998         * tests/test-canonicalize-lgpl.c (main): Likewise.
24999         * modules/canonicalize-tests (Depends-on): Add same-inode.
25000         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25001
25002         canonicalize-lgpl: fix glibc bug with trailing slash
25003         * m4/canonicalize-lgpl.m4: Move contents...
25004         * m4/canonicalize.m4: ...here.
25005         (gl_CANONICALIZE_LGPL): Factor realpath check...
25006         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25007         glibc 2.3.5 bug, fixed 2005-04-27.
25008         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25009         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25010         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25011         * modules/canonicalize-lgpl (Files): Manage file rename.
25012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25013         * modules/stdlib (Makefile.am): Substitute witness.
25014         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25015         is needed.
25016         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25017         replacement is required.
25018         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25019         * doc/glibc-functions/canonicalize_file_name.texi
25020         (canonicalize_file_name): Document this.
25021         * doc/posix-functions/realpath.texi (realpath): Likewise.
25022
25023         canonicalize-lgpl: reject non-directory with trailing slash
25024         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25025         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25026         catches failures in glibc 2.3.5.
25027         * tests/test-canonicalize.c (main): Likewise.
25028
25029         canonicalize-lgpl: use native realpath if it works
25030         * lib/canonicalize-lgpl.c (realpath): Guard with
25031         FUNC_REALPATH_WORKS.
25032         * lib/stdlib.in.h (realpath): Make declaration optional based on
25033         HAVE_REALPATH.
25034         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25035         native realpath works.
25036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25037         * modules/stdlib (Makefile.am): Substitute witness.
25038
25039         canonicalize, canonicalize-lgpl: use <stdlib.h>
25040         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25041         (Include): Mention <stdlib.h>.
25042         (configure.ac): Mention functions we provide.
25043         * modules/canonicalize (configure.ac): Likewise.
25044         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25045         realpath if canonicalize_file_name is missing.
25046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25047         * modules/stdlib (Makefile.am): Substitute witnesses.
25048         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25049         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25050         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25051         * NEWS: Document this.
25052         * doc/glibc-functions/canonicalize_file_name.texi
25053         (canonicalize_file_name): Likewise.
25054         * doc/posix-functions/realpath.texi (realpath): Likewise.
25055         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25056
25057         test-canonicalize: consolidate into single C program
25058         * tests/test-canonicalize.sh: Delete; move setup into...
25059         * tests/test-canonicalize.c (main): ...the program, making it
25060         easier to run in debugger.  Add some tests.
25061         * modules/canonicalize-tests (Files): Remove unused file.
25062         (Depends-on): Add progname.
25063         (configure.ac, Makefile.am): Simplify.
25064
25065         test-canonicalize-lgpl: consolidate into single C program
25066         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25067         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25068         easier to run in debugger.  Add some tests.
25069         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25070         (configure.ac, Makefile.am): Simplify.
25071
25072         canonicalize: avoid resolvepath
25073         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25074         unnecessary checks.
25075         * lib/canonicalize.c (includes): Simplify.
25076         (canonicalize_file_name): Drop resolvepath implementation.
25077         * modules/canonicalize (Depends-on): Drop filenamecat.
25078
25079         canonicalize: don't lose errno
25080         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25081         over calls to free.
25082
25083         canonicalize: simplify errno handling
25084         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25085         assignment.
25086
25087         canonicalize, canonicalize-lgpl: update module dependencies
25088         * modules/canonicalize (Depends-on): Add extensions, lstat,
25089         pathmax, stdlib.
25090         (Files): Drop pathmax.h.
25091         (configure.ac): Adjust macro name.
25092         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25093         lstat, stdlib, sys_stat.
25094         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25095         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25096         extensions.
25097         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25098         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25099         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25100         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25101         declaration, if available.
25102         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25103         we can rely on the readlink module.
25104         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25105         (includes): Use <unistd.h> unconditionally.
25106
25107 2009-09-17  Eric Blake  <ebb9@byu.net>
25108
25109         maint: make Include sections of modules consistent
25110         * modules/alloca: Use only header name; no need to list #include.
25111         * modules/alloca-opt: Likewise.
25112         * modules/arpa_inet: Likewise.
25113         * modules/canon-host: Likewise.
25114         * modules/configmake: Likewise.
25115         * modules/dirent: Likewise.
25116         * modules/eealloc: Likewise.
25117         * modules/environ: Likewise.
25118         * modules/fchdir: Likewise.
25119         * modules/fcntl: Likewise.
25120         * modules/fcntl-h: Likewise.
25121         * modules/gethrxtime: Likewise.
25122         * modules/gettime: Likewise.
25123         * modules/ignore-value: Likewise.
25124         * modules/inet_ntop: Likewise.
25125         * modules/inet_pton: Likewise.
25126         * modules/inttypes: Likewise.
25127         * modules/isnand-nolibm: Likewise.
25128         * modules/isnanf-nolibm: Likewise.
25129         * modules/mbchar: Likewise.
25130         * modules/mbfile: Likewise.
25131         * modules/mbiter: Likewise.
25132         * modules/mbuiter: Likewise.
25133         * modules/netdb: Likewise.
25134         * modules/netinet_in: Likewise.
25135         * modules/nproc: Likewise.
25136         * modules/pagealign_alloc: Likewise.
25137         * modules/poll: Likewise.
25138         * modules/printf-frexp: Likewise.
25139         * modules/pthread: Likewise.
25140         * modules/putenv: Likewise.
25141         * modules/random_r: Likewise.
25142         * modules/relocatable-prog: Likewise.
25143         * modules/search: Likewise.
25144         * modules/select: Likewise.
25145         * modules/selinux-h: Likewise.
25146         * modules/settime: Likewise.
25147         * modules/signal: Likewise.
25148         * modules/size_max: Likewise.
25149         * modules/socklen: Likewise.
25150         * modules/ssize_t: Likewise.
25151         * modules/stdarg: Likewise.
25152         * modules/stdbool: Likewise.
25153         * modules/stddef: Likewise.
25154         * modules/stdint: Likewise.
25155         * modules/stdio: Likewise.
25156         * modules/stdlib: Likewise.
25157         * modules/string: Likewise.
25158         * modules/strings: Likewise.
25159         * modules/sys_file: Likewise.
25160         * modules/sys_ioctl: Likewise.
25161         * modules/sys_select: Likewise.
25162         * modules/sys_socket: Likewise.
25163         * modules/sys_stat: Likewise.
25164         * modules/sys_time: Likewise.
25165         * modules/sys_times: Likewise.
25166         * modules/sys_utsname: Likewise.
25167         * modules/sys_wait: Likewise.
25168         * modules/sysexits: Likewise.
25169         * modules/time: Likewise.
25170         * modules/times: Likewise.
25171         * modules/tmpfile: Likewise.
25172         * modules/trim: Likewise.
25173         * modules/unistd: Likewise.
25174         * modules/wchar: Likewise.
25175         * modules/wctype: Likewise.
25176
25177 2009-09-17  Bruno Haible  <bruno@clisp.org>
25178
25179         Make getdate.y compile on QNX and NetBSD 5 / i386.
25180         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25181         TIME_T_FITS_IN_LONG_INT.
25182         * lib/getdate.y (long_time_t): New type.
25183         (relative_time): Change type of 'seconds' field to long_time_t.
25184         (get_date): Update types of local variables. Check against overflow
25185         during conversion from long_time_t to time_t.
25186         Reported by Matt Kraai <kraai@ftbfs.org>
25187         and Hasso Tepper <hasso@netbsd.org>.
25188
25189 2009-09-17  Bruno Haible  <bruno@clisp.org>
25190
25191         * modules/COPYING: Update copyright years.
25192         * modules/README: Likeiwse.
25193         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25194         Reported by Ian Beckwith <ianb@erislabs.net>.
25195
25196 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25197
25198         * users.txt: Update references for gnuit package.
25199
25200 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25201
25202         * m4/getdelim.m4: Fix typo in copyright line.
25203
25204 2009-09-17  Bruno Haible  <bruno@clisp.org>
25205
25206         * lib/atoll.c: Use the standard header with GPL copyright.
25207         * lib/argz.in.h: Likewise.
25208         * lib/glob.c: Likewise.
25209         * lib/glob-libc.h: Likewise.
25210         * lib/random_r.c: Likewise.
25211         * lib/siglist.h: Likewise.
25212         * lib/strsignal.c: Likewise.
25213         Reported by Ian Beckwith <ianb@erislabs.net>.
25214
25215 2009-09-17  Eric Blake  <ebb9@byu.net>
25216
25217         rmdir: ensure correct dependency order
25218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25219
25220 2009-09-17  Bruno Haible  <bruno@clisp.org>
25221
25222         Disable assertion that fails on NetBSD 5 / i386.
25223         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25224         Reported by Sam Steingold <sds@gnu.org>
25225         and Hasso Tepper <hasso@netbsd.org>.
25226
25227 2009-09-16  Eric Blake  <ebb9@byu.net>
25228
25229         unlinkdir: port to mingw
25230         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25231         on which no one can unlink a directory.
25232
25233         stdlib: sort witness names
25234         * modules/stdlib (Makefile.am): Sort replacements.
25235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25236         * lib/stdlib.in.h: Likewise.
25237
25238         parse-duration-tests: avoid link failure
25239         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25240         LIBINTL.
25241         Reported by Tom G. Christensen.
25242
25243         openat-tests: ensure unlinkat behaves like rmdir
25244         * tests/test-rmdir.c (main): Factor guts...
25245         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25246         * modules/rmdir-tests (Files): Ship new file.
25247         * modules/openat-tests: New test.
25248         * tests/test-unlinkat.c: Likewise.
25249
25250         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25251         * modules/rmdir-errno (Status, Notice): Now obsolete.
25252
25253         rmdir: work around cygwin 1.5.x and mingw bugs
25254         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25255         * lib/rmdir.c (rmdir): Work around it.
25256         * modules/rmdir (Status, Notice): No longer obsolete.
25257         (Files): Add dos.m4.
25258         (Depends-on): Add unistd.
25259         (configure.ac): Set witnesses.
25260         (License): Relax to LGPLv2+.
25261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25262         * modules/unistd (Makefile.am): Substitute witnesses.
25263         * lib/unistd.in.h (rmdir): Declare replacement.
25264         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25265         * modules/rmdir-tests: New tests.
25266         * tests/test-rmdir.c: Likewise.
25267
25268 2009-09-15  Eric Blake  <ebb9@byu.net>
25269
25270         fchdir: improve use of replacement functions
25271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25273         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25274         REPLACE_CLOSEDIR.
25275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25276         * modules/sys_stat (Makefile.am): Substitute correct witness.
25277         * modules/dirent (Makefile.am): Likewise.
25278         * modules/unistd (Makefile.am): Likewise.
25279         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25280         * lib/unistd.in.h (dup): Likewise.
25281         * lib/sys_stat.in.h (fstat): Likewise.
25282
25283         maint: ignore gnulib-tool temp files
25284         * .gitignore: Ignore files created during gnulib-tool --test.
25285
25286 2009-09-13  Jim Meyering  <meyering@redhat.com>
25287
25288         posixtm: don't reject a time that specify "60" as the number of seconds
25289         * lib/posixtm.c (posixtime): The code to reject invalid dates
25290         would also reject a time specified with the .60 suffix.
25291         But POSIX allows that, in order to accommodate leap seconds.
25292         So don't reject it.
25293         (main): Adjust tests accordingly.
25294         * modules/posixtm (Depends-on): Add stpcpy.
25295
25296 2009-09-11  Jim Meyering  <meyering@redhat.com>
25297
25298         announce-gen: include [$release_type] in emitted Subject:
25299         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25300         e.g., [stable] in the emitted Subject: line.
25301
25302 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25303
25304         Remove obsolete macros from several modules.
25305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25306         obsolete Autoconf macros with their modern counterparts.
25307         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25308         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25310         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25312         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25314         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25315         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25316         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25317         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25319         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25320         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25322         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25323         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25324         * m4/time_r.m4 (gl_TIME_R): Likewise.
25325         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25326         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25327         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25328
25329         Fix copyright header in build-aux scripts.
25330         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25331         recommendation.
25332         * build-aux/ncftpput-ftp: Likewise.
25333         * build-aux/update-copyright: Likewise.
25334
25335 2009-09-09  Eric Blake  <ebb9@byu.net>
25336
25337         test-link: allow Linux choice of errno
25338         * tests/test-link.c (main): Relax test for alternate error.
25339
25340         strndup: fix improper m4 caching
25341         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25342         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25343         (gl_PREREQ_STRNDUP): Delete.
25344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25345         * modules/string (Makefile.am): Substitute it.
25346         * lib/string.in.h (strndup): Modernize prototype.
25347
25348         getcwd: port to mingw
25349         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25350         different from the POSIX assumptions made throughout the getcwd
25351         module; fortunately, the mingw getcwd does not need replacement.
25352         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25353         * modules/getcwd-tests: New test.
25354         * tests/test-getcwd.c: Likewise.
25355
25356         link: fix platform bugs
25357         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25358         * lib/link.c (link): Work around them.  Fix related mingw bug.
25359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25360         * modules/unistd (Makefile.am): Substitute it.
25361         * lib/unistd.in.h (link): Declare replacement.
25362         * doc/posix-functions/link.texi (link): Document this.
25363         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25364
25365         test-link: consolidate into single C program, test more cases
25366         * tests/test-link.sh: Delete.
25367         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25368         at least Cygwin and Solaris.
25369         * modules/link-tests (Files): Remove unused file.
25370         (Depends-on): Add errno, sys_stat.
25371         (Makefile.am): Simplify.
25372
25373 2009-09-08  Bruno Haible  <bruno@clisp.org>
25374
25375         Work around towlower, towupper bug on mingw.
25376         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25377         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25378         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25379         * doc/posix-functions/towupper.texi: Likewise.
25380         Reported by Eric Blake.
25381
25382 2009-09-08  Jim Meyering  <meyering@redhat.com>
25383
25384         build: don't try to run autoheader if we don't use it
25385         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25386         is not used in configure.ac.
25387
25388 2009-09-08  Eric Blake  <ebb9@byu.net>
25389
25390         euidaccess: fix compilation error
25391         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25392
25393         rawmemchr: relax license
25394         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25395         okay.
25396         Reported by Jim Meyering.
25397
25398         mkfifoat: new module
25399         * modules/mkfifoat: New file.
25400         * lib/mkfifoat.c: Likewise.
25401         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25402         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25403         * modules/sys_stat (Makefile.am): Use them.
25404         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25405         * MODULES.html.sh (File system functions): Mention module.
25406         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25407         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25408         * modules/mkfifoat-tests: New test.
25409         * tests/test-mkfifoat.c: Likewise.
25410
25411         strchrnul: relax license
25412         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25413         okay.
25414         Reported by Jim Meyering.
25415
25416 2009-09-08  Eric Blake  <ebb9@byu.net>
25417
25418         fstatat: fix compilation on Solaris
25419         * lib/fstatat.c (includes): Add fcntl.h.
25420         Reported by Pádraig Brady.
25421
25422 2009-09-07  Eric Blake  <ebb9@byu.net>
25423
25424         rename: modernize replacement
25425         * modules/rename (Depends-on): Add stdio.
25426         (configure.ac): Declare witness.
25427         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25428         stdio take care of replacement.
25429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25430         * modules/stdio (Makefile.am): Substitute them.
25431         * lib/stdio.in.h (rename): Declare replacement.
25432         * lib/rename.c (includes): Allow cross-compilation to non-windows
25433         machines.
25434         * doc/posix-functions/rename.texi (rename): Improve
25435         documentation.
25436
25437         stdio: sort witness names
25438         * modules/stdio (Makefile.am): Sort replacements.
25439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25440         * lib/stdio.in.h: Likewise.
25441
25442         getcwd: minor cleanups
25443         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25444         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25445
25446         openat: provide more convenience names
25447         * modules/faccessat (configure.ac): Add C witness.
25448         * lib/unistd.in.h (readlinkat): Fix typo.
25449         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25450         convenience wrappers.
25451         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25452         wrappers in syntax checks.
25453
25454 2009-09-06  Eric Blake  <ebb9@byu.net>
25455
25456         doc: fix comments in recent patches
25457         * lib/faccessat.c: Mention correct function.
25458         * lib/fchmodat.c: Likewise.
25459         * lib/fchownat.c: Likewise.
25460         * lib/symlinkat.c: Likewise.
25461         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25462         constants.
25463
25464         faccessat, symlinkat: continue cleanup of previous patch
25465         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25466         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25467         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25469         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25470         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25471         set.
25472
25473 2009-09-06  Bruno Haible  <bruno@clisp.org>
25474
25475         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25476         (fstatat): Declare if GNULIB_FSTATAT is set.
25477         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25478         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25479         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25480         * modules/fcntl-h (Files): Remove m4/openat.m4.
25481         * modules/sys_stat (Files): Remove m4/openat.m4.
25482         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25483         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25484         * modules/unistd (Files): Remove m4/openat.m4.
25485         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25486         GNULIB_OPENAT.
25487         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25488         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25490         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25491         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25492         gl_OPENAT_DEFAULTS.
25493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25494         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25495         Don't require gl_OPENAT_DEFAULTS.
25496         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25497         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25498         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25499         (gl_OPENAT_DEFAULTS): Remove macro.
25500
25501 2009-09-06  Bruno Haible  <bruno@clisp.org>
25502
25503         * modules/openat (configure.ac): Remove unneeded witness.
25504
25505 2009-09-06  Bruno Haible  <bruno@clisp.org>
25506
25507         Set errno to ENOSYS when a function is entirely unsupported.
25508         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25509         EOPNOTSUPP.
25510         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25511         * modules/chown (Depends-on): Remove errno.
25512
25513 2009-09-06  Bruno Haible  <bruno@clisp.org>
25514
25515         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25516
25517 2009-09-06  Bruno Haible  <bruno@clisp.org>
25518
25519         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25520
25521 2009-09-06  Ben Pfaff  <blp@gnu.org>
25522             Bruno Haible  <bruno@clisp.org>
25523
25524         Work around a glibc bug in strtok_r.
25525         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25526         Undefine if UNDEFINE_STRTOK_R is set.
25527         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25529         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25530         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25531         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25532         UNDEFINE_STRTOK_R.
25533         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25534
25535 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25536
25537         exclude: minor fix
25538         * lib/exclude.c: Include wctype.h
25539
25540 2009-09-06  Akim Demaille  <demaille@gostai.com>
25541
25542         bootstrap: improve error message
25543         * build-aux/bootstrap (find_tool): Upon failure, report the list
25544         of candidates.
25545         Honor the initial value of the envvar.
25546
25547 2009-09-05  Eric Blake  <ebb9@byu.net>
25548
25549         symlinkat: new module
25550         * modules/symlinkat: New file.
25551         * lib/symlinkat.c: Likewise.
25552         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25554         * modules/unistd (Makefile.am): Use them.
25555         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25556         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25557         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25558         * MODULES.html.sh (File system functions): Mention module.
25559         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25560         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25561         * modules/symlinkat-tests: New test.
25562         * tests/test-symlinkat.c: Likewise.
25563
25564         test-openat-safer: add more checks
25565         * tests/test-openat-safer.c (main): Check more code paths.
25566
25567 2009-09-05  Jim Meyering  <meyering@redhat.com>
25568
25569         syntax-check: detect unnecessary inclusion of openat.h
25570         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25571
25572 2009-09-05  Bruno Haible  <bruno@clisp.org>
25573
25574         Support towlower, towupper.
25575         * doc/posix-functions/towlower.texi: Mention module wctype.
25576         * doc/posix-functions/towupper.texi: Likewise.
25577         * lib/wctype.in.h (towlower, towupper): New functions.
25578         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25579         (ASSERT): New macro.
25580         (e): New variable.
25581         (main): Test also towlower, towupper. Test WEOF argument.
25582         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25583
25584 2009-09-05  Bruno Haible  <bruno@clisp.org>
25585
25586         Fix conversion behaviour when the input is invalid.
25587         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25588         mark occurring in first pass of indirect conversion.
25589         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25590         input.
25591         Found by clang's static analyzer.
25592
25593 2009-09-05  Bruno Haible  <bruno@clisp.org>
25594
25595         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25596         where direct conversion is possible.
25597
25598 2009-09-04  Eric Blake  <ebb9@byu.net>
25599
25600         openat: fail with ENOENT on empty name
25601         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25602         buffer.
25603
25604         link-follow: fix logic bug in prior patch
25605         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25606         reversed sense of yes and no in prior patch.  Avoid confusing
25607         compilation failure with desired semantics.
25608
25609         link-follow: accomodate mingw and cross-compilation
25610         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25611         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25612         cross-compilation results to -1, to make linkat easier to
25613         implement when cross-compiling.  Trivially support mingw.
25614         * modules/link-follow (configure.ac): Call new name.
25615         * NEWS: Mention this.
25616
25617 2009-09-03  Eric Blake  <ebb9@byu.net>
25618
25619         faccessat: compile replacement
25620         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25621         needed.
25622
25623         fts: fix compilation error
25624         * lib/fts.c (includes): Re-add "openat.h", for
25625         openat_needs_fchdir.
25626
25627         faccessat: new module
25628         * modules/faccessat: New file.
25629         * lib/faccessat.c: Likewise.
25630         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25632         * modules/unistd (Makefile.am): Use it.
25633         * lib/unistd.in.h (faccessat): Declare it.
25634         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25635         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25636         * MODULES.html.sh (File system functions): Mention it.
25637         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25638         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25639
25640         euidaccess: prefer POSIX over non-standard implementation
25641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25642         * lib/euidaccess.c (euidaccess): Use it if available.
25643
25644         openat: make template easier to use
25645         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25646         AT_FUNC_F2 to be undefined.
25647         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25648         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25649         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25650         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25651         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25652         Likewise.
25653         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25654         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25655         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25656         Likewise.
25657
25658         openat: declare in POSIX headers
25659         * NEWS: Mention this.
25660         * modules/openat (configure.ac): Declare witnesses.
25661         (Depends-on): Add fcntl-h, sys_stat, unistd.
25662         (Include): Mention correct headers.
25663         * modules/fcntl-h (Depends-on): Add link-warning.
25664         (Files): Add openat.m4.
25665         (Makefile.am): Substitute witnesses.
25666         * modules/sys_stat (Files, Makefile.am): Likewise.
25667         * modules/unistd (Files, Makefile.am): Likewise.
25668         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25669         (gl_OPENAT_DEFAULTS): New macro.
25670         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25672         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25673         (SYS_STAT_H): Remove unused variable.
25674         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25675         * lib/fcntl--.h (includes): Remove unneeded header.
25676         * lib/openat-safer.c (includes): Likewise.
25677         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25678         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25679         appropriate headers.
25680         (__OPENAT_PREFIX): Delete.
25681         * lib/fcntl.in.h (openat): Provide declaration.
25682         (AT_FDCWD): Fix Solaris bug.
25683         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25684         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25685         * lib/fchmodat.c (includes):  Adjust to find declaration.
25686         * lib/fchownat.c (includes): Likewise.
25687         * lib/mkdirat.c (includes): Likewise.
25688         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25689         still visible.
25690
25691 2009-09-02  Eric Blake  <ebb9@byu.net>
25692
25693         errno: use consistently
25694         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25695         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25696         * lib/canonicalize.c (ELOOP): Likewise.
25697         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25698         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25699         * lib/lchown.c (EOPNOTSUPP): Likewise.
25700         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25701         * lib/savewd.c (ESTALE): Likewise.
25702         * lib/settime.c (ENOSYS): Likewise.
25703         * lib/utimens.c (ENOSYS): Likewise.
25704         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25705         * lib/chdir-safer.c (ELOOP): Likewise.
25706         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25707         * modules/c-stack (Depends-on): Add errno.
25708         * modules/canonicalize (Depends-on): Likewise.
25709         * modules/chdir-safer (Depends-on): Likewise.
25710         * modules/fdopendir (Depends-on): Likewise.
25711         * modules/inet_ntop (Depends-on): Likewise.
25712         * modules/inet_pton (Depends-on): Likewise.
25713         * modules/lchown (Depends-on): Likewise.
25714         * modules/openat (Depends-on): Likewise.
25715         * modules/savewd (Depends-on): Likewise.
25716         * modules/settime (Depends-on): Likewise.
25717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25718
25719         fts: avoid leaking fds
25720         * modules/fts (Depends-on): Add cloexec.
25721         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25722         flag.
25723
25724         fts: make directory fds more robust
25725         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25726         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25727
25728         backupfile, chdir-long, fts, savedir: make safer
25729         * lib/backupfile.c (includes): Use "dirent--.h", since
25730         numbered_backup can write to stderr during readdir.
25731         * lib/savedir.c (includes): Likewise.
25732         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25733         emulation can write to stderr on failure.
25734         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25735         * lib/getcwd.c: Document why opendir_safer is unused.
25736         * lib/glob.c: Likewise.
25737         * lib/scandir.c: Likewise.
25738         * lib/openat-proc.c: Likewise, for open_safer.
25739         * modules/backupfile (Depends-on): Add dirent-safer.
25740         * modules/savedir (Depends-on): Likewise.
25741         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25742         * modules/chdir-long (Depends-on): Add openat-safer.
25743
25744         openat-safer: new module
25745         * modules/openat-safer: New file.
25746         * lib/openat-safer.c: Likewise.
25747         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25748         * lib/fcntl-safer.h (openat_safer): Declare.
25749         * lib/fcntl--.h (openat): Override.
25750         * MODULES.html.sh (File descriptor based I/O): Mention it.
25751         * lib/openat.h: Add double-inclusion guards.
25752         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25753         "fcntl--.h", so we can implement openat.
25754         * modules/openat-safer-tests: New test.
25755         * tests/test-openat-safer.c: New file.
25756
25757         dirent-safer: new module
25758         * modules/dirent-safer: New file.
25759         * lib/dirent--.h: Likewise.
25760         * lib/dirent-safer.h: Likewise.
25761         * lib/opendir-safer.c: Likewise.
25762         * m4/dirent-safer.m4: Likewise.
25763         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25764         * modules/dirent-safer-tests: New test.
25765         * tests/test-dirent-safer.c: New file.
25766         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25767
25768         fdopendir: optimize on mingw
25769         * lib/unistd.in.h (_gl_directory_name): New prototype.
25770         * lib/fchdir.c (_gl_directory_name): Implement it.
25771         (fchdir): Use it to simplify implementation.
25772         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25773         fchdir, when available, to avoid calling [f]chdir().
25774
25775         fdopendir: split into its own module
25776         * lib/openat.c (fdopendir): Move...
25777         * lib/fdopendir.c: ...into new file.
25778         * modules/fdopendir: New module.
25779         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25780         * modules/openat (Depends-on): Add fdopendir.
25781         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25782         fdopendir here.
25783         * modules/savedir (Depends-on): Only need fdopendir, not full
25784         openat.
25785         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25786         * lib/openat.h (fdopendir): Drop prototype.
25787         * lib/dirent.in.h (fdopendir): Provide prototype.
25788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25789         * modules/dirent (Makefile.am): Substitute them.
25790         * MODULES.html.sh (File system functions): Mention it.
25791         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25792         * modules/fdopendir-tests: New file.
25793         * tests/test-fdopendir.c: Likewise.
25794
25795         fchdir: use more consistent macro convention
25796         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25797         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25798         REPLACE_FCHDIR, rather than relying on config.h macros.
25799         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25800         inside a single make-time REPLACE_FCHDIR block, rather than using
25801         the config.h FCHDIR_REPLACEMENT.
25802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25803         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25804         Manage fstat replacement.
25805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25806         REPLACE_FCHDIR.
25807         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25808         (Makefile.am): Substitute REPLACE_FCHDIR.
25809         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25810         FCHDIR_REPLACEMENT.
25811         * lib/dup-safer.c (dup_safer): Likewise.
25812         * lib/dup2.c (rpl_dup2): Likewise.
25813         * lib/dup3.c (rpl_dup3): Likewise.
25814         * lib/open.c (rpl_open): Likewise.
25815
25816         fchdir: simplify error handling, and support dup3
25817         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25818         stdbool, malloc-posix, realloc-posix.
25819         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25820         (ensure_dirs_slot): Return false on allocation failure.
25821         (rpl_dup2): Delete.
25822         (_gl_register_dup): New function.
25823         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25824         (_gl_register_fd): Close fd on allocation failure.
25825         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25826         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25827         prototype.
25828         (rpl_dup2_fchdir): Delete prototype.
25829         * lib/open.c (open): Update caller.
25830         * lib/dup2.c (dup2): Track fchdir metadata.
25831         * lib/dup3.c (dup3): Likewise.
25832         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25833         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25834
25835 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25836
25837         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25838         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25839         don't pass arguments to AC_OUTPUT.
25840
25841 2009-09-02  Bruno Haible  <bruno@clisp.org>
25842
25843         * modules/mkdtemp (License): Relicense under LGPLv2+.
25844         Reported by Paolo Bonzini.
25845
25846 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25847
25848         Replace uses of obsolete autoconf macros in Jim's modules.
25849         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25850         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25851         can evoke a warning from autoconf when run with -Wobsolete
25852         enabled.  They were declared obsolete for good reasons (see
25853         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25854         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25855         should not continue using the deprecated macros.
25856         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25857         obsolete Autoconf macros with modern counterparts.
25858         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25859         * m4/dos.m4 (gl_AC_DOS): Likewise.
25860         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25862         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25863         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25864         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25867         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25868         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25869         Likewise.
25870         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25871         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25872         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25873         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25874         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25875         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25876
25877 2009-09-01  Eric Blake  <ebb9@byu.net>
25878
25879         fchdir: fix off-by-one bug in previous patch
25880         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25881         (_gl_unregister_fd): Delete useless if.
25882
25883 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25884
25885         maint.mk: sort the list of syntax-check rules
25886         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25887         easier to get a sense of progress when the rules are run sequentially
25888         and take a long time.
25889
25890 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25891
25892         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25893         * modules/netinet_in: Likewise.
25894         * modules/sys_file: Likewise.
25895         * modules/sys_ioctl: Likewise.
25896         * modules/sys_select: Likewise.
25897         * modules/sys_socket: Likewise.
25898         * modules/sys_stat: Likewise.
25899         * modules/sys_time: Likewise.
25900         * modules/sys_times: Likewise.
25901         * modules/sys_utsname: Likewise.
25902         * modules/sys_wait: Likewise.
25903
25904 2009-09-01  Jim Meyering  <meyering@redhat.com>
25905
25906         fts: help ensure that return values are not ignored
25907         * lib/fts_.h (__GNUC_PREREQ): Define.
25908         (__attribute_warn_unused_result__): Define.
25909         (fts_children, fts_close, fts_open, fts_read): Declare with
25910         __attribute_warn_unused_result__.
25911
25912         fts: fts_close now fails also when closing a dir file descriptor fails
25913         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25914         and propagate to caller, along with errno.
25915
25916         announce-gen: correct formatting in --help output
25917         * build-aux/announce-gen (usage): Move the one-line description in
25918         --help output "up", to where it belongs, just after Usage:.
25919
25920 2009-08-31  Eric Blake  <ebb9@byu.net>
25921
25922         fchdir: port to mingw
25923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25924         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25925         opened, then use a substitute.
25926         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25927         replacement.
25928         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25929         (_gl_register_fd): No need to check stat if open already filters
25930         all directories.
25931         (fchdir): Fix error condition to match POSIX.
25932         * modules/fchdir (Depends-on): Add sys_stat.
25933         * doc/posix-functions/open.texi (open): Document the limitation.
25934         * modules/fchdir-tests: New file.
25935         * tests/test-fchdir.c: Likewise.
25936
25937         canonicalize: allow cross-testing from cygwin to mingw
25938         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25939         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25940         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25941         Likewise.
25942         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25943         target does not support symlinks.
25944         * tests/test-canonicalize-lgpl.sh: Likewise.
25945
25946         chown: avoid compilation warning on mingw
25947         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25948         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25949         mingw.
25950         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25951         * modules/chown (Depends-on): Add errno.
25952
25953 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25954
25955         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25956         command.
25957
25958 2009-08-31  Jim Meyering  <meyering@redhat.com>
25959
25960         canonicalize: remove useless initialization
25961         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25962         initialization of local, "end".
25963
25964 2009-08-30  Bruno Haible  <bruno@clisp.org>
25965
25966         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25967         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25968         ENOSYS.
25969
25970 2009-08-30  Bruno Haible  <bruno@clisp.org>
25971
25972         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25973         /usr/xpg4/bin/tr when it exists.
25974         * tests/test-pipe-filter-gi1.sh: Likewise.
25975
25976 2009-08-30  Bruno Haible  <bruno@clisp.org>
25977
25978         Work around deficient /usr/bin/id program on Solaris.
25979         * tests/test-file-has-acl.sh (ID): New variable.
25980         * tests/test-set-mode-acl.sh (ID): Likewise.
25981         * tests/test-copy-acl.sh (ID): Likewise.
25982         * tests/test-copy-file.sh (ID): Likewise.
25983
25984 2009-08-30  Bruno Haible  <bruno@clisp.org>
25985
25986         New module 'xstriconveh'.
25987         * lib/xstriconveh.h: New file.
25988         * lib/xstriconveh.c: New file.
25989         * modules/xstriconveh: New file.
25990
25991 2009-08-30  Bruno Haible  <bruno@clisp.org>
25992
25993         Make it easier to use mem_cd_iconveh.
25994         * lib/striconveh.h (iconveh_t): New type.
25995         (iconveh_open, iconveh_close): New declarations.
25996         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25997         with a single 'const iconveh_t *' argument.
25998         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25999         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26000         with a single 'const iconveh_t *' argument.
26001         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26002         * tests/test-striconveh.c (main): Update.
26003         * NEWS: Mention the change.
26004
26005 2009-08-30  Bruno Haible  <bruno@clisp.org>
26006
26007         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26008         problem.
26009
26010 2009-08-30  Bruno Haible  <bruno@clisp.org>
26011
26012         Work around iconv_open problem on Solaris.
26013         * lib/iconv_open-solaris.gperf: New file.
26014         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26015         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26016         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26017         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26018         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26019         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26020
26021 2009-08-29  Jim Meyering  <meyering@redhat.com>
26022
26023         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26024         * top/maint.mk (cvs-check): Remove target; it was just an alias
26025         to the better-named vc-diff-check.
26026         (maintainer-distcheck): Remove rule.  It was used only from
26027         the (alpha/beta/major) target, and all of its commands but one
26028         were coreutils-specific.
26029         (vc-dist): Remove rule.
26030         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26031         Run vc-diff-check, not vc-dist.
26032         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26033
26034 2009-08-27  Bruno Haible  <bruno@clisp.org>
26035
26036         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26037         of 0.
26038
26039 2009-08-27  Bruno Haible  <bruno@clisp.org>
26040
26041         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26042         compilers.
26043         * doc/func.texi: Document the SunPRO C bug.
26044
26045 2009-08-27  Bruno Haible  <bruno@clisp.org>
26046
26047         Fix link error on Solaris.
26048         * tests/test-parse-duration.c (xstrdup): Remove function.
26049
26050 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26051
26052         ignore-value: handle pointer types, too
26053         * lib/ignore-value.h (__attribute__): Remove definition.
26054         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26055         of a more concise and more-often effective "(void) i" statement.
26056         (ignore_ptr): New function to suppress warnings from functions that
26057         return pointers, and to make it explicit that one function doesn't
26058         handle all cases.
26059
26060 2009-08-25  Bruno Haible  <bruno@clisp.org>
26061
26062         dup2: work around a Linux bug.
26063         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26064         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26065         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26066         Reported by Simon Josefsson.
26067
26068 2009-08-25  Jim Meyering  <meyering@redhat.com>
26069
26070         libguestfs uses gnulib
26071         * users.txt: Add libguestfs.
26072
26073 2009-08-24  Eric Blake  <ebb9@byu.net>
26074
26075         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26076         * lib/pipe2.c (includes): Add binary-io.h.
26077         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26078
26079 2009-08-24  Bruno Haible  <bruno@clisp.org>
26080
26081         Tolerate declared but missing accept4 syscall.
26082         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26083         available.
26084         * lib/sys_socket.in.h (accept4): If the function is already present,
26085         override it.
26086         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26087         * modules/accept4 (Makefile.am): Compile accept4.c always.
26088         Reported by Paolo Bonzini and Eric Blake.
26089
26090 2009-08-23  Bruno Haible  <bruno@clisp.org>
26091
26092         New module 'accept4'.
26093         * lib/sys_socket.in.h (accept4): New declaration.
26094         * lib/accept4.c: New file.
26095         * m4/accept4.m4: New file.
26096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26097         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26098         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26099         HAVE_ACCEPT4.
26100         * modules/accept4: New file.
26101         * doc/glibc-functions/accept4.texi: Mention the new module.
26102
26103 2009-08-24  Jim Meyering  <meyering@redhat.com>
26104
26105         progname: also set global program_invocation_name, when possible
26106         Before this change, a libtool-enabled program that calls glibc's
26107         error function would report the program name as
26108         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26109         * modules/progname (configure.ac): Check for a declaration of
26110         program_invocation_name.
26111         * lib/progname.c:  Include <errno.h>.
26112         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26113         Set program_invocation_name.
26114
26115 2009-08-23  Bruno Haible  <bruno@clisp.org>
26116
26117         * lib/dup3.c: Include <string.h>.
26118
26119 2009-08-23  Bruno Haible  <bruno@clisp.org>
26120
26121         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26122         * lib/pipe2.c (pipe2): Likewise.
26123         Suggested by Eric Blake.
26124
26125 2009-08-23  Bruno Haible  <bruno@clisp.org>
26126
26127         Tolerate declared but missing dup3 syscall.
26128         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26129         * lib/unistd.in.h (dup3): If the function is already present,
26130         override it.
26131         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26132         * modules/dup3 (Makefile.am): Compile dup3.c always.
26133         Reported by Paolo Bonzini.
26134
26135 2009-08-23  Bruno Haible  <bruno@clisp.org>
26136
26137         Tolerate declared but missing pipe2 syscall.
26138         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26139         available.
26140         * lib/unistd.in.h (pipe2): If the function is already present,
26141         override it.
26142         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26143         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26144         Reported by Paolo Bonzini.
26145
26146 2009-08-23  Bruno Haible  <bruno@clisp.org>
26147
26148         * lib/pipe2.c (pipe2): Move #ifs inside function.
26149
26150 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26151
26152         quotearg: document limitations of quote_these_too
26153         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26154         those limitations are created.
26155         * lib/quotearg.h (set_char_quoting): Document that digits and
26156         letters that are special after backslash are not permitted.
26157         (quotearg_char): Cross-reference set_char_quoting documentation.
26158
26159 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26160
26161         quotearg: implement custom_quoting_style
26162         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26163         right_quote fields.
26164         (set_custom_quoting): New public function.
26165         (quotearg_buffer_restyled): Add left_quote and right_quote
26166         arguments, handle them very much like locale quoting, and update
26167         all uses.
26168         (quotearg_n_custom): New public function.
26169         (quotearg_n_custom_mem): New public function.
26170         (quotearg_custom): New public function.
26171         (quotearg_custom_mem): New public function.
26172         * lib/quotearg.h: Prototype and document new public functions.
26173         (enum quoting_style): For escape_quoting_style and
26174         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26175         ignored even though they're otherwise like c_quoting_style.
26176         Add custom_quoting_style member and document with comparison to
26177         clocale_quoting_style.
26178         * tests/test-quotearg.c (custom_quotes): New array.
26179         (custom_results): New array.
26180         (main): Extend to test custom quoting.
26181
26182 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26183
26184         quotearg: fix right quote escaping when it's in quote_these_too
26185         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26186         quote, be sure to prepend only one backslash.
26187         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26188         (main): Test it.
26189
26190 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26191
26192         quotearg-tests: test escaping of embedded locale quotes
26193         * tests/test-quotearg.c (struct result_strings): Add member for
26194         new input.
26195         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26196         (inputs): Add new input.
26197         (results_g): Add expected results.
26198         (flag_results): Likewise.
26199         (locale_results): Likewise.
26200         (compare_strings): Check those.
26201
26202 2009-08-23  Bruno Haible  <bruno@clisp.org>
26203
26204         Tests for module 'dup3'.
26205         * modules/dup3-tests: New file.
26206         * tests/test-dup3.c: New file.
26207
26208         New module 'dup3'.
26209         * lib/unistd.in.h (dup3): New declaration.
26210         * lib/dup3.c: New file.
26211         * m4/dup3.m4: New file.
26212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26213         HAVE_DUP3.
26214         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26215         * modules/dup3: New file.
26216         * doc/glibc-functions/dup3.texi: Mention the new module.
26217
26218 2009-08-23  Bruno Haible  <bruno@clisp.org>
26219
26220         Tweak the dup2 test.
26221         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26222         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26223         the test file is still empty. Fix argument order of lseek.
26224
26225 2009-08-23  Bruno Haible  <bruno@clisp.org>
26226
26227         Avoid test link errors when the modules getopt-gnu, gettext are used.
26228         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26230
26231 2009-08-23  Bruno Haible  <bruno@clisp.org>
26232
26233         Fix getdtablesize() on mingw.
26234         * lib/getdtablesize.c (getdtablesize): Implement differently.
26235         * lib/unistd.in.h (getdtablesize): Improve comment.
26236
26237 2009-08-23  Bruno Haible  <bruno@clisp.org>
26238
26239         New module 'mkostemp'.
26240         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26241         * lib/stdlib.in.h (mksotemp): New declaration.
26242         * lib/mkostemp.c: New file, from glibc with modifications.
26243         * lib/tempname.h (GT_FILE): Remove outdated comment.
26244         (gen_tempname): Add flags argument.
26245         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26246         (__GT_FILE): Map to 1.
26247         (small_open, large_open): Remove macros.
26248         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26249         * lib/mkstemp.c (mkstemp): Update.
26250         * lib/mkdtemp.c (mkdtemp): Likewise.
26251         * m4/mkostemp.m4: New file.
26252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26253         HAVE_MKOSTEMP.
26254         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26255         HAVE_MKOSTEMP.
26256         * modules/mkostemp: New file, based on modules/mkstemp.
26257         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26258         * NEWS: Mention the change.
26259
26260 2009-08-23  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26263         Reported by Eric Blake.
26264
26265 2009-08-23  Bruno Haible  <bruno@clisp.org>
26266
26267         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26268         Reported by Eric Blake.
26269
26270 2009-08-23  Bruno Haible  <bruno@clisp.org>
26271
26272         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26273         * modules/pipe2 (Depends-on): Likewise.
26274
26275 2009-08-23  Eric Blake  <ebb9@byu.net>
26276
26277         fcntl-h: add O_TTY_INIT support
26278         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26279         * tests/test-fcntl-h.c (o): Test it.
26280         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26281
26282         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26283         * modules/fcntl: Move <fcntl.h> header replacement...
26284         * modules/fcntl-h: ...to new name, so as not to collide with
26285         like-named function.
26286         * tests/test-fcntl.c: Rename...
26287         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26288         * modules/fcntl-tests: Rename...
26289         * modules/fcntl-h-tests: ...to this.  Update test file name.
26290         * modules/chdir-long (Depends-on): Update clients.
26291         * modules/chdir-safer (Depends-on): Likewise.
26292         * modules/fcntl-safer (Depends-on): Likewise.
26293         * modules/fts (Depends-on): Likewise.
26294         * modules/mkancesdirs (Depends-on): Likewise.
26295         * modules/mkdir-p (Depends-on): Likewise.
26296         * modules/open (Depends-on): Likewise.
26297         * modules/savewd (Depends-on): Likewise.
26298         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26299         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26300
26301 2009-08-22  Bruno Haible  <bruno@clisp.org>
26302
26303         * modules/binary-io (License): Relicense under LGPL.
26304         * modules/pipe2 (License): Likewise.
26305
26306 2009-08-22  Bruno Haible  <bruno@clisp.org>
26307
26308         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26309         return value.
26310         * lib/pipe-filter-gi.c (filter_init): Likewise.
26311         Reported by Eric Blake.
26312
26313 2009-08-22  Bruno Haible  <bruno@clisp.org>
26314
26315         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26316         * modules/pipe (Depends-on): Add pipe2.
26317
26318 2009-08-22  Bruno Haible  <bruno@clisp.org>
26319
26320         Tests for module 'pipe2'.
26321         * modules/pipe2-tests: New file.
26322         * tests/test-pipe2.c: New file.
26323
26324         New module 'pipe2'.
26325         * lib/unistd.in.h (pipe2): New declaration.
26326         * lib/pipe2.c: New file.
26327         * m4/pipe2.m4: New file.
26328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26329         HAVE_PIPE2.
26330         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26331         * modules/pipe2: New file.
26332         * doc/glibc-functions/pipe2.texi: Mention the new module.
26333
26334 2009-08-22  Bruno Haible  <bruno@clisp.org>
26335
26336         Reference some new glibc functions.
26337         * doc/glibc-functions/accept4.texi: New file.
26338         * doc/glibc-functions/dup3.texi: New file.
26339         * doc/glibc-functions/mkostemp.texi: New file.
26340         * doc/glibc-functions/pipe2.texi: New file.
26341         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26342         (Glibc sys/socket.h): Refer to accept4.
26343         (Glibc unistd.h): Refer to dup3, pipe2.
26344         Reported by Eric Blake.
26345
26346 2009-08-22  Jim Meyering  <meyering@redhat.com>
26347             Bruno Haible  <bruno@clisp.org>
26348
26349         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26350         This makes it so packages using automake-1.11's silent-rules option
26351         can print e.g., a single "GEN    configmake.h" line, rather than
26352         the 30+ statements that perform the job.  If you want to see the
26353         actual commands, you can still run "make V=1".
26354         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26355         so that make output is abbreviated when those variables are defined
26356         appropriately.
26357         * modules/argz: Likewise.
26358         * modules/arpa_inet: Likewise.
26359         * modules/byteswap: Likewise.
26360         * modules/configmake: Likewise.
26361         * modules/dirent: Likewise.
26362         * modules/errno: Likewise.
26363         * modules/fcntl: Likewise.
26364         * modules/float: Likewise.
26365         * modules/fnmatch: Likewise.
26366         * modules/getopt-posix: Likewise.
26367         * modules/glob: Likewise.
26368         * modules/iconv_open: Likewise.
26369         * modules/inttypes: Likewise.
26370         * modules/localcharset: Likewise.
26371         * modules/locale: Likewise.
26372         * modules/math: Likewise.
26373         * modules/netdb: Likewise.
26374         * modules/netinet_in: Likewise.
26375         * modules/poll: Likewise.
26376         * modules/posix_spawnp-tests: Likewise.
26377         * modules/sched: Likewise.
26378         * modules/search: Likewise.
26379         * modules/selinux-h: Likewise.
26380         * modules/signal: Likewise.
26381         * modules/spawn: Likewise.
26382         * modules/stdarg: Likewise.
26383         * modules/stdbool: Likewise.
26384         * modules/stddef: Likewise.
26385         * modules/stdint: Likewise.
26386         * modules/stdio: Likewise.
26387         * modules/stdlib: Likewise.
26388         * modules/string: Likewise.
26389         * modules/strings: Likewise.
26390         * modules/sys_file: Likewise.
26391         * modules/sys_ioctl: Likewise.
26392         * modules/sys_select: Likewise.
26393         * modules/sys_socket: Likewise.
26394         * modules/sys_stat: Likewise.
26395         * modules/sys_time: Likewise.
26396         * modules/sys_times: Likewise.
26397         * modules/sys_utsname: Likewise.
26398         * modules/sys_wait: Likewise.
26399         * modules/sysexits: Likewise.
26400         * modules/time: Likewise.
26401         * modules/unistd: Likewise.
26402         * modules/wchar: Likewise.
26403         * modules/wctype: Likewise.
26404
26405 2009-08-22  Jim Meyering  <meyering@redhat.com>
26406
26407         announce-gen: detect write failure
26408         * build-aux/announce-gen: Add Coda at end.
26409         Remove equivalent-but-more-verbose block at top.
26410
26411 2009-08-19  Akim Demaille  <demaille@gostai.com>
26412
26413         bootstrap: --help to stdout.
26414         * bootstrap (usage): Don't send --help to stderr.
26415         Use a here doc instead of a long string.
26416
26417 2009-08-21  Eric Blake  <ebb9@byu.net>
26418
26419         test-popen-safer: split from test-popen
26420         * tests/test-popen.c (main): Move...
26421         * tests/test-popen.h: ...into new file.
26422         * tests/test-popen-safer2.c: New file.
26423         * modules/popen-tests (Files): Add test-popen.h.
26424         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26425         Suggested by Bruno Haible.
26426
26427         test-fcntl-safer: split from test-open
26428         * tests/test-open.c (main): Move...
26429         * tests/test-open.h: ...into new file.
26430         * tests/test-fcntl-safer.c: New file.
26431         * modules/open-tests (Files): Add test-open.h.
26432         * modules/fcntl-safer-tests: New file.
26433         Suggested by Bruno Haible.
26434
26435         test-fopen-safer: split from test-fopen
26436         * tests/test-fopen.c (main): Move...
26437         * tests/test-fopen.h: ...into new file.
26438         * tests/test-fopen-safer.c: New file.
26439         * modules/fopen-tests (Files): Add test-fopen.h.
26440         * modules/fopen-safer-tests: New file.
26441         Suggested by Bruno Haible.
26442
26443 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26444
26445         popen-safer: test O_CLOEXEC at run-time.
26446         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26447
26448 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26449
26450         fcntl: move more flags to the header
26451         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26452         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26453         * lib/fcntl.in.h: Do both things here.
26454
26455 2009-08-21  Jim Meyering  <meyering@redhat.com>
26456
26457         consistently remove $@-t before redirecting to it
26458         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26459         * modules/alloca-opt: Likewise.
26460         * modules/byteswap: Likewise.
26461         * modules/fnmatch: Likewise.
26462         * modules/getopt-posix: Likewise.
26463         * modules/glob: Likewise.
26464         * modules/poll: Likewise.
26465         * modules/posix_spawnp-tests: Likewise.
26466         * modules/sys_socket: Likewise.
26467         * modules/sysexits: Likewise.
26468
26469 2009-08-21  Eric Blake  <ebb9@byu.net>
26470
26471         popen: simplify access to original popen
26472         * lib/popen.c (rpl_popen): No need to worry about popen being a
26473         macro.
26474         Reported by Bruno Haible.
26475
26476 2009-08-20  Eric Blake  <ebb9@byu.net>
26477
26478         build: avoid some compiler warnings
26479         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26480         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26481         type.
26482         (new_exclude_segment, excluded_file_pattern_p)
26483         (excluded_file_name_p): Reduce scope.
26484         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26485         old-style declaration.
26486
26487 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26488
26489         * tests/test-exclude1.sh: Handle Windows EOL.
26490         * tests/test-exclude2.sh: Likewise.
26491         * tests/test-exclude3.sh: Likewise.
26492         * tests/test-exclude4.sh: Likewise.
26493         * tests/test-exclude5.sh: Likewise.
26494         * tests/test-exclude6.sh: Likewise.
26495         * tests/test-exclude7.sh: Likewise.
26496
26497 2009-08-19  Akim Demaille  <demaille@gostai.com>
26498
26499         bootstrap: find sha1sum when named gsha1sum.
26500         * bootstrap (find_tool): New.
26501         ($SHA1SUM): New.
26502         Use it.
26503
26504 2009-08-20  Jim Meyering  <meyering@redhat.com>
26505
26506         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26507         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26508         expression that converts "." in a file name to "\." in the resulting
26509         regexp.  Start with a dummy statement, so that prior shell variable
26510         definitions are expanded portably.  Reported by Simon Josefsson.
26511
26512 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26513
26514         Fix polling for writeability of a screen buffer.
26515         * lib/poll.c: Distinguish input and screen buffers for the
26516         Win32 implementation.
26517         * lib/select.c: Likewise.
26518
26519 2009-08-19  Eric Blake  <ebb9@byu.net>
26520
26521         popen-safer: prevent popen from clobbering std descriptors
26522         * modules/popen-safer: New file.
26523         * lib/popen-safer.c: Likewise.
26524         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26525         * lib/stdio--.h (popen): Provide override.
26526         * lib/stdio-safer.h (popen_safer): Provide declaration.
26527         * tests/test-popen.c (includes): Partially test this.
26528         * modules/popen-safer-tests: New file, for more tests.
26529         * tests/test-popen-safer.c: Likewise.
26530         * MODULES.html.sh (file stream based Input/Output): Mention it.
26531
26532         tests: test some of the *-safer modules
26533         * modules/fopen-safer (Depends-on): Add fopen.
26534         * modules/fcntl-safer (Depends-on): Add fcntl.
26535         * modules/stdlib-safer (Depends-on): Add stdlib.
26536         (configure.ac): Set indicator.
26537         * modules/unistd-safer (configure.ac): Likewise.
26538         * modules/tmpfile-safer (configure.ac): Likewise.
26539         (Depends-on): Add tmpfile.
26540         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26541         active.
26542         * tests/test-fopen.c (includes): Test safer versions when they are
26543         in use.
26544         * tests/test-open.c (includes): Likewise.
26545
26546         popen: fix cygwin 1.5 bug when stdin closed
26547         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26548         * modules/popen: New file.
26549         * modules/popen-tests: Likewise.
26550         * tests/test-popen.c: Likewise.
26551         * m4/popen.m4: Likewise.
26552         * lib/popen.c: Likewise.
26553         * lib/stdio.in.h (popen): New declaration.
26554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26555         * modules/stdio (Makefile.am): Likewise.
26556         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26557
26558 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26559
26560         maint.mk: give full control over update-copyright exclusions
26561         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26562         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26563         (update-copyright): Don't force inclusion of top-level
26564         ChangeLog.  Don't force exclusion of all COPYING files, but make
26565         them the default exclusion instead.
26566
26567 2009-08-16  Bruno Haible  <bruno@clisp.org>
26568
26569         Fix test failures on Solaris 10.
26570         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26571         tests when Solaris iconv() is used.
26572         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26573         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26574         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26575         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26576         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26577
26578 2009-08-16  Bruno Haible  <bruno@clisp.org>
26579
26580         Fix test failures on Solaris 10.
26581         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26582         'tr' program and pass it as first argument.
26583         * tests/test-pipe-filter-gi1.sh: Likewise.
26584         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26585         program as first argument.
26586         * tests/test-pipe-filter-gi1.c (main): Likewise.
26587
26588 2009-08-16  Eric Blake  <ebb9@byu.net>
26589
26590         fpurge: fix previous commits
26591         * modules/fpurge (Makefile.am): Make replacement conditional,
26592         partially reverting 2007-04-29 change; missed in previous
26593         attempt.
26594         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26595         is missing.
26596
26597 2009-08-16  Bruno Haible  <bruno@clisp.org>
26598
26599         Clarify fpurge's effect on the file position.
26600         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26601         * tests/test-fpurge.c (main): Make a second pass for checking the file
26602         position.
26603
26604 2009-08-16  Bruno Haible  <bruno@clisp.org>
26605
26606         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26607         declaration of fpurge is missing.
26608         * tests/test-fpurge.c (main): Check that the file has not more contents
26609         than expected. Close the file before removing it.
26610
26611 2009-08-15  Eric Blake  <ebb9@byu.net>
26612
26613         fpurge: don't wrap working cygwin implementation
26614         * lib/fpurge.c (fpurge): Fix comment typo.
26615         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26616         1.7 to avoid replacement.
26617         * tests/test-fpurge.c (main): Enhance test.
26618
26619 2009-08-15  Eric Blake  <ebb9@byu.net>
26620         and Jim Meyering  <meyering@redhat.com>
26621
26622         test-update-copyright: skip if perl is insufficient
26623         * tests/test-update-copyright.sh: Failure to run maintainer tool
26624         should not cause testsuite failure on cygwin 1.5.
26625
26626 2009-08-14  Eric Blake  <ebb9@byu.net>
26627
26628         doc: mention more functions added in cygwin 1.7.0
26629         * doc/posix-headers/limits.texi (limits.h): Update for recent
26630         cygwin additions.
26631         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26632         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26633         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26634         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26635         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26636
26637 2009-08-14  Eric Blake  <ebb9@byu.net>
26638
26639         maint.mk: simplify update-copyright rule
26640         * top/maint.mk (update-copyright-local): Delete, and document how
26641         to do it in cfg.mk instead.
26642         (update-copyright-exclude-regexp): Delete, and document how to do
26643         it in .x-update-copyright instead.
26644         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26645         exclude ChangeLog.
26646
26647 2009-08-14  Bruno Haible  <bruno@clisp.org>
26648
26649         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26650
26651 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26652
26653         maint.mk: support update-copyright-env
26654         * top/maint.mk (update-copyright-env): Define place-holder.
26655         (update-copyright): Expand $(update-copyright-env) before
26656         invoking update-copyright.
26657
26658 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26659
26660         update-copyright: implement forced reformatting
26661         * build-aux/update-copyright: Implement and document
26662         UPDATE_COPYRIGHT_FORCE.
26663         * tests/test-update-copyright.sh: Test it.
26664
26665 2009-08-14  Eric Blake  <ebb9@byu.net>
26666         and Bruno Haible  <bruno@clisp.org>
26667
26668         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26669         * tests/test-locale.c: Revert previous patch related to NULL.
26670         * tests/test-stdio.c: Likewise.
26671         * tests/test-stdlib.c: Likewise.
26672         * tests/test-string.c: Likewise.
26673         * tests/test-unistd.c: Likewise.
26674         * modules/time-tests (Depends-on): Add verify.
26675         * modules/wchar-tests (Depends-on): Likewise.
26676         * tests/test-time.c: Test for NULL compliance.
26677         * tests/test-wchar.c: Likewise.
26678         * modules/locale (Depends-on): Add stddef.
26679         * modules/stdio (Depends-on): Likewise.
26680         * modules/stdlib (Depends-on): Likewise.
26681         * modules/string (Depends-on): Likewise.
26682         * modules/time (Depends-on): Likewise.
26683         * modules/unistd (Depends-on): Likewise.
26684         * modules/wchar (Depends-on): Likewise.
26685         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26686         * lib/stdlib.in.h (includes): Likewise.
26687         * lib/string.in.h (includes): Likewise.
26688         * lib/time.in.h (includes): Likewise.
26689         * lib/unistd.in.h (includes): Likewise.
26690         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26691         replaced.
26692         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26693         * m4/stddef_h.m4: New file.
26694         * modules/stddef: Likewise.
26695         * lib/stddef.in.h: Likewise.
26696         * modules/stddef-tests: Likewise.
26697         * tests/test-stddef.c: Likewise.
26698         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26699         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26700         * doc/posix-headers/locale.texi (locale.h): Likewise.
26701         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26702         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26703         * doc/posix-headers/string.texi (string.h): Likewise.
26704         * doc/posix-headers/time.texi (time.h): Likewise.
26705         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26706         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26707
26708 2009-08-14  Eric Blake  <ebb9@byu.net>
26709
26710         doc: improve git diff of texinfo files
26711         * .gitattributes: Add rule for *.texi files, with hint on how to
26712         use it.
26713         Copied from m4, and based on a report by Bruno Haible.
26714
26715 2009-08-14  Bruno Haible  <bruno@clisp.org>
26716
26717         Disable multithread support by default on Cygwin 1.5.x for real.
26718         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26719
26720 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26721
26722         update-copyright: much ado about intervals
26723         * build-aux/update-copyright: Implement and document
26724         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26725         of copyright year intervals.
26726         Also, document UPDATE_COPYRIGHT_YEAR.
26727         * tests/test-update-copyright.sh: Test it.
26728
26729         update-copyright: convert 2-digit to 4-digit years
26730         * build-aux/update-copyright: Implement and document.
26731         * tests/test-update-copyright.sh: Update.
26732
26733 2009-08-14  Jim Meyering  <meyering@redhat.com>
26734
26735         test-exclude: avoid coreutils "make check" failure
26736         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26737         just as in test-argmatch.c.
26738
26739 2009-08-13  Eric Blake  <ebb9@byu.net>
26740
26741         test-dup2: fix bad assumption
26742         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26743         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26744
26745         test-version-etc: fix CRLF portability issue
26746         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26747         recognize \r.
26748         * tests/test-argp-version-etc-1.sh: Likewise.
26749
26750         getopt: update client modules
26751         * modules/argp (Depends-on): Use getopt-gnu.
26752         * modules/git-merge-changelog (Depends-on): Likewise.
26753         * modules/long-options (Depends-on): Likewise.
26754         * modules/xstrtol (Depends-on): Likewise.
26755
26756 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26757
26758         * tests/test-version-etc.sh: Don't fail on different
26759         project/version.  Don't fail on CRLF differences.  Rewrite to use
26760         multiple -e instead of multiple sed forks, suggested by Eric Blake
26761         <ebb9@byu.net>.
26762         * tests/test-argp-version-etc-1.sh: Likewise.
26763
26764 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26765
26766         * tests/test-version-etc.sh: Don't fail on different
26767         project/version.
26768
26769 2009-08-12  Bruno Haible  <bruno@clisp.org>
26770
26771         Tests for modules 'getopt-posix', 'getopt-gnu'.
26772         * modules/getopt-posix-tests: New file.
26773         * tests/test-getopt.c: New file.
26774         * tests/test-getopt.h: New file.
26775         * tests/test-getopt_long.h: New file.
26776
26777         New modules 'getopt-posix', 'getopt-gnu'.
26778         * modules/getopt-gnu: New file, renamed from modules/getopt.
26779         * modules/getopt-posix: New file.
26780         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26781         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26782         (gl_GETOPT): Remove macro.
26783         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26784         Disable the test against BSD systems that declare optreset. Test
26785         against mingw bug. Test against lack of support of optional arguments
26786         on many platforms.
26787         * doc/glibc-headers/getopt.texi: Update module name and list of
26788         relevant platforms.
26789         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26790         'getopt-gnu' and more portability problems.
26791         * NEWS: Mention the changes.
26792
26793 2009-08-12  Bruno Haible  <bruno@clisp.org>
26794
26795         Ensure that optarg etc. get declared by <unistd.h>.
26796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26797         AC_USE_SYSTEM_EXTENSIONS.
26798         * modules/getopt (Depends-on): Add 'extensions'.
26799
26800 2009-08-12  Bruno Haible  <bruno@clisp.org>
26801
26802         Avoid test link errors.
26803         * modules/pipe-filter-ii-tests (Makefile.am): Define
26804         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26805         * modules/pipe-filter-gi-tests (Makefile.am): Define
26806         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26808
26809 2009-08-12  Bruno Haible  <bruno@clisp.org>
26810
26811         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26812         gl_GETOPT_SUBSTITUTE before.
26813         (gl_GETOPT): Use it.
26814         * m4/argp.m4 (gl_ARGP): Update.
26815         Reported by Sergey Poznyakoff.
26816
26817         * m4/getopt.m4: Reorder macros.
26818         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26819         (gl_GETOPT_SUBSTITUTE): Remove macro.
26820
26821 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26822
26823         Minor improvement in gitlog-to-changelog
26824
26825         * build-aux/gitlog-to-changelog: New option `--format' makes
26826         output format string configurable.
26827
26828 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26829
26830         Optimize exclude: use hash tables for non-wildcard patterns.
26831
26832         * lib/exclude.c: Include hash.h and mbuiter.h
26833         (struct exclude_pattern, exclude_segment): New data types.
26834         (struct exclude): Rewrite.
26835         (fnmatch_pattern_has_wildcards): New function.
26836         (new_exclude_segment, free_exclude_segment): New functions.
26837         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26838         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26839         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26840         * modules/exclude: Depend on hash and mbuiter.
26841
26842         * modules/exclude-tests: New file.
26843         * tests/test-exclude.c: New file.
26844         * tests/test-exclude1.sh: New file.
26845         * tests/test-exclude2.sh: New file.
26846         * tests/test-exclude3.sh: New file.
26847         * tests/test-exclude4.sh: New file.
26848         * tests/test-exclude5.sh: New file.
26849         * tests/test-exclude6.sh: New file.
26850         * tests/test-exclude7.sh: New file.
26851
26852 2009-08-12  Bruno Haible  <bruno@clisp.org>
26853
26854         Ensure that getopt() gets declared by <unistd.h>.
26855         * lib/unistd.in.h: Conditionally include getopt.h.
26856         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26857         Set GNULIB_UNISTD_H_GETOPT.
26858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26859         GNULIB_UNISTD_H_GETOPT.
26860         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26861
26862 2009-08-12  Bruno Haible  <bruno@clisp.org>
26863
26864         Clarify logic.
26865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26866         gl_replace_getopt instead of GETOPT_H.
26867
26868 2009-08-12  Bruno Haible  <bruno@clisp.org>
26869
26870         * m4/getopt.m4: Add comments.
26871
26872 2009-08-12  Bruno Haible  <bruno@clisp.org>
26873
26874         Disable multithread support by default on Cygwin 1.5.x.
26875         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26876         set gl_use_threads=no if not specified otherwise.
26877
26878 2009-08-11  Bruno Haible  <bruno@clisp.org>
26879
26880         Avoid compilation error on NetBSD 5.0.
26881         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26882         * tests/test-stdio.c: Likewise.
26883         * tests/test-stdlib.c: Likewise.
26884         * tests/test-string.c: Likewise.
26885         * tests/test-unistd.c: Likewise.
26886         Reported by Greg Troxel <gdt@ir.bbn.com>
26887         at <https://savannah.gnu.org/support/?106973>.
26888
26889 2009-08-11  Bruno Haible  <bruno@clisp.org>
26890
26891         * modules/dup2-tests (Depends-on): Remove close.
26892
26893         Undo 2009-07-19 commit.
26894         * modules/acl-tests (Depends-on): Remove close.
26895         * modules/binary-io-tests (Depends-on): Likewise.
26896         * modules/closein-tests (Depends-on): Likewise.
26897         * modules/flock-tests (Depends-on): Likewise.
26898         * modules/fsync-tests (Depends-on): Likewise.
26899         * modules/lseek-tests (Depends-on): Likewise.
26900         * modules/pipe-tests (Depends-on): Likewise.
26901         * modules/posix_spawn-tests (Depends-on): Likewise.
26902         * modules/posix_spawnp-tests (Depends-on): Likewise.
26903         * modules/stat-time-tests (Depends-on): Likewise.
26904         * modules/yesno-tests (Depends-on): Likewise.
26905
26906 2009-08-10  Bruno Haible  <bruno@clisp.org>
26907
26908         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26909
26910 2009-08-10  Bruno Haible  <bruno@clisp.org>
26911
26912         Fix a gcc warning.
26913         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26914
26915 2009-08-10  Bruno Haible  <bruno@clisp.org>
26916
26917         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26918         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26919         not only the first time.
26920         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26921         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26922         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26923         is 1, not only the the first time.
26924
26925 2009-08-10  Bruno Haible  <bruno@clisp.org>
26926
26927         Make it possible to use module 'gethostname' without module 'close'.
26928         * lib/unistd.in.h (close): Evoke a link error only if
26929         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26931         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26932         * modules/unistd (Makefile.am): Substitute
26933         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26934         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26935         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26936         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26937         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26938         * modules/sys_ioctl (Makefile.am): Substitute
26939         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26940         * modules/socket (configure.ac): On native Windows, set
26941         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26942         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26943         Reported by Sam Steingold <sds@gnu.org>.
26944
26945 2009-08-10  Bruno Haible  <bruno@clisp.org>
26946
26947         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26948         * modules/ioctl (configure.ac): Likewise.
26949
26950 2009-08-10  Bruno Haible  <bruno@clisp.org>
26951
26952         Avoid collision between gnulib wrapper and libintl wrapper.
26953         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26954         already defined in intl/printf.c.
26955         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26956         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26957
26958 2009-08-09  Bruno Haible  <bruno@clisp.org>
26959
26960         Make <sys/select.h> really self-contained, also on Solaris 10.
26961         * lib/sys_select.in.h: Include <string.h>.
26962         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26963         Solaris 10 problem.
26964         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26965         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26966         Reported by Jim Meyering.
26967
26968 2009-08-09  Bruno Haible  <bruno@clisp.org>
26969
26970         Avoid warnings from 'aclocal' that are due to a use of macro name
26971         AM_XGETTEXT_OPTION that is not defined in automake.
26972         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26973         automake.
26974         * modules/error (configure.ac): Likewise.
26975         * modules/propername (configure.ac): Likewise.
26976         * modules/vasprintf (configure.ac): Likewise.
26977         * modules/verror (configure.ac): Likewise.
26978         * modules/xprintf (configure.ac): Likewise.
26979         * modules/xvasprintf (configure.ac): Likewise.
26980
26981 2009-08-08  Bruno Haible  <bruno@clisp.org>
26982
26983         Avoid compilation error in C++ mode.
26984         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26985         Reported by Sam Steingold <sds@gnu.org>.
26986
26987 2009-08-08  Bruno Haible  <bruno@clisp.org>
26988
26989         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26990         for the various Unix platforms.
26991         * doc/posix-headers/limits.texi: Update platforms list regarding
26992         HOST_NAME_MAX.
26993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26994
26995 2009-08-07  Jim Meyering  <meyering@redhat.com>
26996
26997         selinux-at: fix typo in a comment
26998         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26999         Spotted by Paolo Bonzini.
27000
27001         selinux-at: remove redundant m4 code, add documentation
27002         * modules/selinux-at (configure.ac): Remove redundant code.
27003         LIB_SELINUX is already set via the dependent module, selinux-h.
27004         (Include): Add quotes around selinux-at.h.
27005         * lib/selinux-at.h: Add documentation.
27006         Reported by Bruno Haible in
27007         http://marc.info/?l=gnulib-bug&m=124958988300749
27008
27009 2009-08-07  Bruno Haible  <bruno@clisp.org>
27010
27011         Avoid link error on MacOS X 10.3 and 10.4.
27012         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27013         on non-ELF systems.
27014         * lib/argp-pv.c (argp_program_version): Likewise.
27015         Reported by Simon Josefsson.
27016
27017 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27018
27019         * tests/test-version-etc.sh: Use $EXEEXT.
27020
27021 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27022
27023         update-copyright: update documentation to point to maint.mk
27024         * build-aux/update-copyright: Here.
27025
27026 2009-08-06  Jim Meyering  <meyering@redhat.com>
27027
27028         maint.mk: support update-copyright-local
27029         * top/maint.mk (update-copyright-local): Define place-holder.
27030         (update-copyright): Depend on $(update-copyright-local).
27031
27032 2009-08-06  Jim Meyering  <meyering@redhat.com>
27033
27034         selinux-at: new module
27035         Initially written for coreutils, this module will soon be
27036         used by findutils, too.
27037         * MODULES.html.sh [Misc]: Add selinux-at.
27038         * lib/selinux-at.h: New file, from coreutils.
27039         * lib/selinux-at.c: Likewise.
27040         * modules/selinux-at: Likewise.
27041         (License): Change from LGPL to GPL, since it depends
27042         on the GPL'd openat module.
27043
27044         doc: update README
27045         * README: Remove references to cogito.
27046         Remove cvs-repo-updating instructions from 2007.
27047         Don't imply that CVS is better if you have limited disk space.
27048
27049 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27050
27051         update-copyright: support C-style comments
27052         * build-aux/update-copyright: Implement and document.
27053         * tests/test-update-copyright.sh: Test.
27054
27055 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27056
27057         update-copyright: support omitted "(C)"
27058         * build-aux/update-copyright: Implement and document.  Also,
27059         allow variable whitespace before "(C)".
27060         * tests/test-update-copyright.sh: Test.
27061
27062 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27063
27064         update-copyright: don't trip on non-FSF copyright statements
27065         * build-aux/update-copyright: Fix so that the first correctly
27066         formatted FSF copyright statement is recognized no matter what
27067         appears before it.  Update documentation.
27068         * tests/test-update-copyright.sh: Test that.
27069
27070 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27071
27072         update-copyright: clean up code a little
27073         * build-aux/update-copyright: Append "_re" to the name of any
27074         variable holding a regular expression.
27075         Replace "old" and "new" with "stmt" in variable names.
27076         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27077         handled correctly.
27078         Format code more consistently.
27079
27080 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27081
27082         update-copyright-tests: improve portability
27083         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27084         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27085
27086 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27087
27088         update-copyright: support @copyright{} and &copy;
27089         * build-aux/update-copyright: Implement and document.
27090         * tests/test-update-copyright.sh: Test.
27091
27092 2009-08-04  Jim Meyering  <meyering@redhat.com>
27093
27094         update-copyright-tests: correctly test EOL=\r\n handling
27095         * tests/test-update-copyright.sh: Put \r at the end of some lines
27096         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27097
27098         maint.mk: make update-copyright exclusion list more configurable
27099         * top/maint.mk (update-copyright): Default to excluding COPYING,
27100         but allow an override, in case someone does want to update that file.
27101
27102         maint.mk: don't update copyright date in COPYING
27103         * top/maint.mk (update-copyright): Exclude COPYING.
27104
27105         maint.mk: add a copyright-updating rule
27106         * top/maint.mk (update-copyright): New rule.
27107         Derived from coreutils/Makefile.am.
27108
27109         update-copyright: rename some variables
27110         * build-aux/update-copyright: Rename a few variables for clarity.
27111         Tweak syntax.  List Joel E. Denny as coauthor.
27112
27113 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27114
27115         update-copyright: fix bug for 2-digit last year and add tests
27116         * build-aux/update-copyright: Fix bug.
27117         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27118         specified.
27119         * modules/update-copyright-tests: New
27120         * tests/test-update-copyright.sh: New.
27121
27122 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27123
27124         update-copyright: handle leading tabs in line prefix
27125         * build-aux/update-copyright: Count leading tabs as 8 spaces
27126         when computing margin.  This helps with the formatting of
27127         ChangeLogs, for example.
27128         Fix documentation a little.
27129
27130 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27131
27132         update-copyright: support EOL=\r\n
27133         * build-aux/update-copyright: Implement that.
27134
27135 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27136
27137         update-copyright: automatically format copyright statements
27138         * build-aux/update-copyright: Implement that.
27139         Also, be a little more predictable and safer by always failing
27140         when the full copyright format is not perfectly recognized as an
27141         unbroken whole.  Discussed at
27142         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27143         Rewrite documentation.
27144
27145 2009-08-03  Bruno Haible  <bruno@clisp.org>
27146
27147         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27148
27149 2009-08-02  Bruno Haible  <bruno@clisp.org>
27150
27151         Tests for module 'uname'.
27152         * modules/uname-tests: New file.
27153         * tests/test-uname.c: New file.
27154
27155         New module 'uname'.
27156         * lib/uname.c: New file.
27157         * m4/uname.m4: New file.
27158         * modules/uname: New file.
27159         * doc/posix-functions/uname.texi: Mention the new module.
27160
27161 2009-08-02  Bruno Haible  <bruno@clisp.org>
27162
27163         Tests for module 'sys_utsname'.
27164         * modules/sys_utsname-tests: New file.
27165         * tests/test-sys_utsname.c: New file.
27166
27167         New module 'sys_utsname'.
27168         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27169         * m4/sys_utsname_h.m4: New file.
27170         * modules/sys_utsname: New file.
27171         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27172
27173 2009-08-02  Bruno Haible  <bruno@clisp.org>
27174
27175         Implicitly initialize the sockets library.
27176         * lib/gethostname.c: Include sockets.h.
27177         (rpl_gethostname): Invoke gl_sockets_startup.
27178         * lib/socket.c: Include sockets.h.
27179         (rpl_socket): Invoke gl_sockets_startup.
27180         * modules/gethostname (Depends-on): Add sockets.
27181         * modules/socket (Depends-on): Likewise.
27182         * tests/test-poll.c: Don't include sockets.h.
27183         (main): Don't invoke gl_sockets_startup.
27184         * tests/test-select.c: Don't include sockets.h.
27185         (main): Don't invoke gl_sockets_startup.
27186
27187 2009-08-02  Bruno Haible  <bruno@clisp.org>
27188
27189         Allow multiple calls to gl_sockets_startup.
27190         * lib/sockets.c (initialized_sockets_version): New variable.
27191         (gl_sockets_startup): Do nothing if already called for this or a higher
27192         version.
27193         (gl_sockets_cleanup): Reset initialized_sockets_version.
27194
27195 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27196
27197         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27198         different project/version.
27199
27200 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27201             Bruno Haible  <bruno@clisp.org>
27202
27203         Tests for module 'pipe-filter-gi'.
27204         * modules/pipe-filter-gi-tests: New file.
27205         * tests/test-pipe-filter-gi1.sh: New file.
27206         * tests/test-pipe-filter-gi1.c: New file.
27207         * tests/test-pipe-filter-gi2.sh: New file.
27208         * tests/test-pipe-filter-gi2-main.c: New file.
27209         * tests/test-pipe-filter-gi2-child.c: New file.
27210
27211         New module 'pipe-filter-gi'.
27212         * lib/pipe-filter-gi.c: New file.
27213         * modules/pipe-filter-gi: New file.
27214
27215 2009-08-02  Bruno Haible  <bruno@clisp.org>
27216             Paolo Bonzini  <bonzini@gnu.org>
27217
27218         Tests for module 'pipe-filter-ii'.
27219         * modules/pipe-filter-ii-tests: New file.
27220         * tests/test-pipe-filter-ii1.sh: New file.
27221         * tests/test-pipe-filter-ii1.c: New file.
27222         * tests/test-pipe-filter-ii2.sh: New file.
27223         * tests/test-pipe-filter-ii2-main.c: New file.
27224         * tests/test-pipe-filter-ii2-child.c: New file.
27225
27226         New module 'pipe-filter-ii'.
27227         * lib/pipe-filter.h: New file.
27228         * lib/pipe-filter-ii.c: New file.
27229         * lib/pipe-filter-aux.h: New file.
27230         * modules/pipe-filter-ii: New file.
27231
27232 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27233
27234         * lib/gc-libgcrypt.c: Change copyright to FSF.
27235         * lib/gc-gnulib.c: Likewise.
27236
27237 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27238
27239         * lib/gethostname.c: Include limits.h.
27240
27241 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27242             Bruno Haible  <bruno@clisp.org>
27243
27244         Ensure HOST_NAME_MAX as part of the gethostname module.
27245         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27246         define also HOST_NAME_MAX.
27247         * tests/test-gethostname.c: Include <limits.h>.
27248         (main): Check also HOST_NAME_MAX.
27249         * doc/posix-headers/limits.texi: Document the mingw problem.
27250
27251 2009-08-02  Bruno Haible  <bruno@clisp.org>
27252
27253         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27254         Add comments.
27255
27256 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27257
27258         * lib/gethostname.c: Add Windows wrapper.
27259         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27260         * modules/gethostname: Depend on sys_socket & errno, for also
27261         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27262         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27263
27264 2009-07-31  Jim Meyering  <meyering@redhat.com>
27265
27266         getloadavg: fix symbol name in comment
27267         * lib/getloadavg.c: Correct a typo I introduced when adding
27268         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27269         Matt Kraai spotted the problem.
27270
27271 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27272
27273         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27274         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27275         code also if ! defined N_NAME_POINTER.
27276         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27277         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27278         but the n_name member is a 12-byte array.
27279
27280 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27281
27282         update-copyright: generalize comment handling
27283         * build-aux/update-copyright: Handle copyright statements
27284         within more comment styles.
27285         Document usage.
27286         Report any file with an external copyright holder or parse failure.
27287
27288 2009-07-29  Jim Meyering  <meyering@redhat.com>
27289
27290         mktime: correct setting of REPLACE_MKTIME
27291         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27292
27293         update-copyright: new module
27294         * modules/update-copyright: New file.
27295         * build-aux/update-copyright: New file.
27296         * MODULES.html.sh (maint+release support): Add update-copyright.
27297
27298 2009-07-27  Bruno Haible  <bruno@clisp.org>
27299
27300         Fix compilation error when <ctime> is used and mktime is replaced.
27301         * lib/time.in.h (mktime): New declaration.
27302         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27303         REPLACE_MKTIME instead of defining mktime in config.h.
27304         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27305         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27306         Reported by Ross McFarland <rwmcfa1@neces.com>.
27307
27308 2009-07-27  Bruno Haible  <bruno@clisp.org>
27309
27310         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27311         Reported by Matt Kraai <mkraai@beckman.com>.
27312
27313 2009-07-25  Jim Meyering  <meyering@redhat.com>
27314
27315         maint.mk: avoid warnings about missing files
27316         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27317         diagnostic when .prev-version does not exist.
27318         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27319         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27320         nonexistent cfg.mk.
27321         Suggestions from Simon Josefsson.
27322
27323 2009-07-25  Bruno Haible  <bruno@clisp.org>
27324
27325         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27326         defined as macros. Needed on QNX 6.4.1.
27327         Reported by Matt Kraai <mkraai@beckman.com>.
27328
27329 2009-07-23  Jim Meyering  <meyering@redhat.com>
27330
27331         maint.mk: invoke "make dist" with a working value of XZ_OPT
27332         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27333
27334 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27335
27336         Make fseeko.c compile on QNX.
27337         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27338
27339 2009-07-22  Peter Simons  <simons@cryp.to>
27340
27341         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27342         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27343         * lib/md4.h: Likewise.
27344         * lib/md5.h: Likewise.
27345         * lib/sha1.h: Likewise.
27346         * lib/sha256.h: Likewise.
27347         * lib/sha512.h: Likewise.
27348
27349         tests-sha1: don't assign literal string to 'char *' variable
27350         * tests/test-sha1.c (main): Declare locals with "const" to match
27351         attributes of the right hand side.
27352
27353 2009-07-21  Eric Blake  <ebb9@byu.net>
27354
27355         dup2: fix more mingw problems
27356         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27357         fd to itself.
27358         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27359         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27360         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27361         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27362         care of mingw bugs.
27363
27364 2009-07-21  Jim Meyering  <meyering@redhat.com>
27365
27366         vc-list-files: avoid failure when /bin/sh is dash
27367         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27368         On some Debian based systems, /bin/sh is a symlink to dash, and running
27369         this command would omit the "/" following each 'tests' prefix:
27370           dash -x build-aux/vc-list-files -C . tests
27371         That is because bash and dash work differently:
27372           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27373           bash ok
27374           dash odd
27375
27376 2009-07-21  Eric Blake  <ebb9@byu.net>
27377
27378         dup2-tests: test previous patch
27379         * modules/dup2-tests: New file.
27380         * tests/test-dup2.c: Likewise.
27381         * tests/test-open.c (main): Avoid unspecified behavior.
27382         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27383         test.
27384
27385         dup2: work around mingw and cygwin 1.5 bug
27386         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27388         * modules/unistd (Makefile.am): Substitute it.
27389         * lib/unistd.in.h (dup2): Declare the replacement.
27390         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27391         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27392         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27393         * modules/execute (Depends-on): Add dup2.
27394         * modules/fseterr (Depends-on): Likewise.
27395         * modules/pipe (Depends-on): Likewise.
27396         * modules/posix_spawn-internal (Depends-on): Likewise.
27397
27398 2009-07-21  Bruno Haible  <bruno@clisp.org>
27399
27400         * modules/.gitattributes: New file.
27401
27402 2009-07-20  Bruno Haible  <bruno@clisp.org>
27403
27404         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27405         (main): Use it.
27406
27407 2009-07-20  Eric Blake  <ebb9@byu.net>
27408
27409         test-pipe: make a bit more robust.
27410         * tests/test-pipe.c (myerr): Allow error messages regardless of
27411         what we do to stderr.
27412         (test_pipe): Rearrange to avoid deadlock.
27413         (child_main): Try a larger read, to ensure we avoided deadlock.
27414         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27415         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27416         if misused.
27417
27418 2009-07-19  Jim Meyering  <meyering@redhat.com>
27419
27420         fts: avoid false-positive cycle-detection
27421         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27422         for each new command line argument.
27423
27424 2009-07-19  Bruno Haible  <bruno@clisp.org>
27425
27426         Fix build error on mingw with the modules sys_select and unistd.
27427         * modules/acl-tests (Depends-on): Add close.
27428         * modules/binary-io-tests (Depends-on): Likewise.
27429         * modules/closein-tests (Depends-on): Likewise.
27430         * modules/flock-tests (Depends-on): Likewise.
27431         * modules/fsync-tests (Depends-on): Likewise.
27432         * modules/lseek-tests (Depends-on): Likewise.
27433         * modules/pipe-tests (Depends-on): Likewise.
27434         * modules/posix_spawn-tests (Depends-on): Likewise.
27435         * modules/posix_spawnp-tests (Depends-on): Likewise.
27436         * modules/stat-time-tests (Depends-on): Likewise.
27437         * modules/yesno-tests (Depends-on): Likewise.
27438
27439 2009-07-19  Bruno Haible  <bruno@clisp.org>
27440
27441         Unify conditionals.
27442         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27443         macros, not at the compiler macros.
27444         * lib/pipe.c: Likewise.
27445         * lib/execute.c: Likewise.
27446         * lib/spawni.c: Likewise.
27447
27448 2009-07-19  Bruno Haible  <bruno@clisp.org>
27449
27450         Fix handling of closed stdin/stdout/stderr on mingw.
27451         * lib/w32spawn.h: Include unistd.h.
27452         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27453         file descriptor with O_NOINHERIT flag.
27454         (fd_safer_noinherit): New function, based on fd-safer.c.
27455         (dup_safer_noinherit): New function, based on dup-safer.c.
27456         (undup_safer_noinherit): New function.
27457         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27458         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27459         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27460         instead of fd_safer.
27461         * tests/test-pipe.c: Include <windows.h>.
27462         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27463         result.
27464
27465         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27466         from main.
27467         (test_pipe): Pass an extra argument for disambiguation.
27468         (main): Invoke parent_main or child_main.
27469
27470         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27471         consistently.
27472
27473 2009-07-18  Eric Blake  <ebb9@byu.net>
27474
27475         test-pipe: fix mingw build
27476         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27477
27478 2009-07-18  Bruno Haible  <bruno@clisp.org>
27479
27480         * modules/pipe-tests (Makefile.am): Fix typo.
27481
27482 2009-07-18  Eric Blake  <ebb9@byu.net>
27483
27484         error: fix mingw build
27485         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27486         Reported by Bruno Haible.
27487
27488         error: avoid undefined use of stdout
27489         * lib/error.c (error, error_at_line): Check that fd 1 is open
27490         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27491         is handling faults and the close_stdout module wants to report the
27492         detection of closed stdout as an error.
27493
27494 2009-07-17  Eric Blake  <ebb9@byu.net>
27495
27496         pipe: be robust in face of closed fds
27497         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27498         should cause child to misbehave.
27499         * modules/pipe-tests: New module.
27500         * tests/test-pipe.c: New file.
27501         * tests/test-pipe.sh: New file.
27502         Reported by Akim Demaille.
27503
27504 2009-07-14  Bruno Haible  <bruno@clisp.org>
27505
27506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27507         Reported by anonymous kc.
27508
27509 2009-07-07  Jim Meyering  <meyering@redhat.com>
27510
27511         maint.mk: don't look for translatable strings in *.m4 or *.mk
27512         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27513         when searching for translatable strings.
27514
27515 2009-07-05  Jim Meyering  <meyering@redhat.com>
27516
27517         remove superfluous parentheses in STREQ definition
27518         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27519         * lib/getugroups.c (STREQ): Likewise.
27520         * lib/fnmatch.c (STREQ): Likewise.
27521         Spotted by Bruno Haible.
27522
27523 2009-07-04  Jim Meyering  <meyering@redhat.com>
27524
27525         argv-iter: new module
27526         * MODULES.html.sh: Add argv-iter.
27527         * lib/argv-iter.c, lib/argv-iter.h: New files.
27528         * modules/argv-iter: New file.
27529         * modules/argv-iter-tests: New file.
27530         * tests/test-argv-iter.c: Test it.
27531
27532 2009-07-04  Bruno Haible  <bruno@clisp.org>
27533
27534         Fix assertion.
27535         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27536         contains more exact copies of a given entry than file2, leave the extra
27537         copies unpaired rather than aborting.
27538         Reported by Eric Blake.
27539
27540 2009-07-02  Bruno Haible  <bruno@clisp.org>
27541
27542         Speedup git-merge-changelog for git cherry-pick.
27543         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27544         (entries_mapping_get): New function, extracted from compute_mapping.
27545         (entries_mapping_reverse_get): New function.
27546         (compute_mapping): Add a 'full' argument. Return the result in a
27547         'struct entries_mapping'.
27548         (main): Update. Access the mappings through entries_mapping_get.
27549         Reported by Eric Blake.
27550
27551 2009-07-02  Bruno Haible  <bruno@clisp.org>
27552
27553         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27554         best_i.
27555
27556 2009-07-02  Bruno Haible  <bruno@clisp.org>
27557
27558         Speed up approximate search for matching ChangeLog entries.
27559         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27560         argument. Call fstrcmp_bounded instead of fstrcmp.
27561         (compute_mapping, try_split_merged_entry, main): Update callers.
27562
27563 2009-07-02  Bruno Haible  <bruno@clisp.org>
27564
27565         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27566
27567 2009-06-30  Bruno Haible  <bruno@clisp.org>
27568
27569         Reduce the number of uc_is_cased calls.
27570         * lib/unicase.h (casing_suffix_context_t): Add
27571         'first_char_except_ignorable' field.
27572         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27573         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27574         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27575         Update initializer.
27576         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27577         case-ignorable characters.
27578         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27579         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27580         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27581         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27582         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27583
27584 2009-06-30  Bruno Haible  <bruno@clisp.org>
27585
27586         Tests for module 'unicase/ignorable'.
27587         * modules/unicase/ignorable-tests: New file.
27588         * tests/unicase/test-ignorable.c: New file, generated by
27589         gen-uni-tables.
27590
27591         Tests for module 'unicase/cased'.
27592         * modules/unicase/cased-tests: New file.
27593         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27594         * tests/unicase/test-predicate-part1.h: New file, derived from
27595         tests/unictype/test-predicate-part1.h.
27596         * tests/unicase/test-predicate-part2.h: New file, same as
27597         tests/unictype/test-predicate-part2.h.
27598
27599         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27600         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27601         (output_casing_properties): New function.
27602         (main): Call it.
27603         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27604         * lib/unicase/cased.c: Include unictype/bitmap.h.
27605         (uc_is_cased): Define through a bitmap lookup.
27606         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27607         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27608         (uc_is_case_ignorable): Define through a bitmap lookup.
27609         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27610         lib/unictype/bitmap.h.
27611         (Depends-on): Add inline. Clean up.
27612         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27613         lib/unictype/bitmap.h.
27614         (Depends-on): Add inline. Clean up.
27615         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27616         recognition.
27617         * tests/unicase/test-u16-tolower.c (main): Likewise.
27618         * tests/unicase/test-u32-tolower.c (main): Likewise.
27619
27620 2009-06-30  Bruno Haible  <bruno@clisp.org>
27621
27622         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27623         * lib/unicase/u16-casemap.c: Likewise.
27624         * lib/unicase/u32-casemap.c: Likewise.
27625
27626 2009-06-29  Bruno Haible  <bruno@clisp.org>
27627
27628         Define u32_casefold as a wrapper around u32_ct_casefold.
27629         * lib/unicase/u32-casefold.c: Update.
27630         * modules/unicase/u32-casefold (Depends-on): Add
27631         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27632         unicase/empty-suffix-context. Clean up.
27633
27634         Define u16_casefold as a wrapper around u16_ct_casefold.
27635         * lib/unicase/u16-casefold.c: Update.
27636         * modules/unicase/u16-casefold (Depends-on): Add
27637         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27638         unicase/empty-suffix-context. Clean up.
27639
27640         Define u8_casefold as a wrapper around u8_ct_casefold.
27641         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27642         * lib/unicase/u8-casefold.c: Update.
27643         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27644         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27645
27646         Define u32_totitle as a wrapper around u32_ct_totitle.
27647         * lib/unicase/u32-totitle.c: Update.
27648         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27649         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27650
27651         Define u16_totitle as a wrapper around u16_ct_totitle.
27652         * lib/unicase/u16-totitle.c: Update.
27653         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27654         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27655
27656         Define u8_totitle as a wrapper around u8_ct_totitle.
27657         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27658         functions.
27659         (FUNC): Delegate to U_CT_TOTITLE.
27660         * lib/unicase/u8-totitle.c: Update.
27661         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27662         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27663
27664         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27665         invocation.
27666         * modules/unicase/u32-tolower (Depends-on): Add
27667         unicase/empty-prefix-context, unicase/empty-suffix-context.
27668
27669         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27670         invocation.
27671         * modules/unicase/u16-tolower (Depends-on): Add
27672         unicase/empty-prefix-context, unicase/empty-suffix-context.
27673
27674         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27675         * modules/unicase/u8-tolower (Depends-on): Add
27676         unicase/empty-prefix-context, unicase/empty-suffix-context.
27677
27678         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27679         invocation.
27680         * modules/unicase/u32-toupper (Depends-on): Add
27681         unicase/empty-prefix-context, unicase/empty-suffix-context.
27682
27683         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27684         invocation.
27685         * modules/unicase/u16-toupper (Depends-on): Add
27686         unicase/empty-prefix-context, unicase/empty-suffix-context.
27687
27688         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27689         * modules/unicase/u8-toupper (Depends-on): Add
27690         unicase/empty-prefix-context, unicase/empty-suffix-context.
27691
27692         New module 'unicase/u32-ct-casefold'.
27693         * lib/unicase/u32-ct-casefold.c: New file.
27694         * modules/unicase/u32-ct-casefold: New file.
27695
27696         New module 'unicase/u16-ct-casefold'.
27697         * lib/unicase/u16-ct-casefold.c: New file.
27698         * modules/unicase/u16-ct-casefold: New file.
27699
27700         New module 'unicase/u8-ct-casefold'.
27701         * lib/unicase/u8-ct-casefold.c: New file.
27702         * lib/unicase/u-ct-casefold.h: New file, derived from
27703         lib/unicase/u-casefold.h.
27704         * modules/unicase/u8-ct-casefold: New file.
27705
27706         New module 'unicase/u32-ct-totitle'.
27707         * lib/unicase/u32-ct-totitle.c: New file.
27708         * modules/unicase/u32-ct-totitle: New file.
27709
27710         New module 'unicase/u16-ct-totitle'.
27711         * lib/unicase/u16-ct-totitle.c: New file.
27712         * modules/unicase/u16-ct-totitle: New file.
27713
27714         New module 'unicase/u8-ct-totitle'.
27715         * lib/unicase/u8-ct-totitle.c: New file.
27716         * lib/unicase/u-ct-totitle.h: New file, derived from
27717         lib/unicase/u-totitle.h.
27718         * modules/unicase/u8-ct-totitle: New file.
27719
27720         New module 'unicase/u32-ct-tolower'.
27721         * lib/unicase/u32-ct-tolower.c: New file.
27722         * modules/unicase/u32-ct-tolower: New file.
27723
27724         New module 'unicase/u16-ct-tolower'.
27725         * lib/unicase/u16-ct-tolower.c: New file.
27726         * modules/unicase/u16-ct-tolower: New file.
27727
27728         New module 'unicase/u8-ct-tolower'.
27729         * lib/unicase/u8-ct-tolower.c: New file.
27730         * modules/unicase/u8-ct-tolower: New file.
27731
27732         New module 'unicase/u32-ct-toupper'.
27733         * lib/unicase/u32-ct-toupper.c: New file.
27734         * modules/unicase/u32-ct-toupper: New file.
27735
27736         New module 'unicase/u16-ct-toupper'.
27737         * lib/unicase/u16-ct-toupper.c: New file.
27738         * modules/unicase/u16-ct-toupper: New file.
27739
27740         New module 'unicase/u8-ct-toupper'.
27741         * lib/unicase/u8-ct-toupper.c: New file.
27742         * modules/unicase/u8-ct-toupper: New file.
27743
27744         Add context arguments to u*_casemap functions.
27745         * lib/unicase/unicasemap.h: Include unicase.h.
27746         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27747         suffix_context arguments.
27748         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27749         functions.
27750         (FUNC): Add prefix_context and suffix_context arguments. Use
27751         uc_is_cased and uc_is_case_ignorable.
27752         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27753         * lib/unicase/u16-casemap.c: Likewise.
27754         * lib/unicase/u32-casemap.c: Likewise.
27755         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27756         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27757         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27758         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27759         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27760         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27761
27762         New module 'unicase/u32-suffix-context'.
27763         * lib/unicase/u32-suffix-context.c: New file.
27764         * modules/unicase/u32-suffix-context: New file.
27765
27766         New module 'unicase/u16-suffix-context'.
27767         * lib/unicase/u16-suffix-context.c: New file.
27768         * modules/unicase/u16-suffix-context: New file.
27769
27770         New module 'unicase/u8-suffix-context'.
27771         * lib/unicase/u8-suffix-context.c: New file.
27772         * lib/unicase/u-suffix-context.h: New file.
27773         * modules/unicase/u8-suffix-context: New file.
27774
27775         New module 'unicase/empty-suffix-context'.
27776         * lib/unicase/empty-suffix-context.c: New file.
27777         * modules/unicase/empty-suffix-context: New file.
27778
27779         New module 'unicase/u32-prefix-context'.
27780         * lib/unicase/u32-prefix-context.c: New file.
27781         * modules/unicase/u32-prefix-context: New file.
27782
27783         New module 'unicase/u16-prefix-context'.
27784         * lib/unicase/u16-prefix-context.c: New file.
27785         * modules/unicase/u16-prefix-context: New file.
27786
27787         New module 'unicase/u8-prefix-context'.
27788         * lib/unicase/u8-prefix-context.c: New file.
27789         * lib/unicase/u-prefix-context.h: New file.
27790         * lib/unicase/context.h: New file.
27791         * modules/unicase/u8-prefix-context: New file.
27792
27793         New module 'unicase/empty-prefix-context'.
27794         * lib/unicase/empty-prefix-context.c: New file.
27795         * modules/unicase/empty-prefix-context: New file.
27796
27797         New module 'unicase/ignorable'.
27798         * lib/unicase/ignorable.c: New file.
27799         * modules/unicase/ignorable: New file.
27800
27801         New module 'unicase/cased'.
27802         * lib/unicase/caseprop.h: New file.
27803         * lib/unicase/cased.c: New file.
27804         * modules/unicase/cased: New file.
27805
27806         New functions for case mapping of substrings.
27807         * lib/unicase.h (casing_prefix_context_t): New type.
27808         (unicase_empty_prefix_context): New variable.
27809         (u8_casing_prefix_context, u16_casing_prefix_context,
27810         u32_casing_prefix_context, u8_casing_prefixes_context,
27811         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27812         declarations.
27813         (casing_suffix_context_t): New type.
27814         (unicase_empty_suffix_context): New variable.
27815         (u8_casing_suffix_context, u16_casing_suffix_context,
27816         u32_casing_suffix_context, u8_casing_suffixes_context,
27817         u16_casing_suffixes_context, u32_casing_suffixes_context,
27818         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27819         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27820         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27821         declarations.
27822
27823 2009-06-28  Jim Meyering  <meyering@redhat.com>
27824
27825         boostrap: indent only with spaces
27826         * build-aux/bootstrap: Indent only with spaces, never TABs.
27827
27828         bootstrap: split long lines
27829         * build-aux/bootstrap: Keep line length < 80.
27830
27831         bootstrap: sync from coreutils
27832         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27833         just as autoreconf does.  Verify a list of prerequisite
27834         package-name,version-number pairs if defined in bootstrap.conf.
27835         Refer to README-prereq, if prerequisites are not satisfied.
27836
27837 2009-06-27  Eric Blake  <ebb9@byu.net>
27838
27839         tests: add test for bogus NULL definition
27840         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27841         * tests/test-stdlib.c: Likewise.
27842         * tests/test-string.c: Likewise.
27843         * tests/test-locale.c: Likewise.
27844         * tests/test-unistd.c: Likewise.
27845         * modules/stdio-tests (Depends-on): Add verify.
27846         * modules/stdlib-tests (Depends-on): Likewise.
27847         * modules/string-tests (Depends-on): Likewise.
27848         * modules/locale-tests (Depends-on): Likewise.
27849         * modules/unistd-tests (Depends-on): Likewise.
27850
27851 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27852
27853         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27854         self-explaining comment.
27855         * m4/selinux-selinux-h: Update serial.
27856         (gl_LIBSELINUX): New macro, adding a warning for missing development
27857         packages to code extracted from...
27858         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27859         Add warning for missing development packages here, too.
27860
27861 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27862
27863         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27864
27865 2009-06-25  Eric Blake  <ebb9@byu.net>
27866
27867         version-etc: fix regression
27868         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27869         gcc.
27870         (version_etc): Use it, to catch bugs with trailing NULL.
27871         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27872         (version_etc_va): Fix logic bug.
27873         * modules/version-etc-tests: Add test.
27874         * tests/test-version-etc.c: New file.
27875         * tests/test-version-etc.sh: Likewise.
27876
27877 2009-06-25  Sam Steingold  <sds@gnu.org>
27878
27879         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27880         mbtowc declaration.
27881
27882 2009-06-25  Eric Blake  <ebb9@byu.net>
27883
27884         fpurge: migrate into <stdio.h>
27885         * lib/fpurge.h: Delete...
27886         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27887         * lib/fpurge.c (fpurge): Change declaring header.
27888         * modules/fpurge (Files): Drop deleted file.
27889         (Depends-on): Add stdio.
27890         (configure.ac): Set witness.
27891         * modules/stdio (Makefile.am): Support fpurge macros.
27892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27893         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27894         * lib/fflush.c: Update client.
27895         * tests/test-fpurge.c: Likewise.
27896         * NEWS: Mention the change.
27897
27898 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27899
27900         * lib/argp-version-etc.c (program_authors): Add const
27901         qualifier.
27902         * lib/version-etc.c: Fix typos in the comments.
27903         * modules/argp-version-etc: Depends on version-etc.
27904
27905 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27906
27907         argp-version-etc: new module.
27908
27909         * lib/argp-version-etc.c: New file.
27910         * lib/argp-version-etc.h: New file.
27911         * modules/argp-version-etc: New file.
27912         * modules/argp-version-etc-tests: New file.
27913         * tests/test-argp-version-etc.c: New test.
27914         * tests/test-argp-version-etc-1.sh: New test.
27915
27916 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27917
27918         Provide additional interfaces and documentation for version-etc
27919         module.
27920
27921         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27922         interfaces.
27923         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27924         prototypes.
27925
27926 2009-06-24  Bruno Haible  <bruno@clisp.org>
27927
27928         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27929         HAVE_LIB${NAME} macro.
27930         Reported by Sam Steingold <sds@gnu.org>.
27931
27932 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27933
27934         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27935         needed.
27936
27937 2009-06-21  Bruno Haible  <bruno@clisp.org>
27938
27939         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27940         work.
27941         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27942         together with LIB${NAME}, LTLIB${NAME}.
27943         Reported by Sam Steingold <sds@gnu.org>.
27944
27945 2009-06-20  Jim Meyering  <meyering@redhat.com>
27946
27947         tests: make sc_require_test_exit_idiom more generic
27948         * top/maint.mk (Exit_witness_file): New overridable variable.
27949         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27950         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27951
27952 2009-06-19  Jim Meyering  <meyering@redhat.com>
27953
27954         hash: reverse order of src/dst parameters in an internal interface
27955         * lib/hash.c (transfer_entries): Reverse order of parameters to
27956         put DST before SRC.  Adjust callers.
27957
27958         tests: test-hash: avoid wholesale duplication
27959         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27960         Instead, use a loop and add a single conditional.
27961
27962         tests: test-hash: allow seed selection via a command line argument
27963         * tests/test-hash.c (get_seed): New function.
27964         (main): Use it.
27965
27966 2009-06-19  Eric Blake  <ebb9@byu.net>
27967
27968         hash: avoid memory leak on allocation failure
27969         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27970         failure.  Factor repeated algorithm...
27971         (transfer_entries): ...into new helper routine.
27972         (hash_delete): React to hash_rehash return value.
27973
27974         hash: reduce memory pressure in hash_rehash no-op case
27975         * lib/hash.c (next_prime): Avoid overflow.
27976         (hash_initialize): Factor bucket size computation...
27977         (compute_bucket_size): ...into new helper function.
27978         (hash_rehash): Use new function and open coding to reduce memory
27979         pressure, and avoid a memory leak in USE_OBSTACK code.
27980         Reported by Jim Meyering.
27981
27982 2009-06-18  Eric Blake  <ebb9@byu.net>
27983
27984         hash: make rotation more obvious
27985         * modules/hash (Depends-on): Add bitrotate and stdint.
27986         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27987         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27988         (SIZE_MAX): Rely on headers for definition.
27989         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27990         (raw_hasher): Use rotr_sz.
27991         Suggested by Jim Meyering.
27992
27993         hash: fix memory leak in last patch
27994         * lib/hash.c (hash_rehash): Avoid memory leak.
27995
27996         hash: avoid no-op rehashing
27997         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27998
27999         hash: provide default callback functions
28000         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28001         (hash_initialize): Use them as defaults.
28002         * tests/test-hash.c (main): Test this.
28003
28004         hash: minor optimization
28005         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28006         when possible.
28007         (hash_initialize): Document this promise.
28008         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28009         * tests/test-hash.c (hash_compare_strings): Test this.
28010
28011 2009-06-18  Bruno Haible  <bruno@clisp.org>
28012
28013         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28014         going to be replaced anyway.
28015
28016 2009-06-18  Bruno Haible  <bruno@clisp.org>
28017
28018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28019         in one place.
28020         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28021         be replaced anyway.
28022
28023 2009-06-18  Eric Blake  <ebb9@byu.net>
28024
28025         hash: check for resize before insertion
28026         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28027         threshold before insertion, so that a pathological hash_rehash
28028         that fills every bucket can still trigger another rehash.
28029
28030 2009-06-18  Jim Meyering  <meyering@redhat.com>
28031
28032         hash-tests: add a loop around the small tests
28033         * tests/test-hash.c (main): Repeat small tests with selected
28034         small initial table sizes.
28035
28036 2009-06-17  Eric Blake  <ebb9@byu.net>
28037
28038         hash: minor cleanups
28039         * lib/hash.h (hash_entry): Make opaque, by moving...
28040         * lib/hash.c (hash_entry): ...here.
28041         (hash_insert): Clarify restrictions on what can be inserted.
28042         (hash_get_next): Clarify when it is safe to remove an element
28043         during traversal.
28044         (check_tuning): Skip verification when tuning is known safe.
28045         (hash_initialize): Clarify restrictions on tuning.
28046
28047 2009-06-17  Jim Meyering  <jim@meyering.net>
28048         and Eric Blake  <ebb9@byu.net>
28049
28050         hash-tests: new module
28051         * modules/hash-tests: New file.
28052         * tests/test-hash.c: New file.
28053
28054 2009-06-17  Eric Blake  <ebb9@byu.net>
28055
28056         strstr-simple: document new module
28057         * MODULES.html.sh: Document new module.
28058
28059         strstr, strcasestr: replace on platforms with broken memchr
28060         * modules/strstr: Split into...
28061         * modules/strstr-simple: ...new module that does not care about
28062         performance, but does care about glibc bug.
28063         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28064         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28065         if platform memchr is broken, per Debian bug 521737.
28066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28067         memchr.
28068         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28069         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28070         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28071         * modules/mountlist (Depends-on): Add strstr-simple.
28072         * modules/gen-uni-tables (Depends-on): Likewise.
28073         * modules/argz (Depends-on): Add strstr.
28074
28075 2009-06-17  Bruno Haible  <bruno@clisp.org>
28076
28077         * modules/posix_spawn-internal (Depends-on): Add errno.
28078
28079 2009-06-17  Bruno Haible  <bruno@clisp.org>
28080
28081         Define missing ESTALE on Interix 3.5.
28082         * lib/errno.in.h (ESTALE): Assign a value if missing.
28083         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28085         missing.
28086         * doc/posix-headers/errno.texi: Mention the Interix bug.
28087         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28088
28089 2009-06-15  Eric Blake  <ebb9@byu.net>
28090
28091         memchr, memchr2: add valgrind exception
28092         * lib/memchr.valgrind: New file.
28093         * lib/memchr2.valgrind: New file.
28094         * modules/memchr (Files): Distribute valgrind file.
28095         * modules/memchr2 (Files): Likewise.
28096
28097         docs: memchr is no longer obsolete
28098         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28099         * lib/string.in.h (memchr): Simplify logic.
28100
28101 2009-06-14  Jim Meyering  <meyering@redhat.com>
28102
28103         link-follow: fix the "checking..." message to not mention trailing slash
28104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28105         never considered trailing slashes.
28106
28107 2009-06-14  Bruno Haible  <bruno@clisp.org>
28108
28109         * m4/memchr.m4: Mention also the bug on IA-64.
28110         * doc/posix-functions/memchr.texi: Likewise.
28111
28112 2009-06-12  Eric Blake  <ebb9@byu.net>
28113
28114         memchr: detect broken x86_64 and alpha implementations
28115         * modules/memchr-tests (Depends-on): Move mmap detection...
28116         * modules/memchr (Depends-on): ...here.
28117         (configure.ac): Set indicator.
28118         * lib/string.in.h (memchr): Declare replacement.
28119         * modules/string (Makefile.am): Trigger replacement.
28120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28121         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28122         bugs.
28123         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28124         * modules/getpagesize (License): Relax license.
28125
28126 2009-06-11  Bruno Haible  <bruno@clisp.org>
28127
28128         * lib/idpriv.h: Add more references.
28129
28130 2009-06-08  Bruno Haible  <bruno@clisp.org>
28131
28132         Tests for module 'idpriv-droptemp'.
28133         * modules/idpriv-droptemp-tests: New file.
28134         * tests/test-idpriv-droptemp.sh: New file.
28135         * tests/test-idpriv-droptemp.su.sh: New file.
28136         * tests/test-idpriv-droptemp.c: New file.
28137
28138         New module 'idpriv-droptemp'.
28139         * lib/idpriv-droptemp.c: New file.
28140         * modules/idpriv-droptemp: New file.
28141
28142 2009-06-08  Bruno Haible  <bruno@clisp.org>
28143
28144         Tests for module 'idpriv-drop'.
28145         * modules/idpriv-drop-tests: New file.
28146         * tests/test-idpriv-drop.sh: New file.
28147         * tests/test-idpriv-drop.su.sh: New file.
28148         * tests/test-idpriv-drop.c: New file.
28149
28150         New module 'idpriv-drop'.
28151         * lib/idpriv.h: New file.
28152         * lib-idpriv-drop.c: New file.
28153         * m4/idpriv.m4: New file.
28154         * modules/idpriv-drop: New file.
28155
28156 2009-06-08  Bruno Haible  <bruno@clisp.org>
28157
28158         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28165
28166 2009-06-08  Eric Blake  <ebb9@byu.net>
28167
28168         test-strstr: use memory fence, when possible
28169         * tests/test-strstr.c (main): Use memory fence, in order to be
28170         more likely to trigger Debian bug 521737.
28171         * modules/strstr-tests (Files): Pull in additional files.
28172
28173         memchr: no longer obsolete, for wider field testing
28174         * modules/memchr (Status, Notice): Delete, this module is no
28175         longer obsolete.
28176         * modules/vasnprintf (Depends-on): Add memchr.
28177
28178 2009-06-07  Jim Meyering  <meyering@redhat.com>
28179
28180         hash: declare some functions with the warn_unused_result attribute
28181         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28182
28183 2009-06-07  Bruno Haible  <bruno@clisp.org>
28184
28185         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28186         Reported by Eric Blake.
28187
28188 2009-06-06  Eric Blake  <ebb9@byu.net>
28189
28190         test-alignof: fix typo with long double
28191         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28192         compiler error.
28193
28194 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28195
28196         Escape non-texinfo { and }s.
28197         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28198         markup error.
28199
28200 2009-06-04  Jim Meyering  <meyering@redhat.com>
28201
28202         gitlog-to-changelog: don't infloop on an empty commit log
28203         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28204         Reported by Boris Petersen <transacid@centerim.org>.
28205
28206 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28207
28208         version-etc: extend for packagers
28209         Add three new configure options, intended for packagers:
28210           --with-packager="packager name"
28211           --with-packager-version="packager-specific version"
28212           --with-packager-bug-reports="packager bug reporting"
28213         An example with coreutils:
28214           $ ./configure \
28215             --with-packager=Gentoo \
28216             --with-packager-bug-report=http://bugs.gentoo.org/ \
28217             --with-packager-version="patchset 1.6"
28218           $ ./src/ls --version | head -n2
28219           ls (GNU coreutils) 7.1-dirty
28220           Packaged by Gentoo (patchset 1.6)
28221         Note that the bug reporting info via --help doesn't show up because
28222         coreutils uses its own custom emit_bug_reporting_address() implementation
28223         in src/system.h.  If it didn't, it'd look like:
28224           $ ./src/ls --help | tail -n4
28225           Report bugs to <bug-coreutils@gnu.org>.
28226           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28227           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28228           General help using GNU software: <http://www.gnu.org/gethelp/>.
28229         * lib/version-etc.c: Print new information, if provided.
28230         * m4/version-etc.m4: New file.
28231         * modules/version-etc (Files): Add m4/version-etc.m4.
28232         (configure.ac): Add gl_VERSION_ETC.
28233
28234 2009-05-31  Bruno Haible  <bruno@clisp.org>
28235
28236         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28237         and 'int64_t'.
28238         * modules/alignof-tests (Dependencies): Add stdint.
28239         Reported by Eric Blake.
28240
28241 2009-05-31  Bruno Haible  <bruno@clisp.org>
28242
28243         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28244         restriction due to compiler bugs.
28245         Reported by Eric Blake.
28246
28247 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28248             Bruno Haible  <bruno@clisp.org>
28249
28250         Fix test-alignof failure.
28251         * lib/alignof.h (alignof_slot): New macro.
28252         (alignof_type): New macro, with the same semantics as the previous
28253         'alignof'.
28254         (alignof): Alias to alignof_slot.
28255         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28256         check that the results are usable as constant expressions.
28257
28258 2009-05-31  Bruno Haible  <bruno@clisp.org>
28259
28260         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28261         * tests/test-memchr.c (main): Check that memchr does not read past the
28262         first occurrence of the byte.
28263         * tests/test-strstr.c (main): Update comment.
28264         Suggested by Eric Blake.
28265
28266 2009-05-30  Bruno Haible  <bruno@clisp.org>
28267
28268         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28269         detail how to use dumpbin.
28270         Reported by David Byron <dbyron@dbyron.com>.
28271
28272 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28273
28274         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28275
28276 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28277
28278         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28279
28280 2009-05-28  Bruno Haible  <bruno@clisp.org>
28281
28282         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28283         build-aux/ files.
28284
28285 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28286
28287         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28288
28289 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28290
28291         * gnulib-tool (sed_transform_main_lib_file)
28292         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28293         regexps.
28294
28295 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28296
28297         * tests/test-strstr.c: Add another self-test.
28298         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28299         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28300
28301 2009-05-23  Bruno Haible  <bruno@clisp.org>
28302
28303         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28304         change.
28305
28306 2009-05-21  Bruno Haible  <bruno@clisp.org>
28307
28308         Simplify use of mode_t varargs.
28309         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28310         uses 'mode_t' or 'int'.
28311         * lib/openat.c (openat): Likewise.
28312         * lib/open-safer.c (open_safer): Likewise.
28313         * m4/mode_t.m4: New file.
28314         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28315         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28317         * modules/open (Files): Add m4/mode_t.m4.
28318         * modules/openat (Files): Likewise.
28319         * modules/fcntl-safer (Files): Likewise.
28320         Suggested by Eric Blake.
28321
28322 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28323
28324         * doc/glibc-functions/fallocate.texi: New file.
28325         * doc/gnulib.texi: Include it.
28326
28327 2009-05-21  Eric Blake  <ebb9@byu.net>
28328             Bruno Haible  <bruno@clisp.org>
28329
28330         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28331         invocations.
28332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28333
28334 2009-05-21  Eric Blake  <ebb9@byu.net>
28335             Bruno Haible  <bruno@clisp.org>
28336
28337         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28338         include_next. Fix of 2008-11-20 commit.
28339         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28340         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28341         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28342         NEXT_MATH_H.
28343         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28344         instead of NEXT_MATH_H.
28345
28346 2009-05-21  Bruno Haible  <bruno@clisp.org>
28347
28348         Avoid redefinition warnings for SIZE_MAX.
28349         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28350         Reported by Simon Josefsson.
28351
28352 2009-05-21  Bruno Haible  <bruno@clisp.org>
28353
28354         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28355         AC_CACHE_VAL.
28356
28357 2009-05-20  Bruno Haible  <bruno@clisp.org>
28358
28359         Make zeroptr.h work on mingw.
28360         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28361         mprotect.
28362         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28363         * modules/memchr2-tests (configure.ac): Likewise.
28364         * modules/memcmp-tests (configure.ac): Likewise.
28365         * modules/memmem-tests (configure.ac): Likewise.
28366         * modules/memrchr-tests (configure.ac): Likewise.
28367         Reported by Simon Josefsson.
28368
28369 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28370
28371         * tests/test-glob.c: Include string.h for strcmp prototype.
28372
28373 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28374
28375         * modules/getdelim (Depends-on): Add explicit stdint, although it
28376         was implicitly already pulled in via realloc-posix.
28377         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28378
28379 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28380
28381         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28382         G. Christensen" <tgc@jupiterrise.com>.
28383         * m4/sys_socket_h.m4: Check for sa_family_t.
28384         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28385         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28386         * tests/test-sys_socket.c: Check that sa_family_t works.
28387
28388 2009-05-18  Eric Blake  <ebb9@byu.net>
28389
28390         maint.mk: allow gnulib_dir in VPATH build
28391         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28392
28393 2009-05-15  Jim Meyering  <meyering@redhat.com>
28394
28395         maint.mk: Give gnulib_dir a default definition.
28396         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28397         Thus, most packages no longer need to specify this variable in cfg.mk
28398
28399 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28400
28401         rename.m4: fix typos that would make non-mingw cross-configure fail
28402         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28403
28404 2009-05-13  Eric Blake  <ebb9@byu.net>
28405
28406         mmap-anon: avoid out-of-order autoconf expansion
28407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28408         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28409         * modules/memchr-tests (Depends-on): Add extensions.
28410         * modules/memchr2-tests (Depends-on): Add extensions.
28411         * modules/memcmp-tests (Depends-on): Add extensions.
28412         * modules/memmem-tests (Depends-on): Add extensions.
28413         * modules/memrchr-tests (Depends-on): Add extensions.
28414
28415 2009-05-13  Bruno Haible  <bruno@clisp.org>
28416
28417         Make some tests ISO C 99 compliant.
28418         * tests/zerosize-ptr.h: New file.
28419         * tests/test-memchr.c: Include zerosize-ptr.h.
28420         (main): Use a zero-size object pointer instead of NULL.
28421         * tests/test-memchr2.c: Include zerosize-ptr.h.
28422         (main): Use a zero-size object pointer instead of NULL.
28423         * tests/test-memcmp.c: Include zerosize-ptr.h.
28424         (main): Use a zero-size object pointer instead of NULL.
28425         * tests/test-memmem.c: Include zerosize-ptr.h.
28426         (main): Use a zero-size object pointer instead of NULL.
28427         * tests/test-memrchr.c: Include zerosize-ptr.h.
28428         (main): Use a zero-size object pointer instead of NULL.
28429         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28430         m4/mmap-anon.m4.
28431         (Depends-on): Add getpagesize.
28432         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28433         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28434         m4/mmap-anon.m4.
28435         (Depends-on): Add getpagesize.
28436         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28437         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28438         m4/mmap-anon.m4.
28439         (Depends-on): Add getpagesize.
28440         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28441         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28442         m4/mmap-anon.m4.
28443         (Depends-on): Add getpagesize.
28444         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28445         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28446         m4/mmap-anon.m4.
28447         (Depends-on): Add getpagesize.
28448         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28449
28450 2009-05-12  Bruno Haible  <bruno@clisp.org>
28451
28452         Tests for module 'alignof'.
28453         * modules/alignof-tests: New file.
28454         * tests/test-alignof.c: New file.
28455
28456 2009-05-12  Bruno Haible  <bruno@clisp.org>
28457
28458         Fix alignof macro.
28459         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28460         vendor compilers that are always correct.
28461
28462 2009-05-12  Bruno Haible  <bruno@clisp.org>
28463
28464         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28465         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28466         not whether its fully works.
28467
28468 2009-05-12  Bruno Haible  <bruno@clisp.org>
28469
28470         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28471
28472 2009-05-12  Jim Meyering  <meyering@redhat.com>
28473
28474         * top/maint.mk: Adjust backslash alignment.
28475
28476 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28477
28478         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28479
28480 2009-05-11  Eric Blake  <ebb9@byu.net>
28481
28482         argp: avoid undefined behavior
28483         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28484         macros.
28485
28486 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28487
28488         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28489         user.name to prevent git commit from complaining.
28490
28491 2009-05-10  Bruno Haible  <bruno@clisp.org>
28492
28493         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28494         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28495         it rewrites every file name only once.
28496         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28497
28498 2009-05-08  Bruno Haible  <bruno@clisp.org>
28499
28500         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28501         instead of 'max'.
28502
28503 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28504
28505         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28506         sockaddr_storage test.
28507
28508 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28509
28510         * modules/sys_socket (Makefile.am): Substitute
28511         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28512         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28513         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28514         * tests/test-sys_socket.c: Check sockaddr_storage.
28515
28516 2009-05-08  Bruno Haible  <bruno@clisp.org>
28517
28518         New module 'alignof'.
28519         * lib/alignof.h: New file.
28520         * modules/alignof: New file.
28521
28522 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28523             Bruno Haible  <bruno@clisp.org>
28524
28525         Fix test-file-has-acl on FreeBSD.
28526         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28527         mask is implicitly added.
28528         * tests/test-file-has-acl.c: Include <signal.h>.
28529         (main): Terminate the test after 5 seconds.
28530         * modules/acl-tests (configure.ac): Check for alarm function.
28531
28532 2009-05-04  Bruno Haible  <bruno@clisp.org>
28533
28534         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28536         * modules/errno (configure.ac): Drop AC_REQUIRE.
28537         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28538         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28539
28540 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28541
28542         * modules/glob-tests: New module.
28543         * tests/test-glob.c: Add.
28544
28545 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28546
28547         * modules/fnmatch-tests: New module.
28548         * tests/test-fnmatch.c: Add.
28549
28550 2009-05-04  Eric Blake  <ebb9@byu.net>
28551
28552         maint: make the new no-submodule-changes rule VPATH-safe
28553         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28554
28555 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28556             Bruno Haible  <bruno@clisp.org>
28557
28558         acl: Fix infinite loop on FreeBSD.
28559         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28560         of return value from acl_get_entry.
28561         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28562         Likewise.
28563
28564 2009-05-03  Bruno Haible  <bruno@clisp.org>
28565
28566         * lib/acl-internal.h (acl_entries): Clarify return value.
28567         * lib/acl_entries.c (acl_entries): Likewise.
28568
28569 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28570
28571         Bug fix in acl module.
28572         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28573
28574 2009-05-03  Bruno Haible  <bruno@clisp.org>
28575
28576         Create gperf-generated file in the source dir, not in the build dir.
28577         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28578         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28579         * modules/unicase/locale-language (unicase/locale-languages.h):
28580         Likewise.
28581         * modules/unicase/special-casing (unicase/special-casing-table.h):
28582         Likewise.
28583         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28584         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28585         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28586         Reported by Ralf Wildenhues.
28587
28588 2009-05-03  Bruno Haible  <bruno@clisp.org>
28589
28590         * modules/fnmatch (Description, configure.ac): Taken from
28591         fnmatch-posix.
28592         * modules/fnmatch-posix: Turn into a symbolic reference to the
28593         'fnmatch' module, and deprecate.
28594         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28595
28596 2009-05-03  Bruno Haible  <bruno@clisp.org>
28597
28598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28599         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28600         Reported by Ralf Wildenhues.
28601
28602 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28603
28604         * m4/fnmatch.m4: Fix fnmatch re-define.
28605
28606 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28607
28608         priv-set: new module and tests; adapt write-any-file
28609         * lib/priv-set.c: New file.
28610         * lib/priv-set.h: New file.
28611         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28612         * lib/write-any-file.c: Simplify by using priv-set module.
28613         * m4/priv-set.m4: New file.
28614         * modules/priv-set: New file.
28615         * modules/unlinkdir: Add dependency on priv-set module.
28616         * modules/write-any-file: Likewise.
28617
28618         Tests for module 'priv-set'.
28619         * modules/priv-set-tests: New file.
28620         * tests/test-priv-set.c: New file.
28621
28622 2009-05-03  Jim Meyering  <meyering@redhat.com>
28623             Bruno Haible  <bruno@clisp.org>
28624
28625         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28626         use the converted UTF-8 variant of the name instead.
28627
28628 2009-05-03  Jim Meyering  <meyering@redhat.com>
28629
28630         tests: tighten some getdate tests
28631         * tests/test-getdate.c (main): Tighten tests: require equality,
28632         not just greater than.  Set TZ envvar to UTC0.
28633
28634 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28635
28636         getdate: correctly interpret "next monday" when run on a Monday
28637         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28638         that e.g., "next tues" (when run on a tuesday) results in a date
28639         that is one week in the future, and not today's date.
28640         I.e., add a week when the wday is the same as the current one.
28641         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28642         and earlier by Martin Bernreuther and Jan Minář.
28643         * tests/test-getdate.c (main): Check that "next DAY" is always in
28644         the future and that "last DAY" is always in the past.
28645
28646 2009-05-02  Jim Meyering  <meyering@redhat.com>
28647
28648         build: ensure that a release build fails when a submodule is unclean
28649         * top/maint.mk (no-submodule-changes): New rule.
28650         (alpha beta major): Depend on it.
28651
28652 2009-05-02  Bruno Haible  <bruno@clisp.org>
28653
28654         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28655         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28656         shell variable gl_fnmatch_required to detect which variant is
28657         requested.
28658         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28659         gl_FUNC_FNMATCH_POSIX.
28660         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28661         exclude fnmatch-posix.
28662
28663 2009-05-02  Bruno Haible  <bruno@clisp.org>
28664
28665         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28666         * modules/mbsrtowcs (License): Change to LGPLv2+.
28667         * modules/strnlen1 (License): Likewise.
28668         Reported by Simon Josefsson.
28669
28670 2009-05-02  Bruno Haible  <bruno@clisp.org>
28671
28672         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28673         "cross".
28674         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28675         gnulib-tool was called with option --source-base=lib.
28676
28677 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28678
28679         Use automake *-local hooks without commands, for extensibility.
28680         * modules/localcharset (Makefile.am): Rename install-exec-local
28681         rule to install-exec-localcharset, and make it a prerequisite of
28682         install-exec-local.  Likewise, rename the uninstall-local rule to
28683         uninstall-localcharset, and make it a prerequisite of the former.
28684
28685 2009-05-01  Bruno Haible  <bruno@clisp.org>
28686
28687         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28688         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28689         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28691         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28692         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28693         m4/locale-zh.m4, m4/codeset.m4.
28694
28695         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28696         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28697         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28698         m4/locale-zh.m4.
28699
28700         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28701         REPLACE_WCRTOMB if mbstate_t must be replaced.
28702         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28703         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28704
28705 2009-05-01  Bruno Haible  <bruno@clisp.org>
28706
28707         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28708         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28709         dngettext, dcngettext, textdomain, bindtextdomain,
28710         bind_textdomain_codeset): Undefine before redefining.
28711
28712 2009-04-30  Bruno Haible  <bruno@clisp.org>
28713
28714         Fix bug introduced on 2009-04-25.
28715         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28716         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28717         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28718         is defined.
28719         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28720         is defined.
28721         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28722         is defined.
28723         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28724
28725 2009-04-28  Bruno Haible  <bruno@clisp.org>
28726
28727         Comment tweaks.
28728         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28729         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28730         * lib/unicase.h (u*_casexfrm): Likewise.
28731         Reported by Paolo Bonzini.
28732
28733 2009-04-28  Bruno Haible  <bruno@clisp.org>
28734
28735         Fix a compilation error.
28736         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28737         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28738         Reported by Jim Meyering.
28739
28740 2009-04-27  Bruno Haible  <bruno@clisp.org>
28741
28742         New module 'libunistring'.
28743         * modules/libunistring: New file.
28744         * m4/libunistring.m4: New file.
28745         * MODULES.html.sh (Unicode string functions): Add it.
28746
28747 2009-04-27  Eric Blake  <ebb9@byu.net>
28748
28749         maint.mk: allow package-specific header to provide <config.h>
28750         * top/maint.mk (sc_require_config_h): New variable.
28751         (sc_require_config_h, sc_require_config_h_first): Use it.
28752
28753 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28754
28755         * top/maint.mk (sc_avoid_if_before_free): Except
28756         useless-if-before-free script.
28757
28758 2009-04-27  Eric Blake  <ebb9@byu.net>
28759
28760         maintainer-makefile: depend on all required helper scripts
28761         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28762         useless-if-before-free.
28763         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28764         version, rather than assuming gnulib checkout is available.
28765         Reported by Simen Josefsson.
28766
28767 2009-04-26  Bruno Haible  <bruno@clisp.org>
28768
28769         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28770         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28771         "../" or "..".
28772
28773 2009-04-26  Bruno Haible  <bruno@clisp.org>
28774
28775         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28776         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28777         AC_LIB_HAVE_LINKFLAGS.
28778
28779 2009-04-26  Bruno Haible  <bruno@clisp.org>
28780
28781         Simplify calling convention of u*_conv_from_encoding.
28782         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28783         u32_conv_from_encoding): Expect a resultbuf argument and return the
28784         result directly as a pointer.
28785         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28786         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28787         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28788         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28789         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28790         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28791         Update.
28792         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28793         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28794         * lib/vasnprintf.c (VASNPRINTF): Update.
28795         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28796         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28797         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28798         * NEWS: Mention the change.
28799
28800 2009-04-26  Bruno Haible  <bruno@clisp.org>
28801
28802         Simplify calling convention of u*_conv_to_encoding.
28803         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28804         u32_conv_to_encoding): Expect a resultbuf argument and return the
28805         result directly as a pointer.
28806         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28807         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28808         freeing scaled_offsets if mem_iconveha failed.
28809         * lib/unicase/u-casexfrm.h (FUNC): Update.
28810         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28811         * lib/vasnprintf.c (VASNPRINTF): Update.
28812         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28813         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28814         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28815         * NEWS: Mention the change.
28816
28817 2009-04-26  Bruno Haible  <bruno@clisp.org>
28818
28819         Avoid test failures on AIX and OSF/1.
28820         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28821         malloc(0).
28822         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28823         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28824         Likewise.
28825         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28826         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28827         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28828         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28829         * doc/posix-functions/malloc.texi: Document the portability problem
28830         related to malloc(0).
28831
28832 2009-04-26  Bruno Haible  <bruno@clisp.org>
28833
28834         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28835         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28836         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28837
28838 2009-04-25  Bruno Haible  <bruno@clisp.org>
28839
28840         Avoid link error when creating a namespace clean library.
28841         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28842         as macro with arguments if already defined as an alias.
28843         * lib/signbitf.c (gl_signbitf): Don't undefine.
28844         * lib/signbitd.c (gl_signbitd): Don't undefine.
28845         * lib/signbitl.c (gl_signbitl): Don't undefine.
28846
28847 2009-04-25  Jim Meyering  <meyering@redhat.com>
28848
28849         vc-list-files: fix another quoting bug
28850         * build-aux/vc-list-files: Avoid sed backslash expansion
28851         of pathological directory names.
28852
28853 2009-04-25  Eric Blake  <ebb9@byu.net>
28854
28855         vc-list-files: fix shell quoting error
28856         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28857         timestamp.
28858
28859 2009-04-25  Jim Meyering  <meyering@redhat.com>
28860
28861         vc-list-files: restore lost functionality with subdir argument
28862         * build-aux/vc-list-files: When given a non-"." sub-directory
28863         argument, substitute the $dir/ prefix back onto each resulting name.
28864         Otherwise, coreutils' root_tests check would fail.
28865
28866 2009-04-24  Eric Blake  <ebb9@byu.net>
28867
28868         vc-list-files: ignore git symlinks
28869         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28870         than ls-files, to ignore git symlinks.
28871
28872         maint.mk: import improvements from m4
28873         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28874         (move_if_change): Delete unused macro.
28875         (news-date-check, vc-diff-check): Support VPATH builds.
28876         (announcement): Likewise.  Split --bootstrap-tools list...
28877         (boostrap-tools): ...into separate list, which can be overridden
28878         in cfg.mk.
28879         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28880         requiring dependency on useless-if-before-free module.
28881         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28882         Support VPATH builds.
28883
28884 2009-04-24  Jim Meyering  <meyering@redhat.com>
28885
28886         maint.mk: remove coreutils-specific rules and variables
28887         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28888         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28889         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28890
28891         maint.mk: remove obsolete rule
28892         * top/maint.mk (rel-check): Remove rule.
28893         (WGET, WGETFLAGS): Remove now-unused variables.
28894
28895 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28896
28897         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28898         consistency.
28899
28900         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28901         '$(PATH_SEPARATOR)' instead of ':'.
28902
28903 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28904
28905         * lib/getopt1.c (main): Use 'const' for static array.
28906
28907 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28908
28909         * top/maint.mk: Sync with coreutils.
28910         * NEWS: Explain incompatibilities.
28911
28912 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28913             Bruno Haible  <bruno@clisp.org>
28914
28915         Fix cross-compilation results.
28916         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28917         statement, as third argument of AC_TRY_RUN.
28918         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28919         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28920         Likewise.
28921         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28922         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28923         Likewise.
28924         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28926         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28927
28928 2009-04-20  Bruno Haible  <bruno@clisp.org>
28929
28930         Avoid test failure on mingw.
28931         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28932
28933 2009-04-20  Bruno Haible  <bruno@clisp.org>
28934
28935         Avoid compilation error on mingw.
28936         * modules/localename-tests (Depends-on): Add locale.
28937
28938 2009-04-19  Bruno Haible  <bruno@clisp.org>
28939
28940         Support for building a shared library on Windows platforms.
28941         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28942         (main): Test the presence of UNINORM_NFC here.
28943         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28944         (main): Test the presence of UNINORM_NFD here.
28945         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28946         (main): Test the presence of UNINORM_NFKC here.
28947         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28948         (main): Test the presence of UNINORM_NFKD here.
28949
28950 2009-04-19  Bruno Haible  <bruno@clisp.org>
28951
28952         Avoid a compiler warning.
28953         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28954         Change type of variable 'sequence'.
28955
28956 2009-04-19  Bruno Haible  <bruno@clisp.org>
28957
28958         * modules/configmake (Makefile.am): When the contents of configmake.h
28959         does not change, arrange to preserve its modification time.
28960
28961 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28962
28963         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28964         gettext domain.
28965
28966 2009-04-16  Jim Meyering  <meyering@redhat.com>
28967
28968         useless-if-before-free: improve conversion code
28969         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28970         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28971
28972 2009-04-14  Bruno Haible  <bruno@clisp.org>
28973
28974         * modules/fcntl (Depends-on): Add extensions.
28975         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28976
28977 2009-04-12  Ben Pfaff  <blp@gnu.org>
28978
28979         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28980         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28981
28982 2009-03-20  Ben Pfaff  <blp@gnu.org>
28983
28984         Make rename replace existing destinations on Windows.
28985         * m4/rename.m4: Add test for Mingw.
28986         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28987         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28988         * doc/posix-functions/rename.texi: Document.
28989
28990 2009-04-10  Bruno Haible  <bruno@clisp.org>
28991
28992         New include file "iconveh.h".
28993         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28994         * lib/striconveh.h: Include it.
28995         (enum iconv_ilseq_handler): Remove definition.
28996         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28997         striconveh.h.
28998         * lib/striconveha.c: Include striconveh.h.
28999         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29000         * modules/striconveh (Files): Add lib/iconveh.h.
29001         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29002         lib/striconveh.h.
29003
29004 2009-04-10  Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/uniconv.h: Update comment.
29007
29008 2009-04-10  Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29011         always.
29012         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29013         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29014         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29015         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29016         "unistring-notinline.h", so that the function gets defined always.
29017         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29018         * lib/unistr/u8-uctomb.c: Likewise.
29019         * lib/unistr/u16-mbtouc.c: Likewise.
29020         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29021         * lib/unistr/u16-uctomb.c: Likewise.
29022         * lib/unistr/u32-mbtouc.c: Likewise.
29023         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29024         * lib/unistr/u32-uctomb.c: Likewise.
29025
29026 2009-04-10  Bruno Haible  <bruno@clisp.org>
29027
29028         Mark 'utime' obsolete.
29029         * modules/utime (Status, Notice): New sections.
29030         Suggested by Jim Meyering.
29031
29032         Fix cross-compile guess for utime test.
29033         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29034         autoconf.
29035         * doc/posix-functions/utime.texi: Give more precisions.
29036         Reported by Jan <ipif@ymail.com>.
29037
29038 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29039
29040         filevercmp: correct today's change
29041         * lib/filevercmp.c: Also handle coreutils' test inputs.
29042         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29043
29044         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29045         for reporting it.
29046         * lib/filevercmp.c: Special handle for "", "." and "..".
29047         * tests/test-filevercmp.c: Enlarge the set suite.
29048
29049 2009-04-07  Jim Meyering  <meyering@redhat.com>
29050
29051         useless-if-before-free: show how to remove braced useless free, too
29052         * build-aux/useless-if-before-free: still only in a comment, though.
29053
29054 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29055
29056         maint.mk: import changes to syntax-check macros from coreutils
29057         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29058         Use them in the relevant macros.
29059
29060 2009-04-06  Bruno Haible  <bruno@clisp.org>
29061
29062         Fix unportable use of bit-fields.
29063         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29064         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29065         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29066
29067 2009-04-06  Bruno Haible  <bruno@clisp.org>
29068
29069         Avoid test failures on AIX and OSF/1.
29070         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29071         that malloc(0) = NULL.
29072         * tests/unicase/test-u8-tolower.c (check): Likewise.
29073         * tests/unicase/test-u8-totitle.c (check): Likewise.
29074         * tests/unicase/test-u8-toupper.c (check): Likewise.
29075         * tests/unicase/test-u16-casefold.c (check): Likewise.
29076         * tests/unicase/test-u16-tolower.c (check): Likewise.
29077         * tests/unicase/test-u16-totitle.c (check): Likewise.
29078         * tests/unicase/test-u16-toupper.c (check): Likewise.
29079         * tests/unicase/test-u32-casefold.c (check): Likewise.
29080         * tests/unicase/test-u32-tolower.c (check): Likewise.
29081         * tests/unicase/test-u32-totitle.c (check): Likewise.
29082         * tests/unicase/test-u32-toupper.c (check): Likewise.
29083         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29084         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29085         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29086         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29087         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29088         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29089         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29090         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29091         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29092         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29093         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29094         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29095
29096 2009-04-05  Bruno Haible  <bruno@clisp.org>
29097
29098         Work around an autoconf limitation.
29099         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29100         comment line if it would be longer than 3 KB.
29101
29102 2009-04-05  Bruno Haible  <bruno@clisp.org>
29103
29104         Avoid test failure with libiconv-1.13.
29105         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29106         of the expected test results.
29107
29108 2009-04-05  Bruno Haible  <bruno@clisp.org>
29109
29110         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29111         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29112         that it should be installed.
29113
29114 2009-04-05  Bruno Haible  <bruno@clisp.org>
29115
29116         * gnulib-tool: New option --copy-file.
29117         (func_usage): Document it.
29118         (func_dest_tmpfilename): Moved out of func_import.
29119         (func_add_file, func_update_file): New functions, extracted from
29120         func_import.
29121         (func_import): Update.
29122
29123 2009-04-05  Karl Berry  <karl@gnu.org>
29124
29125         * README: prominently mention gnulib-tool.
29126         Rearrange sections so getting the code is near the top.
29127
29128 2009-04-05  Bruno Haible  <bruno@clisp.org>
29129
29130         * lib/unicase.h: Mention u*_cmp2.
29131         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29132         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29133         * lib/unicase/ulc-casecmp.c: Likewise.
29134         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29135         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29136         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29137         unistr/u8-cmp.
29138         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29139         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29140         unistr/u16-cmp.
29141         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29142         unistr/u32-cmp.
29143
29144         * lib/uninorm.h: Mention u*_cmp2.
29145         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29146         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29147         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29148         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29149         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29150         unistr/u8-cmp.
29151         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29152         unistr/u16-cmp.
29153         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29154         unistr/u32-cmp.
29155
29156         New module 'unistr/u32-cmp2'.
29157         * lib/unistr/u32-cmp2.c: New file.
29158         * modules/unistr/u32-cmp2: New file.
29159
29160         New module 'unistr/u16-cmp2'.
29161         * lib/unistr/u16-cmp2.c: New file.
29162         * modules/unistr/u16-cmp2: New file.
29163
29164         New module 'unistr/u8-cmp2'.
29165         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29166         * lib/unistr/u8-cmp2.c: New file.
29167         * lib/unistr/u-cmp2.h: New file.
29168         * modules/unistr/u8-cmp2: New file.
29169
29170 2009-04-05  Bruno Haible  <bruno@clisp.org>
29171
29172         * lib/unictype.h (uc_property_is_valid): New macro.
29173         * tests/unictype/test-pr_byname.c (main): Use it.
29174
29175         * lib/unistr.h: Doc fixes.
29176         * lib/uniconv.h: Doc fixes.
29177         * lib/unictype.h: Doc fixes.
29178
29179 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29180
29181         Port coreutils 7.2 to Solaris 8.
29182
29183         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29184         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29185         for Solaris 8.  This is a bit of a hack, as it means it's the
29186         caller's responsibility to add -lnsl if needed, but most likely it
29187         won't be needed since only getaddrinfo uses this and getaddrinfo
29188         isn't needed on Solaris 8.
29189
29190         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29191         problem to Solaris 8 encountered with coreutils 7.2, which
29192         resulted in a message "fnmatch.c:292: warning: passing argument 4
29193         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29194         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29195
29196 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29197
29198         * m4/ld-version-script.m4: Add FIXME comment.
29199
29200 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29201
29202         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29203         SOVERSION variable.
29204
29205 2009-04-02  Bruno Haible  <bruno@clisp.org>
29206
29207         * Makefile (info, html, dvi, pdf): Combine the rules.
29208         Suggested by Jim Meyering.
29209
29210 2009-04-01  Bruno Haible  <bruno@clisp.org>
29211
29212         * Makefile (info, html, dvi, pdf): New targets.
29213         Reported by Reuben Thomas <rrt@sc3d.org>.
29214
29215 2009-04-01  Bruno Haible  <bruno@clisp.org>
29216
29217         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29218         can be put into PATH.
29219         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29220
29221 2009-04-01  Bruno Haible  <bruno@clisp.org>
29222
29223         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29224
29225 2009-04-01  Bruno Haible  <bruno@clisp.org>
29226
29227         Rename module 'visibility'.
29228         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29229         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29230         * doc/gnulib.texi: Update.
29231         * MODULES.html.sh (Misc): Update.
29232         * NEWS: Mention the change.
29233
29234 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29235
29236         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29237         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29238         Eric Blake <ebb9@byu.net> for review.
29239         * MODULES.html.sh: Add lib-msvc-compat.
29240         * doc/gnulib.texi: Link to new section.
29241         * m4/ld-output-def.m4: New file.
29242         * doc/ld-output-def.texi: New file.
29243
29244 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29245
29246         Rename ld-version-script to lib-symbol-versions.  Suggested by
29247         Bruno Haible <bruno@clisp.org>.
29248         * modules/ld-version-script: Renamed to lib-symbol-versions.
29249         * doc/ld-version-script.texi: Fix module name.
29250         * MODULES.html.sh: Add lib-symbol-versions.
29251
29252 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29253
29254         * modules/u64-tests: New file.
29255         * tests/test-u64.c: New file.
29256
29257 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29258
29259         * MODULES.html.sh: Mention u64.
29260         * modules/u64: New module.
29261         * modules/crypto/sha512: Depend on u64 module instead of providing
29262         u64.h.
29263
29264 2009-03-27  Eric Blake  <ebb9@byu.net>
29265
29266         test-strerror: make debugging EAI_SYSTEM easier
29267         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29268         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29269         failure was EAI_SYSTEM.
29270
29271 2009-03-25  Bruno Haible  <bruno@clisp.org>
29272
29273         Fix a problem with --enable-relocatable on Solaris 7.
29274         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29275         since 2008-02-24.
29276
29277 2009-03-25  Eric Blake  <ebb9@byu.net>
29278
29279         test-sockets: avoid gcc warning
29280         * tests/test-sockets.c (main): Silence compiler warning.
29281
29282 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29283
29284         New modules nproc, pthread, contributed by Glen Lenker.
29285
29286         * MODULES.html.sh: Add pthread, nproc.
29287         * lib/nproc.c: New file.
29288         * lib/nproc.h: New file.
29289         * lib/pthread.in.h: New file.
29290         * m4/pthread.m4: New file.
29291         * modules/nproc: New file.
29292         * modules/pthread: New file.
29293
29294 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29295
29296         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29297         New variable.
29298
29299 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29300
29301         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29302         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29303         * tests/test-filevercmp.c: Add tests for backup suffixes.
29304
29305 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29306
29307         * modules/stdlib (Depends-on): Add stdint, needed when defining
29308         struct random_data on, for example, HP-UX 10.20.  Reported by
29309         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29310
29311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29312
29313         * lib/readline.c (readline): Call fflush on stdout after printing
29314         prompt.
29315
29316 2009-03-20  Bruno Haible  <bruno@clisp.org>
29317
29318         Remove dependency from 'close' module to -lws2_32 on native Windows.
29319         * lib/close-hook.h: New file.
29320         * lib/close-hook.c: New file.
29321         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29322         w32sock.h.
29323         (_gl_close_fd_maybe_socket): Remove function.
29324         (rpl_close): Invoke execute_all_close_hooks instead of
29325         _gl_close_fd_maybe_socket.
29326         * lib/sockets.c: Include close-hook.h, w32sock.h.
29327         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29328         (close_sockets_hook): New variable.
29329         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29330         (gl_sockets_cleanup): Unregister it.
29331         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29332         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29333         * modules/close-hook: New file.
29334         * modules/close (Files): Remove lib/w32sock.h.
29335         (Depends-on): Add close-hook.
29336         (Link): Remove section.
29337         * modules/sockets (Files): Add lib/w32sock.h.
29338         (Depends-on): Add close-hook.
29339         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29340         invocation.
29341         * NEWS: Mention that LIB_CLOSE is gone.
29342
29343 2009-03-23  Eric Blake  <ebb9@byu.net>
29344
29345         signal-tests: test previous patch
29346         * tests/test-signal.c: New file.
29347         * modules/signal-tests: Likewise.
29348
29349         signal.h: always support 'volatile sig_atomic_t'
29350         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29351         (gl_SIGNAL_H_DEFAULTS): Add a default.
29352         * modules/signal (Makefile.am): Substitute if needed.
29353         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29354         users can blindly add volatile.
29355         * doc/posix-headers/signal.texi (signal.h): Document it.
29356         Reported by Matthew Woehlke.
29357
29358 2009-03-23  Jim Meyering  <meyering@redhat.com>
29359
29360         pathmax: PATH_MAX: use pathconf only when available
29361         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29362         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29363         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29364         This avoids a link failure in a PSP cross-compilation environment
29365         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29366
29367         * lib/vasnprintf.c (divide): Fix typo in comment.
29368
29369 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29370
29371         * gnulib-tool (func_filter_filelist): Fix comment.
29372
29373 2009-03-20  Bruno Haible  <bruno@clisp.org>
29374
29375         Make sockets.h self-contained.
29376         * lib/sockets.c: Include sockets.h first.
29377         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29378
29379 2009-03-19  Eric Blake  <ebb9@byu.net>
29380
29381         doc: mention more functions added in cygwin 1.7.0
29382         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29383         addition.
29384         * doc/posix-functions/log2f.texi: Likewise.
29385
29386 2009-03-19  Jim Meyering  <meyering@redhat.com>
29387
29388         fsusage: avoid syntax error due to statement-before-declaration
29389         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29390         after all declarations.  Reported by Matthew Woehlke in
29391         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29392
29393 2009-03-18  Eric Blake  <ebb9@byu.net>
29394
29395         build-aux/compile: sync from automake
29396         * build-aux/compile: New file, from automake.
29397         * config/srclist.txt: Mention build-aux/compile.
29398
29399 2009-03-17  Bruno Haible  <bruno@clisp.org>
29400
29401         * lib/git-merge-changelog.c: Fix typo in comment.
29402         Reported by Reuben Thomas <rrt@sc3d.org>.
29403
29404 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29405
29406         * m4/regex.m4: update and improve help for
29407         --without-included-regex.
29408
29409 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29410
29411         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29412         failure on missing include files.
29413
29414 2009-03-17  Eric Blake  <ebb9@byu.net>
29415
29416         doc: mention more functions added in cygwin 1.7.0
29417         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29418         addition.
29419         * doc/posix-functions/fwscanf.texi: Likewise.
29420         * doc/posix-functions/swprintf.texi: Likewise.
29421         * doc/posix-functions/swscanf.texi: Likewise.
29422         * doc/posix-functions/vfwprintf.texi: Likewise.
29423         * doc/posix-functions/vfwscanf.texi: Likewise.
29424         * doc/posix-functions/vswprintf.texi: Likewise.
29425         * doc/posix-functions/vswscanf.texi: Likewise.
29426         * doc/posix-functions/vwprintf.texi: Likewise.
29427         * doc/posix-functions/vwscanf.texi: Likewise.
29428         * doc/posix-functions/wcscasecmp.texi: Likewise.
29429         * doc/posix-functions/wcsdup.texi: Likewise.
29430         * doc/posix-functions/wcsftime.texi: Likewise.
29431         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29432         * doc/posix-functions/wprintf.texi: Likewise.
29433         * doc/posix-functions/wscanf.texi: Likewise.
29434         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29435
29436 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29437
29438         maint.mk: really add $(AM_MAKEFLAGS)
29439         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29440         was inadvertently omitted in the last commit.
29441         Spotted by Bruno Haible.
29442
29443         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29444         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29445         $(AM_MAKEFLAGS)' rather than plain `make'.
29446
29447         gnulib-tool: execute $MAKE not make
29448         * gnulib-tool: Default $MAKE to 'make'.
29449         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29450         than make.  Initialize $MAKE in the do-autobuild script.
29451
29452         gnulib-tool: use $MAKE not make in generated files
29453         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29454         make, in generated files.  Initialize $MAKE in the do-autobuild
29455         script.
29456
29457         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29458
29459         GNUmakefile: disable parallelism only for multiple, recursive targets
29460         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29461         additions in the Makefile.
29462         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29463         by Automake.
29464         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29465         are listed on the command line and at least one of them is
29466         listed in $(ALL_RECURSIVE_TARGETS).
29467
29468 2009-03-14  Bruno Haible  <bruno@clisp.org>
29469
29470         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29471         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29472         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29473         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29474         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29475         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29476         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29477         unistr/u8-uctomb.
29478         * modules/unistr/u8-strchr (Depends-on): Likewise.
29479         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29480         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29481         unistr/u16-uctomb.
29482         * modules/unistr/u16-strchr (Depends-on): Likewise.
29483         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29484
29485 2009-03-12  Bruno Haible  <bruno@clisp.org>
29486
29487         Work around select() bug on Interix 3.5.
29488         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29489         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29490         * m4/select.m4: New file.
29491         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29492         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29493         * modules/select (Files): Add m4/select.m4.
29494         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29495         * modules/nanosleep (Depends-on): Add select.
29496         * modules/poll (Depends-on): Likewise.
29497         * doc/posix-functions/select.texi: Mention the Interix bug.
29498         Reported by Markus Duft <mduft@gentoo.org>.
29499
29500         * lib/select.c: Renamed from lib/winsock-select.c.
29501         * modules/select (Files): Add lib/select.c, remove
29502         lib/winsock-select.c.
29503         (configure.ac): Update.
29504
29505 2009-03-12  Jim Meyering  <meyering@redhat.com>
29506
29507         avoid gcc warnings about unused macro definitions
29508         * lib/readtokens.c (STREQ): Remove unused definition.
29509         * lib/xmalloc.c (SIZE_MAX): Likewise.
29510         * lib/openat-die.c (N_): Likewise.
29511         * lib/mountlist.c (SIZE_MAX): Remove definition.
29512         Instead, include <stdint.h>.
29513         * lib/readutmp.c: Likewise.
29514         * modules/readutmp (Depends-on): Add stdint.
29515         * modules/mountlist (Depends-on): Add stdint.
29516         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29517
29518 2009-03-10  Bruno Haible  <bruno@clisp.org>
29519
29520         Tests for module 'mbmemcasecoll'.
29521         * modules/mbmemcasecoll-tests: New file.
29522         * tests/test-mbmemcasecoll1.sh: New file.
29523         * tests/test-mbmemcasecoll2.sh: New file.
29524         * tests/test-mbmemcasecoll3.sh: New file.
29525         * tests/test-mbmemcasecoll.c: New file.
29526
29527         New module 'mbmemcasecoll'.
29528         * lib/mbmemcasecoll.h: New file.
29529         * lib/mbmemcasecoll.c: New file.
29530         * modules/mbmemcasecoll: New file.
29531
29532         * tests/test-mbmemcasecmp.h: New file, extracted from
29533         tests/test-mbmemcasecmp.c.
29534         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29535         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29536         (main): Update.
29537         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29538
29539 2009-03-09  Bruno Haible  <bruno@clisp.org>
29540
29541         Tests for module 'mbmemcasecmp'.
29542         * modules/mbmemcasecmp-tests: New file.
29543         * tests/test-mbmemcasecmp1.sh: New file.
29544         * tests/test-mbmemcasecmp2.sh: New file.
29545         * tests/test-mbmemcasecmp3.sh: New file.
29546         * tests/test-mbmemcasecmp.c: New file.
29547
29548         New module 'mbmemcasecmp'.
29549         * lib/mbmemcasecmp.h: New file.
29550         * lib/mbmemcasecmp.c: New file.
29551         * modules/mbmemcasecmp: New file.
29552
29553 2009-03-09  Bruno Haible  <bruno@clisp.org>
29554
29555         Tests for module 'unicase/ulc-casecoll'.
29556         * modules/unicase/ulc-casecoll-tests: New file.
29557         * tests/unicase/test-ulc-casecoll1.sh: New file.
29558         * tests/unicase/test-ulc-casecoll2.sh: New file.
29559         * tests/unicase/test-ulc-casecoll.c: New file.
29560
29561         New module 'unicase/ulc-casecoll'.
29562         * lib/unicase.h (ulc_casecoll): New declaration.
29563         * lib/unicase/ulc-casecoll.c: New file.
29564         * modules/unicase/ulc-casecoll: New file.
29565
29566         New module 'unicase/ulc-casexfrm'.
29567         * lib/unicase.h (ulc_casexfrm): New declaration.
29568         * lib/unicase/ulc-casexfrm.c: New file.
29569         * modules/unicase/ulc-casexfrm: New file.
29570
29571 2009-03-09  Bruno Haible  <bruno@clisp.org>
29572
29573         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29574         invocations.
29575
29576         * m4/mbscasecmp.m4: Remove file.
29577         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29578         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29579
29580         * m4/mbscasestr.m4: Remove file.
29581         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29582         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29583
29584         * m4/mbschr.m4: Remove file.
29585         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29586         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29587
29588         * m4/mbscspn.m4: Remove file.
29589         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29590         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29591
29592         * m4/mbslen.m4: Remove file.
29593         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29594         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29595
29596         * m4/mbsncasecmp.m4: Remove file.
29597         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29598         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29599
29600         * m4/mbsnlen.m4: Remove file.
29601         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29602         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29603
29604         * m4/mbspbrk.m4: Remove file.
29605         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29606         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29607
29608         * m4/mbspcasecmp.m4: Remove file.
29609         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29610         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29611
29612         * m4/mbsrchr.m4: Remove file.
29613         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29614         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29615
29616         * m4/mbssep.m4: Remove file.
29617         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29618         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29619
29620         * m4/mbsspn.m4: Remove file.
29621         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29622         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29623
29624         * m4/mbsstr.m4: Remove file.
29625         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29626         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29627
29628         * m4/mbstok_r.m4: Remove file.
29629         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29630         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29631
29632         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29633
29634         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29635         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29636
29637         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29638
29639 2009-03-08  Bruno Haible  <bruno@clisp.org>
29640
29641         Tests for module 'unicase/ulc-casecmp'.
29642         * modules/unicase/ulc-casecmp-tests: New file.
29643         * tests/unicase/test-ulc-casecmp1.sh: New file.
29644         * tests/unicase/test-ulc-casecmp2.sh: New file.
29645         * tests/unicase/test-ulc-casecmp.c: New file.
29646
29647         New module 'unicase/ulc-casecmp'.
29648         * lib/unicase.h (ulc_casecmp): New declaration.
29649         * lib/unicase/ulc-casecmp.c: New file.
29650         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29651         'const SRC_UNIT *'.
29652         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29653         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29654         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29655         * modules/unicase/ulc-casecmp: New file.
29656
29657         Tests for module 'unicase/u32-is-cased'.
29658         * modules/unicase/u32-is-cased-tests: New file.
29659         * tests/unicase/test-u32-is-cased.c: New file.
29660
29661         Tests for module 'unicase/u16-is-cased'.
29662         * modules/unicase/u16-is-cased-tests: New file.
29663         * tests/unicase/test-u16-is-cased.c: New file.
29664
29665         Tests for module 'unicase/u8-is-cased'.
29666         * modules/unicase/u8-is-cased-tests: New file.
29667         * tests/unicase/test-u8-is-cased.c: New file.
29668         * tests/unicase/test-is-cased.h: New file.
29669
29670         New module 'unicase/u32-is-cased'.
29671         * lib/unicase/u32-is-cased.c: New file.
29672         * modules/unicase/u32-is-cased: New file.
29673
29674         New module 'unicase/u16-is-cased'.
29675         * lib/unicase/u16-is-cased.c: New file.
29676         * modules/unicase/u16-is-cased: New file.
29677
29678         New module 'unicase/u8-is-cased'.
29679         * lib/unicase/u8-is-cased.c: New file.
29680         * lib/unicase/u-is-cased.h: New file.
29681         * modules/unicase/u8-is-cased: New file.
29682
29683         Tests for module 'unicase/u32-is-casefolded'.
29684         * modules/unicase/u32-is-casefolded-tests: New file.
29685         * tests/unicase/test-u32-is-casefolded.c: New file.
29686
29687         Tests for module 'unicase/u16-is-casefolded'.
29688         * modules/unicase/u16-is-casefolded-tests: New file.
29689         * tests/unicase/test-u16-is-casefolded.c: New file.
29690
29691         Tests for module 'unicase/u8-is-casefolded'.
29692         * modules/unicase/u8-is-casefolded-tests: New file.
29693         * tests/unicase/test-u8-is-casefolded.c: New file.
29694         * tests/unicase/test-is-casefolded.h: New file.
29695
29696         New module 'unicase/u32-is-casefolded'.
29697         * lib/unicase/u32-is-casefolded.c: New file.
29698         * modules/unicase/u32-is-casefolded: New file.
29699
29700         New module 'unicase/u16-is-casefolded'.
29701         * lib/unicase/u16-is-casefolded.c: New file.
29702         * modules/unicase/u16-is-casefolded: New file.
29703
29704         New module 'unicase/u8-is-casefolded'.
29705         * lib/unicase/u8-is-casefolded.c: New file.
29706         * modules/unicase/u8-is-casefolded: New file.
29707
29708         Tests for module 'unicase/u32-is-titlecase'.
29709         * modules/unicase/u32-is-titlecase-tests: New file.
29710         * tests/unicase/test-u32-is-titlecase.c: New file.
29711
29712         Tests for module 'unicase/u16-is-titlecase'.
29713         * modules/unicase/u16-is-titlecase-tests: New file.
29714         * tests/unicase/test-u16-is-titlecase.c: New file.
29715
29716         Tests for module 'unicase/u8-is-titlecase'.
29717         * modules/unicase/u8-is-titlecase-tests: New file.
29718         * tests/unicase/test-u8-is-titlecase.c: New file.
29719         * tests/unicase/test-is-titlecase.h: New file.
29720
29721         New module 'unicase/u32-is-titlecase'.
29722         * lib/unicase/u32-is-titlecase.c: New file.
29723         * modules/unicase/u32-is-titlecase: New file.
29724
29725         New module 'unicase/u16-is-titlecase'.
29726         * lib/unicase/u16-is-titlecase.c: New file.
29727         * modules/unicase/u16-is-titlecase: New file.
29728
29729         New module 'unicase/u8-is-titlecase'.
29730         * lib/unicase/u8-is-titlecase.c: New file.
29731         * modules/unicase/u8-is-titlecase: New file.
29732
29733         Tests for module 'unicase/u32-is-lowercase'.
29734         * modules/unicase/u32-is-lowercase-tests: New file.
29735         * tests/unicase/test-u32-is-lowercase.c: New file.
29736
29737         Tests for module 'unicase/u16-is-lowercase'.
29738         * modules/unicase/u16-is-lowercase-tests: New file.
29739         * tests/unicase/test-u16-is-lowercase.c: New file.
29740
29741         Tests for module 'unicase/u8-is-lowercase'.
29742         * modules/unicase/u8-is-lowercase-tests: New file.
29743         * tests/unicase/test-u8-is-lowercase.c: New file.
29744         * tests/unicase/test-is-lowercase.h: New file.
29745
29746         New module 'unicase/u32-is-lowercase'.
29747         * lib/unicase/u32-is-lowercase.c: New file.
29748         * modules/unicase/u32-is-lowercase: New file.
29749
29750         New module 'unicase/u16-is-lowercase'.
29751         * lib/unicase/u16-is-lowercase.c: New file.
29752         * modules/unicase/u16-is-lowercase: New file.
29753
29754         New module 'unicase/u8-is-lowercase'.
29755         * lib/unicase/u8-is-lowercase.c: New file.
29756         * modules/unicase/u8-is-lowercase: New file.
29757
29758         Tests for module 'unicase/u32-is-uppercase'.
29759         * modules/unicase/u32-is-uppercase-tests: New file.
29760         * tests/unicase/test-u32-is-uppercase.c: New file.
29761
29762         Tests for module 'unicase/u16-is-uppercase'.
29763         * modules/unicase/u16-is-uppercase-tests: New file.
29764         * tests/unicase/test-u16-is-uppercase.c: New file.
29765
29766         Tests for module 'unicase/u8-is-uppercase'.
29767         * modules/unicase/u8-is-uppercase-tests: New file.
29768         * tests/unicase/test-u8-is-uppercase.c: New file.
29769         * tests/unicase/test-is-uppercase.h: New file.
29770
29771         New module 'unicase/u32-is-uppercase'.
29772         * lib/unicase/u32-is-uppercase.c: New file.
29773         * modules/unicase/u32-is-uppercase: New file.
29774
29775         New module 'unicase/u16-is-uppercase'.
29776         * lib/unicase/u16-is-uppercase.c: New file.
29777         * modules/unicase/u16-is-uppercase: New file.
29778
29779         New module 'unicase/u8-is-uppercase'.
29780         * lib/unicase/u8-is-uppercase.c: New file.
29781         * modules/unicase/u8-is-uppercase: New file.
29782
29783         New module 'unicase/u32-is-invariant'.
29784         * lib/unicase/u32-is-invariant.c: New file.
29785         * modules/unicase/u32-is-invariant: New file.
29786
29787         New module 'unicase/u16-is-invariant'.
29788         * lib/unicase/u16-is-invariant.c: New file.
29789         * modules/unicase/u16-is-invariant: New file.
29790
29791         New module 'unicase/u8-is-invariant'.
29792         * lib/unicase/u8-is-invariant.c: New file.
29793         * lib/unicase/invariant.h: New file.
29794         * lib/unicase/u-is-invariant.h: New file.
29795         * modules/unicase/u8-is-invariant: New file.
29796
29797         Tests for module 'unicase/u32-casecoll'.
29798         * modules/unicase/u32-casecoll-tests: New file.
29799         * tests/unicase/test-u32-casecoll.c: New file.
29800
29801         Tests for module 'unicase/u16-casecoll'.
29802         * modules/unicase/u16-casecoll-tests: New file.
29803         * tests/unicase/test-u16-casecoll.c: New file.
29804
29805         Tests for module 'unicase/u8-casecoll'.
29806         * modules/unicase/u8-casecoll-tests: New file.
29807         * tests/unicase/test-u8-casecoll.c: New file.
29808
29809         New module 'unicase/u32-casecoll'.
29810         * lib/unicase/u32-casecoll.c: New file.
29811         * modules/unicase/u32-casecoll: New file.
29812
29813         New module 'unicase/u16-casecoll'.
29814         * lib/unicase/u16-casecoll.c: New file.
29815         * modules/unicase/u16-casecoll: New file.
29816
29817         New module 'unicase/u8-casecoll'.
29818         * lib/unicase/u8-casecoll.c: New file.
29819         * lib/unicase/u-casecoll.h: New file.
29820         * modules/unicase/u8-casecoll: New file.
29821
29822         New module 'unicase/u32-casexfrm'.
29823         * lib/unicase/u32-casexfrm.c: New file.
29824         * modules/unicase/u32-casexfrm: New file.
29825
29826         New module 'unicase/u16-casexfrm'.
29827         * lib/unicase/u16-casexfrm.c: New file.
29828         * modules/unicase/u16-casexfrm: New file.
29829
29830         New module 'unicase/u8-casexfrm'.
29831         * lib/unicase/u8-casexfrm.c: New file.
29832         * lib/unicase/u-casexfrm.h: New file.
29833         * modules/unicase/u8-casexfrm: New file.
29834
29835         Tests for module 'unicase/u32-casecmp'.
29836         * modules/unicase/u32-casecmp-tests: New file.
29837         * tests/unicase/test-u32-casecmp.c: New file.
29838
29839         Tests for module 'unicase/u16-casecmp'.
29840         * modules/unicase/u16-casecmp-tests: New file.
29841         * tests/unicase/test-u16-casecmp.c: New file.
29842
29843         Tests for module 'unicase/u8-casecmp'.
29844         * modules/unicase/u8-casecmp-tests: New file.
29845         * tests/unicase/test-u8-casecmp.c: New file.
29846         * tests/unicase/test-casecmp.h: New file.
29847
29848         New module 'unicase/u32-casecmp'.
29849         * lib/unicase/u32-casecmp.c: New file.
29850         * modules/unicase/u32-casecmp: New file.
29851
29852         New module 'unicase/u16-casecmp'.
29853         * lib/unicase/u16-casecmp.c: New file.
29854         * modules/unicase/u16-casecmp: New file.
29855
29856         New module 'unicase/u8-casecmp'.
29857         * lib/unicase/u8-casecmp.c: New file.
29858         * lib/unicase/u-casecmp.h: New file.
29859         * modules/unicase/u8-casecmp: New file.
29860
29861         Tests for module 'unicase/u32-casefold'.
29862         * modules/unicase/u32-casefold-tests: New file.
29863         * tests/unicase/test-u32-casefold.c: New file.
29864
29865         Tests for module 'unicase/u16-casefold'.
29866         * modules/unicase/u16-casefold-tests: New file.
29867         * tests/unicase/test-u16-casefold.c: New file.
29868
29869         Tests for module 'unicase/u8-casefold'.
29870         * modules/unicase/u8-casefold-tests: New file.
29871         * tests/unicase/test-u8-casefold.c: New file.
29872
29873         New module 'unicase/u32-casefold'.
29874         * lib/unicase/u32-casefold.c: New file.
29875         * modules/unicase/u32-casefold: New file.
29876
29877         New module 'unicase/u16-casefold'.
29878         * lib/unicase/u16-casefold.c: New file.
29879         * modules/unicase/u16-casefold: New file.
29880
29881         New module 'unicase/u8-casefold'.
29882         * lib/unicase/u8-casefold.c: New file.
29883         * lib/unicase/u-casefold.h: New file.
29884         * modules/unicase/u8-casefold: New file.
29885
29886         New module 'unicase/tocasefold'.
29887         * lib/unicase/casefold.h: New file.
29888         * lib/unicase/tocasefold.c: New file.
29889         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29890         * modules/unicase/tocasefold: New file.
29891
29892         Tests for module 'unicase/u32-totitle'.
29893         * modules/unicase/u32-totitle-tests: New file.
29894         * tests/unicase/test-u32-totitle.c: New file.
29895
29896         Tests for module 'unicase/u16-totitle'.
29897         * modules/unicase/u16-totitle-tests: New file.
29898         * tests/unicase/test-u16-totitle.c: New file.
29899
29900         Tests for module 'unicase/u8-totitle'.
29901         * modules/unicase/u8-totitle-tests: New file.
29902         * tests/unicase/test-u8-totitle.c: New file.
29903
29904         New module 'unicase/u32-totitle'.
29905         * lib/unicase/u32-totitle.c: New file.
29906         * modules/unicase/u32-totitle: New file.
29907
29908         New module 'unicase/u16-totitle'.
29909         * lib/unicase/u16-totitle.c: New file.
29910         * modules/unicase/u16-totitle: New file.
29911
29912         New module 'unicase/u8-totitle'.
29913         * lib/unicase/u8-totitle.c: New file.
29914         * lib/unicase/u-totitle.h: New file.
29915         * modules/unicase/u8-totitle: New file.
29916
29917         Tests for module 'unicase/u32-tolower'.
29918         * modules/unicase/u32-tolower-tests: New file.
29919         * tests/unicase/test-u32-tolower.c: New file.
29920
29921         Tests for module 'unicase/u16-tolower'.
29922         * modules/unicase/u16-tolower-tests: New file.
29923         * tests/unicase/test-u16-tolower.c: New file.
29924
29925         Tests for module 'unicase/u8-tolower'.
29926         * modules/unicase/u8-tolower-tests: New file.
29927         * tests/unicase/test-u8-tolower.c: New file.
29928
29929         New module 'unicase/u32-tolower'.
29930         * lib/unicase/u32-tolower.c: New file.
29931         * modules/unicase/u32-tolower: New file.
29932
29933         New module 'unicase/u16-tolower'.
29934         * lib/unicase/u16-tolower.c: New file.
29935         * modules/unicase/u16-tolower: New file.
29936
29937         New module 'unicase/u8-tolower'.
29938         * lib/unicase/u8-tolower.c: New file.
29939         * modules/unicase/u8-tolower: New file.
29940
29941         Tests for module 'unicase/u32-toupper'.
29942         * modules/unicase/u32-toupper-tests: New file.
29943         * tests/unicase/test-u32-toupper.c: New file.
29944
29945         Tests for module 'unicase/u16-toupper'.
29946         * modules/unicase/u16-toupper-tests: New file.
29947         * tests/unicase/test-u16-toupper.c: New file.
29948
29949         Tests for module 'unicase/u8-toupper'.
29950         * modules/unicase/u8-toupper-tests: New file.
29951         * tests/unicase/test-u8-toupper.c: New file.
29952
29953         New module 'unicase/u32-toupper'.
29954         * lib/unicase/u32-toupper.c: New file.
29955         * modules/unicase/u32-toupper: New file.
29956
29957         New module 'unicase/u16-toupper'.
29958         * lib/unicase/u16-toupper.c: New file.
29959         * modules/unicase/u16-toupper: New file.
29960
29961         New module 'unicase/u8-toupper'.
29962         * lib/unicase/u8-toupper.c: New file.
29963         * modules/unicase/u8-toupper: New file.
29964
29965         New module 'unicase/u32-casemap'.
29966         * lib/unicase/u32-casemap.c: New file.
29967         * modules/unicase/u32-casemap: New file.
29968
29969         New module 'unicase/u16-casemap'.
29970         * lib/unicase/u16-casemap.c: New file.
29971         * modules/unicase/u16-casemap: New file.
29972
29973         New module 'unicase/u8-casemap'.
29974         * lib/unicase/unicasemap.h: New file.
29975         * lib/unicase/u8-casemap.c: New file.
29976         * lib/unicase/u-casemap.h: New file.
29977         * modules/unicase/u8-casemap: New file.
29978
29979         New module 'unicase/special-casing'.
29980         * lib/unicase/special-casing.h: New file.
29981         * lib/unicase/special-casing.c: New file.
29982         * lib/unicase/special-casing-table.gperf: New file, generated by
29983         gen-uni-tables.c.
29984         * modules/unicase/special-casing: New file.
29985
29986         Tests for module 'unicase/locale-language'.
29987         * modules/unicase/locale-language-tests: New file.
29988         * tests/unicase/test-locale-language.sh: New file.
29989         * tests/unicase/test-locale-language.c: New file.
29990
29991         New module 'unicase/locale-language'.
29992         * lib/unicase/locale-language.c: New file.
29993         * lib/unicase/locale-languages.gperf: New file.
29994         * modules/unicase/locale-language: New file.
29995
29996         Generate more tables for case conversion and case folding.
29997         * lib/gen-uni-tables.c (SCC_*): New enum items.
29998         (struct special_casing_rule): New type.
29999         (casing_rules, num_casing_rules, allocated_casing_rules): New
30000         variables.
30001         (add_casing_rule, fill_casing_rules): New functions.
30002         (struct casefold_rule): New type.
30003         (casefolding_rules, num_casefolding_rules,
30004         allocated_casefolding_rules): New variables.
30005         (fill_casefolding_rules): New function.
30006         (unicode_casefold): New variable.
30007         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30008         sort_casing_rules, output_casing_rules): New functions.
30009         (main): Accept to more arguments: SpecialCasing.txt and
30010         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30011         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30012         Output mapping for casefolding.
30013
30014         * lib/unicase.h: Include stdbool.h, uninorm.h.
30015         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30016         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30017         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30018         arguments.
30019         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30020         resultp arguments.
30021         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30022         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30023         resultp arguments.
30024         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30025         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30026         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30027         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30028         declarations.
30029         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30030
30031 2009-03-08  Bruno Haible  <bruno@clisp.org>
30032
30033         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30034         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30035         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30036         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30037
30038 2009-03-07  Bruno Haible  <bruno@clisp.org>
30039
30040         Adjust u*_normcmp, u*_normcoll API.
30041         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30042         u16_normcoll, u32_normcoll): Change failure conventions.
30043         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30044         errno and return -1.
30045         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30046
30047 2009-03-07  Bruno Haible  <bruno@clisp.org>
30048
30049         Tests for module 'uninorm/u32-normcoll'.
30050         * modules/uninorm/u32-normcoll-tests: New file.
30051         * tests/uninorm/test-u32-normcoll.c: New file.
30052
30053         Tests for module 'uninorm/u16-normcoll'.
30054         * modules/uninorm/u16-normcoll-tests: New file.
30055         * tests/uninorm/test-u16-normcoll.c: New file.
30056
30057         Tests for module 'uninorm/u8-normcoll'.
30058         * modules/uninorm/u8-normcoll-tests: New file.
30059         * tests/uninorm/test-u8-normcoll.c: New file.
30060
30061 2009-03-07  Bruno Haible  <bruno@clisp.org>
30062
30063         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30064         tests/uninorm/test-u32-normcmp.c.
30065         * tests/uninorm/test-u32-normcmp.c: Include it.
30066         (test_nonascii): New function, extracted from main. Add some more
30067         tests.
30068         (main): Invoke test_ascii and test_nonascii.
30069         * modules/uninorm/u32-normcmp-tests (Files): Add
30070         tests/uninorm/test-u32-normcmp.h.
30071         (Depends-on): Remove uninorm/u32-normcmp.
30072
30073         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30074         tests/uninorm/test-u16-normcmp.c.
30075         * tests/uninorm/test-u16-normcmp.c: Include it.
30076         (test_nonascii): New function, extracted from main. Add some more
30077         tests.
30078         (main): Invoke test_ascii and test_nonascii.
30079         * modules/uninorm/u16-normcmp-tests (Files): Add
30080         tests/uninorm/test-u16-normcmp.h.
30081         (Depends-on): Remove uninorm/u16-normcmp.
30082
30083         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30084         tests/uninorm/test-u8-normcmp.c.
30085         * tests/uninorm/test-u8-normcmp.c: Include it.
30086         (test_nonascii): New function, extracted from main. Add some more
30087         tests.
30088         (main): Invoke test_ascii and test_nonascii.
30089         * modules/uninorm/u8-normcmp-tests (Files): Add
30090         tests/uninorm/test-u8-normcmp.h.
30091         (Depends-on): Remove uninorm/u8-normcmp.
30092
30093 2009-03-07  Bruno Haible  <bruno@clisp.org>
30094
30095         New module 'uninorm/u32-normcoll'.
30096         * lib/uninorm/u32-normcoll.c: New file.
30097         * modules/uninorm/u32-normcoll: New file.
30098
30099         New module 'uninorm/u16-normcoll'.
30100         * lib/uninorm/u16-normcoll.c: New file.
30101         * modules/uninorm/u16-normcoll: New file.
30102
30103         New module 'uninorm/u8-normcoll'.
30104         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30105         declarations.
30106         * lib/uninorm/u8-normcoll.c: New file.
30107         * lib/uninorm/u-normcoll.h: New file.
30108         * modules/uninorm/u8-normcoll: New file.
30109
30110         New module 'uninorm/u32-normxfrm'.
30111         * lib/uninorm/u32-normxfrm.c: New file.
30112         * modules/uninorm/u32-normxfrm: New file.
30113
30114         New module 'uninorm/u16-normxfrm'.
30115         * lib/uninorm/u16-normxfrm.c: New file.
30116         * modules/uninorm/u16-normxfrm: New file.
30117
30118         New module 'uninorm/u8-normxfrm'.
30119         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30120         declarations.
30121         * lib/uninorm/u8-normxfrm.c: New file.
30122         * lib/uninorm/u-normxfrm.h: New file.
30123         * modules/uninorm/u8-normxfrm: New file.
30124
30125 2009-03-07  Bruno Haible  <bruno@clisp.org>
30126
30127         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30128         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30129         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30130
30131 2009-03-07  Bruno Haible  <bruno@clisp.org>
30132
30133         New module 'memxfrm'.
30134         * lib/memxfrm.h: New file.
30135         * lib/memxfrm.c: New file.
30136         * modules/memxfrm: New file.
30137
30138 2009-03-07  Bruno Haible  <bruno@clisp.org>
30139
30140         New module 'memcmp2'.
30141         * lib/memcmp2.h: New file.
30142         * lib/memcmp2.c: New file.
30143         * modules/memcmp2: New file.
30144
30145 2009-03-07  Bruno Haible  <bruno@clisp.org>
30146
30147         Tests for module 'uninorm/decomposing-form'.
30148         * modules/uninorm/decomposing-form-tests: New file.
30149         * tests/uninorm/test-decomposing-form.c: New file.
30150
30151         New module 'uninorm/decomposing-form'.
30152         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30153         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30154         Add 'decomposing_variant' field.
30155         * lib/uninorm/decomposing-form.c: New file.
30156         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30157         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30158         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30159         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30160         * modules/uninorm/decomposing-form: New file.
30161         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30162         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30163
30164 2009-03-07  Bruno Haible  <bruno@clisp.org>
30165
30166         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30167         strings.
30168
30169 2009-03-06  Bruno Haible  <bruno@clisp.org>
30170
30171         Tests for module 'uninorm/u32-normcmp'.
30172         * tests/uninorm/test-u32-normcmp.c: New file.
30173         * modules/uninorm/u32-normcmp-tests: New file.
30174
30175         Tests for module 'uninorm/u16-normcmp'.
30176         * tests/uninorm/test-u16-normcmp.c: New file.
30177         * modules/uninorm/u16-normcmp-tests: New file.
30178
30179         Tests for module 'uninorm/u8-normcmp'.
30180         * tests/uninorm/test-u8-normcmp.c: New file.
30181         * modules/uninorm/u8-normcmp-tests: New file.
30182
30183         New module 'uninorm/u32-normcmp'.
30184         * lib/uninorm/u32-normcmp.c: New file.
30185         * modules/uninorm/u32-normcmp: New file.
30186
30187         New module 'uninorm/u16-normcmp'.
30188         * lib/uninorm/u16-normcmp.c: New file.
30189         * modules/uninorm/u16-normcmp: New file.
30190
30191         New module 'uninorm/u8-normcmp'.
30192         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30193         declarations.
30194         * lib/uninorm/u8-normcmp.c: New file.
30195         * lib/uninorm/u-normcmp.h: New file.
30196         * modules/uninorm/u8-normcmp: New file.
30197
30198 2009-03-06  Bruno Haible  <bruno@clisp.org>
30199
30200         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30201         Reported by Eric Blake.
30202
30203 2009-03-06  Eric Blake  <ebb9@byu.net>
30204             Bruno Haible  <bruno@clisp.org>
30205
30206         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30207         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30208         condition.
30209         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30210         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30211         condition.
30212         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30213
30214 2009-03-06  Eric Blake  <ebb9@byu.net>
30215
30216         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30217         to avoid compiler warnings.
30218         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30219
30220 2009-03-05  Bruno Haible  <bruno@clisp.org>
30221
30222         * tests/test-ftell.c (main): Disable test beyond end of file on
30223         FreeMiNT.
30224         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30225
30226 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30227
30228         * lib/filevercmp.c: Move hidden files up in ordering.
30229         * tests/test-filevercmp.c: Add tests for hidden files.
30230
30231 2009-03-04  Bruno Haible  <bruno@clisp.org>
30232
30233         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30234         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30235         AM_CFLAGS.
30236         Reported by Simon Josefsson.
30237
30238 2009-03-03  Bruno Haible  <bruno@clisp.org>
30239
30240         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30241         Reported by Simon Josefsson.
30242
30243         * doc/ld-version-script.texi: Update node reference.
30244
30245 2009-03-03  Bruno Haible  <bruno@clisp.org>
30246
30247         * modules/visibility (License): Change to 'unlimited'.
30248         Suggested by Simon Josefsson.
30249
30250 2009-03-03  Jim Meyering  <meyering@redhat.com>
30251
30252         unlinkdir: cannot_unlink_dir may modify process state
30253         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30254         it's neither thread-safe nor appropriate for use in a library.
30255
30256 2009-03-03  Eric Blake  <ebb9@byu.net>
30257
30258         test-closein: silence test under Darwin
30259         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30260         care if it dies from EPIPE or EBADF.
30261
30262 2009-03-03  Bruno Haible  <bruno@clisp.org>
30263
30264         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30265         earlier.
30266         * doc/visibility.texi: Fix @node and @section.
30267
30268 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30269
30270         * doc/gnulib.texi: Link to sections for ld version script and
30271         visibility.
30272         * doc/visibility.texi: Add @node and @section.
30273         * modules/ld-version-script: New module.
30274         * m4/ld-version-script.m4: New file.
30275         * doc/ld-version-script.texi: New file.
30276
30277 2009-03-02  David Lutterkort  <lutter@redhat.com>
30278
30279         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30281
30282 2009-03-02  Bruno Haible  <bruno@clisp.org>
30283
30284         * doc/visibility.texi: Mention libtool's -export-symbols option.
30285
30286 2009-03-02  Jim Meyering  <meyering@redhat.com>
30287
30288         announce-gen: new option: --no-print-checksums
30289         * build-aux/announce-gen (usage): Describe it.
30290         (print_checksums): Print a newline here, not in the [*] footnote.
30291         (main): Honor it.
30292
30293 2009-03-01  Bruno Haible  <bruno@clisp.org>
30294
30295         Use socklen_t in the native Windows replacements prototypes.
30296         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30297         instead of 'int'.
30298         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30299         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30300         * modules/getsockopt (Depends-on): Add socklen.
30301         * modules/setsockopt (Depends-on): Add socklen.
30302
30303 2009-03-01  Bruno Haible  <bruno@clisp.org>
30304
30305         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30306         least 4.2.
30307
30308 2009-03-01  Eric Blake  <ebb9@byu.net>
30309             Bruno Haible  <bruno@clisp.org>
30310
30311         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30312         error messages.
30313         * lib/wait-process.c (wait_subprocess): Omit error message about
30314         deadly signal sent to the child of termsigp != NULL.
30315
30316 2009-03-01  Eric Blake  <ebb9@byu.net>
30317
30318         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30319
30320 2009-03-01  Bruno Haible  <bruno@clisp.org>
30321
30322         Avoid a gcc warning.
30323         * tests/test-sched.c (b): Make global.
30324         Reported by Eric Blake.
30325
30326 2009-01-19  Martin Lambers  <marlam@marlam.de>
30327
30328         Provide POSIX semantics for socket timeout options on W32.
30329         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30330         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30331         * modules/setsockopt: Depend on sys_time module for struct timeval.
30332         * modules/getsockopt: Depend on sys_time module for struct timeval.
30333
30334 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30335
30336         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30337         __USE_GNU, for consistency with netdb.in.h.
30338         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30339
30340 2009-03-01  Bruno Haible  <bruno@clisp.org>
30341
30342         More support for FreeMiNT.
30343         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30344         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30345
30346 2009-03-01  Bruno Haible  <bruno@clisp.org>
30347
30348         More support for FreeMiNT.
30349         * lib/fpurge.c (fpurge): Correct last commit.
30350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30351
30352 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30353
30354         Fix unportable awk script in vc-list-files.
30355         * build-aux/vc-list-files: In the replacement awk script, use
30356         substr with a second argument of 1, not zero.
30357         Report by Simon Josefsson.
30358
30359 2009-02-28  Bruno Haible  <bruno@clisp.org>
30360
30361         More support for FreeMiNT.
30362         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30363         to FreeMiNT today.
30364         * lib/fwriting.c (fwriting): Likewise.
30365         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30366
30367 2009-02-28  Bruno Haible  <bruno@clisp.org>
30368
30369         * tests/test-freadseek.c (main): Disable test beyond end of file on
30370         FreeMiNT.
30371         * tests/test-ftello.c (main): Likewise.
30372         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30373
30374 2009-02-28  Bruno Haible  <bruno@clisp.org>
30375
30376         Add tentative support for FreeMiNT.
30377         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30378         * lib/fpurge.c (fpurge): Likewise.
30379         * lib/freadable.c (freadable): Likewise.
30380         * lib/freading.c (freading): Likewise.
30381         * lib/freadptr.c (freadptr): Likewise.
30382         * lib/freadseek.c (freadptrinc): Likewise.
30383         * lib/fseeko.c (rpl_fseeko): Likewise.
30384         * lib/fseterr.c (fseterr): Likewise.
30385         * lib/fwritable.c (fwritable): Likewise.
30386         * lib/fwriting.c (fwriting): Likewise.
30387         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30388         Hourihane.
30389         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30390
30391 2009-02-28  Bruno Haible  <bruno@clisp.org>
30392
30393         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30394         SIGCHLD.
30395         Reported by Jim Meyering.
30396
30397 2009-02-28  Bruno Haible  <bruno@clisp.org>
30398
30399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30400         Mention the results of these tests on various platforms.
30401         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30402         order.
30403         * doc/posix-functions/printf.texi: Likewise.
30404         * doc/posix-functions/snprintf.texi: Likewise.
30405         * doc/posix-functions/sprintf.texi: Likewise.
30406         * doc/posix-functions/vfprintf.texi: Likewise.
30407         * doc/posix-functions/vprintf.texi: Likewise.
30408         * doc/posix-functions/vsnprintf.texi: Likewise.
30409         * doc/posix-functions/vsprintf.texi: Likewise.
30410         * doc/glibc-functions/obstack_printf.texi: Likewise.
30411         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30412
30413 2009-02-28  Bruno Haible  <bruno@clisp.org>
30414
30415         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30416         Reported by Loïc Minier <lool@dooz.org>.
30417
30418 2009-02-27  Bruno Haible  <bruno@clisp.org>
30419
30420         * gnulib-tool (func_import): Make the sed expression used to create the
30421         sed script for updating the .gitignore file POSIX compliant.
30422         Reported by Eric Blake.
30423
30424 2009-02-27  Bruno Haible  <bruno@clisp.org>
30425
30426         * gnulib-tool (sed): Don't alias as "sed --posix".
30427         Reported by Eric Blake.
30428
30429 2009-02-27  Bruno Haible  <bruno@clisp.org>
30430
30431         Avoid test link errors.
30432         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30433         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30434         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30435         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30437
30438 2009-02-27  Bruno Haible  <bruno@clisp.org>
30439
30440         Avoid spurious "(cached)" in configure output.
30441         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30442         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30443         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30444         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30445         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30446         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30447         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30448         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30449         Reported by Eric Blake.
30450
30451 2009-02-27  Eric Blake  <ebb9@byu.net>
30452
30453         printf: fix regression in previous patch
30454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30455
30456 2009-02-27  Bruno Haible  <bruno@clisp.org>
30457
30458         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30459         value.
30460         * lib/stdint.in.h: Likewise.
30461         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30462
30463 2009-02-27  Eric Blake  <ebb9@byu.net>
30464
30465         doc: mention more functions added in cygwin 1.7.0
30466         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30467         addition.
30468         * doc/posix-functions/open_wmemstream.texi: Likewise.
30469         * doc/posix-functions/wcsnlen.texi: Likewise.
30470         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30471         * doc/posix-functions/wcstod.texi: Likewise.
30472         * doc/posix-functions/wcstof.texi: Likewise.
30473         * doc/posix-functions/wcstoimax.texi: Likewise.
30474         * doc/posix-functions/wcstok.texi: Likewise.
30475         * doc/posix-functions/wcstoumax.texi: Likewise.
30476
30477         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30479         * doc/posix-functions/fprintf.texi: Update.
30480         * doc/posix-functions/printf.texi: Update.
30481         * doc/posix-functions/snprintf.texi: Update.
30482         * doc/posix-functions/sprintf.texi: Update.
30483         * doc/posix-functions/vfprintf.texi: Update.
30484         * doc/posix-functions/vprintf.texi: Update.
30485         * doc/posix-functions/vsnprintf.texi: Update.
30486         * doc/posix-functions/vsprintf.texi: Update.
30487         * doc/glibc-functions/obstack_printf.texi: Update.
30488         * doc/glibc-functions/obstack_vprintf.texi: Update.
30489
30490 2009-02-26  Eric Blake  <ebb9@byu.net>
30491
30492         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30493         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30494         compilation bug by using runtime conversion.
30495         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30496         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30497         * modules/ceill-tests (Files): Use nan.h.
30498         * modules/floorl-tests (Files): Likewise.
30499         * modules/frexpl-tests (Files): Likewise.
30500         * modules/isnanl-tests (Files): Likewise.
30501         * modules/ldexpl-tests (Files): Likewise.
30502         * modules/roundl-tests (Files): Likewise.
30503         * modules/truncl-tests (Files): Likewise.
30504         * tests/test-ceill.c (main): Use a working NaN.
30505         * tests/test-floorl.c (main): Likewise.
30506         * tests/test-frexpl.c (main): Likewise.
30507         * tests/test-isnan.c (test_long_double): Likewise.
30508         * tests/test-isnanl.h (main): Likewise.
30509         * tests/test-ldexpl.h (main): Likewise.
30510         * tests/test-roundl.h (main): Likewise.
30511         * tests/test-truncl.h (main): Likewise.
30512         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30513
30514 2009-02-26  Eric Blake  <ebb9@byu.net>
30515             Bruno Haible  <bruno@clisp.org>
30516
30517         Work around a *printf bug with %ls on Solaris.
30518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30519         precision is specified, sprintf stops converting the wide string
30520         argument when the number of bytes that have been produced by this
30521         conversion equals or exceeds the precision.
30522         * doc/posix-functions/fprintf.texi: Update.
30523         * doc/posix-functions/printf.texi: Update.
30524         * doc/posix-functions/snprintf.texi: Update.
30525         * doc/posix-functions/sprintf.texi: Update.
30526         * doc/posix-functions/vfprintf.texi: Update.
30527         * doc/posix-functions/vprintf.texi: Update.
30528         * doc/posix-functions/vsnprintf.texi: Update.
30529         * doc/posix-functions/vsprintf.texi: Update.
30530         * doc/glibc-functions/obstack_printf.texi: Update.
30531         * doc/glibc-functions/obstack_vprintf.texi: Update.
30532
30533 2009-02-26  Eric Blake  <ebb9@byu.net>
30534
30535         stdlib: favor compiler check of random.h
30536         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30537         to avoid an ObjC random.h installed by Swarm.
30538
30539 2009-02-26  Bruno Haible  <bruno@clisp.org>
30540
30541         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30542         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30543         Reported by Gary V. Vaughan <gary@gnu.org>.
30544
30545 2009-02-26  Bruno Haible  <bruno@clisp.org>
30546
30547         Fix *printf behaviour regarding the %ls directive.
30548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30549         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30550         NEED_PRINTF_DIRECTIVE_LS.
30551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30552         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30554         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30555         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30556         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30557         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30562         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30566         * doc/posix-functions/fprintf.texi: Update.
30567         * doc/posix-functions/printf.texi: Update.
30568         * doc/posix-functions/snprintf.texi: Update.
30569         * doc/posix-functions/sprintf.texi: Update.
30570         * doc/posix-functions/vfprintf.texi: Update.
30571         * doc/posix-functions/vprintf.texi: Update.
30572         * doc/posix-functions/vsnprintf.texi: Update.
30573         * doc/posix-functions/vsprintf.texi: Update.
30574         * doc/glibc-functions/obstack_printf.texi: Update.
30575         * doc/glibc-functions/obstack_vprintf.texi: Update.
30576         Reported by Eric Blake.
30577
30578 2009-02-25  Bruno Haible  <bruno@clisp.org>
30579
30580         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30581         with known value.
30582         Reported by Gary V. Vaughan <gary@gnu.org>.
30583
30584 2009-02-25  Bruno Haible  <bruno@clisp.org>
30585
30586         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30587         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30588         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30589         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30590         Reported by Gary V. Vaughan <gary@gnu.org>.
30591
30592 2009-02-25  Bruno Haible  <bruno@clisp.org>
30593
30594         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30595         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30596         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30597         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30598         Reported by Gary V. Vaughan <gary@gnu.org>.
30599
30600 2009-02-25  Eric Blake  <ebb9@byu.net>
30601
30602         tests: skip fseek/ftell tests if ungetc is broken
30603         * m4/ungetc.m4: New file.
30604         * modules/fseek-tests: Split test, so ungetc dependency is
30605         separate from rest of test.
30606         * modules/fseeko-tests: Likewise.
30607         * modules/ftell-tests: Likewise.
30608         * modules/ftello-tests: Likewise.
30609         * tests/test-fseek.c (main): Isolate ungetc dependency.
30610         * tests/test-fseeko.c (main): Likewise.
30611         * tests/test-ftell.c (main): Likewise.
30612         * tests/test-ftello.c (main): Likewise.
30613         * tests/test-fseek2.sh: New file.
30614         * tests/test-fseeko2.sh: Likewise.
30615         * tests/test-ftell2.sh: Likewise.
30616         * tests/test-ftello2.sh: Likewise.
30617
30618 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30619
30620         test-getaddrinfo: fix usage of skip return code 77
30621         * tests/test-gettaddrinfo.c: Return skip code 77 only
30622         for first occurance of skip (4x77 is not 77)
30623
30624 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30625
30626         strtod: avoid C99 decl-after-statement
30627         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30628
30629 2009-02-24  Eric Blake  <ebb9@byu.net>
30630
30631         strtod: detect HP-UX 11.31 bug
30632         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30633         Reported by Gary V. Vaughan.
30634
30635 2009-02-23  Bruno Haible  <bruno@clisp.org>
30636
30637         Fix invalid read past end of memory block.
30638         * lib/vasnprintf.c (DCHAR_SET): Define.
30639         (local_wcslen): Define only when needed.
30640         (local_strnlen, local_wcsnlen): New functions.
30641         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30642         directives that involve a conversion ourselves.
30643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30644         wcsnlen, mbrtowc, wcrtomb.
30645         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30646         * tests/test-vasprintf-posix.c (test_function): Likewise.
30647         * tests/test-snprintf-posix.h (test_function): Likewise.
30648         * tests/test-sprintf-posix.h (test_function): Likewise.
30649         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30650
30651 2009-02-22  Bruno Haible  <bruno@clisp.org>
30652
30653         Implement new clarified decomposition of Hangul syllables.
30654         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30655         of type LTV, return only a pairwise decomposition.
30656         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30657         Likewise.
30658         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30659         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30660         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30661
30662 2009-02-22  Bruno Haible  <bruno@clisp.org>
30663
30664         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30665         zero-length results and shrink excess allocated memory.
30666         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30667         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30668         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30669         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30670         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30671         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30672         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30673         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30674         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30675         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30676         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30677         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30678
30679 2009-02-21  Bruno Haible  <bruno@clisp.org>
30680
30681         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30682         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30683         spaces after a period. Put a space between a macro name and its
30684         argument list. Trivial rewordings.
30685         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30686         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30687         (main): Return 0 explicitly.
30688
30689 2009-02-21  Bruno Haible  <bruno@clisp.org>
30690
30691         Tests for module 'uninorm/filter'.
30692         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30693         * modules/uninorm/filter-tests: New file.
30694
30695         New module 'uninorm/filter'.
30696         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30697         uninorm_filter_flush, uninorm_filter_free): New declarations.
30698         * lib/uninorm/uninorm-filter.c: New file.
30699         * modules/uninorm/filter: New file.
30700
30701 2009-02-21  Bruno Haible  <bruno@clisp.org>
30702
30703         Tests for module 'uninorm/nfkc'.
30704         * tests/uninorm/test-nfkc.c: New file.
30705         * tests/uninorm/test-u8-nfkc.c: New file.
30706         * tests/uninorm/test-u16-nfkc.c: New file.
30707         * tests/uninorm/test-u32-nfkc.c: New file.
30708         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30709         * tests/uninorm/test-u32-nfkc-big.c: New file.
30710         * modules/uninorm/nfkc-tests: New file.
30711
30712         New module 'uninorm/nfkc'.
30713         * lib/uninorm/nfkc.c: New file.
30714         * modules/uninorm/nfkc: New file.
30715
30716         Tests for module 'uninorm/nfkd'.
30717         * tests/uninorm/test-nfkd.c: New file.
30718         * tests/uninorm/test-u8-nfkd.c: New file.
30719         * tests/uninorm/test-u16-nfkd.c: New file.
30720         * tests/uninorm/test-u32-nfkd.c: New file.
30721         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30722         * tests/uninorm/test-u32-nfkd-big.c: New file.
30723         * modules/uninorm/nfkd-tests: New file.
30724
30725         New module 'uninorm/nfkd'.
30726         * lib/uninorm/nfkd.c: New file.
30727         * modules/uninorm/nfkd: New file.
30728
30729         Tests for module 'uninorm/nfc'.
30730         * tests/uninorm/test-nfc.c: New file.
30731         * tests/uninorm/test-u8-nfc.c: New file.
30732         * tests/uninorm/test-u16-nfc.c: New file.
30733         * tests/uninorm/test-u32-nfc.c: New file.
30734         * tests/uninorm/test-u32-nfc-big.sh: New file.
30735         * tests/uninorm/test-u32-nfc-big.c: New file.
30736         * modules/uninorm/nfc-tests: New file.
30737
30738         New module 'uninorm/nfc'.
30739         * lib/uninorm/nfc.c: New file.
30740         * modules/uninorm/nfc: New file.
30741
30742         Tests for module 'uninorm/nfd'.
30743         * tests/uninorm/test-nfd.c: New file.
30744         * tests/uninorm/test-u8-nfd.c: New file.
30745         * tests/uninorm/test-u16-nfd.c: New file.
30746         * tests/uninorm/test-u32-nfd.c: New file.
30747         * tests/uninorm/test-u32-nfd-big.sh: New file.
30748         * tests/uninorm/test-u32-nfd-big.c: New file.
30749         * tests/uninorm/test-u32-normalize-big.h: New file.
30750         * tests/uninorm/test-u32-normalize-big.c: New file.
30751         * tests/uninorm/NormalizationTest.txt: New file, created from
30752         Unicode 5.1.0 NormalizationTest.txt.
30753         * modules/uninorm/nfd-tests: New file.
30754
30755         New module 'uninorm/nfd'.
30756         * lib/uninorm/nfd.c: New file.
30757         * modules/uninorm/nfd: New file.
30758
30759         New module 'uninorm/u32-normalize'.
30760         * lib/uninorm/u32-normalize.c: New file.
30761         * modules/uninorm/u32-normalize: New file.
30762
30763         New module 'uninorm/u16-normalize'.
30764         * lib/uninorm/u16-normalize.c: New file.
30765         * modules/uninorm/u16-normalize: New file.
30766
30767         New module 'uninorm/u8-normalize'.
30768         * lib/uninorm/u8-normalize.c: New file.
30769         * lib/uninorm/normalize-internal.h: New file.
30770         * lib/uninorm/u-normalize-internal.h: New file.
30771         * modules/uninorm/u8-normalize: New file.
30772
30773         New module 'uninorm/decompose-internal'.
30774         * lib/uninorm/decompose-internal.c: New file.
30775         * modules/uninorm/decompose-internal: New file.
30776
30777         Tests for module 'uninorm/composition'.
30778         * tests/uninorm/test-composition.c: New file.
30779         * modules/uninorm/composition-tests: New file.
30780
30781         New module 'uninorm/composition'.
30782         * lib/uninorm/composition.c: New file.
30783         * lib/uninorm/composition-table.gperf: New file, generated by
30784         gen-uni-tables.
30785         * modules/uninorm/composition: New file.
30786
30787         Tests for module 'uninorm/compat-decomposition'.
30788         * tests/uninorm/test-compat-decomposition.c: New file.
30789         * modules/uninorm/compat-decomposition-tests: New file.
30790
30791         New module 'uninorm/compat-decomposition'.
30792         * lib/uninorm/decompose-internal.h: New file.
30793         * lib/uninorm/compat-decomposition.c: New file.
30794         * modules/uninorm/compat-decomposition: New file.
30795
30796         Tests for module 'uninorm/canonical-decomposition'.
30797         * tests/uninorm/test-canonical-decomposition.c: New file.
30798         * modules/uninorm/canonical-decomposition-tests: New file.
30799
30800         New module 'uninorm/canonical-decomposition'.
30801         * lib/uninorm/canonical-decomposition.c: New file.
30802         * modules/uninorm/canonical-decomposition: New file.
30803
30804         Tests for module 'uninorm/decomposition'.
30805         * tests/uninorm/test-decomposition.c: New file.
30806         * modules/uninorm/decomposition-tests: New file.
30807
30808         New module 'uninorm/decomposition'.
30809         * lib/uninorm/decomposition.c: New file.
30810         * modules/uninorm/decomposition: New file.
30811
30812         New module 'uninorm/decomposition-table'.
30813         * lib/uninorm/decomposition-table.h: New file.
30814         * lib/uninorm/decomposition-table.c: New file.
30815         * lib/uninorm/decomposition-table1.h: New file, generated by
30816         gen-uni-tables.
30817         * lib/uninorm/decomposition-table2.h: New file, generated by
30818         gen-uni-tables.
30819         * modules/uninorm/decomposition-table: New file.
30820
30821         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30822         (UC_DECOMP_*): New enumeration items.
30823         (get_decomposition): New function.
30824         (struct decomp_table): New type.
30825         (output_decomposition, output_decomposition_tables): New functions.
30826         (unicode_composition_exclusions): New variable.
30827         (fill_composition_exclusions, debug_output_composition_tables): New
30828         functions.
30829         (main): Accept one more argument. Invoke fill_composition_exclusions.
30830         Output decomposition and composition tables.
30831
30832         New module 'uninorm/base'.
30833         * lib/uninorm.h: New file.
30834         * lib/unictype.h: Update comment.
30835         * modules/uninorm/base: New file.
30836
30837 2009-02-21  David Lutterkort  <lutter@redhat.com>
30838
30839         Tests for module 'safe-alloc'.
30840         * tests/test-safe-alloc.c: New file.
30841         * modules/safe-alloc-tests: New file.
30842
30843         New module 'safe-alloc'.
30844         * lib/safe-alloc.h: New file.
30845         * lib/safe-alloc.c: New file.
30846         * m4/safe-alloc.m4: New file.
30847         * modules/safe-alloc: New file.
30848         * doc/safe-alloc.texi: New file.
30849         * doc/gnulib.texi: Include it.
30850         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30851         safe-alloc.
30852
30853 2009-02-18  Bruno Haible  <bruno@clisp.org>
30854
30855         Fix link error on non-glibc systems.
30856         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30857         variable.
30858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30859
30860 2009-02-18  Jim Meyering  <meyering@redhat.com>
30861
30862         fts: avoid used-uninitialized error due to recent change
30863         * lib/fts.c (fts_read): Guard uses of the new member,
30864         parent->fts_n_dirs_remaining, since it's not relevant for
30865         the parent of a directory specified on the command-line.
30866
30867 2009-02-17  James Youngman  <jay@gnu.org>
30868             Bruno Haible  <bruno@clisp.org>
30869
30870         * m4/include_next.m4: Reformulate comment.
30871
30872 2009-02-16  Jim Meyering  <meyering@redhat.com>
30873
30874         fts: add #if guards so that the fts_lgpl module still builds
30875         * lib/fts.c: Guard just-added hash-table-using parts with
30876         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30877         Reported by Simon Josefsson.
30878
30879 2009-02-15  Bruno Haible  <bruno@clisp.org>
30880
30881         * modules/array-mergesort-tests: New file.
30882         * tests/test-array-mergesort.c: New file.
30883
30884         New module 'array-mergesort'.
30885         * modules/array-mergesort: New file.
30886         * lib/array-mergesort.h: New file.
30887
30888 2009-02-15  Bruno Haible  <bruno@clisp.org>
30889
30890         Fix 2009-02-07 commit.
30891         * lib/gen-uni-tables.c (output_predicate, output_category,
30892         output_combclass, output_bidi_category, output_decimal_digit,
30893         output_digit, output_numeric, output_mirror, output_scripts,
30894         output_ident_category, output_simple_mapping): Fix format directives.
30895         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30896
30897 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30898
30899         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30900         fixes are available from IBM.
30901
30902 2009-02-13  Jim Meyering  <meyering@redhat.com>
30903
30904         fts: arrange not to stat non-directories in more cases
30905         This makes GNU find (when it doesn't need to stat each file)
30906         *much* more efficient at traversing reiserfs file systems.
30907         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30908         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30909         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30910         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30911         (leaf_optimization_applies): New function.
30912         (LCO_hash, LCO_compare): New helper functions.
30913         (link_count_optimize_ok): New function.
30914         (fts_stat): Initialize new member (if dir).
30915         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30916         we've just stat'ed a directory.  Skip the stat call when possible.
30917         ---
30918         Note this AFS-related exchange:
30919         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30920         and note find's pioctl call in find/fstype.c.
30921         But that is necessary only if you want to enable the
30922         optimization for AFS, and for now, I don't.
30923
30924         fts: move a function definition "up" (no semantic change)
30925         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30926         "up" to precede upcoming use of a related function.
30927
30928 2009-02-11  Jim Meyering  <meyering@redhat.com>
30929
30930         fts: correct internal computation of nlinks (optimization-related)
30931         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30932         whether the current entry is a directory, so don't test it.
30933
30934 2009-02-10  Bruno Haible  <bruno@clisp.org>
30935
30936         Tests for module 'uniwbrk/ulc-wordbreaks'.
30937         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30938         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30939         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30940
30941         Tests for module 'uniwbrk/u32-wordbreaks'.
30942         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30943         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30944
30945         Tests for module 'uniwbrk/u16-wordbreaks'.
30946         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30947         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30948
30949         Tests for module 'uniwbrk/u8-wordbreaks'.
30950         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30951         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30952
30953 2009-02-10  Bruno Haible  <bruno@clisp.org>
30954
30955         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30956         property.
30957         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30958         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30959         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30960
30961 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30962
30963         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30964         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30965
30966 2009-02-10  Bruno Haible  <bruno@clisp.org>
30967
30968         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30969         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30970         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30971         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30972         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30973         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30974
30975 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30976
30977         * lib/sockets.h (gl_fd_to_handle): New function.
30978
30979         * tests/test-sockets.c: Call gl_fd_to_handle.
30980
30981 2009-02-09  Bruno Haible  <bruno@clisp.org>
30982
30983         * doc/havelib.texi: Document the conventions on bi-arch systems.
30984
30985 2009-02-08  Bruno Haible  <bruno@clisp.org>
30986
30987         Document the AC_LIB_LINKFLAGS macro.
30988         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30989         * doc/gnulib.texi: Include it.
30990
30991 2009-02-08  Bruno Haible  <bruno@clisp.org>
30992
30993         Fix wrong order of sections, compared to TOC.
30994         * doc/gnulib.texi: Include relocatable-maint.texi after the
30995         "Regular expressions" node, not before.
30996
30997 2009-02-08  Bruno Haible  <bruno@clisp.org>
30998
30999         Tests for module 'unicase/totitle'.
31000         * modules/unicase/totitle-tests: New file.
31001
31002         Tests for module 'unicase/tolower'.
31003         * modules/unicase/tolower-tests: New file.
31004
31005         Tests for module 'unicase/toupper'.
31006         * modules/unicase/toupper-tests: New file.
31007         * tests/unicase/test-mapping-part1.h: New file.
31008         * tests/unicase/test-mapping-part2.h: New file.
31009
31010         New module 'unicase/totitle'.
31011         * modules/unicase/totitle: New file.
31012         * lib/unicase/totitle.c: New file.
31013
31014         New module 'unicase/tolower'.
31015         * modules/unicase/tolower: New file.
31016         * lib/unicase/tolower.c: New file.
31017
31018         New module 'unicase/toupper'.
31019         * modules/unicase/toupper: New file.
31020         * lib/unicase/toupper.c: New file.
31021         * lib/unicase/simple-mapping.h: New file.
31022
31023         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31024         (mapping_table): New structure.
31025         (output_simple_mapping): New function.
31026         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31027         * modules/gen-uni-tables (Description): Update.
31028         * lib/unicase/toupper.h: New file, automatically generated by
31029         gen-uni-tables.
31030         * lib/unicase/tolower.h: New file, automatically generated by
31031         gen-uni-tables.
31032         * lib/unicase/totitle.h: New file, automatically generated by
31033         gen-uni-tables.
31034         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31035         gen-uni-tables.
31036         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31037         gen-uni-tables.
31038         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31039         gen-uni-tables.
31040
31041         New module 'unicase/base'.
31042         * modules/unicase/base: New file.
31043         * lib/unicase.h: New file.
31044
31045 2009-02-08  Bruno Haible  <bruno@clisp.org>
31046
31047         New module 'uniwbrk/ulc-wordbreaks'.
31048         * modules/uniwbrk/ulc-wordbreaks: New file.
31049         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31050
31051         New module 'uniwbrk/u32-wordbreaks'.
31052         * modules/uniwbrk/u32-wordbreaks: New file.
31053         * lib/uniwbrk/u32-wordbreaks.c: New file.
31054
31055         New module 'uniwbrk/u16-wordbreaks'.
31056         * modules/uniwbrk/u16-wordbreaks: New file.
31057         * lib/uniwbrk/u16-wordbreaks.c: New file.
31058
31059         New module 'uniwbrk/u8-wordbreaks'.
31060         * modules/uniwbrk/u8-wordbreaks: New file.
31061         * lib/uniwbrk/u8-wordbreaks.c: New file.
31062         * lib/uniwbrk/u-wordbreaks.h: New file.
31063
31064         New module 'uniwbrk/table'.
31065         * modules/uniwbrk/table: New file.
31066         * lib/uniwbrk/wbrktable.h: New file.
31067         * lib/uniwbrk/wbrktable.c: New file.
31068
31069         New module 'uniwbrk/wordbreak-property'.
31070         * modules/uniwbrk/wordbreak-property: New file.
31071         * lib/uniwbrk/wordbreak-property.c: New file.
31072
31073         * lib/gen-uni-tables.c (WBP_*): New enum items.
31074         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31075         (unicode_org_wbp): New variable.
31076         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31077         New functions.
31078         (wbp_table): New structure.
31079         (output_wbp, output_wbrk_tables): New functions.
31080         (main): Accept additional argument. Invoke fill_org_wbp,
31081         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31082         output_wbrk_tables.
31083         * modules/gen-uni-tables (Description): Update.
31084         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31085         gen-uni-tables.
31086
31087         New module 'uniwbrk/base'.
31088         * modules/uniwbrk/base: New file.
31089         * lib/uniwbrk.h: New file.
31090
31091 2009-02-08  Bruno Haible  <bruno@clisp.org>
31092
31093         Update to Unicode 5.1.0.
31094         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31095         U+2185..U+2188.
31096         (is_property_default_ignorable_code_point): Don't include characters
31097         of category Cc or Cs and not-a-characters.
31098         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31099         U+0D79, U+109E, U+109F, U+A60C.
31100         * lib/unictype/bidi_of.h: Regenerated.
31101         * lib/unictype/blocks.h: Regenerated.
31102         * lib/unictype/categ_C.h: Regenerated.
31103         * lib/unictype/categ_Cf.h: Regenerated.
31104         * lib/unictype/categ_Cn.h: Regenerated.
31105         * lib/unictype/categ_L.h: Regenerated.
31106         * lib/unictype/categ_Ll.h: Regenerated.
31107         * lib/unictype/categ_Lm.h: Regenerated.
31108         * lib/unictype/categ_Lo.h: Regenerated.
31109         * lib/unictype/categ_Lu.h: Regenerated.
31110         * lib/unictype/categ_M.h: Regenerated.
31111         * lib/unictype/categ_Mc.h: Regenerated.
31112         * lib/unictype/categ_Me.h: Regenerated.
31113         * lib/unictype/categ_Mn.h: Regenerated.
31114         * lib/unictype/categ_N.h: Regenerated.
31115         * lib/unictype/categ_Nd.h: Regenerated.
31116         * lib/unictype/categ_Nl.h: Regenerated.
31117         * lib/unictype/categ_No.h: Regenerated.
31118         * lib/unictype/categ_P.h: Regenerated.
31119         * lib/unictype/categ_Pd.h: Regenerated.
31120         * lib/unictype/categ_Pe.h: Regenerated.
31121         * lib/unictype/categ_Pf.h: Regenerated.
31122         * lib/unictype/categ_Pi.h: Regenerated.
31123         * lib/unictype/categ_Po.h: Regenerated.
31124         * lib/unictype/categ_Ps.h: Regenerated.
31125         * lib/unictype/categ_S.h: Regenerated.
31126         * lib/unictype/categ_Sk.h: Regenerated.
31127         * lib/unictype/categ_Sm.h: Regenerated.
31128         * lib/unictype/categ_So.h: Regenerated.
31129         * lib/unictype/categ_of.h: Regenerated.
31130         * lib/unictype/combining.h: Regenerated.
31131         * lib/unictype/ctype_alnum.h: Regenerated.
31132         * lib/unictype/ctype_alpha.h: Regenerated.
31133         * lib/unictype/ctype_graph.h: Regenerated.
31134         * lib/unictype/ctype_lower.h: Regenerated.
31135         * lib/unictype/ctype_print.h: Regenerated.
31136         * lib/unictype/ctype_punct.h: Regenerated.
31137         * lib/unictype/ctype_upper.h: Regenerated.
31138         * lib/unictype/decdigit.h: Regenerated.
31139         * lib/unictype/digit.h: Regenerated.
31140         * lib/unictype/mirror.h: Regenerated.
31141         * lib/unictype/numeric.h: Regenerated.
31142         * lib/unictype/pr_alphabetic.h: Regenerated.
31143         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31144         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31145         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31146         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31147         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31148         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31149         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31150         * lib/unictype/pr_combining.h: Regenerated.
31151         * lib/unictype/pr_dash.h: Regenerated.
31152         * lib/unictype/pr_decimal_digit.h: Regenerated.
31153         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31154         * lib/unictype/pr_deprecated.h: Regenerated.
31155         * lib/unictype/pr_diacritic.h: Regenerated.
31156         * lib/unictype/pr_extender.h: Regenerated.
31157         * lib/unictype/pr_format_control.h: Regenerated.
31158         * lib/unictype/pr_grapheme_base.h: Regenerated.
31159         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31160         * lib/unictype/pr_grapheme_link.h: Regenerated.
31161         * lib/unictype/pr_id_continue.h: Regenerated.
31162         * lib/unictype/pr_id_start.h: Regenerated.
31163         * lib/unictype/pr_ideographic.h: Regenerated.
31164         * lib/unictype/pr_ignorable_control.h: Regenerated.
31165         * lib/unictype/pr_lowercase.h: Regenerated.
31166         * lib/unictype/pr_math.h: Regenerated.
31167         * lib/unictype/pr_numeric.h: Regenerated.
31168         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31169         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31170         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31171         * lib/unictype/pr_other_id_continue.h: Regenerated.
31172         * lib/unictype/pr_other_lowercase.h: Regenerated.
31173         * lib/unictype/pr_other_math.h: Regenerated.
31174         * lib/unictype/pr_punctuation.h: Regenerated.
31175         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31176         * lib/unictype/pr_soft_dotted.h: Regenerated.
31177         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31178         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31179         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31180         * lib/unictype/pr_uppercase.h: Regenerated.
31181         * lib/unictype/pr_xid_continue.h: Regenerated.
31182         * lib/unictype/pr_xid_start.h: Regenerated.
31183         * lib/unictype/pr_zero_width.h: Regenerated.
31184         * lib/unictype/scripts.h: Regenerated.
31185         * lib/unictype/scripts_byname.gperf: Regenerated.
31186         * lib/unictype/sy_java_ident.h: Regenerated.
31187         * lib/unilbrk/lbrkprop1.h: Regenerated.
31188         * lib/unilbrk/lbrkprop2.h: Regenerated.
31189         * tests/unictype/test-categ_C.c: Regenerated.
31190         * tests/unictype/test-categ_Cf.c: Regenerated.
31191         * tests/unictype/test-categ_Cn.c: Regenerated.
31192         * tests/unictype/test-categ_L.c: Regenerated.
31193         * tests/unictype/test-categ_Ll.c: Regenerated.
31194         * tests/unictype/test-categ_Lm.c: Regenerated.
31195         * tests/unictype/test-categ_Lo.c: Regenerated.
31196         * tests/unictype/test-categ_Lu.c: Regenerated.
31197         * tests/unictype/test-categ_M.c: Regenerated.
31198         * tests/unictype/test-categ_Mc.c: Regenerated.
31199         * tests/unictype/test-categ_Me.c: Regenerated.
31200         * tests/unictype/test-categ_Mn.c: Regenerated.
31201         * tests/unictype/test-categ_N.c: Regenerated.
31202         * tests/unictype/test-categ_Nd.c: Regenerated.
31203         * tests/unictype/test-categ_Nl.c: Regenerated.
31204         * tests/unictype/test-categ_No.c: Regenerated.
31205         * tests/unictype/test-categ_P.c: Regenerated.
31206         * tests/unictype/test-categ_Pd.c: Regenerated.
31207         * tests/unictype/test-categ_Pe.c: Regenerated.
31208         * tests/unictype/test-categ_Pf.c: Regenerated.
31209         * tests/unictype/test-categ_Pi.c: Regenerated.
31210         * tests/unictype/test-categ_Po.c: Regenerated.
31211         * tests/unictype/test-categ_Ps.c: Regenerated.
31212         * tests/unictype/test-categ_S.c: Regenerated.
31213         * tests/unictype/test-categ_Sk.c: Regenerated.
31214         * tests/unictype/test-categ_Sm.c: Regenerated.
31215         * tests/unictype/test-categ_So.c: Regenerated.
31216         * tests/unictype/test-ctype_alnum.c: Regenerated.
31217         * tests/unictype/test-ctype_alpha.c: Regenerated.
31218         * tests/unictype/test-ctype_graph.c: Regenerated.
31219         * tests/unictype/test-ctype_lower.c: Regenerated.
31220         * tests/unictype/test-ctype_print.c: Regenerated.
31221         * tests/unictype/test-ctype_punct.c: Regenerated.
31222         * tests/unictype/test-ctype_upper.c: Regenerated.
31223         * tests/unictype/test-decdigit.h: Regenerated.
31224         * tests/unictype/test-digit.h: Regenerated.
31225         * tests/unictype/test-numeric.h: Regenerated.
31226         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31227         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31228         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31229         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31231         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31232         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31233         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31234         * tests/unictype/test-pr_combining.c: Regenerated.
31235         * tests/unictype/test-pr_dash.c: Regenerated.
31236         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31237         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31238         * tests/unictype/test-pr_deprecated.c: Regenerated.
31239         * tests/unictype/test-pr_diacritic.c: Regenerated.
31240         * tests/unictype/test-pr_extender.c: Regenerated.
31241         * tests/unictype/test-pr_format_control.c: Regenerated.
31242         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31243         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31244         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31245         * tests/unictype/test-pr_id_continue.c: Regenerated.
31246         * tests/unictype/test-pr_id_start.c: Regenerated.
31247         * tests/unictype/test-pr_ideographic.c: Regenerated.
31248         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31249         * tests/unictype/test-pr_lowercase.c: Regenerated.
31250         * tests/unictype/test-pr_math.c: Regenerated.
31251         * tests/unictype/test-pr_numeric.c: Regenerated.
31252         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31253         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31254         Regenerated.
31255         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31256         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31257         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31258         * tests/unictype/test-pr_other_math.c: Regenerated.
31259         * tests/unictype/test-pr_punctuation.c: Regenerated.
31260         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31261         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31262         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31263         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31264         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31265         * tests/unictype/test-pr_uppercase.c: Regenerated.
31266         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31267         * tests/unictype/test-pr_xid_start.c: Regenerated.
31268         * tests/unictype/test-pr_zero_width.c: Regenerated.
31269
31270         Update to Unicode 5.1.0.
31271         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31272         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31273         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31274         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31275         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31276         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31277         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31278         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31279         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31280         (nonspacing_table_ind): Update.
31281         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31282
31283         Update to Unicode 5.1.0.
31284         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31285         code transform.
31286         * lib/uniname/uniname.c (unicode_character_name,
31287         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31288         * lib/uniname/uninames.h: Regenerated.
31289         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31290
31291 2009-02-07  Bruno Haible  <bruno@clisp.org>
31292
31293         Merge gen-ctype and gen-lbrk into a single program.
31294         * lib/gen-uni-tables.c: New file, incorporating
31295         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31296         Add directory prefixes to the names of the generated files.
31297         * lib/unictype/gen-ctype.c: Remove file.
31298         * lib/unilbrk/gen-lbrk.c: Remove file.
31299         * modules/gen-uni-tables: New file.
31300         * modules/unictype/gen-ctype: Remove file.
31301         * modules/unilbrk/gen-lbrk: Remove file.
31302
31303 2009-02-07  Bruno Haible  <bruno@clisp.org>
31304
31305         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31306
31307         New module 'unistr/u32-strcoll'.
31308         * modules/unistr/u32-strcoll: New file.
31309         * lib/unistr/u32-strcoll.c: New file.
31310
31311         New module 'unistr/u16-strcoll'.
31312         * modules/unistr/u16-strcoll: New file.
31313         * lib/unistr/u16-strcoll.c: New file.
31314
31315         New module 'unistr/u8-strcoll'.
31316         * modules/unistr/u8-strcoll: New file.
31317         * lib/unistr/u8-strcoll.c: New file.
31318         * lib/unistr/u-strcoll.h: New file.
31319
31320 2009-02-07  Bruno Haible  <bruno@clisp.org>
31321
31322         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31323         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31324         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31325         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31326         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31327         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31328
31329 2009-02-07  Bruno Haible  <bruno@clisp.org>
31330
31331         Make 64-bit clean.
31332         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31333         output_combclass, output_bidi_category, output_decimal_digit,
31334         output_digit, output_numeric, output_mirror, output_scripts,
31335         output_ident_category): Use proper width specifier in format strings.
31336
31337 2009-02-07  Bruno Haible  <bruno@clisp.org>
31338
31339         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31340         failure behaviour.
31341
31342 2009-02-07  Jim Meyering  <meyering@redhat.com>
31343
31344         regex: avoid compilation failure with upcoming gcc-4.4
31345         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31346         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31347         "... error: integer overflow in preprocessor expression".
31348
31349 2009-02-05  Ben Pfaff  <blp@gnu.org>
31350
31351         Fix link errors on Windows when close module is used.
31352         * modules/close: Add $(LIB_CLOSE) to Link section.
31353         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31354         $(LIB_CLOSE) on Windows.
31355
31356 2009-02-05  Jim Meyering  <meyering@redhat.com>
31357
31358         still avoid unused-parameter warnings, but do it cleanly
31359         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31360         (get_fs_usage): Cast to void instead.
31361         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31362         (dev_from_mount_options, read_file_system_list): Cast to void.
31363         Prompted by Bruno Haible.
31364
31365 2009-02-04  Jim Meyering  <meyering@redhat.com>
31366
31367         fsusage.c: correct copyright year
31368         * lib/fsusage.c: Reflect year in which the change is pushed into
31369
31370         avoid misc. warnings
31371         * lib/fsusage.c (UNUSED_PARAM): Define.
31372         (get_fs_usage): Mark parameter "disk" as unused.
31373         * lib/getugroups.c (getgrent): Use "void" in prototype.
31374         * lib/mountlist.c: Mark unused parameters.
31375         (read_file_system_list): Declare a local with "const".
31376         * lib/nanosleep.c (getnow): Declare static.
31377         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31378
31379         dirfd: set errno upon failure
31380         * lib/dirfd.c: Include <errno.h>.
31381         Set errno to ENOTSUP when returning -1.
31382         * modules/dirfd (Depends-on): Add errno.
31383         Suggested by John Kodis <kodis@comcast.net>.
31384
31385 2009-02-01  Bruno Haible  <bruno@clisp.org>
31386
31387         Don't assume sizeof (long) >= sizeof (void *).
31388         * lib/memcmp.c: Include stdint.h.
31389         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31390         srcp2 to 'const byte *'.
31391         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31392         types to uintptr_t.
31393         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31394         * modules/memcmp (Depends-on): Add stdint.
31395         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31396
31397 2009-01-30  Eric Blake  <ebb9@byu.net>
31398
31399         fix more require-before-expand issues
31400         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31401         expand, AC_PROG_AWK.
31402         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31403
31404 2009-01-28  Eric Blake  <ebb9@byu.net>
31405
31406         version-etc: use consistent URL formatting
31407         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31408         Improve formatting.  Use fputs for string without %.
31409
31410 2009-01-28  Jim Meyering  <meyering@redhat.com>
31411
31412         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31413         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31414         "underquoted definition of NAME" from autoconf-2.59.
31415
31416 2009-01-28  Bruno Haible  <bruno@clisp.org>
31417
31418         * doc/gnulib.texi: Add "Obsolete modules" to index.
31419
31420 2009-01-28  Jim Meyering  <meyering@redhat.com>
31421
31422         useless-if-before-free: recognize more variants
31423         * build-aux/useless-if-before-free: Also recognize e.g.,
31424         if (NULL != p) free (p);
31425
31426 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31427
31428         test-getaddrinfo: skip (don't fail) this test when there's no network
31429         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31430         on the presumption that it means you lack network access.
31431
31432 2009-01-26  Jim Meyering  <meyering@redhat.com>
31433
31434         fflush: avoid warnings on modern systems
31435         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31436         pos and result, into scopes where they're used.
31437
31438 2009-01-26  Eric Blake  <ebb9@byu.net>
31439
31440         Silence warning reintroduced by recent extensions patch.
31441         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31442         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31443         autoconf.
31444
31445         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31446         * m4/00gnulib.m4: New file.
31447         * gnulib-tool (func_get_filelist): Always use it.
31448         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31449         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31450
31451 2009-01-25  Bruno Haible  <bruno@clisp.org>
31452
31453         Make test-quotearg work on MacOS X and AIX.
31454         * tests/test-quotearg.sh: New file.
31455         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31456         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31457         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31458         include <libintl.h>.
31459         (fake_locale): Remove variable.
31460         (gettext, dgettext, dcgettext): Remove functions.
31461         (main): Instead of setting a fake locale, set a real locale. Call
31462         textdomain and bindtextdomain.
31463         * modules/quotearg-tests (Files): Add the new files.
31464         (Depends-on): Add gettext, setenv, unsetenv.
31465         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31466         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31467         Augment TESTS_ENVIRONMENT.
31468
31469 2009-01-25  Bruno Haible  <bruno@clisp.org>
31470
31471         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31472         fr_FR.ISO8859-1 locale on MacOS X.
31473         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31474         ja_JP.eucJP locale on MacOS X.
31475         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31476         zh_CN.GB18030 locale on MacOS X.
31477
31478 2009-01-25  Bruno Haible  <bruno@clisp.org>
31479
31480         Avoid link errors on MacOS X 10.3.
31481         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31482         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31483
31484 2009-01-25  Bruno Haible  <bruno@clisp.org>
31485
31486         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31487         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31488         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31489         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31490         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31491         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31492         posix_spawnattr_init, posix_spawnattr_setsigmask,
31493         posix_spawnattr_setflags, posix_spawnattr_destroy.
31494
31495         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31496         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31497         * modules/execute (Files): Remove m4/posix_spawn.m4.
31498         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31499         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31500         posix_spawnattr_init, posix_spawnattr_setsigmask,
31501         posix_spawnattr_setflags, posix_spawnattr_destroy.
31502
31503 2009-01-25  Bruno Haible  <bruno@clisp.org>
31504
31505         * lib/glthread/threadlib.c: Include <stdlib.h>.
31506
31507 2009-01-25  Bruno Haible  <bruno@clisp.org>
31508
31509         * lib/glthread/threadlib.c (dummy): New declaration.
31510
31511 2009-01-25  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31514         multibyte characters also for the GB18030 encoding. Don't crash when
31515         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31516
31517 2009-01-25  Bruno Haible  <bruno@clisp.org>
31518
31519         Avoid redefining 'struct random_data' on OSF/1 5.1.
31520         * lib/stdlib.in.h: Include <random.h> if it exists.
31521         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31522         HAVE_RANDOM_H. Include <random.h> when testing whether
31523         'struct random_data' exists.
31524         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31525
31526 2009-01-25  Bruno Haible  <bruno@clisp.org>
31527
31528         Don't install charset.alias on MacOS X >= 10.3.
31529         * lib/localcharset.c (DARWIN7): New macro.
31530         (get_charset_aliases): Hardcode the result for Darwin7.
31531         * modules/localcharset (install-exec-local): Don't install
31532         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31533
31534 2009-01-25  Bruno Haible  <bruno@clisp.org>
31535
31536         Don't install charset.alias on mingw and Cygwin.
31537         * modules/localcharset (install-exec-local): Don't install
31538         charset.alias on mingw and Cygwin, if the file does not yet exist.
31539         The result for these platforms is hardcoded in localcharset.c.
31540
31541 2009-01-25  Bruno Haible  <bruno@clisp.org>
31542
31543         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31545         before requiring AC_USE_SYSTEM_EXTENSIONS.
31546
31547 2009-01-25  Jim Meyering  <meyering@redhat.com>
31548
31549         c-strtod: avoid warnings
31550         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31551         "assignment discards qualifiers from pointer target type" warnings.
31552
31553 2009-01-24  Bruno Haible  <bruno@clisp.org>
31554
31555         Add support for non-UTF-8 locales on MacOS X.
31556         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31557         canonical encodings. For Darwin 7 and newer, don't map traditional
31558         encodings to UTF-8.
31559         Reported by Vincent Lefevre <vincent@vinc17.org>
31560         at <http://savannah.gnu.org/bugs/?25235>.
31561
31562 2009-01-24  Bruno Haible  <bruno@clisp.org>
31563
31564         * doc/gnulib.texi (Obsolete modules): New section.
31565         Reported by Mike Frysinger <vapier@gentoo.org>.
31566
31567 2009-01-24  Bruno Haible  <bruno@clisp.org>
31568
31569         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31570         (%.dvi): New rule.
31571
31572 2009-01-24  Bruno Haible  <bruno@clisp.org>
31573
31574         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31575         Reported by Eric Blake.
31576
31577 2009-01-24  Bruno Haible  <bruno@clisp.org>
31578
31579         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31580         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31581         Reported by Gary V. Vaughan <gary@gnu.org>.
31582
31583 2009-01-24  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31586
31587 2009-01-23  Bruno Haible  <bruno@clisp.org>
31588
31589         Make c-strtod, c-strtold usable in libraries.
31590         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31591         (C_STRTOD): Call strdup instead of xstrdup.
31592         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31593         * modules/c-strtold (Depends-on): Likewise.
31594         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31595         * NEWS: Mention the change.
31596         Reported by Michael Gold <mgold@ncf.ca>.
31597
31598 2009-01-23  Jim Meyering  <meyering@redhat.com>
31599
31600         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31601         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31602         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31603
31604 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31605
31606         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31607         GNU CoreUtils.
31608         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31609         * modules/version-etc (Description): Update.
31610
31611 2009-01-22  Bruno Haible  <bruno@clisp.org>
31612
31613         Cache the C locale object.
31614         * lib/c-strtod.c (c_locale_cache): New variable.
31615         (c_locale): New function.
31616         (C_STRTOD): Use it, and don't call freelocale.
31617         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31618         Suggested by Paolo Bonzini.
31619
31620 2009-01-21  Bruno Haible  <bruno@clisp.org>
31621
31622         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31623         conditions other than overflow.
31624
31625 2009-01-21  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/c-strtod.c: Include errno.h.
31628         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31629         value from STRTOD_L and STRTOD.
31630
31631 2009-01-21  Bruno Haible  <bruno@clisp.org>
31632         and Jim Meyering  <meyering@redhat.com>
31633
31634         nanosleep: skip configure test (fail it) for apple universal builds
31635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31636         universal builds, assume that nanosleep does not work.
31637         * modules/nanosleep (Depends-on): Add multiarch.
31638
31639         mktime: skip configure test (fail it) for apple universal builds
31640         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31641         universal builds, assume that mktime does not work.
31642         * modules/mktime (Depends-on): Add multiarch.
31643
31644 2009-01-21  Eric Blake  <ebb9@byu.net>
31645
31646         multiarch: avoid expand-before-require warning
31647         * modules/multiarch (configure.ac): Require, rather than expand,
31648         gl_MULTIARCH.
31649         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31650         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31651         enforce that all clients require it.  Partial reversion of
31652         2008-12-29 patch.
31653
31654         error: avoid expand-before-require warning
31655         * modules/errno (configure.ac): Require, rather than expand,
31656         gl_HEADER_ERRNO_H.
31657         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31658         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31659         enforce that all clients require it.
31660
31661         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31662         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31663         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31664         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31665
31666 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31667
31668         Revert:
31669         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31670
31671         regex: do not depend on obsolete modules.
31672         * modules/regex: Remove memcmp and memmove.
31673
31674 2009-01-20  Bruno Haible  <bruno@clisp.org>
31675
31676         Make the 'link' module link on Windows NT 4.
31677         * lib/link.c (_WIN32_WINNT): Don't define.
31678         (CreateHardLinkFuncType): New type.
31679         (CreateHardLinkFunc, initialized): New variables.
31680         (initialize): New function.
31681         (link): Invoke CreateHardLink indirectly through the function pointer.
31682
31683 2009-01-20  Bruno Haible  <bruno@clisp.org>
31684
31685         Fix compilation failure on mingw.
31686         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31687
31688 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31689
31690         * doc/c-strtod.texi: Mention a couple of restrictions.
31691
31692 2009-01-20  Jim Meyering  <meyering@redhat.com>
31693
31694         gettimeofday: move more declarations out of functions
31695         * lib/gettimeofday.c: Move extern declarations of tzset and
31696         gmtime out of containing functions.  Prompted by Bruno Haible.
31697
31698 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31699
31700         regex: do not depend on obsolete modules.
31701         * modules/regex: Remove memcmp and memmove.
31702
31703 2009-01-19  Bruno Haible  <bruno@clisp.org>
31704
31705         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31706         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31707         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31708         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31709         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31710
31711 2009-01-19  Bruno Haible  <bruno@clisp.org>
31712
31713         * tests/test-link.c: Include <errno.h>.
31714         (main): Exit with code 77 when a hard link cannot be created due to
31715         the file system.
31716         * tests/test-link.sh: Skip test when a hard link cannot be created due
31717         to the file system.
31718         Suggested by Eric Blake.
31719
31720 2009-01-19  Martin Lambers  <marlam@marlam.de>
31721
31722         * modules/link-tests: New file.
31723         * tests/test-link.sh: New file.
31724         * tests/test-link.c: New file.
31725
31726 2009-01-19  Eric Blake  <ebb9@byu.net>
31727
31728         doc: mention another function added in cygwin 1.7.0
31729         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31730         Another new function in cygwin 1.7.
31731
31732 2009-01-19  Bruno Haible  <bruno@clisp.org>
31733
31734         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31735         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31736         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31737         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31738         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31739         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31740         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31741         * m4/md4.m4 (gl_MD4): Likewise.
31742         * m4/md5.m4 (gl_MD5): Likewise.
31743         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31744         * m4/sha1.m4 (gl_SHA1): Likewise.
31745         * m4/sha256.m4 (gl_SHA256): Likewise.
31746         * m4/sha512.m4 (gl_SHA512): Likewise.
31747
31748 2009-01-19  Bruno Haible  <bruno@clisp.org>
31749
31750         * modules/uniname/uniname-tests (Depends-on): Add progname.
31751         * tests/uniname/test-uninames.c: Include progname.h.
31752         (main): Call set_program_name.
31753
31754         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31755         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31756         (main): Call set_program_name.
31757
31758         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31759         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31760         (main): Call set_program_name.
31761
31762         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31763         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31764         (main): Call set_program_name.
31765
31766         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31767         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31768         (main): Call set_program_name.
31769
31770         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31771         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31772         (main): Call set_program_name.
31773
31774         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31775         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31776         (main): Call set_program_name.
31777
31778         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31779         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31780         (main): Call set_program_name.
31781
31782         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31783         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31784         (main): Call set_program_name.
31785
31786 2009-01-19  Eric Blake  <ebb9@byu.net>
31787
31788         test-unistd: test previous patch
31789         * tests/test-unistd.c: Test *_FILENO macros.
31790
31791         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31792         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31793         Guarantee a definition.
31794         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31795         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31796         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31797         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31798         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31799         Likewise.
31800         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31801         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31802         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31803         Likewise.
31804         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31805         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31806         (STDERR_FILENO): Likewise.
31807         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31808         (STDERR_FILENO): Likewise.
31809         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31810         (STDERR_FILENO): Likewise.
31811         Reported by Elbert Pol.
31812
31813 2009-01-19  Eric Blake  <ebb9@byu.net>
31814
31815         doc: mention more functions added in cygwin 1.7.0
31816         * doc/posix-functions/abort.texi (abort): Update wording related
31817         to cygwin.
31818         * doc/posix-functions/daylight.texi (daylight): Likewise.
31819         * doc/posix-functions/optarg.texi (optarg): Likewise.
31820         * doc/posix-functions/optarg.texi (opterr): Likewise.
31821         * doc/posix-functions/optarg.texi (optind): Likewise.
31822         * doc/posix-functions/optarg.texi (optopt): Likewise.
31823         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31824         worked in 1.5.x, and was withdrawn in 1.7.
31825         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31826         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31827         cygwin versions.
31828         * doc/posix-functions/perror.texi (perror): Likewise.
31829         * doc/posix-functions/printf.texi (printf): Likewise.
31830         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31831         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31832         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31833         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31834         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31835         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31836         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31837         Likewise.
31838         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31839         Likewise.
31840         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31841         this function.
31842         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31843         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31844         Likewise.
31845         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31846         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31847         * doc/posix-functions/confstr.texi (confstr): Likewise.
31848         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31849         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31850         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31851         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31852         * doc/posix-functions/fputws.texi (fputws): Likewise.
31853         * doc/posix-functions/fwide.texi (fwide): Likewise.
31854         * doc/posix-functions/getwc.texi (getwc): Likewise.
31855         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31856         * doc/posix-functions/putwc.texi (putwc): Likewise.
31857         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31858         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31859         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31860         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31861         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31862         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31863         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31864         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31865         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31866         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31867         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31868
31869 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31870
31871         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31872         * lib/ioctl.c: Include <sys/ioctl.h>.
31873
31874 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31875
31876         * modules/getdate-tests (Depends-on): Add progname.
31877         * tests/test-getdate.c: Use progname module, to avoid link errors
31878         on non-glibc systems.
31879
31880 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31881
31882         * modules/filenamecat-tests (Depends-on): Add progname.
31883         * modules/fstrcmp-tests (Depends-on): Likewise.
31884
31885         * tests/test-filenamecat.c: Use progname module, to avoid link
31886         errors on non-glibc systems.
31887         * tests/test-fstrcmp.c: Likewise.
31888
31889 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31890
31891         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31892         * lib/gettimeofday.c: Move extern declaration out of function.
31893
31894 2009-01-18  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31897         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31898         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31899
31900 2009-01-18  Bruno Haible  <bruno@clisp.org>
31901
31902         * lib/strftime.c (MEMPCPY): Remove unused macro.
31903         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31904
31905 2009-01-18  Martin Lambers  <marlam@marlam.de>
31906
31907         New module 'link'.
31908         * lib/unistd.in.h (link): New declaration.
31909         * lib/link.c: New file.
31910         * m4/link.m4: New file.
31911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31912         HAVE_LINK.
31913         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31914         * modules/link: New file.
31915         * doc/posix-functions/link.texi: Mention the new module.
31916
31917 2009-01-18  Bruno Haible  <bruno@clisp.org>
31918
31919         * tests/test-avltree_list.c (main): Call set_program_name.
31920         * tests/test-avltree_oset.c (main): Likewise.
31921         * tests/test-obstack-printf.c: Include progname.h.
31922         (main): Call set_program_name.
31923         * tests/test-quotearg.c: Include progname.h.
31924         (main): Call set_program_name.
31925         * tests/test-xmemdup0.c: Include progname.h.
31926         (main): Call set_program_name.
31927
31928 2009-01-18  Bruno Haible  <bruno@clisp.org>
31929
31930         New module 'alphasort'.
31931         * lib/dirent.in.h (alphasort): New declaration.
31932         * lib/alphasort.c: New file, from glibc with modifications.
31933         * m4/alphasort.m4: New file.
31934         * modules/alphasort: New file.
31935         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31936         HAVE_ALPHASORT.
31937         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31938         HAVE_ALPHASORT.
31939         * doc/posix-functions/alphasort.texi: Mention the new module and the
31940         portability problems.
31941
31942 2009-01-18  Bruno Haible  <bruno@clisp.org>
31943
31944         New module 'scandir'.
31945         * lib/dirent.in.h (scandir): New declaration.
31946         * lib/scandir.c: New file, from glibc with modifications.
31947         * m4/scandir.m4: New file.
31948         * modules/scandir: New file.
31949         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31950         HAVE_SCANDIR.
31951         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31952         HAVE_SCANDIR.
31953         * doc/posix-functions/scandir.texi: Mention the new module and the
31954         portability problems.
31955
31956 2009-01-17  Bruno Haible  <bruno@clisp.org>
31957
31958         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31959         Update documentation.
31960         (func_remove_suffix): Escape all dots in the suffix. Update
31961         documentation.
31962         (func_filter_filelist): Update documentation.
31963         Reported by Ralf Wildenhues.
31964
31965 2009-01-17  Bruno Haible  <bruno@clisp.org>
31966
31967         * modules/dprintf-posix-tests: New file.
31968         * tests/test-dprintf-posix.sh: New file.
31969         * tests/test-dprintf-posix.c: New file.
31970
31971         New modules 'dprintf', 'dprintf-posix'.
31972         * lib/stdio.in.h (dprintf): New declaration.
31973         * lib/dprintf.c: New file.
31974         * m4/dprintf.m4: New file.
31975         * m4/dprintf-posix.m4: New file.
31976         * modules/dprintf: New file.
31977         * modules/dprintf-posix: New file.
31978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31979         HAVE_DPRINTF, REPLACE_DPRINTF.
31980         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31981         HAVE_DPRINTF, REPLACE_DPRINTF.
31982         * doc/posix-functions/dprintf.texi: Mention the new modules.
31983
31984 2009-01-17  Bruno Haible  <bruno@clisp.org>
31985
31986         * modules/vdprintf-posix-tests: New file.
31987         * tests/test-vdprintf-posix.sh: New file.
31988         * tests/test-vdprintf-posix.c: New file.
31989
31990         New modules 'vdprintf', 'vdprintf-posix'.
31991         * lib/stdio.in.h (vdprintf): New declaration.
31992         * lib/vdprintf.c: New file.
31993         * m4/vdprintf.m4: New file.
31994         * m4/vdprintf-posix.m4: New file.
31995         * modules/vdprintf: New file.
31996         * modules/vdprintf-posix: New file.
31997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31998         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31999         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32000         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32001         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32002
32003 2009-01-17  Bruno Haible  <bruno@clisp.org>
32004
32005         Fix replacement of fopen on mingw.
32006         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32007         mingw.
32008
32009 2009-01-17  Bruno Haible  <bruno@clisp.org>
32010
32011         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32012         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32013
32014 2009-01-17  Bruno Haible  <bruno@clisp.org>
32015
32016         Avoid test-fflush2.sh failure on mingw.
32017         * tests/test-fflush2.c: Include binary-io.h.
32018         (main): Put standard input into binary mode.
32019         * modules/fflush-tests (Depends-on): Add binary-io.
32020
32021 2009-01-17  Bruno Haible  <bruno@clisp.org>
32022
32023         * lib/wchar.in.h: In another particular situation, include only the
32024         system's <wchar.h> file.
32025         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32026         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32027         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32028
32029 2009-01-17  Bruno Haible  <bruno@clisp.org>
32030
32031         Support for stripping executables in --enable-relocatable.
32032         * build-aux/install-reloc: Expect one more argument, or an environment
32033         variable RELOC_STRIP_PROG. If set, strip the destination program and
32034         its wrapper.
32035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32036         RELOC_STRIP_PROG.
32037         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32038         to set RELOCATABLE_STRIP.
32039         * NEWS: Mention the new Makefile requirement.
32040
32041 2009-01-17  Bruno Haible  <bruno@clisp.org>
32042
32043         * build-aux/install-reloc: Remove debugging information left over by
32044         C compiler on MacOS X.
32045
32046 2009-01-17  Bruno Haible  <bruno@clisp.org>
32047
32048         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32049         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32050         _NSGetExecutablePath.
32051
32052 2009-01-16  Jim Meyering  <meyering@redhat.com>
32053
32054         strerror: avoid warnings about discarding "const"
32055         * lib/strerror.c (rpl_strerror): Instead of returning a const
32056         string from each and every "case", use a variable, and add a single
32057         cast after the switch.
32058
32059 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32060
32061         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32062
32063 2009-01-16  Bruno Haible  <bruno@clisp.org>
32064
32065         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32066         array initializer syntax that also works in C++ mode.
32067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32068
32069 2009-01-16  Jim Meyering  <meyering@redhat.com>
32070
32071         poll: suppress a warning
32072         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32073         to ignore "...unsigned expression < 0 is always false" warnings.
32074
32075 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32076
32077         poll: remove declarations of unused variables
32078         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32079         sockbuf and optlen.
32080
32081 2009-01-15  Bruno Haible  <bruno@clisp.org>
32082
32083         Make fflush-after-ungetc POSIX compliant on BSD systems.
32084         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32085         (clear_ungetc_buffer): Implement also for other systems.
32086         (rpl_fflush): On glibc systems, invoke
32087         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32088         clear_ungetc_buffer after fetching the stream's position, not before.
32089
32090 2009-01-15  Bruno Haible  <bruno@clisp.org>
32091
32092         Make fflush-after-ungetc POSIX compliant on glibc systems.
32093         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32094         after ungetc.
32095         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32096         (rpl_fflush): On glibc systems, simply call the system's fflush
32097         function after clearing the ungetc buffer.
32098         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32099         Instead, lseek only to the end of file, then use the system's fseeko
32100         for the rest. On glibc systems, reset the EOF indicator bit.
32101
32102 2009-01-15  Jim Meyering  <meyering@redhat.com>
32103
32104         openmp.m4: revert quote-adding change, for portability to older autoconf
32105         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32106         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32107         Simon Josefsson noticed the problem when using autoconf-2.61.
32108
32109 2009-01-15  Bruno Haible  <bruno@clisp.org>
32110
32111         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32112         * tests/test-fflush2.c (ASSERT): Always fail.
32113         (main): Add two tests for fflush() after ungetc(), taking into account
32114         the Austin Group's clarification.
32115         Suggested by Eric Blake.
32116
32117 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32118
32119         mktime.m4: remove K&R-style function prototypes
32120         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32121         for the Sun C++ compiler.
32122
32123 2009-01-14  Bruno Haible  <bruno@clisp.org>
32124
32125         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32126         while including <wchar.h>.
32127         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32128         the system's <wchar.h> file.
32129         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32130
32131 2009-01-14  Bruno Haible  <bruno@clisp.org>
32132
32133         * m4/csharp.m4: Don't mention gettext on the serial number line.
32134         * m4/csharpexec.m4: Likewise.
32135         * m4/eaccess.m4: Likewise.
32136         * m4/javaexec.m4: Likewise.
32137         * m4/sig_atomic_t.m4: Likewise.
32138         * m4/tmpdir.m4: Likewise.
32139         * m4/intldir.m4: Bump gettext version.
32140         * m4/lib-ld.m4: Likewise.
32141
32142 2009-01-14  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/progname.c (set_program_name): Add more comments.
32145         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32146
32147 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32148
32149         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32150         were sys/stat.h does not define it.
32151
32152 2009-01-14  Jim Meyering  <meyering@redhat.com>
32153
32154         many *.m4 files: improve m4 quoting
32155         99% of this change was performed by running the following commands:
32156         git ls-files | grep '\.m4$' | xargs perl -pi \
32157           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32158           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32159           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32160           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32161         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32162         The remainder were to add Copyright dates, increment serial numbers,
32163         undo some changes in comments, exclude m4/intl.m4, and add quotes
32164         around the "1" in ",1" where the unusual spacing prohibited the
32165         above regexps from doing the job.  For more details, see
32166         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32167         * m4/acl.m4: Modified.
32168         * m4/afs.m4: Likewise.
32169         * m4/alloca.m4: Likewise.
32170         * m4/argp.m4: Likewise.
32171         * m4/argz.m4: Likewise.
32172         * m4/atexit.m4: Likewise.
32173         * m4/bison-i18n.m4: Likewise.
32174         * m4/bison.m4: Likewise.
32175         * m4/byteswap.m4: Likewise.
32176         * m4/c-stack.m4: Likewise.
32177         * m4/c-strtod.m4: Likewise.
32178         * m4/calloc.m4: Likewise.
32179         * m4/canonicalize-lgpl.m4: Likewise.
32180         * m4/chown.m4: Likewise.
32181         * m4/clock_time.m4: Likewise.
32182         * m4/codeset.m4: Likewise.
32183         * m4/copy-file.m4: Likewise.
32184         * m4/csharp.m4: Likewise.
32185         * m4/csharpcomp.m4: Likewise.
32186         * m4/csharpexec.m4: Likewise.
32187         * m4/d-ino.m4: Likewise.
32188         * m4/d-type.m4: Likewise.
32189         * m4/dirfd.m4: Likewise.
32190         * m4/double-slash-root.m4: Likewise.
32191         * m4/eaccess.m4: Likewise.
32192         * m4/eealloc.m4: Likewise.
32193         * m4/environ.m4: Likewise.
32194         * m4/errno_h.m4: Likewise.
32195         * m4/euidaccess.m4: Likewise.
32196         * m4/execute.m4: Likewise.
32197         * m4/fatal-signal.m4: Likewise.
32198         * m4/fchdir.m4: Likewise.
32199         * m4/fcntl_h.m4: Likewise.
32200         * m4/fileblocks.m4: Likewise.
32201         * m4/filenamecat.m4: Likewise.
32202         * m4/findprog.m4: Likewise.
32203         * m4/flexmember.m4: Likewise.
32204         * m4/fnmatch.m4: Likewise.
32205         * m4/fopen.m4: Likewise.
32206         * m4/fpending.m4: Likewise.
32207         * m4/fprintf-posix.m4: Likewise.
32208         * m4/free.m4: Likewise.
32209         * m4/frexp.m4: Likewise.
32210         * m4/frexpl.m4: Likewise.
32211         * m4/fsusage.m4: Likewise.
32212         * m4/ftruncate.m4: Likewise.
32213         * m4/gc-camellia.m4: Likewise.
32214         * m4/gc-random.m4: Likewise.
32215         * m4/gc.m4: Likewise.
32216         * m4/getaddrinfo.m4: Likewise.
32217         * m4/getcwd-abort-bug.m4: Likewise.
32218         * m4/getcwd-path-max.m4: Likewise.
32219         * m4/getdate.m4: Likewise.
32220         * m4/getdomainname.m4: Likewise.
32221         * m4/getgroups.m4: Likewise.
32222         * m4/gethostname.m4: Likewise.
32223         * m4/gethrxtime.m4: Likewise.
32224         * m4/getline.m4: Likewise.
32225         * m4/getloadavg.m4: Likewise.
32226         * m4/getndelim2.m4: Likewise.
32227         * m4/getpass.m4: Likewise.
32228         * m4/gettext.m4: Likewise.
32229         * m4/gettime.m4: Likewise.
32230         * m4/gettimeofday.m4: Likewise.
32231         * m4/gnulib-common.m4: Likewise.
32232         * m4/group-member.m4: Likewise.
32233         * m4/host-os.m4: Likewise.
32234         * m4/iconv.m4: Likewise.
32235         * m4/iconv_open.m4: Likewise.
32236         * m4/inet_ntop.m4: Likewise.
32237         * m4/inet_pton.m4: Likewise.
32238         * m4/inline.m4: Likewise.
32239         * m4/intldir.m4: Likewise.
32240         * m4/intlmacosx.m4: Likewise.
32241         * m4/intmax.m4: Likewise.
32242         * m4/intmax_t.m4: Likewise.
32243         * m4/inttypes.m4: Likewise.
32244         * m4/inttypes_h.m4: Likewise.
32245         * m4/inttypes-pri.m4: Likewise.
32246         * m4/isapipe.m4: Likewise.
32247         * m4/isnand.m4: Likewise.
32248         * m4/isnanf.m4: Likewise.
32249         * m4/isnanl.m4: Likewise.
32250         * m4/javacomp.m4: Likewise.
32251         * m4/javaexec.m4: Likewise.
32252         * m4/jm-winsz1.m4: Likewise.
32253         * m4/jm-winsz2.m4: Likewise.
32254         * m4/lchown.m4: Likewise.
32255         * m4/lcmessage.m4: Likewise.
32256         * m4/ldexpl.m4: Likewise.
32257         * m4/lib-ld.m4: Likewise.
32258         * m4/lib-link.m4: Likewise.
32259         * m4/libsigsegv.m4: Likewise.
32260         * m4/link-follow.m4: Likewise.
32261         * m4/localcharset.m4: Likewise.
32262         * m4/locale-fr.m4: Likewise.
32263         * m4/locale-ja.m4: Likewise.
32264         * m4/locale-tr.m4: Likewise.
32265         * m4/locale-zh.m4: Likewise.
32266         * m4/lock.m4: Likewise.
32267         * m4/longlong.m4: Likewise.
32268         * m4/ls-mntd-fs.m4: Likewise.
32269         * m4/lstat.m4: Likewise.
32270         * m4/malloc.m4: Likewise.
32271         * m4/mathl.m4: Likewise.
32272         * m4/mbrtowc.m4: Likewise.
32273         * m4/mbstate_t.m4: Likewise.
32274         * m4/mbswidth.m4: Likewise.
32275         * m4/memchr.m4: Likewise.
32276         * m4/memcmp.m4: Likewise.
32277         * m4/memcpy.m4: Likewise.
32278         * m4/memmem.m4: Likewise.
32279         * m4/memmove.m4: Likewise.
32280         * m4/mempcpy.m4: Likewise.
32281         * m4/memrchr.m4: Likewise.
32282         * m4/memset.m4: Likewise.
32283         * m4/minmax.m4: Likewise.
32284         * m4/mkdir-slash.m4: Likewise.
32285         * m4/mkdtemp.m4: Likewise.
32286         * m4/mktime.m4: Likewise.
32287         * m4/mmap-anon.m4: Likewise.
32288         * m4/mountlist.m4: Likewise.
32289         * m4/nanosleep.m4: Likewise.
32290         * m4/nls.m4: Likewise.
32291         * m4/nocrash.m4: Likewise.
32292         * m4/open.m4: Likewise.
32293         * m4/openat.m4: Likewise.
32294         * m4/openmp.m4: Likewise.
32295         * m4/pathmax.m4: Likewise.
32296         * m4/perl.m4: Likewise.
32297         * m4/physmem.m4: Likewise.
32298         * m4/pipe.m4: Likewise.
32299         * m4/po.m4: Likewise.
32300         * m4/poll.m4: Likewise.
32301         * m4/posixtm.m4: Likewise.
32302         * m4/posixver.m4: Likewise.
32303         * m4/printf-frexp.m4: Likewise.
32304         * m4/printf-frexpl.m4: Likewise.
32305         * m4/printf-posix.m4: Likewise.
32306         * m4/printf-posix-rpl.m4: Likewise.
32307         * m4/printf.m4: Likewise.
32308         * m4/progtest.m4: Likewise.
32309         * m4/putenv.m4: Likewise.
32310         * m4/readline.m4: Likewise.
32311         * m4/readlink.m4: Likewise.
32312         * m4/readutmp.m4: Likewise.
32313         * m4/realloc.m4: Likewise.
32314         * m4/regex.m4: Likewise.
32315         * m4/relocatable.m4: Likewise.
32316         * m4/relocatable-lib.m4: Likewise.
32317         * m4/rename-dest-slash.m4: Likewise.
32318         * m4/rename.m4: Likewise.
32319         * m4/rmdir-errno.m4: Likewise.
32320         * m4/rmdir.m4: Likewise.
32321         * m4/roundf.m4: Likewise.
32322         * m4/roundl.m4: Likewise.
32323         * m4/rpmatch.m4: Likewise.
32324         * m4/save-cwd.m4: Likewise.
32325         * m4/selinux-selinux-h.m4: Likewise.
32326         * m4/setenv.m4: Likewise.
32327         * m4/settime.m4: Likewise.
32328         * m4/sig2str.m4: Likewise.
32329         * m4/sig_atomic_t.m4: Likewise.
32330         * m4/signalblocking.m4: Likewise.
32331         * m4/signbit.m4: Likewise.
32332         * m4/sigpipe.m4: Likewise.
32333         * m4/sockets.m4: Likewise.
32334         * m4/sockpfaf.m4: Likewise.
32335         * m4/st_dm_mode.m4: Likewise.
32336         * m4/stat-time.m4: Likewise.
32337         * m4/stdbool.m4: Likewise.
32338         * m4/stdint.m4: Likewise.
32339         * m4/stdint_h.m4: Likewise.
32340         * m4/stpcpy.m4: Likewise.
32341         * m4/stpncpy.m4: Likewise.
32342         * m4/strcase.m4: Likewise.
32343         * m4/strchrnul.m4: Likewise.
32344         * m4/strcspn.m4: Likewise.
32345         * m4/strdup.m4: Likewise.
32346         * m4/strftime.m4: Likewise.
32347         * m4/strndup.m4: Likewise.
32348         * m4/strnlen.m4: Likewise.
32349         * m4/strpbrk.m4: Likewise.
32350         * m4/strptime.m4: Likewise.
32351         * m4/strsep.m4: Likewise.
32352         * m4/strtod.m4: Likewise.
32353         * m4/strtoimax.m4: Likewise.
32354         * m4/strtok_r.m4: Likewise.
32355         * m4/strtol.m4: Likewise.
32356         * m4/strtoll.m4: Likewise.
32357         * m4/strtoul.m4: Likewise.
32358         * m4/strtoull.m4: Likewise.
32359         * m4/strtoumax.m4: Likewise.
32360         * m4/strverscmp.m4: Likewise.
32361         * m4/threadlib.m4: Likewise.
32362         * m4/timegm.m4: Likewise.
32363         * m4/tm_gmtoff.m4: Likewise.
32364         * m4/tmpdir.m4: Likewise.
32365         * m4/tmpfile.m4: Likewise.
32366         * m4/tzset.m4: Likewise.
32367         * m4/uintmax_t.m4: Likewise.
32368         * m4/unlinkdir.m4: Likewise.
32369         * m4/unlocked-io.m4: Likewise.
32370         * m4/uptime.m4: Likewise.
32371         * m4/userspec.m4: Likewise.
32372         * m4/utimbuf.m4: Likewise.
32373         * m4/utime.m4: Likewise.
32374         * m4/utimes-null.m4: Likewise.
32375         * m4/utimes.m4: Likewise.
32376         * m4/vararrays.m4: Likewise.
32377         * m4/vasnprintf.m4: Likewise.
32378         * m4/vfprintf-posix.m4: Likewise.
32379         * m4/vprintf-posix.m4: Likewise.
32380         * m4/wait-process.m4: Likewise.
32381         * m4/wchar_t.m4: Likewise.
32382         * m4/wint_t.m4: Likewise.
32383         * m4/write-any-file.m4: Likewise.
32384         * m4/yield.m4: Likewise.
32385
32386 2009-01-13  Bruno Haible  <bruno@clisp.org>
32387
32388         Avoid test-copy-file.sh failures when ACL support insufficient.
32389         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32390         TESTS_ENVIRONMENT.
32391         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32392         Reported by Jim Meyering.
32393
32394 2009-01-13  Bruno Haible  <bruno@clisp.org>
32395
32396         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32397         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32398         * modules/unistdio/u8-printf-parse (Files): Likewise.
32399         * modules/unistdio/u32-printf-parse (Files): Likewise.
32400         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32401
32402 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32403
32404         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32405         and m4/inttypes_h.m4 too.
32406
32407 2009-01-12  Eric Blake  <ebb9@byu.net>
32408
32409         tests: IRIX 6.2 cc can't compile -0.0 into .data
32410         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32411         rather than at compile-time.
32412         * tests/test-floorl.c (minus_zero): Likewise.
32413         * tests/test-frexpl.c (minus_zero): Likewise.
32414         * tests/test-isnan.c (minus_zerol): Likewise.
32415         * tests/test-isnanl.h (minus_zero): Likewise.
32416         * tests/test-ldexpl.c (minus_zero): Likewise.
32417         * tests/test-roundl.c (minus_zero): Likewise.
32418         * tests/test-signbit.c (minus_zerol): Likewise.
32419         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32420         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32421         * tests/test-truncl.c (minus_zero): Likewise.
32422         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32423         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32424         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32425
32426 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32427
32428         regex: fix glibc bug 9697
32429         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32430         handling.
32431
32432 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32433
32434         regex: fix glibc bug 697
32435         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32436         being NULL also if there are no backreferences.
32437
32438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32439
32440         regex: merge glibc changes
32441         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32442         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32443         re_string_skip_chars, re_string_reconstruct): Likewise.
32444         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32445
32446 2009-01-07  Jim Meyering  <meyering@redhat.com>
32447
32448         poll: filter through cppi
32449         * lib/poll.c: Indent cpp directives to reflect nesting.
32450
32451 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32452
32453         poll: don't return uninitialized
32454         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32455
32456 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32457
32458         avoid compile failure on AIX 6.1
32459         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32460         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32461
32462 2009-01-04  Jim Meyering  <meyering@redhat.com>
32463
32464         remove duplicate inclusion of <stdio.h>
32465         * tests/test-fprintf-posix.c: Likewise.
32466         * tests/test-printf-posix.c: Likewise.
32467         * tests/test-snprintf-posix.c: Likewise.
32468         * tests/test-sprintf-posix.c: Likewise.
32469         * tests/test-vasprintf-posix.c: Likewise.
32470         * tests/test-vfprintf-posix.c: Likewise.
32471         * tests/test-vprintf-posix.c: Likewise.
32472         * tests/test-vsnprintf-posix.c: Likewise.
32473         * tests/test-vsprintf-posix.c: Likewise.
32474
32475 2009-01-03  Jim Meyering  <meyering@redhat.com>
32476
32477         gnulib-tool: fix sed-based filtering
32478         * gnulib-tool (func_filter_filelist): Remove extra backslash
32479         in sed_fff_filter definition.
32480
32481 2009-01-02  Jim Meyering  <meyering@redhat.com>
32482
32483         strftime: avoid compilation failure on Solaris 2.6
32484         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32485         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32486         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32487         be available.  Reported by Tom G. Christensen.  Details in
32488         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32489
32490 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32491             Bruno Haible  <bruno@clisp.org>
32492
32493         Speed up gnulib-tool by doing more string processing through shell
32494         built-ins.
32495         * gnulib-tool (fast_func_append): New variable.
32496         (func_remove_prefix, func_remove_suffix): New functions.
32497         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32498         (func_filter_filelist): New function.
32499         (func_get_dependencies): Use func_remove_suffix instead of sed.
32500         (func_get_automake_snippet): Use func_filter_filelist instead of a
32501         subshell and sed invocation.
32502
32503 2009-01-01  Bruno Haible  <bruno@clisp.org>
32504
32505         Fix a security bug.
32506         * gnulib-tool (func_import, import, update): Don't allow the characters
32507         '"', '$', '`', '\' in macro arguments that become part of commands that
32508         are evaluated.
32509
32510 2009-01-01  Bruno Haible  <bruno@clisp.org>
32511
32512         * gnulib-tool (func_reset_sigpipe): Add more comments.
32513
32514 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32515
32516         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32517         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32518         already know the answer.
32519
32520 2009-01-01  Jim Meyering  <meyering@redhat.com>
32521
32522         * lib/version-etc.c (version_etc_va): Update copyright year.
32523
32524 2008-12-30  Bruno Haible  <bruno@clisp.org>
32525
32526         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32527         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32528         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32529
32530 2008-12-29  Eric Blake  <ebb9@byu.net>
32531
32532         multiarch: avoid autoconf AC_REQUIRE bug
32533         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32534         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32535         2.63 and older.
32536         Reported by Bruno Haible, and analyzed in
32537         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32538
32539 2008-12-29  Bruno Haible  <bruno@clisp.org>
32540
32541         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32542         files in subdirectories correctly.
32543         Reported by Ralf Wildenhues.
32544
32545 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32546
32547         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32548         rather than 'join FILE -', for Solaris join.
32549
32550 2008-12-29  Bruno Haible  <bruno@clisp.org>
32551
32552         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32553         quoting.
32554         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32555         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32556         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32557         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32558         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32559         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32560         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32561         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32562         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32563         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32564         * m4/nls.m4 (AM_NLS): Likewise.
32565         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32566         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32567         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32568         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32569         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32570         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32571         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32572         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32573         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32574         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32575         * m4/xsize.m4 (gl_XSIZE): Likewise.
32576         Suggested by Jim Meyering.
32577
32578 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32579
32580         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32581         * lib/parse-duration.c: use a switch instead of cascading if's.
32582
32583 2008-12-29  Eric Blake  <ebb9@byu.net>
32584
32585         wchar.h: supply WEOF on Irix 5.3
32586         * lib/wchar.in.h (wint_t): Also supply WEOF.
32587         * lib/wctype.in.h (wint_t): Likewise.
32588         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32589         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32590         Reported by Tom G. Christensen.
32591
32592 2008-12-26  Bruno Haible  <bruno@clisp.org>
32593
32594         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32595         i486, i586, i686.
32596
32597 2008-12-26  Bruno Haible  <bruno@clisp.org>
32598
32599         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32600
32601 2008-12-26  Bruno Haible  <bruno@clisp.org>
32602
32603         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32604         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32605         not __STDC_CONSTANT_MACROS.
32606         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32607
32608 2008-12-25  Bruno Haible  <bruno@clisp.org>
32609
32610         Add support for universal builds to vasnprintf.
32611         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32612         universal builds, guess no.
32613         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32614         * modules/vasprintf-posix (Depends-on): Likewise.
32615         * modules/fprintf-posix (Depends-on): Likewise.
32616         * modules/vfprintf-posix (Depends-on): Likewise.
32617         * modules/snprintf-posix (Depends-on): Likewise.
32618         * modules/vsnprintf-posix (Depends-on): Likewise.
32619         * modules/sprintf-posix (Depends-on): Likewise.
32620         * modules/vsprintf-posix (Depends-on): Likewise.
32621         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32622         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32623         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32624         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32625         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32626         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32627         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32628
32629         Add support for universal builds to <inttypes.h>.
32630         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32631         _SCNu64_PREFIX): In Apple
32632         universal builds, define directly, using _LP64.
32633         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32634         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32635         * modules/inttypes (Depends-on): Add multiarch.
32636         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32637
32638         Add support for universal builds to <stdint.h>.
32639         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32640         universal builds, define directly, using _LP64.
32641         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32642         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32643         and size_t.
32644         * modules/stdint (Depends-on): Add multiarch.
32645         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32646
32647         New module 'multiarch'.
32648         * modules/multiarch: New file.
32649         * m4/multiarch.m4: New file.
32650
32651 2008-12-25  Bruno Haible  <bruno@clisp.org>
32652
32653         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32654
32655 2008-12-25  Bruno Haible  <bruno@clisp.org>
32656
32657         * modules/btowc (License): Relicense under LGPLv2+.
32658         * modules/mbsinit (License): Likewise.
32659         * modules/mbrtowc (License): Likewise.
32660         * modules/wcrtomb (License): Likewise.
32661         * modules/streq (License): Likewise.
32662         Reported by David Lutterkort <lutter@redhat.com>.
32663
32664 2008-12-23  Bruno Haible  <bruno@clisp.org>
32665
32666         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32667
32668 2008-12-23  Bruno Haible  <bruno@clisp.org>
32669
32670         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32672         GETADDRINFO_LIB, not in LIBS.
32673         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32674         * modules/canon-host (Link): Likewise.
32675         * NEWS: Mention the change.
32676         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32677         GETADDRINFO_LIB.
32678
32679 2008-12-22  Bruno Haible  <bruno@clisp.org>
32680
32681         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32682         * doc/posix-functions/iswalpha_l.texi: Likewise.
32683         * doc/posix-functions/iswblank_l.texi: Likewise.
32684         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32685         * doc/posix-functions/iswctype_l.texi: Likewise.
32686         * doc/posix-functions/iswdigit_l.texi: Likewise.
32687         * doc/posix-functions/iswgraph_l.texi: Likewise.
32688         * doc/posix-functions/iswlower_l.texi: Likewise.
32689         * doc/posix-functions/iswprint_l.texi: Likewise.
32690         * doc/posix-functions/iswpunct_l.texi: Likewise.
32691         * doc/posix-functions/iswspace_l.texi: Likewise.
32692         * doc/posix-functions/iswupper_l.texi: Likewise.
32693         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32694         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32695         * doc/posix-functions/open_wmemstream.texi: Likewise.
32696         * doc/posix-functions/swscanf.texi: Likewise.
32697         * doc/posix-functions/towctrans_l.texi: Likewise.
32698         * doc/posix-functions/towlower.texi: Likewise.
32699         * doc/posix-functions/towlower_l.texi: Likewise.
32700         * doc/posix-functions/towupper.texi: Likewise.
32701         * doc/posix-functions/towupper_l.texi: Likewise.
32702         * doc/posix-functions/vfwprintf.texi: Likewise.
32703         * doc/posix-functions/vfwscanf.texi: Likewise.
32704         * doc/posix-functions/vswscanf.texi: Likewise.
32705         * doc/posix-functions/vwprintf.texi: Likewise.
32706         * doc/posix-functions/vwscanf.texi: Likewise.
32707         * doc/posix-functions/wcpcpy.texi: Likewise.
32708         * doc/posix-functions/wcpncpy.texi: Likewise.
32709         * doc/posix-functions/wcscasecmp.texi: Likewise.
32710         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32711         * doc/posix-functions/wcscoll_l.texi: Likewise.
32712         * doc/posix-functions/wcsdup.texi: Likewise.
32713         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32714         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32715         * doc/posix-functions/wcsnlen.texi: Likewise.
32716         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32717         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32718         * doc/posix-functions/wctrans_l.texi: Likewise.
32719         * doc/posix-functions/wctype_l.texi: Likewise.
32720         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32721         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32722         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32723         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32724         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32725         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32726         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32727         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32728         * doc/glibc-functions/wcschrnul.texi: Likewise.
32729         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32730         * doc/glibc-functions/wcstod_l.texi: Likewise.
32731         * doc/glibc-functions/wcstof_l.texi: Likewise.
32732         * doc/glibc-functions/wcstol_l.texi: Likewise.
32733         * doc/glibc-functions/wcstold_l.texi: Likewise.
32734         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32735         * doc/glibc-functions/wcstoq.texi: Likewise.
32736         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32737         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32738         * doc/glibc-functions/wcstouq.texi: Likewise.
32739         * doc/glibc-functions/wmempcpy.texi: Likewise.
32740
32741 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32742             Eric Blake  <ebb9@byu.net>
32743             Paolo Bonzini  <bonzini@gnu.org>
32744             Bruno Haible  <bruno@clisp.org>
32745
32746         Make c-stack work on Haiku.
32747         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32748         (c_stack_action): Use SA_ONSTACK flag.
32749
32750 2008-12-22  Bruno Haible  <bruno@clisp.org>
32751
32752         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32753
32754 2008-12-22  Bruno Haible  <bruno@clisp.org>
32755
32756         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32757         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32758         being overridden.
32759         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32760         New macros.
32761         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32763         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32764         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32765
32766 2008-12-22  Bruno Haible  <bruno@clisp.org>
32767
32768         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32769         from test code.
32770
32771 2008-12-22  Eric Blake  <ebb9@byu.net>
32772
32773         Avoid gcc warnings on cygwin.
32774         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32775         Avoid unused variable.
32776         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32777         Likewise.
32778
32779 2008-12-22  Bruno Haible  <bruno@clisp.org>
32780
32781         Remove HAVE_MBRTOWC conditionals.
32782         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32783         (mbscasecmp): Assume mbrtowc function.
32784         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32785         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32786         * lib/mbschr.c: Include mbuiter.h unconditionally.
32787         (mbschr): Assume mbrtowc function.
32788         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32789         (mbscspn): Assume mbrtowc function.
32790         * lib/mbslen.c: Include mbuiter.h unconditionally.
32791         (mbslen): Assume mbrtowc function.
32792         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32793         (mbsncasecmp): Assume mbrtowc function.
32794         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32795         (mbsnlen): Assume mbrtowc function.
32796         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32797         (mbspbrk): Assume mbrtowc function.
32798         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32799         (mbspcasecmp): Assume mbrtowc function.
32800         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32801         (mbsrchr): Assume mbrtowc function.
32802         * lib/mbssep.c: Include mbuiter.h unconditionally.
32803         (mbssep): Assume mbrtowc function.
32804         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32805         (mbsspn): Assume mbrtowc function.
32806         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32807         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32808         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32809         (mbstok_r): Assume mbrtowc function.
32810         * lib/propername.c: Include mbuiter.h unconditionally.
32811         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32812         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32813         (trim2): Assume mbrtowc function.
32814         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32815         (mbsnwidth): Assume mbrtowc function.
32816         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32817         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32818         fallback definitions.
32819         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32820
32821 2008-12-22  Bruno Haible  <bruno@clisp.org>
32822
32823         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32824
32825 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32826
32827         * modules/regex: Request emulations for the mb*/wc* functions we need.
32828         * m4/regex.m4: Don't look for those functions here.
32829         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32830
32831 2008-12-22  Bruno Haible  <bruno@clisp.org>
32832
32833         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32834
32835 2008-12-21  Bruno Haible  <bruno@clisp.org>
32836
32837         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32838         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32839         (Include): Remove conditionalization.
32840         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32841         (Include): Remove conditionalization.
32842         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32843         (Include): Remove conditionalization.
32844         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32845         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32846         * NEWS: Mention the change.
32847         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32848         via Sergey Poznyakoff <gray@gnu.org.ua>.
32849
32850 2008-12-21  Bruno Haible  <bruno@clisp.org>
32851
32852         * MODULES.html.sh (Extended multibyte and wide character utilities
32853         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32854         wcrtomb, wcsrtombs.
32855         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32856         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32857         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32858         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32859
32860 2008-12-21  Bruno Haible  <bruno@clisp.org>
32861
32862         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32863
32864 2008-12-21  Bruno Haible  <bruno@clisp.org>
32865
32866         * modules/wcsnrtombs-tests: New file.
32867         * tests/test-wcsnrtombs1.sh: New file.
32868         * tests/test-wcsnrtombs2.sh: New file.
32869         * tests/test-wcsnrtombs3.sh: New file.
32870         * tests/test-wcsnrtombs4.sh: New file.
32871         * tests/test-wcsnrtombs.c: New file.
32872
32873         New module 'wcsnrtombs'.
32874         * lib/wchar.in.h (wcsnrtombs): New declaration.
32875         * lib/wcsnrtombs.c: New file.
32876         * lib/wcsrtombs-state.c: New file.
32877         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32878         (internal_state): Remove variable.
32879         * m4/wcsnrtombs.m4: New file.
32880         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32881         compilation units.
32882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32883         HAVE_WCSNRTOMBS.
32884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32885         HAVE_WCSNRTOMBS.
32886         * modules/wcsnrtombs: New file.
32887         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32888         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32889
32890 2008-12-21  Bruno Haible  <bruno@clisp.org>
32891
32892         * modules/wcsrtombs-tests: New file.
32893         * tests/test-wcsrtombs1.sh: New file.
32894         * tests/test-wcsrtombs2.sh: New file.
32895         * tests/test-wcsrtombs3.sh: New file.
32896         * tests/test-wcsrtombs4.sh: New file.
32897         * tests/test-wcsrtombs.c: New file.
32898
32899         New module 'wcsrtombs'.
32900         * lib/wchar.in.h (wcsrtombs): New declaration.
32901         * lib/wcsrtombs.c: New file.
32902         * m4/wcsrtombs.m4: New file.
32903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32904         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32906         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32907         * modules/wcsrtombs: New file.
32908         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32909         bugs.
32910
32911 2008-12-21  Bruno Haible  <bruno@clisp.org>
32912
32913         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32914         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32916         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32917         if not correct.
32918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32919         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32920         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32921         m4/locale-zh.m4, m4/codeset.m4.
32922         * doc/posix-functions/wcrtomb.texi: Document the bug.
32923
32924 2008-12-21  Bruno Haible  <bruno@clisp.org>
32925
32926         Work around a btowc() bug on IRIX 6.5.
32927         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32928         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32929         REPLACE_WTOBC if not.
32930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32931         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32932         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32933
32934 2008-12-21  Bruno Haible  <bruno@clisp.org>
32935
32936         * modules/wcrtomb-tests: New file.
32937         * tests/test-wcrtomb.sh: New file.
32938         * tests/test-wcrtomb.c: New file.
32939
32940         New module 'wcrtomb'.
32941         * lib/wchar.in.h (wcrtomb): New declaration.
32942         * lib/wcrtomb.c: New file.
32943         * m4/wcrtomb.m4: New file.
32944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32945         HAVE_WCRTOMB.
32946         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32947         HAVE_WCRTOMB.
32948         * modules/wcrtomb: New file.
32949         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32950
32951 2008-12-21  Bruno Haible  <bruno@clisp.org>
32952
32953         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32954         * modules/mbsrtowcs (Files): Likewise.
32955         * modules/wctob (Files): Likewise.
32956         * modules/c-strcase-tests (Files): Likewise.
32957         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32958         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32959         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32960         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32961         * modules/vasnprintf-posix-tests (Files): Likewise.
32962
32963 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32964
32965         gitlog-to-changelog: pass all command-line arguments to git-log
32966         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32967         it is sometimes convenient to filter the commits in various ways.
32968         gitlog-to-changelog only allows --since to specify a start date,
32969         but git-log itself supports many other filtering mechanisms.
32970         At the moment, I want to filter by branch name.  Rather than
32971         adding a --branch option to gitlog-to-changelog, it seems more
32972         flexible to simply pass all options directly to git-log and let
32973         git do the work.  Notice that this effectively makes --since a
32974         redundant option for gitlog-to-changelog, but removing it would
32975         require current usage to change since calls would then require
32976         an additional '--'.
32977
32978 2008-12-21  Bruno Haible  <bruno@clisp.org>
32979
32980         * modules/mbsnrtowcs-tests: New file.
32981         * tests/test-mbsnrtowcs1.sh: New file.
32982         * tests/test-mbsnrtowcs2.sh: New file.
32983         * tests/test-mbsnrtowcs3.sh: New file.
32984         * tests/test-mbsnrtowcs4.sh: New file.
32985         * tests/test-mbsnrtowcs.c: New file.
32986
32987         New module 'mbsnrtowcs'.
32988         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32989         * lib/mbsnrtowcs.c: New file.
32990         * lib/mbsrtowcs-state.c: New file.
32991         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32992         (internal_state): Remove variable.
32993         * m4/mbsnrtowcs.m4: New file.
32994         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32995         compilation units.
32996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32997         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32998         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32999         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33000         * modules/mbsnrtowcs: New file.
33001         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33002         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33003         portability problem.
33004
33005 2008-12-21  Bruno Haible  <bruno@clisp.org>
33006
33007         Work around mbsrtowcs bug.
33008         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33009         (gl_FUNC_MBSRTOWCS): Invoke it.
33010         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33011         m4/locale-zh.m4.
33012         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33013
33014 2008-12-21  Bruno Haible  <bruno@clisp.org>
33015
33016         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33017
33018 2008-12-21  Bruno Haible  <bruno@clisp.org>
33019
33020         Update doc for AIX.
33021         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33022         16-bit wchar_t type.
33023         * doc/posix-functions/btowc.texi: Likewise.
33024         * doc/posix-functions/fgetwc.texi: Likewise.
33025         * doc/posix-functions/fgetws.texi: Likewise.
33026         * doc/posix-functions/fputwc.texi: Likewise.
33027         * doc/posix-functions/fputws.texi: Likewise.
33028         * doc/posix-functions/fwide.texi: Likewise.
33029         * doc/posix-functions/fwprintf.texi: Likewise.
33030         * doc/posix-functions/fwscanf.texi: Likewise.
33031         * doc/posix-functions/getwchar.texi: Likewise.
33032         * doc/posix-functions/getwc.texi: Likewise.
33033         * doc/posix-functions/iswalnum.texi: Likewise.
33034         * doc/posix-functions/iswalpha.texi: Likewise.
33035         * doc/posix-functions/iswblank.texi: Likewise.
33036         * doc/posix-functions/iswcntrl.texi: Likewise.
33037         * doc/posix-functions/iswctype.texi: Likewise.
33038         * doc/posix-functions/iswdigit.texi: Likewise.
33039         * doc/posix-functions/iswgraph.texi: Likewise.
33040         * doc/posix-functions/iswlower.texi: Likewise.
33041         * doc/posix-functions/iswprint.texi: Likewise.
33042         * doc/posix-functions/iswpunct.texi: Likewise.
33043         * doc/posix-functions/iswspace.texi: Likewise.
33044         * doc/posix-functions/iswupper.texi: Likewise.
33045         * doc/posix-functions/iswxdigit.texi: Likewise.
33046         * doc/posix-functions/mbrtowc.texi: Likewise.
33047         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33048         * doc/posix-functions/mbstowcs.texi: Likewise.
33049         * doc/posix-functions/mbtowc.texi: Likewise.
33050         * doc/posix-functions/putwchar.texi: Likewise.
33051         * doc/posix-functions/putwc.texi: Likewise.
33052         * doc/posix-functions/swprintf.texi: Likewise.
33053         * doc/posix-functions/tolower.texi: Likewise.
33054         * doc/posix-functions/toupper.texi: Likewise.
33055         * doc/posix-functions/towctrans.texi: Likewise.
33056         * doc/posix-functions/ungetwc.texi: Likewise.
33057         * doc/posix-functions/vswprintf.texi: Likewise.
33058         * doc/posix-functions/wcrtomb.texi: Likewise.
33059         * doc/posix-functions/wcscat.texi: Likewise.
33060         * doc/posix-functions/wcschr.texi: Likewise.
33061         * doc/posix-functions/wcscmp.texi: Likewise.
33062         * doc/posix-functions/wcscoll.texi: Likewise.
33063         * doc/posix-functions/wcscpy.texi: Likewise.
33064         * doc/posix-functions/wcscspn.texi: Likewise.
33065         * doc/posix-functions/wcsftime.texi: Likewise.
33066         * doc/posix-functions/wcslen.texi: Likewise.
33067         * doc/posix-functions/wcsncat.texi: Likewise.
33068         * doc/posix-functions/wcsncmp.texi: Likewise.
33069         * doc/posix-functions/wcsncpy.texi: Likewise.
33070         * doc/posix-functions/wcspbrk.texi: Likewise.
33071         * doc/posix-functions/wcsrchr.texi: Likewise.
33072         * doc/posix-functions/wcsrtombs.texi: Likewise.
33073         * doc/posix-functions/wcsspn.texi: Likewise.
33074         * doc/posix-functions/wcsstr.texi: Likewise.
33075         * doc/posix-functions/wcstod.texi: Likewise.
33076         * doc/posix-functions/wcstof.texi: Likewise.
33077         * doc/posix-functions/wcstoimax.texi: Likewise.
33078         * doc/posix-functions/wcstok.texi: Likewise.
33079         * doc/posix-functions/wcstold.texi: Likewise.
33080         * doc/posix-functions/wcstoll.texi: Likewise.
33081         * doc/posix-functions/wcstol.texi: Likewise.
33082         * doc/posix-functions/wcstombs.texi: Likewise.
33083         * doc/posix-functions/wcstoull.texi: Likewise.
33084         * doc/posix-functions/wcstoul.texi: Likewise.
33085         * doc/posix-functions/wcstoumax.texi: Likewise.
33086         * doc/posix-functions/wcswidth.texi: Likewise.
33087         * doc/posix-functions/wcsxfrm.texi: Likewise.
33088         * doc/posix-functions/wctob.texi: Likewise.
33089         * doc/posix-functions/wctomb.texi: Likewise.
33090         * doc/posix-functions/wctrans.texi: Likewise.
33091         * doc/posix-functions/wctype.texi: Likewise.
33092         * doc/posix-functions/wcwidth.texi: Likewise.
33093         * doc/posix-functions/wmemchr.texi: Likewise.
33094         * doc/posix-functions/wmemcmp.texi: Likewise.
33095         * doc/posix-functions/wmemcpy.texi: Likewise.
33096         * doc/posix-functions/wmemmove.texi: Likewise.
33097         * doc/posix-functions/wmemset.texi: Likewise.
33098         * doc/posix-functions/wprintf.texi: Likewise.
33099         * doc/posix-functions/wscanf.texi: Likewise.
33100
33101 2008-12-21  Bruno Haible  <bruno@clisp.org>
33102
33103         Update doc for HP-UX 11.11.
33104         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33105         in HP-UX version 11.00, not in all versions of HP-UX 11.
33106         * doc/posix-functions/fwide.texi: Likewise.
33107         * doc/posix-functions/fwprintf.texi: Likewise.
33108         * doc/posix-functions/fwscanf.texi: Likewise.
33109         * doc/posix-functions/inet_ntop.texi: Likewise.
33110         * doc/posix-functions/inet_pton.texi: Likewise.
33111         * doc/posix-functions/mbrlen.texi: Likewise.
33112         * doc/posix-functions/mbrtowc.texi: Likewise.
33113         * doc/posix-functions/mbsinit.texi: Likewise.
33114         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33115         * doc/posix-functions/swprintf.texi: Likewise.
33116         * doc/posix-functions/swscanf.texi: Likewise.
33117         * doc/posix-functions/towctrans.texi: Likewise.
33118         * doc/posix-functions/vfwprintf.texi: Likewise.
33119         * doc/posix-functions/vswprintf.texi: Likewise.
33120         * doc/posix-functions/vwprintf.texi: Likewise.
33121         * doc/posix-functions/wcrtomb.texi: Likewise.
33122         * doc/posix-functions/wcsrtombs.texi: Likewise.
33123         * doc/posix-functions/wcsstr.texi: Likewise.
33124         * doc/posix-functions/wctob.texi: Likewise.
33125         * doc/posix-functions/wctrans.texi: Likewise.
33126         * doc/posix-functions/wmemchr.texi: Likewise.
33127         * doc/posix-functions/wmemcmp.texi: Likewise.
33128         * doc/posix-functions/wmemcpy.texi: Likewise.
33129         * doc/posix-functions/wmemmove.texi: Likewise.
33130         * doc/posix-functions/wmemset.texi: Likewise.
33131         * doc/posix-functions/wprintf.texi: Likewise.
33132         * doc/posix-functions/wscanf.texi: Likewise.
33133
33134 2008-12-21  Bruno Haible  <bruno@clisp.org>
33135
33136         Work around a portability problem.
33137         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33138         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33139
33140 2008-12-20  Bruno Haible  <bruno@clisp.org>
33141
33142         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33143         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33144         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33146         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33147
33148         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33149         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33150         set.
33151         (GNULIB_defined_mbstate_t): New macro.
33152         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33153         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33154         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33155         reuses the system's mbrtowc function but works around the bugs.
33156         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33157         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33158         macros.
33159         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33160         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33161         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33162         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33163         REPLACE_MBSINIT if mbsinit needs to be overridden.
33164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33165         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33166         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33167         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33168         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33169         m4/locale-zh.m4.
33170         (Depends): Add mbsinit.
33171         * modules/mbsinit (Depends): Add mbrtowc.
33172         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33173
33174 2008-12-20  Bruno Haible  <bruno@clisp.org>
33175
33176         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33177         so that there are no conversion errors on AIX.
33178         * tests/test-mbsrtowcs.c (main): LIkewise.
33179
33180 2008-12-20  Bruno Haible  <bruno@clisp.org>
33181
33182         Work around wctob bug on Solaris <= 9.
33183         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33184         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33186         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33187         * modules/wctob (Files): Add m4/locale-fr.m4.
33188         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33189
33190 2008-12-20  Bruno Haible  <bruno@clisp.org>
33191
33192         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33193         /dev/null.
33194         * tests/test-select-in.sh: Likewise.
33195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33196
33197 2008-12-20  Bruno Haible  <bruno@clisp.org>
33198
33199         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33200         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33201         Cygwin 1.5.x.
33202
33203 2008-12-20  Bruno Haible  <bruno@clisp.org>
33204
33205         Ensure mbstate_t is defined on HP-UX 11.11.
33206         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33207         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33208         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33209         AC_USE_SYSTEM_EXTENSIONS.
33210         * modules/fnmatch (Depends-on): Add extensions.
33211         * modules/mbrlen (Depends-on): Likewise.
33212         * modules/mbrtowc (Depends-on): Likewise.
33213         * modules/mbsinit (Depends-on): Likewise.
33214         * modules/mbsrtowcs (Depends-on): Likewise.
33215         * modules/mbswidth (Depends-on): Likewise.
33216         * modules/quotearg (Depends-on): Likewise.
33217         * modules/strftime (Depends-on): Likewise.
33218
33219 2008-12-20  Bruno Haible  <bruno@clisp.org>
33220
33221         Ensure wctob is declared on IRIX 6.5.
33222         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33223         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33224         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33226         of HAVE_WCTOB.
33227         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33228         HAVE_WCTOB.
33229         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33230
33231 2008-12-19  Bruno Haible  <bruno@clisp.org>
33232
33233         * modules/mbsrtowcs-tests: New file.
33234         * tests/test-mbsrtowcs1.sh: New file.
33235         * tests/test-mbsrtowcs2.sh: New file.
33236         * tests/test-mbsrtowcs3.sh: New file.
33237         * tests/test-mbsrtowcs4.sh: New file.
33238         * tests/test-mbsrtowcs.c: New file.
33239
33240         New module 'mbsrtowcs'.
33241         * lib/wchar.in.h (mbsrtowcs): New declaration.
33242         * lib/mbsrtowcs.c: New file.
33243         * m4/mbsrtowcs.m4: New file.
33244         * modules/mbsrtowcs: New file.
33245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33246         HAVE_MBSRTOWCS.
33247         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33248         HAVE_MBSRTOWCS.
33249         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33250
33251 2008-12-19  Bruno Haible  <bruno@clisp.org>
33252
33253         New module 'mbrlen'.
33254         * lib/wchar.in.h (mbrlen): New declaration.
33255         * lib/mbrlen.c: New file.
33256         * m4/mbrlen.m4: New file.
33257         * modules/mbrlen: New file.
33258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33259         HAVE_MBRLEN.
33260         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33261         HAVE_MBRLEN.
33262         * doc/posix-functions/mbrlen.texi: Document the new module.
33263
33264 2008-12-19  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33267         * modules/mbrtowc (Depends-on): Add verify.
33268         Suggested by Paul Eggert.
33269
33270 2008-12-18  Bruno Haible  <bruno@clisp.org>
33271
33272         * modules/mbsinit-tests: New file.
33273         * tests/test-mbsinit.sh: New file.
33274         * tests/test-mbsinit.c: New file.
33275
33276 2008-12-18  Bruno Haible  <bruno@clisp.org>
33277
33278         * modules/mbrtowc-tests: New file.
33279         * tests/test-mbrtowc1.sh: New file.
33280         * tests/test-mbrtowc2.sh: New file.
33281         * tests/test-mbrtowc3.sh: New file.
33282         * tests/test-mbrtowc4.sh: New file.
33283         * tests/test-mbrtowc.c: New file.
33284
33285         New module 'mbrtowc'.
33286         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33287         mbsinit and mbrtowc.
33288         (mbrtowc): New declaration.
33289         * lib/mbrtowc.c: New file.
33290         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33291         * modules/mbrtowc: New file.
33292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33293         HAVE_MBRTOWC.
33294         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33295         HAVE_MBRTOWC.
33296         * doc/posix-functions/mbrtowc.texi: Document the new module.
33297
33298 2008-12-18  Bruno Haible  <bruno@clisp.org>
33299
33300         New module 'wctob'.
33301         * lib/wchar.in.h (wctob): New declaration.
33302         * lib/wctob.c: New file.
33303         * m4/wctob.m4: New file.
33304         * modules/wctob: New file.
33305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33306         HAVE_WCTOB.
33307         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33308         * doc/posix-functions/wctob.texi: Document the new module.
33309
33310 2008-12-18  Bruno Haible  <bruno@clisp.org>
33311
33312         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33313         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33314
33315 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33316
33317         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33318         G. Christensen" <tgc@jupiterrise.com>.
33319
33320         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33321         G. Christensen" <tgc@jupiterrise.com>.
33322
33323         * lib/flock.c: Need to include string.h.  Reported by "Tom
33324         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33325         <ebb9@byu.net>.
33326
33327 2008-12-18  Bruno Haible  <bruno@clisp.org>
33328
33329         * m4/locale-ja.m4: New file, from GNU gettext.
33330
33331 2008-12-17  Bruno Haible  <bruno@clisp.org>
33332
33333         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33334         Suggested by Eric Blake.
33335
33336 2008-12-17  Bruno Haible  <bruno@clisp.org>
33337
33338         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33339
33340 2008-12-17  Bruno Haible  <bruno@clisp.org>
33341
33342         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33343         * modules/mbsinit (Depends-on): Add verify.
33344         Suggested by Paul Eggert.
33345
33346 2008-12-17  Bruno Haible  <bruno@clisp.org>
33347
33348         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33349         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33350         gl_FUNC_MBRTOWC.
33351         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33352         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33353         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33354         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33355         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33356         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33357         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33358         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33359         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33360         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33361         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33362         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33363         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33364         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33365         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33366         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33367         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33368         * modules/trim (configure.ac): Likewise.
33369
33370 2008-12-17  Bruno Haible  <bruno@clisp.org>
33371
33372         * modules/btowc-tests: New file.
33373         * tests/test-btowc1.sh: New file.
33374         * tests/test-btowc2.sh: New file.
33375         * tests/test-btowc.c: New file.
33376
33377         New module 'btowc'.
33378         * lib/wchar.in.h (btowc): New declaration.
33379         * lib/btowc.c: New file.
33380         * m4/btowc.m4: New file.
33381         * modules/btowc: New file.
33382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33383         HAVE_BTOWC.
33384         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33385         * doc/posix-functions/btowc.texi: Document the new module.
33386
33387 2008-12-17  Bruno Haible  <bruno@clisp.org>
33388
33389         New module 'mbsinit'.
33390         * lib/wchar.in.h (mbsinit): New declaration.
33391         * lib/mbsinit.c: New file.
33392         * m4/mbsinit.m4: New file.
33393         * modules/mbsinit: New file.
33394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33395         HAVE_MBSINIT.
33396         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33397         HAVE_MBSINIT.
33398         * doc/posix-functions/mbsinit.texi: Document the new module.
33399
33400 2008-12-16  Bruno Haible  <bruno@clisp.org>
33401
33402         * lib/unistd.in.h: Add comment.
33403         * tests/test-environ.c: Don't include <stdlib.h>.
33404
33405 2008-12-16  Bruno Haible  <bruno@clisp.org>
33406
33407         * lib/parse-duration.h (parse_duration): Document return value
33408         convention.
33409         * lib/parse-duration.c: Include specification header first. Add
33410         comments.
33411         (_): Remove macro.
33412         (parse_year_month_day, parse_hour_minute_second): Move side effects
33413         outside of strchr call.
33414         (parse_non_iso8601): Move side effects outside of isspace call.
33415         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33416         call.
33417
33418 2008-12-16  Bruno Haible  <bruno@clisp.org>
33419
33420         * tests/test-parse-duration.sh: Produce no output when the test
33421         succeeds.
33422
33423 2008-12-16  Bruno Haible  <bruno@clisp.org>
33424
33425         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33426         expressions.
33427
33428 2008-12-15  Bruno Haible  <bruno@clisp.org>
33429
33430         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33431         * doc/glibc-functions/flistxattr.texi: Likewise.
33432         * doc/glibc-functions/fopencookie.texi: Likewise.
33433         * doc/glibc-functions/fremovexattr.texi: Likewise.
33434         * doc/glibc-functions/fsetxattr.texi: Likewise.
33435         * doc/glibc-functions/getxattr.texi: Likewise.
33436         * doc/glibc-functions/lgetxattr.texi: Likewise.
33437         * doc/glibc-functions/listxattr.texi: Likewise.
33438         * doc/glibc-functions/llistxattr.texi: Likewise.
33439         * doc/glibc-functions/lremovexattr.texi: Likewise.
33440         * doc/glibc-functions/lsetxattr.texi: Likewise.
33441         * doc/glibc-functions/removexattr.texi: Likewise.
33442         * doc/glibc-functions/setxattr.texi: Likewise.
33443         * doc/posix-functions/open_memstream.texi: Likewise.
33444
33445 2008-12-15  Eric Blake  <ebb9@byu.net>
33446
33447         Update doc for cygwin 1.7.
33448         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33449         functions.
33450         * doc/posix-functions/fchmodat.texi: Likewise.
33451         * doc/posix-functions/fchownat.texi: Likewise.
33452         * doc/posix-functions/fdopendir.texi: Likewise.
33453         * doc/posix-functions/fmemopen.texi: Likewise.
33454         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33455         * doc/posix-functions/fstatat.texi: Likewise.
33456         * doc/posix-functions/futimens.texi: Likewise.
33457         * doc/posix-functions/gai_strerror.texi: Likewise.
33458         * doc/posix-functions/getaddrinfo.texi: Likewise.
33459         * doc/posix-functions/getnameinfo.texi: Likewise.
33460         * doc/posix-functions/if_freenameindex.texi: Likewise.
33461         * doc/posix-functions/if_indextoname.texi: Likewise.
33462         * doc/posix-functions/if_nameindex.texi: Likewise.
33463         * doc/posix-functions/if_nametoindex.texi: Likewise.
33464         * doc/posix-functions/insque.texi: Likewise.
33465         * doc/posix-functions/linkat.texi: Likewise.
33466         * doc/posix-functions/llrint.texi: Likewise.
33467         * doc/posix-functions/llrintf.texi: Likewise.
33468         * doc/posix-functions/llrintl.texi: Likewise.
33469         * doc/posix-functions/lockf.texi: Likewise.
33470         * doc/posix-functions/lrintl.texi: Likewise.
33471         * doc/posix-functions/mkdirat.texi: Likewise.
33472         * doc/posix-functions/mkfifoat.texi: Likewise.
33473         * doc/posix-functions/mknodat.texi: Likewise.
33474         * doc/posix-functions/mq_close.texi: Likewise.
33475         * doc/posix-functions/mq_getattr.texi: Likewise.
33476         * doc/posix-functions/mq_notify.texi: Likewise.
33477         * doc/posix-functions/mq_open.texi: Likewise.
33478         * doc/posix-functions/mq_receive.texi: Likewise.
33479         * doc/posix-functions/mq_send.texi: Likewise.
33480         * doc/posix-functions/mq_setattr.texi: Likewise.
33481         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33482         * doc/posix-functions/mq_timedsend.texi: Likewise.
33483         * doc/posix-functions/mq_unlink.texi: Likewise.
33484         * doc/posix-functions/open_memstream.texi: Likewise.
33485         * doc/posix-functions/openat.texi: Likewise.
33486         * doc/posix-functions/posix_fadvise.texi: Likewise.
33487         * doc/posix-functions/posix_fallocate.texi: Likewise.
33488         * doc/posix-functions/posix_madvise.texi: Likewise.
33489         * doc/posix-functions/posix_memalign.texi: Likewise.
33490         * doc/posix-functions/posix_openpt.texi: Likewise.
33491         * doc/posix-functions/readlinkat.texi: Likewise.
33492         * doc/posix-functions/remque.texi: Likewise.
33493         * doc/posix-functions/renameat.texi: Likewise.
33494         * doc/posix-functions/rintl.texi: Likewise.
33495         * doc/posix-functions/sem_unlink.texi: Likewise.
33496         * doc/posix-functions/shm_open.texi: Likewise.
33497         * doc/posix-functions/shm_unlink.texi: Likewise.
33498         * doc/posix-functions/signgam.texi: Likewise.
33499         * doc/posix-functions/sigset.texi: Likewise.
33500         * doc/posix-functions/stpcpy.texi: Likewise.
33501         * doc/posix-functions/stpncpy.texi: Likewise.
33502         * doc/posix-functions/strerror.texi: Likewise.
33503         * doc/posix-functions/strtod.texi: Likewise.
33504         * doc/posix-functions/symlinkat.texi: Likewise.
33505         * doc/posix-functions/unlinkat.texi: Likewise.
33506         * doc/posix-functions/utimensat.texi: Likewise.
33507         * doc/glibc-functions/bindresvport.texi: Likewise.
33508         * doc/glibc-functions/dn_expand.texi: Likewise.
33509         * doc/glibc-functions/exp10.texi: Likewise.
33510         * doc/glibc-functions/exp10f.texi: Likewise.
33511         * doc/glibc-functions/fgetxattr.texi: Likewise.
33512         * doc/glibc-functions/flistxattr.texi: Likewise.
33513         * doc/glibc-functions/fopencookie.texi: Likewise.
33514         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33515         * doc/glibc-functions/fremovexattr.texi: Likewise.
33516         * doc/glibc-functions/fsetxattr.texi: Likewise.
33517         * doc/glibc-functions/getifaddrs.texi: Likewise.
33518         * doc/glibc-functions/getxattr.texi: Likewise.
33519         * doc/glibc-functions/lgetxattr.texi: Likewise.
33520         * doc/glibc-functions/listxattr.texi: Likewise.
33521         * doc/glibc-functions/llistxattr.texi: Likewise.
33522         * doc/glibc-functions/lremovexattr.texi: Likewise.
33523         * doc/glibc-functions/lsetxattr.texi: Likewise.
33524         * doc/glibc-functions/pow10.texi: Likewise.
33525         * doc/glibc-functions/pow10f.texi: Likewise.
33526         * doc/glibc-functions/rcmd_af.texi: Likewise.
33527         * doc/glibc-functions/removexattr.texi: Likewise.
33528         * doc/glibc-functions/res_init.texi: Likewise.
33529         * doc/glibc-functions/res_mkquery.texi: Likewise.
33530         * doc/glibc-functions/res_query.texi: Likewise.
33531         * doc/glibc-functions/res_querydomain.texi: Likewise.
33532         * doc/glibc-functions/res_send.texi: Likewise.
33533         * doc/glibc-functions/rresvport_af.texi: Likewise.
33534         * doc/glibc-functions/setxattr.texi: Likewise.
33535         * doc/glibc-functions/strcasestr.texi: Likewise.
33536
33537 2008-12-15  Bruno Haible  <bruno@clisp.org>
33538
33539         Fix compilation error on OSF/1 4.0.
33540         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33541         <sys/time.h>, simply delegate to the system header.
33542         Reported by Daniel Richard G. <oss@teragram.com>.
33543
33544 2008-12-15  Bruno Haible  <bruno@clisp.org>
33545
33546         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33547         * doc/posix-functions/fchmodat.texi: Likewise.
33548         * doc/posix-functions/fchownat.texi: Likewise.
33549         * doc/posix-functions/fdopendir.texi: Likewise.
33550         * doc/posix-functions/fstatat.texi: Likewise.
33551         * doc/posix-functions/mkdirat.texi: Likewise.
33552         * doc/posix-functions/unlinkat.texi: Likewise.
33553
33554 2008-12-14  Bruno Haible  <bruno@clisp.org>
33555
33556         Update doc for POSIX:2008.
33557         * doc/posix-functions/faccessat.texi: New file.
33558         * doc/posix-functions/fchmodat.texi: New file.
33559         * doc/posix-functions/fchownat.texi: New file.
33560         * doc/posix-functions/fdopendir.texi: New file.
33561         * doc/posix-functions/fstatat.texi: New file.
33562         * doc/posix-functions/futimens.texi: New file.
33563         * doc/posix-functions/linkat.texi: New file.
33564         * doc/posix-functions/mkdirat.texi: New file.
33565         * doc/posix-functions/mkfifoat.texi: New file.
33566         * doc/posix-functions/mknodat.texi: New file.
33567         * doc/posix-functions/open_wmemstream.texi: New file.
33568         * doc/posix-functions/openat.texi: New file.
33569         * doc/posix-functions/psiginfo.texi: New file.
33570         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33571         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33572         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33573         * doc/posix-functions/readlinkat.texi: New file.
33574         * doc/posix-functions/renameat.texi: New file.
33575         * doc/posix-functions/strerror_l.texi: New file.
33576         * doc/posix-functions/symlinkat.texi: New file.
33577         * doc/posix-functions/unlinkat.texi: New file.
33578         * doc/posix-functions/utimensat.texi: New file.
33579         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33580
33581 2008-12-14  Bruno Haible  <bruno@clisp.org>
33582
33583         Update doc for POSIX:2008.
33584         * doc/posix-functions/alphasort.texi: Renamed from
33585         doc/glibc-functions/alphasort.texi.
33586         * doc/posix-functions/dirfd.texi: Renamed from
33587         doc/glibc-functions/dirfd.texi.
33588         * doc/posix-functions/dprintf.texi: Renamed from
33589         doc/glibc-functions/dprintf.texi.
33590         * doc/posix-functions/duplocale.texi: Renamed from
33591         doc/glibc-functions/duplocale.texi.
33592         * doc/posix-functions/fexecve.texi: Renamed from
33593         doc/glibc-functions/fexecve.texi.
33594         * doc/posix-functions/fmemopen.texi: Renamed from
33595         doc/glibc-functions/fmemopen.texi.
33596         * doc/posix-functions/freelocale.texi: Renamed from
33597         doc/glibc-functions/freelocale.texi.
33598         * doc/posix-functions/getdate_err.texi: Renamed from
33599         doc/glibc-functions/getdate_err.texi.
33600         * doc/posix-functions/isalnum_l.texi: Renamed from
33601         doc/glibc-functions/isalnum_l.texi.
33602         * doc/posix-functions/isalpha_l.texi: Renamed from
33603         doc/glibc-functions/isalpha_l.texi.
33604         * doc/posix-functions/isblank_l.texi: Renamed from
33605         doc/glibc-functions/isblank_l.texi.
33606         * doc/posix-functions/iscntrl_l.texi: Renamed from
33607         doc/glibc-functions/iscntrl_l.texi.
33608         * doc/posix-functions/isdigit_l.texi: Renamed from
33609         doc/glibc-functions/isdigit_l.texi.
33610         * doc/posix-functions/isgraph_l.texi: Renamed from
33611         doc/glibc-functions/isgraph_l.texi.
33612         * doc/posix-functions/islower_l.texi: Renamed from
33613         doc/glibc-functions/islower_l.texi.
33614         * doc/posix-functions/isprint_l.texi: Renamed from
33615         doc/glibc-functions/isprint_l.texi.
33616         * doc/posix-functions/ispunct_l.texi: Renamed from
33617         doc/glibc-functions/ispunct_l.texi.
33618         * doc/posix-functions/isspace_l.texi: Renamed from
33619         doc/glibc-functions/isspace_l.texi.
33620         * doc/posix-functions/isupper_l.texi: Renamed from
33621         doc/glibc-functions/isupper_l.texi.
33622         * doc/posix-functions/iswalnum_l.texi: Renamed from
33623         doc/glibc-functions/iswalnum_l.texi.
33624         * doc/posix-functions/iswalpha_l.texi: Renamed from
33625         doc/glibc-functions/iswalpha_l.texi.
33626         * doc/posix-functions/iswblank_l.texi: Renamed from
33627         doc/glibc-functions/iswblank_l.texi.
33628         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33629         doc/glibc-functions/iswcntrl_l.texi.
33630         * doc/posix-functions/iswctype_l.texi: Renamed from
33631         doc/glibc-functions/iswctype_l.texi.
33632         * doc/posix-functions/iswdigit_l.texi: Renamed from
33633         doc/glibc-functions/iswdigit_l.texi.
33634         * doc/posix-functions/iswgraph_l.texi: Renamed from
33635         doc/glibc-functions/iswgraph_l.texi.
33636         * doc/posix-functions/iswlower_l.texi: Renamed from
33637         doc/glibc-functions/iswlower_l.texi.
33638         * doc/posix-functions/iswprint_l.texi: Renamed from
33639         doc/glibc-functions/iswprint_l.texi.
33640         * doc/posix-functions/iswpunct_l.texi: Renamed from
33641         doc/glibc-functions/iswpunct_l.texi.
33642         * doc/posix-functions/iswspace_l.texi: Renamed from
33643         doc/glibc-functions/iswspace_l.texi.
33644         * doc/posix-functions/iswupper_l.texi: Renamed from
33645         doc/glibc-functions/iswupper_l.texi.
33646         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33647         doc/glibc-functions/iswxdigit_l.texi.
33648         * doc/posix-functions/isxdigit_l.texi: Renamed from
33649         doc/glibc-functions/isxdigit_l.texi.
33650         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33651         doc/glibc-functions/mbsnrtowcs.texi.
33652         * doc/posix-functions/mkdtemp.texi: Renamed from
33653         doc/glibc-functions/mkdtemp.texi.
33654         * doc/posix-functions/newlocale.texi: Renamed from
33655         doc/glibc-functions/newlocale.texi.
33656         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33657         doc/glibc-functions/nl_langinfo_l.texi.
33658         * doc/posix-functions/open_memstream.texi: Renamed from
33659         doc/glibc-functions/open_memstream.texi.
33660         * doc/posix-functions/opterr.texi: Renamed from
33661         doc/glibc-functions/opterr.texi.
33662         * doc/posix-functions/optind.texi: Renamed from
33663         doc/glibc-functions/optind.texi.
33664         * doc/posix-functions/optopt.texi: Renamed from
33665         doc/glibc-functions/optopt.texi.
33666         * doc/posix-functions/psignal.texi: Renamed from
33667         doc/glibc-functions/psignal.texi.
33668         * doc/posix-functions/scandir.texi: Renamed from
33669         doc/glibc-functions/scandir.texi.
33670         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33671         doc/glibc-functions/sched_get_priority_min.texi.
33672         * doc/posix-functions/signgam.texi: Renamed from
33673         doc/glibc-functions/signgam.texi.
33674         * doc/posix-functions/stpcpy.texi: Renamed from
33675         doc/glibc-functions/stpcpy.texi.
33676         * doc/posix-functions/stpncpy.texi: Renamed from
33677         doc/glibc-functions/stpncpy.texi.
33678         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33679         doc/glibc-functions/strcasecmp_l.texi.
33680         * doc/posix-functions/strcoll_l.texi: Renamed from
33681         doc/glibc-functions/strcoll_l.texi.
33682         * doc/posix-functions/strfmon_l.texi: Renamed from
33683         doc/glibc-functions/strfmon_l.texi.
33684         * doc/posix-functions/strftime_l.texi: Renamed from
33685         doc/glibc-functions/strftime_l.texi.
33686         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33687         doc/glibc-functions/strncasecmp_l.texi.
33688         * doc/posix-functions/strndup.texi: Renamed from
33689         doc/glibc-functions/strndup.texi.
33690         * doc/posix-functions/strnlen.texi: Renamed from
33691         doc/glibc-functions/strnlen.texi.
33692         * doc/posix-functions/strsignal.texi: Renamed from
33693         doc/glibc-functions/strsignal.texi.
33694         * doc/posix-functions/strxfrm_l.texi: Renamed from
33695         doc/glibc-functions/strxfrm_l.texi.
33696         * doc/posix-functions/timer_gettime.texi: Renamed from
33697         doc/glibc-functions/timer_gettime.texi.
33698         * doc/posix-functions/tolower_l.texi: Renamed from
33699         doc/glibc-functions/tolower_l.texi.
33700         * doc/posix-functions/toupper_l.texi: Renamed from
33701         doc/glibc-functions/toupper_l.texi.
33702         * doc/posix-functions/towctrans_l.texi: Renamed from
33703         doc/glibc-functions/towctrans_l.texi.
33704         * doc/posix-functions/towlower_l.texi: Renamed from
33705         doc/glibc-functions/towlower_l.texi.
33706         * doc/posix-functions/towupper_l.texi: Renamed from
33707         doc/glibc-functions/towupper_l.texi.
33708         * doc/posix-functions/uselocale.texi: Renamed from
33709         doc/glibc-functions/uselocale.texi.
33710         * doc/posix-functions/vdprintf.texi: Renamed from
33711         doc/glibc-functions/vdprintf.texi.
33712         * doc/posix-functions/wcpcpy.texi:
33713         Renamed from doc/glibc-functions/wcpcpy.texi.
33714         * doc/posix-functions/wcpncpy.texi: Renamed from
33715         doc/glibc-functions/wcpncpy.texi.
33716         * doc/posix-functions/wcscasecmp.texi: Renamed from
33717         doc/glibc-functions/wcscasecmp.texi.
33718         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33719         doc/glibc-functions/wcscasecmp_l.texi.
33720         * doc/posix-functions/wcscoll_l.texi: Renamed from
33721         doc/glibc-functions/wcscoll_l.texi.
33722         * doc/posix-functions/wcsdup.texi: Renamed from
33723         doc/glibc-functions/wcsdup.texi.
33724         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33725         doc/glibc-functions/wcsncasecmp.texi.
33726         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33727         doc/glibc-functions/wcsncasecmp_l.texi.
33728         * doc/posix-functions/wcsnlen.texi: Renamed from
33729         doc/glibc-functions/wcsnlen.texi.
33730         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33731         doc/glibc-functions/wcsnrtombs.texi.
33732         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33733         doc/glibc-functions/wcsxfrm_l.texi.
33734         * doc/posix-functions/wctrans_l.texi: Renamed from
33735         doc/glibc-functions/wctrans_l.texi.
33736         * doc/posix-functions/wctype_l.texi: Renamed from
33737         doc/glibc-functions/wctype_l.texi.
33738         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33739         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33740         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33741         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33742         these subsections.
33743         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33744         Remove sections.
33745
33746 2008-12-14  Bruno Haible  <bruno@clisp.org>
33747
33748         Update doc for POSIX:2008.
33749         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33750
33751 2008-12-14  Bruno Haible  <bruno@clisp.org>
33752
33753         Update doc for POSIX:2008.
33754         * doc/pastposix-functions/bcmp.texi: Renamed from
33755         doc/posix-functions/bcmp.texi.
33756         * doc/pastposix-functions/bcopy.texi: Renamed from
33757         doc/posix-functions/bcopy.texi.
33758         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33759         doc/posix-functions/bsd_signal.texi.
33760         * doc/pastposix-functions/bzero.texi: Renamed from
33761         doc/posix-functions/bzero.texi.
33762         * doc/pastposix-functions/ecvt.texi: Renamed from
33763         doc/posix-functions/ecvt.texi.
33764         * doc/pastposix-functions/fcvt.texi: Renamed from
33765         doc/posix-functions/fcvt.texi.
33766         * doc/pastposix-functions/ftime.texi: Renamed from
33767         doc/posix-functions/ftime.texi.
33768         * doc/pastposix-functions/gcvt.texi: Renamed from
33769         doc/posix-functions/gcvt.texi.
33770         * doc/pastposix-functions/getcontext.texi: Renamed from
33771         doc/posix-functions/getcontext.texi.
33772         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33773         doc/posix-functions/gethostbyaddr.texi.
33774         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33775         doc/posix-functions/gethostbyname.texi.
33776         * doc/pastposix-functions/getwd.texi: Renamed from
33777         doc/posix-functions/getwd.texi.
33778         * doc/pastposix-functions/h_errno.texi: Renamed from
33779         doc/posix-functions/h_errno.texi.
33780         * doc/pastposix-functions/index.texi: Renamed from
33781         doc/posix-functions/index.texi.
33782         * doc/pastposix-functions/makecontext.texi: Renamed from
33783         doc/posix-functions/makecontext.texi.
33784         * doc/pastposix-functions/mktemp.texi: Renamed from
33785         doc/posix-functions/mktemp.texi.
33786         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33787         doc/posix-functions/pthread_attr_getstackaddr.texi.
33788         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33789         doc/posix-functions/pthread_attr_setstackaddr.texi.
33790         * doc/pastposix-functions/rindex.texi: Renamed from
33791         doc/posix-functions/rindex.texi.
33792         * doc/pastposix-functions/scalb.texi: Renamed from
33793         doc/posix-functions/scalb.texi.
33794         * doc/pastposix-functions/setcontext.texi: Renamed from
33795         doc/posix-functions/setcontext.texi.
33796         * doc/pastposix-functions/swapcontext.texi: Renamed from
33797         doc/posix-functions/swapcontext.texi.
33798         * doc/pastposix-functions/ualarm.texi: Renamed from
33799         doc/posix-functions/ualarm.texi.
33800         * doc/pastposix-functions/usleep.texi: Renamed from
33801         doc/posix-functions/usleep.texi.
33802         * doc/pastposix-functions/vfork.texi: Renamed from
33803         doc/posix-functions/vfork.texi.
33804         * doc/pastposix-functions/wcswcs.texi: Renamed from
33805         doc/posix-functions/wcswcs.texi.
33806         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33807         (Function Substitutes): Update.
33808
33809 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33810
33811         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33812         m4/strerror.m4.
33813
33814 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33815             Bruno Haible  <bruno@clisp.org>
33816
33817         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33818
33819 2008-12-13  Bruno Haible  <bruno@clisp.org>
33820
33821         * modules/strtoull (Depends-on): Remove unistd.
33822
33823 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33824
33825         * modules/strtoull (Depends-on): Add stdlib.
33826
33827 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33828
33829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33830
33831 2008-12-10  Jim Meyering  <meyering@redhat.com>
33832
33833         gl_ASSERT: don't say assertions are disabled when they're not
33834         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33835         "checking whether to enable assertions... no", when they are in
33836         fact enabled.  This is solely a bug in the output of configure.
33837         In spite of saying "no", NDEBUG was not defined in that case.
33838         Also, as noted by Eric Blake, leave assertions enabled upon
33839         --enable-assert=INVALID.
33840
33841 2008-12-10  Bruno Haible  <bruno@clisp.org>
33842
33843         Change MODULES.html to refer to POSIX:2008 where possible.
33844         * MODULES.html.sh (POSIX2008_URL): New variable.
33845         (posix_headers): Remove sys/timeb, ucontext.
33846         (posix2001_headers): New variable.
33847         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33848         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33849         index, makecontext, mktemp, pthread_attr_getstackaddr,
33850         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33851         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33852         (posix2001_functions): New variable.
33853         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33854         otherwise.
33855
33856 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33857
33858         add missing include to parse-duration.c
33859         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33860         * modules/parse-duration (Depends-on): Add xalloc.
33861
33862         fix sed script reading maint.mk
33863         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33864         (syntax-check-rules): Use it.
33865
33866 2008-12-09  Bruno Haible  <bruno@clisp.org>
33867
33868         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33869         MacOS X 10.4/PowerPC.
33870         Reported by Simon Josefsson.
33871
33872 2008-12-08  Jim Meyering  <meyering@redhat.com>
33873
33874         work around mingw's lack of some S_IF definitions
33875         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33876         Reported by Simon Josefsson.
33877
33878 2008-12-08  Bruno Haible  <bruno@clisp.org>
33879
33880         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33881         applied to variables. Needed on MacOS X 10.4/PowerPC.
33882         Reported by Simon Josefsson.
33883
33884 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33885         and Eric Blake  <ebb9@byu.net>
33886
33887         assert: honor --enable-assert
33888         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33889         order to honor --enable-assert, rather than treating it as a
33890         synonym for --disable-assert.
33891
33892 2008-12-08  Jim Meyering  <meyering@redhat.com>
33893
33894         * lib/posixtm.c: Remove now-useless declaration of mktime.
33895
33896         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33897
33898 2008-12-07  Bruno Haible  <bruno@clisp.org>
33899
33900         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33901         test_once): Mark functions as static.
33902         * tests/test-tls.c (test_tls): Likewise.
33903
33904 2008-12-07  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33907         iconv_register_autodetect.
33908
33909 2008-12-07  Jim Meyering  <meyering@redhat.com>
33910
33911         posixtm.c: avoid a warning
33912         * lib/posixtm.c (posixtime): Don't initialize tm0.
33913         It's no longer needed to placate gcc4's -Wuninitialized,
33914         and the attempt to placate would elicit a new warning.
33915
33916         unicodeio.c: mark unused parameters
33917         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33918         (fallback_failure_callback): Likewise.
33919
33920 2008-12-07  Bruno Haible  <bruno@clisp.org>
33921
33922         * gnulib-tool (func_create_testdir): When building the tests
33923         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33924         Reported by Simon Josefsson.
33925
33926 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33927
33928         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33929
33930 2008-12-06  Bruno Haible  <bruno@clisp.org>
33931
33932         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33933         Suggested by Eric Blake.
33934
33935 2008-12-06  Bruno Haible  <bruno@clisp.org>
33936
33937         Fix a c-stack test failure on MacOS X.
33938         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33939         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33940         handler for SIGBUS as well.
33941         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33942         install a signal handler for SIGBUS as well.
33943         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33944
33945 2008-12-06  Bruno Haible  <bruno@clisp.org>
33946
33947         Advocacy documentation.
33948         * doc/gnulib-intro.texi (Benefits): New section.
33949         * doc/gnulib.texi: Update.
33950
33951 2008-12-06  Bruno Haible  <bruno@clisp.org>
33952
33953         Document the 'manywarnings' module.
33954         * doc/manywarnings.texi: New file.
33955         * doc/gnulib.texi: Include it.
33956
33957 2008-12-05  Eric Blake  <ebb9@byu.net>
33958
33959         tests: silence some gcc warnings
33960         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33961         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33962         type mismatches.
33963
33964 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33965             Bruno Haible  <bruno@clisp.org>
33966
33967         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33968
33969 2008-11-29  Jim Meyering  <meyering@redhat.com>
33970
33971         unicodeio.c: mark unused parameters
33972         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33973         (fallback_failure_callback): Likewise.
33974
33975         fts: fix a thinko
33976         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33977         (set_stat_type): Return S_IF*-valued "type" directly.
33978         Prompted by James Youngman's spotting a related bug.
33979         Confirmed by further testing through find.
33980
33981         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33982         * lib/fts.c (D_TYPE): Define.
33983         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33984         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33985         (s_ifmt_shift_bits): New function.
33986         (set_stat_type): New function.
33987         (fts_build): When not calling fts_stat, call set_stat_type
33988         to propagate dirent.d_type info to fts_read caller.
33989         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33990         fts_statp->st_mode type information may be valid.
33991
33992 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33993
33994         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33995         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33996         <sds@gnu.org>.
33997
33998 2008-11-20  Bruno Haible  <bruno@clisp.org>
33999
34000         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34001         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34002         INCLUDE_NEXT.
34003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34004         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34005         * modules/math (Makefile.am): Substitute
34006         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34007         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34008
34009 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34010             Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/stdint.in.h: Define all type macros so that their expansion is
34013         a single typedef'ed token. Fixes a compilation failure in Boost which
34014         does "using ::int8_t;".
34015
34016 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34017
34018         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34019         gl_MANYWARN_ALL_GCC.
34020         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34021         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34022         * modules/manywarnings: New file.
34023         * MODULES.html.sh: Mention manywarnings module.
34024
34025 2008-11-18  Bruno Haible  <bruno@clisp.org>
34026
34027         * doc/gnulib-tool.texi (Unit tests): New section.
34028
34029 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34030
34031         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34032         paths like 'lib/po/foo.po'.
34033
34034 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34035
34036         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34037         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34038
34039 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34040
34041         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34042         parameter works.
34043
34044 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34045
34046         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34047
34048 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34049
34050         * modules/parse-duration-tests: New file.
34051         * tests/test-parse-duration.sh: New file.
34052         * tests/test-parse-duration.c: New file.
34053
34054         New module 'parse-duration'.
34055         * lib/parse-duration.h: New file.
34056         * lib/parse-duration.c: New file.
34057         * modules/parse-duration: New file.
34058
34059 2008-11-17  Bruno Haible  <bruno@clisp.org>
34060
34061         * tests/test-select-out.sh: Comment out the first pipe test.
34062         Reported by Simon Josefsson.
34063
34064 2008-11-17  Bruno Haible  <bruno@clisp.org>
34065
34066         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34068         gl_HOSTENT.
34069
34070 2008-11-17  Bruno Haible  <bruno@clisp.org>
34071
34072         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34073         -lnetwork and -lnet. Needed for Haiku and BeOS.
34074
34075 2008-11-16  Bruno Haible  <bruno@clisp.org>
34076
34077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34078
34079 2008-11-16  Bruno Haible  <bruno@clisp.org>
34080
34081         Avoid test failure on Haiku.
34082         * tests/test-fsync.c: Include <errno.h>.
34083         (main): Don't require that fsync (0) fails.
34084
34085 2008-11-15  Bruno Haible  <bruno@clisp.org>
34086
34087         New module 'hostent'.
34088         * modules/hostent: New file.
34089         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34090
34091 2008-11-15  Bruno Haible  <bruno@clisp.org>
34092
34093         New module 'servent'.
34094         * modules/servent: New file.
34095         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34096
34097 2008-11-15  Bruno Haible  <bruno@clisp.org>
34098
34099         Avoid generating same test program with two different rules.
34100         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34101         test-frexp to test-frexp-nolibm.
34102         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34103         test-frexpl to test-frexpl-nolibm.
34104
34105 2008-11-15  Bruno Haible  <bruno@clisp.org>
34106
34107         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34108         $(FREXPL_LIBM).
34109
34110 2008-11-15  Bruno Haible  <bruno@clisp.org>
34111
34112         * lib/netdb.in.h: Activate the definitions also when the system's
34113         <netdb.h> has 'struct addrinfo'.
34114         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34115         EAI_OVERFLOW or AI_NUMERICSERV.
34116         * doc/posix-headers/netdb.texi: Document the problem.
34117
34118 2008-11-15  Bruno Haible  <bruno@clisp.org>
34119
34120         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34121
34122         Make the 'sched' module work on platforms where <sched.h> exists but
34123         is incomplete (such as Haiku).
34124         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34125         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34126         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34127         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34128         HAVE_STRUCT_SCHED_PARAM.
34129         * modules/sched (Depends-on): Add include_next.
34130         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34131         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34132         * doc/posix-headers/sched.texi: Document the issue.
34133
34134 2008-11-13  Jim Meyering  <meyering@redhat.com>
34135
34136         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34137         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34138         test would fail due to the difference in the Report bugs to ...
34139         line.  The expected address is empty, "<>", while the actual
34140         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34141
34142 2008-11-12  Bruno Haible  <bruno@clisp.org>
34143
34144         lstat: don't compile lstat.c on systems lacking lstat
34145         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34146         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34147         Reported by Daniel P. Berrange via Jim Meyering.
34148
34149 2008-11-12  Jim Meyering  <meyering@redhat.com>
34150
34151         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34152
34153 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34154
34155         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34156         instead.
34157
34158 2008-11-12  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/unicodeio.c: Include unistr.h.
34161         (utf8_wctomb): Remove function.
34162         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34163
34164 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34165
34166         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34167         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34168         <bruno@clisp.org>.
34169         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34170
34171 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34172
34173         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34174         * doc/gnulib.texi: Add section for warnings.
34175
34176 2008-11-11  Bruno Haible  <bruno@clisp.org>
34177
34178         * lib/sockets.h: Add a comment.
34179
34180 2008-11-11  Karl Berry  <karl@gnu.org>
34181
34182         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34183
34184 2008-11-11  Eric Blake  <ebb9@byu.net>
34185
34186         fdl.texi: avoid git symlinks
34187         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34188
34189 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34190
34191         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34192
34193 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34194
34195         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34196         (gl_WARN_ADD): Substitute $2 if literal.
34197
34198 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34199
34200         * m4/warning.m4: Remove.
34201
34202 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34203
34204         * m4/warnings.m4: Almost complete rewrite. :-)
34205
34206 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34207
34208         * modules/warnings: New module.
34209         * m4/warnings.m4: New file.
34210         * MODULES.html.sh: Mention warnings module.
34211         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34212         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34213
34214 2008-11-10  Eric Blake  <ebb9@byu.net>
34215
34216         fdl.texi: make a symlink to the latest version
34217         * doc/standards.texi: Revert today's earlier change.
34218         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34219         * doc/fdl.texi: ...and replace this with a symlink to the newer
34220         fdl-1.3.texi.
34221
34222 2008-11-10  Bruno Haible  <bruno@clisp.org>
34223
34224         * tests/test-select-fd.c (main): Accept the result file name as fourth
34225         argument.
34226         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34227         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34228
34229 2008-11-10  Bruno Haible  <bruno@clisp.org>
34230
34231         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34232         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34233         as autoconf-substituted macros.
34234         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34235         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34236         gl_NETDB_H_DEFAULTS. Set these variables.
34237         * modules/netdb (Makefile.am): Substitute these variables.
34238
34239 2008-11-10  Eric Blake  <ebb9@byu.net>
34240
34241         standards.texi: include correct file for FDL 1.3
34242         * doc/standards.texi (GNU Free Documentation License): Change
34243         include file to pull in FDL 1.3, not 1.2.
34244
34245         fdl.texi: revert accidental change to license
34246         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34247
34248 2008-11-10  Bruno Haible  <bruno@clisp.org>
34249
34250         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34251         cross-compiling guesses also when the native compile gives no result.
34252
34253 2008-11-10  Bruno Haible  <bruno@clisp.org>
34254
34255         * lib/spawni.c (__spawni): Force variable into the stack.
34256
34257 2008-11-10  Bruno Haible  <bruno@clisp.org>
34258
34259         Add support for Haiku.
34260         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34261         glibc and BeOS, but also on Haiku.
34262         * lib/fpurge.c (fpurge): Likewise.
34263         * lib/freadable.c (freadable): Likewise.
34264         * lib/freadahead.c (freadahead): Likewise.
34265         * lib/freading.c (freading): Likewise.
34266         * lib/freadptr.c (freadptr): Likewise.
34267         * lib/freadseek.c (freadptrinc): Likewise.
34268         * lib/fseeko.c (rpl_fseeko): Likewise.
34269         * lib/fseterr.c (fseterr): Likewise.
34270         * lib/fwritable.c (fwritable): Likewise.
34271         * lib/fwriting.c (fwriting): Likewise.
34272         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34273
34274 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34275
34276         * lib/config.charset: Treat Haiku like BeOS.
34277
34278 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34279
34280         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34281         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34282
34283 2008-11-08  Bruno Haible  <bruno@clisp.org>
34284
34285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34286         AC_CACHE_CHECK.
34287
34288 2008-11-08  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34291
34292 2008-11-08  Bruno Haible  <bruno@clisp.org>
34293
34294         * tests/test-select-fd.c: New file.
34295         * tests/test-select-in.sh: New file.
34296         * tests/test-select-out.sh: New file.
34297         * tests/test-select-stdin.c: New file.
34298         * modules/select-tests (Files): Add the new files.
34299         (Depends-on): Add gettimeofday.
34300         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34301         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34302         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34303
34304 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34305             Bruno Haible  <bruno@clisp.org>
34306
34307         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34308
34309 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34310
34311         * build-aux/pmccabe2html: Added support for C++ source files.
34312
34313 2008-11-05  Ben Pfaff  <blp@gnu.org>
34314
34315         Fix lib/close.c build on Windows.
34316         * modules/close (Files): Add lib/w32sock.h.
34317
34318 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34319
34320         Accept Bison's NEWS format.
34321         * build-aux/announce-gen (print_news_deltas): Tweak
34322         $re_prefix.
34323
34324 2008-11-04  Bruno Haible  <bruno@clisp.org>
34325
34326         * modules/random_r (Maintainer): Add glibc.
34327
34328 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34329
34330         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34331         by karl@freefriends.org (Karl Berry).
34332         * doc/alloca.texi: Likewise.
34333         * doc/c-ctype.texi: Likewise.
34334         * doc/c-strcase.texi: Likewise.
34335         * doc/c-strcaseeq.texi: Likewise.
34336         * doc/c-strcasestr.texi: Likewise.
34337         * doc/c-strstr.texi: Likewise.
34338         * doc/c-strtod.texi: Likewise.
34339         * doc/c-strtold.texi: Likewise.
34340         * doc/ctime.texi: Likewise.
34341         * doc/error.texi: Likewise.
34342         * doc/fdl.texi: Likewise.
34343         * doc/gcd.texi: Likewise.
34344         * doc/getdate.texi: Likewise.
34345         * doc/gnulib-intro.texi: Likewise.
34346         * doc/gnulib-tool.texi: Likewise.
34347         * doc/gnulib.texi: Likewise.
34348         * doc/inet_ntoa.texi: Likewise.
34349         * doc/maintain.texi: Likewise.
34350         * doc/make-stds.texi: Likewise.
34351         * doc/quote.texi: Likewise.
34352         * doc/regexprops-generic.texi: Likewise.
34353         * doc/standards.texi: Likewise.
34354         * doc/verify.texi: Likewise.
34355         * doc/visibility.texi: Likewise.
34356         * doc/gnulib.texi (GNU Free Documentation License): Include
34357         fdl-1.3.texi instead of fdl.texi.
34358
34359 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34360
34361         * doc/fdl-1.3.texi: New file, from
34362         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34363         * modules/fdl-1.3: Add.
34364         * MODULES.html.sh: Add fdl-1.3.
34365
34366 2008-11-03  Bruno Haible  <bruno@clisp.org>
34367
34368         Make determination of absolute name of header file work with AIX xlc.
34369         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34370         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34371         preprocessing.
34372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34373         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34374
34375 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34376
34377         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34378         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34379         <ludo@gnu.org>.
34380
34381 2008-11-02  Bruno Haible  <bruno@clisp.org>
34382
34383         Mark 'strpbrk' obsolete.
34384         * modules/strpbrk (Status, Notice): New sections.
34385         * modules/strtok_r (Depends-on): Add strpbrk.
34386
34387 2008-11-02  Bruno Haible  <bruno@clisp.org>
34388
34389         Mark 'strdup' obsolete.
34390         * modules/strdup (Status, Notice): New sections.
34391         * modules/findprog (Depends-on): Add strdup.
34392         * modules/getaddrinfo (Depends-on): Likewise.
34393         * modules/localename (Depends-on): Likewise.
34394         * modules/relocatable-lib (Depends-on): Likewise.
34395         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34396         * modules/relocatable-prog (Depends-on): Likewise.
34397         * modules/trim (Depends-on): Likewise.
34398         * modules/unictype/gen-ctype (Depends-on): Likewise.
34399         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34400
34401 2008-11-02  Bruno Haible  <bruno@clisp.org>
34402
34403         Mark 'strcspn' obsolete.
34404         * modules/strcspn (Status, Notice): New sections.
34405
34406 2008-11-02  Bruno Haible  <bruno@clisp.org>
34407
34408         Mark 'rmdir' obsolete.
34409         * modules/rmdir (Status, Notice): New sections.
34410         * modules/clean-temp (Depends-on): Add rmdir.
34411         * modules/openat (Depends-on): Likewise.
34412
34413 2008-11-02  Bruno Haible  <bruno@clisp.org>
34414
34415         Mark 'raise' obsolete.
34416         * modules/raise (Status, Notice): New sections.
34417         (Include): Specify <signal.h>.
34418         * modules/stdio (Depends-on): Add raise.
34419         * modules/write (Depends-on): Likewise.
34420
34421 2008-11-02  Bruno Haible  <bruno@clisp.org>
34422
34423         Mark 'memset' obsolete.
34424         * modules/memset (Status, Notice): New sections.
34425
34426 2008-11-02  Bruno Haible  <bruno@clisp.org>
34427
34428         Mark 'memmove' obsolete.
34429         * modules/memmove (Status, Notice): New sections.
34430         * modules/argp (Depends-on): Add memmove.
34431         * modules/argz (Depends-on): Likewise.
34432         * modules/canonicalize (Depends-on): Likewise.
34433         * modules/canonicalize-lgpl (Depends-on): Likewise.
34434         * modules/fts (Depends-on): Likewise.
34435         * modules/getcwd (Depends-on): Likewise.
34436         * modules/human (Depends-on): Likewise.
34437         * modules/regex (Depends-on): Likewise.
34438         * modules/striconveh (Depends-on): Likewise.
34439         * modules/trim (Depends-on): Likewise.
34440         * modules/unistr/u8-move (Depends-on): Likewise.
34441         * modules/unistr/u16-move (Depends-on): Likewise.
34442         * modules/unistr/u32-move (Depends-on): Likewise.
34443
34444 2008-11-02  Bruno Haible  <bruno@clisp.org>
34445
34446         Mark 'memcpy' obsolete.
34447         * modules/memcpy (Status, Notice): New sections.
34448
34449 2008-11-02  Bruno Haible  <bruno@clisp.org>
34450
34451         Mark 'memcmp' obsolete.
34452         * modules/memcmp (Status, Notice): New sections.
34453         * modules/argmatch (Depends-on): Add memchr.
34454         * modules/backupfile (Depends-on): Likewise.
34455         * modules/c-strcasestr (Depends-on): Likewise.
34456         * modules/crypto/des (Depends-on): Likewise.
34457         * modules/csharpcomp (Depends-on): Likewise.
34458         * modules/fnmatch (Depends-on): Likewise.
34459         * modules/git-merge-changelog (Depends-on): Likewise.
34460         * modules/isnand (Depends-on): Likewise.
34461         * modules/isnand-nolibm (Depends-on): Likewise.
34462         * modules/isnanf (Depends-on): Likewise.
34463         * modules/isnanf-nolibm (Depends-on): Likewise.
34464         * modules/isnanl (Depends-on): Likewise.
34465         * modules/isnanl-nolibm (Depends-on): Likewise.
34466         * modules/mbchar (Depends-on): Likewise.
34467         * modules/memcoll (Depends-on): Likewise.
34468         * modules/quotearg (Depends-on): Likewise.
34469         * modules/regex (Depends-on): Likewise.
34470         * modules/relocatable-prog (Depends-on): Likewise.
34471         * modules/same (Depends-on): Likewise.
34472         * modules/signbit (Depends-on): Likewise.
34473         * modules/strcasestr-simple (Depends-on): Likewise.
34474         * modules/unictype/gen-ctype (Depends-on): Likewise.
34475         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34476         * modules/uniname/uniname (Depends-on): Likewise.
34477         * modules/unistr/u8-cmp (Depends-on): Likewise.
34478
34479 2008-11-02  Bruno Haible  <bruno@clisp.org>
34480
34481         Mark 'memchr' obsolete.
34482         * modules/memchr (Status, Notice): New sections.
34483         * modules/argp (Depends-on): Add memchr.
34484         * modules/base64 (Depends-on): Likewise.
34485         * modules/c-strcasestr (Depends-on): Likewise.
34486         * modules/chdir-long (Depends-on): Likewise.
34487         * modules/fnmatch (Depends-on): Likewise.
34488         * modules/getsubopt (Depends-on): Likewise.
34489         * modules/git-merge-changelog (Depends-on): Likewise.
34490         * modules/glob (Depends-on): Likewise.
34491         * modules/strcasestr-simple (Depends-on): Likewise.
34492         * modules/strnlen (Depends-on): Likewise.
34493
34494 2008-11-02  Bruno Haible  <bruno@clisp.org>
34495
34496         Mark 'atexit' obsolete.
34497         * modules/atexit (Status, Notice): New sections.
34498         * modules/chdir-long (Depends-on): Add atexit.
34499         * modules/wait-process (Depends-on): Likewise.
34500
34501 2008-11-02  Bruno Haible  <bruno@clisp.org>
34502
34503         * gnulib-tool: New option --with-obsolete.
34504         (func_usage): Document it.
34505         (func_modules_transitive_closure): Drop obsolete dependencies if
34506         incobsolete is not true.
34507         (func_import): Read and save the incobsolete variable to the cache.
34508
34509 2008-11-02  Bruno Haible  <bruno@clisp.org>
34510
34511         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34512         * gnulib-tool: New option --extract-status.
34513         (func_usage): Document it.
34514         (sed_extract_prog): Recognize it.
34515         (func_get_status): New function.
34516
34517 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34518
34519         * modules/sockets (License): Change from LGPL to LGPLv2+.
34520
34521 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34522
34523         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34524
34525 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34526
34527         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34528         Mention times and sys_times.
34529         * modules/sys_times, modules/sys_times-tests: New modules.
34530         * modules/times, modules/times-tests: Likewise
34531         * m4/sys_times_h.m4: New file.
34532         * lib/sys_times.in.h: Likewise
34533         * lib/times.c: Likewise.
34534         * tests/test-sys_times.c: Likewise.
34535         * tests/test-times.c: Likewise.
34536         * doc/posix-headers/sys_times.texi: Update.
34537         * doc/posix-functions/times.texi: Update.
34538
34539 2008-10-28  Jim Meyering  <meyering@redhat.com>
34540
34541         * modules/tempname (Depends-on): Add lstat.
34542
34543         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34544
34545 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34546
34547         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34548         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34549         using idiom used elsewhere in gnulib.
34550
34551 2008-10-27  Jim Meyering  <meyering@redhat.com>
34552
34553         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34554
34555 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34556
34557         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34558         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34559         programs.
34560         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34561
34562 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34563
34564         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34565
34566 2008-10-27  Bruno Haible  <bruno@clisp.org>
34567
34568         * tests/test-lstat.c: Include <stdio.h>.
34569
34570 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34571
34572         * modules/lstat-tests: New module.
34573         * tests/test-lstat.c: New file.
34574
34575 2008-10-26  Jim Meyering  <meyering@redhat.com>
34576
34577         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34578
34579 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34580             Bruno Haible  <bruno@clisp.org>
34581
34582         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34583         * modules/configmake (Include): Add a note that the include must come
34584         after all system headers.
34585         * lib/javaversion.c: Include configmake.h after all other includes.
34586
34587 2008-10-26  Bruno Haible  <bruno@clisp.org>
34588
34589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34590         HAVE_STRUCT_RANDOM_DATA to 1.
34591         (gl_STDLIB_H): Simplify.
34592
34593 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34594
34595         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34596         substitute HAVE_STRUCT_RANDOM_DATA.
34597         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34598         random_data.
34599         * modules/stdlib (Makefile.am): Substitute
34600         HAVE_STRUCT_RANDOM_DATA.
34601
34602 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34603
34604         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34605         * doc/gnulib-intro.texi (Copyright): Likewise.
34606
34607 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34608
34609         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34610         findings.
34611
34612 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34613             Bruno Haible  <bruno@clisp.org>
34614
34615         * lib/unistd.in.h: Include <winsock2.h>.
34616         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34617         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34618         Provide dummy declarations.
34619         (gethostname): Override.
34620         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34621         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34622         gl_PREREQ_SYS_H_WINSOCK2.
34623         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34624         * doc/posix-functions/gethostname.texi: More details.
34625
34626 2008-10-25  Bruno Haible  <bruno@clisp.org>
34627
34628         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34629         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34630         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34631
34632         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34633         here ...
34634         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34636         gl_UNISTD_H_DEFAULTS.
34637
34638 2008-10-25  Eric Blake  <ebb9@byu.net>
34639
34640         signbit: avoid spurious compiler failure
34641         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34642         declarations inside function.
34643
34644 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34645             Bruno Haible  <bruno@clisp.org>
34646
34647         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34648         * modules/random_r (Depends-on): Add stdint.
34649
34650 2008-10-24  Bruno Haible  <bruno@clisp.org>
34651
34652         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34653         Eggert.
34654         * modules/strerror (License): Likewise.
34655
34656 2008-10-24  Jim Meyering  <meyering@redhat.com>
34657
34658         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34659         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34660
34661 2008-10-24  Eric Blake  <ebb9@byu.net>
34662
34663         getgroups: fix compilation when getgroups is available
34664         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34665         but with <config.h> override of getgroups disabled.
34666
34667 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34668
34669         * doc/gnulib.texi (Header files): Add note about C++ problems.
34670         Explained by Bruno Haible <bruno@clisp.org>.
34671
34672 2008-10-23  Bruno Haible  <bruno@clisp.org>
34673
34674         Define a dummy SA_NODEFER macro on Interix.
34675         * lib/signal.in.h (SA_NODEFER): Define fallback.
34676         Reported by Aleksey Cheusov <cheusov@tut.by> via
34677         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34678
34679 2008-10-23  Bruno Haible  <bruno@clisp.org>
34680
34681         * modules/freadahead (License): Change to LGPLv2+.
34682         Suggested by Simon Josefsson.
34683
34684 2008-10-23  Jim Meyering  <meyering@redhat.com>
34685
34686         random_r: new module
34687         * modules/random_r: New file.
34688         * m4/random_r.m4: New file.
34689         * lib/random_r.c: New file, from glibc.
34690         * modules/random_r-tests: New file.
34691         * tests/test-random_r.c: New file.
34692         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34693          Declare.
34694         (RAND_MAX): Define.
34695         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34696         * modules/stdlib: Substitute them, too.
34697         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34698         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34699         * doc/glibc-functions/random_r.texi: Likewise.
34700         * doc/glibc-functions/setstate_r.texi: Likewise.
34701         * doc/glibc-functions/srandom_r.texi: Likewise.
34702         * config/srclist.txt: Mention it.
34703
34704 2008-10-23  David Lutterkort  <lutter@redhat.com>
34705
34706         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34707         link requirement
34708
34709 2008-10-23  Jim Meyering  <meyering@redhat.com>
34710
34711         selinux-h: mark parameters of stub functions as intentionally unused
34712         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34713         * lib/se-context.in.h: Likewise.
34714
34715 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34716
34717         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34718
34719 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34720
34721         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34722
34723 2008-10-22  Eric Blake  <ebb9@byu.net>
34724
34725         glthread/thread: avoid compiler warning
34726         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34727         Add unreachable abort to silence compiler.
34728
34729 2008-10-22  Eric Blake  <ebb9@byu.net>
34730
34731         netdb: also supply struct addrinfo for cygwin 1.5.x
34732         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34733         older cygwin.
34734         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34735         cygwin.
34736         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34737
34738 2008-10-22  Bruno Haible  <bruno@clisp.org>
34739
34740         * users.txt: Update entry about pspp.
34741
34742 2008-10-21  Bruno Haible  <bruno@clisp.org>
34743
34744         Simplification.
34745         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34746         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34747
34748         Simplification.
34749         * lib/ioctl.c (ioctl): Don't undefine.
34750         * lib/socket.c (socket): Don't undefine.
34751
34752         Remove unused module indicator macros.
34753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34754         GNULIB_$1 as a C macro.
34755
34756         * doc/posix-functions/close.texi: Undo last change.
34757         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34758         Windows platforms.
34759
34760 2008-10-21  Bruno Haible  <bruno@clisp.org>
34761
34762         Add gethostname() declaration to <unistd.h>.
34763         * lib/unistd.in.h (gethostname): New declaration.
34764         * lib/gethostname.c: Include <unistd.h>.
34765         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34766         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34768         and HAVE_GETHOSTNAME.
34769         * modules/gethostname (Depends-on): Add unistd.
34770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34771         (Include): Specify <unistd.h>.
34772         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34773         HAVE_GETHOSTNAME.
34774         * tests/test-gethostname.c: Include <unistd.h> first.
34775
34776 2008-10-21  Bruno Haible  <bruno@clisp.org>
34777
34778         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34779         * modules/select-tests (Depends-on): Likewise.
34780         Reported by Simon Josefsson.
34781
34782 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34783
34784         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34785         * lib/accept.c: New file, based on winsock.c.
34786         * lib/bind.c: New file, based on winsock.c.
34787         * lib/connect.c: New file, based on winsock.c.
34788         * lib/getpeername.c: New file, based on winsock.c.
34789         * lib/getsockname.c: New file, based on winsock.c.
34790         * lib/getsockopt.c: New file, based on winsock.c.
34791         * lib/ioctl.c: New file, based on winsock.c.
34792         * lib/listen.c: New file, based on winsock.c.
34793         * lib/recv.c: New file, based on winsock.c.
34794         * lib/recvfrom.c: New file, based on winsock.c.
34795         * lib/send.c: New file, based on winsock.c.
34796         * lib/sendto.c: New file, based on winsock.c.
34797         * lib/setsockopt.c: New file, based on winsock.c.
34798         * lib/shutdown.c: New file, based on winsock.c.
34799         * lib/socket.c: New file, based on winsock.c.
34800         * lib/w32sock.h: New file, based on winsock.c.
34801         * lib/winsock.c: Remove file.
34802         * modules/accept: Likewise.
34803         * modules/bind: Likewise.
34804         * modules/connect: Likewise.
34805         * modules/getpeername: Likewise.
34806         * modules/getsockname: Likewise.
34807         * modules/getsockopt: Likewise.
34808         * modules/ioctl: Likewise.
34809         * modules/listen: Likewise.
34810         * modules/recv: Likewise.
34811         * modules/recvfrom: Likewise.
34812         * modules/send: Likewise.
34813         * modules/sendto: Likewise.
34814         * modules/setsockopt: Likewise.
34815         * modules/shutdown: Likewise.
34816         * modules/socket: Use socket.c instead of winsock.c.
34817         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34818         * doc/posix-functions/accept.texi: Doc fix.
34819         * doc/posix-functions/bind.texi: Doc fix.
34820         * doc/posix-functions/close.texi: Doc fix.
34821         * doc/posix-functions/connect.texi: Doc fix.
34822         * doc/posix-functions/getpeername.texi: Doc fix.
34823         * doc/posix-functions/getsockname.texi: Doc fix.
34824         * doc/posix-functions/getsockopt.texi: Doc fix.
34825         * doc/posix-functions/ioctl.texi: Doc fix.
34826         * doc/posix-functions/listen.texi: Doc fix.
34827         * doc/posix-functions/recv.texi: Doc fix.
34828         * doc/posix-functions/recvfrom.texi: Doc fix.
34829         * doc/posix-functions/send.texi: Doc fix.
34830         * doc/posix-functions/sendto.texi: Doc fix.
34831         * doc/posix-functions/setsockopt.texi: Doc fix.
34832         * doc/posix-functions/shutdown.texi: Doc fix.
34833         * doc/posix-functions/socket.texi: Doc fix.
34834
34835 2008-10-20  Bruno Haible  <bruno@clisp.org>
34836
34837         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34838         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34839         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34840         as an alias for SIGABRT.
34841         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34842         (sigaction): Map it to SIGABRT.
34843         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34844
34845 2008-10-20  Bruno Haible  <bruno@clisp.org>
34846
34847         * lib/fts.c: Don't include lstat.h.
34848         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34849
34850         Move the lstat() declaration to <sys/stat.h>.
34851         * lib/lstat.h: Remove file.
34852         * lib/sys_stat.in.h: Add special invocation convention.
34853         (lstat): New declaration.
34854         * lib/lstat.c (orig_lstat): New function.
34855         (rpl_lstat): Use orig_lstat instead of lstat.
34856         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34857         AC_C_INLINE. Set REPLACE_LSTAT.
34858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34859         and REPLACE_LSTAT.
34860         * modules/lstat (Files): Remove lib/lstat.h.
34861         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34862         (Include): Specify <sys/stat.h> instead of lstat.h.
34863         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34864         REPLACE_LSTAT.
34865         * NEWS: Mention the change.
34866
34867 2008-10-20  Bruno Haible  <bruno@clisp.org>
34868
34869         * modules/posix_spawn-tests: New file.
34870         * tests/test-posix_spawn3.c: New file.
34871
34872 2008-10-20  Bruno Haible  <bruno@clisp.org>
34873
34874         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34875         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34876         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34877         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34878         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34879
34880 2008-10-20  Bruno Haible  <bruno@clisp.org>
34881
34882         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34883         of posix_spawn on AIX 5.3.
34884
34885 2008-10-20  Bruno Haible  <bruno@clisp.org>
34886
34887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34888
34889 2008-10-20  Bruno Haible  <bruno@clisp.org>
34890
34891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34892         of AC_LANG_PROGRAM.
34893
34894 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34895
34896         * lib/netdb.in.h: Don't define GNU specific constants until they
34897         are supported or needed.  Reported by Bruno Haible
34898         <bruno@clisp.org>.
34899
34900 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34901
34902         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34903
34904 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34905
34906         * lib/getaddrinfo.h: Remove file.
34907         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34908         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34909         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34910         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34911         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34912         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34913         * tests/test-getaddrinfo.c: Likewise.
34914         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34915         * NEWS: Mention change.
34916
34917 2008-10-19  Bruno Haible  <bruno@clisp.org>
34918
34919         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34920
34921 2008-10-19  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/wait-process.c: Include simply <sys/wait.h>.
34924         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34925         WIFSTOPPED): Remove fallback definitions.
34926         * modules/wait-process (Depends-on): Add sys_wait.
34927
34928         New module 'sys_wait'.
34929         * modules/sys_wait: New file.
34930         * lib/sys_wait.in.h: New file, partially copied from
34931         lib/wait-process.c.
34932         * m4/sys_wait_h.m4: New file.
34933         * doc/posix-headers/sys_wait.texi: Mention the new module.
34934
34935 2008-10-19  Bruno Haible  <bruno@clisp.org>
34936
34937         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34938
34939 2008-10-19  Bruno Haible  <bruno@clisp.org>
34940
34941         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34942         * lib/wait-process.c (WAIT_T): Remove type.
34943         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34944         (wait_subprocess): Update.
34945
34946 2008-10-19  Bruno Haible  <bruno@clisp.org>
34947
34948         New module 'atoll'.
34949         * modules/atoll: New file.
34950         * lib/stdlib.in.h (atoll): New declaration.
34951         * lib/atoll.c: New file, from glibc with modifications.
34952         * m4/atoll.m4: New file.
34953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34954         HAVE_ATOLL.
34955         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34956         * doc/posix-functions/atoll.texi: Mention the new module.
34957
34958 2008-10-19  Bruno Haible  <bruno@clisp.org>
34959
34960         Add strtoull() declaration to <stdlib.h>.
34961         * lib/stdlib.in.h (strtoull): New declaration.
34962         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34963         Set HAVE_STRTOULL.
34964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34965         HAVE_STRTOULL.
34966         * modules/strtoull (Depends-on): Add stdlib.
34967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34968         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34969         HAVE_STRTOULL.
34970
34971 2008-10-19  Bruno Haible  <bruno@clisp.org>
34972
34973         Add strtoll() declaration to <stdlib.h>.
34974         * lib/stdlib.in.h (strtoll): New declaration.
34975         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34976         Set HAVE_STRTOLL.
34977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34978         HAVE_STRTOLL.
34979         * modules/strtoll (Depends-on): Add stdlib.
34980         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34981         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34982
34983 2008-10-19  Bruno Haible  <bruno@clisp.org>
34984
34985         * modules/bcopy (Depends-on): Add strings.
34986         (Include): Specify <strings.h>.
34987
34988 2008-10-19  Bruno Haible  <bruno@clisp.org>
34989
34990         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34991
34992 2008-10-19  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34995         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34996         mingw.
34997
34998 2008-10-19  Bruno Haible  <bruno@clisp.org>
34999
35000         * lib/atanl.c: Don't include isnanl.h.
35001         * lib/cosl.c: Likewise.
35002         * lib/ldexpl.c: Likewise.
35003         * lib/logl.c: Likewise.
35004         * lib/sinl.c: Likewise.
35005         * lib/sqrtl.c: Likewise.
35006         * lib/tanl.c: Likewise.
35007
35008         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35009         * lib/isnanf.h: Remove file.
35010         * lib/isnand.h: Remove file.
35011         * lib/isnanl.h: Remove file.
35012         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35013         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35014         macros.
35015         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35016         HAVE_ISNANF, don't define it as a C macro.
35017         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35018         HAVE_ISNAND, don't define it as a C macro.
35019         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35020         HAVE_ISNANL, don't define it as a C macro.
35021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35022         HAVE_ISNAN[FDL].
35023         * modules/isnanf (Files): Remove lib/isnanf.h.
35024         (Depends-on): Add math.
35025         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35026         (Include): Specify <math.h> instead of isnanf.h.
35027         * modules/isnand (Files): Remove lib/isnand.h.
35028         (Depends-on): Add math.
35029         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35030         (Include): Specify <math.h> instead of isnand.h.
35031         * modules/isnanl (Files): Remove lib/isnanl.h.
35032         (Depends-on): Add math.
35033         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35034         (Include): Specify <math.h> instead of isnanl.h.
35035         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35036         HAVE_ISNAN[FDL].
35037         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35038         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35039         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35040         * NEWS: Mention the change.
35041
35042 2008-10-18  Bruno Haible  <bruno@clisp.org>
35043
35044         Add getusershell(), setusershell(), endusershell() declarations to
35045         <unistd.h>.
35046         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35047         declarations.
35048         * lib/getusershell.c: Include unistd.h.
35049         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35050         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35051         HAVE_GETUSERSHELL.
35052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35053         and HAVE_GETUSERSHELL.
35054         * modules/getusershell (Depends-on): Add unistd, extensions.
35055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35056         (Include): Specify <unistd.h>.
35057         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35058         HAVE_GETUSERSHELL.
35059
35060 2008-10-18  Bruno Haible  <bruno@clisp.org>
35061
35062         Add a getloadavg() declaration to <stdlib.h>.
35063         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35064         getloadavg declaration.
35065         (getloadavg): New declaration.
35066         * lib/getloadavg.c: Include <stdlib.h> first.
35067         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35068         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35069         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35071         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35072         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35074         (Include): Specify <stdlib.h>.
35075         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35076         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35077
35078 2008-10-18  Bruno Haible  <bruno@clisp.org>
35079
35080         * lib/dirchownmod.c: Don't include lchmod.h.
35081
35082         Move the lchmod() declaration to <sys/stat.h>.
35083         * lib/lchmod.h: Remove file.
35084         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35085         (lchmod): New declaration, moved here from lib/lchown.h.
35086         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35087         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35089         and HAVE_LCHMOD.
35090         * modules/lchmod (Files): Remove lib/lchmod.h.
35091         (Depends-on): Add sys_stat, extensions.
35092         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35093         (Include): Specify <sys/stat.h> instead of lchmod.h.
35094         * modules/sys_stat (Depends-on): Add link-warning.
35095         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35096         definition of GL_LINK_WARNING.
35097         * NEWS: Mention the change.
35098
35099 2008-10-18  Bruno Haible  <bruno@clisp.org>
35100
35101         * lib/fchdir.c: Don't include dirfd.h.
35102         * lib/fts.c: Likewise.
35103         * lib/getcwd.c: Likewise.
35104         * lib/glob.c: Likewise.
35105
35106         Move the dirfd() declaration to <dirent.h>.
35107         * lib/dirfd.h: Remove file.
35108         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35109         (dirfd): New declaration.
35110         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35111         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35112         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35113         HAVE_DECL_DIRFD.
35114         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35115         HAVE_DECL_DIRFD.
35116         * modules/dirfd (Files): Remove lib/dirfd.h.
35117         (Depends-on): Add dirent, extensions.
35118         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35119         (Include): Specify <dirent.h> instead of dirfd.h.
35120         * modules/dirent (Depends-on): Add link-warning.
35121         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35122         definition of GL_LINK_WARNING.
35123         * NEWS: Mention the change.
35124
35125 2008-10-18  Bruno Haible  <bruno@clisp.org>
35126
35127         Move the euidaccess() declaration to <unistd.h>.
35128         * lib/euidaccess.h: Remove file.
35129         * lib/unistd.in.h (euidaccess): New declaration.
35130         * lib/euidaccess.c: Don't include euidaccess.h.
35131         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35132         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35134         and HAVE_EUIDACCESS.
35135         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35136         (Depends-on): Add unistd.
35137         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35138         (Include): Specify <unistd.h> instead of euidaccess.h.
35139         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35140         HAVE_EUIDACCESS.
35141         * NEWS: Mention the change.
35142
35143 2008-10-18  Bruno Haible  <bruno@clisp.org>
35144
35145         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35146
35147         Move the getdomainname() declaration to <unistd.h>.
35148         * lib/getdomainname.h: Remove file.
35149         * lib/unistd.in.h (getdomainname): New declaration.
35150         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35151         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35152         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35153         HAVE_GETDOMAINNAME.
35154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35155         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35156         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35157         (Depends-on): Add unistd, extensions.
35158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35159         (Includes): Specify <unistd.h> instead of getdomainname.h.
35160         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35161         HAVE_GETDOMAINNAME.
35162         * NEWS: Mention the change.
35163
35164 2008-10-18  Bruno Haible  <bruno@clisp.org>
35165
35166         * modules/dirent: New file.
35167         * m4/dirent_h.m4: New file.
35168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35169         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35170         * modules/fchdir (Files): Remove lib/dirent.in.h.
35171         (Depends-on): Add dirent.
35172         (Makefile.am): Move rules to modules/dirent.
35173         * doc/posix-headers/dirent.texi: Mention the new module.
35174
35175 2008-10-18  Bruno Haible  <bruno@clisp.org>
35176
35177         Avoid -Wunused-parameter warnings in public gnulib header files.
35178         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35179         macro.
35180         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35181
35182 2008-10-18  Bruno Haible  <bruno@clisp.org>
35183
35184         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35185         * doc/glibc-functions/error.texi: Mention the module 'error'.
35186         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35187         * doc/glibc-functions/getdomainname.texi: Mention the module
35188         'getdomainname'.
35189         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35190         * doc/glibc-functions/getpagesize.texi: Mention the module
35191         'getpagesize'.
35192         * doc/glibc-functions/getusershell.texi: Mention the module
35193         'getusershell'.
35194         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35195         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35196         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35197         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35198         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35199         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35200         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35201         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35202         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35203         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35204         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35205         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35206         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35207         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35208
35209 2008-10-17  Bruno Haible  <bruno@clisp.org>
35210
35211         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35212         HP-UX and IRIX, use -0.0L.
35213         * tests/test-ceill.c (minus_zero): Likewise.
35214         * tests/test-floorl.c (minus_zero): Likewise.
35215         * tests/test-frexpl.c (minus_zero): Likewise.
35216         * tests/test-isnan.c (minus_zerol): Likewise.
35217         * tests/test-isnanl.h (minus_zero): Likewise.
35218         * tests/test-ldexpl.c (minus_zero): Likewise.
35219         * tests/test-roundl.c (minus_zero): Likewise.
35220         * tests/test-signbit.c (minus_zerol): Likewise.
35221         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35222         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35223         * tests/test-truncl.c (minus_zero): Likewise.
35224         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35225         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35226         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35227         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35228
35229 2008-10-17  Bruno Haible  <bruno@clisp.org>
35230
35231         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35232         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35233         that it gets activated only for gcc >= 3.0.
35234         * lib/dirent.in.h: Likewise.
35235         * lib/errno.in.h: Likewise.
35236         * lib/fcntl.in.h: Likewise.
35237         * lib/float.in.h: Likewise.
35238         * lib/iconv.in.h: Likewise.
35239         * lib/inttypes.in.h: Likewise.
35240         * lib/locale.in.h: Likewise.
35241         * lib/math.in.h: Likewise.
35242         * lib/netdb.in.h: Likewise.
35243         * lib/netinet_in.in.h: Likewise.
35244         * lib/search.in.h: Likewise.
35245         * lib/signal.in.h: Likewise.
35246         * lib/spawn.in.h: Likewise.
35247         * lib/stdarg.in.h: Likewise.
35248         * lib/stdint.in.h: Likewise.
35249         * lib/stdio.in.h: Likewise.
35250         * lib/stdlib.in.h: Likewise.
35251         * lib/string.in.h: Likewise.
35252         * lib/strings.in.h: Likewise.
35253         * lib/sys_file.in.h: Likewise.
35254         * lib/sys_ioctl.in.h: Likewise.
35255         * lib/sys_select.in.h: Likewise.
35256         * lib/sys_socket.in.h: Likewise.
35257         * lib/sys_stat.in.h: Likewise.
35258         * lib/sys_time.in.h: Likewise.
35259         * lib/sysexits.in.h: Likewise.
35260         * lib/time.in.h: Likewise.
35261         * lib/unistd.in.h: Likewise.
35262         * lib/wchar.in.h: Likewise.
35263         * lib/wctype.in.h: Likewise.
35264         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35265
35266 2008-10-17  Jim Meyering  <meyering@redhat.com>
35267
35268         ignore-value: don't depend on inline module
35269         * modules/ignore-value (Depends-on): Remove 'inline'.
35270         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35271         Suggestion from Bruno Haible.
35272
35273 2008-10-17  Bruno Haible  <bruno@clisp.org>
35274
35275         New implementation of condition variables for Win32.
35276         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35277         (gl_linked_waitqueue_t): New type.
35278         (gl_cond_t): Use it.
35279         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35280         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35281         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35282         (glthread_cond_init_func, glthread_cond_wait_func,
35283         glthread_cond_timedwait_func, glthread_cond_signal_func,
35284         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35285         Reimplemented on the basis of gl_linked_waitqueue_t.
35286         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35287         gl_waitqueue_t.
35288         (gl_rwlock_t): Update.
35289         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35290
35291 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35292
35293         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35294         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35295
35296 2008-10-17  Jim Meyering  <meyering@redhat.com>
35297
35298         ignore-value: new module
35299         * modules/ignore-value: New file.
35300         * lib/ignore-value.h: New file.
35301         * MODULES.html.sh (Compiler warning management): New section,
35302         just for this module.  More to come.
35303
35304 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35305
35306         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35307         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35308         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35309
35310 2008-10-16  Jim Meyering  <meyering@redhat.com>
35311
35312         openat-die.c: avoid 'no previous prototype' warning
35313         * lib/openat-die.c: Include "openat.h".
35314         Reported by Reuben Thomas <rrt@sc3d.org>.
35315
35316 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35317
35318         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35319         * lib/netdb.in.h: Fix typo.
35320         Reported by Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/netdb.in.h: Include sys/socket.h for platforms without
35323         netdb.h, to get structures like hostent on MinGW.
35324         * modules/netdb (Depends-on): Add sys_socket.
35325
35326 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35327
35328         * modules/netdb, modules/netdb-tests: New file.
35329         * m4/netdb_h.m4: New file.
35330         * lib/netdb.in.h: Add, currently just an empty file pending
35331         definitions.
35332         * tests/test-netdb.c: New file.
35333         * doc/posix-headers/netdb.texi: Mention that we replace it if
35334         needed.
35335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35336         netdb.
35337
35338 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35339
35340         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35341         with code.
35342
35343 2008-10-13  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/glthread/cond.c (glthread_cond_wait_func,
35346         glthread_cond_timedwait_func): Add a comment.
35347
35348 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35349
35350         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35351         * tests/test-select.c: Likewise,
35352
35353 2008-10-13  Bruno Haible  <bruno@clisp.org>
35354
35355         * lib/glthread/cond.c (glthread_cond_wait_func,
35356         glthread_cond_timedwait_func): Fix variable name.
35357         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35358
35359 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35360
35361         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35363         struct sockaddr.sa_len.
35364         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35365
35366 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35367
35368         * build-aux/pmccabe2html: Add css and css_url parameters.
35369
35370 2008-10-12  Bruno Haible  <bruno@clisp.org>
35371
35372         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35373         calling aclx_get.
35374         Reported by Rainer Tammer <tammer@tammer.net>.
35375
35376 2008-10-12  Bruno Haible  <bruno@clisp.org>
35377
35378         Use msvcrt aware primitives for creation/termination of Win32 threads.
35379         * lib/glthread/thread.c: Include <process.h>.
35380         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35381         (wrapper_func): Update signature.
35382         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35383
35384 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35385             Bruno Haible  <bruno@clisp.org>
35386
35387         Provide a Win32 implementation of the 'cond' module.
35388         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35389         * lib/glthread/cond.c (glthread_cond_init_func,
35390         glthread_cond_wait_func, glthread_cond_timedwait_func,
35391         glthread_cond_signal_func, glthread_cond_broadcast_func,
35392         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35393         * modules/cond (Dependencies): Add gettimeofday.
35394
35395 2008-10-11  Bruno Haible  <bruno@clisp.org>
35396
35397         Make sleep work on older versions of mingw.
35398         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35399         only whether it exists.
35400         * doc/posix-functions/sleep.texi: Mention the problem with older
35401         versions of mingw.
35402
35403 2008-10-11  Bruno Haible  <bruno@clisp.org>
35404
35405         New module 'shutdown'.
35406         * modules/shutdown: New file.
35407         * lib/sys_socket.in.h (shutdown): New declaration.
35408         * lib/winsock.c (shutdown): New function.
35409         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35410         GNULIB_SHUTDOWN.
35411         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35412         * doc/posix-functions/shutdown.texi: Document the new module.
35413
35414 2008-10-11  Jim Meyering  <meyering@redhat.com>
35415
35416         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35417
35418 2008-10-11  Bruno Haible  <bruno@clisp.org>
35419
35420         New module 'fclose'.
35421         * modules/fclose: New file.
35422         * lib/stdio.in.h (fclose): New declaration.
35423         * lib/fclose.c: New file.
35424         * m4/fclose.m4: New file.
35425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35426         REPLACE_FCLOSE.
35427         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35428         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35429         REPLACE_FCLOSE.
35430         * modules/close (Depends-on): fclose.
35431         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35432
35433 2008-10-11  Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35436         set errno and don't call _close.
35437
35438 2008-10-10  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35441         ACL, not afterwards. Fixes test failure on Cygwin.
35442
35443 2008-10-09  Ben Pfaff  <blp@gnu.org>
35444
35445         * build-aux/announce-gen: Fix gnulib version related part of usage
35446         message.  Die with a useful error message if no tarballs are
35447         found.
35448
35449 2008-10-10  Jim Meyering  <meyering@redhat.com>
35450
35451         bootstrap: use git's --depth=N option only if it's supported
35452         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35453         recognize the --depth option.  Reported by Pádraig Brady.
35454
35455 2008-10-09  Bruno Haible  <bruno@clisp.org>
35456
35457         New module 'ioctl'.
35458         * modules/ioctl: New file.
35459         * lib/sys_socket.in.h (ioctl): Remove declaration.
35460         * lib/winsock.c: Include <sys/ioctl.h>.
35461         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35462         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35463         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35464         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35465         * doc/posix-functions/ioctl.texi: Mention the new module.
35466
35467 2008-10-09  Bruno Haible  <bruno@clisp.org>
35468
35469         New module 'sys_ioctl'.
35470         * lib/sys_ioctl.in.h: New file.
35471         * m4/sys_ioctl_h.m4: New file.
35472         * modules/sys_ioctl: New file.
35473         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35474
35475 2008-10-09  Bruno Haible  <bruno@clisp.org>
35476
35477         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35478         * lib/winsock.c: Include <stdarg.h>.
35479         (rpl_ioctl): Change to second argument 'int' and then varargs.
35480
35481 2008-10-09  Bruno Haible  <bruno@clisp.org>
35482
35483         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35484         when the sys_socket module is present and the system has <winsock2.h>.
35485
35486 2008-10-09  Bruno Haible  <bruno@clisp.org>
35487
35488         * doc/posix-functions/close.texi: Mention module 'close' instead of
35489         module 'sys_socket'.
35490
35491 2008-10-09  Bruno Haible  <bruno@clisp.org>
35492
35493         * doc/glibc-headers/sys_ioctl.texi: New file.
35494         * doc/gnulib.texi: Include it.
35495
35496 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35497             Bruno Haible  <bruno@clisp.org>
35498
35499         Combine the two replacements of 'close'.
35500         * lib/sys_socket.in.h (close): Define to a reminder to include
35501         <unistd.h>.
35502         (_gl_close_fd_maybe_socket): New declaration.
35503         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35504         * lib/winsock.c (close): Remove undefinition.
35505         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35506         needed for the gnulib module 'close'.
35507         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35508         define to an error symbol or to a warning, if suitable.
35509         * lib/close.c: Include <sys/socket.h>.
35510         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35511         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35512         UNISTD_H_HAVE_WINSOCK2_H.
35513         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35515         UNISTD_H_HAVE_WINSOCK2_H.
35516         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35517         (configure.ac): Set a module indicator.
35518         (Makefile.am): Substitute GNULIB_CLOSE.
35519         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35520         * modules/poll-tests (Depends-on): Add close.
35521         * modules/select-tests (Depends-on): Likewise.
35522
35523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35524             Bruno Haible  <bruno@clisp.org>
35525
35526         New module 'close'.
35527         * modules/close: New file.
35528         * lib/unistd.in.h (close): Move declaration out of the
35529         FCHDIR_REPLACEMENT scope.
35530         (_gl_unregister_fd): New declaration.
35531         * lib/close.c: New file.
35532         * lib/fchdir.c (rpl_close): Remove function.
35533         * m4/close.m4: New file.
35534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35535         close.
35536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35537         REPLACE_CLOSE.
35538         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35539         REPLACE_CLOSE.
35540         * modules/fchdir (Depends-on): Add close.
35541
35542 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35543             Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/fcntl.in.h (open): Simplify conditionals.
35546         (_gl_register_fd): New declaration.
35547         * lib/fchdir.c (rpl_open): Remove function.
35548         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35549         also.
35550         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35552         open.
35553
35554 2008-10-09  Jim Meyering  <meyering@redhat.com>
35555
35556         GNUmakefile: use the more name-space-friendly "_version"
35557         * top/GNUmakefile (_dummy): Update.
35558         (_version): Rename from "version".
35559
35560 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35561             Bruno Haible  <bruno@clisp.org>
35562
35563         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35564         rpl_close.
35565         (_gl_register_fd): New function, extracted from rpl_open.
35566         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35567         (rpl_open, rpl_opendir): Use _gl_register_fd.
35568
35569 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35570
35571         Fix organization of 'open' replacement.
35572         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35573         (gl_FUNC_OPEN): Use it.
35574         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35575
35576 2008-10-08  Bruno Haible  <bruno@clisp.org>
35577
35578         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35579
35580 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35581
35582         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35583         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35584         listen).
35585
35586 2008-10-08  Eric Blake  <ebb9@byu.net>
35587
35588         GNUmakefile: add 'make version' target
35589         * top/GNUmakefile (_curr-ver): Split version update rules...
35590         (version): ...into a target.
35591
35592 2008-10-07  Bruno Haible  <bruno@clisp.org>
35593
35594         Use a more portable replacement expression for -0.0L.
35595         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35596         instead of -0.0L. Fix m4 quotation.
35597
35598         * tests/test-signbit.c: Include <float.h>.
35599         (minus_zero): New variable.
35600         (test_signbitl): Use minus_zero instead of -zero.
35601         * modules/signbit-tests (Depends-on): Add float.
35602
35603         * tests/test-ceill.c: Include <float.h>.
35604         (zero): Remove variable.
35605         (minus_zero): New variable.
35606         (main): Use minus_zero instead of -zero.
35607         * modules/ceill-tests (Depends-on): Add float.
35608
35609         * tests/test-floorl.c: Include <float.h>.
35610         (zero): Remove variable.
35611         (minus_zero): New variable.
35612         (main): Use minus_zero instead of -zero.
35613         * modules/floorl-tests (Depends-on): Add float.
35614
35615         * tests/test-roundl.c: Include <float.h>.
35616         (zero): Remove variable.
35617         (minus_zero): New variable.
35618         (main): Use minus_zero instead of -zero.
35619         * modules/roundl-tests (Depends-on): Add float.
35620
35621         * tests/test-truncl.c: Include <float.h>.
35622         (zero): Remove variable.
35623         (minus_zero): New variable.
35624         (main): Use minus_zero instead of -zero.
35625         * modules/truncl-tests (Depends-on): Add float.
35626
35627         * tests/test-frexpl.c (zero): Remove variable.
35628         (minus_zero): New variable.
35629         (main): Use minus_zero instead of -zero.
35630         * modules/frexpl-tests (Depends-on): Add float.
35631
35632         * tests/test-isnan.c (zerol): Remove variable.
35633         (minus_zerol): New variable.
35634         (test_long_double): Use minus_zerol instead of -zerol.
35635         * modules/isnan-tests (Depends-on): Add float.
35636
35637         * tests/test-isnanl.h (zero): Remove variable.
35638         (minus_zero): New variable.
35639         (main): Use minus_zero instead of -zero.
35640         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35641         * modules/isnanl-tests (Depends-on): Add float.
35642
35643         * tests/test-ldexpl.c (zero): Remove variable.
35644         (minus_zero): New variable.
35645         (main): Use minus_zero instead of -zero.
35646         * modules/ldexpl-tests (Depends-on): Add float.
35647
35648         * tests/test-snprintf-posix.h (zerol): Remove variable.
35649         (minus_zerol): New variable.
35650         (test_function): Use minus_zerol instead of -zerol.
35651         * modules/snprintf-posix-tests (Depends-on): Add float.
35652         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35653
35654         * tests/test-sprintf-posix.h (zerol): Remove variable.
35655         (minus_zerol): New variable.
35656         (test_function): Use minus_zerol instead of -zerol.
35657         * modules/sprintf-posix-tests (Depends-on): Add float.
35658         * modules/vsprintf-posix-tests (Depends-on): Add float.
35659
35660         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35661         (minus_zerol): New variable.
35662         (test_function): Use minus_zerol instead of -zerol.
35663         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35664
35665         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35666         (minus_zerol): New variable.
35667         (test_function): Use minus_zerol instead of -zerol.
35668         * modules/vasprintf-posix-tests (Depends-on): Add float.
35669
35670 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35671
35672         * MODULES.html.sh (Support for building documentation): Mention
35673         pmccabe2html.  Sort entries.
35674
35675         Add pmccabe2html module, from gnupdf.
35676         * build-aux/pmccabe.css: New file.
35677         * build-aux/pmccabe2html: New file.
35678         * m4/pmccabe2html.m4: New file.
35679         * modules/pmccabe2html: New file.
35680
35681 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35682
35683         flock: new module
35684         * MODULES.html.sh: Add to list of modules.
35685         * lib/flock.c: flock implementation for Windows and Unix systems
35686         which have fcntl.
35687         * doc/glibc-functions/flock.texi: Update documentation.
35688         * lib/sys_file.in.h: <sys/file.h> header file.
35689         * m4/flock.m4: M4 macros.
35690         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35691         * modules/flock: flock module.
35692         * modules/flock-tests: flock tests module.
35693         * modules/sys_file: sys/file.h module.
35694         * tests/test-flock.c: test suite for flock.
35695
35696 2008-10-06  Jim Meyering  <meyering@redhat.com>
35697
35698         bootstrap: check for LT_INIT more portably still ;-)
35699         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35700         Spotted by Bruno Haible.
35701
35702 2008-10-06  Eric Blake  <ebb9@byu.net>
35703
35704         test-signbit: avoid tripping Irix cc bug on -0.0L
35705         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35706         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35707         entire testsuite consistent and avoids an Irix 6.2 bug.
35708
35709 2008-10-05  Bruno Haible  <bruno@clisp.org>
35710             Jim Meyering  <jim@meyering.net>
35711
35712         Add an option for ignoring EPIPE during close_stdout.
35713         * lib/closeout.h: Include <stdbool.h>.
35714         (close_stdout_set_ignore_EPIPE): New declaration.
35715         * lib/closeout.c: Include <stdbool.h>.
35716         (ignore_EPIPE): New variable.
35717         (close_stdout_set_ignore_EPIPE): New function.
35718         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35719         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35720         failure.
35721         * modules/closeout (Depends-on): Add stdbool.
35722
35723 2008-10-05  Bruno Haible  <bruno@clisp.org>
35724
35725         * modules/accept: New file.
35726         * modules/bind: New file.
35727         * modules/connect: New file.
35728         * modules/getpeername: New file.
35729         * modules/getsockname: New file.
35730         * modules/getsockopt: New file.
35731         * modules/listen: New file.
35732         * modules/recv: New file.
35733         * modules/recvfrom: New file.
35734         * modules/send: New file.
35735         * modules/sendto: New file.
35736         * modules/setsockopt: New file.
35737         * modules/socket: New file.
35738         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35739         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35740         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35741         the particular module is requested. Add a link warning when the
35742         particular module is not requested.
35743         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35744         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35745         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35746         the particular module is requested.
35747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35748         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35749         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35750         * modules/sys_socket (Depends-on): Add link-warning.
35751         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35752         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35753         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35754         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35755         GL_LINK_WARNING.
35756         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35757         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35758         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35759         * doc/posix-functions/getpeername.texi: Mention the new module
35760         'getpeername'.
35761         * doc/posix-functions/getsockname.texi: Mention the new module
35762         'getsockname'.
35763         * doc/posix-functions/getsockopt.texi: Mention the new module
35764         'getsockopt'.
35765         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35766         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35767         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35768         * doc/posix-functions/send.texi: Mention the new module 'send'.
35769         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35770         * doc/posix-functions/setsockopt.texi: Mention the new module
35771         'setsockopt'.
35772         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35773         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35774         listen, connect, accept.
35775         * modules/select-tests (Depends-on): Likewise.
35776
35777 2008-10-05  Bruno Haible  <bruno@clisp.org>
35778
35779         * lib/winsock.c (strerror): Remove unused #undef.
35780         (rpl_close): Remove unused local variable.
35781
35782         * modules/sys_socket (Depends-on); Add errno.
35783
35784 2008-10-05  Bruno Haible  <bruno@clisp.org>
35785
35786         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35787         (select): Add a link warning when the 'select' module is not used.
35788         * modules/sys_select (Depends-on): Add link-warning.
35789         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35790         Suggested by Paolo Bonzini.
35791
35792 2008-10-05  Jim Meyering  <meyering@redhat.com>
35793
35794         bootstrap: check for LT_INIT more portably
35795         * build-aux/bootstrap: Avoid using grep -E, since it's not
35796         portable enough.  Suggestion from Bruno Haible.
35797
35798 2008-10-05  Bruno Haible  <bruno@clisp.org>
35799
35800         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35801         as being fixed by gnulib.
35802
35803 2008-10-05  Bruno Haible  <bruno@clisp.org>
35804
35805         * modules/select-tests: New file, mostly copied from
35806         modules/sys_select-tests.
35807         * tests/test-select.c: New file, mostly copied from
35808         tests/test-sys_select.c.
35809         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35810         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35811         (Makefile.am): Remove test_sys_select_LDADD.
35812
35813         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35814         to an undefined symbol, for an error message.
35815         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35816         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35817         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35818         winsock-select.c here.
35819         * modules/sys_select (Files): Remove lib/winsock-select.c.
35820         (Depends-on): Remove alloca.
35821         (Makefile.am): Substitute GNULIB_SELECT.
35822         * modules/select: New file.
35823         * doc/posix-functions/select.texi: Update.
35824
35825 2008-10-05  Bruno Haible  <bruno@clisp.org>
35826
35827         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35828         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35829         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35830         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35831         getdtablesize.
35832         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35833         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35834
35835 2008-10-05  Bruno Haible  <bruno@clisp.org>
35836
35837         * modules/getdtablesize-tests: New file.
35838         * tests/test-getdtablesize.c: New file.
35839
35840         New module 'getdtablesize'.
35841         * lib/unistd.in.h (getdtablesize): New declaration.
35842         * lib/getdtablesize.c: New file.
35843         * m4/getdtablesize.m4: New file.
35844         * modules/getdtablesize: New file.
35845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35846         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35847         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35848         HAVE_GETDTABLESIZE.
35849         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35850
35851 2008-10-05  Bruno Haible  <bruno@clisp.org>
35852
35853         * modules/sched (Makefile.am): Fix typo.
35854         Reported by Simon Josefsson.
35855
35856 2008-10-05  Jim Meyering  <meyering@redhat.com>
35857
35858         bootstrap: check for LT_INIT, too
35859         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35860         are deprecated.  Suggestion from Ralf Wildenhues.
35861
35862 2008-10-05  Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35865         overriding them by ours.
35866         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35867
35868 2008-10-05  Jim Meyering  <meyering@redhat.com>
35869
35870         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35871         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35872         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35873
35874 2008-10-04  Bruno Haible  <bruno@clisp.org>
35875
35876         * modules/dup2 (License): Change to LGPLv2+.
35877         * modules/sleep (License): Likewise.
35878         * modules/perror (License): Likewise.
35879         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35880         Blake.
35881         * modules/signal (License): Likewise.
35882         * modules/sigprocmask (License): Likewise.
35883         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35884         Meyering.
35885
35886 2008-10-04  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35889         Reported by Rainer Tammer <tammer@tammer.net>.
35890
35891 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35892             Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35895         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35896         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35897
35898 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35899
35900         filevercmp: new module
35901         * lib/filevercmp.h: New function filevercmp comparing version strings.
35902         * lib/filevercmp.c: Implementation of filevercmp function.
35903         * modules/filevercmp: Module metadata.
35904         * tests/test-filevercmp.c: Unit test for new module.
35905         * modules/filevercmp-tests: Unit test metadata.
35906         * MODULES.html.sh: Add filevercmp module.
35907
35908 2008-10-03  Bruno Haible  <bruno@clisp.org>
35909
35910         * lib/c-ctype.h: Add comment.
35911         Reported by Jim Meyering.
35912
35913 2008-10-02  Bruno Haible  <bruno@clisp.org>
35914
35915         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35916
35917 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35918
35919         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35920         name of bootstrap.conf accordingly.
35921
35922 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35923
35924         * build-aux/bootstrap: Install git-merge-changelog configuration
35925         items into .gitconfig if needed.
35926
35927 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35928
35929         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35930         git repository, and initialize/update it accordingly.
35931
35932 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35933
35934         * modules/fsync-tests: New file.
35935         * tests/test-fsync.c: New file.
35936
35937         New module 'fsync'.
35938         * lib/fsync.c: New file.
35939         * m4/fsync.m4: New file.
35940         * modules/fsync: New file.
35941         * lib/unistd.in.h (fsync): New declaration.
35942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35943         GNULIB_FSYNC and HAVE_FSYNC.
35944         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35945         * MODULES.html.sh (posix_functions): Add fsync.
35946         * doc/posix-functions/fsync.texi: Mention the new module.
35947
35948 2008-10-02  Jim Meyering  <meyering@redhat.com>
35949
35950         fts.c: sync with similar code from coreutils' remove.c
35951         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35952         Guard also with "#if defined __linux__", since for now at least,
35953         this code is Linux-kernel-specific.
35954
35955 2008-10-02  Jim Meyering  <meyering@redhat.com>
35956
35957         fts: bug fixes
35958         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35959         Include <sys/vfs.h>, not <sys/statfs.h>.
35960
35961         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35962         Include <sys/vfs.h>, not <sys/statfs.h>.
35963
35964 2008-10-01  Bruno Haible  <bruno@clisp.org>
35965
35966         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35968         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35969         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35970         * doc/posix-functions/posix_spawnp.texi: Likewise.
35971         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35972         whether posix_spawn actually works.
35973         * m4/pipe.m4 (gl_PIPE): Likewise.
35974         * modules/execute (Files): Add m4/posix_spawn.m4.
35975         * modules/pipe (Files): Add m4/posix_spawn.m4.
35976         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35977
35978 2008-10-01  Jim Meyering  <meyering@redhat.com>
35979
35980         remove trailing spaces
35981         * NEWS: Likewise.
35982         * lib/poll.c (poll): Likewise.
35983         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35984         * lib/winsock.c (rpl_close): Likewise.
35985         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35986         * modules/yield: Likewise.
35987         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35988         * tests/test-sys_select.c (connect_to_socket): Likewise.
35989
35990         fts.c: adjust a new interface to be more generally useful
35991         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35992         (fts_build): Adjust caller.
35993
35994 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35995
35996         * modules/cond-tests: New file.
35997         * tests/test-cond.c: New file.
35998
35999 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36000             Bruno Haible  <bruno@clisp.org>
36001
36002         * modules/cond (Dependencies): Add errno, time.
36003         * lib/glthread/cond.h: Include <time.h>.
36004         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36005         across platforms.
36006
36007 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36008             Bruno Haible  <bruno@clisp.org>
36009
36010         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36011
36012 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36013             Bruno Haible  <bruno@clisp.org>
36014
36015         * modules/tls-tests (Depends-on): Add thread, yield.
36016         (configure.ac): Remove all checks.
36017         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36018         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36019         gl_thread_self): Remove definitions. Include glthread/thread.h and
36020         glthread/yield.h instead.
36021         (test_tls): Pass an additional NULL argument to gl_thread_join.
36022
36023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36024             Bruno Haible  <bruno@clisp.org>
36025
36026         * modules/lock-tests (Depends-on): Add thread, yield.
36027         (configure.ac): Remove all checks.
36028         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36029         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36030         gl_thread_self): Remove definitions. Include glthread/thread.h and
36031         glthread/yield.h instead.
36032         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36033         additional NULL argument to gl_thread_join.
36034
36035 2008-09-30  Bruno Haible  <bruno@clisp.org>
36036
36037         Fix the Win32 implementation of the 'thread' module.
36038         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36039         pointer type.
36040         (gl_thread_self): Invoke gl_thread_self_func.
36041         (gl_thread_self_func): New declaration.
36042         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36043         (do_init_self_key, init_self_key): New functions.
36044         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36045         Remove some fields.
36046         (running_threads, running_lock): Remove variables.
36047         (get_current_thread_handle): New function.
36048         (gl_thread_self_func, wrapper_func, glthread_create_func,
36049         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36050         simplified.
36051
36052 2008-09-30  Bruno Haible  <bruno@clisp.org>
36053
36054         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36055         files.
36056
36057 2008-09-30  Jim Meyering  <meyering@redhat.com>
36058
36059         fts.m4: correct the test for statfs.f_type
36060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36061         when checking for statfs.f_type.
36062
36063 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36064
36065         tests: avoid some compiler warnings
36066         * tests/test-memchr.c (main): Pass NULL indirectly.
36067         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36068
36069 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36070
36071         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36072         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36073         exactly specified dayshifts.
36074         (dayshift): New rule.
36075         (rel): Add dayshift.
36076         (relative_time_table) [tomorrow, yesterday, today, now]:
36077         Use tDAY_SHIFT in place of tDAY_UNIT.
36078         * tests/test-getdate.c: Add tests for now-disallowed countable
36079         dayshifts, e.g., "4 yesterday ago".
36080
36081 2008-09-29  Bruno Haible  <bruno@clisp.org>
36082
36083         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36084         * tests/test-posix_spawn1.in.sh: Renamed from
36085         tests/test-posix_spawn.in.sh.
36086         * tests/test-posix_spawn2.c: New file.
36087         * tests/test-posix_spawn2.in.sh: New file.
36088         * modules/posix_spawnp-tests (Files): Update.
36089         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36090
36091 2008-09-29  Bruno Haible  <bruno@clisp.org>
36092
36093         Propagate effects of putenv/setenv/unsetenv to child processes.
36094         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36095         * lib/pipe.c (create_pipe): Likewise.
36096
36097 2008-09-29  Bruno Haible  <bruno@clisp.org>
36098
36099         Enable use of shell scripts as executables in mingw.
36100         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36101         run the program as a shell script.
36102         * lib/pipe.c (create_pipe): Likewise.
36103         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36104         resulting array.
36105
36106 2008-09-29  Eric Blake  <ebb9@byu.net>
36107
36108         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36109
36110 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36111
36112         * doc/posix-functions/accept.texi: Update mingw problems.
36113         * doc/posix-functions/bind.texi: Update mingw problems.
36114         * doc/posix-functions/close.texi: Update mingw problems.
36115         * doc/posix-functions/connect.texi: Update mingw problems.
36116         * doc/posix-functions/getpeername.texi: Update mingw problems.
36117         * doc/posix-functions/getsockname.texi: Update mingw problems.
36118         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36119         * doc/posix-functions/ioctl.texi: Update mingw problems.
36120         * doc/posix-functions/listen.texi: Update mingw problems.
36121         * doc/posix-functions/recv.texi: Update mingw problems.
36122         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36123         * doc/posix-functions/select.texi: Update mingw problems.
36124         * doc/posix-functions/send.texi: Update mingw problems.
36125         * doc/posix-functions/sendto.texi: Update mingw problems.
36126         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36127         * doc/posix-functions/socket.texi: Update mingw problems.
36128
36129 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36130             Bruno Haible  <bruno@clisp.org>
36131
36132         * lib/sys_select.in.h: Include sys/time.h.
36133         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36134         * modules/sys_select: Depend on sys_time.
36135         * tests/test-sys_select.c: Test that sys/select.h defines struct
36136         timeval fully.
36137
36138 2008-09-29  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36141         * lib/sys_select.in.h: Likewise.
36142
36143 2008-09-29  Bruno Haible  <bruno@clisp.org>
36144
36145         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36146
36147 2008-09-29  Bruno Haible  <bruno@clisp.org>
36148
36149         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36150         Set LIBSOCKET instead of augmenting LIBS.
36151         * modules/sockets (Link): New section.
36152         * modules/sockets-tests (test_sockets_LDADD): New variable.
36153         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36154         * modules/poll-tests (test_poll_LDADD): New variable.
36155         * NEWS: Document the change.
36156
36157 2008-09-29  Bruno Haible  <bruno@clisp.org>
36158
36159         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36160         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36161         ARPA_INET_H directly.
36162         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36163
36164 2008-09-28  Bruno Haible  <bruno@clisp.org>
36165
36166         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36167         from gl_HEADER_SYS_SOCKET.
36168         (gl_HEADER_SYS_SOCKET): Invoke it.
36169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36170
36171 2008-09-28  Bruno Haible  <bruno@clisp.org>
36172
36173         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36174         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36175         Needed on OSF/1 4.0.
36176
36177 2008-09-28  Bruno Haible  <bruno@clisp.org>
36178
36179         Override open more carefully.
36180         * lib/open.c (orig_open): New function.
36181         (rpl_open): Use orig_open instead of open.
36182         * lib/fcntl.in.h: Add special invocation convention.
36183         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36184         (gl_FUNC_OPEN): Invoke it.
36185
36186         Override freopen more carefully.
36187         * lib/freopen.c (orig_freopen): New function.
36188         (rpl_freopen): Use orig_freopen instead of freopen.
36189         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36190         (gl_FUNC_FREOPEN): Invoke it.
36191
36192         Override fopen more carefully.
36193         * lib/fopen.c (orig_fopen): New function.
36194         (rpl_fopen): Use orig_fopen instead of fopen.
36195         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36196         (gl_FUNC_FOPEN): Invoke it.
36197         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36198
36199 2008-09-28  Bruno Haible  <bruno@clisp.org>
36200
36201         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36202         SIGPIPE.
36203
36204 2008-09-28  Bruno Haible  <bruno@clisp.org>
36205
36206         * tests/test-sigaction.c (handler, main): Disable the check whether
36207         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36208         glibc systems with LinuxThreads.
36209
36210 2008-09-28  Bruno Haible  <bruno@clisp.org>
36211
36212         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36213
36214         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36215         with AIX xlc.
36216         * lib/fcntl.in.h (open): Likewise.
36217         Reported by Rainer Tammer <tammer@tammer.net>.
36218
36219 2008-09-28  Bruno Haible  <bruno@clisp.org>
36220
36221         * modules/posix_spawnp-tests: New file.
36222         * tests/test-posix_spawn.c: New file.
36223         * tests/test-posix_spawn.in.sh: New file.
36224
36225         New module 'posix_spawnp'.
36226         * modules/posix_spawnp: New file.
36227         * lib/spawnp.c: New file, from GNU libc with modifications.
36228         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36229
36230         New module 'posix_spawn'.
36231         * modules/posix_spawn: New file.
36232         * lib/spawn.c: New file, from GNU libc with modifications.
36233         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36234
36235         New module 'posix_spawnattr_destroy'.
36236         * modules/posix_spawnattr_destroy: New file.
36237         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36238         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36239         module.
36240
36241         New module 'posix_spawnattr_setsigmask'.
36242         * modules/posix_spawnattr_setsigmask: New file.
36243         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36244         modifications.
36245         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36246         new module.
36247
36248         New module 'posix_spawnattr_getsigmask'.
36249         * modules/posix_spawnattr_getsigmask: New file.
36250         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36251         modifications.
36252         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36253         new module.
36254
36255         New module 'posix_spawnattr_setsigdefault'.
36256         * modules/posix_spawnattr_setsigdefault: New file.
36257         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36258         modifications.
36259         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36260         new module.
36261
36262         New module 'posix_spawnattr_getsigdefault'.
36263         * modules/posix_spawnattr_getsigdefault: New file.
36264         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36265         modifications.
36266         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36267         new module.
36268
36269         New module 'posix_spawnattr_setschedpolicy'.
36270         * modules/posix_spawnattr_setschedpolicy: New file.
36271         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36272         modifications.
36273         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36274         new module.
36275
36276         New module 'posix_spawnattr_getschedpolicy'.
36277         * modules/posix_spawnattr_getschedpolicy: New file.
36278         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36279         modifications.
36280         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36281         new module.
36282
36283         New module 'posix_spawnattr_setschedparam'.
36284         * modules/posix_spawnattr_setschedparam: New file.
36285         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36286         modifications.
36287         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36288         new module.
36289
36290         New module 'posix_spawnattr_getschedparam'.
36291         * modules/posix_spawnattr_getschedparam: New file.
36292         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36293         modifications.
36294         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36295         new module.
36296
36297         New module 'posix_spawnattr_setpgroup'.
36298         * modules/posix_spawnattr_setpgroup: New file.
36299         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36300         modifications.
36301         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36302         module.
36303
36304         New module 'posix_spawnattr_getpgroup'.
36305         * modules/posix_spawnattr_getpgroup: New file.
36306         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36307         modifications.
36308         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36309         module.
36310
36311         New module 'posix_spawnattr_setflags'.
36312         * modules/posix_spawnattr_setflags: New file.
36313         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36314         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36315         module.
36316
36317         New module 'posix_spawnattr_getflags'.
36318         * modules/posix_spawnattr_getflags: New file.
36319         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36320         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36321         module.
36322
36323         New module 'posix_spawnattr_init'.
36324         * modules/posix_spawnattr_init: New file.
36325         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36326         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36327         module.
36328
36329         New module 'posix_spawn_file_actions_destroy'.
36330         * modules/posix_spawn_file_actions_destroy: New file.
36331         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36332         modifications.
36333         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36334         the new module.
36335
36336         New module 'posix_spawn_file_actions_addopen'.
36337         * modules/posix_spawn_file_actions_addopen: New file.
36338         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36339         modifications.
36340         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36341         the new module.
36342
36343         New module 'posix_spawn_file_actions_adddup2'.
36344         * modules/posix_spawn_file_actions_adddup2: New file.
36345         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36346         modifications.
36347         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36348         the new module.
36349
36350         New module 'posix_spawn_file_actions_addclose'.
36351         * modules/posix_spawn_file_actions_addclose: New file.
36352         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36353         modifications.
36354         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36355         the new module.
36356
36357         New module 'posix_spawn_file_actions_init'.
36358         * modules/posix_spawn_file_actions_init: New file.
36359         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36360         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36361         new module.
36362
36363         New module 'posix_spawn-internal'.
36364         * modules/posix_spawn-internal: New file.
36365         * lib/spawn_int.h: New file, from GNU libc with modifications.
36366         * lib/spawni.c: New file, from GNU libc with modifications.
36367         * m4/posix_spawn.m4: New file.
36368
36369         New module 'spawn'.
36370         * modules/spawn: New file.
36371         * lib/spawn.in.h: New file, from GNU libc with modifications.
36372         * m4/spawn_h.m4: New file.
36373         * doc/posix-headers/spawn.texi: Mention the new module.
36374
36375 2008-09-28  Bruno Haible  <bruno@clisp.org>
36376
36377         * modules/sched-tests: New file.
36378         * tests/test-sched.c: New file.
36379
36380         New module 'sched'.
36381         * modules/sched: New file.
36382         * lib/sched.in.h: New file.
36383         * m4/sched_h.m4: New file.
36384         * doc/posix-headers/sched.texi: Mention the new module.
36385
36386 2008-09-27  Eric Blake  <ebb9@byu.net>
36387
36388         Fix previous patch, and tweak references to $0.
36389         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36390         (func_version, func_gnulib_dir): Don't call this program
36391         gnulib-tool.
36392         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36393         with using $0 in function.
36394         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36395         (func_fatal_error): Reuse the name the user invoked us with.
36396
36397 2008-09-27  Bruno Haible  <bruno@clisp.org>
36398
36399         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36400         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36401         (gl_ICONV_H): Not here.
36402         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36403         instead of assigning ICONV_H directly.
36404
36405         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36407         WCHAR_H directly.
36408
36409 2008-09-27  Bruno Haible  <bruno@clisp.org>
36410
36411         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36412         * modules/arpa_inet (Depends-on): Add link-warning.
36413         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36414         * modules/unistd (Makefile.am): Likewise.
36415
36416 2008-09-26  Bruno Haible  <bruno@clisp.org>
36417
36418         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36419         variables.
36420         (func_version): Essentially copied from gnulib-tool.
36421         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36422         func_readlink): Copied from gnulib-tool.
36423
36424 2008-09-26  Bruno Haible  <bruno@clisp.org>
36425
36426         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36427         invoking git-version-gen.
36428
36429 2008-09-26  Bruno Haible  <bruno@clisp.org>
36430
36431         * posix-modules: Update to directory names changed on 2008-01-19.
36432         Remove commas in output before splitting into words. No more need to
36433         avoid 'ftruncate' since 2007-02-19.
36434
36435 2008-09-26  Bruno Haible  <bruno@clisp.org>
36436
36437         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36438
36439 2008-09-26  Bruno Haible  <bruno@clisp.org>
36440
36441         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36442         * modules/fwriteerror (Depends-on): Add errno.
36443
36444 2008-09-26  Bruno Haible  <bruno@clisp.org>
36445
36446         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36447         * tests/test-vc-list-files-cvs.sh: Likewise.
36448
36449 2008-09-26  Bruno Haible  <bruno@clisp.org>
36450
36451         * doc/posix-headers/sys_resource.texi: Reorder items.
36452
36453 2008-09-26  Jim Meyering  <meyering@redhat.com>
36454
36455         fts: tweak inode comparison function
36456         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36457         inode numbers, as documented.
36458
36459         fts: sort dirent entries on inode number before traversing
36460         This avoids a quadratic, seek-related performance penalty when
36461         operating on a directory containing many entries (measurable at 10k;
36462         3.5 hours at 2 million entries with a cold cache) on certain types
36463         of file systems, including ext3 and ext4, but not tmpfs.
36464         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36465         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36466         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36467         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36468         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36469         (fts_build): Set the stat.st_ino member from D_INO.
36470         If it is likely to be useful, sort dirent entries on inode number.
36471
36472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36473         and the struct statfs.f_type member.
36474         * modules/fts (Depends-on): Add d-ino.
36475
36476 2008-09-26  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/sigpipe-die (Depends-on): Add sigpipe.
36479
36480         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36481         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36482         and GNULIB_STDIO_H_SIGPIPE are set.
36483         * lib/stdio-write.c: New file.
36484         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36485         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36486         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36487         REPLACE_STDIO_WRITE_FUNCS.
36488         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36489         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36490         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36491         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36492         * modules/stdio (Files): Add lib/stdio-write.c.
36493         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36494         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36495         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36496         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36497         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36498         REPLACE_FPRINTF_POSIX.
36499         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36500         REPLACE_PRINTF_POSIX.
36501         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36502         REPLACE_VFPRINTF_POSIX.
36503         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36504         REPLACE_VPRINTF_POSIX.
36505         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36506         SIGPIPE issue.
36507         * doc/posix-functions/fputc.texi: Likewise.
36508         * doc/posix-functions/fputs.texi: Likewise.
36509         * doc/posix-functions/fwrite.texi: Likewise.
36510         * doc/posix-functions/printf.texi: Likewise.
36511         * doc/posix-functions/putc.texi: Likewise.
36512         * doc/posix-functions/putchar.texi: Likewise.
36513         * doc/posix-functions/puts.texi: Likewise.
36514         * doc/posix-functions/vfprintf.texi: Likewise.
36515         * doc/posix-functions/vprintf.texi: Likewise.
36516
36517         * modules/safe-write (Depends-on): Add write.
36518
36519         * modules/sigpipe-tests: New file.
36520         * tests/test-sigpipe.c: New file.
36521         * tests/test-sigpipe.sh: New file.
36522
36523         * modules/write: New file.
36524         * lib/unistd.in.h: Include <sys/types.h>.
36525         (write): New declaration.
36526         * lib/write.c: New file.
36527         * m4/write.m4: New file.
36528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36529         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36530         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36531         GNULIB_WRITE, REPLACE_WRITE.
36532         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36533         and the SIGPIPE issue.
36534
36535         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36536         (raise): New declaration.
36537         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36538         (ext_signal): New function.
36539         (rpl_raise): New function.
36540         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36541         GNULIB_SIGNAL_H_SIGPIPE.
36542         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36543         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36544
36545         * modules/sigpipe: New file.
36546         * m4/sigpipe.m4: New file.
36547
36548 2008-09-25  Derek Price  <derek@ximbiot.com>
36549             Bruno Haible  <bruno@clisp.org>
36550
36551         * gnulib-tool (func_import): Report all license incompatibilities, not
36552         just the first one.
36553
36554 2008-09-25  Bruno Haible  <bruno@clisp.org>
36555
36556         * gnulib-tool (func_import): When computing the edits, consider not
36557         only the Makefile.ams that exist but also those that will be generated.
36558
36559 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36560
36561         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36562         fixes gnulib-tool --test warning about duplicate dependency.
36563
36564 2008-09-25  Bruno Haible  <bruno@clisp.org>
36565
36566         * gnulib-tool: Don't ask the user to perform edits in the generated
36567         Makefile.ams.
36568         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36569         apply to the Makefile.am being generated.
36570         (func_emit_tests_Makefile_am): Execute edits that apply to the
36571         Makefile.am being generated.
36572         (func_import): Setup list of Makefile.am edits before emitting the
36573         Makefile.ams, not at the end.
36574         (func_create_testdir): Update.
36575         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36576
36577 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36578
36579         * gnulib-tool (func_import): Store the --tests-base option in the
36580         comment in gnulib-cache.m4.
36581
36582 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36583
36584         * NEWS: Document increased portability that sys_select now provides.
36585
36586         * lib/sys_select.in.h: Install select wrapper.
36587         * lib/sys_socket.in.h: Use more descriptive name when there is no
36588         select wrapper.
36589         * lib/winsock-select.c: New.
36590         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36591         Require gl_HEADER_SYS_SOCKET.
36592         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36593         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36594         * tests/test-sys_select.c: Add functional tests.
36595
36596 2008-09-24  Eric Blake  <ebb9@byu.net>
36597
36598         open, fopen: close fd leak in last patch
36599         * lib/open.c (rpl_open): Close fd before returning error.
36600         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36601         * doc/posix-functions/open.texi (open): Document that Irix also
36602         has the bug.
36603         * doc/posix-functions/fopen.texi (fopen): Likewise.
36604         Reported by Paolo Bonzini.
36605
36606 2008-09-24  Bruno Haible  <bruno@clisp.org>
36607
36608         Ensure that a filename ending in a slash cannot be used to access a
36609         non-directory.
36610         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36611         to check whether it's really a directory.
36612         * lib/fopen.c: Include fcntl.h, unistd.h.
36613         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36614         and fdopen().
36615         * modules/fopen (Depends-on): Add unistd.
36616         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36617         * tests/test-fopen.c (main): Likewise.
36618         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36619         * doc/posix-functions/fopen.texi: Likewise.
36620         Reported by Eric Blake.
36621
36622 2008-09-23  Eric Blake  <ebb9@byu.net>
36623
36624         c-stack: avoid compiler optimizations when provoking overflow
36625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36626         recursion harder to optimize, to ensure a stack overflow occurs.
36627         * tests/test-c-stack.c (recurse): Likewise.
36628         Borrowed from libsigsegv.
36629
36630         c-stack: work around Irix sigaltstack bug
36631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36632         whether sigaltstack uses wrong end of stack_t (copied in part from
36633         libsigsegv).
36634         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36635         Irix bug, without requiring an over-allocation.
36636         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36637         bug.
36638
36639         fopen: document mingw bug on directories
36640         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36641         not allowing a stream visiting a directory, even though reading
36642         from such a stream is not portable.
36643
36644 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36645
36646         * lib/poll.c: Rewrite.
36647         * modules/poll: Depend on alloca.
36648
36649 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36650
36651         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36652         instead define prototypes for a full set of wrappers.  Ensure
36653         that Cygwin does not use the compatibility code, which is only
36654         for MinGW.
36655         * lib/winsock.c: New.
36656         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36657         * modules/sys_socket: Add lib/winsock.c.
36658
36659         * modules/poll-tests: Add errno and perror.
36660         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36661
36662 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36663
36664         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36665
36666 2008-09-23  Bruno Haible  <bruno@clisp.org>
36667
36668         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36669         * doc/glibc-functions/*: Likewise.
36670
36671 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36672
36673         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36674         success.
36675
36676 2008-09-22  Eric Blake  <ebb9@byu.net>
36677             Bruno Haible  <bruno@clisp.org>
36678
36679         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36680         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36681         supply %A but mishandle pseudo-NaN.
36682         Reported by Simon Josefsson.
36683
36684 2008-09-21  Bruno Haible  <bruno@clisp.org>
36685
36686         * tests/test-lock.c (main): Tweak skip message.
36687         * tests/test-tls.c (main): Likewise.
36688
36689 2008-09-21  Bruno Haible  <bruno@clisp.org>
36690
36691         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36692         whether 'struct sigaction' has sa_sigaction here...
36693         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36694         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36695
36696 2008-09-21  Bruno Haible  <bruno@clisp.org>
36697
36698         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36699         section.
36700         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36701         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36702         the new section.
36703         (Support for obsolete systems lacking POSIX:2001): New section.
36704         (String handling <string.h>): Move strdup to the new section.
36705         Suggested by Simon Josefsson and Paolo Bonzini.
36706
36707 2008-09-21  Bruno Haible  <bruno@clisp.org>
36708
36709         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36710         exponents in %e and %g results on 'long double'. Needed for mingw's
36711         improved *printf functions.
36712         * tests/test-vasprintf-posix.c (test_function): Likewise.
36713         * tests/test-snprintf-posix.h (test_function): Likewise.
36714         * tests/test-sprintf-posix.h (test_function): Likewise.
36715         Reported by Eric Blake.
36716
36717 2008-09-21  Bruno Haible  <bruno@clisp.org>
36718
36719         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36720         * tests/test-sprintf-posix.h (test_function): Likewise.
36721
36722 2008-09-21  Bruno Haible  <bruno@clisp.org>
36723
36724         * modules/getpass (Depends-on): Add strdup-posix.
36725
36726         New module 'strdup-posix'.
36727         * modules/strdup-posix: New file.
36728         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36729         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36731         REPLACE_STRDUP.
36732         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36733         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36735         strdup-posix.
36736
36737         * modules/strdup (Depends-on): Remove malloc-posix.
36738
36739 2008-09-20  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36742         Wildenhues.
36743
36744 2008-09-20  Bruno Haible  <bruno@clisp.org>
36745
36746         Ensure that wint_t gets defined on IRIX 5.3.
36747         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36748         * lib/wctype.in.h (wint_t): Likewise.
36749         (__wctype_wint_t): Remove type.
36750         (isw*): Use wint_t instead of __wctype_wint_t.
36751         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36752         * modules/wchar (Files): Add m4/wint_t.m4.
36753         (Makefile.am): Substitute HAVE_WINT_T.
36754         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36755         * tests/test-wctype.c: Check that wint_t is defined.
36756         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36757         * doc/posix-headers/wctype.texi: Likewise.
36758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36759
36760 2008-09-18  Bruno Haible  <bruno@clisp.org>
36761
36762         * gnulib-tool (func_exit): Update comment.
36763
36764 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36765
36766         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36767         assumes strdup exists and does not depend on strdup to return
36768         ENOMEM on out of memory conditions.
36769
36770 2008-09-18  Bruno Haible  <bruno@clisp.org>
36771
36772         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36773         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36774         digits for the exponent.
36775
36776 2008-09-18  Jim Meyering  <meyering@redhat.com>
36777             Bruno Haible  <bruno@clisp.org>
36778
36779         * lib/vasnprintf.c (decimal_point_char): Define also if
36780         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36781
36782 2008-09-16  Bruno Haible  <bruno@clisp.org>
36783         and Eric Blake  <ebb9@byu.net>
36784
36785         vasnprintf: support Irix 5.3
36786         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36787         that mishandle long double infinity.
36788         Reported by Tom G. Christensen.
36789
36790 2008-09-16  Bruno Haible  <bruno@clisp.org>
36791
36792         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36793         Solaris 9.
36794         * doc/glibc-functions/alphasort.texi: Likewise.
36795         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36796
36797 2008-09-16  Jim Meyering  <meyering@redhat.com>
36798
36799         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36800         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36801         a umask modification leak out of a subshell.  Otherwise, the
36802         opensolaris /bin/sh would be accepted and thus cause unwarranted
36803         failures in the coreutils test suite.
36804
36805 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36806
36807         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36808         to succeed.
36809
36810 2008-09-16  Jim Meyering  <meyering@redhat.com>
36811
36812         avoid spurious test failure when library is built without ACL support
36813         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36814         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36815         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36816         * tests/test-copy-acl.sh: Likewise.
36817
36818 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36819
36820         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36821         based on character occurrence counts.
36822
36823 2008-09-15  Eric Blake  <ebb9@byu.net>
36824
36825         tests: avoid some compiler warnings
36826         * tests/test-memchr.c (main): Pass NULL indirectly.
36827         * tests/test-closein.c (main): Avoid unused variable.
36828
36829 2008-09-15  Bruno Haible  <bruno@clisp.org>
36830
36831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36832         are missing on OpenBSD 4.0 individually.
36833         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36834
36835 2008-09-15  Bruno Haible  <bruno@clisp.org>
36836
36837         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36838         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36839         * doc/posix-functions/perror.texi: Likewise.
36840         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36841         is missing.
36842         Reported by Eric Blake.
36843
36844         * lib/errno.in.h: Use replacement values >= 2000.
36845         Reported by Eric Blake.
36846
36847 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36848
36849         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36850         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36851         limit.
36852         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36853         compareseq was aborted.
36854
36855 2008-09-14  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36858         yvec_edit_count.
36859         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36860         (fstrcmp_bounded): Simplify result computation accordingly.
36861
36862 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36863
36864         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36865         (fstrcmp): Define in terms of fstrcmp_bounded.
36866         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36867         lower_bound argument.
36868         Return quickly if the result is certainly < lower_bound.
36869         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36870
36871 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36872
36873         * lib/diffseq.h (EARLY_ABORT): New macro.
36874         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36875         evaluates to true.
36876
36877 2008-09-14  Bruno Haible  <bruno@clisp.org>
36878
36879         * modules/perror-tests: New file.
36880         * tests/test-perror.sh: New file.
36881         * tests/test-perror.c: New file.
36882
36883         New module 'perror'.
36884         * lib/stdio.in.h (perror): New declaration.
36885         * lib/perror.c: New file.
36886         * m4/perror.m4: New file.
36887         * modules/perror: New file.
36888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36889         * doc/posix-functions/perror.texi: Mention the perror module.
36890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36891         REPLACE_PERROR.
36892         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36893         REPLACE_PERROR.
36894
36895 2008-09-14  Bruno Haible  <bruno@clisp.org>
36896
36897         * modules/stdio (Makefile.am): Reorder to match the order in
36898         lib/stdio.in.h.
36899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36900
36901 2008-09-13  Bruno Haible  <bruno@clisp.org>
36902
36903         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36904
36905 2008-09-13  Bruno Haible  <bruno@clisp.org>
36906
36907         Extend strerror to cover the added errno values.
36908         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36909         (rpl_strerror): Provide error messages for the added errno values and
36910         for the WSA* values.
36911         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36912         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36913         strerror.
36914         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36915         * modules/strerror (Depends-on): Add errno.
36916         * doc/posix-functions/strerror.texi: Document the change.
36917         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36918         and EOVERFLOW.
36919
36920 2008-09-13  Bruno Haible  <bruno@clisp.org>
36921
36922         * modules/EOVERFLOW: Remove file.
36923         * m4/eoverflow.m4: Remove file.
36924         * modules/EOVERFLOW-tests: Remove file.
36925         * tests/test-EOVERFLOW.c: Remove file.
36926         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36927         * modules/ftell (Depends-on): Likewise.
36928         * modules/getdelim (Depends-on): Likewise.
36929         * modules/getugroups (Depends-on): Likewise.
36930         * modules/poll (Depends-on): Likewise.
36931         * modules/snprintf (Depends-on): Likewise.
36932         * modules/sprintf-posix (Depends-on): Likewise.
36933         * modules/vasnprintf (Depends-on): Likewise.
36934         * modules/vasprintf (Depends-on): Likewise.
36935         * modules/vfprintf-posix (Depends-on): Likewise.
36936         * modules/vsnprintf (Depends-on): Likewise.
36937         * modules/vsprintf-posix (Depends-on): Likewise.
36938         * modules/xvasprintf (Depends-on): Likewise.
36939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36940         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36941         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36942         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36943         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36944         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36945         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36946         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36947         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36948         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36949         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36950         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36951         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36952         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36953         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36954         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36955         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36956         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36957         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36958         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36960         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36961         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36962         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36963         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36964         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36965         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36966         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36967         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36968         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36969         * MODULES.html.sh: Remove EOVERFLOW.
36970         * NEWS: Mention the change.
36971
36972 2008-09-13  Bruno Haible  <bruno@clisp.org>
36973
36974         * modules/errno-tests: New file.
36975         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36976
36977         * lib/errno.in.h: New file.
36978         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36979         * modules/errno: New file.
36980         * doc/posix-headers/errno.texi: Update documentation.
36981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36982
36983 2008-09-13  Bruno Haible  <bruno@clisp.org>
36984
36985         * tests/test-poll.c: Use #if for native Windows, rather than testing
36986         __MSVCRT__.
36987
36988 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36989             Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/glob.c: Don't include <pwd.h> on native Windows.
36992         (WINDOWS32): New macro.
36993         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36994
36995 2008-09-13  Bruno Haible  <bruno@clisp.org>
36996
36997         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36998         (ETIMEDOUT): Remove macro.
36999         (glthread_cond_timedwait_multithreaded): New declaration.
37000         (glthread_cond_timedwait): Use it.
37001         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37002         (glthread_cond_timedwait_multithreaded): New function.
37003
37004 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37005
37006         * modules/poll-tests: Do not check for io.h.
37007         * tests/test-poll.c: Check for __MSVCRT__ instead.
37008
37009 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37010
37011         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37012         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37013         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37014
37015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37016
37017         * modules/poll-tests: New.
37018         * tests/test-poll.c: New.
37019
37020 2008-09-12  Eric Blake  <ebb9@byu.net>
37021
37022         frexp: test for NetBSD failure on -0.0
37023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37024         not all, bugs from NetBSD 3.0 have been fixed.
37025         * doc/posix-functions/frexp.texi (frexp): Document bug.
37026         Reported by Thomas Klausner.
37027
37028         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37029         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37030         literal -0.0.
37031         Reported by Jonathan C. Patschke <jp@centtech.com>.
37032
37033 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37034
37035         * lib/glthread/cond.h: Use dummy implementation also if
37036         USE_WIN32_THREADS.
37037
37038 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37039
37040         * modules/fnmatch-posix (License): Change to LGPLv2+.
37041         * modules/fnmatch-gnu (License): Likewise.
37042
37043 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37044
37045         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37046
37047 2008-09-11  Jim Meyering  <meyering@redhat.com>
37048
37049         * users.txt: Add gtk-vnc.
37050
37051 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37052
37053         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37054         rotate amounts.
37055
37056         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37057         required for 16-bit and 8-bit rotates.
37058         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37059         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37060         UINT8_MAX instead of hard-coded constants.
37061         Suggested by Paul Eggert.
37062
37063 2008-09-07  Bruno Haible  <bruno@clisp.org>
37064
37065         * tests/test-striconveh.c (main): Check behaviour when converting from
37066         UTF-7.
37067
37068         Make striconveh work better with stateful encodings.
37069         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37070         that iconv does not increment the inptr when returning -1/EINVAL.
37071
37072 2008-09-07  Bruno Haible  <bruno@clisp.org>
37073
37074         * build-aux/config.rpath: Update according to libtool-2.2.6.
37075         * build-aux/config.libpath: Likewise.
37076
37077 2008-09-06  Bruno Haible  <bruno@clisp.org>
37078
37079         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37080         * lib/freadptr.c (freadptr): Likewise.
37081         * lib/freadseek.c (freadptrinc): Likewise.
37082         Reported by Simon Josefsson.
37083
37084 2008-09-06  Bruno Haible  <bruno@clisp.org>
37085
37086         * modules/freadptr (License): Change to LGPLv2+.
37087         * modules/freadseek (License): Likewise.
37088         Suggested by Eric Blake.
37089
37090         * modules/memchr2 (License): Change to LGPLv2+.
37091         Approved by Eric Blake.
37092
37093 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37094             Bruno Haible  <bruno@clisp.org>
37095
37096         Make gnulib-tool work with native 'sed' on AIX.
37097         * gnulib-tool (sed_noop): New variable.
37098         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37099         func_add_or_update, func_create_testdir): Use it to initialize sed
37100         script variables.
37101         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37102
37103 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37104             Bruno Haible  <bruno@clisp.org>
37105
37106         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37107         also works after #include directives.
37108
37109 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37110
37111         getdate.y: reject an out-of-range timezone value
37112         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37113         the range [-24...+24].  When specified with only one or two digits,
37114         * tests/test-getdate.c: Tests for the fix.
37115         * doc/getdate.texi: Document this change.
37116
37117 2008-09-03  Bruno Haible  <bruno@clisp.org>
37118
37119         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37120
37121 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37122
37123         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37124         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37125         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37126         Blake <ebb9@byu.net>.
37127
37128         * tests/test-bitrotate.c: Add more test vectors.
37129
37130 2008-09-02  Eric Blake  <ebb9@byu.net>
37131
37132         vasnprintf-posix: handle large precision via %.*d
37133         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37134         when handling it ourselves.
37135         * tests/test-vasnprintf-posix.c (test_function): Add test.
37136         * tests/test-snprintf-posix.h (test_function): Likewise.
37137         * tests/test-sprintf-posix.h (test_function): Likewise.
37138         * tests/test-vasprintf-posix.c (test_function): Likewise.
37139         Reported by Alain Guibert.
37140
37141 2008-09-01  Eric Blake  <ebb9@byu.net>
37142
37143         c-stack: make configure-time check more robust
37144         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37145         successful sigaction call.
37146         Reported by Tom G. Christensen.
37147
37148 2008-09-01  Bruno Haible  <bruno@clisp.org>
37149
37150         New module 'findprog-lgpl'.
37151         * modules/findprog-lgpl: New file.
37152         * lib/findprog-lgpl.c: New file.
37153         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37154         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37155         to decide whether to use strdup or xstrdup, concatenated_filename or
37156         xconcatenated_filename.
37157
37158 2008-09-01  Bruno Haible  <bruno@clisp.org>
37159
37160         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37161         'xconcat-filename' (GPL).
37162         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37163         (License): Change to LGPLv2+.
37164         * modules/xconcat-filename: New file.
37165         * lib/concat-filename.h (concatenated_filename): Change specification.
37166         (xconcatenated_filename): New declaration.
37167         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37168         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37169         memory situations.
37170         * lib/xconcat-filename.c: New file.
37171         * NEWS: Mention the change.
37172         * lib/findprog.c: Include concat-filename.h, not filename.h.
37173         (find_in_path): Use xconcatenated_filename instead of
37174         concatenated_filename.
37175         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37176         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37177         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37178         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37179         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37180         instead of concatenated_filename.
37181         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37182         (execute_java_class): Use xconcatenated_filename instead of
37183         concatenated_filename.
37184         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37185         * modules/javacomp (Depends-on): Likewise.
37186         * modules/javaexec (Depends-on): Likewise.
37187
37188 2008-09-01  Bruno Haible  <bruno@clisp.org>
37189
37190         Split module 'filename' into 'filename' and 'concat-filename'.
37191         * modules/filename: Keep only lib/filename.h.
37192         (License): Change to LGPLv2+.
37193         * modules/concat-filename: New file, extracted from modules/filename.
37194         * lib/filename.h (concatenated_filename): Remove declaration.
37195         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37196         * lib/concat-filename.c: Include concat-filename.h.
37197         * NEWS: Mention the change.
37198
37199 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37200
37201         * lib/bitrotate.h (rotl8, rotr8): Add.
37202
37203         * modules/bitrotate (configure.ac): Need
37204         AC_REQUIRE([AC_C_INLINE]).
37205         (Description): Mention stdint.h.  Reported by Bruno Haible
37206         <bruno@clisp.org>.
37207
37208         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37209         Paolo Bonzini <bonzini@gnu.org>.
37210
37211 2008-08-31  Bruno Haible  <bruno@clisp.org>
37212
37213         Assume Solaris specific bi-arch conventions on Solaris systems.
37214         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37215         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37217         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37218         like acl_libdirstem.
37219         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37220         acl_libdirstem.
37221         * NEWS: Mention the change.
37222         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37223
37224 2008-08-31  Jim Meyering  <meyering@redhat.com>
37225
37226         * lib/strftime.h: Add comments describing the two added arguments.
37227
37228         remove duplicate #include directives
37229         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37230         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37231
37232 2008-08-31  Bruno Haible  <bruno@clisp.org>
37233
37234         New module 'sigpipe-die'.
37235         * modules/sigpipe-die: New file.
37236         * lib/sigpipe-die.h: New file.
37237         * lib/sigpipe-die.c: New file.
37238         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37239
37240 2008-08-31  Bruno Haible  <bruno@clisp.org>
37241
37242         Don't override previously installed signal handlers.
37243         * lib/fatal-signal.c (saved_sigactions): New variable.
37244         (uninstall_handlers): Reset the signal to the saved handler, not
37245         to SIG_DFL (except when ignored).
37246         (install_handlers): Save the previous handlers.
37247
37248 2008-08-30  Bruno Haible  <bruno@clisp.org>
37249
37250         * gnulib-tool (func_reset_sigpipe): New function.
37251         (func_get_automake_snippet, func_modules_transitive_closure,
37252         func_import): Invoke it before a join command that reads from stdin,
37253         to avoid "echo: write error: Broken pipe" error messages on stderr.
37254         Reported by Sam Steingold <sds@gnu.org>.
37255
37256 2008-08-30  Bruno Haible  <bruno@clisp.org>
37257
37258         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37259         Code copied from m4/open.m4.
37260         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37261         access and the filename ends in a slash. Code copied from lib/open.c.
37262         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37263         * tests/test-fopen.c (main): Check against bug with trailing slash.
37264
37265 2008-08-29  Bruno Haible  <bruno@clisp.org>
37266
37267         Avoid some "gcc -pedantic" warnings.
37268         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37269         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37270         * lib/dirent.in.h: Likewise.
37271         * lib/fcntl.in.h: Likewise.
37272         * lib/float.in.h: Likewise.
37273         * lib/iconv.in.h: Likewise.
37274         * lib/inttypes.in.h: Likewise.
37275         * lib/locale.in.h: Likewise.
37276         * lib/math.in.h: Likewise.
37277         * lib/netinet_in.in.h: Likewise.
37278         * lib/search.in.h: Likewise.
37279         * lib/signal.in.h: Likewise.
37280         * lib/stdarg.in.h: Likewise.
37281         * lib/stdint.in.h: Likewise.
37282         * lib/stdio.in.h: Likewise.
37283         * lib/stdlib.in.h: Likewise.
37284         * lib/string.in.h: Likewise.
37285         * lib/strings.in.h: Likewise.
37286         * lib/sys_select.in.h: Likewise.
37287         * lib/sys_socket.in.h: Likewise.
37288         * lib/sys_stat.in.h: Likewise.
37289         * lib/sys_time.in.h: Likewise.
37290         * lib/sysexits.in.h: Likewise.
37291         * lib/time.in.h: Likewise.
37292         * lib/unistd.in.h: Likewise.
37293         * lib/wchar.in.h: Likewise.
37294         * lib/wctype.in.h: Likewise.
37295         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37296         * modules/fchdir (Makefile.am): Likewise.
37297         * modules/fcntl (Makefile.am): Likewise.
37298         * modules/float (Makefile.am): Likewise.
37299         * modules/iconv_open (Makefile.am): Likewise.
37300         * modules/inttypes (Makefile.am): Likewise.
37301         * modules/locale (Makefile.am): Likewise.
37302         * modules/math (Makefile.am): Likewise.
37303         * modules/netinet_in (Makefile.am): Likewise.
37304         * modules/search (Makefile.am): Likewise.
37305         * modules/signal (Makefile.am): Likewise.
37306         * modules/stdarg (Makefile.am): Likewise.
37307         * modules/stdint (Makefile.am): Likewise.
37308         * modules/stdio (Makefile.am): Likewise.
37309         * modules/stdlib (Makefile.am): Likewise.
37310         * modules/string (Makefile.am): Likewise.
37311         * modules/strings (Makefile.am): Likewise.
37312         * modules/sys_select (Makefile.am): Likewise.
37313         * modules/sys_socket (Makefile.am): Likewise.
37314         * modules/sys_stat (Makefile.am): Likewise.
37315         * modules/sys_time (Makefile.am): Likewise.
37316         * modules/sysexits (Makefile.am): Likewise.
37317         * modules/time (Makefile.am): Likewise.
37318         * modules/unistd (Makefile.am): Likewise.
37319         * modules/wchar (Makefile.am): Likewise.
37320         * modules/wctype (Makefile.am): Likewise.
37321         Reported by Reuben Thomas <rrt@sc3d.org>.
37322
37323 2008-08-29  Bruno Haible  <bruno@clisp.org>
37324
37325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37326         any more.
37327
37328 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37329
37330         * MODULES.html.sh (Misc): Add bitrotate.
37331
37332         * modules/bitrotate: New file.
37333
37334         * lib/bitrotate.h: New file.
37335
37336         * modules/bitrotate-tests: New file.
37337
37338         * tests/test-bitrotate.c: New file.
37339
37340         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37341         on the bitrotate module.
37342
37343         * lib/arctwo.c: Use new bitrotate module.
37344
37345 2008-08-29  Jim Meyering  <meyering@redhat.com>
37346
37347         bootstrap: merge changes from coreutils
37348         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37349         of copied files.  Remove a kludge, now that this is fixed.
37350         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37351         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37352         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37353
37354 2008-08-29  Bruno Haible  <bruno@clisp.org>
37355
37356         * MODULES.html.sh: Remove --cvs-urls option.
37357
37358 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37359
37360         maint.mk: adjust to file name change
37361         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37362
37363 2008-08-28  Jim Meyering  <meyering@redhat.com>
37364
37365         * modules/getndelim2 (License): Relicense to LGPLv2+.
37366         Approved by Richard Stallman for the version of 1995, and by
37367         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37368
37369 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37370
37371         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37372         dummy if one is not available.  Do not touch them if
37373         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37374         (getc_maybe_unlocked): New.
37375         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37376
37377 2008-08-26  Eric Blake  <ebb9@byu.net>
37378
37379         doc/INSTALL: resync from autoconf
37380         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37381         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37382         moving...
37383         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37384         * INSTALL: Regenerate.
37385         * INSTALL.ISO: New file.
37386         * INSTALL.UTF-8: Likewise.
37387
37388 2008-08-26  Jim Meyering  <meyering@redhat.com>
37389
37390         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37391         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37392         these definitions conditional, so that they may be overridden, too.
37393
37394 2008-08-26  Bruno Haible  <bruno@clisp.org>
37395
37396         Generate INSTALL file variants with prettier quotes.
37397         * doc/Makefile (INSTALL_PRELUDE): New macro.
37398         (INSTALL): Use it.
37399         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37400
37401 2008-08-26  Bruno Haible  <bruno@clisp.org>
37402
37403         Run makeinfo in an English locale.
37404         * doc/Makefile (MAKEINFO): New variable.
37405
37406 2008-08-26  Bruno Haible  <bruno@clisp.org>
37407
37408         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37409         Suggested by Eric Blake.
37410
37411 2008-08-25  Bruno Haible  <bruno@clisp.org>
37412
37413         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37414
37415 2008-08-25  Eric Blake  <ebb9@byu.net>
37416
37417         c-stack: test that stack overflow can be caught
37418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37419         that platform allows handling stack overflow; at least OS/2 EMX
37420         has sigaltstack, but crashes before transferring control to
37421         handler on stack overflow.
37422         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37423         check for HAVE_STACK_OVERFLOW_HANDLING.
37424         Reported by Elbert Pol.
37425
37426 2008-08-25  Bruno Haible  <bruno@clisp.org>
37427
37428         * doc/posix-functions/strftime.texi: Fix description of strftime
37429         module.
37430
37431 2008-08-24  Bruno Haible  <bruno@clisp.org>
37432
37433         * tests/uniwidth/test-uc_width2.c: New file.
37434         * tests/uniwidth/test-uc_width2.sh: New file.
37435         * modules/uniwidth/width-tests (Files): Add the new files.
37436         (TESTS): Add uniwidth/test-uc_width2.sh.
37437         (TESTS_ENVIRONMENT): New variable.
37438         (check_PROGRAMS): Add test-uc_width2.
37439         (test_uc_width2_SOURCES): New variable.
37440
37441         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37442         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37443         not 0x00AB.
37444         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37445
37446 2008-08-22  Eric Blake  <ebb9@byu.net>
37447
37448         test-lock, test-tls: mention why a test is skipped
37449         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37450         skipped.
37451         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37452
37453         count-one-bits: relax license
37454         * modules/count-one-bits (License): Relicense to LGPLv2+.
37455         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37456
37457 2008-08-22  Andreas Schwab  <schwab@suse.de>
37458
37459         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37460         Remove spurious space in assignment.
37461
37462 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37463
37464         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37465         Paul Eggert <eggert@CS.UCLA.EDU>.
37466
37467 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37468
37469         * modules/gettext: Add m4/threadlib.m4.
37470
37471 2008-08-19  Eric Blake  <ebb9@byu.net>
37472
37473         test-c-stack: fix compilation failure on FreeBSD 5.0
37474         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37475         headers before <sys/resource.h>.
37476         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37477         the bug.
37478         Reported by Nelson H. F. Beebe.
37479
37480         strverscmp: migrate from "strverscmp.h" to <string.h>
37481         * modules/string (Makefile.am): Add new hooks.
37482         * modules/strverscmp (Files): Remove strverscmp.h.
37483         (Depends-on): Add string.
37484         (configure.ac): Add indicator.
37485         (Include): Mention new header.
37486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37487         defaults.
37488         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37489         results.
37490         * lib/strverscmp.h: Delete.
37491         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37492         * tests/test-strverscmp.c (includes): Adjust client.
37493         * lib/check-version.c (includes): Likewise.
37494         * NEWS: Document the change.
37495
37496         strverscmp: add unit test
37497         * modules/strverscmp-tests: New file.
37498         * tests/test-strverscmp.c: Likewise.
37499
37500 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37501
37502         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37503         regarding Windows crypto stuff, from Mono.
37504
37505 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37506
37507         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37508         if present, for intel RND.  Return error on failures.
37509
37510 2008-08-18  Ben Pfaff  <blp@gnu.org>
37511
37512         gitlog-to-changelog: give better diagnostic for failed pipe-open
37513         * build-aux/gitlog-to-changelog: Improve error message: suggest
37514         that the version of Git may be too old.
37515
37516 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37517
37518         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37519         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37520
37521 2008-08-18  Bruno Haible  <bruno@clisp.org>
37522
37523         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37524         pthread_in_use().
37525
37526 2008-08-18  Bruno Haible  <bruno@clisp.org>
37527
37528         * lib/glthread/threadlib.c: Include <pthread.h>.
37529
37530 2008-08-18  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37533         glthread_recursive_lock_* macros.
37534         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37535         Fix syntax error.
37536
37537 2008-08-18  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/glthread/thread.c: Avoid forcing a context switch right after
37540         thread creation.
37541
37542 2008-08-17  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37545         * lib/glthread/thread.h: Provide Win32 specific implementation.
37546         * modules/thread (Files): Add lib/glthread/thread.c.
37547         (Depends-on): Add lock.
37548         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37549
37550 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37551
37552         New module 'yield'.
37553         * modules/yield: New file.
37554         * lib/glthread/yield.h: New file.
37555         * m4/yield.m4: New file.
37556         * MODULES.html.sh (Multithreading): Add yield.
37557
37558 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37559
37560         New module 'thread'.
37561         * modules/thread: New file.
37562         * lib/glthread/thread.h: New file.
37563         * m4/thread.m4: New file.
37564         * MODULES.html.sh (Multithreading): Add thread.
37565
37566 2008-08-17  Bruno Haible  <bruno@clisp.org>
37567
37568         * lib/glthread/lock.h: Include <stdlib.h> always.
37569         * lib/glthread/tls.h: Likewise.
37570         * lib/glthread/cond.h: Likewise.
37571
37572 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37573
37574         New module 'cond'.
37575         * modules/cond: New file.
37576         * lib/glthread/cond.h: New file.
37577         * lib/glthread/cond.c: New file.
37578         * m4/cond.m4: New file.
37579         * MODULES.html.sh (Multithreading): Add cond.
37580
37581 2008-08-16  Eric Blake  <ebb9@byu.net>
37582
37583         c-stack: fix regression on Irix 5.3 from 2008-06-21
37584         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37585         sa_sigaction...
37586         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37587         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37588         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37589         * modules/signal (Makefile.am): Use the value.
37590         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37591         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37592         * doc/posix-headers/signal.texi (signal.h): Document this
37593         portability issue.
37594         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37595         Reported by Tom G. Christensen.
37596
37597 2008-08-17  Bruno Haible  <bruno@clisp.org>
37598
37599         New module 'threadlib'.
37600         * modules/threadlib: New file.
37601         * lib/glthread/threadlib.c: New file, extracted from
37602         lib/glthread/lock.c.
37603         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37604         functions.
37605         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37606         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37607         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37608         macros.
37609         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37610         (gl_DISABLE_THREADS): Remove macro.
37611         * modules/lock (Files): Remove build-aux/config.rpath.
37612         (Depends-on): Remove havelib. Add threadlib.
37613         (configure.ac-early): Remove section.
37614         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37615         * modules/tls (Depends-on): Remove lock. Add threadlib.
37616         (Link): New section, copied from threadlib.
37617         * MODULES.html.sh (Multithreading): Add threadlib.
37618
37619 2008-08-14  Bruno Haible  <bruno@clisp.org>
37620
37621         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37622         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37623         glthread_rwlock_unlock, glthread_rwlock_destroy,
37624         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37625         glthread_recursive_lock_destroy): Define as macros always.
37626         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37627         glthread_lock_lock.
37628         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37629         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37630         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37631         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37632         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37633         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37634         (glthread_recursive_lock_lock_func): Renamed from
37635         glthread_recursive_lock_lock.
37636         (glthread_recursive_lock_unlock_func): Renamed from
37637         glthread_recursive_lock_unlock.
37638         (glthread_recursive_lock_destroy_func): Renamed from
37639         glthread_recursive_lock_destroy.
37640
37641 2008-08-14  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/glthread/lock.h: Renamed from lib/lock.h.
37644         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37645         * lib/glthread/tls.h: Renamed from lib/tls.h.
37646         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37647         * lib/fstrcmp.c: Update includes.
37648         * lib/strsignal.c: Update includes.
37649         * modules/lock (Files, Makefile.am): Update.
37650         (Include): Change to "glthread/lock.h".
37651         * modules/tls (Files, Makefile.am): Update.
37652         (Include): Change to "glthread/tls.h".
37653         * tests/test-lock.c: Update includes.
37654         * tests/test-tls.c: Update includes.
37655         * NEWS: Mention the renamed header files.
37656
37657 2008-08-11  Jim Meyering  <meyering@redhat.com>
37658
37659         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37660
37661 2008-08-11  Eric Blake  <ebb9@byu.net>
37662
37663         test-c-stack: avoid C99-ism
37664         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37665         before statement.
37666         Reported by Alain Guibert.
37667
37668 2008-08-10  Jim Meyering  <meyering@redhat.com>
37669
37670         ensure that return value of uinttostr et al are not ignored
37671         * lib/inttostr.h (__GNUC_PREREQ): Define.
37672         (__attribute_warn_unused_result__): Define.
37673         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37674
37675 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37676
37677         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37678         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37679
37680 2008-08-07  Jim Meyering  <meyering@redhat.com>
37681
37682         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37683
37684         * modules/mkstemp (License): Relicense under LGPLv2+.
37685         * modules/tempname (License): Likewise.
37686
37687 2008-08-06  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/poll.c (poll): Further micro-optimization.
37690
37691 2008-08-06  Jim Meyering  <meyering@redhat.com>
37692
37693         inet_pton.c: use locale-independent tolower
37694         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37695         (inet_pton6): Use c_tolower rather than tolower.
37696         * modules/inet_pton (Depends-on): Add c-ctype.
37697
37698 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37699
37700         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37701         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37702
37703 2008-08-06  Jim Meyering  <meyering@redhat.com>
37704
37705         * modules/inet_pton (License): Relicense under LGPLv2+.
37706
37707 2008-08-03  Bruno Haible  <bruno@clisp.org>
37708
37709         Additional non-aborting API for lock and tls.
37710         * lib/lock.h: Include <errno.h>.
37711         (glthread_lock_init): New macro/function.
37712         (gl_lock_init): Define as wrapper around glthread_lock_init.
37713         (glthread_lock_lock): New macro/function.
37714         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37715         (glthread_lock_unlock): New macro/function.
37716         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37717         (glthread_lock_destroy): New macro/function.
37718         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37719         (glthread_rwlock_init): New macro/function.
37720         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37721         (glthread_rwlock_rdlock): New macro/function.
37722         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37723         (glthread_rwlock_wrlock): New macro/function.
37724         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37725         (glthread_rwlock_unlock): New macro/function.
37726         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37727         (glthread_rwlock_destroy): New macro/function.
37728         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37729         (glthread_recursive_lock_init): New macro/function.
37730         (gl_recursive_lock_init): Define as wrapper around
37731         glthread_recursive_lock_init.
37732         (glthread_recursive_lock_lock): New macro/function.
37733         (gl_recursive_lock_lock): Define as wrapper around
37734         glthread_recursive_lock_lock.
37735         (glthread_recursive_lock_unlock): New macro/function.
37736         (gl_recursive_lock_unlock): Define as wrapper around
37737         glthread_recursive_lock_unlock.
37738         (glthread_recursive_lock_destroy): New macro/function.
37739         (gl_recursive_lock_destroy): Define as wrapper around
37740         glthread_recursive_lock_destroy.
37741         (glthread_once): New macro/function.
37742         (gl_once): Define as wrapper around glthread_once.
37743         Update function declarations.
37744         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37745         glthread_rwlock_init. Return error code.
37746         (glthread_rwlock_rdlock_multithreaded): Renamed from
37747         glthread_rwlock_rdlock. Return error code.
37748         (glthread_rwlock_wrlock_multithreaded): Renamed from
37749         glthread_rwlock_wrlock. Return error code.
37750         (glthread_rwlock_unlock_multithreaded): Renamed from
37751         glthread_rwlock_unlock. Return error code.
37752         (glthread_rwlock_destroy_multithreaded): Renamed from
37753         glthread_rwlock_destroy. Return error code.
37754         (glthread_recursive_lock_init_multithreaded): Renamed from
37755         glthread_recursive_lock_init. Return error code.
37756         (glthread_recursive_lock_lock_multithreaded): Renamed from
37757         glthread_recursive_lock_lock. Return error code.
37758         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37759         glthread_recursive_lock_unlock. Return error code.
37760         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37761         glthread_recursive_lock_destroy. Return error code.
37762         (glthread_once_call): Make static.
37763         (glthread_once_multithreaded): Renamed from glthread_once.
37764         * lib/tls.h: Include <errno.h>.
37765         (glthread_tls_key_init): New macro/function.
37766         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37767         (glthread_tls_set): New macro/function.
37768         (gl_tls_set): Define as wrapper around glthread_tls_set.
37769         (glthread_tls_key_destroy): New macro/function.
37770         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37771         Update function declarations.
37772         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37773         glthread_tls_get.
37774         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37775
37776 2008-08-04  Eric Blake  <ebb9@byu.net>
37777
37778         gnumakefile: use space, not TAB, outside of targets
37779         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37780
37781 2008-08-02  Jim Meyering  <meyering@redhat.com>
37782
37783         getdate.y: avoid locale-dependent date parsing failure
37784         In Turkish locales, getdate would fail to recognize keywords
37785         containing a lowercase "i".  The solution is not to rely on
37786         locale-sensitive case-conversion.
37787         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37788         (lookup_word): Use c_toupper in place of toupper.
37789         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37790         Reported by Vefa Bicakci <bicave@superonline.com> in
37791         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37792         * modules/getdate (Depends-on): Add c-ctype.
37793
37794 2008-08-02  Bruno Haible  <bruno@clisp.org>
37795
37796         * gnulib-tool (func_import): When updating or creating a .gitignore
37797         file, prepend each added line with a slash, and ignore leading slashes
37798         from the existing lines.
37799         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37800
37801 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37802
37803         Portability fix for GNU make 3.79.1.
37804         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37805         versions do not understand.
37806
37807 2008-08-01  Bruno Haible  <bruno@clisp.org>
37808
37809         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37810         * tests/test-isnanf.h (zero): New variable.
37811         (main): Avoid literal -0.0f.
37812         * tests/test-isnand.h (zero): New variable.
37813         (main): Avoid literal -0.0.
37814         * tests/test-isnanl.h (zero): New variable.
37815         (main): Avoid literal -0.0L.
37816         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37817         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37818         -0.0, -0.0L.
37819         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37820         (test_signbitd): Avoid literal -0.0.
37821         (test_signbitl): Avoid literal -0.0L.
37822         * tests/test-ceilf1.c (zero): New variable.
37823         (main): Avoid literal -0.0f.
37824         * tests/test-ceill.c (zero): New variable.
37825         (main): Avoid literal -0.0L.
37826         * tests/test-floorf1.c (zero): New variable.
37827         (main): Avoid literal -0.0f.
37828         * tests/test-floorl.c (zero): New variable.
37829         (main): Avoid literal -0.0L.
37830         * tests/test-roundf1.c (zero): New variable.
37831         (main): Avoid literal -0.0f.
37832         * tests/test-round1.c (zero): New variable.
37833         (main): Avoid literal -0.0.
37834         * tests/test-roundl.c (zero): New variable.
37835         (main): Avoid literal -0.0L.
37836         * tests/test-truncf1.c (zero): New variable.
37837         (main): Avoid literal -0.0f.
37838         * tests/test-trunc1.c (zero): New variable.
37839         (main): Avoid literal -0.0.
37840         * tests/test-truncl.c (zero): New variable.
37841         (main): Avoid literal -0.0L.
37842         * tests/test-frexp.c (zero): New variable.
37843         (main): Avoid literal -0.0.
37844         * tests/test-frexpl.c (zero): New variable.
37845         (main): Avoid literal -0.0L.
37846         * tests/test-ldexpl.c (zero): New variable.
37847         (main): Avoid literal -0.0L.
37848         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37849         (zerod, zerol): New variables.
37850         (test_function): Avoid literals -0.0, -0.0L.
37851         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37852         (zerod, zerol): New variables.
37853         (test_function): Avoid literals -0.0, -0.0L.
37854         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37855         (zerod, zerol): New variables.
37856         (test_function): Avoid literals -0.0, -0.0L.
37857         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37858         (zerod, zerol): New variables.
37859         (test_function): Avoid literals -0.0, -0.0L.
37860         * tests/test-strtod.c (zero): New variable.
37861         (main): Avoid literal -0.0.
37862         Reported by Jonathan C. Patschke <jp@centtech.com>.
37863
37864 2008-07-31  Jim Meyering  <meyering@redhat.com>
37865
37866         sha256.h: correct definition of SHA224_DIGEST_SIZE
37867         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37868         Reported by Paulie Pena IV <paulie4@gmail.com>.
37869         Define as 224 / 8, rather than as a literal.
37870         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37871         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37872         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37873
37874 2008-07-31  Bruno Haible  <bruno@clisp.org>
37875
37876         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37877         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37878         Reported by Jonathan Patschke <jp@centtech.com>.
37879
37880 2008-07-31  Bruno Haible  <bruno@clisp.org>
37881
37882         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37883         Reported by Paolo Bonzini <bonzini@gnu.org>.
37884
37885 2008-07-30  Eric Blake  <ebb9@byu.net>
37886
37887         test-strtod: allow compilation without -lm
37888         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37889         Reported by Dennis Clarke <blastwave@gmail.com>.
37890
37891 2008-07-28  Jim Meyering  <meyering@redhat.com>
37892
37893         bootstrap: work also when there are no .po files in po/
37894         * build-aux/bootstrap (update_po_files): Complete the change
37895         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37896
37897 2008-07-27  Jim Meyering  <meyering@redhat.com>
37898
37899         * users.txt: Add zile.
37900
37901 2008-07-26  Ben Pfaff  <blp@gnu.org>
37902
37903         Add missing dependencies on new m4/exponent[fdl].m4 files.
37904         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37905         * modules/isnand-nolibm: Add m4/exponentd.m4.
37906         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37907         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37908         m4/isnan[fdl].m4, because the macros actually used moved.
37909         Reported by Jim Meyering.
37910
37911 2008-07-14  Ben Pfaff  <blp@gnu.org>
37912
37913         Add isinf module.
37914         * lib/isinf.c: New file.
37915         * lib/math.in.h: Define isinf macro if we have decided to replace
37916         it.
37917         * m4/isinf.m4: New file.
37918         * m4/math_h.m4: Initialize and substitute variables for isinf
37919         module.
37920         * modules/isinf: New file.
37921         * modules/isinf-tests: New file.
37922         * modules/math: Add substitutions for new module.
37923         * tests/test-isinf.c: New file.
37924         * doc/posix-functions/isinf.texi: Mention new module.
37925         * MODULES.html.sh: Mention new module.
37926
37927 2008-07-14  Ben Pfaff  <blp@gnu.org>
37928
37929         Factor out some macros for use by additional modules.
37930         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37931         exponentf.m4.
37932         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37933         exponentd.m4.
37934         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37935         file exponentl.m4.
37936         * m4/exponentf.m4: New file.
37937         * m4/exponentd.m4: New file.
37938         * m4/exponentl.m4: New file.
37939         * modules/isnanf: Use new file m4/exponentf.m4.
37940         * modules/isnand: Use new file m4/exponentd.m4.
37941         * modules/isnanl: Use new file m4/exponentl.m4.
37942
37943 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37944
37945         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37946         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37947         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37948         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37949
37950         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37951         readlink on platforms without PATH_MAX.
37952
37953 2008-07-21  Eric Blake  <ebb9@byu.net>
37954
37955         Warn, not fail, on stale version.
37956         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37957
37958         Don't allow installation with stale devel version number.
37959         * top/GNUmakefile (_is-install-target): New macro.
37960         (_curr-ver): Forbid installation with stale version number.
37961
37962 2008-07-20  Bruno Haible  <bruno@clisp.org>
37963
37964         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37965         TESTS_ENVIRONMENT.
37966         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37967
37968 2008-07-20  Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/c-stack.h (c_stack_action): Add documentation.
37971         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37972
37973 2008-07-20  Bruno Haible  <bruno@clisp.org>
37974
37975         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37976         * modules/readlink (License): Likewise.
37977
37978 2008-07-17  Eric Blake  <ebb9@byu.net>
37979
37980         * modules/c-stack (Link): Fix typo.
37981
37982         Make c-stack use libsigsegv, when available.
37983         * modules/c-stack (Depends-on): Add libsigsegv.
37984         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37985         needed.
37986         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37987         (segv_handler, overflow_handler, c_stack_action)
37988         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37989         implementation when libsigsegv is available, but only when using
37990         the library is necessary.
37991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37992         comment, explaining why XSI check fails on Linux.
37993         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37994         * tests/test-c-stack2.sh: Tweak skip message.
37995         * NEWS: Document new link-time requirements.
37996
37997 2008-07-16  Eric Blake  <ebb9@byu.net>
37998
37999         c-stack: Expose false positives when not using libsigsegv.
38000         * modules/c-stack-tests (Files): Expand test.
38001         * tests/test-c-stack.c (main): Add means to conditionally trigger
38002         non-overflow SIGSEGV.
38003         * tests/test-c-stack2.sh: New file.
38004
38005 2008-07-14  Bruno Haible  <bruno@clisp.org>
38006
38007         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38008         Reported by Eric Blake.
38009
38010 2008-07-14  Sam Steingold  <sds@gnu.org>
38011             Bruno Haible  <bruno@clisp.org>
38012
38013         New module libsigsegv.
38014         * modules/libsigsegv: New file.
38015         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38016         modifications.
38017         * MODULES.html.sh (Signal handling): New section.
38018
38019 2008-07-14  Bruno Haible  <bruno@clisp.org>
38020
38021         * modules/unictype/ctype-* (Description): Add the word "function".
38022         Improves the resulting doc in MODULES.html.
38023
38024 2008-07-12  Ben Pfaff  <blp@gnu.org>
38025
38026         Add longlong module.
38027         * modules/longlong: New file.
38028
38029 2008-07-12  Bruno Haible  <bruno@clisp.org>
38030
38031         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38032         to empty.
38033
38034 2008-07-10  Ben Pfaff  <blp@gnu.org>
38035
38036         Add isnan module.
38037         * doc/posix-functions/isnan.texi: Mention new module.
38038         * lib/math.in.h: Define isnan macro if we have decided to replace
38039         it.
38040         * m4/isnan.m4: New file.
38041         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38042         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38043         also.
38044         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38045         redundancy.
38046         * m4/math_h.m4: Initialize and substitute variables for isnan
38047         module.
38048         * modules/isnan: New file.
38049         * modules/isnan-tests: New file.
38050         * modules/math: Add substitutions for new module.
38051         * tests/test-isnan.c: New file.
38052         * MODULES.html.sh: Mention new module.
38053
38054 2008-07-10  Ben Pfaff  <blp@gnu.org>
38055
38056         Add isnanf module.
38057         * lib/isnanf.m4: New file.
38058         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38059         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38060         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38061         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38062         * modules/isnanf: New file.
38063         * modules/isnanf-tests: New file.
38064         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38065         files.
38066         * tests/test-isnanf-nolibm.c: factored most of its contents into
38067         new file tests/test-isnanf.h.
38068         * tests/test-isnanf.h: New file.
38069         * tests/test-isnanf.c: New file.
38070         * MODULES.html.sh: Mention new module.
38071         * doc/glibc-functions/isnanf.texi: Mention new module.
38072
38073 2008-07-10  Ben Pfaff  <blp@gnu.org>
38074
38075         Add isnand module.
38076         * lib/isnand.h: New file.
38077         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38078         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38079         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38080         functionality also.
38081         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38082         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38083         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38084         * modules/isnand: New file.
38085         * modules/isnand-tests: New file.
38086         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38087         files.
38088         * tests/test-isnand-nolibm.c: factored most of its contents into
38089         new file tests/test-isnand.h.
38090         * tests/test-isnand.h: New file.
38091         * tests/test-isnand.c: New file.
38092         * MODULES.html.sh: Mention new module.
38093
38094 2008-07-10  Ben Pfaff  <blp@gnu.org>
38095
38096         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38097         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38098         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38099         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38100         * modules/isnanf-nolibm: Update references to renamed files.
38101         * modules/isnand-nolibm: Likewise.
38102         * modules/isnanf-nolibm-tests: Likewise.
38103         * modules/isnand-nolibm-tests: Likewise.
38104         * lib/frexp.c: Likewise.
38105         * lib/isfinite.c: Likewise.
38106         * lib/signbitd.c: Likewise.
38107         * lib/signbitf.c: Likewise.
38108         * lib/vasnprintf.c: Likewise.
38109         * tests/test-ceilf1.c: Likewise.
38110         * tests/test-ceilf2.c: Likewise.
38111         * tests/test-floorf1.c: Likewise.
38112         * tests/test-floorf2.c: Likewise.
38113         * tests/test-frexp.c: Likewise.
38114         * tests/test-round1.c: Likewise.
38115         * tests/test-round2.c: Likewise.
38116         * tests/test-roundf1.c: Likewise.
38117         * tests/test-strtod.c: Likewise.
38118         * tests/test-trunc1.c: Likewise.
38119         * tests/test-trunc2.c: Likewise.
38120         * tests/test-truncf1.c: Likewise.
38121         * tests/test-truncf2.c: Likewise.
38122         * NEWS: Mention the renamed header files.
38123
38124 2008-07-11  Jim Meyering  <meyering@redhat.com>
38125
38126         vc-list-files: make the last-resort awk code more portable
38127         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38128         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38129         does not support it.
38130
38131 2008-07-10  Eric Blake  <ebb9@byu.net>
38132
38133         Work with tar's bootstrap.
38134         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38135         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38136         an m4 comment.
38137
38138 2008-07-09  Jim Meyering  <meyering@redhat.com>
38139
38140         posix-shell.m4: fix typo that made this test malfunction
38141         * m4/posix-shell.m4: Remove capitalization in variable name.
38142
38143 2008-07-08  Bruno Haible  <bruno@clisp.org>
38144
38145         * m4/onceonly.m4: Update comments.
38146         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38147
38148 2008-07-04  Jim Meyering  <meyering@redhat.com>
38149
38150         * users.txt: Add vc-dwim.
38151         (bison, coreutils): Use the gitweb URL.
38152
38153 2008-07-03  Jim Meyering  <meyering@redhat.com>
38154
38155         * users.txt: Add libffcall.  From Sam Steingold.
38156
38157 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38158
38159         getdate.y: do not ignore TZ with relative day, month or year offset
38160         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38161         relative-date-handling, since otherwise, the latter would clobber the
38162         sole output (an updated Start value) of the tz-handling block.
38163         * tests/test-getdate.c: Tests for the fix
38164
38165 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38166
38167         Recognize 'foo_LIBRARIES += libgnu.a'.
38168         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38169         makefile snippet has already specified an installation location,
38170         also using '+='.
38171
38172 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38173
38174         getdate.y: factor out common actions
38175         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38176         Use them in place of open-coded actions.
38177
38178 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38179
38180         Add self-test for getdate module.
38181         * modules/getdate-tests: New file.
38182         * tests/test-getdate.c: New file.
38183
38184 2008-06-29  Bruno Haible  <bruno@clisp.org>
38185
38186         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38187         .gitignore.
38188         Reported by Sylvain Beucler <beuc@beuc.net>.
38189
38190 2008-06-29  Bruno Haible  <bruno@clisp.org>
38191
38192         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38193         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38194
38195 2008-06-29  Bruno Haible  <bruno@clisp.org>
38196
38197         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38198         EXTRA_DIST.
38199         Reported by Sylvain Beucler <beuc@beuc.net>.
38200
38201 2008-06-26  Jim Meyering  <meyering@redhat.com>
38202
38203         make several modules depend on the "open" module
38204         This provides slightly increased consistency when opening-for-write
38205         the name of a non-directory spelled with a trailing slash.
38206         * modules/chdir-safer: Likewise.
38207         * modules/chown: Likewise.
38208         * modules/clean-temp: Likewise.
38209         * modules/copy-file: Likewise.
38210         * modules/fchdir: Likewise.
38211         * modules/fcntl-safer: Likewise.
38212         * modules/pipe: Likewise.
38213         * modules/utime: Likewise.
38214         Prompted by Eric Blake and Bruno Haible.
38215
38216 2008-06-24  Andreas Schwab  <schwab@suse.de>
38217
38218         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38219         literals can be used as initializers for global variables.
38220
38221 2008-06-23  Eric Blake  <ebb9@byu.net>
38222
38223         Make gnulib-cache.m4 easier to diff.
38224         * gnulib-tool (func_import): Allow newlines when reading cached
38225         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38226
38227 2008-06-23  Bruno Haible  <bruno@clisp.org>
38228
38229         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38230         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38231         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38232         m4/signalblocking.m4.
38233         (gl_PREREQ_SIGACTION): Don't invoke it.
38234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38235         gl_PREREQ_SIG_HANDLER_H.
38236         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38237         Don't check for sigaction here.
38238
38239 2008-06-23  Bruno Haible  <bruno@clisp.org>
38240
38241         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38242         (install_handlers): Don't set the SA_RESETHAND flag.
38243
38244 2008-06-23  Bruno Haible  <bruno@clisp.org>
38245
38246         * m4/sigaction.m4: Comment fixes.
38247         * lib/signal.in.h: Likewise.
38248
38249 2008-06-23  Eric Blake  <ebb9@byu.net>
38250
38251         Fix typo.
38252         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38253
38254         Avoid SA_ namespace.
38255         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38256         Reported by Ralf Wildenhues.
38257
38258         Avoid test failure due to SA_RESTORER.
38259         * tests/test-sigaction.c (SA_MASK): New macro.
38260         (main): Avoid failing due to extension flags being set.
38261         Reported by Jim Meyering.
38262
38263         Revert use of sig-handler.h in sigprocmask.c.
38264         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38265         it requires the existence of struct sigaction.
38266         * lib/sigprocmask.c (handler_t): Restore typedef.
38267         (rpl_signal, old_handlers): Use local type.
38268
38269 2008-06-22  Bruno Haible  <bruno@clisp.org>
38270
38271         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38272         conditionally.
38273         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38274
38275 2008-06-22  Bruno Haible  <bruno@clisp.org>
38276
38277         * doc/posix-functions/siginterrupt.texi: Move note.
38278
38279         * lib/signal.in.h (SA_RESTART): New macro.
38280         * lib/sigaction.c: Update comment.
38281
38282         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38283
38284         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38285         (gl_PREREQ_SIGPROCMASK): Invoke it.
38286         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38287
38288         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38289
38290         * lib/sigprocmask.c: Update a comment.
38291
38292 2008-06-21  Eric Blake  <ebb9@byu.net>
38293
38294         Use sigaction module rather than signal().
38295         * modules/c-stack (Depends-on): Add sigaction.
38296         * modules/fatal-signal (Depends-on): Likewise.
38297         * modules/nanosleep (Depends-on): Likewise.
38298         * modules/sigprocmask (Files): Add sig-handler.h.
38299         * modules/sigaction (Files): Likewise.
38300         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38301         Eggert.
38302         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38303         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38304         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38305         (init_fatal_signals): Likewise.
38306         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38307         (siginterrupt): Delete fallback.
38308         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38309         instead.
38310         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38311         siginterrupt.
38312
38313         New module sigaction, for mingw.
38314         * modules/sigaction: New module...
38315         * modules/sigaction-tests: ...and its test.
38316         * m4/sigaction.m4: New file.
38317         * lib/sigaction.c: Likewise.
38318         * tests/test-sigaction.c: Likewise.
38319         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38320         * modules/signal (Makefile.am): Likewise.
38321         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38322         needed.
38323         * doc/posix-headers/signal.texi (signal.h): Mention provided
38324         types.
38325         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38326         that sigaction is preferable.
38327         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38328         module.
38329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38330         sigaction.
38331
38332         Improve robustness of sigprocmask by overriding signal.
38333         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38334         is in use.
38335         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38336         (SIGKILL, SIGSTOP): Provide fallbacks.
38337         (rpl_signal): Implement.
38338         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38339         signal can be called inside handlers.
38340
38341         Fix nanosleep module on mingw.
38342         * modules/nanosleep (Depends-on): Add sys_select.
38343         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38344
38345         Fix licensing of sigprocmask.
38346         * modules/raise (License): Relicense as LGPL.
38347
38348 2008-06-21  Bruno Haible  <bruno@clisp.org>
38349
38350         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38351         result if it contains question marks.
38352         Reported by Michael Geng <linux@michaelgeng.de>.
38353
38354 2008-06-19  Bruno Haible  <bruno@clisp.org>
38355
38356         Fix CVS-ism.
38357         * doc/gnulib.texi: Include updated-stamp.texi.
38358         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38359         (updated-stamp.texi): New rule.
38360         (gnulib.info): Depend on it.
38361         * doc/.gitignore: Add updated-stamp.texi.
38362         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38363
38364 2008-06-19  Bruno Haible  <bruno@clisp.org>
38365
38366         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38367         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38368
38369 2008-06-19  Eric Blake  <ebb9@byu.net>
38370
38371         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38372         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38373         Reported by Stepan Kasal.
38374
38375 2008-06-18  Bruno Haible  <bruno@clisp.org>
38376
38377         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38378         Reported by Eric Blake.
38379
38380 2008-06-18  Eric Blake  <ebb9@byu.net>
38381
38382         Work around cygwin 1.5.25 strsignal bug.
38383         * tests/test-strsignal.c: Allow for const char *.
38384         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38385
38386 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38387
38388         * users.txt: Update URL to article and add author/date
38389         information.
38390
38391 2008-06-17  Bruno Haible  <bruno@clisp.org>
38392
38393         New macro gl_DISABLE_THREADS.
38394         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38395         if the user did not pass --enable-threads or --disable-threads option.
38396         (gl_DISABLE_THREADS): New macro.
38397         Reported by Eric Blake <ebb9@byu.net>.
38398
38399 2008-06-17  Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38402         when the macro ignores it.
38403         Based on a patch by Eric Blake <ebb9@byu.net>.
38404
38405 2008-06-17  Bruno Haible  <bruno@clisp.org>
38406
38407         * modules/tls (License): Change to LGPLv2+.
38408         Reported by Eric Blake.
38409
38410 2008-06-17  Eric Blake  <ebb9@byu.net>
38411
38412         Simplify c-stack prerequisites.
38413         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38415         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38416         check.
38417         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38418         <sys/resource.h>.
38419
38420         Move c-stack test into testsuite.
38421         * modules/c-stack-tests: New file.
38422         * lib/c-stack.c [DEBUG]: Move test program...
38423         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38424         fail test if sigaltstack is lacking.
38425         * tests/test-c-stack.sh: New driver file.
38426
38427 2008-06-16  Eric Blake  <ebb9@byu.net>
38428
38429         Use raise module consistently.
38430         * modules/fatal-signal (Depends-on): Add raise.
38431         * modules/sigprocmask (Depends-on): Likewise.
38432         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38433         * lib/sigprocmask.c (sigprocmask): Likewise.
38434         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38435         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38436
38437         Fix compliance bug in sigpending.
38438         * lib/sigprocmask.c (sigpending): Return pending array via
38439         parameter, not return value.
38440
38441 2008-06-14  Eric Blake  <ebb9@byu.net>
38442
38443         Improve obstack-printf test code.
38444         * tests/test-obstack-printf.c (test_function): Fix comment, and
38445         simplify usage of obstack_* in macros.  Add a test for coverage.
38446         Reported by Bruno Haible.
38447
38448 2008-06-14  Bruno Haible  <bruno@clisp.org>
38449
38450         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38451         array size as a constant, not as a const variable.
38452         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38453         AC_USE_SYSTEM_EXTENSIONS.
38454         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38455         Test whether the obstack_printf function actually exists.
38456         * modules/obstack-printf (Depends-on): Add extensions.
38457         (Include): Remove obstack.h.
38458         * modules/obstack-printf-posix (Depends-on): Add extensions.
38459         (Include): Remove obstack.h.
38460
38461 2008-06-13  Eric Blake  <ebb9@byu.net>
38462
38463         Add obstack-printf and obstack-printf-posix modules.
38464         * modules/obstack-printf: New file.
38465         * modules/obstack-printf-posix: Likewise.
38466         * MODULES.html.sh (Misc): Mention them.
38467         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38468         Likewise.
38469         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38470         Likewise.
38471         * modules/stdio (Makefile.am): Accomodate new modules.
38472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38473         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38474         Declare.
38475         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38476         functions.
38477         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38478         (gl_REPLACE_OBSTACK_PRINTF): New macros
38479         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38480         * tests/test-obstack-printf.c: New file.
38481         * modules/obstack-printf-tests: Likewise.
38482         * modules/obstack-printf-posix-tests: Likewise.
38483
38484 2008-06-11  Bruno Haible  <bruno@clisp.org>
38485
38486         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38487         * lib/open.c: Include errno.h.
38488         (open): Fail when attempting to write to a file that has a trailing
38489         slash.
38490         * tests/test-open.c (main): Test against trailing slash bug.
38491         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38492
38493 2008-06-10  Bruno Haible  <bruno@clisp.org>
38494
38495         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38496         for $? to work inside the trap command, with various /bin/sh-s.
38497         * tests/test-vc-list-files-cvs.sh: Likewise.
38498
38499 2008-06-10  Bruno Haible  <bruno@clisp.org>
38500
38501         * lib/acl-internal.h: Don't include gettext.h here.
38502         * lib/set-mode-acl.c: Include gettext.h here.
38503         * lib/copy-acl.c: Likewise.
38504
38505 2008-06-10  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38508         * lib/wait-process.c (wait_subprocess): Likewise.
38509         * lib/execute.h (execute): Add termsigp argument.
38510         * lib/execute.c (execute): Likewise.
38511         * lib/csharpcomp.c (compile_csharp_using_pnet,
38512         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38513         * lib/csharpexec.c (execute_csharp_using_pnet,
38514         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38515         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38516         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38517         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38518         is_jikes_present): Update.
38519         * lib/javaexec.c (execute_java_class): Update.
38520         * lib/javaversion.c (execute_and_read_line): Update.
38521         * NEWS: Document the changes.
38522         Reported by Eric Blake.
38523
38524 2008-06-10  Eric Blake  <ebb9@byu.net>
38525
38526         Add missing include.
38527         * tests/test-strstr.c (includes): Add <signal.h>.
38528         * tests/test-strcasestr.c (includes): Likewise.
38529         * tests/test-memmem.c (includes): Likewise.
38530
38531 2008-06-10  Bruno Haible  <bruno@clisp.org>
38532
38533         * lib/wait-process.c (wait_subprocess): Add an assertion.
38534
38535 2008-06-10  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38538
38539 2008-06-10  Bruno Haible  <bruno@clisp.org>
38540
38541         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38542         using alarm().
38543         * tests/test-strcasestr.c (main): Likewise.
38544         * tests/test-strstr.c (main): Likewise.
38545
38546 2008-06-09  Bruno Haible  <bruno@clisp.org>
38547
38548         Work around the Solaris 10 ACE ACLs ABI change.
38549         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38550         declare if ACL_NO_TRIVIAL is present.
38551         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38552         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38553         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38554         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38555         define if ACL_NO_TRIVIAL is present.
38556         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38557         and use the current ABI.
38558         (file_has_acl): Use same #if condition as elsewhere.
38559         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38560         in use, and use the current ABI.
38561         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38562         Reported by Jim Meyering.
38563
38564 2008-06-09  Eric Blake  <ebb9@byu.net>
38565
38566         Work around environments that (stupidly) ignore SIGALRM.
38567         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38568         before using alarm().
38569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38570         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38571         Reported by Ian Beckwith <ianb@erislabs.net>.
38572
38573         Produce autobuild blurb earlier in log.
38574         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38575
38576 2008-06-09  Jim Meyering  <meyering@redhat.com>
38577         and OndÅ™ej Vašík  <ovasik@redhat.com>
38578
38579         utimens.c: correct kernel bug work-around
38580         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38581         failure, not success, and the kernel bug we're trying to work
38582         around affects not just the utimensat call, but also the fallback
38583         futimens call.
38584         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38585         not success.
38586         [HAVE_FUTIMENS]: Use the same work-around, here.
38587
38588 2008-06-09  Jim Meyering  <meyering@redhat.com>
38589
38590         add more guards around definition of ACE_-related code
38591         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38592         ALLOW and ACE_OWNER are also defined.
38593
38594 2008-06-08  Bruno Haible  <bruno@clisp.org>
38595
38596         * lib/acl-internal.h: Add me as co-author.
38597         * lib/file-has-acl.c: Likewise.
38598         * lib/set-mode-acl.c: Likewise.
38599         * lib/copy-acl.c: Likewise.
38600
38601 2008-06-08  Bruno Haible  <bruno@clisp.org>
38602
38603         Add support for AIX ACLs.
38604         * lib/acl-internal.h (acl_nontrivial): New declaration.
38605         * lib/file-has-acl.c (acl_nontrivial): New function.
38606         (file_has_acl): Add implementation using AIX 4 ACL API.
38607         * lib/set-mode-acl.c (qset_acl): Likewise.
38608         * lib/copy-acl.c (qcopy_acl): Likewise.
38609
38610 2008-06-08  Bruno Haible  <bruno@clisp.org>
38611
38612         Add support for HP-UX ACLs.
38613         * lib/acl-internal.h (acl_nontrivial): New declaration.
38614         * lib/file-has-acl.c (acl_nontrivial): New function.
38615         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38616         * lib/set-mode-acl.c (qset_acl): Likewise.
38617         * lib/copy-acl.c (qcopy_acl): Likewise.
38618
38619 2008-06-08  Bruno Haible  <bruno@clisp.org>
38620
38621         Add support for Cygwin ACLs.
38622         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38623         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38624         the chmod_or_fchmod call.
38625         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38626
38627 2008-06-08  Bruno Haible  <bruno@clisp.org>
38628
38629         Fix bug with setuid modes in Solaris 10+ code.
38630         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38631         succeeded, when the mode contains some special bits.
38632
38633 2008-06-08  Bruno Haible  <bruno@clisp.org>
38634
38635         Add support for Solaris 7..10 ACLs.
38636         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38637         declarations.
38638         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38639         functions.
38640         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38641         * lib/set-mode-acl.c (qset_acl): Likewise.
38642         * lib/copy-acl.c (qcopy_acl): Likewise.
38643
38644 2008-06-08  Bruno Haible  <bruno@clisp.org>
38645
38646         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38647         declaration.
38648         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38649         (acl_access_nontrivial): Remove MacOS X case.
38650         (file_has_acl): Use acl_extended_nontrivial.
38651         * lib/copy-acl.c (qcopy_acl): Likewise.
38652
38653 2008-06-08  Bruno Haible  <bruno@clisp.org>
38654
38655         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38656
38657 2008-06-08  Jim Meyering  <meyering@redhat.com>
38658
38659         * modules/acl (Maintainer): Add Bruno Haible.
38660
38661 2008-06-07  Bruno Haible  <bruno@clisp.org>
38662
38663         Improve support for Tru64 ACLs.
38664         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38665         ACL on OSF/1.
38666
38667 2008-06-07  Bruno Haible  <bruno@clisp.org>
38668
38669         Add support for MacOS X ACLs.
38670         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38671         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38672         * lib/set-mode-acl.c (qset_acl): Likewise.
38673         * lib/copy-acl.c (qcopy_acl): Likewise.
38674
38675 2008-06-07  Bruno Haible  <bruno@clisp.org>
38676
38677         Fix memory leak introduced on 2008-05-22.
38678         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38679         use.
38680
38681 2008-06-07  Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38684         to construct an empty ACL.
38685
38686 2008-06-07  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38689         precisely.
38690         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38691
38692 2008-06-07  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38695         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38696
38697 2008-06-07  Bruno Haible  <bruno@clisp.org>
38698
38699         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38700         regardless of POSIX.
38701         * doc/posix-functions/_longjmp.texi: Likewise.
38702         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38703         SystemV platform in this case.
38704
38705 2008-06-06  Eric Blake  <ebb9@byu.net>
38706
38707         Document abort() bugs.
38708         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38709
38710         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38711         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38712         sigsetjmp.
38713         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38714         siglongjmp, but only as a macro.
38715         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38716         is obsolete.
38717         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38718
38719         Tweak documentation to cover cygwin argz bugs.
38720         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38721         argz bug fix; no code change needed since no cygwin releases
38722         occurred between the last fix and the bug being tested.
38723         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38724         module and recently fixed cygwin bugs.
38725         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38726         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38727         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38728         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38729         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38730         Likewise.
38731         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38732         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38733         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38734         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38735         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38736         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38737         Likewise.
38738
38739         Avoid gcc warning on cygwin.
38740         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38741         !ACL_NO_TRIVIAL]: Avoid unused variable.
38742
38743 2008-06-05  Eric Blake  <ebb9@byu.net>
38744
38745         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38746         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38747         git-version-gen fails to come up with a version.
38748         Reported by Simon Josefsson.
38749
38750 2008-06-05  Jim Meyering  <meyering@redhat.com>
38751             Paul Eggert  <eggert@cs.ucla.edu>
38752
38753         utimens.c: work around a probable Linux kernel bug
38754         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38755         appears to be a kernel bug that causes utimensat to return 280
38756         instead of 0, indicating success.
38757
38758 2008-06-04  Bruno Haible  <bruno@clisp.org>
38759
38760         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38761         2008-06-01 commit.
38762
38763 2008-06-04  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38766         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38767         (file_has_acl): Use it. Save errno afterwards.
38768         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38769
38770 2008-06-03  Bruno Haible  <bruno@clisp.org>
38771
38772         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38773         draft code. Simplify #ifs.
38774         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38775         Put Solaris code after POSIX-draft code. Fix comments regarding
38776         Solaris 10, HP-UX. Mention Cygwin.
38777         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38778
38779 2008-06-03  Eric Blake  <ebb9@byu.net>
38780
38781         Provide fallback for older kernels.
38782         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38783         Provide runtime fallback if kernel lacks support.
38784         Reported by Mike Frysinger.
38785
38786 2008-06-02  Bruno Haible  <bruno@clisp.org>
38787
38788         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38789         it exists.
38790
38791 2008-06-02  Bruno Haible  <bruno@clisp.org>
38792
38793         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38794         * lib/copy-acl.c (qcopy_acl): Update comment.
38795
38796 2008-06-02  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38799         like ACL APIs.
38800
38801 2008-06-02  Bruno Haible  <bruno@clisp.org>
38802
38803         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38804         * tests/test-set-mode-acl.sh: Likewise.
38805         * tests/test-copy-acl.sh: Likewise.
38806         * tests/test-copy-file.sh: Likewise.
38807
38808 2008-06-02  Bruno Haible  <bruno@clisp.org>
38809
38810         * tests/test-file-has-acl.sh: Remove unused code.
38811
38812 2008-06-01  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38815         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38816         messages.
38817         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38818
38819 2008-06-01  Bruno Haible  <bruno@clisp.org>
38820
38821         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38822         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38823         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38824         APIs.
38825         * modules/acl-tests (configure.ac): Remove tests now contained in
38826         m4/acl.m4.
38827
38828 2008-06-02  Jim Meyering  <meyering@redhat.com>
38829
38830         announce-gen: use a better key-server host name
38831         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38832         it may be more consistently reliable.  Suggested by Werner Koch
38833         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38834
38835 2008-06-01  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38838         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38839
38840 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38841
38842         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38843
38844 2008-06-01  Bruno Haible  <bruno@clisp.org>
38845
38846         New ACL tests.
38847         * tests/test-file-has-acl.sh: New file.
38848         * tests/test-file-has-acl.c: New file.
38849         * tests/test-set-mode-acl.sh: New file.
38850         * tests/test-set-mode-acl.c: New file.
38851         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38852         * tests/test-copy-acl.c: New file.
38853         * modules/acl-tests: New file, based on modules/copy-file-tests.
38854         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38855         (Depends-on): Add acl-tests.
38856         (configure.ac): Remove checks.
38857         (Makefile.am): Don't create test-sameacls program here any more.
38858
38859 2008-06-01  Bruno Haible  <bruno@clisp.org>
38860
38861         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38862         * tests/test-sameacls.c: Include progname.h.
38863         (main): Invoke set_program_name. Portability fixes for MacOS X,
38864         Solaris, HP-UX.
38865
38866 2008-06-01  Bruno Haible  <bruno@clisp.org>
38867
38868         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38869         function.
38870         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38871
38872 2008-06-01  Bruno Haible  <bruno@clisp.org>
38873
38874         * modules/rpmatch (Depends-on): Add strdup.
38875
38876 2008-06-01  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/pipe.c: Include unistd-safer.h.
38879         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38880         * modules/pipe (Depends-on): Add unistd-safer.
38881
38882 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38883
38884         * modules/autobuild (configure.ac): Call AB_INIT.
38885
38886 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38887
38888         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38889         Suggested by Bruno Haible <bruno@clisp.org>.
38890
38891 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38892
38893         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38894         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38895         <bruno@clisp.org>.
38896
38897 2008-05-29  Eric Blake  <ebb9@byu.net>
38898
38899         Prefer new POSIX 200x interfaces over futimesat.
38900         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38901         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38902         when available.
38903         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38904
38905 2008-05-28  Bruno Haible  <bruno@clisp.org>
38906
38907         * modules/stpcpy (License): Change to LGPLv2+.
38908         Requested by David Lutterkort <dlutter@redhat.com>.
38909
38910 2008-05-27  Bruno Haible  <bruno@clisp.org>
38911
38912         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38913         current mingw.
38914         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38915
38916 2008-05-27  Bruno Haible  <bruno@clisp.org>
38917
38918         * modules/iconv_open (Link): New section, from module 'iconv'.
38919         * modules/striconv (Link): Likewise.
38920         * modules/striconveh (Link): Likewise.
38921         * modules/xstriconv (Link): Likewise.
38922         * modules/unicodeio (Link): Likewise.
38923         * modules/propername (Link): Likewise.
38924         Reported by Jim Meyering.
38925
38926 2008-05-26  Jim Meyering  <meyering@redhat.com>
38927
38928         sha256: do not artificially restrict buffer length to be < 2^32
38929         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38930         uint32_t to size_t.
38931         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38932         to match.
38933
38934         avoid unaligned access errors, e.g., on sparc
38935         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38936         direct access through a possibly-unaligned uint64* pointer.
38937         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38938         direct access through a possibly-unaligned uint32* pointer.
38939         Prompted by this patch from Tom "spot" Callaway:
38940         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38941
38942         sha512.c: fix typo in comment
38943         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38944
38945 2008-05-25  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38948         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38949         (Makefile.am): Update lib_SOURCES.
38950
38951 2008-05-25  Bruno Haible  <bruno@clisp.org>
38952
38953         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38954
38955 2008-05-25  Jim Meyering  <meyering@redhat.com>
38956
38957         useless-if-before-free: freed expr may have white-space differences
38958         * build-aux/useless-if-before-free: Recognize cases in which the
38959         freed expression differs from the tested one in embedded white
38960         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38961         $1 was used, so we can't make any regexp shy.  Improved tests now
38962         detect this.
38963
38964         useless-if-before-free: accept white space in the expression.
38965         * build-aux/useless-if-before-free: For now, any white space
38966         in the expression must be identical in the free argument.
38967
38968         useless-if-before-free: efficiency tweak
38969         * build-aux/useless-if-before-free: Make the expression-matching
38970         regexp "shy".
38971         Make the *outer* regexp shy, not the expr-matching one.
38972
38973         update code-in-comment to accept cast of free arg
38974         * build-aux/useless-if-before-free: Update regexp.
38975
38976 2008-05-25  Bruno Haible  <bruno@clisp.org>
38977
38978         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38979         * modules/copy-file-tests (Files, Makefile.am): Update.
38980         * tests/test-copy-file.c (func_test_copy): Update.
38981
38982 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38983
38984         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38985
38986 2008-05-23  Bruno Haible  <bruno@clisp.org>
38987
38988         Improve support for ACLs on OSF/1.
38989         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38990         Remove fallback for unknown flavors of ACLs.
38991
38992 2008-05-22  Bruno Haible  <bruno@clisp.org>
38993
38994         Add support for ACLs on OSF/1.
38995         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38996         replacements.
38997         (acl_free_text): New macro fallback.
38998         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38999         acl_free.
39000         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39001         acl_free_text function. Require AC_C_INLINE.
39002
39003 2008-05-22  Bruno Haible  <bruno@clisp.org>
39004
39005         Make copy_acl work on MacOS X 10.5.
39006         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39007         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39008         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39009         If MODE_INSIDE_ACL, don't assume that every system has the same text
39010         representation for ACLs as FreeBSD.
39011         * lib/copy-acl.c (copy_acl): Add support for platforms with
39012         !MODE_INSIDE_ACL.
39013         * lib/file-has-acl.c (file_has_acl): Likewise.
39014         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39015         FreeBSD, MacOS X, or IRIX, respectively.
39016
39017 2008-05-22  Bruno Haible  <bruno@clisp.org>
39018
39019         * lib/acl.h: Don't include <sys/acl.h>.
39020         (GETACLCNT): Move fallback to lib/acl-internal.h.
39021         * lib/acl-internal.h: Include <sys/acl.h> here.
39022         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39023
39024 2008-05-22  Bruno Haible  <bruno@clisp.org>
39025
39026         Split off copy_acl function to separate file.
39027         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39028         * lib/acl.c (copy_acl): Moved function to separate file.
39029         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39030         * modules/acl (Files): Add lib/copy-acl.c.
39031         (Makefiles.am): Augment lib_SOURCES.
39032
39033 2008-05-22  Bruno Haible  <bruno@clisp.org>
39034
39035         * modules/copy-file-tests: New file.
39036         * tests/test-copy-file.sh: New file.
39037         * tests/test-copy-file.c: New file.
39038         * tests/test-copy-file-sameacls.c: New file.
39039
39040 2008-05-22  Eric Blake  <ebb9@byu.net>
39041
39042         Avoid gcc warning.
39043         * tests/test-memcmp.c (main): Pass NULL indirectly.
39044
39045 2008-05-21  Bruno Haible  <bruno@clisp.org>
39046
39047         Add reference doc about ACLs.
39048         * doc/acl-resources.txt: New file.
39049         * doc/acl-cygwin.txt: New file.
39050
39051 2008-05-21  Bruno Haible  <bruno@clisp.org>
39052
39053         Avoid one more warning from gcc.
39054         * lib/vasnprintf.c (IF_LINT): Update comments.
39055         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39056
39057 2008-05-21  Jim Meyering  <meyering@redhat.com>
39058
39059         avoid a warning from gcc
39060         * lib/vasnprintf.c (IF_LINT): Define.
39061         (scale10_round_decimal_long_double):
39062         Use it to avoid a "may be used uninitialized" warning.
39063         (scale10_round_decimal_double): Likewise.
39064
39065 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39066
39067         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39068         declared.
39069
39070 2008-05-20  Bruno Haible  <bruno@clisp.org>
39071
39072         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39073         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39074
39075 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39076
39077         * modules/memcmp-tests: New file.
39078         * tests/test-memcmp.c: New file.
39079
39080 2008-05-19  Bruno Haible  <bruno@clisp.org>
39081
39082         * modules/propername (Notice, configure.ac): Put quoted "..." into
39083         --keyword option.
39084         * lib/propername.h: Update comments accordingly.
39085         Reported by Eric Blake.
39086
39087 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39088
39089         * modules/getpass-gnu (Depends-on): Add fseeko.
39090
39091 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39092
39093         * modules/base64-tests: New file.
39094
39095 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39096
39097         * lib/base64.c (base64_decode_ctx): If a decode context structure
39098         was passed in use it to ignore newlines.  If a context structure
39099         was _not_ passed in, continue to treat newlines as garbage (this
39100         is the historical behavior).  Formerly base64_decode.
39101         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39102         takes a decode context structure.
39103         * lib/base64.h (base64_decode): Macro for four-argument calls.
39104         (base64_decode_alloc): Likewise.
39105         * lib/base64.c (base64_decode_ctx): If a decode context structure
39106         was passed in use it to ignore newlines.  If a context structure
39107         was _not_ passed in, continue to treat newlines as garbage (this
39108         is the historical behavior).  Formerly base64_decode.
39109         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39110         takes a decode context structure.
39111         * lib/base64.h (base64_decode): Macro for four-argument calls.
39112         (base64_decode_alloc): Likewise.
39113
39114 2008-05-19  Jim Meyering  <meyering@redhat.com>
39115
39116         avoid a warning from gcc
39117         * lib/trim.c (IF_LINT): Define.
39118         (trim2): Use it to avoid a "may be used uninitialized" warning.
39119
39120         Fix doc typo.
39121         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39122
39123 2008-05-19  Bruno Haible  <bruno@clisp.org>
39124
39125         * doc/glibc-functions/getpass.texi: Document limits of other
39126         implementations.
39127
39128 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39129             Bruno Haible <bruno@clisp.org>
39130
39131         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39132
39133 2008-05-18  Bruno Haible  <bruno@clisp.org>
39134
39135         * modules/propername: New file, from GNU gettext.
39136         * lib/propername.h: New file, from GNU gettext.
39137         * lib/propername.c: New file, from GNU gettext.
39138         * MODULES.html.sh (Internationalization functions): Add propername.
39139
39140 2008-05-16  Jim Meyering  <meyering@redhat.com>
39141             Bruno Haible  <bruno@clisp.org>
39142
39143         Avoid some warnings from "gcc -Wshadow".
39144         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39145
39146 2008-05-15  Eric Blake  <ebb9@byu.net>
39147
39148         Extend previous patch to cygwin 1.7.0.
39149         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39150         fast implementation in cygwin >= 1.7.0.
39151         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39152         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39153
39154 2008-05-15  Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39157         implementation in glibc >= 2.9.
39158         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39160
39161 2008-05-15  Bruno Haible  <bruno@clisp.org>
39162
39163         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39164         (Unicode string functions): Add unilbrk/*.
39165         Reported by Karl Berry.
39166
39167 2008-05-15  Eric Blake  <ebb9@byu.net>
39168
39169         Fix violation of <stdbool.h> replacement in regex.
39170         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39171         * lib/regexec.c (re_search_internal): Likewise.
39172         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39173
39174 2008-05-15  Jim Meyering  <meyering@redhat.com>
39175
39176         avoid distracting test output when git or cvs is not found
39177         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39178         * tests/test-vc-list-files-git.sh: Likewise.
39179
39180 2008-05-15  Eric Blake  <ebb9@byu.net>
39181
39182         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39183         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39184         glibc version.
39185         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39186         * doc/posix-functions/strstr.texi (strstr): Likewise.
39187         * lib/str-two-way.h (MAX): Sychronize with glibc.
39188
39189 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39190
39191         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39192         opr.ctx_type.
39193         (calc_first): Initialize constraint field.
39194         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39195         Fix grammar.
39196         (duplicate_node): Merge constraint field for all node types.
39197         (calc_eclosure_iter): Look at constraint field for all node types.
39198         * lib/regex_internal.c (create_cd_newstate): Don't look at
39199         opr.ctx_type.
39200
39201 2008-05-14  Bruno Haible  <bruno@clisp.org>
39202
39203         Help GCC to do better code generation.
39204         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39205         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39206         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39207         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39208         Declare with attribute 'malloc' if supported.
39209
39210 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39211
39212         use "echo STR|wc -c" rather than unportable "expr length STR"
39213         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39214         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39215
39216 2008-05-14  Jim Meyering  <meyering@redhat.com>
39217
39218         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39219         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39220         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39221         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39222         via Collin Lasse.
39223
39224 2008-05-14  Eric Blake  <ebb9@byu.net>
39225
39226         Avoid quadratic growth in gl_LIBSOURCES.
39227         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39228         Suggested by Bruno Haible.
39229
39230         Test xmemdup0.
39231         * modules/xmemdup0-tests: New file.
39232         * tests/test-xmemdup0.c: Likewise.
39233
39234 2008-05-13  Eric Blake  <ebb9@byu.net>
39235
39236         Split xmemdup0 into its own module.
39237         * modules/xmemdup0: New file.
39238         * lib/xmemdup0.h: Likewise.
39239         * lib/xmemdup0.c: Likewise.
39240         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39241         * lib/xalloc.h (xmemdup0): Remove.
39242         * lib/xmalloc.c (xmemdup0): Likewise.
39243
39244 2008-05-13  Eric Blake  <ebb9@byu.net>
39245             Bruno Haible  <bruno@clisp.org>
39246
39247         Reduce number of forks required during autoconf.
39248         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39249         and gl_LIBSOURCES_DIR.
39250         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39251         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39252         m4_syscmd per file.
39253         <m4_foreach_w>: Move...
39254         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39255
39256 2008-05-13  Eric Blake  <ebb9@byu.net>
39257
39258         * gnulib-tool: Fix various comment typos.
39259
39260 2008-05-12  Bruno Haible  <bruno@clisp.org>
39261
39262         Tailor the linebreaking algorithm.
39263         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39264
39265 2008-05-12  Bruno Haible  <bruno@clisp.org>
39266
39267         Update to Unicode 5.0.0.
39268         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39269         LBP_JV, LBP_JT. Redistribute values.
39270         (unilbrk_table): Change size.
39271         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39272         Unicode TR#14 rev. 22.
39273         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39274         LBP_JV, LBP_JT. Redistribute values.
39275         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39276         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39277         Update.
39278         * lib/unilbrk/lbrkprop1.h: Regenerated.
39279         * lib/unilbrk/lbrkprop2.h: Regenerated.
39280         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39281         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39282         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39283         Likewise.
39284         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39285         Likewise.
39286         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39287         result.
39288         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39289         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39290         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39291         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39292         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39293         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39294
39295 2008-05-11  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39298
39299 2008-05-11  Bruno Haible  <bruno@clisp.org>
39300
39301         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39302         * modules/unilbrk/gen-lbrk: New file.
39303
39304 2008-05-11  Bruno Haible  <bruno@clisp.org>
39305
39306         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39307         * m4/sha512.m4 (gl_SHA512): Likewise.
39308
39309 2008-05-11  Jim Meyering  <meyering@redhat.com>
39310
39311         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39312         * modules/crypto/sha256: New file.
39313         * modules/crypto/sha512: Likewise.
39314         * lib/sha256.c: Likewise.
39315         * lib/sha256.h: Likewise.
39316         * lib/sha512.c: Likewise.
39317         * lib/sha512.h: Likewise.
39318         * lib/u64.h: Likewise.
39319         * m4/sha256.m4: Likewise.
39320         * m4/sha512.m4: Likewise.
39321         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39322
39323 2008-05-10  Bruno Haible  <bruno@clisp.org>
39324
39325         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39326         (Input/Output <stdio.h>): Add xprintf.
39327         (Signal handling <signal.h>): Add strsignal.
39328         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39329         (Core language properties): Add func.
39330         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39331         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39332         strings.
39333         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39334         (Input/output): New section.
39335         (File system functions): Add openat-die, stat-macros.
39336         (Networking functions): Add sockets.
39337         (Unicode string functions): Add unictype/*.
39338         (Support for building libraries and executables): Add gperf.
39339         (Support for building documentation): Add agpl-3.0.
39340         (Misc): Add nocrash.
39341
39342 2008-05-10  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/unictype/gen-ctype: New file.
39345
39346 2008-05-10  Jim Meyering  <meyering@redhat.com>
39347
39348         Make chdir-safer.c more efficient on a system with no symlinks.
39349         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39350         also if ELOOP is zero.  Suggested by Bruno Haible.
39351
39352         Make chdir-safer.c slightly safer.
39353         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39354         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39355
39356         Avoid compile failure on systems without ELOOP (like mingw).
39357         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39358         Reported by Bruno Haible.
39359
39360 2008-05-10  Bruno Haible  <bruno@clisp.org>
39361
39362         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39363         (is_utf8_encoding): Use a case-insensitive comparison.
39364         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39365         streq.
39366
39367 2008-05-10  Bruno Haible  <bruno@clisp.org>
39368
39369         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39370         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39371         * lib/unilbrk/ulc-common.h (iconv_string_length,
39372         iconv_string_keeping_offsets): Remove declarations.
39373         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39374         Don't include <iconv.h>, streq.h, xsize.h.
39375         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39376         conversion.
39377         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39378         <iconv.h>, streq.h, xsize.h.
39379         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39380         conversion.
39381         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39382         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39383         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39384         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39385
39386 2008-05-10  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39389         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39390
39391         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39392         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39393
39394         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39395         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39396
39397         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39398         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39399
39400         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39401         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39402
39403         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39404         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39405
39406         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39407         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39408
39409         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39410         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39411
39412 2008-05-10  Bruno Haible  <bruno@clisp.org>
39413
39414         Split up 'linebreak' module.
39415         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39416         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39417         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39418         modifications.
39419         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39420         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39421         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39422         lib/linebreak.c.
39423         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39424         lib/linebreak.c.
39425         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39426         lib/linebreak.c.
39427         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39428         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39429         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39430         lib/linebreak.c.
39431         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39432         lib/linebreak.c.
39433         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39434         lib/linebreak.c.
39435         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39436         lib/linebreak.c.
39437         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39438         lib/linebreak.c.
39439         * modules/unilbrk/base: New file.
39440         * modules/unilbrk/tables: New file.
39441         * modules/unilbrk/u8-possible-linebreaks: New file.
39442         * modules/unilbrk/u16-possible-linebreaks: New file.
39443         * modules/unilbrk/u32-possible-linebreaks: New file.
39444         * modules/unilbrk/ulc-common: New file.
39445         * modules/unilbrk/ulc-possible-linebreaks: New file.
39446         * modules/unilbrk/u8-width-linebreaks: New file.
39447         * modules/unilbrk/u16-width-linebreaks: New file.
39448         * modules/unilbrk/u32-width-linebreaks: New file.
39449         * modules/unilbrk/ulc-width-linebreaks: New file.
39450         * lib/linebreak.h: Remove file.
39451         * lib/linebreak.c: Remove file.
39452         * m4/linebreak.m4: Remove file.
39453         * modules/linebreak: Remove file.
39454         * NEWS: Mention the changes.
39455
39456 2008-05-09  Eric Blake  <ebb9@byu.net>
39457
39458         Add xmemdup0.
39459         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39460         implementation.
39461         * lib/xmalloc.c (xmemdup0): New C implementation.
39462
39463 2008-05-08  Bruno Haible  <bruno@clisp.org>
39464
39465         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39466
39467 2008-05-07  Eric Blake  <ebb9@byu.net>
39468
39469         Support cross-compilation of <wctype.h>.
39470         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39471         AC_CACHE_CHECK.
39472
39473 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39474
39475         * build-aux/vc-list-files: Add support for bzr.
39476
39477 2008-05-03  Jim Meyering  <meyering@redhat.com>
39478
39479         avoid failed assertion with tight malloc
39480         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39481
39482 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39483
39484         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39485         are needed from arpa/inet.h.
39486         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39487         Reported by Bruno Haible.
39488
39489 2008-05-02  Jim Meyering  <meyering@redhat.com>
39490
39491         avoid compilation error on FreeBSD 6
39492         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39493
39494 2008-05-01  Jim Meyering  <meyering@redhat.com>
39495
39496         useless-if-before-free: correct --help's exit status description
39497         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39498         for one or more matches, etc.  Reported by Bruno Haible.
39499
39500         vc-list-files: make the stand-alone gnulib test work
39501         * modules/vc-list-files-tests (configure.ac):
39502         Define and AC_SUBST abs_aux_dir.
39503         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39504         $(abs_top_srcdir) to each script and having each of them
39505         duplicate the work of setting PATH, set PATH here, using
39506         the new variable, abs_aux_dir instead.
39507         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39508         * tests/test-vc-list-files-git.sh: Likewise.
39509         Reported by Bruno Haible.
39510
39511 2008-05-01  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39514         reallocation. Rename 'done' to 'found_delimiter'.
39515
39516 2008-05-01  Jim Meyering  <meyering@redhat.com>
39517
39518         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39519         * build-aux/vc-list-files: Use `...`, not $(...).
39520
39521 2008-04-30  Jim Meyering  <meyering@redhat.com>
39522
39523         add tests for vc-list-files
39524         * modules/vc-list-files-tests: New module.
39525         * tests/test-vc-list-files-cvs.sh: New file.
39526         * tests/test-vc-list-files-git.sh: New file.
39527
39528         avoid a warning from gcc
39529         * lib/getndelim2.c (IF_LINT): Define.
39530         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39531
39532         vc-list-files: work properly with build-aux/cvsu, too
39533         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39534         to all cvs-based clauses.
39535
39536         vc-list-files: work properly in the CVS+awk case, too
39537         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39538
39539         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39540         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39541         take more than one file argument, so .  Add quotes, just in case $dir
39542         ever contains a shell meta-character.  Prompted by Soren Hansen in
39543         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39544
39545 2008-04-29  Eric Blake  <ebb9@byu.net>
39546
39547         Optimize getndelim2 to use block operations when possible.
39548         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39549         freadseek, and memchr2.
39550         * lib/getndelim2.c (getndelim2): Use them for block reads.
39551
39552 2008-04-29  Bruno Haible  <bruno@clisp.org>
39553
39554         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39555         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39556         * modules/inet_ntop (Depends-on): Add extensions.
39557         * modules/inet_pton (Depends-on): Likewise.
39558         Reported by Simon Josefsson.
39559
39560 2008-04-29  Jim Meyering  <meyering@redhat.com>
39561
39562         When the is more than one match in a block, match all of them.
39563         * build-aux/useless-if-before-free: Iterate through each block
39564         until there are no more matches.
39565
39566         Fix broken useless-if-before-free script.
39567         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39568         the expression to match cast of argument to free-like function.
39569
39570 2008-04-29  Eric Blake  <ebb9@byu.net>
39571
39572         Use new header.
39573         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39574
39575 2008-04-29  Jim Meyering  <meyering@redhat.com>
39576
39577         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39578         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39579         by gnulib to exist and to declare e.g., inet_ntop.
39580         Don't include "inet_ntop.h", now removed.
39581
39582         * m4/arpa_inet_h.m4: Remove trailing blanks.
39583
39584 2008-04-29  Eric Blake  <ebb9@byu.net>
39585
39586         Silence valgrind on safe reads beyond potential array bounds.
39587         * lib/rawmemchr.valgrind: New file.
39588         * lib/strchrnul.valgrind: Likewise.
39589         * modules/rawmemchr (Files): Distribute new file.
39590         * modules/strchrnul (Files): Likewise.
39591         Suggested by Bruno Haible.
39592
39593 2008-04-29  Bruno Haible  <bruno@clisp.org>
39594
39595         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39596         (inet_ntop, inet_pton): Change portability warning's wording.
39597         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39598         Invoke gl_CHECK_NEXT_HEADERS.
39599         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39600         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39601         set ARPA_INET_H.
39602         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39603         * modules/arpa_inet (Description): No longer only for systems that
39604         lack it.
39605         (Depends-on): Add include_next.
39606         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39607         HAVE_ARPA_INET_H.
39608
39609 2008-04-29  Jim Meyering  <meyering@redhat.com>
39610
39611         * modules/mkdir (License): Re-license as LGPLv2+.
39612
39613 2008-04-29  Bruno Haible  <bruno@clisp.org>
39614
39615         * modules/rawmemchr (Maintainer): Set to Eric.
39616         * modules/strchrnul (Maintainer): Likewise.
39617
39618 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39619
39620         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39621         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39622
39623         * modules/arpa_inet (arpa/inet.h): Use them.
39624
39625 2008-04-28  Eric Blake  <ebb9@byu.net>
39626
39627         Test getndelim2.
39628         * modules/getndelim2-tests: New file.
39629         * tests/test-getndelim2.c: Likewise.
39630         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39631         stream.
39632         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39633
39634         * MODULES.html.sh: Document new module.
39635
39636 2008-04-20  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/c-stack.c (die): Use raise.
39639         * modules/c-stack (Depends-on): Add raise.
39640
39641 2008-04-28  Bruno Haible  <bruno@clisp.org>
39642
39643         Expect rpmatch to be declared.
39644         * lib/yesno.c (rpmatch): Remove declaration.
39645
39646         Declare rpmatch.
39647         * lib/stdlib.in.h (rpmatch): New declaration.
39648         * lib/rpmatch.c: Include <stdlib.h> first.
39649         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39650         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39652         HAVE_RPMATCH.
39653         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39655         (Include): Set to <stdlib.h>.
39656         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39657         HAVE_RPMATCH.
39658         * NEWS: Document the change.
39659
39660 2008-04-28  Bruno Haible  <bruno@clisp.org>
39661
39662         Change rpmatch to use nl_langinfo when appropriate.
39663         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39664         (N_): New macro.
39665         (localized_pattern): New function/macro.
39666         (try): Remove match, nomatch arguments. Copy the pattern into safe
39667         memory before caching it.
39668         (rpmatch): Use localized_pattern. Add translator comments.
39669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39670         Suggested by Eric Blake.
39671         * modules/rpmatch (Depends-on): Add stdbool.
39672
39673 2008-04-28  Eric Blake  <ebb9@byu.net>
39674
39675         Add rawmemchr module, matching glibc.
39676         * modules/string (Makefile.am): New indicator.
39677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39678         * lib/string.in.h (rawmemchr): Declare when appropriate.
39679         * modules/rawmemchr: New file.
39680         * m4/rawmemchr.m4: Likewise.
39681         * lib/rawmemchr.c: Likewise.
39682         * modules/rawmemchr-tests: Likewise.
39683         * tests/test-rawmemchr.c: Likewise.
39684         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39685         module.
39686         * modules/strchrnul (Depends-on): Add rawmemchr.
39687         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39688
39689         Whitespace cleanup.
39690         * tests/test-strchrnul.c: Reindent.
39691         * lib/strchrnul.c: Likewise.
39692
39693         Optimize and test strchrnul.
39694         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39695         * modules/strchrnul-tests: New file.
39696         * tests/test-strchrnul.c: Likewise.
39697
39698         Remove intprops dependency.
39699         * modules/memchr (Depends-on): Remove intprops.
39700         * modules/memrchr (Depends-on): Likewise.
39701         * modules/memchr2 (Depends-on): Likewise.
39702         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39703         * lib/memrchr.c (__memrchr): Likewise.
39704         * lib/memrchr2.c (memchr2): Likewise.
39705         Reported by Simon Josefsson.
39706
39707 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39708
39709         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39710         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39711
39712 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39713
39714         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39715
39716         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39717
39718         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39719
39720         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39721         declarations.
39722         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39723
39724         * m4/inet_pton.m4: Don't check for header files.
39725
39726         * m4/inet_ntop.m4: Don't check for header files.
39727
39728 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39729
39730         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39731         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39732         trigger for cygwin).
39733         Reported by Bruno Haible  <bruno@clisp.org>.
39734
39735 2008-04-28  Bruno Haible  <bruno@clisp.org>
39736
39737         * doc/posix-functions/strdup.texi: Mention mingw problem.
39738
39739 2008-04-27  Bruno Haible  <bruno@clisp.org>
39740
39741         * modules/stat-time-tests (Depends-on): Add sleep.
39742         * tests/test-stat-time.c (force_unlink): New function.
39743         (cleanup): Use it.
39744         (test_mtime): Remove the ctime related tests.
39745         (test_ctime): New function, containing the ctime related tests.
39746         (main): Call test_ctime, except on native Windows platforms.
39747
39748 2008-04-27  Bruno Haible  <bruno@clisp.org>
39749
39750         * lib/rpmatch.c (rpmatch): Add some comments.
39751         Reported by James Youngman <jay@gnu.org>.
39752
39753 2008-04-27  Bruno Haible  <bruno@clisp.org>
39754
39755         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39756         quiet NaNs.
39757
39758 2008-04-27  Bruno Haible  <bruno@clisp.org>
39759
39760         Make test-yesno.sh work on mingw.
39761         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39762         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39763         (main): Set stdin to binary mode.
39764         * modules/yesno-tests (Depends-on): Add binary-io.
39765
39766 2008-04-27  Bruno Haible  <bruno@clisp.org>
39767
39768         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39769         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39770         argument that lie outside the IEEE 854 domain.
39771         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39772         (gl_ISFINITE): Use it.
39773         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39774
39775 2008-04-27  Bruno Haible  <bruno@clisp.org>
39776
39777         Allow local renaming in config.h.
39778         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39779
39780 2008-04-27  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/memchr.c (__memchr): Change type of 'i'.
39783         * lib/memchr2.c (memchr2): Likewise.
39784
39785 2008-04-26  Eric Blake  <ebb9@byu.net>
39786         and Bruno Haible  <bruno@clisp.org>
39787
39788         Optimize and test memrchr.
39789         * modules/memrchr (Depends-on): Add intprops.
39790         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39791         * modules/memrchr-tests: New file.
39792         * tests/test-memrchr.c: New file.
39793
39794 2008-04-26  Bruno Haible  <bruno@clisp.org>
39795
39796         Add tentative support for DragonFly BSD.
39797         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39798         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39799         fp.
39800         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39801         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39802         * lib/fpurge.c (fpurge): Likewise.
39803         * lib/freadable.c (freaadable): Likewise.
39804         * lib/freadahead.c (freadahead): Likewise.
39805         * lib/freading.c (freading): Likewise.
39806         * lib/freadptr.c (freadptr): Likewise.
39807         * lib/freadseek.c (freadptrinc): Likewise.
39808         * lib/fseeko.c (fseeko): Likewise.
39809         * lib/fseterr.c (fseterr): Likewise.
39810         * lib/fwritable.c (fwritable): Likewise.
39811         * lib/fwriting.c (fwriting): Likewise.
39812
39813 2008-04-26  Bruno Haible  <bruno@clisp.org>
39814
39815         * lib/stdio-impl.h: New file.
39816         * lib/fbufmode.c: Include stdio-impl.h.
39817         (fbufmode): Use fp_, remove redundant #defines.
39818         * lib/fflush.c: Include stdio-impl.h.
39819         (clear_ungetc_buffer): Remove redundant #defines.
39820         * lib/fpurge.c: Include stdio-impl.h.
39821         (fpurge): Remove redundant #defines.
39822         * lib/freadable.c: Include stdio-impl.h.
39823         (freadable): Remove redundant #defines.
39824         * lib/freadahead.c: Include stdio-impl.h.
39825         (freadahead): Remove redundant #defines.
39826         * lib/freading.c: Include stdio-impl.h.
39827         (freading): Remove redundant #defines.
39828         * lib/freadptr.c: Include stdio-impl.h.
39829         (freadptr): Remove redundant #defines.
39830         * lib/freadseek.c: Include stdio-impl.h.
39831         (freadptrinc): Remove redundant #defines.
39832         * lib/fseeko.c: Include stdio-impl.h.
39833         (rpl_fseeko): Remove redundant #defines.
39834         * lib/fseterr.c: Include stdio-impl.h.
39835         (fseterr): Remove redundant #defines.
39836         * lib/fwritable.c: Include stdio-impl.h.
39837         (fwritable: Remove redundant #defines.
39838         * lib/fwriting.c: Include stdio-impl.h.
39839         (fwriting): Remove redundant #defines.
39840         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39841         * modules/fflush (Files): Likewise.
39842         * modules/fpurge (Files): Likewise.
39843         * modules/freadable (Files): Likewise.
39844         * modules/freadahead (Files): Likewise.
39845         * modules/freading (Files): Likewise.
39846         * modules/freadptr (Files): Likewise.
39847         * modules/freadseek (Files): Likewise.
39848         * modules/fseeko (Files): Likewise.
39849         * modules/fseterr (Files): Likewise.
39850         * modules/fwritable (Files): Likewise.
39851         * modules/fwriting (Files): Likewise.
39852
39853 2008-04-26  Bruno Haible  <bruno@clisp.org>
39854
39855         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39856         restore_seek_optimization, update_fpos_cache): New functions, extracted
39857         from rpl_fflush.
39858         (rpl_fflush): Use them.
39859         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39860         (gl_REPLACE_FFLUSH): Use it.
39861
39862 2008-04-26  Bruno Haible  <bruno@clisp.org>
39863
39864         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39865         on Solaris.
39866         * tests/test-xstrtoimax.sh: Likewise.
39867         * tests/test-xstrtoumax.sh: Likewise.
39868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39869
39870 2008-04-26  Bruno Haible  <bruno@clisp.org>
39871
39872         * modules/memchr-tests: New file.
39873         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39874
39875 2008-04-26  Eric Blake  <ebb9@byu.net>
39876             Bruno Haible  <bruno@clisp.org>
39877
39878         * lib/memchr.c: Include intprops.h.
39879         (__memchr): Optimize parallel detection of matching bytes. Rename local
39880         variables. Add explanatory comments.
39881
39882 2008-04-26  Bruno Haible  <bruno@clisp.org>
39883
39884         Fix module 'memchr', broken since 2000-10-28.
39885         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39886
39887 2008-04-26  Bruno Haible  <bruno@clisp.org>
39888
39889         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39890         comments.
39891
39892 2008-04-25  Eric Blake  <ebb9@byu.net>
39893
39894         Use native fstatat on cygwin 1.7.0.
39895         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39896         first.
39897
39898 2008-04-23  Eric Blake  <ebb9@byu.net>
39899
39900         Improve memchr2 performance.
39901         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39902         NUL bytes.
39903         * modules/memchr2 (Depends-on): Use intprops.h.
39904
39905 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39906
39907         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39908         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39909         <blp@cs.stanford.edu>.
39910
39911 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39912
39913         * lib/arpa_inet.in.h: New file.
39914
39915         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39916         (Makefile.am): Sed in substitute header file.
39917
39918         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39919         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39920
39921         * modules/inet_ntop (configure.ac): Use
39922         gl_ARPA_INET_MODULE_INDICATOR.
39923
39924         * modules/inet_pton (configure.ac): Use
39925         gl_ARPA_INET_MODULE_INDICATOR.
39926
39927 2008-04-22  Jim Meyering  <meyering@redhat.com>
39928
39929         * modules/verify (License): Re-license as LGPLv2+.
39930
39931 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39932
39933         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39934         parameter to void* as per POSIX standard (MinGW uses char*).
39935
39936 2008-04-21  Bruno Haible  <bruno@clisp.org>
39937
39938         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39939         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39940         Define to replacements if REPLACE_ISWCNTRL is 1.
39941         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39942         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39943         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39944         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39945         what it fixes.
39946         * doc/posix-functions/iswalpha.texi: Likewise.
39947         * doc/posix-functions/iswblank.texi: Likewise.
39948         * doc/posix-functions/iswcntrl.texi: Likewise.
39949         * doc/posix-functions/iswdigit.texi: Likewise.
39950         * doc/posix-functions/iswgraph.texi: Likewise.
39951         * doc/posix-functions/iswlower.texi: Likewise.
39952         * doc/posix-functions/iswprint.texi: Likewise.
39953         * doc/posix-functions/iswpunct.texi: Likewise.
39954         * doc/posix-functions/iswspace.texi: Likewise.
39955         * doc/posix-functions/iswupper.texi: Likewise.
39956         * doc/posix-functions/iswxdigit.texi: Likewise.
39957         Reported by Alain Guibert.
39958
39959 2008-04-21  Bruno Haible  <bruno@clisp.org>
39960
39961         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39962         Patch by Alain Guibert.
39963
39964 2008-04-21  Bruno Haible  <bruno@clisp.org>
39965
39966         Fix test failures on mingw.
39967         * tests/test-xstrtol.c (print_no_progname): New function.
39968         (main): Install it in error_print_progname hook.
39969         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39970         * tests/test-xstrtoimax.sh: Likewise.
39971         * tests/test-xstrtoumax.sh: Likewise.
39972
39973 2008-04-21  Bruno Haible  <bruno@clisp.org>
39974
39975         Fix test failure on mingw.
39976         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39977
39978 2008-04-21  Bruno Haible  <bruno@clisp.org>
39979
39980         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39981         Actually assign a value.
39982
39983 2008-04-20  Bruno Haible  <bruno@clisp.org>
39984
39985         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39986         take 2.
39987         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39988         'canonicalize-lgpl' module is also used.
39989         * lib/canonicalize-lgpl.c: Undo last change.
39990         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39991
39992 2008-04-20  Bruno Haible  <bruno@clisp.org>
39993
39994         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39995         config.h. Provide _mkdir based fallback for mingw.
39996         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39997         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39998         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39999         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40000         rather than defining mkdir in config.h.
40001         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40002         (gl_SYS_STAT_H_DEFAULTS): New macro.
40003         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40004         HAVE_IO_H any more.
40005         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40006         HAVE_DECL_MKDIR and HAVE_IO_H.
40007
40008 2008-04-20  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/isapipe.c: Port to native Windows platforms.
40011
40012 2008-04-20  Bruno Haible  <bruno@clisp.org>
40013
40014         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40015
40016 2008-04-21  Eric Blake  <ebb9@byu.net>
40017
40018         Work around preprocessors that don't handle UINTMAX_MAX.
40019         * lib/memchr2.c (memchr2): Avoid embedded #if.
40020         Reported by Alain Guibert, fix suggested by Bruno Haible.
40021
40022 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40023
40024         * doc/posix-functions/strftime.texi (strftime): Explain better
40025         Windows incompatibility.  Suggested by Micah Cowan
40026         <micah@cowan.name>.
40027
40028 2008-04-20  Bruno Haible  <bruno@clisp.org>
40029
40030         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40031         unistr/u8-mblen.
40032
40033 2008-04-20  Bruno Haible  <bruno@clisp.org>
40034
40035         Fix test failure on platforms with non-GNU iconv.
40036         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40037         (U_TO_U8): Use it, rather than u16_to_u8.
40038         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40039         units at the end of the input string.
40040         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40041
40042 2008-04-20  Bruno Haible  <bruno@clisp.org>
40043
40044         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40045         when the resulting length is 0.
40046         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40047
40048 2008-04-20  Bruno Haible  <bruno@clisp.org>
40049
40050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40051         works.
40052         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40053
40054 2008-04-20  Bruno Haible  <bruno@clisp.org>
40055
40056         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40057         * modules/tsearch-tests (configure.ac): Test for initstate function.
40058
40059 2008-04-20  Bruno Haible  <bruno@clisp.org>
40060
40061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40062         for nlink_t if missing.
40063         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40064
40065 2008-04-19  Bruno Haible  <bruno@clisp.org>
40066
40067         Work around snprintf bug on Linux libc5.
40068         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40069         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40070         gl_SNPRINTF_SIZE1.
40071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40072         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40073         that test failed.
40074         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40075         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40076         * modules/snprintf (Files): Add m4/printf.m4.
40077         * modules/vsnprintf (Files): Likewise.
40078         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40079         * doc/posix-functions/vsnprintf.texi: Likewise.
40080
40081 2008-04-19  Bruno Haible  <bruno@clisp.org>
40082
40083         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40084         from 0.0058 to less than 10^-7.
40085
40086 2008-04-19  Bruno Haible  <bruno@clisp.org>
40087
40088         Fix rounding when a precision is given.
40089         * lib/vasnprintf.c (is_borderline): New function.
40090         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40091         9...9x.
40092         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40093         %e, %g.
40094         * tests/test-vasprintf-posix.c (test_function): Likewise.
40095         * tests/test-snprintf-posix.h (test_function): Likewise.
40096         * tests/test-sprintf-posix.h (test_function): Likewise.
40097         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40098         * tests/test-printf-posix.h (test_function): Likewise.
40099         * tests/test-printf-posix.output: Update.
40100         Reported by John Darrington <john@darrington.wattle.id.au> via
40101         Ben Pfaff <blp@cs.stanford.edu>.
40102
40103 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40104
40105         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40106         Suggested by Bruno Haible <bruno@clisp.org>.
40107
40108 2008-04-17  Bruno Haible  <bruno@clisp.org>
40109
40110         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40111         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40112         implementation.
40113         Patch by Bruce Merry <bmerry@gmail.com>.
40114
40115 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40116
40117         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40118         doesn't work under Windows.
40119
40120 2008-04-16  Bruno Haible  <bruno@clisp.org>
40121
40122         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40123         New macros.
40124         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40125         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40126         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40127         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40128         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40129         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40130         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40131         macros.
40132         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40133         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40134         Northern Sotho, Uighur.
40135
40136 2008-04-16  Bruno Haible  <bruno@clisp.org>
40137
40138         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40139         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40140         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40141         Reported by Daniel Bergström <daniel@octocode.com>.
40142
40143 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40144             Bruno Haible  <bruno@clisp.org>
40145
40146         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40147         function.
40148         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40149         New functions, mostly extracted from gl_locale_name_default.
40150         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40151
40152 2008-04-16  Eric Blake  <ebb9@byu.net>
40153
40154         Adjust strtod detection to catch glibc 2.7 bug.
40155         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40156         Reported by John Gatewood Ham.
40157
40158 2008-04-16  Bruno Haible  <bruno@clisp.org>
40159
40160         Add tentative support for Linux libc5.
40161         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40162         * lib/fpurge.c (fpurge): Likewise.
40163         * lib/freadable.c (freadable): Likewise.
40164         * lib/freadahead.c (freadahead): Likewise.
40165         * lib/freading.c (freading): Likewise.
40166         * lib/freadptr.c (freadptr): Likewise.
40167         * lib/freadseek.c (freadptrinc): Likewise.
40168         * lib/fseeko.c (rpl_fseeko): Likewise.
40169         * lib/fseterr.c (fseterr): Likewise.
40170         * lib/fwritable.c (fwritable): Likewise.
40171         * lib/fwriting.c (fwriting): Likewise.
40172         Reported by Alain Guibert <alguibert+bts@free.fr>.
40173
40174 2008-04-15  Bruno Haible  <bruno@clisp.org>
40175
40176         * modules/mathl (configure.ac): Define module indicator.
40177
40178 2008-04-15  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/logl.c (logl): Remove unused variables.
40181
40182 2008-04-15  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40185         fails.
40186
40187 2008-04-15  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/trim.c (trim2): Fix argument of isspace() macro.
40190
40191 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40192
40193         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40194         to 0.
40195         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40196
40197 2008-04-14  Bruno Haible  <bruno@clisp.org>
40198
40199         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40200         AC_LANG_PROGRAM argument.
40201         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40202         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40204         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40205         * m4/math_h.m4 (gl_MATH_H): Likewise.
40206         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40207         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40208         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40209         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40210         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40211         * m4/regex.m4 (gl_REGEX): Likewise.
40212         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40213         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40217         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40220
40221 2008-04-14  Jim Meyering  <meyering@redhat.com>
40222
40223         test-strtod: fix typos: s/abs/fabs/
40224         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40225
40226 2008-04-13  Bruno Haible  <bruno@clisp.org>
40227
40228         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40229         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40230         module is also used and while not building the reloc-wrapper.
40231
40232 2008-04-13  Bruno Haible  <bruno@clisp.org>
40233
40234         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40235
40236 2008-04-13  Bruno Haible  <bruno@clisp.org>
40237
40238         Fix AIX compilation failure introduced on 2008-04-02.
40239         * tests/test-frexp.c (exp): Undefine before redefining.
40240         * tests/test-frexpl.c (exp): Likewise.
40241
40242 2008-04-13  Bruno Haible  <bruno@clisp.org>
40243
40244         Work around a HP-UX stdio bug.
40245         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40246         * tests/test-ftello.c (main): Likewise.
40247         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40248         * doc/posix-functions/ftello.texi: Likewise.
40249
40250 2008-04-13  Bruno Haible  <bruno@clisp.org>
40251
40252         Make test-signbit pass on HP-UX/hppa.
40253         * tests/test-signbit.c (minus_zerol): New variable.
40254         (test_signbitl): Use it.
40255
40256 2008-04-13  Bruno Haible  <bruno@clisp.org>
40257
40258         Make truncl work on OSF/1 4.0.
40259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40260         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40261         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40263         HAVE_DECL_TRUNCL.
40264         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40265         HAVE_DECL_TRUNCL.
40266         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40267
40268 2008-04-13  Bruno Haible  <bruno@clisp.org>
40269
40270         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40271
40272 2008-04-13  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40275         expression, so as to avoid HP-UX 11 cc compiler bug.
40276
40277 2008-04-13  Bruno Haible  <bruno@clisp.org>
40278
40279         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40280
40281 2008-04-13  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/git-merge-changelog.c: Remove empty declaration outside of
40284         functions.
40285
40286 2008-04-13  Bruno Haible  <bruno@clisp.org>
40287
40288         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40289
40290 2008-04-13  Bruno Haible  <bruno@clisp.org>
40291
40292         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40293         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40295         also if it exists but lacks definitions of the SHUT_* macros.
40296         * modules/sys_socket (Description): Update.
40297         Reported by Elbert Pol <e.pol@chello.nl>.
40298
40299 2008-04-13  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/localcharset.c (OS2): Don't redefine if already defined.
40302         Reported by Elbert Pol <e.pol@chello.nl>.
40303
40304 2008-04-13  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/binary-io.h [__EMX__]: Include <io.h>.
40307         Reported by Elbert Pol <e.pol@chello.nl>.
40308
40309 2008-04-12  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/fpucw.h: Enable the definitions also for x86_64.
40312         Needed for NetBSD/x86_64.
40313         Reported by Thomas Klausner <tk@giga.or.at>.
40314
40315 2008-04-12  Bruno Haible  <bruno@clisp.org>
40316
40317         * tests/test-strtod.c: Include isnand.h.
40318         (main): Use isnand instead of isnan.
40319         Reported by Jim Meyering.
40320
40321 2008-04-12  Bruno Haible  <bruno@clisp.org>
40322
40323         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40324         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40325
40326 2008-04-12  Jim Meyering  <meyering@redhat.com>
40327
40328         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40329
40330 2008-04-12  Bruno Haible  <bruno@clisp.org>
40331
40332         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40333         Reported by Elbert Pol <e.pol@chello.nl>.
40334
40335 2008-04-12  Eric Blake  <ebb9@byu.net>
40336
40337         Work around Solaris 10 math.h bug.
40338         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40339         (gl_MATH_H_DEFAULTS): Set up default.
40340         * modules/math (Makefile.am): Replace new indicators.
40341         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40342         * tests/test-math.c (main): Test this.
40343         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40344         * doc/posix-headers/math.texi (math.h): Mention bug.
40345         Reported by Nelson H. F. Beebe and Jim Meyering.
40346
40347 2008-04-11  Bruno Haible  <bruno@clisp.org>
40348
40349         Adapt to future versions of Apple GCC.
40350         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40351         Reported by Peter O'Gorman <peter@pogma.com>.
40352
40353 2008-04-11  Bruno Haible  <bruno@clisp.org>
40354
40355         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40356
40357 2008-04-11  Bruno Haible  <bruno@clisp.org>
40358
40359         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40360
40361         * modules/getaddrinfo-tests (Makefile.am): Define
40362         test_getaddrinfo_LDADD.
40363
40364 2008-04-11  Bruno Haible  <bruno@clisp.org>
40365
40366         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40367         (init): Fix syntax error.
40368         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40369         is declared.
40370
40371 2008-04-11  Bruno Haible  <bruno@clisp.org>
40372
40373         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40374         * modules/glob (Depends-on): Add stdbool.
40375
40376 2008-04-11  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/trim.c: Include <string.h>.
40379
40380 2008-04-11  Eric Blake  <ebb9@byu.net>
40381
40382         Avoid compile failure on OS/2.
40383         * lib/regex_internal.h (internal_function): Disable optimization
40384         on OS/2 (__EMX__), where it caused compiler error.
40385         Reported by Elbert Pol.
40386
40387 2008-04-11  Bruno Haible  <bruno@clisp.org>
40388
40389         Flush the standard error stream before aborting. Needed on mingw.
40390         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40391         * tests/test-array_list.c (ASSERT): Likewise.
40392         * tests/test-array_oset.c (ASSERT): Likewise.
40393         * tests/test-avltree_list.c (ASSERT): Likewise.
40394         * tests/test-avltree_oset.c (ASSERT): Likewise.
40395         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40396         * tests/test-binary-io.c (ASSERT): Likewise.
40397         * tests/test-byteswap.c (ASSERT): Likewise.
40398         * tests/test-c-ctype.c (ASSERT): Likewise.
40399         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40400         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40401         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40402         * tests/test-c-strstr.c (ASSERT): Likewise.
40403         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40404         * tests/test-canonicalize.c (ASSERT): Likewise.
40405         * tests/test-carray_list.c (ASSERT): Likewise.
40406         * tests/test-ceilf1.c (ASSERT): Likewise.
40407         * tests/test-ceilf2.c (ASSERT): Likewise.
40408         * tests/test-ceill.c (ASSERT): Likewise.
40409         * tests/test-count-one-bits.c (ASSERT): Likewise.
40410         * tests/test-fbufmode.c (ASSERT): Likewise.
40411         * tests/test-fflush2.c (ASSERT): Likewise.
40412         * tests/test-floorf1.c (ASSERT): Likewise.
40413         * tests/test-floorf2.c (ASSERT): Likewise.
40414         * tests/test-floorl.c (ASSERT): Likewise.
40415         * tests/test-fopen.c (ASSERT): Likewise.
40416         * tests/test-fpending.c (ASSERT): Likewise.
40417         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40418         * tests/test-fpurge.c (ASSERT): Likewise.
40419         * tests/test-freadable.c (ASSERT): Likewise.
40420         * tests/test-freadahead.c (ASSERT): Likewise.
40421         * tests/test-freading.c (ASSERT): Likewise.
40422         * tests/test-freadptr.c (ASSERT): Likewise.
40423         * tests/test-freadptr2.c (ASSERT): Likewise.
40424         * tests/test-freadseek.c (ASSERT): Likewise.
40425         * tests/test-freopen.c (ASSERT): Likewise.
40426         * tests/test-frexp.c (ASSERT): Likewise.
40427         * tests/test-frexpl.c (ASSERT): Likewise.
40428         * tests/test-fseek.c (ASSERT): Likewise.
40429         * tests/test-fseeko.c (ASSERT): Likewise.
40430         * tests/test-fstrcmp.c (ASSERT): Likewise.
40431         * tests/test-ftell.c (ASSERT): Likewise.
40432         * tests/test-ftello.c (ASSERT): Likewise.
40433         * tests/test-func.c (ASSERT): Likewise.
40434         * tests/test-fwritable.c (ASSERT): Likewise.
40435         * tests/test-fwriting.c (ASSERT): Likewise.
40436         * tests/test-getdelim.c (ASSERT): Likewise.
40437         * tests/test-getline.c (ASSERT): Likewise.
40438         * tests/test-i-ring.c (ASSERT): Likewise.
40439         * tests/test-iconv-utf.c (ASSERT): Likewise.
40440         * tests/test-iconv.c (ASSERT): Likewise.
40441         * tests/test-isfinite.c (ASSERT): Likewise.
40442         * tests/test-isnand.c (ASSERT): Likewise.
40443         * tests/test-isnanf.c (ASSERT): Likewise.
40444         * tests/test-isnanl.h (ASSERT): Likewise.
40445         * tests/test-ldexpl.c (ASSERT): Likewise.
40446         * tests/test-linked_list.c (ASSERT): Likewise.
40447         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40448         * tests/test-localename.c (ASSERT): Likewise.
40449         * tests/test-lseek.c (ASSERT): Likewise.
40450         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40451         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40452         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40453         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40454         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40455         * tests/test-mbschr.c (ASSERT): Likewise.
40456         * tests/test-mbscspn.c (ASSERT): Likewise.
40457         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40458         * tests/test-mbspbrk.c (ASSERT): Likewise.
40459         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40460         * tests/test-mbsrchr.c (ASSERT): Likewise.
40461         * tests/test-mbsspn.c (ASSERT): Likewise.
40462         * tests/test-mbsstr1.c (ASSERT): Likewise.
40463         * tests/test-mbsstr2.c (ASSERT): Likewise.
40464         * tests/test-mbsstr3.c (ASSERT): Likewise.
40465         * tests/test-memchr2.c (ASSERT): Likewise.
40466         * tests/test-memmem.c (ASSERT): Likewise.
40467         * tests/test-open.c (ASSERT): Likewise.
40468         * tests/test-printf-frexp.c (ASSERT): Likewise.
40469         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40470         * tests/test-printf-posix.c (ASSERT): Likewise.
40471         * tests/test-quotearg.c (ASSERT): Likewise.
40472         * tests/test-rbtree_list.c (ASSERT): Likewise.
40473         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40474         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40475         * tests/test-round1.c (ASSERT): Likewise.
40476         * tests/test-roundf1.c (ASSERT): Likewise.
40477         * tests/test-roundl.c (ASSERT): Likewise.
40478         * tests/test-signbit.c (ASSERT): Likewise.
40479         * tests/test-sleep.c (ASSERT): Likewise.
40480         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40481         * tests/test-snprintf.c (ASSERT): Likewise.
40482         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40483         * tests/test-stat-time.c (ASSERT): Likewise.
40484         * tests/test-strcasestr.c (ASSERT): Likewise.
40485         * tests/test-strerror.c (ASSERT): Likewise.
40486         * tests/test-striconv.c (ASSERT): Likewise.
40487         * tests/test-striconveh.c (ASSERT): Likewise.
40488         * tests/test-striconveha.c (ASSERT): Likewise.
40489         * tests/test-strsignal.c (ASSERT): Likewise.
40490         * tests/test-strstr.c (ASSERT): Likewise.
40491         * tests/test-strtod.c (ASSERT): Likewise.
40492         * tests/test-trunc1.c (ASSERT): Likewise.
40493         * tests/test-trunc2.c (ASSERT): Likewise.
40494         * tests/test-truncf1.c (ASSERT): Likewise.
40495         * tests/test-truncf2.c (ASSERT): Likewise.
40496         * tests/test-truncl.c (ASSERT): Likewise.
40497         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40498         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40499         * tests/test-vasnprintf.c (ASSERT): Likewise.
40500         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40501         * tests/test-vasprintf.c (ASSERT): Likewise.
40502         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40503         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40504         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40505         * tests/test-vsnprintf.c (ASSERT): Likewise.
40506         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40507         * tests/test-wcwidth.c (ASSERT): Likewise.
40508         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40509         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40510         * tests/test-xvasprintf.c (ASSERT): Likewise.
40511         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40512         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40513         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40514         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40515         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40516         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40517         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40518         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40519         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40520         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40521         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40522         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40523         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40524         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40525         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40526         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40527         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40528         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40529         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40530         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40531         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40532         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40533         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40534         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40535         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40536         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40537         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40538         * tests/unictype/test-combining.c (ASSERT): Likewise.
40539         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40540         * tests/unictype/test-digit.c (ASSERT): Likewise.
40541         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40542         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40543         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40544         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40545         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40546         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40547         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40548         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40549         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40550         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40551         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40552         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40553         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40554         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40555         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40556         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40557         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40558         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40559         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40560         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40561         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40562         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40563         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40564         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40565         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40566         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40567         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40568         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40569         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40570         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40571         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40572         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40573         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40574         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40575         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40576         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40577         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40578         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40579         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40580         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40581         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40582         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40583         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40584         Reported by Eric Blake.
40585
40586 2008-04-11  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/wchar.in.h: Tweak comment.
40589
40590 2008-04-11  Bruno Haible  <bruno@clisp.org>
40591
40592         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40593         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40594         gl_COMMON.
40595         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40596
40597 2008-04-11  Bruno Haible  <bruno@clisp.org>
40598
40599         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40600
40601 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40602
40603         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40604         of attempting to use non-existing /dev/*random.  Based on patch
40605         from Adam Strzelecki <ono@java.pl> in
40606         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40607
40608 2008-04-08  Bruno Haible  <bruno@clisp.org>
40609
40610         Add tentative support for emx+gcc.
40611         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40612         * lib/fpurge.c (fpurge): Likewise.
40613         * lib/freadable.c (freadable): Likewise.
40614         * lib/freadahead.c (freadahead): Likewise.
40615         * lib/freading.c (freading): Likewise.
40616         * lib/freadptr.c (freadptr): Likewise.
40617         * lib/freadseek.c (freadptrinc): Likewise.
40618         * lib/fseeko.c (rpl_fseeko): Likewise.
40619         * lib/fseterr.c (fseterr): Likewise.
40620         * lib/fwritable.c (fwritable): Likewise.
40621         * lib/fwriting.c (fwriting): Likewise.
40622         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40623
40624 2008-04-09  Eric Blake  <ebb9@byu.net>
40625
40626         Avoid some autoconf warnings.
40627         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40628         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40629         * m4/afs.m4 (gl_AFS): Likewise.
40630         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40631         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40633         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40634         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40635         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40636         (AC_CHECK_DECLS_ONCE): Likewise.
40637         Rename file...
40638         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40639         gnulib-tool requires autoconf 2.59 or better.
40640         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40641
40642 2008-04-08  Eric Blake  <ebb9@byu.net>
40643
40644         Use 'git describe --match' if present (added in git 1.5.5).
40645         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40646         if possible.
40647
40648 2008-04-08  Bruno Haible  <bruno@clisp.org>
40649
40650         Add tentative support for OpenServer.
40651         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40652         _ptr, _cnt.
40653         * lib/fpurge.c (fpurge): Likewise.
40654         * lib/freadable.c (freadable): Likewise.
40655         * lib/freadahead.c (freadahead): Likewise.
40656         * lib/freading.c (freading): Likewise.
40657         * lib/freadptr.c (freadptr): Likewise.
40658         * lib/freadseek.c (freadptrinc): Likewise.
40659         * lib/fseeko.c (rpl_fseeko): Likewise.
40660         * lib/fseterr.c (fseterr): Likewise.
40661         * lib/fwritable.c (fwritable): Likewise.
40662         * lib/fwriting.c (fwriting): Likewise.
40663         Reported by Roger Cornelius <rac@tenzing.org> and
40664         Brian K. White <brian@aljex.com>.
40665
40666 2008-04-06  Jim Meyering  <meyering@redhat.com>
40667
40668         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40669
40670 2008-04-06  Bruno Haible  <bruno@clisp.org>
40671
40672         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40673         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40674         * tests/test-printf-posix.sh: Likewise.
40675         * tests/test-vfprintf-posix.sh: Likewise.
40676         * tests/test-vprintf-posix.sh: Likewise.
40677         * tests/test-xprintf-posix.sh: Likewise.
40678
40679 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40680
40681         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40682         hide error from 'ls', needed on OS/2.
40683         Report by Elbert Pol <elbert.pol@gmail.com>.
40684
40685 2008-04-04  Eric Blake  <ebb9@byu.net>
40686
40687         Make test-fseeko.c failures meaningful.
40688         * tests/test-fseeko.c: Print line number on failure.
40689         * tests/test-fseek.c: Likewise.
40690         Reported by Nelson H. F. Beebe.
40691
40692         Improve strtod bug detection check.
40693         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40694         required for Solaris 10.
40695         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40696
40697 2008-04-04  Bruno Haible  <bruno@clisp.org>
40698
40699         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40700         by m4/setenv.m4.
40701
40702 2008-04-03  Eric Blake  <ebb9@byu.net>
40703
40704         Ensure sane .version contents.
40705         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40706         version string.
40707         * build-aux/git-version-gen: Improve documentation.
40708
40709         Make GNU make output nicer.
40710         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40711         MAKECMDGOALS to enforce message for all command line targets.  Set
40712         srcdir for use in maint.mk.
40713
40714         Another maintainer tweak.
40715         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40716         a target that regenerates version.
40717
40718 2008-04-03  Jim Meyering  <meyering@redhat.com>
40719
40720         vc-list-files: don't cause coreutils "make po-check" failure
40721         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40722
40723 2008-04-03  Eric Blake  <ebb9@byu.net>
40724
40725         Allow VPATH usage of vc-list-files.
40726         * build-aux/vc-list-files (scriptversion): Add timestamp.
40727         (options): Add --help, --version, -C.
40728         (CVS): Support installed cvsu.
40729
40730 2008-04-02  Bruno Haible  <bruno@clisp.org>
40731
40732         Avoid some "statement with no effect" warnings from gcc.
40733         * tests/test-wctype.c (main): Explicitly ignore unused values.
40734         Reported by Jim Meyering.
40735
40736 2008-04-02  Jim Meyering  <meyering@redhat.com>
40737
40738         Avoid some warnings from "gcc -Wshadow".
40739         * tests/test-frexp.c (exp): Define to a different identifier.
40740         * tests/test-frexpl.c (exp): Likewise.
40741
40742 2008-04-03  Jim Meyering  <meyering@redhat.com>
40743
40744         bootstrap: remove dangling *.[ch] symlinks from lib
40745         * build-aux/bootstrap [dangling symlink removal]: Move find's
40746         -depth option to precede all others, to avoid a warning.
40747         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40748
40749 2008-04-02  Bruno Haible  <bruno@clisp.org>
40750
40751         Avoid some warnings from "gcc -Wshadow".
40752         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40753         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40754         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40755         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40756         Reported by Jim Meyering.
40757
40758 2008-04-01  Bruno Haible  <bruno@clisp.org>
40759
40760         Fix test to work on IRIX 6.5 with cc.
40761         * tests/test-math.c (numeric_equal): New function.
40762         (main): Use it.
40763
40764 2008-04-01  Bruno Haible  <bruno@clisp.org>
40765
40766         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40767
40768 2008-04-01  Bruno Haible  <bruno@clisp.org>
40769
40770         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40771         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40772         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40773         (Depends-on): Remove math.
40774
40775         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40776         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40777         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40778         (Depends-on): Remove math.
40779
40780         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40781         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40782         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40783         (Depends-on): Remove math.
40784         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40785         (Depends-on): Remove math.
40786
40787         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40789         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40790         (Depends-on): Remove math.
40791         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40792         (Depends-on): Remove math.
40793
40794         * tests/test-round1.c: Include nan.h.
40795         (main): Use NaNd instead of NAN.
40796         * modules/round-tests (Files): Add tests/nan.h.
40797
40798         * tests/test-trunc1.c: Include nan.h.
40799         (main): Use NaNd instead of NAN.
40800         * modules/trunc-tests (Files): Add tests/nan.h.
40801
40802         * tests/test-roundf1.c: Include nan.h.
40803         (main): Use NaNf instead of NAN.
40804         * modules/roundf-tests (Files): Add tests/nan.h.
40805
40806         * tests/test-truncf1.c: Include nan.h.
40807         (main): Use NaNf instead of NAN.
40808         * modules/truncf-tests (Files): Add tests/nan.h.
40809
40810         * tests/test-ceilf1.c: Include nan.h.
40811         (main): Use NaNf instead of NAN.
40812         * modules/ceilf-tests (Files): Add tests/nan.h.
40813
40814         * tests/test-floorf1.c: Include nan.h.
40815         (main): Use NaNf instead of NAN.
40816         * modules/floorf-tests (Files): Add tests/nan.h.
40817
40818         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40819         (main): Use NaNf instead of NAN.
40820         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40821
40822         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40823         (main): Use NaNd instead of NAN.
40824         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40825
40826         * tests/test-frexp.c: Include nan.h.
40827         (main): Use NaNd instead of NAN.
40828         * modules/frexp-tests (Files): Add tests/nan.h.
40829
40830         * lib/isnan.c: Don't include <math.h>.
40831         (FUNC): Don't use NAN macro.
40832         * modules/isnand-nolibm (Depends-on): Remove math.
40833         * modules/isnanf-nolibm (Depends-on): Remove math.
40834         * modules/isnanl (Depends-on): Remove math.
40835         * modules/isnanl-nolibm (Depends-on): Remove math.
40836
40837         * tests/nan.h: New file.
40838
40839 2008-04-01  Eric Blake  <ebb9@byu.net>
40840
40841         Fix typos.
40842         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40843         values to be the right type.
40844
40845         For now, cater to gnulib strtod inaccuracies.
40846         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40847         fractional results.  While not as nice from a QoI perspective, it
40848         is a quicker patch than correctly implementing decimal to binary
40849         rounding.
40850
40851 2008-03-31  Eric Blake  <ebb9@byu.net>
40852
40853         Guarantee a definition of NAN.
40854         * lib/math.in.h (NAN): Define if missing.
40855         * tests/test-math.c (main): Test it.
40856         * doc/posix-headers/math.texi (math.h): Document this.
40857         * lib/isnan.c (rpl_isnand): Use it.
40858         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40859         * tests/test-floorf1.c (NaN): Likewise.
40860         * tests/test-frexp.c (NaN): Likewise.
40861         * tests/test-isnand.c (NaN): Likewise.
40862         * tests/test-isnanf.c (NaN): Likewise.
40863         * tests/test-round1.c (NaN): Likewise.
40864         * tests/test-roundf1.c (NaN): Likewise.
40865         * tests/test-snprintf-posix.h (NaN): Likewise.
40866         * tests/test-sprintf-posix.h (NaN): Likewise.
40867         * tests/test-trunc1.c (NaN): Likewise.
40868         * tests/test-truncf1.c (NaN): Likewise.
40869         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40870         * tests/test-vasprintf-posix.c (NaN): Likewise.
40871         * modules/isnand-nolibm (Depends-on): Add math.
40872         * modules/isnanf-nolibm (Depends-on): Likewise.
40873         * modules/isnanl (Depends-on): Likewise.
40874         * modules/isnanl-nolibm (Depends-on): Likewise.
40875         * modules/snprintf-posix-tests (Depends-on): Likewise.
40876         * modules/sprintf-posix-tests (Depends-on): Likewise.
40877         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40878         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40879         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40880         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40881
40882 2008-03-31  Bruno Haible  <bruno@clisp.org>
40883
40884         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40885         * doc/posix-functions/strtod.texi: Likewise.
40886
40887 2008-03-31  Bruno Haible  <bruno@clisp.org>
40888
40889         * tests/test-strtod.c (main): Don't use C99 syntax.
40890
40891 2008-03-31  Bruno Haible  <bruno@clisp.org>
40892
40893         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40894         Reported by Eric Blake.
40895
40896 2008-03-31  Jim Meyering  <meyering@redhat.com>
40897
40898         Don't compare actual signbit return values.
40899         * tests/test-strtod.c (main): Rather, compare only their
40900         zero/non-zero nature.
40901
40902 2008-03-31  Eric Blake  <ebb9@byu.net>
40903
40904         More strtod documentation.
40905         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40906         failures as distinct bugs.
40907
40908 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40909
40910         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40911         Problem reported by Erik Benada in
40912         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40913
40914 2008-03-30  Bruno Haible  <bruno@clisp.org>
40915
40916         * tests/test-strtod.c: Add comments about which assertion fails on which
40917         platform.
40918         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40919
40920 2008-03-30  Eric Blake  <ebb9@byu.net>
40921
40922         Test signbit behavior on zeros.
40923         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40924         (test_signbitd, test_signbitl): Likewise.
40925
40926         More strtod touchups.
40927         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40928         sign of negative underflow, for now.  Use .5, not .1.
40929         * doc/posix-functions/strtod.texi (strtod): Mention these
40930         limitations.
40931         Reported by Jim Meyering.
40932
40933 2008-03-30  Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40936         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40937
40938 2008-03-30  Bruno Haible  <bruno@clisp.org>
40939
40940         Avoid failure when attempting to return empty iconv results on some
40941         platforms.
40942         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40943         allocation, don't report ENOMEM when the resulting string is empty.
40944
40945 2008-03-30  Bruno Haible  <bruno@clisp.org>
40946
40947         Fix buffer overrun.
40948         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40949         Don't consider the width for tmp_length. Check count against tmp_length
40950         before doing the padding. Ensure enough allocation during padding.
40951
40952 2008-03-30  Eric Blake  <ebb9@byu.net>
40953
40954         strtod touchups.
40955         * lib/strtod.c (strtod): Avoid compiler warnings.
40956         Reported by Jim Meyering.
40957
40958 2008-03-30  Bruno Haible  <bruno@clisp.org>
40959
40960         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40961         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40962         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40963         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40964         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40965         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40966         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40967         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40968
40969         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40970         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40971         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40972         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40973         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40974         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40975         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40976         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40977
40978         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40979         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40980         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40981         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40982         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40983         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40984         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40985         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40986
40987         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40988         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40989
40990         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40991         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40992
40993         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40994         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40995
40996         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40998         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40999
41000         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41002         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41003
41004         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41006         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41007
41008         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41010         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41011
41012         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41013         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41015         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41016         (Depends-on): Add EOVERFLOW.
41017         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41018         (Depends-on): Add EOVERFLOW.
41019         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41020         (Depends-on): Add EOVERFLOW.
41021         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41022         (Depends-on): Add EOVERFLOW.
41023         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41024         (Depends-on): Add EOVERFLOW.
41025         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41026         (Depends-on): Add EOVERFLOW.
41027         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41028         (Depends-on): Add EOVERFLOW.
41029         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41030         (Depends-on): Add EOVERFLOW.
41031
41032         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41034         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41035
41036         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41038         * modules/snprintf (Depends-on): Add EOVERFLOW.
41039
41040         * lib/poll.c (EOVERFLOW): Remove fallback.
41041         * modules/poll (Depends-on): Add EOVERFLOW.
41042
41043         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41044         * modules/getugroups (Depends-on): Add EOVERFLOW.
41045
41046         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41047         * modules/getdelim (Depends-on): Add EOVERFLOW.
41048
41049         * lib/ftell.c (EOVERFLOW): Remove fallback.
41050         * modules/ftell (Depends-on): Add EOVERFLOW.
41051
41052         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41053         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41054         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41055
41056         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41057
41058         * modules/EOVERFLOW-tests: New file.
41059         * tests/test-EOVERFLOW.c: New file.
41060
41061         * modules/EOVERFLOW: New file.
41062         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41063
41064 2008-03-30  Bruno Haible  <bruno@clisp.org>
41065
41066         Fix bug introduced on 2007-06-10.
41067         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41068         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41069
41070 2008-03-30  Bruno Haible  <bruno@clisp.org>
41071
41072         Improve freadseek's efficiency after ungetc.
41073         * lib/freadseek.c: Include freadahead.h.
41074         (freadptrinc): New function, extracted from freadseek.
41075         (freadseek): Use it in a loop. Use freadahead to determine the number
41076         of loop iterations.
41077         * modules/freadseek (Depends-on): Add freadahead.
41078         (configure.ac): Require AC_C_INLINE.
41079
41080 2008-03-30  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/freadseek.c (freadseek): Don't ignore the return value of
41083         freadptr.
41084
41085 2008-03-29  Eric Blake  <ebb9@byu.net>
41086
41087         Add hex float support.
41088         * modules/strtod (Depends-on): Add c-ctype.
41089         (Link): Mention POW_LIB.
41090         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41091         whitespace between 'e' and exponent.
41092         * tests/test-strtod.c (main): Enable hex float tests.
41093         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41094         now provides.
41095
41096         Document various strtod bugs, with some fixes.
41097         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41098         "-0x", "inf", "nan", and hex constants.
41099         * doc/posix-functions/atof.texi (atof): Likewise.
41100         * modules/stdlib (Makefile.am): Support strtod.
41101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41102         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41103         detect additional strtod bugs.
41104         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41105         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41106         bool where appropriate.  Parse 'inf' and 'nan'.
41107         * tests/test-strtod.c: New file.
41108         * modules/strtod (Depends-on): Add stdbool, stdlib.
41109         (configure.ac): Turn on module indicator.
41110         * modules/strtod-tests: New module.
41111
41112 2008-03-29  Eric Blake  <ebb9@byu.net>
41113
41114         Fix ftell on mingw.
41115         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41116         * modules/ftell-tests (Depends-on): Add binary-io.
41117         * modules/ftello-tests (Depends-on): Likewise.
41118         * tests/test-ftell.c (main): Enhance test to cover behavior after
41119         ungetc.  Enforce binary mode.
41120         * tests/test-ftello.c (main): Likewise.
41121
41122         Pass test-freadseek on cygwin.
41123         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41124         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41125         ungetc buffer.
41126
41127         * tests/test-fflush2.c (main): Fix typo.
41128
41129 2008-03-29  Bruno Haible  <bruno@clisp.org>
41130
41131         * tests/test-fflush2.c (main): Temporarily disable the contents of
41132         this test.
41133         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41134         Reported by Eric Blake.
41135
41136 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41137
41138         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41139         (GC_SHA224_DIGEST_SIZE): Add.
41140
41141         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41142         (gc_hash_digest_length): Likewise.
41143         (gc_hash_buffer): Likewise.
41144
41145 2008-03-25  Bruno Haible  <bruno@clisp.org>
41146
41147         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41148         detail which gettext release to use.
41149         Reported by Simon Josefsson.
41150
41151 2008-03-26  Jim Meyering  <meyering@redhat.com>
41152
41153         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41154         * modules/gnumakefile (clean-GNUmakefile): Also, use
41155         test ... && ... || : syntax rather than if-then ... fi.
41156
41157         gnumakefile: Don't double-quote-expand $(VPATH) value.
41158         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41159
41160 2008-03-24  Eric Blake  <ebb9@byu.net>
41161
41162         Alter GNUmakefile to install into top directory.
41163         * modules/maintainer-makefile: Split, and add dependency...
41164         * modules/gnumakefile: to this new module.
41165         * build-aux/GNUmakefile: Move...
41166         * top/GNUmakefile: ...here.
41167         * build-aux/maint.mk: Move...
41168         * top/maint.mk: ...here.
41169         * MODULES.html.sh (Support for maintaining...): Document new
41170         module.
41171
41172 2008-03-23  Bruno Haible  <bruno@clisp.org>
41173
41174         * gnulib-tool: New options --vc-files, --no-vc-files.
41175         (func_usage): Document them.
41176         (vc_files): New variable.
41177         (func_import): Consider vc_files.
41178         (func_create_testdir): Set vc_files to empty.
41179         Suggested by Jim Meyering and Karl Berry.
41180
41181 2008-03-23  Bruno Haible  <bruno@clisp.org>
41182
41183         Fix regex compilation error on HP-UX 11.
41184         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41185         * modules/regex (Files): Add m4/mbstate_t.m4.
41186         Reported by Ton Voon <ton.voon@altinity.com>.
41187
41188 2008-03-23  Bruno Haible  <bruno@clisp.org>
41189
41190         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41191
41192 2008-03-23  Eric Blake  <ebb9@byu.net>
41193             Bruno Haible  <bruno@clisp.org>
41194
41195         Install files from top/ in the destination directory.
41196         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41197         augmentation also for the files from top/.
41198         (func_import, func_create_testdir): Rewrite file names:
41199         top/filename -> filename.
41200
41201 2008-03-23  Bruno Haible  <bruno@clisp.org>
41202
41203         Tweak "gnulib --version" output.
41204         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41205
41206 2008-03-23  Bruno Haible  <bruno@clisp.org>
41207
41208         Tweak "gnulib --version" output.
41209         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41210         rather than contents of ChangeLog, when possible.
41211
41212 2008-03-21  Eric Blake  <ebb9@byu.net>
41213
41214         More --version tweaks.
41215         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41216         date of last ChangeLog entry.
41217
41218 2008-03-21  Jim Meyering  <meyering@redhat.com>
41219
41220         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41221
41222 2008-03-20  Eric Blake  <ebb9@byu.net>
41223
41224         VPATH fix.
41225         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41226
41227 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41228
41229         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41230         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41231
41232 2008-03-20  Eric Blake  <ebb9@byu.net>
41233
41234         Sync GNUmakefile with coreutils.
41235         * build-aux/GNUmakefile (have-Makefile): Rename...
41236         (_have-Makefile): ...to this, for namespace consideration.
41237         (GNUmakefile.cfg): Include, if present.
41238         (_autoreconf): Define a default.
41239         (_is-dist-target): New rule for rebuilds to pick up intra-release
41240         version.
41241         (maint-cfg.mk): Rename...
41242         (cfg.mk): ...to this.
41243
41244 2008-03-18  Jim Meyering  <meyering@redhat.com>
41245
41246         New script and module: mktempd
41247         * MODULES.html.sh (maint+release support): Add mktempd.
41248         * build-aux/mktempd: New file.
41249         * modules/mktempd: New file.
41250
41251 2008-03-15  Jim Meyering  <meyering@redhat.com>
41252
41253         Undo last change.
41254         * lib/sha1.c, lib/md5.c: 63 != ~63.
41255         Reported by Andreas Schwab.
41256
41257         sha1.c, md5.c: Hoist a redundant expression.
41258         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41259         "ctx->buflen" only once, before calling *_process_block.
41260         * lib/md5.c (md5_process_bytes): Likewise.
41261
41262 2008-03-14  Eric Blake  <ebb9@byu.net>
41263
41264         Bump copyright year in files generated by gnulib-tool.
41265         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41266         gnulib-tool, rather than hard-coding it.
41267
41268         Fix 'gnulib-tool --version' output to work with git.
41269         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41270         (startup): ...here.
41271         (func_version): Use it to invoke git-version-gen, rather than
41272         relying on CVS keyword expansion.  Modernize wording.
41273         (cvsdatestamp, last_checkin_date, version): Kill unused
41274         variables.
41275
41276 2008-03-12  Jim Meyering  <meyering@redhat.com>
41277
41278         Recognize optional cast of the argument to free.
41279         * build-aux/useless-if-before-free: Update regexps.
41280
41281         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41282
41283 2008-03-11  Bruno Haible  <bruno@clisp.org>
41284
41285         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41286         by a single package.
41287         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41288         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41289         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41290         Reported by Sam Steingold <sds@gnu.org>.
41291
41292 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41293
41294         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41295         repositories.
41296
41297 2008-03-11  Bruno Haible  <bruno@clisp.org>
41298
41299         Avoid conflicts between local macro definitions.
41300         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41301         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41302
41303 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41304             Bruno Haible  <bruno@clisp.org>
41305
41306         Make va_copy work with some version of xlc on AIX 5.1.
41307         * lib/stdarg.in.h: New file.
41308         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41309         On AIX, use a <stdarg.h> file substitute.
41310         * modules/stdarg (Files): Add lib/stdarg.in.h.
41311         (Depends-on): Add include_next.
41312         (Makefile.am): Build a stdarg.h substitute if requested.
41313         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41314
41315 2008-03-10  Bruno Haible  <bruno@clisp.org>
41316
41317         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41319         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41320
41321 2008-03-10  Bruno Haible  <bruno@clisp.org>
41322
41323         * modules/stdlib (Depends-on): Add include_next, remove
41324         absolute-header.
41325
41326 2008-03-09  Bruno Haible  <bruno@clisp.org>
41327
41328         * lib/freadahead.h (freadahead): Document more precisely.
41329         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41330         the sum of both buffer sizes.
41331         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41332         * NEWS: Document the change.
41333
41334 2008-03-09  Bruno Haible  <bruno@clisp.org>
41335
41336         Extend freadptr to return also the buffer size.
41337         * lib/freadptr.h (freadptr): Add sizep argument.
41338         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41339         (freadptr): Add sizep argument. Determine buffer size like freadahead
41340         does.
41341         * tests/test-freadptr.c: Don't include freadahead.h.
41342         (main): Adapt for new calling convention of freadptr.
41343         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41344         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41345         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41346         tests/test-freadptr2.sh.
41347         (Depends): Remove freadahead.
41348         (TESTS): Add test-freadptr2.sh.
41349         (check_PROGRAMS): Add test-freadptr2.
41350
41351 2008-03-09  Bruno Haible  <bruno@clisp.org>
41352
41353         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41354         Report and solution by Simon Josefsson.
41355
41356 2008-03-06  Bruno Haible  <bruno@clisp.org>
41357
41358         Make fflush after ungetc work on BSD platforms.
41359         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41360         * tests/test-fflush2.c: New file.
41361         * tests/test-fflush2.sh: New file.
41362         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41363         tests/test-fflush2.c.
41364         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41365         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41366
41367 2008-03-06  Eric Blake  <ebb9@byu.net>
41368
41369         Likewise for ftello.
41370         * modules/ftello (Dependencies): Add extensions.
41371         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41372
41373 2008-03-06  Bruno Haible  <bruno@clisp.org>
41374
41375         * modules/fseeko (Dependencies): Add extensions.
41376         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41377         Needed on glibc systems.
41378
41379 2008-03-06  Bruno Haible  <bruno@clisp.org>
41380
41381         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41382         email address.
41383         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41384
41385 2008-03-06  Bruno Haible  <bruno@clisp.org>
41386
41387         * users.txt: Add libgnupdf.
41388
41389 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41390
41391         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41392         (Header File Substitutes, Function Substitutes,
41393         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41394         (Build robot for gnulib): Fix typo.
41395
41396 2008-03-06  Bruno Haible  <bruno@clisp.org>
41397
41398         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41399         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41400
41401 2008-03-06  Bruno Haible  <bruno@clisp.org>
41402
41403         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41404         * doc/gnulib.texi: Include it.
41405
41406 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41407
41408         * modules/func (License): Change license to unlimited; there was
41409         no LGPL parts in the module anyway.
41410
41411 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41412
41413         * modules/__func__: Renamed to modules/func.
41414         * modules/__func__-tests: Renamed to modules/func-tests.
41415         * tests/test-__func__.c: Renamed to tests/test-func.c.
41416         * m4/__func__.m4: Renamed to m4/func.m4.
41417         * doc/gnulib.texi (__func__): Section renamed to func.
41418         Suggested by Eric Blake <ebb9@byu.net>.
41419
41420 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41421
41422         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41423         about __func__.  Make example self-contained.  Suggested by Eric
41424         Blake <ebb9@byu.net>.
41425
41426         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41427         Suggested by Eric Blake <ebb9@byu.net>.
41428
41429 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41430
41431         * modules/__func__: New file.
41432         * modules/__func__-tests: New file.
41433         * tests/test-__func__.c: New file.
41434         * m4/__func__.m4: New file.
41435         * doc/gnulib.texi (__func__): Document __func__ module.
41436
41437 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41438
41439         * modules/byteswap (License): Re-license as LGPLv2+.
41440
41441 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41442
41443         * doc/Makefile: Add pdf target.
41444
41445 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41446
41447         * modules/inline (License): Use 'unlimited', since there are only
41448         *.m4 files in this module.
41449
41450 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41451             Bruno Haible  <bruno@clisp.org>
41452
41453         Add support for HP C 7.1 on OpenVMS 8.3.
41454         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41455
41456 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41457
41458         Update VMS specifics.
41459         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41460
41461 2008-03-02  Jim Meyering  <meyering@redhat.com>
41462
41463         Remove the last dependency on the "free" module.
41464         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41465         Reported by Bob Proulx.
41466
41467         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41468
41469         Remove useless "if" tests before free.  Deprecate "free" module.
41470         * doc/posix-functions/free.texi: Mention that this
41471         module is no longer useful.
41472         * modules/free (Notice): Say this module is obsolete.
41473         * modules/readutmp (Depends-on): Remove free.
41474         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41475         * lib/putenv.c (putenv): Likewise.
41476         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41477         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41478         * tests/test-c-strcasestr.c (main): Likewise.
41479         * tests/test-c-strstr.c (main): Likewise.
41480         * tests/test-mbscasestr1.c (main): Likewise.
41481         * tests/test-mbscasestr2.c (main): Likewise.
41482         * tests/test-mbsstr1.c (main): Likewise.
41483         * tests/test-mbsstr2.c (main): Likewise.
41484         * tests/test-memmem.c (main): Likewise.
41485         * tests/test-strcasestr.c (main): Likewise.
41486         * tests/test-striconv.c (main): Likewise.
41487         * tests/test-striconveh.c (main): Likewise.
41488         * tests/test-striconveha.c (main): Likewise.
41489         * tests/test-strstr.c (main): Likewise.
41490
41491         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41492
41493         bootstrap: sync from coreutils again
41494         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41495
41496 2008-03-01  Jim Meyering  <meyering@redhat.com>
41497
41498         bootstrap: sync from coreutils
41499         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41500         also when the target doesn't exist.
41501
41502 2008-03-01  Eric Blake  <ebb9@byu.net>
41503
41504         Fix bugs in last patch.
41505         * lib/memchr2.c (memchr2): Fix typo.
41506         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41507         extension.
41508         Reported by Bruce Korb.
41509
41510         New module 'memchr2'.
41511         * modules/memchr2: New file.
41512         * modules/memchr2-tests: Likewise.
41513         * lib/memchr2.h: Likewise.
41514         * lib/memchr2.c: Likewise, based on memchr.c.
41515         * tests/test-memchr2.c: New test.
41516         * MODULES.html.sh (String handling): Add memchr2.
41517
41518 2008-02-29  Bruno Haible  <bruno@clisp.org>
41519
41520         * modules/freadseek-tests: New file.
41521         * tests/test-freadseek.sh: New file.
41522         * tests/test-freadseek.c: New file.
41523
41524         New module 'freadseek'.
41525         * modules/freadseek: New file.
41526         * lib/freadseek.h: New file.
41527         * lib/freadseek.c: New file.
41528         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41529
41530 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41531
41532         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41533         wydawca.
41534
41535         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41536         program_invocation_name and program_invocation_short_name are
41537         present.
41538
41539 2008-02-28  Bruno Haible  <bruno@clisp.org>
41540
41541         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41542         * tests/test-freadptr.sh: Also test non-seekable stdin.
41543
41544 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41545
41546         * build-aux/bootstrap (source_base, m4_base)
41547         (doc_base, tests_base): New variables.
41548         (gnulib_tool_options): Do not hardcode base directories, use
41549         the above variables instead.
41550
41551 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41552
41553         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41554
41555 2008-02-28  Bruno Haible  <bruno@clisp.org>
41556
41557         * modules/freadptr-tests: New file.
41558         * tests/test-freadptr.sh: New file.
41559         * tests/test-freadptr.c: New file.
41560
41561         New module 'freadptr'.
41562         * modules/freadptr: New file.
41563         * lib/freadptr.h: New file.
41564         * lib/freadptr.c: New file.
41565         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41566
41567 2008-02-26  Karl Berry  <karl@freefriends.org>
41568
41569         Sync from Libtool:
41570         * libltdl/argz.c (argz_add, argz_count): New functions.
41571         * libltdl/argz.in.h: Declare them.
41572         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41573
41574 2008-02-22  Bruno Haible  <bruno@clisp.org>
41575
41576         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41577         is a pointer type.  Needed for HP-UX 10.
41578         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41579         * doc/posix-functions/gmtime_r.texi: Likewise.
41580         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41581
41582 2008-02-24  Bruno Haible  <bruno@clisp.org>
41583
41584         * modules/environ-tests: New file.
41585         * tests/test-environ.c: New file.
41586
41587         New module 'environ'.
41588         * modules/environ: New file.
41589         * lib/unistd.in.h (environ): New declaration.
41590         * m4/environ.m4: New file.
41591         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41592         after use.
41593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41594         HAVE_DECL_ENVIRON.
41595         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41596         HAVE_DECL_ENVIRON.
41597         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41598         wrong claim that 'environ' is missing on some systems.
41599         * modules/execute (Depends-on): Add environ.
41600         * lib/execute.c (environ): Remove fallback declaration.
41601         * modules/pipe (Depends-on): Add environ.
41602         * lib/pipe.c (environ): Remove fallback declaration.
41603         * modules/setenv (Depends-on): Add environ.
41604         * lib/setenv.c (environ): Remove fallback declaration.
41605         * modules/unsetenv (Depends-on): Add environ.
41606         * lib/unsetenv.c (environ): Remove fallback declaration.
41607         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41608         m4/environ.m4.
41609         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41610         (gl_PREREQ_UNSETENV): Likewise.
41611
41612 2008-02-24  Bruno Haible  <bruno@clisp.org>
41613
41614         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41615
41616 2008-02-20  Bob Proulx  <bob@proulx.com>
41617
41618         Enable use of older two part flavor 'git describe'.
41619         * build-aux/git-version-gen: If using the older two part flavor of
41620         git version then recreate the third part now present in the
41621         newer three part flavor of git describe.
41622
41623 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41624
41625         * lib/fts.c (fts_build): Typo correction to comment.
41626
41627 2008-02-17  Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41630         generating no-op conflicts.
41631
41632 2008-02-17  Bruno Haible  <bruno@clisp.org>
41633
41634         Speed up by 10%.
41635         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41636         result_entries, rather than an index-based loop.
41637
41638 2008-02-17  Bruno Haible  <bruno@clisp.org>
41639
41640         Speed up by 25%.
41641         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41642         'hashcode_cached'.
41643         (entry_create): New function.
41644         (entry_hashcode): Use the cached hashcode if possible.
41645         (read_changelog_file, try_split_merged_entry): Use entry_create.
41646
41647 2008-02-17  Bruno Haible  <bruno@clisp.org>
41648
41649         Speed up from O(n^2) to O(n) for long ChangeLog files.
41650         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41651         (read_changelog_file): Change implementation of entries_reversed list
41652         to rbtreehash.
41653         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41654
41655 2008-02-17  Bruno Haible  <bruno@clisp.org>
41656
41657         New option --split-merged-entry.
41658         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41659         (find_paragraph_end, try_split_merged_entry): New functions.
41660         (long_options): Add option --split-merged-entry.
41661         (usage): Document option --split-merged-entry.
41662         (main): Implement option --split-merged-entry.
41663         Reported by Eric Blake.
41664
41665 2008-02-17  Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/git-merge-changelog.c: Include c-strstr.h.
41668         (main): Support the "git pull --rebase" situation.
41669         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41670         Reported by Eric Blake.
41671
41672 2008-02-16  Eric Blake  <ebb9@byu.net>
41673
41674         Avoid doubling \ in common case of "c-maybe" quoting style.
41675         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41676         eliding outer quotes.
41677         * lib/quotearg.h: Document this.
41678         * tests/test-quotearg.c (result_strings, inputs, results_g)
41679         (flag_results, locale_results): Test it by adding a new string to
41680         each test group.
41681         (compare_strings): Test new string.
41682
41683 2008-02-13  Eric Blake  <ebb9@byu.net>
41684
41685         Avoid trigraph quoting in default output.
41686         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41687         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41688         unless explicitly requested.
41689         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41690
41691 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41692
41693         Don't rely on signed integer overflowing to negative value.
41694         * lib/getugroups.c (getugroups): Include <limits.h>.
41695         Instead, compare against INT_MAX, and increment only if the test passes.
41696
41697 2008-02-13  Jim Meyering  <meyering@redhat.com>
41698         and Eric Blake  <ebb9@byu.net>
41699
41700         Avoid shadowing warning and compile errors on Linux.
41701         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41702         forwarding macros on Linux.
41703         (dcgettext): Define a stub, for Linux.
41704         (results_g, main): Avoid warnings.
41705
41706 2008-02-12  Eric Blake  <ebb9@byu.net>
41707
41708         Silence warning in last patch.
41709         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41710
41711         Quotearg part 4: add tests, fix c-maybe colon quoting.
41712         * lib/quotearg.h: Improve documentation.
41713         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41714         escapes when adding outer quotes.  When quoting trigraphs, use
41715         valid C notation.  When quoting NUL, omit extra characters if next
41716         character is not digit.  Alter prototype.
41717         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41718         callers.
41719         * modules/quotearg-tests: New module.
41720         * tests/test-quotearg.c: New test.
41721
41722 2008-02-07  Eric Blake  <ebb9@byu.net>
41723
41724         Quotearg part 3: add flag to control outer quote elision.
41725         * lib/quotearg.h (c_maybe_quoting_style): New style.
41726         (enum quoting_flags): Better documentation of flags.
41727         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41728         c-maybe style.
41729         (quotearg_buffer_restyled): Handle new flag to elide outer
41730         quotes.
41731
41732         Quotearg part 2: add flag that can control NUL elision.
41733         * lib/quotearg.h (set_quoting_flags): New prototype.
41734         * lib/quotearg.c (struct quoting_options): Add flag field.
41735         (set_quoting_flags): New function.
41736         (quotearg_buffer_restyled): Add flags parameter.
41737         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41738         (quotearg_n_options): Set the flag, since length cannot be
41739         returned.
41740         (quoting_options_from_style): Default flags correctly.
41741
41742         Quotearg part 1: more wrappers, restore quotearg_char state.
41743         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41744         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41745         (quotearg_colon_mem): New wrappers.
41746         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41747         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41748         functions.
41749         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41750         (quotearg_colon_mem): New functions.
41751
41752 2008-02-11  Bruno Haible  <bruno@clisp.org>
41753
41754         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41755         library in the current directory: it does not work with parallel make.
41756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41757
41758 2008-02-11  Bruno Haible  <bruno@clisp.org>
41759
41760         * .gitattributes: New file.
41761
41762 2008-02-11  Jim Meyering  <meyering@redhat.com>
41763
41764         useless-if-before-free: Fix reversed exit values.
41765         * build-aux/useless-if-before-free: Use correct values
41766         for EXIT_MATCH and EXIT_NO_MATCH.
41767
41768         * build-aux/useless-if-before-free: Close stdout carefully.
41769
41770 2008-02-10  Bruno Haible  <bruno@clisp.org>
41771
41772         New module 'git-merge-changelog'.
41773         * modules/git-merge-changelog: New file.
41774         * lib/git-merge-changelog.c: New file.
41775
41776 2008-02-10  Jim Meyering  <meyering@redhat.com>
41777
41778         useless-if-before-free: New option: --list (-l).
41779
41780         useless-if-before-free: Don't exit immediately upon open failure.
41781         * build-aux/useless-if-before-free: Exit 2 for errors.
41782         Upon failure to open a file, don't exit immediately.
41783         Rather, just warn and continue with any remaining files.
41784
41785 2008-02-10  Bruno Haible  <bruno@clisp.org>
41786
41787         New abstract list operation 'node_set_value'.
41788         * lib/gl_list.h (gl_list_node_set_value): New function.
41789         (struct gl_list_implementation): New field node_set_value.
41790         * lib/gl_list.c (gl_list_node_set_value): New function.
41791         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41792         (gl_array_list_implementation): Update.
41793         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41794         (gl_carray_list_implementation): Update.
41795         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41796         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41797         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41798         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41799         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41801         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41802         Update.
41803         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41804         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41805         (gl_sublist_list_implementation): Update.
41806
41807 2008-02-10  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41810         Needed when ELEMENT is #defined to 'some_type *'.
41811
41812 2008-02-10  Jim Meyering  <meyering@redhat.com>
41813
41814         New script and module: useless-if-before-free
41815         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41816         * build-aux/useless-if-before-free: New file.
41817         * modules/useless-if-before-free: New file.
41818
41819         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41820
41821         xstrtol_error: Fix typo.
41822         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41823         s/exit_failure/exit_status/.
41824
41825 2008-02-09  Jim Meyering  <meyering@redhat.com>
41826
41827         New script and module: gitlog-to-changelog
41828         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41829         * modules/gitlog-to-changelog: New file.
41830         * build-aux/gitlog-to-changelog: New file.
41831
41832 2008-02-08  Jim Meyering  <meyering@redhat.com>
41833
41834         Avoid two "parameter unused" warnings.
41835         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41836         Mark "st" as used.
41837
41838         Use "git COMMAND", not "git-COMMAND".
41839         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41840         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41841         * build-aux/git-version-gen: Use "git status", not "git-status".
41842
41843 2008-02-07  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41846         Avoids a crash on Windows Vista.
41847         Reported by Adam Strzelecki <ono@java.pl> via
41848         Simon Josefsson <simon@josefsson.org>.
41849
41850 2008-02-06  Bruno Haible  <bruno@clisp.org>
41851
41852         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41853         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41854         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41856         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41858         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41859         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41867         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41868         left-adjust flag.
41869         * tests/test-snprintf-posix.h (test_function): Likewise.
41870         * tests/test-sprintf-posix.h (test_function): Likewise.
41871         * tests/test-vasprintf-posix.c (test_function): Likewise.
41872         * doc/posix-functions/fprintf.texi: Update.
41873         * doc/posix-functions/printf.texi: Update.
41874         * doc/posix-functions/snprintf.texi: Update.
41875         * doc/posix-functions/sprintf.texi: Update.
41876         * doc/posix-functions/vfprintf.texi: Update.
41877         * doc/posix-functions/vprintf.texi: Update.
41878         * doc/posix-functions/vsnprintf.texi: Update.
41879         * doc/posix-functions/vsprintf.texi: Update.
41880         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41881
41882 2008-02-06  Bruno Haible  <bruno@clisp.org>
41883
41884         Fix bug introduced on 2008-01-26.
41885         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41886
41887 2008-02-06  Bruno Haible  <bruno@clisp.org>
41888
41889         Fix bug introduced on 2007-06-10.
41890         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41891         !NEED_PRINTF_FLAG_ZERO.
41892
41893 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41894
41895         getloadavg: use libperfstat on AIX5
41896         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41897
41898 2008-02-03  Bruno Haible  <bruno@clisp.org>
41899
41900         * lib/diffseq.h: Add comments about required #includes.
41901         Reported by Michael Biggs <gnulib@doubleplum.net>.
41902
41903 2008-02-01  Bruno Haible  <bruno@clisp.org>
41904
41905         * users.txt: Add gnuit.
41906
41907 2008-01-31  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/md4.c (set_uint32): Mark as inline.
41910         * lib/md5.c (set_uint32): Likewise.
41911         * lib/sha1.c (set_uint32): Likewise.
41912         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41913         * m4/md5.m4 (gl_MD5): Likewise.
41914         * m4/sha1.m4 (gl_SHA1): Likewise.
41915
41916 2008-01-31  Jim Meyering  <meyering@redhat.com>
41917
41918         Use "sizeof VAR", rather than a literal "4".
41919         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41920         * lib/md4.c (md4_read_ctx): Likewise.
41921         * lib/sha1.c (sha1_read_ctx): Likewise.
41922
41923 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41924
41925         * tests/test-sha1.c: New file, based on test-md5.c.
41926
41927         * modules/crypto/sha1-tests: New file.
41928
41929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41930
41931         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41932
41933 2008-01-31  Jim Meyering  <meyering@redhat.com>
41934
41935         Prefer "sizeof v" over the equivalent "4".
41936         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41937         * lib/md5.c (set_uint32): Likewise.
41938         * lib/sha1.c (set_uint32): Likewise.
41939
41940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41941
41942         * lib/sha1.c (set_uint32): Mark function as static.
41943
41944 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41945
41946         md2: clarify comments to say that alignment is not required.
41947         * lib/md2.h: Remove warning about alignment in comment.
41948         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41949         never been required.
41950
41951 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41952
41953         md4: adapt alignment constraint fix from sha1.
41954         * lib/md4.c (set_uint32): New function, from sha1.c
41955         (md4_read_ctx): Use it.
41956         (md4_finish_ctx): Doc fix.
41957         * lib/md4.h: Doc fix.
41958
41959 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41960
41961         md5: adapt alignment constraint fix from sha1.
41962         * lib/md5.c (set_uint32): New function, from sha1.c
41963         (md5_read_ctx): Use it.
41964         (md5_finish_ctx): Doc fix.
41965         * lib/md5.h: Doc fix.
41966
41967 2008-01-30  Peter Palfrader  <weasel@debian.org>
41968
41969         sha1: remove the result buffer alignment constraint
41970         * lib/sha1.c (set_uint32): New function.
41971         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41972         constraint.
41973         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41974         * lib/sha1.h: Likewise.
41975
41976 2008-01-30  Andreas Schwab  <schwab@suse.de>
41977             Bruno Haible  <bruno@clisp.org>
41978
41979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41980         correct definition of LDBL_MIN_EXP.
41981
41982 2008-01-30  Karl Berry  <karl@gnu.org>
41983
41984         * config/srclist-update: try to preserve x bit on updates.
41985         * config/srclistvars.sh: update for karl.
41986
41987 2008-01-29  Jim Meyering  <meyering@redhat.com>
41988
41989         vasnprintf.c: Avoid warning about unused label
41990         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41991         "overflow" label definition and associated code with the
41992         same cpp condition that guards the sole use of that label.
41993
41994 2008-01-26  Bruno Haible  <bruno@clisp.org>
41995
41996         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41997         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41998         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41999         * lib/isnanl-nolibm.h (isnanl): Likewise.
42000         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42001
42002 2008-01-26  Bruno Haible  <bruno@clisp.org>
42003
42004         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42005         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42006
42007 2008-01-26  Bruno Haible  <bruno@clisp.org>
42008
42009         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42010         GCC >= 4.0 built-in.
42011         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42012
42013 2008-01-26  Bruno Haible  <bruno@clisp.org>
42014
42015         Rename isnan, applicable to 'double' only, to isnand.
42016         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42017         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42018         (configure.ac): Update.
42019         (Include): Replace "isnan.h" with "isnand.h".
42020         * m4/isnand.m4: Renamed from m4/isnan.m4.
42021         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42022         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42023         instead of isnan.c.
42024         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42025         instead of HAVE_ISNAN_IN_LIBC.
42026         (isnand): Renamed from isnan.
42027         * lib/isnand.c: New file.
42028         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42029         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42030         (Makefile.am): Update.
42031         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42032         Include isnand.h instead of isnan.h.
42033         (main): Test isnand instead of isnan.
42034         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42035         isnan-nolibm.
42036         * modules/frexp (Depends-on): Likewise.
42037         * modules/frexp-tests (Depends-on): Likewise.
42038         * modules/frexp-nolibm (Depends-on): Likewise.
42039         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42040         * modules/isfinite (Depends-on): Likewise.
42041         * modules/round-tests (Depends-on): Likewise.
42042         * modules/signbit (Depends-on): Likewise.
42043         * modules/signbit-tests (Depends-on): Likewise.
42044         * modules/snprintf-posix (Depends-on): Likewise.
42045         * modules/sprintf-posix (Depends-on): Likewise.
42046         * modules/trunc-tests (Depends-on): Likewise.
42047         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42048         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42049         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42050         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42051         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42052         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42053         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42054         * modules/vasnprintf-posix (Depends-on): Likewise.
42055         * modules/vasprintf-posix (Depends-on): Likewise.
42056         * modules/vfprintf-posix (Depends-on): Likewise.
42057         * modules/vsnprintf-posix (Depends-on): Likewise.
42058         * modules/vsprintf-posix (Depends-on): Likewise.
42059         * lib/frexp.c: Include isnand.h instead of isnan.h.
42060         (ISNAN): Set to isnand instead of isnan.
42061         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42062         (gl_isfinited): Use isnand instead of isnan.
42063         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42064         (gl_signbitd): Use isnand instead of isnan.
42065         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42066         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42067         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42068         (main): Use isnand instead of isnan.
42069         * tests/test-round1.c: Include isnand.h.
42070         (main): Use isnand instead of isnan.
42071         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42072         (ISNAN): Set to isnand instead of isnan.
42073         * tests/test-trunc1.c: Include isnand.h.
42074         (main): Use isnand instead of isnan.
42075         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42076         (equal): Use isnand instead of isnan.
42077         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42078         isnand-nolibm.
42079         * NEWS: Mention the change.
42080
42081 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42082             Bruno Haible  <bruno@clisp.org>
42083
42084         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42085         the GCC builtins for signbits are present and set
42086         REPLACE_SIGNBIT_USING_GCC if so.
42087         * lib/math.in.h (signbit): Define using GCC builtins if
42088         REPLACE_SIGNBIT_USING_GCC is set.
42089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42090         REPLACE_SIGNBIT_USING_GCC.
42091         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42092
42093 2008-01-25  Jim Meyering  <meyering@redhat.com>
42094
42095         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42096         * lib/poll.c: Include <config.h>, not "config.h".
42097         * tests/test-getaddrinfo.c: Likewise.
42098
42099 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42100
42101         * modules/sockets-tests: New file.
42102
42103 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42104
42105         * modules/sockets: New module, can be used to call WSA_Startup and
42106         WSA_Cleanup when needed.
42107
42108         * lib/sockets.h, lib/sockets.c: New files.
42109
42110         * m4/sockets.m4: New file.
42111
42112         * tests/test-sockets.c: New file.
42113
42114 2008-01-19  Bruno Haible  <bruno@clisp.org>
42115
42116         * doc/posix-headers: Renamed from doc/headers.
42117         * doc/posix-functions: Renamed from doc/functions.
42118         * doc/gnulib.texi: Update.
42119
42120 2008-01-19  Bruno Haible  <bruno@clisp.org>
42121
42122         * doc/glibc-functions/strcasestr.texi: Include contents of
42123         doc/functions/strcasestr.texi, fixing the list of platforms.
42124         * doc/functions/strcasestr.texi: Remove file.
42125
42126 2008-01-19  Bruno Haible  <bruno@clisp.org>
42127
42128         * doc/glibc-functions/memmem.texi: Include contents of
42129         doc/functions/memmem.texi.
42130         * doc/functions/memmem.texi: Remove file.
42131
42132 2008-01-18  Bruno Haible  <bruno@clisp.org>
42133
42134         * doc/glibc-functions/*.texi: New files.
42135         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42136         to use the new files.
42137
42138 2008-01-17  Bruno Haible  <bruno@clisp.org>
42139
42140         * tests/test-gethostname.c (main): Fix printf statement.
42141
42142 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42143
42144         * modules/gethostname-tests: New file.
42145
42146         * tests/test-gethostname.c: New file.
42147
42148 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42149
42150         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42151         used by the UNAME case.  Reported by Bruno Haible
42152         <bruno@clisp.org>.
42153
42154 2008-01-17  Eric Blake  <ebb9@byu.net>
42155
42156         Convert c-strcasestr to be more efficient.
42157         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42158         (Depends-on): Add c-strcase, remove malloca, strnlen.
42159         * tests/test-c-strcasestr.c (main): Enhance test.
42160         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42161
42162 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42163
42164         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42165         Use it in creating po/Makevars.
42166
42167 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42168
42169         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42170         Applications that requires it should initialize libgcrypt
42171         manually.
42172
42173 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42174
42175         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42176
42177 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42178
42179         Fix problem with getdate on mingw32 reported by Simon Josefsson
42180         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42181         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42182         tzname", when deciding whether to declare tzname.
42183         * lib/strftime.c (tzname): Likewise.
42184
42185 2008-01-15  Bruno Haible  <bruno@clisp.org>
42186
42187         Work around a MacOS X 10.5 bug in frexpl().
42188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42189         * doc/functions/frexpl.texi: Document the bug.
42190         Reported by Elias Pipping <pipping@gentoo.org>.
42191
42192 2008-01-14  Eric Blake  <ebb9@byu.net>
42193
42194         Touch up previous patch.
42195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42196         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42197
42198         Convert strcasestr module to use Two-Way algorithm.
42199         * modules/strcasestr-simple: New module, based on the old
42200         strcasestr, but with Two-Way rather than KMP.
42201         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42202         * lib/string.in.h (rpl_strcasestr): Declare.
42203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42204         performance.
42205         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42206         * modules/string (Makefile.am): Support strcasestr.
42207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42208         * modules/strcasestr-tests (Depends-on): Check for alarm.
42209         * tests/test-strcasestr.c: Augment test.
42210         * lib/str-two-way.h: Clean up stray macro.
42211         * NEWS: Document new module.
42212         * MODULES.html.sh (string handling): Likewise.
42213         * doc/functions/strcasestr.texi: New file.
42214         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42215         here, since it is not a POSIX function.
42216
42217 2008-01-14  Colin Watson  <cjwatson@debian.org>
42218             Bruno Haible  <bruno@clisp.org>
42219
42220         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42221         works fine; if not, set REPLACE_STRSIGNAL.
42222         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42224         REPLACE_STRSIGNAL.
42225         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42226         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42227         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42228
42229 2008-01-14  Bruno Haible  <bruno@clisp.org>
42230
42231         * modules/strsignal (Include): Change to <string.h>.
42232
42233 2008-01-14  Colin Watson  <cjwatson@debian.org>
42234
42235         * modules/argp (Notice): Add a notice recommending to change
42236         XGETTEXT_OPTIONS.
42237         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42238
42239 2008-01-13  Colin Watson  <cjwatson@debian.org>
42240
42241         * modules/strsignal-tests: New file.
42242         * tests/test-strsignal.c: New file.
42243
42244         * lib/strsignal.c: New file, from glibc with modifications.
42245         * lib/siglist.h: New file, from glibc with modifications.
42246         * lib/string.in.h (strsignal): New declaration.
42247         * m4/strsignal.m4: New file.
42248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42249         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42250         * modules/strsignal: New file.
42251         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42252         HAVE_DECL_STRSIGNAL.
42253
42254 2008-01-13  Bruno Haible  <bruno@clisp.org>
42255
42256         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42257         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42258         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42260
42261 2008-01-13  Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42264         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42265         * lib/argp.h (__attribute__): Likewise.
42266         * lib/c-stack.c (__attribute__): Likewise.
42267         * lib/error.h (__attribute__): Likewise.
42268         * lib/fts.c (__attribute__): Likewise.
42269         * lib/openat.h (__attribute__): Likewise.
42270         * lib/stdio.in.h (__attribute__): Likewise.
42271         * lib/string.in.h (__attribute__): Likewise.
42272         * lib/utimens.c (__attribute__): Likewise.
42273         * lib/vasnprintf.h (__attribute__): Likewise.
42274         * lib/xalloc.h (__attribute__): Likewise.
42275         * lib/xprintf.h (__attribute__): Likewise.
42276         * lib/xstrtol.h (__attribute__): Likewise.
42277         * lib/xvasprintf.h (__attribute__): Likewise.
42278
42279 2008-01-12  Bruno Haible  <bruno@clisp.org>
42280
42281         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42282         * doc/glibc-headers/a.out.texi: New file.
42283         * doc/glibc-headers/aliases.texi: New file.
42284         * doc/glibc-headers/alloca.texi: New file.
42285         * doc/glibc-headers/ar.texi: New file.
42286         * doc/glibc-headers/argp.texi: New file.
42287         * doc/glibc-headers/argz.texi: New file.
42288         * doc/glibc-headers/byteswap.texi: New file.
42289         * doc/glibc-headers/crypt.texi: New file.
42290         * doc/glibc-headers/endian.texi: New file.
42291         * doc/glibc-headers/envz.texi: New file.
42292         * doc/glibc-headers/err.texi: New file.
42293         * doc/glibc-headers/error.texi: New file.
42294         * doc/glibc-headers/execinfo.texi: New file.
42295         * doc/glibc-headers/fpu_control.texi: New file.
42296         * doc/glibc-headers/fstab.texi: New file.
42297         * doc/glibc-headers/fts.texi: New file.
42298         * doc/glibc-headers/getopt.texi: New file.
42299         * doc/glibc-headers/ieee754.texi: New file.
42300         * doc/glibc-headers/ifaddrs.texi: New file.
42301         * doc/glibc-headers/libintl.texi: New file.
42302         * doc/glibc-headers/mcheck.texi: New file.
42303         * doc/glibc-headers/mntent.texi: New file.
42304         * doc/glibc-headers/obstack.texi: New file.
42305         * doc/glibc-headers/paths.texi: New file.
42306         * doc/glibc-headers/printf.texi: New file.
42307         * doc/glibc-headers/pty.texi: New file.
42308         * doc/glibc-headers/resolv.texi: New file.
42309         * doc/glibc-headers/shadow.texi: New file.
42310         * doc/glibc-headers/sysexits.texi: New file.
42311         * doc/glibc-headers/ttyent.texi: New file.
42312
42313 2008-01-12  Jim Meyering  <meyering@redhat.com>
42314
42315         announce-gen: emit Gnulib's git-based version string.
42316         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42317         New option --gnulib-version=V, where V is expected to be
42318         the output of running git describe in the gnulib directory.
42319         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42320         not useful, and plan to stop publishing an xdelta file with each
42321         coreutils release.
42322
42323         * build-aux/announce-gen: Also check for lzma-compressed files.
42324
42325 2008-01-11  Bruno Haible  <bruno@clisp.org>
42326
42327         * tests/test-memmem.c (main): Increase maximum allowed time.
42328         * tests/test-strstr.c (main): Likewise.
42329
42330 2008-01-11  Bruno Haible  <bruno@clisp.org>
42331
42332         * doc/functions/memmem.texi: Add more precisions about platforms.
42333         * doc/functions/strstr.texi: Likewise.
42334
42335 2008-01-10  Eric Blake  <ebb9@byu.net>
42336
42337         * m4/strstr.m4: Delete cruft from copy-n-paste.
42338         Reported by Bruno Haible.
42339
42340 2008-01-10  Bruno Haible  <bruno@clisp.org>
42341
42342         Make c-strstr rely on strstr.
42343         * lib/c-strstr.c: Don't include str-kmp.h.
42344         (c_strstr): Define in terms of strstr.
42345         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42346         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42347
42348 2008-01-10  Bruno Haible  <bruno@clisp.org>
42349
42350         * doc/gnulib.texi (String Functions in C Locale): New section.
42351         * doc/c-ctype.texi: New file.
42352         * doc/c-strcase.texi: New file.
42353         * doc/c-strcaseeq.texi: New file.
42354         * doc/c-strcasestr.texi: New file.
42355         * doc/c-strstr.texi: New file.
42356         * doc/c-strtod.texi: New file.
42357         * doc/c-strtold.texi: New file.
42358
42359 2008-01-10  Eric Blake  <ebb9@byu.net>
42360
42361         * lib/relocatable.h: Fix a comment.
42362
42363 2008-01-10  Eric Blake  <ebb9@byu.net>
42364
42365         Share two-way algorithm.
42366         * lib/str-two-way.h: New file, merged from...
42367         * lib/memmem.c: ...here...
42368         * lib/strstr.c: ...and here.
42369         * modules/memmem (Files): Use it.
42370         * modules/strstr (Files): Likewise.
42371
42372         Avoid quadratic strstr implementations.
42373         * lib/strstr.c: New file.
42374         * m4/strstr.m4: Likewise.
42375         * modules/strstr: Likewise.
42376         * modules/strstr-tests: Likewise.
42377         * tests/test-strstr.c: Likewise.
42378         * lib/string.in.h (rpl_strstr): Declare.
42379         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42381         * modules/string (Makefile.am): Likewise.
42382         * MODULES.html.sh (string handling): Mention new module.
42383         * doc/functions/strstr.texi (strstr): Document the bug.
42384
42385 2008-01-10  Bruno Haible  <bruno@clisp.org>
42386
42387         * lib/relocatable.h (relocate): State whether result is freshly
42388         allocated or not.
42389         * lib/relocatable.c (relocate): Return a freshly allocated string
42390         instead of a pointer to a privately held string.
42391         Reported by Sylvain Beucler <beuc@gnu.org>.
42392
42393 2008-01-10  Colin Watson  <cjwatson@debian.org>
42394
42395         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42396         s/S_ISNLK/S_ISLNK/.
42397
42398 2008-01-09  Bruno Haible  <bruno@clisp.org>
42399
42400         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42401         and other files.
42402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42403         if it's only a guess.
42404         * modules/memmem: Simplify by depending on memmem-simple.
42405
42406 2008-01-09  Bruno Haible  <bruno@clisp.org>
42407
42408         Work around OpenBSD 4.0 tdelete() bug.
42409         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42410         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42411         macros and don't redefine the enum values.
42412         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42413         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42414         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42415
42416 2008-01-09  Bruno Haible  <bruno@clisp.org>
42417
42418         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42419         (main): Don't perform the tests if setlocale did not install a UTF-8
42420         locale. Needed on OpenBSD 4.0.
42421         * modules/wcwidth-tests (Depends-on): Add localcharset.
42422
42423 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42424
42425         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42426         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42427         * NEWS: announce this.
42428         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42429
42430 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42431         and Eric Blake  <ebb9@byu.net>
42432
42433         Add memmem-simple module.
42434         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42435         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42436         * modules/memmem-simple: New file.
42437         * modules/memmem (Description): Tweak.
42438         * MODULES.html.sh (string handling): Mention new module.
42439         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42440         addressed by memmem-simple.
42441         * NEWS: Document the difference.
42442
42443 2008-01-09  Eric Blake  <ebb9@byu.net>
42444
42445         Give gcc some memmem optimization hints.
42446         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42447         (strcasestr): Declare as pure.
42448         * modules/memmem (Maintainer): Claim my implementation.
42449
42450 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42451
42452         Support AIX 6.1 and higher.
42453         * build-aux/config.libpath: Likewise.
42454         * build-aux/config.rpath: Likewise.
42455
42456 2008-01-08  Jim Meyering  <meyering@redhat.com>
42457             Bruno Haible  <bruno@clisp.org>
42458
42459         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42460         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42461         Reported by Peter Fales in
42462         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42463
42464 2008-01-08  Bruno Haible  <bruno@clisp.org>
42465
42466         * modules/unictype/category-of (Depends-on): Add
42467         unictype/category-none.
42468         * modules/unictype/category-and-tests (Depends-on): Add
42469         unictype/category-{L,N,Lu,Nd}.
42470         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42471         * modules/unictype/category-or-tests (Depends-on): Add
42472         unictype/category-{L,N}.
42473         * modules/unictype/category-name-tests (Depends-on): Add
42474         unictype/category-{Z,Nl}.
42475         Reported by Simon Josefsson.
42476
42477 2008-01-08  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42480         convention better.
42481         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42482         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42483         Reported by Peter Miller <millerp@canb.auug.org.au>.
42484
42485 2008-01-08  Eric Blake  <ebb9@byu.net>
42486
42487         Rewrite memmem to guarantee linear complexity without malloc.
42488         * lib/memmem.c (memmem): Use Two-Way rather than
42489         Knuth-Morris-Pratt, to allow O(1) space usage.
42490         (critical_factorization, two_way_short_needle)
42491         (two_way_long_needle): New functions.
42492         (knuth_morris_pratt): Delete.
42493         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42494         Add stdint.
42495         * tests/test-memmem.c (main): Add tests for periodic needle and
42496         sublinear performance.
42497         * doc/functions/memmem.texi (memmem): Document other deficiencies
42498         in cygwin and older glibc.
42499
42500 2008-01-08  Bruno Haible  <bruno@clisp.org>
42501
42502         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42503         augmentation.
42504
42505 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42506
42507         Add a configure time option: --disable-acl.
42508         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42509         AC_ARG_ENABLE(acl).
42510
42511 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42512
42513         * tests/test-localename.c: Don't include obsolete "setenv.h".
42514
42515         * modules/localename-tests (Depends-on): Need unsetenv.
42516
42517 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42518
42519         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42520
42521 2008-01-06  Colin Watson  <cjwatson@debian.org>
42522
42523         * users.txt: Add man-db.
42524
42525 2008-01-07  Bruno Haible  <bruno@clisp.org>
42526
42527         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42528         previous section name.
42529
42530 2008-01-07  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/progname.c (set_program_name): Don't strip off a leading
42533         "lt-" prefix outside a .libs directory.
42534         Suggested by Paul Eggert.
42535
42536 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42537             Bruno Haible  <bruno@clisp.org>
42538
42539         Improve memory cleanup in 'relocatable' module.
42540         * lib/relocatable.h (compute_curr_prefix): Change return type to
42541         'char *'.
42542         * lib/relocatable.c (compute_curr_prefix): Change return type to
42543         'char *'. Free curr_installdir after use.
42544         (relocate): Free curr_prefix_better after use.
42545         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42546
42547 2008-01-01  Bruno Haible  <bruno@clisp.org>
42548
42549         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42550         failure on older glibc systems.
42551         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42552
42553 2008-01-05  Eric Blake  <ebb9@byu.net>
42554
42555         Avoid quadratic system memmem.
42556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42557         Reported by Ralf Wildenhues.
42558
42559         Fix memmem test for mingw.
42560         * modules/memmem-tests (configure.ac): Check for alarm.
42561         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42562         it.
42563         * doc/functions/memmem.texi: New file.
42564         * doc/gnulib.texi (Function Substitutes): Add memmem.
42565         Reported by Bruno Haible.
42566
42567 2008-01-04  Bruno Haible  <bruno@clisp.org>
42568
42569         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42570         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42571         gl_HEADER_STRING_H_DEFAULTS.
42572
42573 2008-01-04  Eric Blake  <ebb9@byu.net>
42574
42575         Shorten duration of memmem test.
42576         * tests/test-memmem.c (main): Use alarm to declare failure if test
42577         is taking too long.
42578         Reported by Ralf Wildenhues.
42579
42580 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42581
42582         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42583         string, needed by strerror.
42584
42585 2008-01-03  Colin Watson  <cjwatson@debian.org>
42586             Bruno Haible  <bruno@clisp.org>
42587
42588         * doc/gnulib-tool.texi (Localization): New section.
42589
42590 2008-01-02  Bruno Haible  <bruno@clisp.org>
42591
42592         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42593         variables to 'unsigned char *' type.
42594         Reported by Paul Eggert.
42595
42596 2008-01-02  Jim Meyering  <jim@meyering.net>
42597
42598         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42599
42600 2007-12-31  Jim Meyering  <jim@meyering.net>
42601
42602         Avoid use of private FTS type name.
42603         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42604
42605 2007-12-30  Karl Berry  <karl@gnu.org>
42606
42607         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42608         work around defect in Texinfo and/or the standalone Info browser.
42609
42610 2007-12-30  Bruno Haible  <bruno@clisp.org>
42611
42612         Unify 5 copies of the KMP code.
42613         * lib/str-kmp.h: New file.
42614         * lib/c-strcasestr.c: Include str-kmp.h.
42615         (knuth_morris_pratt): Remove function.
42616         (c_strcasestr): Update.
42617         * lib/c-strstr.c: Include str-kmp.h.
42618         (knuth_morris_pratt): Remove function.
42619         (c_strcasestr): Update.
42620         * lib/mbscasestr.c: Include str-kmp.h.
42621         (knuth_morris_pratt_unibyte): Remove function.
42622         * lib/mbsstr.c: Include str-kmp.h.
42623         (knuth_morris_pratt_unibyte): Remove function.
42624         * lib/strcasestr.c: Include str-kmp.h.
42625         (knuth_morris_pratt): Remove function.
42626         (strcasestr): Update.
42627         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42628         * modules/c-strstr (Files): Likewise.
42629         * modules/mbscasestr (Files): Likewise.
42630         * modules/mbsstr (Files): Likewise.
42631         * modules/strcasestr (Files): Likewise.
42632         Suggested by Paul Eggert.
42633
42634 2007-12-30  Bruno Haible  <bruno@clisp.org>
42635
42636         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42637         defined.
42638
42639 2007-12-30  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/xmalloca.h: Include xalloc.h.
42642         (xnmalloca): New macro.
42643
42644 2007-12-30  Bruno Haible  <bruno@clisp.org>
42645
42646         * lib/malloca.h (nmalloca): New macro.
42647         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42648         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42649         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42650         knuth_morris_pratt_multibyte): Likewise.
42651         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42652         knuth_morris_pratt_multibyte): Likewise.
42653         * lib/memmem.c (knuth_morris_pratt): Likewise.
42654         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42655
42656 2007-12-25  Bruno Haible  <bruno@clisp.org>
42657
42658         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42659         * lib/glob.c: Don't include openat.h.
42660         (link_exists2_p): Add back the code that deals with the
42661         !GLOB_ALTDIRFUNC case.
42662         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42663         let it do the filename concatenation.
42664         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42665         * modules/glob (Depends-on): Remove openat.
42666
42667 2007-12-31  Bruno Haible  <bruno@clisp.org>
42668
42669         * modules/dirfd (License): Change to LGPLv2+.
42670         Approved by Jim Meyering.
42671
42672 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42673
42674         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42675         when multiplying M by sizeof (size_t).
42676
42677 2007-12-10  Martin Lambers  <marlam@marlam.de>
42678
42679         Override getpagesize on mingw.
42680         * lib/getpagesize.c: New file.
42681         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42682         * modules/getpagesize (Files): Add lib/getpagesize.c.
42683         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42685         REPLACE_GETPAGESIZE.
42686         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42687
42688 2007-12-25  Bruno Haible  <bruno@clisp.org>
42689
42690         * modules/localcharset (Notice): New field.
42691         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42692         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42693
42694 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42695             Bruno Haible  <bruno@clisp.org>
42696
42697         Avoid using the syntax symbol() in formatted documentation.
42698         * MODULES.html.sh (func_module): When replacing symbol() with a
42699         hyperlink, remove the parentheses. Show an error if some remain.
42700         Recognize and render the '...' syntax.
42701         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42702         Rework. Add paragraph about GCC's inlining.
42703         * doc/alloca.texi: Likewise.
42704         * doc/error.texi: Remove parentheses from symbol reference.
42705         * doc/gnulib-intro.texi: Likewise.
42706         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42707         * modules/fnmatch (Description): Reword to say "the ... function".
42708         * modules/full-read (Description): Likewise.
42709         * modules/full-write (Description): Likewise.
42710         * modules/safe-read (Description): Likewise.
42711         * modules/safe-write (Description): Likewise.
42712         * modules/strchrnul (Description): Likewise.
42713         * modules/trim (Description): Likewise.
42714         * modules/error (Description): Remove parentheses from symbol
42715         references.
42716         * modules/verror (Description): Likewise.
42717         Reported by Karl Berry.
42718
42719 2007-12-25  Bruno Haible  <bruno@clisp.org>
42720
42721         Fixup after 2007-10-16 commit.
42722         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42723
42724 2007-12-24  Bruno Haible  <bruno@clisp.org>
42725
42726         Make --enable-relocatable work with DESTDIR.
42727         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42728         to compute installdir from destprog.
42729         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42730         also set the RELOC_DESTDIR variable.
42731         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42732
42733 2007-12-24  Bruno Haible  <bruno@clisp.org>
42734
42735         Fix link error due to xalloc_die().
42736         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42737         of xreadlink.
42738         * lib/relocwrapper.c: Update comments.
42739         * build-aux/install-reloc: Remove xreadlink.c from file list.
42740         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42741         xreadlink.c.
42742         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42743
42744 2007-12-24  Bruno Haible  <bruno@clisp.org>
42745
42746         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42747         * lib/setenv.h: Remove file.
42748         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42749         lib/setenv.h.
42750         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42751         (Depends-on): Add stdlib.
42752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42753         gl_FUNC_UNSETENV.
42754         (Include): Replace setenv.h with <stdlib.h>.
42755         * modules/unsetenv: New file.
42756         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42757         * lib/unsetenv.c: Include <stdlib.h> first.
42758         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42759         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42760         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42761         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42762         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42763         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42765         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42766         * doc/functions/unsetenv.texi: Update.
42767         * modules/xsetenv (Depends-on): Add unsetenv.
42768         * modules/getdate (Depends-on): Likewise.
42769         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42770         * lib/xsetenv.c: Don't include setenv.h.
42771         * lib/getdate.y: Likewise.
42772         * lib/relocwrapper.c: Likewise.
42773         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42774         (Depends-on): Add stdlib.
42775         * NEWS: Mention the changes.
42776         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42777
42778 2007-12-23  Bruno Haible  <bruno@clisp.org>
42779
42780         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42781         indentation.
42782
42783 2007-12-23  Bruno Haible  <bruno@clisp.org>
42784
42785         * lib/c-strcasestr.c: Add more comments.
42786         * lib/c-strstr.c: Likewise.
42787         * lib/mbscasestr.c: Likewise.
42788         * lib/mbsstr.c: Likewise.
42789         * lib/strcasestr.c: Likewise.
42790         * lib/memmem.c: Likewise.
42791
42792 2007-12-23  Bruno Haible  <bruno@clisp.org>
42793
42794         * tests/test-memmem.c: Include <string.h> first.
42795
42796 2007-12-22  Bruno Haible  <bruno@clisp.org>
42797
42798         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42799         the contents of $testsbase.
42800         Reported by Ralf Wildenhues.
42801
42802 2007-12-22  Bruno Haible  <bruno@clisp.org>
42803
42804         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42805         two variables local_ldadd_before, local_ldadd_last.
42806
42807 2007-12-20  Eric Blake  <ebb9@byu.net>
42808
42809         Work around circular library issue when cross-compiling.
42810         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42811         that progname.o does not need to pull in rpl_memcmp.
42812
42813 2007-12-19  Eric Blake  <ebb9@byu.net>
42814
42815         Fix memmem to avoid O(n^2) worst-case complexity.
42816         * lib/memmem.c (knuth_morris_pratt): New function.
42817         (memmem): Use it if first few naive iterations fail.
42818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42819         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42820         * modules/memchr (License): Likewise.
42821         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42822         malloca.
42823         * tests/test-memmem.c: Rewrite, borrowing ideas from
42824         test-mbsstr1.c; the old version wouldn't even compile!
42825         * modules/memmem-tests: New file.
42826         * lib/string.in.h (rpl_memmem): Add declaration.
42827         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42829         REPLACE_MEMMEM.
42830
42831 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42834         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42835         before any system include files, and undef after them all.  This
42836         should fix a problem on VMS reported by John E. Malmberg in
42837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42838
42839 2007-12-17  Eric Blake  <ebb9@byu.net>
42840
42841         Revert addition of verify, for BSD/OS.
42842         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42843         can't handle large files, for the sake of obsolete platforms.
42844         * modules/fseeko (Depends-on): Remove verify.
42845         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42846         * doc/functions/ftello.texi (ftello): Likewise.
42847         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42848         Reported by Larry Jones.
42849
42850 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42851
42852         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42853         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42854
42855 2007-12-17  Jim Meyering  <meyering@redhat.com>
42856
42857         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42858         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42859         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42860         * modules/getcwd (Depends-on): Add openat.
42861         Reported by Petr Salinger.
42862
42863 2007-12-17  Bruno Haible  <bruno@clisp.org>
42864
42865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42866         avoid a segmentation fault of the configure test on x86_64 systems.
42867
42868 2007-12-15  Jim Meyering  <meyering@redhat.com>
42869
42870         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42871
42872 2007-12-13  Eric Blake  <ebb9@byu.net>
42873
42874         Another fseek test.
42875         * tests/test-fseek.c (main): Also test ungetc handling.
42876         * tests/test-fseeko.c (main): Likewise.
42877         * modules/fseeko (Depends-on): Add verify.
42878         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42879         large.
42880         Reported by Larry Jones.
42881
42882         Fix fseeko on mingw.
42883         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42884         seek.
42885
42886         Beef up fseek tests.
42887         * tests/test-fseek.c (main): Also test eof handling.
42888         * tests/test-fseeko.c (main): Likewise.
42889         Reported by Larry Jones.
42890
42891 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42892
42893         Fix fseeko on BSD-based platforms.
42894         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42895         successful seek.
42896
42897 2007-12-12  Eric Blake  <ebb9@byu.net>
42898
42899         Allow circular dependency of separate libtests.a
42900         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42901         when use_libtests.
42902
42903 2007-12-11  Eric Blake  <ebb9@byu.net>
42904
42905         Fix bug with -0.0L in previous patch.
42906         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42907         * tests/test-isnan.c (main): Also test on zeroes.
42908         * tests/test-isnanf.c (main): Likewise.
42909         * tests/test-isnanl.h (main): Likewise.
42910
42911         Detect pseudo-denormals on x86 even when cross-compiling.
42912         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42913         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42914         invalid bit patterns that happen to satisfy ==.
42915
42916         Avoid link failures with separate libtests.a.
42917         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42918         last, to satisfy circular dependencies.
42919
42920 2007-12-11  Eric Blake  <ebb9@byu.net>
42921         and Bruno Haible  <bruno@clisp.org>
42922
42923         Fix OpenBSD 4.0 <float.h> handling of long double.
42924         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42925         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42926         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42927
42928 2007-12-11  Jim Meyering  <meyering@redhat.com>
42929
42930         * users.txt: Add libvirt.
42931
42932         Support versions of autoconf prior to 2.59c.
42933         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42934         if it is not already defined.
42935
42936 2007-12-09  Bruno Haible  <bruno@clisp.org>
42937
42938         Let 'gnulib-tool --import' collect sources needed for the tests in
42939         tests/ rather than in lib/.
42940         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42941         argument. If true, add rules to generate libtests.a, and put libtests.a
42942         into $(LDADD). Consider source files in subdirectories and set
42943         uses_subdirs.
42944         (func_emit_initmacro_start, func_emit_initmacro_end,
42945         func_emit_initmacro_done): Pass all arguments explicitly.
42946         (func_import): Determine two module lists main_modules,
42947         testsrelated_modules. Determine use_libtests. Determine two variables
42948         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42949         instead of just sed_transform_lib_file. Determine two variables
42950         main_files and testsrelated_files. Compute 'files' as the union of
42951         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42952         func_add_or_update. In the generated gnulib-comp.m4, collect the
42953         object files for tests/ in different variables than those for lib/.
42954         Substitute LIBTESTS_LIBDEPS.
42955         (func_create_testdir): Combine the uses_subdirs results from
42956         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42957
42958 2007-12-09  Bruno Haible  <bruno@clisp.org>
42959
42960         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42961         the build-aux directory.
42962
42963 2007-12-09  Bruno Haible  <bruno@clisp.org>
42964
42965         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42966         introduced on 2006-09-09.
42967
42968 2007-12-07  Jim Meyering  <meyering@redhat.com>
42969
42970         Let these macros work also with autoconf-2.59.
42971         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42972         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42974
42975 2007-12-06  Jim Meyering  <meyering@redhat.com>
42976
42977         Avoid a configure-time syntax error in gl_FUNC_ACL.
42978         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42979         function in each branch, before testing the cache variable.
42980
42981 2007-12-04  Eric Blake  <ebb9@byu.net>
42982
42983         Make scripts executable.
42984         * build-aux/config.guess: Add execute permissions.
42985         * build-aux/config.sub: Likewise.
42986         * build-aux/gendocs.sh: Likewise.
42987
42988         Fix frexp on mingw.
42989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42990         cross-compiling.
42991         * doc/functions/frexp.texi (frexp): Document the bug.
42992
42993         Make cygwin fseeko check more reliable.
42994         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42995         version numbers, rather than unrelated feature check.
42996         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42997         * doc/functions/ftello.texi (ftello): Likewise.
42998         Reported by Bruno Haible.
42999
43000         * m4/strerror.m4: Bump version number.
43001
43002 2007-12-03  Bruno Haible  <bruno@clisp.org>
43003
43004         * doc/functions/mprotect.texi: Mention the mingw problem.
43005
43006 2007-12-03  Eric Blake  <ebb9@byu.net>
43007
43008         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43009         REPLACE_STRERROR is initialized before this macro.
43010
43011 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43012
43013         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43014         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43015         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43016         put -lsec in even for programs other than 'ls'.  This fixes a problem
43017         for gettext reported by Bruno Haible in
43018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43019         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43020         Add support for Solaris 10.  This isn't efficient, but should get the
43021         job done for now.
43022
43023 2007-12-03  James Youngman  <jay@gnu.org>
43024
43025         * doc/regexprops-generic.texi: change "an close-group" to "a
43026         close-group" and "illegal" to "not allowed".
43027
43028 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43029
43030         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43031         pr_byname.h. Needed for the rare case when the maintainer has done
43032         "make maintainer-clean" in the source directory and then attempts a
43033         build outside the source directory.
43034         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43035         scripts_byname.h.
43036
43037 2007-12-02  Martin Lambers <marlam@marlam.de>
43038             Bruno Haible  <bruno@clisp.org>
43039
43040         * lib/getpagesize.h: Remove file.
43041         * lib/unistd.in.h: Include declaration of getpagesize here.
43042         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43043         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43044         HAVE_SYS_PARAM_H.
43045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43046         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43047         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43048         (Depends-on): Add unistd.
43049         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43050         (Include): Use <unistd.h> instead of getpagesize.h.
43051         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43052         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43053         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43054         gl_GETPAGESIZE invocation, already handled by module dependency.
43055         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43056
43057 2007-12-02  Bruno Haible  <bruno@clisp.org>
43058
43059         * modules/strings-tests: New file.
43060         * tests/test-strings.c: New file.
43061
43062         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43063         * lib/strings.in.h: New file.
43064         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43065         * m4/strings_h.m4: New file.
43066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43067         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43068         * modules/strings: New file.
43069         * modules/string (Makefile.am): Update.
43070         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43071         Reported by Karl Berry.
43072
43073 2007-12-01  Eric Blake  <ebb9@byu.net>
43074
43075         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43076         accomodate fix in cygwin 1.5.25.
43077
43078 2007-12-01  Jim Meyering  <meyering@redhat.com>
43079
43080         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43081         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43082         that would inhibit utf8-optimization of a regexp containing line-
43083         or buffer-anchors, e.g., `^', `$'.
43084
43085 2007-11-30  Bruno Haible  <bruno@clisp.org>
43086
43087         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43088         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43089         glthread_recursive_lock_init.
43090         * lib/lock.c (glthread_recursive_lock_init)
43091         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43092         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43093
43094 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43095
43096         New function qset_acl, like set_acl but with syscall semantics.
43097         * lib/acl.h (qset_acl): New decl.
43098         * lib/acl.c (qset_acl): New function.
43099         (set_acl): Use new function.  Use more-consistent diagnostics.
43100
43101 2007-11-28  Jim Meyering  <meyering@redhat.com>
43102
43103         * modules/physmem (License): Change from GPL to LGPLv2+.
43104
43105 2007-11-26  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43108         'long double' type has excess precision.
43109         Reported by Jim Meyering in
43110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43111
43112 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43113
43114         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43115         Sync from <http://gnu.org/licenses>.
43116         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43117         with license text from same location.
43118         * doc/maintain.texi, doc/standards.texi:  Sync from
43119         <http://savannah.gnu.org/projects/gnustandards>.
43120
43121 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43122         and Jim Meyering  <meyering@redhat.com>
43123
43124         Adjust getdate' grammar to accept a slightly more regular language.
43125         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43126         Before, the former was rejected.
43127         * lib/getdate.y (digits_to_date_time): New function, factored
43128         out of ...
43129         (number): ...here.  Just call digits_to_date_time.
43130         (hybrid): New non-terminal to handle an <unsigned number,
43131         signed relative offset> sequence consistently.
43132
43133 2007-11-18  Jim Meyering  <meyering@redhat.com>
43134
43135         Pull my changes from coreutils:
43136         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43137         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43138         use of $gnulib_tool_option_extras, so that it's separated from the
43139         preceding argument.
43140
43141         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43142         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43143         parent destination directories before copying a file into place.
43144
43145 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43146
43147         bootstrap: work also with 4-argument variant of AC_INIT
43148         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43149
43150 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43151
43152         Port test-getaddrinfo to Solaris.
43153         Problem reported by Bruno Haible in
43154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43155         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43156         explanation of setting 'hints'.
43157         Don't reject an implementation merely because it returns EAI_SERVICE.
43158         (EAI_SERVICE): Define to 0 if not defined.
43159
43160 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43161
43162         The license of gnu-make and posix-shell is now "GPLed build tool".
43163         * modules/gnu-make (License): Likewise.
43164         * modules/posix-shell (License): Likewise.
43165
43166         New module posix-shell, for determining a POSIX shell
43167         or perhaps something that is close enough to a POSIX shell.
43168         * m4/posix-shell.m4: New file.
43169         * modules/posix-shell: New file.
43170
43171         * MODULES.html.sh: Mention new module.
43172
43173         New module gnu-make, for determining whether we're using GNU Make.
43174         * m4/gnu-make.m4: New file.
43175         * modules/gnu-make: New file.
43176         * MODULES.html.sh: Mention new module.
43177
43178 2007-11-14  Jim Meyering  <meyering@redhat.com>
43179
43180         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43181         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43182         use this macro to create a function _definition_.
43183         Remove useless "#undef ARGMATCH_DIE".
43184
43185 2007-11-14  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/config.charset: Update for OpenBSD 4.1.
43188         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43189
43190 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43191
43192         Document 64-bit #if problems in stdint.texi.
43193         * doc/headers/stdint.texi (stdint.h): Mention problems with
43194         64-bit-#if, and how to work around them.
43195
43196         Don't insist on 'long long int' support in the preprocessor.  It
43197         breaks too many things.  For example, PRIdMAX still uses a 'long
43198         long int' format with the latest Sun compiler, even though
43199         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43200         preprocessor problem.  This causes the latest coreutils to dump
43201         core on Solaris 10 sparc with the Sun C compiler.
43202         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43203         the troublesome expressions at configure-time, not at #if-time.
43204         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43205         preprocessor.
43206         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43207         compile-time C checks, done at 'configure'-time.
43208         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43209         * modules/inttypes (Makefile): Substitute the new symbols that
43210         gl_INTTYPES_H now generates.
43211         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43212
43213 2007-11-12  Bruno Haible  <bruno@clisp.org>
43214
43215         Tests for Unicode character classification functions.
43216
43217         * modules/unictype/bidicategory-byname-tests: New file.
43218         * modules/unictype/bidicategory-name-tests: New file.
43219         * modules/unictype/bidicategory-of-tests: New file.
43220         * modules/unictype/bidicategory-test-tests: New file.
43221         * modules/unictype/block-list-tests: New file.
43222         * modules/unictype/block-of-tests: New file.
43223         * modules/unictype/block-test-tests: New file.
43224         * modules/unictype/category-C-tests: New file.
43225         * modules/unictype/category-Cc-tests: New file.
43226         * modules/unictype/category-Cf-tests: New file.
43227         * modules/unictype/category-Cn-tests: New file.
43228         * modules/unictype/category-Co-tests: New file.
43229         * modules/unictype/category-Cs-tests: New file.
43230         * modules/unictype/category-L-tests: New file.
43231         * modules/unictype/category-Ll-tests: New file.
43232         * modules/unictype/category-Lm-tests: New file.
43233         * modules/unictype/category-Lo-tests: New file.
43234         * modules/unictype/category-Lt-tests: New file.
43235         * modules/unictype/category-Lu-tests: New file.
43236         * modules/unictype/category-M-tests: New file.
43237         * modules/unictype/category-Mc-tests: New file.
43238         * modules/unictype/category-Me-tests: New file.
43239         * modules/unictype/category-Mn-tests: New file.
43240         * modules/unictype/category-N-tests: New file.
43241         * modules/unictype/category-Nd-tests: New file.
43242         * modules/unictype/category-Nl-tests: New file.
43243         * modules/unictype/category-No-tests: New file.
43244         * modules/unictype/category-P-tests: New file.
43245         * modules/unictype/category-Pc-tests: New file.
43246         * modules/unictype/category-Pd-tests: New file.
43247         * modules/unictype/category-Pe-tests: New file.
43248         * modules/unictype/category-Pf-tests: New file.
43249         * modules/unictype/category-Pi-tests: New file.
43250         * modules/unictype/category-Po-tests: New file.
43251         * modules/unictype/category-Ps-tests: New file.
43252         * modules/unictype/category-S-tests: New file.
43253         * modules/unictype/category-Sc-tests: New file.
43254         * modules/unictype/category-Sk-tests: New file.
43255         * modules/unictype/category-Sm-tests: New file.
43256         * modules/unictype/category-So-tests: New file.
43257         * modules/unictype/category-Z-tests: New file.
43258         * modules/unictype/category-Zl-tests: New file.
43259         * modules/unictype/category-Zp-tests: New file.
43260         * modules/unictype/category-Zs-tests: New file.
43261         * modules/unictype/category-and-not-tests: New file.
43262         * modules/unictype/category-and-tests: New file.
43263         * modules/unictype/category-byname-tests: New file.
43264         * modules/unictype/category-name-tests: New file.
43265         * modules/unictype/category-none-tests: New file.
43266         * modules/unictype/category-of-tests: New file.
43267         * modules/unictype/category-or-tests: New file.
43268         * modules/unictype/category-test-withtable-tests: New file.
43269         * modules/unictype/combining-class-tests: New file.
43270         * modules/unictype/ctype-alnum-tests: New file.
43271         * modules/unictype/ctype-alpha-tests: New file.
43272         * modules/unictype/ctype-blank-tests: New file.
43273         * modules/unictype/ctype-cntrl-tests: New file.
43274         * modules/unictype/ctype-digit-tests: New file.
43275         * modules/unictype/ctype-graph-tests: New file.
43276         * modules/unictype/ctype-lower-tests: New file.
43277         * modules/unictype/ctype-print-tests: New file.
43278         * modules/unictype/ctype-punct-tests: New file.
43279         * modules/unictype/ctype-space-tests: New file.
43280         * modules/unictype/ctype-upper-tests: New file.
43281         * modules/unictype/ctype-xdigit-tests: New file.
43282         * modules/unictype/decimal-digit-tests: New file.
43283         * modules/unictype/digit-tests: New file.
43284         * modules/unictype/mirror-tests: New file.
43285         * modules/unictype/numeric-tests: New file.
43286         * modules/unictype/property-alphabetic-tests: New file.
43287         * modules/unictype/property-ascii-hex-digit-tests: New file.
43288         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43289         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43290         * modules/unictype/property-bidi-block-separator-tests: New file.
43291         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43292         * modules/unictype/property-bidi-common-separator-tests: New file.
43293         * modules/unictype/property-bidi-control-tests: New file.
43294         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43295         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43296         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43297         * modules/unictype/property-bidi-european-digit-tests: New file.
43298         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43299         * modules/unictype/property-bidi-left-to-right-tests: New file.
43300         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43301         * modules/unictype/property-bidi-other-neutral-tests: New file.
43302         * modules/unictype/property-bidi-pdf-tests: New file.
43303         * modules/unictype/property-bidi-segment-separator-tests: New file.
43304         * modules/unictype/property-bidi-whitespace-tests: New file.
43305         * modules/unictype/property-byname-tests: New file.
43306         * modules/unictype/property-combining-tests: New file.
43307         * modules/unictype/property-composite-tests: New file.
43308         * modules/unictype/property-currency-symbol-tests: New file.
43309         * modules/unictype/property-dash-tests: New file.
43310         * modules/unictype/property-decimal-digit-tests: New file.
43311         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43312         * modules/unictype/property-deprecated-tests: New file.
43313         * modules/unictype/property-diacritic-tests: New file.
43314         * modules/unictype/property-extender-tests: New file.
43315         * modules/unictype/property-format-control-tests: New file.
43316         * modules/unictype/property-grapheme-base-tests: New file.
43317         * modules/unictype/property-grapheme-extend-tests: New file.
43318         * modules/unictype/property-grapheme-link-tests: New file.
43319         * modules/unictype/property-hex-digit-tests: New file.
43320         * modules/unictype/property-hyphen-tests: New file.
43321         * modules/unictype/property-id-continue-tests: New file.
43322         * modules/unictype/property-id-start-tests: New file.
43323         * modules/unictype/property-ideographic-tests: New file.
43324         * modules/unictype/property-ids-binary-operator-tests: New file.
43325         * modules/unictype/property-ids-trinary-operator-tests: New file.
43326         * modules/unictype/property-ignorable-control-tests: New file.
43327         * modules/unictype/property-iso-control-tests: New file.
43328         * modules/unictype/property-join-control-tests: New file.
43329         * modules/unictype/property-left-of-pair-tests: New file.
43330         * modules/unictype/property-line-separator-tests: New file.
43331         * modules/unictype/property-logical-order-exception-tests: New file.
43332         * modules/unictype/property-lowercase-tests: New file.
43333         * modules/unictype/property-math-tests: New file.
43334         * modules/unictype/property-non-break-tests: New file.
43335         * modules/unictype/property-not-a-character-tests: New file.
43336         * modules/unictype/property-numeric-tests: New file.
43337         * modules/unictype/property-other-alphabetic-tests: New file.
43338         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43339         * modules/unictype/property-other-grapheme-extend-tests: New file.
43340         * modules/unictype/property-other-id-continue-tests: New file.
43341         * modules/unictype/property-other-id-start-tests: New file.
43342         * modules/unictype/property-other-lowercase-tests: New file.
43343         * modules/unictype/property-other-math-tests: New file.
43344         * modules/unictype/property-other-uppercase-tests: New file.
43345         * modules/unictype/property-paired-punctuation-tests: New file.
43346         * modules/unictype/property-paragraph-separator-tests: New file.
43347         * modules/unictype/property-pattern-syntax-tests: New file.
43348         * modules/unictype/property-pattern-white-space-tests: New file.
43349         * modules/unictype/property-private-use-tests: New file.
43350         * modules/unictype/property-punctuation-tests: New file.
43351         * modules/unictype/property-quotation-mark-tests: New file.
43352         * modules/unictype/property-radical-tests: New file.
43353         * modules/unictype/property-sentence-terminal-tests: New file.
43354         * modules/unictype/property-soft-dotted-tests: New file.
43355         * modules/unictype/property-space-tests: New file.
43356         * modules/unictype/property-terminal-punctuation-tests: New file.
43357         * modules/unictype/property-test-tests: New file.
43358         * modules/unictype/property-titlecase-tests: New file.
43359         * modules/unictype/property-unassigned-code-value-tests: New file.
43360         * modules/unictype/property-unified-ideograph-tests: New file.
43361         * modules/unictype/property-uppercase-tests: New file.
43362         * modules/unictype/property-variation-selector-tests: New file.
43363         * modules/unictype/property-white-space-tests: New file.
43364         * modules/unictype/property-xid-continue-tests: New file.
43365         * modules/unictype/property-xid-start-tests: New file.
43366         * modules/unictype/property-zero-width-tests: New file.
43367         * modules/unictype/scripts-tests: New file.
43368         * modules/unictype/syntax-c-ident-tests: New file.
43369         * modules/unictype/syntax-c-whitespace-tests: New file.
43370         * modules/unictype/syntax-java-ident-tests: New file.
43371         * modules/unictype/syntax-java-whitespace-tests: New file.
43372         * tests/unictype/test-bidi_byname.c: New file.
43373         * tests/unictype/test-bidi_name.c: New file.
43374         * tests/unictype/test-bidi_of.c: New file.
43375         * tests/unictype/test-bidi_test.c: New file.
43376         * tests/unictype/test-block_list.c: New file.
43377         * tests/unictype/test-block_of.c: New file.
43378         * tests/unictype/test-block_test.c: New file.
43379         * tests/unictype/test-categ_and.c: New file.
43380         * tests/unictype/test-categ_and_not.c: New file.
43381         * tests/unictype/test-categ_byname.c: New file.
43382         * tests/unictype/test-categ_name.c: New file.
43383         * tests/unictype/test-categ_none.c: New file.
43384         * tests/unictype/test-categ_of.c: New file.
43385         * tests/unictype/test-categ_or.c: New file.
43386         * tests/unictype/test-categ_test_withtable.c: New file.
43387         * tests/unictype/test-combining.c: New file.
43388         * tests/unictype/test-decdigit.c: New file.
43389         * tests/unictype/test-digit.c: New file.
43390         * tests/unictype/test-mirror.c: New file.
43391         * tests/unictype/test-numeric.c: New file.
43392         * tests/unictype/test-pr_byname.c: New file.
43393         * tests/unictype/test-pr_test.c: New file.
43394         * tests/unictype/test-predicate-part1.h: New file.
43395         * tests/unictype/test-predicate-part2.h: New file.
43396         * tests/unictype/test-scripts.c: New file.
43397         * tests/unictype/test-sy_c_ident.c: New file.
43398         * tests/unictype/test-sy_java_ident.c: New file.
43399
43400         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43401         for Unicode 5.0.0.
43402         * tests/unictype/test-categ_Cc.c: Likewise.
43403         * tests/unictype/test-categ_Cf.c: Likewise.
43404         * tests/unictype/test-categ_Cn.c: Likewise.
43405         * tests/unictype/test-categ_Co.c: Likewise.
43406         * tests/unictype/test-categ_Cs.c: Likewise.
43407         * tests/unictype/test-categ_L.c: Likewise.
43408         * tests/unictype/test-categ_Ll.c: Likewise.
43409         * tests/unictype/test-categ_Lm.c: Likewise.
43410         * tests/unictype/test-categ_Lo.c: Likewise.
43411         * tests/unictype/test-categ_Lt.c: Likewise.
43412         * tests/unictype/test-categ_Lu.c: Likewise.
43413         * tests/unictype/test-categ_M.c: Likewise.
43414         * tests/unictype/test-categ_Mc.c: Likewise.
43415         * tests/unictype/test-categ_Me.c: Likewise.
43416         * tests/unictype/test-categ_Mn.c: Likewise.
43417         * tests/unictype/test-categ_N.c: Likewise.
43418         * tests/unictype/test-categ_Nd.c: Likewise.
43419         * tests/unictype/test-categ_Nl.c: Likewise.
43420         * tests/unictype/test-categ_No.c: Likewise.
43421         * tests/unictype/test-categ_P.c: Likewise.
43422         * tests/unictype/test-categ_Pc.c: Likewise.
43423         * tests/unictype/test-categ_Pd.c: Likewise.
43424         * tests/unictype/test-categ_Pe.c: Likewise.
43425         * tests/unictype/test-categ_Pf.c: Likewise.
43426         * tests/unictype/test-categ_Pi.c: Likewise.
43427         * tests/unictype/test-categ_Po.c: Likewise.
43428         * tests/unictype/test-categ_Ps.c: Likewise.
43429         * tests/unictype/test-categ_S.c: Likewise.
43430         * tests/unictype/test-categ_Sc.c: Likewise.
43431         * tests/unictype/test-categ_Sk.c: Likewise.
43432         * tests/unictype/test-categ_Sm.c: Likewise.
43433         * tests/unictype/test-categ_So.c: Likewise.
43434         * tests/unictype/test-categ_Z.c: Likewise.
43435         * tests/unictype/test-categ_Zl.c: Likewise.
43436         * tests/unictype/test-categ_Zp.c: Likewise.
43437         * tests/unictype/test-categ_Zs.c: Likewise.
43438         * tests/unictype/test-ctype_alnum.c: Likewise.
43439         * tests/unictype/test-ctype_alpha.c: Likewise.
43440         * tests/unictype/test-ctype_blank.c: Likewise.
43441         * tests/unictype/test-ctype_cntrl.c: Likewise.
43442         * tests/unictype/test-ctype_digit.c: Likewise.
43443         * tests/unictype/test-ctype_graph.c: Likewise.
43444         * tests/unictype/test-ctype_lower.c: Likewise.
43445         * tests/unictype/test-ctype_print.c: Likewise.
43446         * tests/unictype/test-ctype_punct.c: Likewise.
43447         * tests/unictype/test-ctype_space.c: Likewise.
43448         * tests/unictype/test-ctype_upper.c: Likewise.
43449         * tests/unictype/test-ctype_xdigit.c: Likewise.
43450         * tests/unictype/test-decdigit.h: Likewise.
43451         * tests/unictype/test-digit.h: Likewise.
43452         * tests/unictype/test-numeric.h: Likewise.
43453         * tests/unictype/test-pr_alphabetic.c: Likewise.
43454         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43455         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43456         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43457         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43458         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43459         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43460         * tests/unictype/test-pr_bidi_control.c: Likewise.
43461         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43462         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43463         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43464         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43465         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43466         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43467         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43468         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43469         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43470         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43471         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43472         * tests/unictype/test-pr_combining.c: Likewise.
43473         * tests/unictype/test-pr_composite.c: Likewise.
43474         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43475         * tests/unictype/test-pr_dash.c: Likewise.
43476         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43477         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43478         * tests/unictype/test-pr_deprecated.c: Likewise.
43479         * tests/unictype/test-pr_diacritic.c: Likewise.
43480         * tests/unictype/test-pr_extender.c: Likewise.
43481         * tests/unictype/test-pr_format_control.c: Likewise.
43482         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43483         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43484         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43485         * tests/unictype/test-pr_hex_digit.c: Likewise.
43486         * tests/unictype/test-pr_hyphen.c: Likewise.
43487         * tests/unictype/test-pr_id_continue.c: Likewise.
43488         * tests/unictype/test-pr_id_start.c: Likewise.
43489         * tests/unictype/test-pr_ideographic.c: Likewise.
43490         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43491         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43492         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43493         * tests/unictype/test-pr_iso_control.c: Likewise.
43494         * tests/unictype/test-pr_join_control.c: Likewise.
43495         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43496         * tests/unictype/test-pr_line_separator.c: Likewise.
43497         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43498         * tests/unictype/test-pr_lowercase.c: Likewise.
43499         * tests/unictype/test-pr_math.c: Likewise.
43500         * tests/unictype/test-pr_non_break.c: Likewise.
43501         * tests/unictype/test-pr_not_a_character.c: Likewise.
43502         * tests/unictype/test-pr_numeric.c: Likewise.
43503         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43504         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43505         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43506         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43507         * tests/unictype/test-pr_other_id_start.c: Likewise.
43508         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43509         * tests/unictype/test-pr_other_math.c: Likewise.
43510         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43511         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43512         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43513         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43514         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43515         * tests/unictype/test-pr_private_use.c: Likewise.
43516         * tests/unictype/test-pr_punctuation.c: Likewise.
43517         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43518         * tests/unictype/test-pr_radical.c: Likewise.
43519         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43520         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43521         * tests/unictype/test-pr_space.c: Likewise.
43522         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43523         * tests/unictype/test-pr_titlecase.c: Likewise.
43524         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43525         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43526         * tests/unictype/test-pr_uppercase.c: Likewise.
43527         * tests/unictype/test-pr_variation_selector.c: Likewise.
43528         * tests/unictype/test-pr_white_space.c: Likewise.
43529         * tests/unictype/test-pr_xid_continue.c: Likewise.
43530         * tests/unictype/test-pr_xid_start.c: Likewise.
43531         * tests/unictype/test-pr_zero_width.c: Likewise.
43532         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43533         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43534
43535 2007-11-12  Bruno Haible  <bruno@clisp.org>
43536
43537         Unicode character classification functions.
43538         * lib/unictype.h: New file.
43539         * modules/unictype/base: New file.
43540         * modules/unictype/category-L: New file.
43541         * modules/unictype/category-Lu: New file.
43542         * modules/unictype/category-Ll: New file.
43543         * modules/unictype/category-Lt: New file.
43544         * modules/unictype/category-Lm: New file.
43545         * modules/unictype/category-Lo: New file.
43546         * modules/unictype/category-M: New file.
43547         * modules/unictype/category-Mn: New file.
43548         * modules/unictype/category-Mc: New file.
43549         * modules/unictype/category-Me: New file.
43550         * modules/unictype/category-N: New file.
43551         * modules/unictype/category-Nd: New file.
43552         * modules/unictype/category-Nl: New file.
43553         * modules/unictype/category-No: New file.
43554         * modules/unictype/category-P: New file.
43555         * modules/unictype/category-Pc: New file.
43556         * modules/unictype/category-Pd: New file.
43557         * modules/unictype/category-Ps: New file.
43558         * modules/unictype/category-Pe: New file.
43559         * modules/unictype/category-Pi: New file.
43560         * modules/unictype/category-Pf: New file.
43561         * modules/unictype/category-Po: New file.
43562         * modules/unictype/category-S: New file.
43563         * modules/unictype/category-Sm: New file.
43564         * modules/unictype/category-Sc: New file.
43565         * modules/unictype/category-Sk: New file.
43566         * modules/unictype/category-So: New file.
43567         * modules/unictype/category-Z: New file.
43568         * modules/unictype/category-Zs: New file.
43569         * modules/unictype/category-Zl: New file.
43570         * modules/unictype/category-Zp: New file.
43571         * modules/unictype/category-C: New file.
43572         * modules/unictype/category-Cc: New file.
43573         * modules/unictype/category-Cf: New file.
43574         * modules/unictype/category-Cs: New file.
43575         * modules/unictype/category-Co: New file.
43576         * modules/unictype/category-Cn: New file.
43577         * modules/unictype/category-or: New file.
43578         * modules/unictype/category-of: New file.
43579         * modules/unictype/category-test: New file.
43580         * modules/unictype/category-test-withtable: New file.
43581         * modules/unictype/category-byname: New file.
43582         * modules/unictype/category-none: New file.
43583         * modules/unictype/category-and: New file.
43584         * modules/unictype/category-and-not: New file.
43585         * modules/unictype/category-name: New file.
43586         * modules/unictype/combining-class: New file.
43587         * modules/unictype/category-all: New file.
43588         * modules/unictype/bidicategory-all: New file.
43589         * modules/unictype/bidicategory-byname: New file.
43590         * modules/unictype/bidicategory-name: New file.
43591         * modules/unictype/bidicategory-of: New file.
43592         * modules/unictype/bidicategory-test: New file.
43593         * modules/unictype/decimal-digit: New file.
43594         * modules/unictype/digit: New file.
43595         * modules/unictype/numeric: New file.
43596         * modules/unictype/mirror: New file.
43597         * modules/unictype/property-white-space: New file.
43598         * modules/unictype/property-alphabetic: New file.
43599         * modules/unictype/property-other-alphabetic: New file.
43600         * modules/unictype/property-not-a-character: New file.
43601         * modules/unictype/property-default-ignorable-code-point: New file.
43602         * modules/unictype/property-other-default-ignorable-code-point: New
43603         file.
43604         * modules/unictype/property-deprecated: New file.
43605         * modules/unictype/property-logical-order-exception: New file.
43606         * modules/unictype/property-variation-selector: New file.
43607         * modules/unictype/property-private-use: New file.
43608         * modules/unictype/property-unassigned-code-value: New file.
43609         * modules/unictype/property-uppercase: New file.
43610         * modules/unictype/property-other-uppercase: New file.
43611         * modules/unictype/property-lowercase: New file.
43612         * modules/unictype/property-other-lowercase: New file.
43613         * modules/unictype/property-titlecase: New file.
43614         * modules/unictype/property-soft-dotted: New file.
43615         * modules/unictype/property-id-start: New file.
43616         * modules/unictype/property-other-id-start: New file.
43617         * modules/unictype/property-id-continue: New file.
43618         * modules/unictype/property-other-id-continue: New file.
43619         * modules/unictype/property-xid-start: New file.
43620         * modules/unictype/property-xid-continue: New file.
43621         * modules/unictype/property-pattern-white-space: New file.
43622         * modules/unictype/property-pattern-syntax: New file.
43623         * modules/unictype/property-join-control: New file.
43624         * modules/unictype/property-grapheme-base: New file.
43625         * modules/unictype/property-grapheme-extend: New file.
43626         * modules/unictype/property-other-grapheme-extend: New file.
43627         * modules/unictype/property-grapheme-link: New file.
43628         * modules/unictype/property-bidi-control: New file.
43629         * modules/unictype/property-bidi-left-to-right: New file.
43630         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43631         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43632         * modules/unictype/property-bidi-european-digit: New file.
43633         * modules/unictype/property-bidi-eur-num-separator: New file.
43634         * modules/unictype/property-bidi-eur-num-terminator: New file.
43635         * modules/unictype/property-bidi-arabic-digit: New file.
43636         * modules/unictype/property-bidi-common-separator: New file.
43637         * modules/unictype/property-bidi-block-separator: New file.
43638         * modules/unictype/property-bidi-segment-separator: New file.
43639         * modules/unictype/property-bidi-whitespace: New file.
43640         * modules/unictype/property-bidi-non-spacing-mark: New file.
43641         * modules/unictype/property-bidi-boundary-neutral: New file.
43642         * modules/unictype/property-bidi-pdf: New file.
43643         * modules/unictype/property-bidi-embedding-or-override: New file.
43644         * modules/unictype/property-bidi-other-neutral: New file.
43645         * modules/unictype/property-hex-digit: New file.
43646         * modules/unictype/property-ascii-hex-digit: New file.
43647         * modules/unictype/property-ideographic: New file.
43648         * modules/unictype/property-unified-ideograph: New file.
43649         * modules/unictype/property-radical: New file.
43650         * modules/unictype/property-ids-binary-operator: New file.
43651         * modules/unictype/property-ids-trinary-operator: New file.
43652         * modules/unictype/property-zero-width: New file.
43653         * modules/unictype/property-space: New file.
43654         * modules/unictype/property-non-break: New file.
43655         * modules/unictype/property-iso-control: New file.
43656         * modules/unictype/property-format-control: New file.
43657         * modules/unictype/property-dash: New file.
43658         * modules/unictype/property-hyphen: New file.
43659         * modules/unictype/property-punctuation: New file.
43660         * modules/unictype/property-line-separator: New file.
43661         * modules/unictype/property-paragraph-separator: New file.
43662         * modules/unictype/property-quotation-mark: New file.
43663         * modules/unictype/property-sentence-terminal: New file.
43664         * modules/unictype/property-terminal-punctuation: New file.
43665         * modules/unictype/property-currency-symbol: New file.
43666         * modules/unictype/property-math: New file.
43667         * modules/unictype/property-other-math: New file.
43668         * modules/unictype/property-paired-punctuation: New file.
43669         * modules/unictype/property-left-of-pair: New file.
43670         * modules/unictype/property-combining: New file.
43671         * modules/unictype/property-composite: New file.
43672         * modules/unictype/property-decimal-digit: New file.
43673         * modules/unictype/property-numeric: New file.
43674         * modules/unictype/property-diacritic: New file.
43675         * modules/unictype/property-extender: New file.
43676         * modules/unictype/property-ignorable-control: New file.
43677         * modules/unictype/property-test: New file.
43678         * modules/unictype/property-byname: New file.
43679         * modules/unictype/property-all: New file.
43680         * modules/unictype/scripts: New file.
43681         * modules/unictype/scripts-all: New file.
43682         * modules/unictype/block-of: New file.
43683         * modules/unictype/block-test: New file.
43684         * modules/unictype/block-list: New file.
43685         * modules/unictype/block-all: New file.
43686         * modules/unictype/syntax-c-whitespace: New file.
43687         * modules/unictype/syntax-java-whitespace: New file.
43688         * modules/unictype/syntax-c-ident: New file.
43689         * modules/unictype/syntax-java-ident: New file.
43690         * modules/unictype/ctype-alnum: New file.
43691         * modules/unictype/ctype-alpha: New file.
43692         * modules/unictype/ctype-cntrl: New file.
43693         * modules/unictype/ctype-digit: New file.
43694         * modules/unictype/ctype-graph: New file.
43695         * modules/unictype/ctype-lower: New file.
43696         * modules/unictype/ctype-print: New file.
43697         * modules/unictype/ctype-punct: New file.
43698         * modules/unictype/ctype-space: New file.
43699         * modules/unictype/ctype-upper: New file.
43700         * modules/unictype/ctype-xdigit: New file.
43701         * modules/unictype/ctype-blank: New file.
43702         * lib/unictype/bidi_byname.c: New file.
43703         * lib/unictype/bidi_name.c: New file.
43704         * lib/unictype/bidi_of.c: New file.
43705         * lib/unictype/bidi_test.c: New file.
43706         * lib/unictype/bitmap.h: New file.
43707         * lib/unictype/block_test.c: New file.
43708         * lib/unictype/blocks.c: New file.
43709         * lib/unictype/categ_C.c: New file.
43710         * lib/unictype/categ_Cc.c: New file.
43711         * lib/unictype/categ_Cf.c: New file.
43712         * lib/unictype/categ_Cn.c: New file.
43713         * lib/unictype/categ_Co.c: New file.
43714         * lib/unictype/categ_Cs.c: New file.
43715         * lib/unictype/categ_L.c: New file.
43716         * lib/unictype/categ_Ll.c: New file.
43717         * lib/unictype/categ_Lm.c: New file.
43718         * lib/unictype/categ_Lo.c: New file.
43719         * lib/unictype/categ_Lt.c: New file.
43720         * lib/unictype/categ_Lu.c: New file.
43721         * lib/unictype/categ_M.c: New file.
43722         * lib/unictype/categ_Mc.c: New file.
43723         * lib/unictype/categ_Me.c: New file.
43724         * lib/unictype/categ_Mn.c: New file.
43725         * lib/unictype/categ_N.c: New file.
43726         * lib/unictype/categ_Nd.c: New file.
43727         * lib/unictype/categ_Nl.c: New file.
43728         * lib/unictype/categ_No.c: New file.
43729         * lib/unictype/categ_P.c: New file.
43730         * lib/unictype/categ_Pc.c: New file.
43731         * lib/unictype/categ_Pd.c: New file.
43732         * lib/unictype/categ_Pe.c: New file.
43733         * lib/unictype/categ_Pf.c: New file.
43734         * lib/unictype/categ_Pi.c: New file.
43735         * lib/unictype/categ_Po.c: New file.
43736         * lib/unictype/categ_Ps.c: New file.
43737         * lib/unictype/categ_S.c: New file.
43738         * lib/unictype/categ_Sc.c: New file.
43739         * lib/unictype/categ_Sk.c: New file.
43740         * lib/unictype/categ_Sm.c: New file.
43741         * lib/unictype/categ_So.c: New file.
43742         * lib/unictype/categ_Z.c: New file.
43743         * lib/unictype/categ_Zl.c: New file.
43744         * lib/unictype/categ_Zp.c: New file.
43745         * lib/unictype/categ_Zs.c: New file.
43746         * lib/unictype/categ_and.c: New file.
43747         * lib/unictype/categ_and_not.c: New file.
43748         * lib/unictype/categ_byname.c: New file.
43749         * lib/unictype/categ_name.c: New file.
43750         * lib/unictype/categ_none.c: New file.
43751         * lib/unictype/categ_of.c: New file.
43752         * lib/unictype/categ_or.c: New file.
43753         * lib/unictype/categ_test.c: New file.
43754         * lib/unictype/combining.c: New file.
43755         * lib/unictype/ctype_alnum.c: New file.
43756         * lib/unictype/ctype_alpha.c: New file.
43757         * lib/unictype/ctype_blank.c: New file.
43758         * lib/unictype/ctype_cntrl.c: New file.
43759         * lib/unictype/ctype_digit.c: New file.
43760         * lib/unictype/ctype_graph.c: New file.
43761         * lib/unictype/ctype_lower.c: New file.
43762         * lib/unictype/ctype_print.c: New file.
43763         * lib/unictype/ctype_punct.c: New file.
43764         * lib/unictype/ctype_space.c: New file.
43765         * lib/unictype/ctype_upper.c: New file.
43766         * lib/unictype/ctype_xdigit.c: New file.
43767         * lib/unictype/decdigit.c: New file.
43768         * lib/unictype/digit.c: New file.
43769         * lib/unictype/identsyntaxmap.h: New file.
43770         * lib/unictype/mirror.c: New file.
43771         * lib/unictype/numeric.c: New file.
43772         * lib/unictype/pr_alphabetic.c: New file.
43773         * lib/unictype/pr_ascii_hex_digit.c: New file.
43774         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43775         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43776         * lib/unictype/pr_bidi_block_separator.c: New file.
43777         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43778         * lib/unictype/pr_bidi_common_separator.c: New file.
43779         * lib/unictype/pr_bidi_control.c: New file.
43780         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43781         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43782         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43783         * lib/unictype/pr_bidi_european_digit.c: New file.
43784         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43785         * lib/unictype/pr_bidi_left_to_right.c: New file.
43786         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43787         * lib/unictype/pr_bidi_other_neutral.c: New file.
43788         * lib/unictype/pr_bidi_pdf.c: New file.
43789         * lib/unictype/pr_bidi_segment_separator.c: New file.
43790         * lib/unictype/pr_bidi_whitespace.c: New file.
43791         * lib/unictype/pr_byname.c: New file.
43792         * lib/unictype/pr_byname.gperf: New file.
43793         * lib/unictype/pr_combining.c: New file.
43794         * lib/unictype/pr_composite.c: New file.
43795         * lib/unictype/pr_currency_symbol.c: New file.
43796         * lib/unictype/pr_dash.c: New file.
43797         * lib/unictype/pr_decimal_digit.c: New file.
43798         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43799         * lib/unictype/pr_deprecated.c: New file.
43800         * lib/unictype/pr_diacritic.c: New file.
43801         * lib/unictype/pr_extender.c: New file.
43802         * lib/unictype/pr_format_control.c: New file.
43803         * lib/unictype/pr_grapheme_base.c: New file.
43804         * lib/unictype/pr_grapheme_extend.c: New file.
43805         * lib/unictype/pr_grapheme_link.c: New file.
43806         * lib/unictype/pr_hex_digit.c: New file.
43807         * lib/unictype/pr_hyphen.c: New file.
43808         * lib/unictype/pr_id_continue.c: New file.
43809         * lib/unictype/pr_id_start.c: New file.
43810         * lib/unictype/pr_ideographic.c: New file.
43811         * lib/unictype/pr_ids_binary_operator.c: New file.
43812         * lib/unictype/pr_ids_trinary_operator.c: New file.
43813         * lib/unictype/pr_ignorable_control.c: New file.
43814         * lib/unictype/pr_iso_control.c: New file.
43815         * lib/unictype/pr_join_control.c: New file.
43816         * lib/unictype/pr_left_of_pair.c: New file.
43817         * lib/unictype/pr_line_separator.c: New file.
43818         * lib/unictype/pr_logical_order_exception.c: New file.
43819         * lib/unictype/pr_lowercase.c: New file.
43820         * lib/unictype/pr_math.c: New file.
43821         * lib/unictype/pr_non_break.c: New file.
43822         * lib/unictype/pr_not_a_character.c: New file.
43823         * lib/unictype/pr_numeric.c: New file.
43824         * lib/unictype/pr_other_alphabetic.c: New file.
43825         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43826         * lib/unictype/pr_other_grapheme_extend.c: New file.
43827         * lib/unictype/pr_other_id_continue.c: New file.
43828         * lib/unictype/pr_other_id_start.c: New file.
43829         * lib/unictype/pr_other_lowercase.c: New file.
43830         * lib/unictype/pr_other_math.c: New file.
43831         * lib/unictype/pr_other_uppercase.c: New file.
43832         * lib/unictype/pr_paired_punctuation.c: New file.
43833         * lib/unictype/pr_paragraph_separator.c: New file.
43834         * lib/unictype/pr_pattern_syntax.c: New file.
43835         * lib/unictype/pr_pattern_white_space.c: New file.
43836         * lib/unictype/pr_private_use.c: New file.
43837         * lib/unictype/pr_punctuation.c: New file.
43838         * lib/unictype/pr_quotation_mark.c: New file.
43839         * lib/unictype/pr_radical.c: New file.
43840         * lib/unictype/pr_sentence_terminal.c: New file.
43841         * lib/unictype/pr_soft_dotted.c: New file.
43842         * lib/unictype/pr_space.c: New file.
43843         * lib/unictype/pr_terminal_punctuation.c: New file.
43844         * lib/unictype/pr_test.c: New file.
43845         * lib/unictype/pr_titlecase.c: New file.
43846         * lib/unictype/pr_unassigned_code_value.c: New file.
43847         * lib/unictype/pr_unified_ideograph.c: New file.
43848         * lib/unictype/pr_uppercase.c: New file.
43849         * lib/unictype/pr_variation_selector.c: New file.
43850         * lib/unictype/pr_white_space.c: New file.
43851         * lib/unictype/pr_xid_continue.c: New file.
43852         * lib/unictype/pr_xid_start.c: New file.
43853         * lib/unictype/pr_zero_width.c: New file.
43854         * lib/unictype/scripts.c: New file.
43855         * lib/unictype/sy_c_ident.c: New file.
43856         * lib/unictype/sy_c_whitespace.c: New file.
43857         * lib/unictype/sy_java_ident.c: New file.
43858         * lib/unictype/sy_java_whitespace.c: New file.
43859
43860         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43861         Unicode 5.0.0.
43862         * lib/unictype/blocks.h: Likewise.
43863         * lib/unictype/categ_C.h: Likewise.
43864         * lib/unictype/categ_Cc.h: Likewise.
43865         * lib/unictype/categ_Cf.h: Likewise.
43866         * lib/unictype/categ_Cn.h: Likewise.
43867         * lib/unictype/categ_Co.h: Likewise.
43868         * lib/unictype/categ_Cs.h: Likewise.
43869         * lib/unictype/categ_L.h: Likewise.
43870         * lib/unictype/categ_Ll.h: Likewise.
43871         * lib/unictype/categ_Lm.h: Likewise.
43872         * lib/unictype/categ_Lo.h: Likewise.
43873         * lib/unictype/categ_Lt.h: Likewise.
43874         * lib/unictype/categ_Lu.h: Likewise.
43875         * lib/unictype/categ_M.h: Likewise.
43876         * lib/unictype/categ_Mc.h: Likewise.
43877         * lib/unictype/categ_Me.h: Likewise.
43878         * lib/unictype/categ_Mn.h: Likewise.
43879         * lib/unictype/categ_N.h: Likewise.
43880         * lib/unictype/categ_Nd.h: Likewise.
43881         * lib/unictype/categ_Nl.h: Likewise.
43882         * lib/unictype/categ_No.h: Likewise.
43883         * lib/unictype/categ_P.h: Likewise.
43884         * lib/unictype/categ_Pc.h: Likewise.
43885         * lib/unictype/categ_Pd.h: Likewise.
43886         * lib/unictype/categ_Pe.h: Likewise.
43887         * lib/unictype/categ_Pf.h: Likewise.
43888         * lib/unictype/categ_Pi.h: Likewise.
43889         * lib/unictype/categ_Po.h: Likewise.
43890         * lib/unictype/categ_Ps.h: Likewise.
43891         * lib/unictype/categ_S.h: Likewise.
43892         * lib/unictype/categ_Sc.h: Likewise.
43893         * lib/unictype/categ_Sk.h: Likewise.
43894         * lib/unictype/categ_Sm.h: Likewise.
43895         * lib/unictype/categ_So.h: Likewise.
43896         * lib/unictype/categ_Z.h: Likewise.
43897         * lib/unictype/categ_Zl.h: Likewise.
43898         * lib/unictype/categ_Zp.h: Likewise.
43899         * lib/unictype/categ_Zs.h: Likewise.
43900         * lib/unictype/categ_of.h: Likewise.
43901         * lib/unictype/combining.h: Likewise.
43902         * lib/unictype/ctype_alnum.h: Likewise.
43903         * lib/unictype/ctype_alpha.h: Likewise.
43904         * lib/unictype/ctype_blank.h: Likewise.
43905         * lib/unictype/ctype_cntrl.h: Likewise.
43906         * lib/unictype/ctype_digit.h: Likewise.
43907         * lib/unictype/ctype_graph.h: Likewise.
43908         * lib/unictype/ctype_lower.h: Likewise.
43909         * lib/unictype/ctype_print.h: Likewise.
43910         * lib/unictype/ctype_punct.h: Likewise.
43911         * lib/unictype/ctype_space.h: Likewise.
43912         * lib/unictype/ctype_upper.h: Likewise.
43913         * lib/unictype/ctype_xdigit.h: Likewise.
43914         * lib/unictype/decdigit.h: Likewise.
43915         * lib/unictype/digit.h: Likewise.
43916         * lib/unictype/mirror.h: Likewise.
43917         * lib/unictype/numeric.h: Likewise.
43918         * lib/unictype/pr_alphabetic.h: Likewise.
43919         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43920         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43921         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43922         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43923         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43924         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43925         * lib/unictype/pr_bidi_control.h: Likewise.
43926         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43927         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43928         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43929         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43930         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43931         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43932         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43933         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43934         * lib/unictype/pr_bidi_pdf.h: Likewise.
43935         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43936         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43937         * lib/unictype/pr_combining.h: Likewise.
43938         * lib/unictype/pr_composite.h: Likewise.
43939         * lib/unictype/pr_currency_symbol.h: Likewise.
43940         * lib/unictype/pr_dash.h: Likewise.
43941         * lib/unictype/pr_decimal_digit.h: Likewise.
43942         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43943         * lib/unictype/pr_deprecated.h: Likewise.
43944         * lib/unictype/pr_diacritic.h: Likewise.
43945         * lib/unictype/pr_extender.h: Likewise.
43946         * lib/unictype/pr_format_control.h: Likewise.
43947         * lib/unictype/pr_grapheme_base.h: Likewise.
43948         * lib/unictype/pr_grapheme_extend.h: Likewise.
43949         * lib/unictype/pr_grapheme_link.h: Likewise.
43950         * lib/unictype/pr_hex_digit.h: Likewise.
43951         * lib/unictype/pr_hyphen.h: Likewise.
43952         * lib/unictype/pr_id_continue.h: Likewise.
43953         * lib/unictype/pr_id_start.h: Likewise.
43954         * lib/unictype/pr_ideographic.h: Likewise.
43955         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43956         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43957         * lib/unictype/pr_ignorable_control.h: Likewise.
43958         * lib/unictype/pr_iso_control.h: Likewise.
43959         * lib/unictype/pr_join_control.h: Likewise.
43960         * lib/unictype/pr_left_of_pair.h: Likewise.
43961         * lib/unictype/pr_line_separator.h: Likewise.
43962         * lib/unictype/pr_logical_order_exception.h: Likewise.
43963         * lib/unictype/pr_lowercase.h: Likewise.
43964         * lib/unictype/pr_math.h: Likewise.
43965         * lib/unictype/pr_non_break.h: Likewise.
43966         * lib/unictype/pr_not_a_character.h: Likewise.
43967         * lib/unictype/pr_numeric.h: Likewise.
43968         * lib/unictype/pr_other_alphabetic.h: Likewise.
43969         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43970         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43971         * lib/unictype/pr_other_id_continue.h: Likewise.
43972         * lib/unictype/pr_other_id_start.h: Likewise.
43973         * lib/unictype/pr_other_lowercase.h: Likewise.
43974         * lib/unictype/pr_other_math.h: Likewise.
43975         * lib/unictype/pr_other_uppercase.h: Likewise.
43976         * lib/unictype/pr_paired_punctuation.h: Likewise.
43977         * lib/unictype/pr_paragraph_separator.h: Likewise.
43978         * lib/unictype/pr_pattern_syntax.h: Likewise.
43979         * lib/unictype/pr_pattern_white_space.h: Likewise.
43980         * lib/unictype/pr_private_use.h: Likewise.
43981         * lib/unictype/pr_punctuation.h: Likewise.
43982         * lib/unictype/pr_quotation_mark.h: Likewise.
43983         * lib/unictype/pr_radical.h: Likewise.
43984         * lib/unictype/pr_sentence_terminal.h: Likewise.
43985         * lib/unictype/pr_soft_dotted.h: Likewise.
43986         * lib/unictype/pr_space.h: Likewise.
43987         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43988         * lib/unictype/pr_titlecase.h: Likewise.
43989         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43990         * lib/unictype/pr_unified_ideograph.h: Likewise.
43991         * lib/unictype/pr_uppercase.h: Likewise.
43992         * lib/unictype/pr_variation_selector.h: Likewise.
43993         * lib/unictype/pr_white_space.h: Likewise.
43994         * lib/unictype/pr_xid_continue.h: Likewise.
43995         * lib/unictype/pr_xid_start.h: Likewise.
43996         * lib/unictype/pr_zero_width.h: Likewise.
43997         * lib/unictype/scripts.h: Likewise.
43998         * lib/unictype/scripts_byname.gperf: Likewise.
43999         * lib/unictype/sy_c_ident.h: Likewise.
44000         * lib/unictype/sy_c_whitespace.h: Likewise.
44001         * lib/unictype/sy_java_ident.h: Likewise.
44002         * lib/unictype/sy_java_whitespace.h: Likewise.
44003
44004         * lib/unictype/Makefile: New file.
44005         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44006         glibc.
44007         * lib/unictype/3level.h: New file, copied from glibc.
44008         * lib/unictype/3levelbit.h: New file.
44009
44010 2007-11-11  Bruno Haible  <bruno@clisp.org>
44011
44012         * modules/gperf: New file.
44013         * modules/iconv_open (Depends-on): Add it.
44014         (Makefile.am): Remove the GPERF definition.
44015
44016 2007-11-11  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44019         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44020
44021 2007-11-11  Bruno Haible  <bruno@clisp.org>
44022
44023         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44024         (usage): Remove function.
44025
44026 2007-11-11  Bruno Haible  <bruno@clisp.org>
44027
44028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44029         gl_FUNC_CEILF_LIBS.
44030         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44031         gl_FUNC_CEIL_LIBS.
44032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44033         gl_FUNC_CEILL_LIBS.
44034         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44035         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44036         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44037
44038 2007-11-11  Bruno Haible  <bruno@clisp.org>
44039
44040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44041         roundf were declared but do not exist on functions.
44042         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44043         roundl were declared but do not exist on functions.
44044         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44045         HAVE_FLOORL_AND_CEILL, respectively.
44046         Needed for Sun C on Solaris 10.
44047
44048 2007-11-11  Bruno Haible  <bruno@clisp.org>
44049
44050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44051         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44052         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44053         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44055         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44056         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44057         HAVE_DECL_ROUNDF.
44058         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44059         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44061         of HAVE_DECL_ROUND*.
44062         * modules/math (Makefile.am): Update.
44063
44064 2007-11-10  Bruno Haible  <bruno@clisp.org>
44065
44066         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44067         ptrdiff_t as m4/intl.m4.
44068
44069 2007-11-10  Jim Meyering  <meyering@redhat.com>
44070
44071         Avoid link failure for the argmatch test.
44072         * tests/test-argmatch.c (usage): Define function to avoid a link
44073         failure: argmatch_die requires a usage function.
44074
44075 2007-11-09  Bruno Haible  <bruno@clisp.org>
44076
44077         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44078         * doc/functions/vsnprintf.texi: Likewise.
44079         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44080         with a size argument < 2.
44081
44082 2007-11-09  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44085         buffer. Fixes an inefficiency introduced on 2007-11-03.
44086
44087 2007-11-09  Bruno Haible  <bruno@clisp.org>
44088
44089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44090         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44091
44092 2007-11-08  Jim Meyering  <meyering@redhat.com>
44093
44094         Change cache variable name prefix "jm_" to "gl_" everywhere.
44095         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44096         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44097         * m4/uptime.m4: s/gl_/jm_/
44098
44099 2007-11-07  Bruno Haible  <bruno@clisp.org>
44100
44101         Update to GNU gettext 0.17.
44102         * m4/intl.m4: Update to GNU gettext 0.17.
44103         * m4/po.m4: Likewise.
44104         * modules/gettext (Files): Remove m4/ulonglong.m4.
44105         (configure.ac): Require gettext infrastructure from version 0.17.
44106
44107 2007-11-06  Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44110         symbolic values are not defined in a public header.
44111         * lib/freadable.c (freadable) [QNX]: Likewise.
44112         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44113         * lib/freading.c (freading) [QNX]: Likewise.
44114         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44115         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44116         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44117         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44118         Reported by Alain Magloire.
44119
44120         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44121
44122 2007-11-05  Bruno Haible  <bruno@clisp.org>
44123
44124         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44125         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44126         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44127         Reported by Eric Blake.
44128
44129 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44130             Bruno Haible  <bruno@clisp.org>
44131
44132         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44133         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44134         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44135         (malloc): Undefine also before including <stdlib.h>.
44136         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44137         Needed on OSF/1 4.0.
44138
44139 2007-11-05  Jim Meyering  <meyering@redhat.com>
44140
44141         git-version-gen: sync from coreutils.
44142         * build-aux/git-version-gen: Add comments.
44143         Change the first '-' to '.' in the snapshot version string,
44144         e.g., 6.9-377-08144 -> 6.9.377-08144
44145         Remove first parameter.
44146         Don't declare a version "-dirty" merely because a time
44147         stamp has changed.
44148
44149 2007-11-04  Bruno Haible  <bruno@clisp.org>
44150
44151         * lib/lock.h: Protect all macro definitions containing an 'if'
44152         statement through a "do { ... } while (0)".
44153         * lib/tls.h: Likewise.
44154
44155 2007-11-04  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44158
44159 2007-11-04  Bruno Haible  <bruno@clisp.org>
44160
44161         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44162         * modules/fprintf-posix (Depends-on): Add nocrash.
44163         * modules/snprintf-posix (Depends-on): Likewise.
44164         * modules/sprintf-posix (Depends-on): Likewise.
44165         * modules/vasnprintf-posix (Depends-on): Likewise.
44166         * modules/vasprintf-posix (Depends-on): Likewise.
44167         * modules/vfprintf-posix (Depends-on): Likewise.
44168         * modules/vsnprintf-posix (Depends-on): Likewise.
44169         * modules/vsprintf-posix (Depends-on): Likewise.
44170         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44177
44178 2007-11-04  Bruno Haible  <bruno@clisp.org>
44179
44180         * modules/nocrash: New file.
44181         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44182         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44183
44184 2007-11-04  Bruno Haible  <bruno@clisp.org>
44185
44186         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44187         precision handling.
44188         * tests/test-vasprintf-posix.c (test_function): Likewise.
44189         * tests/test-snprintf-posix.h (test_function): Likewise.
44190         * tests/test-sprintf-posix.h (test_function): Likewise.
44191
44192         Fix *printf behaviour for large precisions on mingw and BeOS.
44193         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44194         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44196         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44198         gl_PRINTF_PRECISION and test its result. Invoke
44199         gl_PREREQ_VASNPRINTF_PRECISION.
44200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44201         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44203         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44207         * doc/functions/fprintf.texi: Update.
44208         * doc/functions/printf.texi: Update.
44209         * doc/functions/snprintf.texi: Update.
44210         * doc/functions/sprintf.texi: Update.
44211         * doc/functions/vfprintf.texi: Update.
44212         * doc/functions/vprintf.texi: Update.
44213         * doc/functions/vsnprintf.texi: Update.
44214         * doc/functions/vsprintf.texi: Update.
44215
44216 2007-11-04  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44219
44220 2007-11-04  Bruno Haible  <bruno@clisp.org>
44221
44222         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44223         Reported by Sylvain Beucler <beuc@gnu.org>.
44224
44225 2007-11-03  Bruno Haible  <bruno@clisp.org>
44226
44227         * tests/test-fprintf-posix2.sh: New file.
44228         * tests/test-fprintf-posix2.c: New file.
44229         * modules/fprintf-posix-tests (Files): Add them.
44230         (TESTS): Add test-fprintf-posix2.sh.
44231         (configure.ac): Check for getrlimit and setrlimit.
44232         (check_PROGRAMS): Add test-fprintf-posix2.
44233
44234         * tests/test-printf-posix2.sh: New file.
44235         * tests/test-printf-posix2.c: New file.
44236         * modules/printf-posix-tests (Files): Add them.
44237         (TESTS): Add test-printf-posix2.sh.
44238         (configure.ac): Check for getrlimit and setrlimit.
44239         (check_PROGRAMS): Add test-printf-posix2.
44240
44241         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44242         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44243         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44244         (decode_double): New function, copied from decode_long_double.
44245         (scale10_round_decimal_decoded): New function, extracted from
44246         scale10_round_decimal_long_double.
44247         (scale10_round_decimal_long_double): Use it.
44248         (scale10_round_decimal_double): New function.
44249         (floorlog10): New function.
44250         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44252         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44253         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44254         gl_PRINTF_ENOMEM and test its result. Invoke
44255         gl_PREREQ_VASNPRINTF_ENOMEM.
44256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44263         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44264         * modules/snprintf-posix (Depends-on): Likewise.
44265         * modules/sprintf-posix (Depends-on): Likewise.
44266         * modules/vasnprintf-posix (Depends-on): Likewise.
44267         * modules/vasprintf-posix (Depends-on): Likewise.
44268         * modules/vfprintf-posix (Depends-on): Likewise.
44269         * modules/vsnprintf-posix (Depends-on): Likewise.
44270         * modules/vsprintf-posix (Depends-on): Likewise.
44271         * doc/functions/fprintf.texi: Update.
44272         * doc/functions/printf.texi: Update.
44273         * doc/functions/snprintf.texi: Update.
44274         * doc/functions/sprintf.texi: Update.
44275         * doc/functions/vfprintf.texi: Update.
44276         * doc/functions/vprintf.texi: Update.
44277         * doc/functions/vsnprintf.texi: Update.
44278         * doc/functions/vsprintf.texi: Update.
44279
44280 2007-11-03  Bruno Haible  <bruno@clisp.org>
44281
44282         * modules/frexp-nolibm-tests: New file.
44283
44284         * modules/frexp-nolibm: New file.
44285         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44286
44287 2007-11-03  Bruno Haible  <bruno@clisp.org>
44288
44289         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44290         value is C99 compliant.
44291         Needed for OSF/1 5.1.
44292
44293 2007-11-03  Bruno Haible  <bruno@clisp.org>
44294
44295         Fix out-of-memory handling of vasnprintf.
44296         * lib/printf-parse.c: Include <errno.h>.
44297         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44298         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44299         is already set.
44300
44301 2007-11-02  Eric Blake  <ebb9@byu.net>
44302
44303         Fix tests on cygwin.
44304         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44305
44306 2007-11-01  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44309         warning.
44310         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44311         needed for POSIX compatibility.
44312
44313 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44314
44315         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44316         for compatibility with GNU.
44317
44318 2007-11-01  Bruno Haible  <bruno@clisp.org>
44319
44320         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44321         (putenv): Renamed from rpl_putenv. Change argument type from
44322         'const char *' to 'char *'.
44323         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44324         of defining putenv in config.h, just set REPLACE_PUTENV.
44325         * modules/putenv (Depends-on): Add stdlib.
44326         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44327         (Include): Use <stdlib.h>.
44328         * lib/stdlib.in.h (putenv): New declaration.
44329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44330         REPLACE_PUTENV.
44331         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44332         REPLACE_PUTENV.
44333         Needed for MacOS X 10.5.0.
44334         Reported by Peter O'Gorman <peter@pogma.com>.
44335
44336 2007-11-01  Jim Meyering  <meyering@redhat.com>
44337
44338         Treat an empty date string exactly like "0".
44339         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44340         if the remaining date string (to be parsed) is empty, use "0".
44341         Reported by Mischa Molhoek and discussed in this thread:
44342         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44343
44344 2007-10-31  Bruno Haible  <bruno@clisp.org>
44345
44346         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44347         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44348         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44349         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44350         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44351         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44352
44353 2007-10-31  Bruno Haible  <bruno@clisp.org>
44354
44355         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44356         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44357         (AC_TYPE_LONG_LONG_INT): Use it.
44358         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44359         it as well.
44360         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44361         to m4/longlong.m4.
44362         * modules/stdint (Files): Remove m4/ulonglong.m4.
44363         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44364         m4/ulonglong.m4.
44365         * modules/strtoumax (Files): Likewise.
44366
44367 2007-10-30  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/xvasprintf-posix: New file.
44370         Suggested by Eric Blake.
44371
44372 2007-10-30  Bruno Haible  <bruno@clisp.org>
44373
44374         * modules/xprintf-posix-tests: New file.
44375         * tests/test-xprintf-posix.sh: New file.
44376         * tests/test-xprintf-posix.c: New file.
44377         * tests/test-xfprintf-posix.c: New file.
44378
44379         * modules/xprintf-posix: New file.
44380
44381 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44382
44383         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44384         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44385         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44386
44387 2007-10-29  Bruno Haible  <bruno@clisp.org>
44388
44389         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44390         contain the special marker '_cv_'.
44391         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44392         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44393         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44394         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44395         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44396         Reported by Ralf Wildenhues.
44397
44398 2007-10-29  Bruno Haible  <bruno@clisp.org>
44399
44400         * gnulib-tool (func_import): When --lgpl is not specified, set
44401         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44402         GPLv3.
44403         Reported by Simon Josefsson.
44404
44405 2007-10-28  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44408         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44409         HAVE_DECL_ISFINITE.
44410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44411         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44412         HAVE_DECL_ISFINITE.
44413
44414 2007-10-28  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44417         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44418
44419 2007-10-28  Bruno Haible  <bruno@clisp.org>
44420
44421         Fix link errors with Sun C 5.0 on Solaris 10.
44422         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44423         function is declared but not present in the compiler's libm.
44424         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44425         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44426         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44427         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44428         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44429         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44430         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44432         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44433         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44434         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44435         HAVE_DECL_FLOORL.
44436
44437 2007-10-28  Bruno Haible  <bruno@clisp.org>
44438
44439         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44440         gl_FUNC_FLOORL. Cache the result.
44441         (gl_FUNC_FLOORL): Use it.
44442         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44443         gl_FUNC_CEILL. Cache the result.
44444         (gl_FUNC_CEILL): Use it.
44445
44446         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44447         gl_FUNC_FLOOR. Cache the result.
44448         (gl_FUNC_FLOOR): Use it.
44449         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44450         gl_FUNC_CEIL. Cache the result.
44451         (gl_FUNC_CEIL): Use it.
44452
44453         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44454         gl_FUNC_FLOORF. Cache the result.
44455         (gl_FUNC_FLOORF): Use it.
44456         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44457         gl_FUNC_CEILF. Cache the result.
44458         (gl_FUNC_CEILF): Use it.
44459
44460 2007-10-28  Bruno Haible  <bruno@clisp.org>
44461
44462         * gnulib-tool: Allow specifying the LGPL version number through
44463         --lgpl=2 or --lgpl=3.
44464         (func_usage): Document --lgpl with argument.
44465         Handle --lgpl=... arguments.
44466         (func_import): Recognize also gl_LGPL calls with an argument. When
44467         --lgpl=2 is used and the module's license is just LGPL, report an
44468         error. Set sed_transform_lib_file according to the lgpl variable. In
44469         the generated files, use --lgpl or gl_LGPL invocations with argument,
44470         if necessary.
44471         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44472         an LGPv2+ license.
44473         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44474         gl_LGPL macro.
44475
44476 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44477             Bruno Haible  <bruno@clisp.org>
44478
44479         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44480         (u16_uctomb_aux): Likewise.
44481         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44482         !HAVE_INLINE.
44483         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44484
44485 2007-10-28  Bruno Haible  <bruno@clisp.org>
44486
44487         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44488         Invoke AM_GETTEXT_OPTION if it exists.
44489         * modules/vasprintf: Likewise.
44490         * modules/verror: Likewise.
44491         * modules/xprintf: Likewise.
44492         * modules/xvasprintf: Likewise.
44493
44494 2007-10-27  Ben Pfaff  <blp@gnu.org>
44495
44496         * lib/math.in.h: Define isfinite macro and prototypes for
44497         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44498         implementations.
44499         * m4/math_h.m4: New substitutions for isfinite module.
44500         * lib/isfinite.c: New file.
44501         * m4/isfinite.m4: New file.
44502         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44503         * modules/isfinite: New file.
44504         * modules/isfinite-tests: New file.
44505         * tests/tests-isfinite.c: New file.
44506         * doc/functions/isfinite.texi: Mention isfinite module.
44507         * MODULES.html.sh: Mention new module.
44508
44509 2007-10-27  Ben Pfaff  <blp@gnu.org>
44510
44511         Ralf Wildenhues reported that Tru64 4.0D declares the round
44512         functions but does not have definitions.
44513         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44514         cannot be found in any library, set the output variable to
44515         "missing" instead of "".
44516         * m4/round.m4: Also use our substitute if we cannot find round in
44517         any library, even if it is declared.
44518         * m4/roundf.m4: Likewise for roundf.
44519         * m4/roundl.m4: Likewise for roundl.
44520         * lib/math.in.h: Undefine roundf, round, roundl before defining
44521         their replacements, to allow for hypothetical systems where these
44522         may be defined as macros but not available in libraries.
44523
44524 2007-10-27  Bruno Haible  <bruno@clisp.org>
44525
44526         * doc/gnulib.texi: Invoke @firstparagraphindent.
44527         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44528         changes in gnulib.
44529         (Source changes): New section.
44530
44531 2007-10-26  Bruno Haible  <bruno@clisp.org>
44532
44533         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44534         borrowed from autoconf.
44535
44536 2007-10-26  Bruno Haible  <bruno@clisp.org>
44537
44538         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44539         strerror returned the empty string. Needed on HP-UX 11.00.
44540
44541 2007-10-24  Micah Cowan  <micah@cowan.name>
44542
44543         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44544         * build-aux/bootstrap: Remove support for now-unnecessary option,
44545         --cvs-user, and envvars CVS_USER, CVS_RSH.
44546
44547 2007-10-24  Jim Meyering  <meyering@redhat.com>
44548
44549         Avoid diagnostics from sha1sum when there is no cached checksum.
44550         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44551         if the po.s1 file hasn't been created yet.
44552
44553         * build-aux/bootstrap: Sync from coreutils:
44554         2007-10-24  Jim Meyering  <meyering@redhat.com>
44555         Get gnulib from the git repository, not from an obsolete cvs one.
44556         * build-aux/bootstrap: Suggestion from Micah Cowan.
44557         2007-10-04  Jim Meyering  <jim@meyering.net>
44558         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44559         (update_po_files): Work also when there are no .po files in po/.
44560
44561 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44562
44563         * README: Append ".git" to git and cg examples.
44564         Problem reported by Benoit Sigoure.
44565
44566 2007-10-23  Micah Cowan  <micah@cowan.name>
44567
44568         * users.txt: Add wget.
44569
44570 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44571
44572         Fix linking of some unistdio tests on FreeBSD.
44573         * modules/unistdio/u16-vsnprintf-tests
44574         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44575         * modules/unistdio/u16-vsprintf-tests
44576         (test_u16_vsnprintf1_LDADD): Likewise.
44577         * modules/unistdio/u32-vsnprintf-tests
44578         (test_u32_vsnprintf1_LDADD): Likewise.
44579         * modules/unistdio/u32-vsprintf-tests
44580         (test_u32_vsprintf1_LDADD): Likewise.
44581         * modules/unistdio/u8-vsnprintf-tests
44582         (test_u8_vsnprintf1_LDADD): Likewise.
44583         * modules/unistdio/u8-vsprintf-tests
44584         (test_u8_vsprintf1_LDADD): Likewise.
44585         * modules/unistdio/ulc-vsnprintf-tests
44586         (test_ulc_vsnprintf1_LDADD): Likewise.
44587         * modules/unistdio/ulc-vsprintf-tests
44588         (test_ulc_vsprintf1_LDADD): Likewise.
44589
44590         Fix linking of some uniconv tests on FreeBSD.
44591         * modules/uniconv/u16-conv-from-enc-tests
44592         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44593         * modules/uniconv/u16-conv-to-enc-tests
44594         (test_u16_conv_to_enc_LDADD): Likewise.
44595         * modules/uniconv/u16-strconv-from-enc-tests
44596         (test_u16_strconv_from_enc_LDADD): Likewise.
44597         * modules/uniconv/u16-strconv-to-enc-tests
44598         (test_u16_strconv_to_enc_LDADD): Likewise.
44599         * modules/uniconv/u32-conv-from-enc-tests
44600         (test_u32_conv_from_enc_LDADD): Likewise.
44601         * modules/uniconv/u32-conv-to-enc-tests
44602         (test_u32_conv_to_enc_LDADD): Likewise.
44603         * modules/uniconv/u32-strconv-from-enc-tests
44604         (test_u32_strconv_from_enc_LDADD): Likewise.
44605         * modules/uniconv/u32-strconv-to-enc-tests
44606         (test_u32_strconv_to_enc_LDADD): Likewise.
44607         * modules/uniconv/u8-conv-from-enc-tests
44608         (test_u8_conv_from_enc_LDADD): Likewise.
44609         * modules/uniconv/u8-conv-to-enc-tests
44610         (test_u8_conv_to_enc_LDADD): Likewise.
44611         * modules/uniconv/u8-strconv-from-enc-tests
44612         (test_u8_strconv_from_enc_LDADD): Likewise.
44613         * modules/uniconv/u8-strconv-to-enc-tests
44614         (test_u8_strconv_to_enc_LDADD): Likewise.
44615
44616 2007-10-22  Bruno Haible  <bruno@clisp.org>
44617
44618         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44619         size.
44620
44621 2007-10-22  Eric Blake  <ebb9@byu.net>
44622
44623         Tweak x*printf documentation.
44624         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44625         variable name and comments.
44626         Suggested by Bruno Haible.
44627
44628 2007-10-22  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/acl.c (copy_acl): Fix file name in comment.
44631
44632 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44633
44634         Fix Tru64 problem with stdbool.h.
44635         * lib/stdbool.in.h (false, true):
44636         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44637         Don't declare as an enum in this situation; it runs afoul of Tru64.
44638         Problem reported by Steven M. Schweda in
44639         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44640
44641 2007-10-22  Eric Blake  <ebb9@byu.net>
44642
44643         Also wrap vf?printf.
44644         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44645         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44646         (xvprintf, xvfprintf): New functions.
44647
44648 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44649
44650         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44651         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44652
44653         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44654         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44655
44656 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44657
44658         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44659         by Bruno Haible.
44660
44661 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44662
44663         * lib/getloadavg.c
44664         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44665         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44666
44667         * tests/test-i-ring.c: Work for C89.
44668
44669 2007-10-22  Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44672         -1u, in preprocessor expression, so that we don't test for the bug
44673         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44675
44676 2007-10-22  Eric Blake  <ebb9@byu.net>
44677
44678         * tests/test-yesno.sh: Silence stderr during test.
44679
44680 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44681
44682         * modules/crypto/gc-camellia: New file.
44683
44684         * m4/gc-camellia.m4: New file.
44685
44686         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44687
44688         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44689
44690 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44691
44692         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44693         --help to stdout.  Reported by sms@antinode.org (Steven
44694         M. Schweda).
44695
44696 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44697
44698         * users.txt: Fix link to libksba.
44699
44700 2007-10-21  Ben Pfaff  <blp@gnu.org>
44701
44702         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44703         round.c roundf implementation that depends on floorf and ceilf to
44704         be tested unconditionally.
44705
44706 2007-10-21  Ben Pfaff  <blp@gnu.org>
44707
44708         * m4/check-libm-func.m4: Removed.
44709         * m4/check-math-lib.m4: New file.
44710         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44711         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44712         definition and lack of AC_LIBOBJ([roundf]).
44713         * m4/roundl.m4: Ditto, and similarly for roundl.
44714         * modules/round: Reference new m4 file.
44715         * modules/roundf: Ditto.
44716         * modules/roundl: Ditto.
44717         * tests/test-round2.c (main): Use ROUND instead of round.
44718         Bug report from Bruno Haible.
44719
44720 2007-10-21  Bruno Haible  <bruno@clisp.org>
44721
44722         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44723         context.
44724
44725 2007-10-21  Bruno Haible  <bruno@clisp.org>
44726
44727         * tests/test-wcwidth.c (main): Allow negative result for some control
44728         characters.
44729
44730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44731         Needed on OSF/1 5.1.
44732
44733 2007-10-21  Bruno Haible  <bruno@clisp.org>
44734
44735         * tests/test-floorf1.c: Include isnanf.h.
44736         (main): Use isnanf() instead of isnan().
44737         * tests/test-ceilf1.c: Include isnanf.h.
44738         (main): Use isnanf() instead of isnan().
44739         * tests/test-truncf1.c: Include isnanf.h.
44740         (main): Use isnanf() instead of isnan().
44741         * tests/test-roundf1.c: Include isnanf.h.
44742         (main): Use isnanf() instead of isnan().
44743
44744 2007-10-21  Eric Blake  <ebb9@byu.net>
44745
44746         * users.txt: Update URL for m4.
44747
44748 2007-10-21  Bruno Haible  <bruno@clisp.org>
44749
44750         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44751
44752 2007-10-21  Bruno Haible  <bruno@clisp.org>
44753
44754         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44755         Git's management files if the CVS files are not present.
44756
44757 2007-10-20  Bruno Haible  <bruno@clisp.org>
44758
44759         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44760         gcc-3.4.x.
44761
44762 2007-10-20  Ben Pfaff  <blp@gnu.org>
44763
44764         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44765         implementations.
44766         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44767         * lib/round.c: New file.
44768         * lib/roundf.c: New file.
44769         * lib/roundl.c: New file.
44770         * m4/round.m4: New file.
44771         * m4/roundf.m4: New file.
44772         * m4/roundl.m4: New file.
44773         * m4/check-libm-func-m4: New file.
44774         * modules/math: Replace round, roundf, roundl related @VARS@ in
44775         math.in.h.
44776         * modules/round: New file.
44777         * modules/round-tests: New file.
44778         * modules/roundf: New file.
44779         * modules/roundf-tests: New file.
44780         * modules/roundl: New file.
44781         * modules/roundl-tests: New file.
44782         * tests/test-round1.c: New file.
44783         * tests/test-round2.c: New file.
44784         * tests/test-roundf1.c: New file.
44785         * tests/test-roundf2.c: New file.
44786         * tests/test-roundl.c: New file.
44787         * doc/functions/round.texi: Mention round module.
44788         * doc/functions/roundf.texi: Mention roundf module.
44789         * doc/functions/roundl.texi: Mention roundl module.
44790         * MODULES.html.sh: Mention new modules.
44791         Thanks to Bruno Haible for suggestions.
44792
44793 2007-10-20  Jim Meyering  <meyering@redhat.com>
44794
44795         * lib/xprintf.c: Include <config.h> unconditionally.
44796
44797         Change xprintf's license to GPL.
44798         * modules/xprintf (License): s/LGPL/GPL/, since this module
44799         depends on modules (exit and exitfail) which are GPL.
44800         Suggestion from Bruno Haible.
44801
44802         xprintf fixes.
44803         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44804         Use a clearer diagnostic.
44805         Patch from Bruno Haible.
44806
44807 2007-10-20  Bruno Haible  <bruno@clisp.org>
44808
44809         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44810         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44812
44813 2007-10-20  Bruno Haible  <bruno@clisp.org>
44814
44815         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44816         precision in the comparison result > x - 1 or similar.
44817         * tests/test-ceilf2.c (correct_result_p): Likewise.
44818         * tests/test-truncf2.c (correct_result_p): Likewise.
44819         * tests/test-trunc2.c (correct_result_p): Likewise.
44820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44821
44822 2007-10-20  Bruno Haible  <bruno@clisp.org>
44823
44824         * modules/ceil: New file.
44825         * m4/ceil.m4: New file.
44826         * doc/functions/ceil.texi: Mention the 'ceil' module.
44827
44828 2007-10-20  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/floor: New file.
44831         * m4/floor.m4: New file.
44832         * doc/functions/floor.texi: Mention the 'floor' module.
44833
44834 2007-10-20  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44837         of %a.
44838         * modules/floorf-tests (Depends-on): Likewise.
44839         * modules/truncf-tests (Depends-on): Likewise.
44840         * modules/trunc-tests (Depends-on): Likewise.
44841         Reported by Ben Pfaff.
44842
44843 2007-10-19  Jim Meyering  <meyering@redhat.com>
44844
44845         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44846         Don't bother testing specific errno values.  Just test ferror.
44847
44848         New module: xprintf
44849         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44850
44851 2007-10-19  Bruno Haible  <bruno@clisp.org>
44852
44853         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44854         syntax.
44855         * modules/javaexec (Makefile.am): Likewise.
44856         * modules/relocatable-prog (Makefile.am): Likewise.
44857         Suggested by Jim Meyering.
44858
44859 2007-10-18  Bruno Haible  <bruno@clisp.org>
44860
44861         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44862         Reported by Jim Meyering.
44863
44864 2007-10-18  Eric Blake  <ebb9@byu.net>
44865
44866         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44867
44868 2007-10-18  Bruno Haible  <bruno@clisp.org>
44869
44870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44871         the format string into writable memory. Needed in Fortify conditions.
44872
44873 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44874             Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44877         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44878         * modules/trim (Depends-on): Add mbchar.
44879         (configure.ac): Add gl_FUNC_MBRTOWC.
44880         (Makefile.am): Augment lib_SOURCES.
44881
44882 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44883
44884         Modify glob.c to use fstatat and dirfd, to simplify it.
44885         Suggested by Eric Blake.
44886         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44887         Don't include <stdbool.h>; not used.
44888         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44889         (link_exists_p): Simplify implementation, since we can now assume
44890         dirfd and fstatat.
44891         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44892
44893 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44894
44895         * gnulib-tool (func_get_dependencies): Fix sed script to
44896         match only tests.
44897
44898 2007-10-17  Bruno Haible  <bruno@clisp.org>
44899
44900         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44901         allow locale names without encoding suffix.
44902         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44903         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44904
44905 2007-10-16  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44908         * lib/getgroups.c (getgroups): Likewise.
44909         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44910
44911 2007-10-16  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44914         * modules/malloc-posix (License): Likewise.
44915         * modules/realloc-posix (License): Likewise.
44916         * modules/calloc-posix (License): Likewise.
44917         * modules/intprops (License): Change from GPL to LGPL, with
44918         Paul Eggert's approval.
44919
44920 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44921
44922         Merge glibc changes into lib/glob.c.
44923
44924         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44925         2007-10-15 04:59:03 UTC.  Here are the changes:
44926
44927         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44928
44929         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44930
44931         * lib/glob.c: Add some branch prediction throughout.
44932
44933         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44934
44935         [BZ #5103]
44936         * lib/glob.c (glob): Recognize patterns starting \/.
44937
44938         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44939
44940         [BZ #3996]
44941         * lib/glob.c (attribute_hidden): Define if not defined.
44942         (glob): Unescape dirname, filename or username when needed and not
44943         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44944         is NULL.  Handle unescaped [ in pattern without closing ].
44945         Don't pass GLOB_CHECK down to recursive glob for directories.
44946         (__glob_pattern_type): New function.
44947         (__glob_pattern_p): Implement using __glob_pattern_type.
44948         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44949         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44950         Remove unreachable code.
44951
44952         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44953
44954         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44955         explain why there are no leaks.
44956
44957         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44958
44959         [BZ #3253]
44960         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44961         time, rather allocate increasingly bigger arrays of pointers, if
44962         possible with alloca, if too large with malloc.
44963
44964 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44965
44966         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44967         Problem reported by H.Merijn Brand in
44968         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44969         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44970         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44971
44972 2007-10-15  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44975         with explicit rpl_ prefix.
44976         * lib/fopen.c (fopen): Likewise.
44977         * lib/freopen.c (freopen): Likewise.
44978         * lib/iconv.c (iconv): Likewise.
44979         * lib/iconv_close.c (iconv_close): Likewise.
44980
44981 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44982
44983         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44984
44985 2007-10-15  Bruno Haible  <bruno@clisp.org>
44986
44987         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44988         <stddef.h> instead of <stdlib.h> since we only need NULL.
44989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44990
44991 2007-10-15  Bruno Haible  <bruno@clisp.org>
44992
44993         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44994         Replace paragraph talking about LIBOBJS.
44995         Reported by Colin Watson <cjwatson@debian.org>.
44996
44997 2007-10-15  Bruno Haible  <bruno@clisp.org>
44998
44999         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45000         <stdlib.h> before using NULL.
45001
45002 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45003
45004         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45005         Reported by Albert Chin <china@thewrittenword.com>.
45006
45007 2007-10-14  Bruno Haible  <bruno@clisp.org>
45008
45009         * modules/iconv_open-utf-tests: New file.
45010         * tests/test-iconv-utf.c: New file.
45011
45012         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45013         * modules/iconv_open-utf: New file.
45014         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45015         (iconv, iconv_close): New declarations.
45016         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45017         be defined.
45018         (iconv_open): Add special handling of conversion between UTF-8 and
45019         UTF-{16,32}{BE,LE}.
45020         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45021         * lib/iconv_close.c: New file.
45022         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45023         gl_FUNC_ICONV_OPEN.
45024         (gl_FUNC_ICONV_OPEN): Use it.
45025         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45026         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45027         and REPLACE_ICONV_UTF.
45028         * modules/iconv_open (Depends-on): Add c-strcase.
45029         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45030         ICONV_CONST.
45031         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45032
45033 2007-10-13  Albert Chin  <china@thewrittenword.com>
45034             Bruno Haible  <bruno@clisp.org>
45035
45036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45037         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45038
45039 2007-10-13  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45042         defined, use the ISO C99 inline semantics.
45043         * lib/argp.h (ARGP_EI): Likewise.
45044
45045 2007-10-13  Bruno Haible  <bruno@clisp.org>
45046
45047         Handle 'inline' change in gcc 4.3.0.
45048         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45049         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45050         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45051         argp_fmtstream_point): Disable 'extern' declaration if the function
45052         definition is going to be provided inline.
45053         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45054         semantics, not the ISO C99 inline semantics.
45055         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45056         'extern' declaration if the function definition is going to be provided
45057         inline.
45058         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45059         the GNU C inline semantics, not the ISO C99 inline semantics. With
45060         GCC 4.2, avoid a warning.
45061
45062 2007-10-13  Bruno Haible  <bruno@clisp.org>
45063
45064         * lib/freading.h (freading): Enable the use of __freading for
45065         glibc >= 2.7.
45066         * lib/freading.c (freading): Likewise.
45067
45068 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45069
45070         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45071         "warning: C99 inline functions are not supported; using GNU89".
45072
45073 2007-10-12  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45076         of 2.
45077         * tests/test-ceilf2.c: New file.
45078         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45079
45080         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45081         * modules/ceilf-tests: Update.
45082
45083 2007-10-12  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45086         of 2.
45087         * tests/test-floorf2.c: New file.
45088         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45089
45090         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45091         * modules/floorf-tests: Update.
45092
45093 2007-10-12  Bruno Haible  <bruno@clisp.org>
45094
45095         * tests/test-trunc2.c: New file.
45096         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45097
45098         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45099         * modules/trunc-tests: Update.
45100
45101 2007-10-12  Bruno Haible  <bruno@clisp.org>
45102
45103         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45104         of 2.
45105         * tests/test-truncf2.c: New file.
45106         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45107
45108         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45109         * modules/truncf-tests: Update.
45110
45111 2007-10-11  Eric Blake  <ebb9@byu.net>
45112
45113         Don't claim strerror is broken on Interix.
45114         * doc/functions/strerror.texi (strerror): Known broken systems are
45115         now Solaris 8, and not Interix.
45116         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45117         Interix on cross-compile.
45118         Reported by Martin Koeppe in
45119         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45120
45121 2007-10-11  Bruno Haible  <bruno@clisp.org>
45122
45123         * modules/i-ring-tests: New file.
45124         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45125         instead of assert.
45126
45127 2007-10-11  Bruno Haible  <bruno@clisp.org>
45128
45129         * modules/filenamecat-tests: New file.
45130         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45131         * lib/filenamecat.c: Remove test code.
45132
45133 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45134
45135         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45136
45137         * lib/strerror.c: Include <string.h> always, to test interface,
45138         and to remove the need for the dummy.
45139         Include intprops.h to compute width instead of doing it ourselves
45140         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45141         (strerror): Define it to return NULL if there's no system strerror.
45142         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45143         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45144         ancient pre-strerror Unix systems well any more.  Saying "unknown
45145         system error" is enough.
45146         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45147         simpler strerror.c implementation.
45148         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45149         Simplify the tests to reflect the simpler strerror implementation.
45150         * modules/strerror (Depends-on): Add intprops.
45151
45152 2007-10-09  Eric Blake  <ebb9@byu.net>
45153
45154         Silence test-fpending.
45155         * modules/fpending-tests (Files): Add wrapper script.
45156         * tests/test-fpending.sh: New file.
45157
45158 2007-10-09  Bruno Haible  <bruno@clisp.org>
45159
45160         * MODULES.html.sh (func_module): Don't create a hyperlink for
45161         function names like 'printf_frexp'.
45162         (Misc): Add crc, memxor.
45163         (Characteristics of floating types): New section.
45164         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45165         isnanf-nolibm, signbit, trunc, truncf, truncl.
45166         (Enhancements for ISO C 99 functions): New subsection Input/output.
45167         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45168         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45169         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45170         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45171         (Enhancements for POSIX:2001 functions): Add chdir-long.
45172         (File system functions): Add areadlink, chdir-safer, read-file.
45173         Remove cycle-check.
45174         (File system as inode set): New section.
45175         (Date and time): Add gethrxtime.
45176         (Multithreading): Add openmp.
45177         (Internationalization functions): Add localename.
45178         (Unicode string functions): Add unistr/u*-mbsnlen.
45179         (Support for maintaining and releasing projects): Add git-version-gen.
45180         (Lone files): Remove directories.
45181
45182 2007-10-08  Ben Pfaff  <blp@gnu.org>
45183
45184         * lib/xmalloca.h: Fix typo in comment.
45185
45186 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45187
45188         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45189         when avoiding problems with integer overflow.  Use a portable test
45190         instead.
45191
45192 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45193
45194         * modules/dummy (License): Change to LGPLv2+.
45195         * modules/float (License): Likewise
45196         * modules/realloc (License): Likewise
45197         * modules/stdlib (License): Likewise
45198
45199 2007-10-07  Bruno Haible  <bruno@clisp.org>
45200
45201         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45202         * floor.c (TWO_MANT_DIG): Likewise.
45203         * ceil.c (TWO_MANT_DIG): Likewise.
45204         Reported by Ben Pfaff.
45205
45206 2007-10-07  Bruno Haible  <bruno@clisp.org>
45207
45208         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45209         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45210         * lib/frexp.c (FUNC): Likewise.
45211         * lib/printf-frexp.h (printf_frexp): Likewise.
45212         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45213         * lib/printf-frexp.c (FUNC): Likewise.
45214         Suggested by Jim Meyering.
45215
45216 2007-10-07  Jim Meyering  <meyering@redhat.com>
45217
45218         Make xnanosleep's integer overflow test more robust.
45219         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45220         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45221
45222 2007-10-07  Bruno Haible  <bruno@clisp.org>
45223
45224         * NEWS: Mention the license change.
45225
45226         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45227         abbreviations in the modules files.
45228
45229         Change copyright notice from GPLv2+ to GPLv3+.
45230         * README: Change copyright notice.
45231         * MODULES.html.sh: Likewise.
45232         * build-aux/bootstrap.conf: Likewise.
45233         * build-aux/config.libpath: Likewise.
45234         * build-aux/csharpcomp.sh.in: Likewise.
45235         * build-aux/csharpexec.sh.in: Likewise.
45236         * build-aux/install-reloc: Likewise.
45237         * build-aux/javacomp.sh.in: Likewise.
45238         * build-aux/javaexec.sh.in: Likewise.
45239         * build-aux/ldd.sh.in: Likewise.
45240         * build-aux/reloc-ldflags: Likewise.
45241         * build-aux/relocatable.sh.in: Likewise.
45242         * build-aux/x-to-1.in: Likewise.
45243         * check-module: Likewise.
45244         * config/srclistvars.sh: Likewise.
45245         * gnulib-tool: Likewise.
45246         * lib/acl-internal.h: Likewise.
45247         * lib/acl.c: Likewise.
45248         * lib/acl.h: Likewise.
45249         * lib/acl_entries.c: Likewise.
45250         * lib/areadlink-with-size.c: Likewise.
45251         * lib/areadlink.c: Likewise.
45252         * lib/areadlink.h: Likewise.
45253         * lib/argmatch.c: Likewise.
45254         * lib/argmatch.h: Likewise.
45255         * lib/argp-ba.c: Likewise.
45256         * lib/argp-eexst.c: Likewise.
45257         * lib/argp-fmtstream.c: Likewise.
45258         * lib/argp-fmtstream.h: Likewise.
45259         * lib/argp-fs-xinl.c: Likewise.
45260         * lib/argp-help.c: Likewise.
45261         * lib/argp-namefrob.h: Likewise.
45262         * lib/argp-parse.c: Likewise.
45263         * lib/argp-pin.c: Likewise.
45264         * lib/argp-pv.c: Likewise.
45265         * lib/argp-pvh.c: Likewise.
45266         * lib/argp-xinl.c: Likewise.
45267         * lib/argp.h: Likewise.
45268         * lib/at-func.c: Likewise.
45269         * lib/atanl.c: Likewise.
45270         * lib/backupfile.c: Likewise.
45271         * lib/backupfile.h: Likewise.
45272         * lib/basename.c: Likewise.
45273         * lib/binary-io.h: Likewise.
45274         * lib/byteswap.in.h: Likewise.
45275         * lib/c-stack.c: Likewise.
45276         * lib/c-stack.h: Likewise.
45277         * lib/c-strcasestr.c: Likewise.
45278         * lib/c-strcasestr.h: Likewise.
45279         * lib/c-strstr.c: Likewise.
45280         * lib/c-strstr.h: Likewise.
45281         * lib/c-strtod.c: Likewise.
45282         * lib/calloc.c: Likewise.
45283         * lib/canon-host.c: Likewise.
45284         * lib/canon-host.h: Likewise.
45285         * lib/canonicalize-lgpl.c: Likewise.
45286         * lib/canonicalize.c: Likewise.
45287         * lib/canonicalize.h: Likewise.
45288         * lib/ceil.c: Likewise.
45289         * lib/ceilf.c: Likewise.
45290         * lib/ceill.c: Likewise.
45291         * lib/chdir-long.c: Likewise.
45292         * lib/chdir-long.h: Likewise.
45293         * lib/chdir-safer.c: Likewise.
45294         * lib/chdir-safer.h: Likewise.
45295         * lib/chown.c: Likewise.
45296         * lib/classpath.c: Likewise.
45297         * lib/classpath.h: Likewise.
45298         * lib/clean-temp.c: Likewise.
45299         * lib/clean-temp.h: Likewise.
45300         * lib/cloexec.c: Likewise.
45301         * lib/close-stream.c: Likewise.
45302         * lib/closein.c: Likewise.
45303         * lib/closein.h: Likewise.
45304         * lib/closeout.c: Likewise.
45305         * lib/closeout.h: Likewise.
45306         * lib/concat-filename.c: Likewise.
45307         * lib/copy-file.c: Likewise.
45308         * lib/copy-file.h: Likewise.
45309         * lib/count-one-bits.h: Likewise.
45310         * lib/crc.c: Likewise.
45311         * lib/crc.h: Likewise.
45312         * lib/creat-safer.c: Likewise.
45313         * lib/csharpcomp.c: Likewise.
45314         * lib/csharpcomp.h: Likewise.
45315         * lib/csharpexec.c: Likewise.
45316         * lib/csharpexec.h: Likewise.
45317         * lib/cycle-check.c: Likewise.
45318         * lib/cycle-check.h: Likewise.
45319         * lib/diacrit.c: Likewise.
45320         * lib/diacrit.h: Likewise.
45321         * lib/diffseq.h: Likewise.
45322         * lib/dirchownmod.c: Likewise.
45323         * lib/dirent.in.h: Likewise.
45324         * lib/dirfd.c: Likewise.
45325         * lib/dirfd.h: Likewise.
45326         * lib/dirname.c: Likewise.
45327         * lib/dirname.h: Likewise.
45328         * lib/dummy.c: Likewise.
45329         * lib/dup-safer.c: Likewise.
45330         * lib/dup2.c: Likewise.
45331         * lib/eealloc.h: Likewise.
45332         * lib/error.c: Likewise.
45333         * lib/error.h: Likewise.
45334         * lib/euidaccess.c: Likewise.
45335         * lib/exclude.c: Likewise.
45336         * lib/exclude.h: Likewise.
45337         * lib/execute.c: Likewise.
45338         * lib/execute.h: Likewise.
45339         * lib/exitfail.c: Likewise.
45340         * lib/exitfail.h: Likewise.
45341         * lib/expl.c: Likewise.
45342         * lib/fatal-signal.c: Likewise.
45343         * lib/fatal-signal.h: Likewise.
45344         * lib/fbufmode.c: Likewise.
45345         * lib/fbufmode.h: Likewise.
45346         * lib/fchdir.c: Likewise.
45347         * lib/fchmodat.c: Likewise.
45348         * lib/fchownat.c: Likewise.
45349         * lib/fcntl--.h: Likewise.
45350         * lib/fcntl-safer.h: Likewise.
45351         * lib/fcntl.in.h: Likewise.
45352         * lib/fd-safer.c: Likewise.
45353         * lib/fflush.c: Likewise.
45354         * lib/file-has-acl.c: Likewise.
45355         * lib/file-set.c: Likewise.
45356         * lib/file-type.c: Likewise.
45357         * lib/file-type.h: Likewise.
45358         * lib/fileblocks.c: Likewise.
45359         * lib/filemode.c: Likewise.
45360         * lib/filemode.h: Likewise.
45361         * lib/filename.h: Likewise.
45362         * lib/filenamecat.c: Likewise.
45363         * lib/filenamecat.h: Likewise.
45364         * lib/findprog.c: Likewise.
45365         * lib/findprog.h: Likewise.
45366         * lib/float.in.h: Likewise.
45367         * lib/floor.c: Likewise.
45368         * lib/floorf.c: Likewise.
45369         * lib/floorl.c: Likewise.
45370         * lib/fopen-safer.c: Likewise.
45371         * lib/fopen.c: Likewise.
45372         * lib/fpending.c: Likewise.
45373         * lib/fpending.h: Likewise.
45374         * lib/fprintf.c: Likewise.
45375         * lib/fprintftime.h: Likewise.
45376         * lib/fpucw.h: Likewise.
45377         * lib/fpurge.c: Likewise.
45378         * lib/fpurge.h: Likewise.
45379         * lib/freadable.c: Likewise.
45380         * lib/freadable.h: Likewise.
45381         * lib/freadahead.c: Likewise.
45382         * lib/freadahead.h: Likewise.
45383         * lib/freading.c: Likewise.
45384         * lib/freading.h: Likewise.
45385         * lib/free.c: Likewise.
45386         * lib/freopen.c: Likewise.
45387         * lib/frexp.c: Likewise.
45388         * lib/frexpl.c: Likewise.
45389         * lib/fseek.c: Likewise.
45390         * lib/fseterr.c: Likewise.
45391         * lib/fseterr.h: Likewise.
45392         * lib/fstatat.c: Likewise.
45393         * lib/fstrcmp.c: Likewise.
45394         * lib/fstrcmp.h: Likewise.
45395         * lib/fsusage.c: Likewise.
45396         * lib/fsusage.h: Likewise.
45397         * lib/ftell.c: Likewise.
45398         * lib/ftello.c: Likewise.
45399         * lib/fts-cycle.c: Likewise.
45400         * lib/fts.c: Likewise.
45401         * lib/fts_.h: Likewise.
45402         * lib/full-read.c: Likewise.
45403         * lib/full-read.h: Likewise.
45404         * lib/full-write.c: Likewise.
45405         * lib/full-write.h: Likewise.
45406         * lib/fwritable.c: Likewise.
45407         * lib/fwritable.h: Likewise.
45408         * lib/fwriteerror.c: Likewise.
45409         * lib/fwriteerror.h: Likewise.
45410         * lib/fwriting.c: Likewise.
45411         * lib/fwriting.h: Likewise.
45412         * lib/gcd.c: Likewise.
45413         * lib/gcd.h: Likewise.
45414         * lib/getcwd.c: Likewise.
45415         * lib/getdate.h: Likewise.
45416         * lib/getdate.y: Likewise.
45417         * lib/getdomainname.c: Likewise.
45418         * lib/getdomainname.h: Likewise.
45419         * lib/getgroups.c: Likewise.
45420         * lib/gethostname.c: Likewise.
45421         * lib/gethrxtime.c: Likewise.
45422         * lib/gethrxtime.h: Likewise.
45423         * lib/getloadavg.c: Likewise.
45424         * lib/getndelim2.c: Likewise.
45425         * lib/getndelim2.h: Likewise.
45426         * lib/getnline.c: Likewise.
45427         * lib/getnline.h: Likewise.
45428         * lib/getopt.c: Likewise.
45429         * lib/getopt.in.h: Likewise.
45430         * lib/getopt1.c: Likewise.
45431         * lib/getopt_int.h: Likewise.
45432         * lib/getpagesize.h: Likewise.
45433         * lib/getsubopt.c: Likewise.
45434         * lib/gettime.c: Likewise.
45435         * lib/getugroups.c: Likewise.
45436         * lib/getugroups.h: Likewise.
45437         * lib/getusershell.c: Likewise.
45438         * lib/gl_anyavltree_list1.h: Likewise.
45439         * lib/gl_anyavltree_list2.h: Likewise.
45440         * lib/gl_anyhash_list1.h: Likewise.
45441         * lib/gl_anyhash_list2.h: Likewise.
45442         * lib/gl_anylinked_list1.h: Likewise.
45443         * lib/gl_anylinked_list2.h: Likewise.
45444         * lib/gl_anyrbtree_list1.h: Likewise.
45445         * lib/gl_anyrbtree_list2.h: Likewise.
45446         * lib/gl_anytree_list1.h: Likewise.
45447         * lib/gl_anytree_list2.h: Likewise.
45448         * lib/gl_anytree_oset.h: Likewise.
45449         * lib/gl_anytreehash_list1.h: Likewise.
45450         * lib/gl_anytreehash_list2.h: Likewise.
45451         * lib/gl_array_list.c: Likewise.
45452         * lib/gl_array_list.h: Likewise.
45453         * lib/gl_array_oset.c: Likewise.
45454         * lib/gl_array_oset.h: Likewise.
45455         * lib/gl_avltree_list.c: Likewise.
45456         * lib/gl_avltree_list.h: Likewise.
45457         * lib/gl_avltree_oset.c: Likewise.
45458         * lib/gl_avltree_oset.h: Likewise.
45459         * lib/gl_avltreehash_list.c: Likewise.
45460         * lib/gl_avltreehash_list.h: Likewise.
45461         * lib/gl_carray_list.c: Likewise.
45462         * lib/gl_carray_list.h: Likewise.
45463         * lib/gl_linked_list.c: Likewise.
45464         * lib/gl_linked_list.h: Likewise.
45465         * lib/gl_linkedhash_list.c: Likewise.
45466         * lib/gl_linkedhash_list.h: Likewise.
45467         * lib/gl_list.c: Likewise.
45468         * lib/gl_list.h: Likewise.
45469         * lib/gl_oset.c: Likewise.
45470         * lib/gl_oset.h: Likewise.
45471         * lib/gl_rbtree_list.c: Likewise.
45472         * lib/gl_rbtree_list.h: Likewise.
45473         * lib/gl_rbtree_oset.c: Likewise.
45474         * lib/gl_rbtree_oset.h: Likewise.
45475         * lib/gl_rbtreehash_list.c: Likewise.
45476         * lib/gl_rbtreehash_list.h: Likewise.
45477         * lib/gl_sublist.c: Likewise.
45478         * lib/gl_sublist.h: Likewise.
45479         * lib/group-member.c: Likewise.
45480         * lib/group-member.h: Likewise.
45481         * lib/hard-locale.c: Likewise.
45482         * lib/hard-locale.h: Likewise.
45483         * lib/hash-pjw.c: Likewise.
45484         * lib/hash-pjw.h: Likewise.
45485         * lib/hash-triple.c: Likewise.
45486         * lib/hash.c: Likewise.
45487         * lib/hash.h: Likewise.
45488         * lib/human.c: Likewise.
45489         * lib/human.h: Likewise.
45490         * lib/i-ring.c: Likewise.
45491         * lib/i-ring.h: Likewise.
45492         * lib/idcache.c: Likewise.
45493         * lib/imaxabs.c: Likewise.
45494         * lib/imaxdiv.c: Likewise.
45495         * lib/inet_pton.c: Likewise.
45496         * lib/inet_pton.h: Likewise.
45497         * lib/intprops.h: Likewise.
45498         * lib/inttostr.c: Likewise.
45499         * lib/inttostr.h: Likewise.
45500         * lib/inttypes.in.h: Likewise.
45501         * lib/isapipe.c: Likewise.
45502         * lib/isdir.c: Likewise.
45503         * lib/isnan.c: Likewise.
45504         * lib/isnan.h: Likewise.
45505         * lib/isnanf.c: Likewise.
45506         * lib/isnanf.h: Likewise.
45507         * lib/isnanl-nolibm.h: Likewise.
45508         * lib/isnanl.c: Likewise.
45509         * lib/isnanl.h: Likewise.
45510         * lib/javacomp.c: Likewise.
45511         * lib/javacomp.h: Likewise.
45512         * lib/javaexec.c: Likewise.
45513         * lib/javaexec.h: Likewise.
45514         * lib/javaversion.c: Likewise.
45515         * lib/javaversion.h: Likewise.
45516         * lib/javaversion.java: Likewise.
45517         * lib/lbrkprop.h: Likewise.
45518         * lib/lchmod.h: Likewise.
45519         * lib/lchown.c: Likewise.
45520         * lib/ldexpl.c: Likewise.
45521         * lib/linebreak.c: Likewise.
45522         * lib/linebreak.h: Likewise.
45523         * lib/linebuffer.c: Likewise.
45524         * lib/linebuffer.h: Likewise.
45525         * lib/locale.in.h: Likewise.
45526         * lib/logl.c: Likewise.
45527         * lib/long-options.c: Likewise.
45528         * lib/long-options.h: Likewise.
45529         * lib/lstat.c: Likewise.
45530         * lib/lstat.h: Likewise.
45531         * lib/math.in.h: Likewise.
45532         * lib/mbchar.c: Likewise.
45533         * lib/mbchar.h: Likewise.
45534         * lib/mbfile.h: Likewise.
45535         * lib/mbiter.h: Likewise.
45536         * lib/mbscasecmp.c: Likewise.
45537         * lib/mbscasestr.c: Likewise.
45538         * lib/mbschr.c: Likewise.
45539         * lib/mbscspn.c: Likewise.
45540         * lib/mbslen.c: Likewise.
45541         * lib/mbsncasecmp.c: Likewise.
45542         * lib/mbsnlen.c: Likewise.
45543         * lib/mbspbrk.c: Likewise.
45544         * lib/mbspcasecmp.c: Likewise.
45545         * lib/mbsrchr.c: Likewise.
45546         * lib/mbssep.c: Likewise.
45547         * lib/mbsspn.c: Likewise.
45548         * lib/mbsstr.c: Likewise.
45549         * lib/mbstok_r.c: Likewise.
45550         * lib/mbswidth.c: Likewise.
45551         * lib/mbswidth.h: Likewise.
45552         * lib/mbuiter.h: Likewise.
45553         * lib/memcasecmp.c: Likewise.
45554         * lib/memcasecmp.h: Likewise.
45555         * lib/memchr.c: Likewise.
45556         * lib/memcmp.c: Likewise.
45557         * lib/memcoll.c: Likewise.
45558         * lib/memcoll.h: Likewise.
45559         * lib/memcpy.c: Likewise.
45560         * lib/memrchr.c: Likewise.
45561         * lib/mkancesdirs.c: Likewise.
45562         * lib/mkdir-p.c: Likewise.
45563         * lib/mkdir-p.h: Likewise.
45564         * lib/mkdir.c: Likewise.
45565         * lib/mkdirat.c: Likewise.
45566         * lib/mkdtemp.c: Likewise.
45567         * lib/mkstemp-safer.c: Likewise.
45568         * lib/mkstemp.c: Likewise.
45569         * lib/modechange.c: Likewise.
45570         * lib/modechange.h: Likewise.
45571         * lib/mountlist.c: Likewise.
45572         * lib/mountlist.h: Likewise.
45573         * lib/mpsort.c: Likewise.
45574         * lib/nanosleep.c: Likewise.
45575         * lib/obstack.c: Likewise.
45576         * lib/obstack.h: Likewise.
45577         * lib/open-safer.c: Likewise.
45578         * lib/open.c: Likewise.
45579         * lib/openat-die.c: Likewise.
45580         * lib/openat-priv.h: Likewise.
45581         * lib/openat-proc.c: Likewise.
45582         * lib/openat.c: Likewise.
45583         * lib/openat.h: Likewise.
45584         * lib/pagealign_alloc.c: Likewise.
45585         * lib/pagealign_alloc.h: Likewise.
45586         * lib/physmem.c: Likewise.
45587         * lib/physmem.h: Likewise.
45588         * lib/pipe-safer.c: Likewise.
45589         * lib/pipe.c: Likewise.
45590         * lib/pipe.h: Likewise.
45591         * lib/posixtm.c: Likewise.
45592         * lib/posixtm.h: Likewise.
45593         * lib/posixver.c: Likewise.
45594         * lib/printf-frexp.c: Likewise.
45595         * lib/printf-frexp.h: Likewise.
45596         * lib/printf-frexpl.c: Likewise.
45597         * lib/printf-frexpl.h: Likewise.
45598         * lib/printf.c: Likewise.
45599         * lib/progname.c: Likewise.
45600         * lib/progname.h: Likewise.
45601         * lib/progreloc.c: Likewise.
45602         * lib/putenv.c: Likewise.
45603         * lib/quote.c: Likewise.
45604         * lib/quote.h: Likewise.
45605         * lib/quotearg.c: Likewise.
45606         * lib/quotearg.h: Likewise.
45607         * lib/raise.c: Likewise.
45608         * lib/readline.c: Likewise.
45609         * lib/readline.h: Likewise.
45610         * lib/readlink.c: Likewise.
45611         * lib/readtokens.c: Likewise.
45612         * lib/readtokens.h: Likewise.
45613         * lib/readtokens0.c: Likewise.
45614         * lib/readtokens0.h: Likewise.
45615         * lib/readutmp.c: Likewise.
45616         * lib/readutmp.h: Likewise.
45617         * lib/realloc.c: Likewise.
45618         * lib/relocwrapper.c: Likewise.
45619         * lib/rename-dest-slash.c: Likewise.
45620         * lib/rename.c: Likewise.
45621         * lib/rmdir.c: Likewise.
45622         * lib/rpmatch.c: Likewise.
45623         * lib/safe-read.c: Likewise.
45624         * lib/safe-read.h: Likewise.
45625         * lib/safe-write.c: Likewise.
45626         * lib/safe-write.h: Likewise.
45627         * lib/same-inode.h: Likewise.
45628         * lib/same.c: Likewise.
45629         * lib/same.h: Likewise.
45630         * lib/save-cwd.c: Likewise.
45631         * lib/save-cwd.h: Likewise.
45632         * lib/savedir.c: Likewise.
45633         * lib/savedir.h: Likewise.
45634         * lib/savewd.c: Likewise.
45635         * lib/savewd.h: Likewise.
45636         * lib/search.in.h: Likewise.
45637         * lib/setenv.c: Likewise.
45638         * lib/setenv.h: Likewise.
45639         * lib/settime.c: Likewise.
45640         * lib/sh-quote.c: Likewise.
45641         * lib/sh-quote.h: Likewise.
45642         * lib/sig2str.c: Likewise.
45643         * lib/sig2str.h: Likewise.
45644         * lib/signal.in.h: Likewise.
45645         * lib/signbitd.c: Likewise.
45646         * lib/signbitf.c: Likewise.
45647         * lib/signbitl.c: Likewise.
45648         * lib/sigprocmask.c: Likewise.
45649         * lib/sincosl.c: Likewise.
45650         * lib/sleep.c: Likewise.
45651         * lib/sprintf.c: Likewise.
45652         * lib/sqrtl.c: Likewise.
45653         * lib/stat-time.h: Likewise.
45654         * lib/stdio--.h: Likewise.
45655         * lib/stdio-safer.h: Likewise.
45656         * lib/stdlib--.h: Likewise.
45657         * lib/stdlib-safer.h: Likewise.
45658         * lib/stdlib.in.h: Likewise.
45659         * lib/stpcpy.c: Likewise.
45660         * lib/stpncpy.c: Likewise.
45661         * lib/strchrnul.c: Likewise.
45662         * lib/strcspn.c: Likewise.
45663         * lib/strerror.c: Likewise.
45664         * lib/strftime.c: Likewise.
45665         * lib/strftime.h: Likewise.
45666         * lib/striconveh.c: Likewise.
45667         * lib/striconveh.h: Likewise.
45668         * lib/striconveha.c: Likewise.
45669         * lib/striconveha.h: Likewise.
45670         * lib/stripslash.c: Likewise.
45671         * lib/strnlen1.c: Likewise.
45672         * lib/strnlen1.h: Likewise.
45673         * lib/strtod.c: Likewise.
45674         * lib/strtoimax.c: Likewise.
45675         * lib/strtok_r.c: Likewise.
45676         * lib/strtol.c: Likewise.
45677         * lib/strtoll.c: Likewise.
45678         * lib/strtoul.c: Likewise.
45679         * lib/strtoull.c: Likewise.
45680         * lib/sysexits.in.h: Likewise.
45681         * lib/tempname.c: Likewise.
45682         * lib/tempname.h: Likewise.
45683         * lib/timespec.h: Likewise.
45684         * lib/tls.c: Likewise.
45685         * lib/tls.h: Likewise.
45686         * lib/tmpdir.c: Likewise.
45687         * lib/tmpdir.h: Likewise.
45688         * lib/tmpfile-safer.c: Likewise.
45689         * lib/tmpfile.c: Likewise.
45690         * lib/trigl.c: Likewise.
45691         * lib/trigl.h: Likewise.
45692         * lib/trim.c: Likewise.
45693         * lib/trim.h: Likewise.
45694         * lib/trunc.c: Likewise.
45695         * lib/truncf.c: Likewise.
45696         * lib/truncl.c: Likewise.
45697         * lib/tsearch.c: Likewise.
45698         * lib/unicodeio.c: Likewise.
45699         * lib/unicodeio.h: Likewise.
45700         * lib/unistd--.h: Likewise.
45701         * lib/unistd-safer.h: Likewise.
45702         * lib/unistdio/ulc-fprintf.c: Likewise.
45703         * lib/unistdio/ulc-vfprintf.c: Likewise.
45704         * lib/unlinkdir.c: Likewise.
45705         * lib/unlinkdir.h: Likewise.
45706         * lib/unlocked-io.h: Likewise.
45707         * lib/unsetenv.c: Likewise.
45708         * lib/userspec.c: Likewise.
45709         * lib/utime.c: Likewise.
45710         * lib/utimecmp.c: Likewise.
45711         * lib/utimecmp.h: Likewise.
45712         * lib/utimens.c: Likewise.
45713         * lib/verify.h: Likewise.
45714         * lib/verror.c: Likewise.
45715         * lib/verror.h: Likewise.
45716         * lib/version-etc-fsf.c: Likewise.
45717         * lib/version-etc.c: Likewise.
45718         * lib/version-etc.h: Likewise.
45719         * lib/vfprintf.c: Likewise.
45720         * lib/vprintf.c: Likewise.
45721         * lib/vsprintf.c: Likewise.
45722         * lib/w32spawn.h: Likewise.
45723         * lib/wait-process.c: Likewise.
45724         * lib/wait-process.h: Likewise.
45725         * lib/wcwidth.c: Likewise.
45726         * lib/write-any-file.c: Likewise.
45727         * lib/xalloc-die.c: Likewise.
45728         * lib/xalloc.h: Likewise.
45729         * lib/xasprintf.c: Likewise.
45730         * lib/xgetcwd.c: Likewise.
45731         * lib/xgetcwd.h: Likewise.
45732         * lib/xgetdomainname.c: Likewise.
45733         * lib/xgetdomainname.h: Likewise.
45734         * lib/xgethostname.c: Likewise.
45735         * lib/xmalloc.c: Likewise.
45736         * lib/xmalloca.c: Likewise.
45737         * lib/xmalloca.h: Likewise.
45738         * lib/xmemcoll.c: Likewise.
45739         * lib/xnanosleep.c: Likewise.
45740         * lib/xreadlink.c: Likewise.
45741         * lib/xreadlink.h: Likewise.
45742         * lib/xsetenv.c: Likewise.
45743         * lib/xsetenv.h: Likewise.
45744         * lib/xstriconv.c: Likewise.
45745         * lib/xstriconv.h: Likewise.
45746         * lib/xstrndup.c: Likewise.
45747         * lib/xstrndup.h: Likewise.
45748         * lib/xstrtod.c: Likewise.
45749         * lib/xstrtod.h: Likewise.
45750         * lib/xstrtol-error.c: Likewise.
45751         * lib/xstrtol.c: Likewise.
45752         * lib/xstrtol.h: Likewise.
45753         * lib/xtime.h: Likewise.
45754         * lib/xvasprintf.c: Likewise.
45755         * lib/xvasprintf.h: Likewise.
45756         * lib/yesno.c: Likewise.
45757         * lib/yesno.h: Likewise.
45758         * posix-modules: Likewise.
45759         * tests/test-alloca-opt.c: Likewise.
45760         * tests/test-arcfour.c: Likewise.
45761         * tests/test-arctwo.c: Likewise.
45762         * tests/test-argmatch.c: Likewise.
45763         * tests/test-argp-2.sh: Likewise.
45764         * tests/test-argp.c: Likewise.
45765         * tests/test-arpa_inet.c: Likewise.
45766         * tests/test-array_list.c: Likewise.
45767         * tests/test-array_oset.c: Likewise.
45768         * tests/test-atexit.c: Likewise.
45769         * tests/test-avltree_list.c: Likewise.
45770         * tests/test-avltree_oset.c: Likewise.
45771         * tests/test-avltreehash_list.c: Likewise.
45772         * tests/test-base64.c: Likewise.
45773         * tests/test-binary-io.c: Likewise.
45774         * tests/test-byteswap.c: Likewise.
45775         * tests/test-c-ctype.c: Likewise.
45776         * tests/test-c-strcasecmp.c: Likewise.
45777         * tests/test-c-strcasestr.c: Likewise.
45778         * tests/test-c-strncasecmp.c: Likewise.
45779         * tests/test-c-strstr.c: Likewise.
45780         * tests/test-canonicalize-lgpl.c: Likewise.
45781         * tests/test-canonicalize.c: Likewise.
45782         * tests/test-carray_list.c: Likewise.
45783         * tests/test-ceilf.c: Likewise.
45784         * tests/test-ceill.c: Likewise.
45785         * tests/test-count-one-bits.c: Likewise.
45786         * tests/test-crc.c: Likewise.
45787         * tests/test-dirname.c: Likewise.
45788         * tests/test-fbufmode.c: Likewise.
45789         * tests/test-fcntl.c: Likewise.
45790         * tests/test-fflush.c: Likewise.
45791         * tests/test-floorf.c: Likewise.
45792         * tests/test-floorl.c: Likewise.
45793         * tests/test-fopen.c: Likewise.
45794         * tests/test-fprintf-posix.c: Likewise.
45795         * tests/test-fprintf-posix.h: Likewise.
45796         * tests/test-fpurge.c: Likewise.
45797         * tests/test-freadable.c: Likewise.
45798         * tests/test-freadahead.c: Likewise.
45799         * tests/test-freading.c: Likewise.
45800         * tests/test-freopen.c: Likewise.
45801         * tests/test-frexp.c: Likewise.
45802         * tests/test-frexpl.c: Likewise.
45803         * tests/test-fseek.c: Likewise.
45804         * tests/test-fseeko.c: Likewise.
45805         * tests/test-fseterr.c: Likewise.
45806         * tests/test-fstrcmp.c: Likewise.
45807         * tests/test-ftell.c: Likewise.
45808         * tests/test-ftello.c: Likewise.
45809         * tests/test-fwritable.c: Likewise.
45810         * tests/test-fwriting.c: Likewise.
45811         * tests/test-getaddrinfo.c: Likewise.
45812         * tests/test-getpass.c: Likewise.
45813         * tests/test-gettimeofday.c: Likewise.
45814         * tests/test-hmac-md5.c: Likewise.
45815         * tests/test-hmac-sha1.c: Likewise.
45816         * tests/test-iconv.c: Likewise.
45817         * tests/test-iconvme.c: Likewise.
45818         * tests/test-inttypes.c: Likewise.
45819         * tests/test-isnan.c: Likewise.
45820         * tests/test-isnanf.c: Likewise.
45821         * tests/test-isnanl-nolibm.c: Likewise.
45822         * tests/test-isnanl.c: Likewise.
45823         * tests/test-isnanl.h: Likewise.
45824         * tests/test-ldexpl.c: Likewise.
45825         * tests/test-linked_list.c: Likewise.
45826         * tests/test-linkedhash_list.c: Likewise.
45827         * tests/test-locale.c: Likewise.
45828         * tests/test-localename.c: Likewise.
45829         * tests/test-lock.c: Likewise.
45830         * tests/test-lseek.c: Likewise.
45831         * tests/test-malloca.c: Likewise.
45832         * tests/test-math.c: Likewise.
45833         * tests/test-mbscasecmp.c: Likewise.
45834         * tests/test-mbscasestr1.c: Likewise.
45835         * tests/test-mbscasestr2.c: Likewise.
45836         * tests/test-mbscasestr3.c: Likewise.
45837         * tests/test-mbscasestr4.c: Likewise.
45838         * tests/test-mbschr.c: Likewise.
45839         * tests/test-mbscspn.c: Likewise.
45840         * tests/test-mbsncasecmp.c: Likewise.
45841         * tests/test-mbspbrk.c: Likewise.
45842         * tests/test-mbspcasecmp.c: Likewise.
45843         * tests/test-mbsrchr.c: Likewise.
45844         * tests/test-mbsspn.c: Likewise.
45845         * tests/test-mbsstr1.c: Likewise.
45846         * tests/test-mbsstr2.c: Likewise.
45847         * tests/test-mbsstr3.c: Likewise.
45848         * tests/test-md5.c: Likewise.
45849         * tests/test-memmem.c: Likewise.
45850         * tests/test-netinet_in.c: Likewise.
45851         * tests/test-open.c: Likewise.
45852         * tests/test-printf-frexp.c: Likewise.
45853         * tests/test-printf-frexpl.c: Likewise.
45854         * tests/test-printf-posix.c: Likewise.
45855         * tests/test-printf-posix.h: Likewise.
45856         * tests/test-rbtree_list.c: Likewise.
45857         * tests/test-rbtree_oset.c: Likewise.
45858         * tests/test-rbtreehash_list.c: Likewise.
45859         * tests/test-read-file.c: Likewise.
45860         * tests/test-rijndael.c: Likewise.
45861         * tests/test-search.c: Likewise.
45862         * tests/test-signbit.c: Likewise.
45863         * tests/test-sleep.c: Likewise.
45864         * tests/test-snprintf-posix.c: Likewise.
45865         * tests/test-snprintf-posix.h: Likewise.
45866         * tests/test-snprintf.c: Likewise.
45867         * tests/test-sprintf-posix.c: Likewise.
45868         * tests/test-sprintf-posix.h: Likewise.
45869         * tests/test-stat-time.c: Likewise.
45870         * tests/test-stdbool.c: Likewise.
45871         * tests/test-stdint.c: Likewise.
45872         * tests/test-stdio.c: Likewise.
45873         * tests/test-stdlib.c: Likewise.
45874         * tests/test-stpncpy.c: Likewise.
45875         * tests/test-strcasestr.c: Likewise.
45876         * tests/test-striconv.c: Likewise.
45877         * tests/test-striconveh.c: Likewise.
45878         * tests/test-striconveha.c: Likewise.
45879         * tests/test-string.c: Likewise.
45880         * tests/test-sys_select.c: Likewise.
45881         * tests/test-sys_socket.c: Likewise.
45882         * tests/test-sys_stat.c: Likewise.
45883         * tests/test-sys_time.c: Likewise.
45884         * tests/test-sysexits.c: Likewise.
45885         * tests/test-time.c: Likewise.
45886         * tests/test-tls.c: Likewise.
45887         * tests/test-trunc.c: Likewise.
45888         * tests/test-truncf.c: Likewise.
45889         * tests/test-truncl.c: Likewise.
45890         * tests/test-unistd.c: Likewise.
45891         * tests/test-vasnprintf-posix.c: Likewise.
45892         * tests/test-vasnprintf-posix2.c: Likewise.
45893         * tests/test-vasnprintf.c: Likewise.
45894         * tests/test-vasprintf-posix.c: Likewise.
45895         * tests/test-vasprintf.c: Likewise.
45896         * tests/test-verify.c: Likewise.
45897         * tests/test-vfprintf-posix.c: Likewise.
45898         * tests/test-vprintf-posix.c: Likewise.
45899         * tests/test-vsnprintf-posix.c: Likewise.
45900         * tests/test-vsnprintf.c: Likewise.
45901         * tests/test-vsprintf-posix.c: Likewise.
45902         * tests/test-wchar.c: Likewise.
45903         * tests/test-wctype.c: Likewise.
45904         * tests/test-wcwidth.c: Likewise.
45905         * tests/test-xstrtol.c: Likewise.
45906         * tests/test-xvasprintf.c: Likewise.
45907         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45908         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45909         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45910         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45911         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45912         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45913         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45914         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45915         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45916         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45917         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45918         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45919         * tests/uniname/test-uninames.c: Likewise.
45920         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45921         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45922         * tests/unistdio/test-u16-printf1.h: Likewise.
45923         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45924         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45925         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45926         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45927         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45928         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45929         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45930         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45931         * tests/unistdio/test-u32-printf1.h: Likewise.
45932         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45933         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45934         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45935         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45936         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45937         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45938         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45939         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45940         * tests/unistdio/test-u8-printf1.h: Likewise.
45941         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45942         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45943         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45944         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45945         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45946         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45947         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45948         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45949         * tests/unistdio/test-ulc-printf1.h: Likewise.
45950         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45951         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45952         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45953         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45954         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45955         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45956         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45957         * tests/uniwidth/test-u16-width.c: Likewise.
45958         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45959         * tests/uniwidth/test-u32-width.c: Likewise.
45960         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45961         * tests/uniwidth/test-u8-width.c: Likewise.
45962         * tests/uniwidth/test-uc_width.c: Likewise.
45963         * config/srclist-update: Likewise.
45964         (fixlicense): Update to GPLv3+.
45965
45966         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45967         * tests/test-tsearch.c: Change copyright notice.
45968
45969         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45970         * lib/c-strcaseeq.h: Change copyright notice.
45971         * lib/streq.h: Likewise.
45972         * lib/uniconv.h: Likewise.
45973         * lib/uniconv/u-conv-from-enc.h: Likewise.
45974         * lib/uniconv/u-conv-to-enc.h: Likewise.
45975         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45976         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45977         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45978         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45979         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45980         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45981         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45982         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45983         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45984         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45985         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45986         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45987         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45988         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45989         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45990         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45991         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45992         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45993         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45994         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45995         * lib/uniname.h: Likewise.
45996         * lib/uniname/uniname.c: Likewise.
45997         * lib/unistdio.h: Likewise.
45998         * lib/unistdio/u-asnprintf.h: Likewise.
45999         * lib/unistdio/u-asprintf.h: Likewise.
46000         * lib/unistdio/u-printf-args.c: Likewise.
46001         * lib/unistdio/u-printf-args.h: Likewise.
46002         * lib/unistdio/u-printf-parse.h: Likewise.
46003         * lib/unistdio/u-snprintf.h: Likewise.
46004         * lib/unistdio/u-sprintf.h: Likewise.
46005         * lib/unistdio/u-vasprintf.h: Likewise.
46006         * lib/unistdio/u-vsnprintf.h: Likewise.
46007         * lib/unistdio/u-vsprintf.h: Likewise.
46008         * lib/unistdio/u16-asnprintf.c: Likewise.
46009         * lib/unistdio/u16-asprintf.c: Likewise.
46010         * lib/unistdio/u16-printf-parse.c: Likewise.
46011         * lib/unistdio/u16-snprintf.c: Likewise.
46012         * lib/unistdio/u16-sprintf.c: Likewise.
46013         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46014         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46015         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46016         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46017         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46018         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46019         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46020         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46021         * lib/unistdio/u16-vasnprintf.c: Likewise.
46022         * lib/unistdio/u16-vasprintf.c: Likewise.
46023         * lib/unistdio/u16-vsnprintf.c: Likewise.
46024         * lib/unistdio/u16-vsprintf.c: Likewise.
46025         * lib/unistdio/u32-asnprintf.c: Likewise.
46026         * lib/unistdio/u32-asprintf.c: Likewise.
46027         * lib/unistdio/u32-printf-parse.c: Likewise.
46028         * lib/unistdio/u32-snprintf.c: Likewise.
46029         * lib/unistdio/u32-sprintf.c: Likewise.
46030         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46031         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46032         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46033         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46034         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46035         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46036         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46037         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46038         * lib/unistdio/u32-vasnprintf.c: Likewise.
46039         * lib/unistdio/u32-vasprintf.c: Likewise.
46040         * lib/unistdio/u32-vsnprintf.c: Likewise.
46041         * lib/unistdio/u32-vsprintf.c: Likewise.
46042         * lib/unistdio/u8-asnprintf.c: Likewise.
46043         * lib/unistdio/u8-asprintf.c: Likewise.
46044         * lib/unistdio/u8-printf-parse.c: Likewise.
46045         * lib/unistdio/u8-snprintf.c: Likewise.
46046         * lib/unistdio/u8-sprintf.c: Likewise.
46047         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46048         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46049         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46050         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46051         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46052         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46053         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46054         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46055         * lib/unistdio/u8-vasnprintf.c: Likewise.
46056         * lib/unistdio/u8-vasprintf.c: Likewise.
46057         * lib/unistdio/u8-vsnprintf.c: Likewise.
46058         * lib/unistdio/u8-vsprintf.c: Likewise.
46059         * lib/unistdio/ulc-asnprintf.c: Likewise.
46060         * lib/unistdio/ulc-asprintf.c: Likewise.
46061         * lib/unistdio/ulc-printf-parse.c: Likewise.
46062         * lib/unistdio/ulc-snprintf.c: Likewise.
46063         * lib/unistdio/ulc-sprintf.c: Likewise.
46064         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46065         * lib/unistdio/ulc-vasprintf.c: Likewise.
46066         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46067         * lib/unistdio/ulc-vsprintf.c: Likewise.
46068         * lib/unistr.h: Likewise.
46069         * lib/unistr/u-cpy-alloc.h: Likewise.
46070         * lib/unistr/u-cpy.h: Likewise.
46071         * lib/unistr/u-endswith.h: Likewise.
46072         * lib/unistr/u-move.h: Likewise.
46073         * lib/unistr/u-set.h: Likewise.
46074         * lib/unistr/u-startswith.h: Likewise.
46075         * lib/unistr/u-stpcpy.h: Likewise.
46076         * lib/unistr/u-stpncpy.h: Likewise.
46077         * lib/unistr/u-strcat.h: Likewise.
46078         * lib/unistr/u-strcpy.h: Likewise.
46079         * lib/unistr/u-strcspn.h: Likewise.
46080         * lib/unistr/u-strdup.h: Likewise.
46081         * lib/unistr/u-strlen.h: Likewise.
46082         * lib/unistr/u-strncat.h: Likewise.
46083         * lib/unistr/u-strncpy.h: Likewise.
46084         * lib/unistr/u-strnlen.h: Likewise.
46085         * lib/unistr/u-strpbrk.h: Likewise.
46086         * lib/unistr/u-strspn.h: Likewise.
46087         * lib/unistr/u-strstr.h: Likewise.
46088         * lib/unistr/u-strtok.h: Likewise.
46089         * lib/unistr/u16-check.c: Likewise.
46090         * lib/unistr/u16-chr.c: Likewise.
46091         * lib/unistr/u16-cmp.c: Likewise.
46092         * lib/unistr/u16-cpy-alloc.c: Likewise.
46093         * lib/unistr/u16-cpy.c: Likewise.
46094         * lib/unistr/u16-endswith.c: Likewise.
46095         * lib/unistr/u16-mblen.c: Likewise.
46096         * lib/unistr/u16-mbsnlen.c: Likewise.
46097         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46098         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46099         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46100         * lib/unistr/u16-mbtouc.c: Likewise.
46101         * lib/unistr/u16-mbtoucr.c: Likewise.
46102         * lib/unistr/u16-move.c: Likewise.
46103         * lib/unistr/u16-next.c: Likewise.
46104         * lib/unistr/u16-prev.c: Likewise.
46105         * lib/unistr/u16-set.c: Likewise.
46106         * lib/unistr/u16-startswith.c: Likewise.
46107         * lib/unistr/u16-stpcpy.c: Likewise.
46108         * lib/unistr/u16-stpncpy.c: Likewise.
46109         * lib/unistr/u16-strcat.c: Likewise.
46110         * lib/unistr/u16-strchr.c: Likewise.
46111         * lib/unistr/u16-strcmp.c: Likewise.
46112         * lib/unistr/u16-strcpy.c: Likewise.
46113         * lib/unistr/u16-strcspn.c: Likewise.
46114         * lib/unistr/u16-strdup.c: Likewise.
46115         * lib/unistr/u16-strlen.c: Likewise.
46116         * lib/unistr/u16-strmblen.c: Likewise.
46117         * lib/unistr/u16-strmbtouc.c: Likewise.
46118         * lib/unistr/u16-strncat.c: Likewise.
46119         * lib/unistr/u16-strncmp.c: Likewise.
46120         * lib/unistr/u16-strncpy.c: Likewise.
46121         * lib/unistr/u16-strnlen.c: Likewise.
46122         * lib/unistr/u16-strpbrk.c: Likewise.
46123         * lib/unistr/u16-strrchr.c: Likewise.
46124         * lib/unistr/u16-strspn.c: Likewise.
46125         * lib/unistr/u16-strstr.c: Likewise.
46126         * lib/unistr/u16-strtok.c: Likewise.
46127         * lib/unistr/u16-to-u32.c: Likewise.
46128         * lib/unistr/u16-to-u8.c: Likewise.
46129         * lib/unistr/u16-uctomb-aux.c: Likewise.
46130         * lib/unistr/u16-uctomb.c: Likewise.
46131         * lib/unistr/u32-check.c: Likewise.
46132         * lib/unistr/u32-chr.c: Likewise.
46133         * lib/unistr/u32-cmp.c: Likewise.
46134         * lib/unistr/u32-cpy-alloc.c: Likewise.
46135         * lib/unistr/u32-cpy.c: Likewise.
46136         * lib/unistr/u32-endswith.c: Likewise.
46137         * lib/unistr/u32-mblen.c: Likewise.
46138         * lib/unistr/u32-mbsnlen.c: Likewise.
46139         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46140         * lib/unistr/u32-mbtouc.c: Likewise.
46141         * lib/unistr/u32-mbtoucr.c: Likewise.
46142         * lib/unistr/u32-move.c: Likewise.
46143         * lib/unistr/u32-next.c: Likewise.
46144         * lib/unistr/u32-prev.c: Likewise.
46145         * lib/unistr/u32-set.c: Likewise.
46146         * lib/unistr/u32-startswith.c: Likewise.
46147         * lib/unistr/u32-stpcpy.c: Likewise.
46148         * lib/unistr/u32-stpncpy.c: Likewise.
46149         * lib/unistr/u32-strcat.c: Likewise.
46150         * lib/unistr/u32-strchr.c: Likewise.
46151         * lib/unistr/u32-strcmp.c: Likewise.
46152         * lib/unistr/u32-strcpy.c: Likewise.
46153         * lib/unistr/u32-strcspn.c: Likewise.
46154         * lib/unistr/u32-strdup.c: Likewise.
46155         * lib/unistr/u32-strlen.c: Likewise.
46156         * lib/unistr/u32-strmblen.c: Likewise.
46157         * lib/unistr/u32-strmbtouc.c: Likewise.
46158         * lib/unistr/u32-strncat.c: Likewise.
46159         * lib/unistr/u32-strncmp.c: Likewise.
46160         * lib/unistr/u32-strncpy.c: Likewise.
46161         * lib/unistr/u32-strnlen.c: Likewise.
46162         * lib/unistr/u32-strpbrk.c: Likewise.
46163         * lib/unistr/u32-strrchr.c: Likewise.
46164         * lib/unistr/u32-strspn.c: Likewise.
46165         * lib/unistr/u32-strstr.c: Likewise.
46166         * lib/unistr/u32-strtok.c: Likewise.
46167         * lib/unistr/u32-to-u16.c: Likewise.
46168         * lib/unistr/u32-to-u8.c: Likewise.
46169         * lib/unistr/u32-uctomb.c: Likewise.
46170         * lib/unistr/u8-check.c: Likewise.
46171         * lib/unistr/u8-chr.c: Likewise.
46172         * lib/unistr/u8-cmp.c: Likewise.
46173         * lib/unistr/u8-cpy-alloc.c: Likewise.
46174         * lib/unistr/u8-cpy.c: Likewise.
46175         * lib/unistr/u8-endswith.c: Likewise.
46176         * lib/unistr/u8-mblen.c: Likewise.
46177         * lib/unistr/u8-mbsnlen.c: Likewise.
46178         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46179         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46180         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46181         * lib/unistr/u8-mbtouc.c: Likewise.
46182         * lib/unistr/u8-mbtoucr.c: Likewise.
46183         * lib/unistr/u8-move.c: Likewise.
46184         * lib/unistr/u8-next.c: Likewise.
46185         * lib/unistr/u8-prev.c: Likewise.
46186         * lib/unistr/u8-set.c: Likewise.
46187         * lib/unistr/u8-startswith.c: Likewise.
46188         * lib/unistr/u8-stpcpy.c: Likewise.
46189         * lib/unistr/u8-stpncpy.c: Likewise.
46190         * lib/unistr/u8-strcat.c: Likewise.
46191         * lib/unistr/u8-strchr.c: Likewise.
46192         * lib/unistr/u8-strcmp.c: Likewise.
46193         * lib/unistr/u8-strcpy.c: Likewise.
46194         * lib/unistr/u8-strcspn.c: Likewise.
46195         * lib/unistr/u8-strdup.c: Likewise.
46196         * lib/unistr/u8-strlen.c: Likewise.
46197         * lib/unistr/u8-strmblen.c: Likewise.
46198         * lib/unistr/u8-strmbtouc.c: Likewise.
46199         * lib/unistr/u8-strncat.c: Likewise.
46200         * lib/unistr/u8-strncmp.c: Likewise.
46201         * lib/unistr/u8-strncpy.c: Likewise.
46202         * lib/unistr/u8-strnlen.c: Likewise.
46203         * lib/unistr/u8-strpbrk.c: Likewise.
46204         * lib/unistr/u8-strrchr.c: Likewise.
46205         * lib/unistr/u8-strspn.c: Likewise.
46206         * lib/unistr/u8-strstr.c: Likewise.
46207         * lib/unistr/u8-strtok.c: Likewise.
46208         * lib/unistr/u8-to-u16.c: Likewise.
46209         * lib/unistr/u8-to-u32.c: Likewise.
46210         * lib/unistr/u8-uctomb-aux.c: Likewise.
46211         * lib/unistr/u8-uctomb.c: Likewise.
46212         * lib/unitypes.h: Likewise.
46213         * lib/uniwidth.h: Likewise.
46214         * lib/uniwidth/cjk.h: Likewise.
46215         * lib/uniwidth/u16-strwidth.c: Likewise.
46216         * lib/uniwidth/u16-width.c: Likewise.
46217         * lib/uniwidth/u32-strwidth.c: Likewise.
46218         * lib/uniwidth/u32-width.c: Likewise.
46219         * lib/uniwidth/u8-strwidth.c: Likewise.
46220         * lib/uniwidth/u8-width.c: Likewise.
46221         * lib/uniwidth/width.c: Likewise.
46222
46223 2007-10-07  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46226         The file is still under LGPL (see modules/inttypes).
46227
46228 2007-10-06  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/trunc (Dependencies): Add 'extensions'.
46231         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46232         Reported by Ben Pfaff <blp@gnu.org>.
46233
46234 2007-10-06  Bruno Haible  <bruno@clisp.org>
46235
46236         * modules/freopen-tests: New file.
46237         * tests/test-freopen.c: New file.
46238
46239         * modules/fopen-tests: New file.
46240         * tests/test-fopen.c: New file.
46241
46242         * modules/fopen: New file.
46243         * lib/fopen.c: New file.
46244         * m4/fopen.m4: New file.
46245         * modules/freopen: New file.
46246         * lib/freopen.c: New file.
46247         * m4/freopen.m4: New file.
46248         * lib/stdio.in.h (fopen, freopen): New declarations.
46249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46250         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46251         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46252         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46253         * doc/functions/fopen.texi: Mention the 'fopen' module.
46254         * doc/functions/freopen.texi: Mention the 'freopen' module.
46255
46256 2007-10-06  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/open-tests: New file.
46259         * tests/test-open.c: New file.
46260
46261         * modules/open: New file.
46262         * lib/open.c: New file.
46263         * m4/open.m4: New file.
46264         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46265         lib/open.c does.
46266         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46267         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46268         macros.
46269         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46270         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46271         REPLACE_OPEN.
46272         * doc/functions/open.texi: Mention the 'open' module.
46273
46274 2007-10-04  Bruno Haible  <bruno@clisp.org>
46275
46276         * modules/ceill-tests: New file.
46277         * tests/test-ceill.c: New file.
46278
46279         * modules/ceill: New file.
46280         * lib/ceill.c: Replace entire file.
46281         * m4/ceill.m4: New file.
46282         * lib/math.in.h (ceill): Replace declaration.
46283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46284         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46285         * doc/functions/ceill.texi: Mention the 'ceill' module.
46286         * modules/mathl (Files): Remove lib/ceill.c.
46287         (Depends-on): Add ceill.
46288
46289 2007-10-04  Bruno Haible  <bruno@clisp.org>
46290
46291         * modules/ceilf-tests: New file.
46292         * tests/test-ceilf.c: New file.
46293
46294         * modules/ceilf: New file.
46295         * lib/ceil.c: New file.
46296         * lib/ceilf.c: New file.
46297         * m4/ceilf.m4: New file.
46298         * lib/math.in.h (ceilf): New declaration.
46299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46300         HAVE_DECL_CEILF.
46301         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46302         HAVE_DECL_CEILF.
46303         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46304
46305 2007-10-04  Bruno Haible  <bruno@clisp.org>
46306
46307         * modules/floorl-tests: New file.
46308         * tests/test-floorl.c: New file.
46309
46310         * modules/floorl: New file.
46311         * lib/floorl.c: Replace entire file.
46312         * m4/floorl.m4: New file.
46313         * lib/math.in.h (floorl): Replace declaration.
46314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46315         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46316         * doc/functions/floorl.texi: Mention the 'floorl' module.
46317         * modules/mathl (Files): Remove lib/floorl.c.
46318         (Depends-on): Add floorl.
46319
46320 2007-10-04  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/floorf-tests: New file.
46323         * tests/test-floorf.c: New file.
46324
46325         * modules/floorf: New file.
46326         * lib/floor.c: New file.
46327         * lib/floorf.c: New file.
46328         * m4/floorf.m4: New file.
46329         * lib/math.in.h (floorf): New declaration.
46330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46331         HAVE_DECL_FLOORF.
46332         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46333         HAVE_DECL_FLOORF.
46334         * doc/functions/floorf.texi: Mention the 'floorf' module.
46335
46336 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46337             Bruno Haible  <bruno@clisp.org>
46338
46339         Advertise for the Git server instead of the CVS server.
46340         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46341         repository instead of the CVS one.
46342         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46343         about all VCS systems generically.
46344         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46345
46346 2007-10-04  Bruno Haible  <bruno@clisp.org>
46347
46348         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46349         means.
46350         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46351
46352 2007-10-04  Bruno Haible  <bruno@clisp.org>
46353
46354         * modules/truncl-tests: New file.
46355         * tests/test-truncl.c: New file.
46356
46357         * modules/truncl: New file.
46358         * lib/truncl.c: New file.
46359         * m4/truncl.m4: New file.
46360         * lib/math.in.h (truncl): New declaration.
46361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46362         HAVE_DECL_TRUNCL.
46363         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46364         HAVE_DECL_TRUNCL.
46365         * doc/functions/truncl.texi: Mention the 'truncl' module.
46366
46367 2007-10-04  Bruno Haible  <bruno@clisp.org>
46368
46369         * modules/truncf-tests: New file.
46370         * tests/test-truncf.c: New file.
46371
46372         * modules/truncf: New file.
46373         * lib/trunc.c: Make paramerizable through USE_* macros.
46374         * lib/truncf.c: New file.
46375         * m4/truncf.m4: New file.
46376         * lib/math.in.h (truncf): New declaration.
46377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46378         HAVE_DECL_TRUNCF.
46379         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46380         HAVE_DECL_TRUNCF.
46381         * doc/functions/truncf.texi: Mention the 'truncf' module.
46382
46383 2007-10-03  Bruno Haible  <bruno@clisp.org>
46384
46385         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46386         augmentation also for tests modules.
46387         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46388         * modules/atexit-tests (Makefile.am): Likewise.
46389         * modules/binary-io-tests (Makefile.am): Likewise.
46390         * modules/c-strcase-tests (Makefile.am): Likewise.
46391         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46392         * modules/canonicalize-tests (Makefile.am): Likewise.
46393         * modules/closein-tests (Makefile.am): Likewise.
46394         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46395         * modules/freadahead-tests (Makefile.am): Likewise.
46396         * modules/fseek-tests (Makefile.am): Likewise.
46397         * modules/fseeko-tests (Makefile.am): Likewise.
46398         * modules/ftell-tests (Makefile.am): Likewise.
46399         * modules/ftello-tests (Makefile.am): Likewise.
46400         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46401         * modules/isnanl-tests (Makefile.am): Likewise.
46402         * modules/lseek-tests (Makefile.am): Likewise.
46403         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46404         * modules/mbscasestr-tests (Makefile.am): Likewise.
46405         * modules/mbschr-tests (Makefile.am): Likewise.
46406         * modules/mbscspn-tests (Makefile.am): Likewise.
46407         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46408         * modules/mbspbrk-tests (Makefile.am): Likewise.
46409         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46410         * modules/mbsrchr-tests (Makefile.am): Likewise.
46411         * modules/mbsspn-tests (Makefile.am): Likewise.
46412         * modules/mbsstr-tests (Makefile.am): Likewise.
46413         * modules/printf-posix-tests (Makefile.am): Likewise.
46414         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46415         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46416         * modules/tsearch-tests (Makefile.am): Likewise.
46417         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46418         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46419         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46420         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46421         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46422         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46423         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46424         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46425         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46426         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46427         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46428         * modules/xstrtol-tests (Makefile.am): Likewise.
46429         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46430         * modules/yesno-tests (Makefile.am): Likewise.
46431
46432 2007-10-03  Bruno Haible  <bruno@clisp.org>
46433
46434         * modules/trunc-tests: New file.
46435         * tests/test-trunc.c: New file.
46436
46437         * modules/trunc: New file.
46438         * lib/trunc.c: New file.
46439         * m4/trunc.m4: New file.
46440         * lib/math.in.h (trunc): New declaration.
46441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46442         HAVE_DECL_TRUNC.
46443         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46444         HAVE_DECL_TRUNC.
46445         * doc/functions/trunc.texi: Mention the 'trunc' module.
46446
46447 2007-10-03  Bruno Haible  <bruno@clisp.org>
46448
46449         * tests/test-fpending.c: New file, mostly copied
46450         from coreutils/lib/t-fpending.c.
46451         * modules/fpending-tests: New file.
46452
46453 2007-10-03  Bruno Haible  <bruno@clisp.org>
46454
46455         Port the stdio extensions to QNX (untested).
46456         * lib/fseterr.c (fseterr): Add support for QNX.
46457         * lib/fbufmode.c (fbufmode): Likewise.
46458         * lib/freadable.c (freadable): Likewise.
46459         * lib/fwritable.c (fwritable): Likewise.
46460         * lib/freading.c (freading): Likewise.
46461         * lib/fwriting.c (fwriting): Likewise.
46462         * lib/freadahead.c (freadahed): Likewise.
46463         * lib/fpurge.c (fpurge): Likewise.
46464         * lib/fseeko.c (rpl_fseeko): Likewise.
46465
46466 2007-10-03  Bruno Haible  <bruno@clisp.org>
46467             Jim Meyering  <jim@meyering.net>
46468             Eric Blake  <ebb9@byu.net>
46469
46470         * doc/relocatable.texi: Use @command instead of @program.
46471
46472 2007-10-02  Jim Meyering  <jim@meyering.net>
46473
46474         Perform one more "_.h" -> ".in.h" substitution.
46475         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46476         instead of unistd_.h here, too.
46477
46478 2007-10-01  Bruno Haible  <bruno@clisp.org>
46479
46480         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46481         Needed for the alloca-opt module.
46482
46483 2007-09-30  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46486         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46487         alloca_.h.
46488         * lib/argz.in.h: Renamed from lib/argz_.h.
46489         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46490         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46491         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46492         byteswap_.h.
46493         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46494         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46495         dirent_.h.
46496         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46497         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46498         fcntl_.h.
46499         * lib/float.in.h: Renamed from lib/float_.h.
46500         * modules/float (Files, Makefile.am): Use float.in.h instead of
46501         float_.h.
46502         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46503         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46504         fnmatch_.h.
46505         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46506         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46507         getopt_.h.
46508         * lib/glob.in.h: Renamed from lib/glob_.h.
46509         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46510         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46511         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46512         iconv_.h.
46513         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46514         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46515         inttypes_.h.
46516         * lib/locale.in.h: Renamed from lib/locale_.h.
46517         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46518         locale_.h.
46519         * lib/math.in.h: Renamed from lib/math_.h.
46520         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46521         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46522         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46523         of netinet_in_.h. Add dependency.
46524         * lib/poll.in.h: Renamed from lib/poll_.h.
46525         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46526         * lib/search.in.h: Renamed from lib/search_.h.
46527         * modules/search (Files, Makefile.am): Use search.in.h instead of
46528         search_.h.
46529         * lib/signal.in.h: Renamed from lib/signal_.h.
46530         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46531         _signal.h.
46532         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46533         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46534         stdbool_.h.
46535         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46536         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46537         stdint_.h.
46538         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46539         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46540         stdio_.h.
46541         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46542         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46543         stdlib_.h.
46544         * lib/string.in.h: Renamed from lib/string_.h.
46545         * modules/string (Files, Makefile.am): Use string.in.h instead of
46546         string_.h.
46547         * doc/gnulib-tool.texi (Initial import): Update.
46548         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46549         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46550         of sys_select_.h. Add dependency.
46551         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46552         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46553         of sys_socket_.h.
46554         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46555         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46556         sys_stat_.h.
46557         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46558         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46559         sys_time_.h.
46560         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46561         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46562         sysexits_.h.
46563         * lib/time.in.h: Renamed from lib/time_.h.
46564         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46565         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46566         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46567         unistd_.h.
46568         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46569         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46570         wchar_.h.
46571         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46572         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46573         wctype_.h.
46574         * build-aux/bootstrap (slurp): Update.
46575         * lib/.cppi-disable: Update.
46576
46577 2007-09-30  Bruno Haible  <bruno@clisp.org>
46578
46579         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46580         Needed on BeOS.
46581
46582 2007-09-30  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46585
46586 2007-09-29  Bruno Haible  <bruno@clisp.org>
46587
46588         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46589
46590 2007-09-29  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46593         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46594         * build-aux/install-reloc: Compile also areadlink.c.
46595         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46596
46597 2007-09-29  Bruno Haible  <bruno@clisp.org>
46598
46599         * gnulib-tool (func_emit_initmacro_done): Indentation.
46600
46601 2007-09-29  Bruno Haible  <bruno@clisp.org>
46602
46603         * README: Add CVS checkout update instructions.
46604         Info from Bob Proulx <bob@proulx.com>.
46605
46606 2007-09-28  Eric Blake  <ebb9@byu.net>
46607
46608         Provide move-if-change.
46609         * build-aux/move-if-change: New file, based on best practice
46610         rather than any canonical upstream location.
46611
46612 2007-09-28  Jim Meyering  <jim@meyering.net>
46613
46614         Fix canonicalize loop-detection corner case.
46615         Do not attempt to stat the symlink values stored via seen_triple.
46616         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46617         on linux-2.6.18, (but not 2.6.22).
46618         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46619         triple_compare.  The former compares dev,ino,filename, while the latter
46620         would actually stat dirname(filename) when dev and ino were equal.
46621         * lib/hash-triple.c: Install <string.h>.
46622         (STREQ): Define.
46623         (triple_compare_ino_str): New function.
46624         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46625
46626 2007-09-28  Eric Blake  <ebb9@byu.net>
46627
46628         Enforce that AC_REPLACE_FUNCS files exist.
46629         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46630         override check for typos.
46631
46632         Fix test-closein on Solaris 10.
46633         * tests/test-closein.c (main): Don't assume stdin can be inherited
46634         closed on all systems.
46635         * tests/test-closein.sh: Likewise.
46636         Reported by Piotr Tarnowski.
46637
46638 2007-09-28  Jim Meyering  <jim@meyering.net>
46639
46640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46641
46642 2007-09-27  Jim Meyering  <jim@meyering.net>
46643
46644         canonicalize: Avoid a false-positive cycle failure.
46645         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46646         Sort.  Remove cycle-check.
46647         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46648         not cycle-check.h.
46649         (seen_triple): New function.
46650         (canonicalize_filename_mode): Use it instead of cycle-check.
46651         * tests/test-canonicalize.c: Add a test for this bug.
46652         * tests/test-canonicalize.sh: Set up and run the test.
46653
46654         New module, file-set, from coreutils.
46655         * modules/file-set: Define it.
46656         * lib/file-set.c, lib/file-set.h: Implement.
46657
46658         New module, hash-triple, from coreutils.
46659         * modules/hash-triple: Define it.
46660         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46661
46662 2007-09-25  Eric Blake  <ebb9@byu.net>
46663
46664         Fix strerror on Interix.
46665         * lib/string_.h (strerror): Declare replacement.
46666         * doc/functions/strerror.texi (strerror): Document the Interix
46667         shortcoming.
46668         * modules/string (Makefile.am): Support new hooks.
46669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46670         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46671         gl_FUNC_STRERROR_SEPARATE.
46672         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46673         * lib/strerror.c (rpl_strerror): Provide replacement.
46674         * modules/strerror (Depends-on): Add string.
46675         (configure.ac): Detect use of module.
46676         * tests/test-strerror.c: New file.
46677         * modules/strerror-tests: New test module.
46678         * modules/argp (Depends-on): Add strerror.
46679         * modules/error (Depends-on): Likewise.
46680         Reported by Martin Koeppe.
46681
46682 2007-09-24  Bruno Haible  <bruno@clisp.org>
46683
46684         * README: Update git instructions.
46685
46686 2007-09-24  Eric Blake  <ebb9@byu.net>
46687
46688         Revert fpending breakage from 2007-09-08.
46689         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46690         __fpending.c.
46691
46692 2007-09-24  Jim Meyering  <jim@meyering.net>
46693
46694         filenamecat.c: Add a test.
46695         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46696         showing how the function works when DIR is the empty string.
46697
46698 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46699
46700         * tests/test-canonicalize.sh: Turn on executable bit.
46701
46702 2007-09-19  Eric Blake  <ebb9@byu.net>
46703
46704         * README: Update CVS instructions.
46705
46706 2007-09-18  Bruno Haible  <bruno@clisp.org>
46707
46708         * modules/areadlink: New file.
46709         * lib/areadlink.h (areadlink): New declaration.
46710         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46711
46712 2007-09-17  Jim Meyering  <jim@meyering.net>
46713
46714         * lib/savewd.c (ESTALE) [!defined]: Define.
46715         Reported to be required on Interix by Martin Koeppe.
46716
46717 2007-09-17  Bruno Haible  <bruno@clisp.org>
46718
46719         * gnulib-tool (func_version): Use $version.
46720
46721 2007-09-16  Bruno Haible  <bruno@clisp.org>
46722
46723         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46724         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46725         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46726         Reported by Greg Schafer <gschafer@zip.com.au>.
46727
46728 2007-09-15  Bruno Haible  <bruno@clisp.org>
46729
46730         * gnulib-tool (sed): Try a little harder to make bash understand the
46731         alias.
46732         Reported by Bruce Korb <bruce.korb@gmail.com>.
46733
46734 2007-09-13  Eric Blake  <ebb9@byu.net>
46735
46736         * ChangeLog: Remove conflict markers.
46737
46738 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46739
46740         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46741         Reported by Bruno Haible <bruno@clisp.org>.
46742
46743 2007-09-12  Bruno Haible  <bruno@clisp.org>
46744
46745         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46746         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46747         is not defined.
46748
46749 2007-09-12  Eric Blake  <ebb9@byu.net>
46750
46751         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46753         Autoconf definition.
46754         * modules/euidaccess (Depends-on): Add extensions, for
46755         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46756         * modules/fnmatch (Depends-on): Likewise.
46757         * modules/getaddrinfo (Depends-on): Likewise.
46758         * modules/getdelim (Depends-on): Likewise.
46759         * modules/getline (Depends-on): Likewise.
46760         * modules/getsubopt (Depends-on): Likewise.
46761         * modules/gettext (Depends-on): Likewise.
46762         * modules/group-member (Depends-on): Likewise.
46763         * modules/mbchar (Depends-on): Likewise.
46764         * modules/memmem (Depends-on): Likewise.
46765         * modules/mempcpy (Depends-on): Likewise.
46766         * modules/memrchr (Depends-on): Likewise.
46767         * modules/pagealign_alloc (Depends-on): Likewise.
46768         * modules/readutmp (Depends-on): Likewise.
46769         * modules/stpcpy (Depends-on): Likewise.
46770         * modules/stpncpy (Depends-on): Likewise.
46771         * modules/strchrnul (Depends-on): Likewise.
46772         * modules/strndup (Depends-on): Likewise.
46773         * modules/strsep (Depends-on): Likewise.
46774         * modules/strverscmp (Depends-on): Likewise.
46775         * modules/vasprintf (Depends-on): Likewise.
46776         * modules/wcwidth (Depends-on): Likewise.
46777         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46778         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46779         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46783         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46784         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46785         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46786         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46787         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46790         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46791         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46792         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46793         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46794         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46796         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46798         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46799         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46800         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46801         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46803         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46804         so that lock.m4 can be used in gettext without extensions module.
46805
46806 2007-09-11  Bruno Haible  <bruno@clisp.org>
46807
46808         * m4/isc-posix.m4: Remove file.
46809         Suggested by Eric Blake.
46810
46811 2007-09-11  Eric Blake  <ebb9@byu.net>
46812
46813         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46814
46815 2007-09-10  Bruno Haible  <bruno@clisp.org>
46816
46817         * posix-modules: Fix typo in error message.
46818         Reported by Matt <mkraai@beckman.com>.
46819
46820 2007-09-09  Bruno Haible  <bruno@clisp.org>
46821
46822         * doc/functions/getdelim.texi: Update list of platforms lacking the
46823         function.
46824         * doc/functions/getline.texi: Likewise.
46825
46826 2007-09-09  Jim Meyering  <jim@meyering.net>
46827
46828         * lib/hash.c (hash_initialize): Detect calloc failure.
46829         Reported by Bruno Haible.
46830
46831 2007-09-09  Bruno Haible  <bruno@clisp.org>
46832
46833         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46834         malloc or realloc fails.
46835
46836 2007-09-09  Bruno Haible  <bruno@clisp.org>
46837
46838         * modules/getcwd (Depends-on): Add malloc-posix.
46839         * modules/glob (Depends-on): Likewise.
46840         * modules/putenv (Depends-on): Likewise.
46841         * modules/strdup (Depends-on): Likewise.
46842         * modules/getdelim (Depends-on): Add realloc-posix.
46843         * modules/read-file (Depends-on): Likewise.
46844
46845 2007-09-09  Bruno Haible  <bruno@clisp.org>
46846
46847         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46848         (gl_FUNC_MALLOC_POSIX): Require it.
46849         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46850         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46851         * modules/realloc (Files): Add m4/malloc.m4.
46852         * modules/calloc (Files): Likewise.
46853
46854 2007-09-09  Bruno Haible  <bruno@clisp.org>
46855
46856         * modules/malloc-posix: New file.
46857         * modules/malloc (Depends-on): Add malloc-posix.
46858         * lib/malloc.c: Include errno.h.
46859         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46860         and a POSIX-compatible malloc into a single function. Set ENOMEM
46861         when returning NULL.
46862         * m4/malloc.m4: New file.
46863         * doc/functions/malloc.texi: Mention the malloc-posix module.
46864         * lib/stdlib_.h (malloc): New declaration.
46865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46866         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46867         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46868         and HAVE_MALLOC_POSIX.
46869
46870 2007-09-09  Bruno Haible  <bruno@clisp.org>
46871
46872         * modules/realloc-posix: New file.
46873         * modules/realloc (Depends-on): Add realloc-posix.
46874         * lib/realloc.c: Include errno.h.
46875         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46876         and a POSIX-compatible realloc into a single function. Set ENOMEM
46877         when returning NULL.
46878         * m4/realloc.m4: New file.
46879         * doc/functions/realloc.texi: Mention the realloc-posix module.
46880         * lib/stdlib_.h (realloc): New declaration.
46881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46882         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46883         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46884         and HAVE_REALLOC_POSIX.
46885
46886 2007-09-09  Bruno Haible  <bruno@clisp.org>
46887
46888         * modules/calloc-posix: New file.
46889         * modules/calloc (Depends-on): Add calloc-posix.
46890         * lib/calloc.c: Include errno.h.
46891         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46892         and a POSIX-compatible calloc into a single function. Set ENOMEM
46893         when returning NULL.
46894         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46895         * doc/functions/calloc.texi: Mention the calloc-posix module.
46896         * lib/stdlib_.h (calloc): New declaration.
46897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46898         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46899         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46900         and HAVE_CALLOC_POSIX.
46901
46902 2007-09-09  Bruno Haible  <bruno@clisp.org>
46903
46904         Allow for modules to show an arbitrary notice.
46905         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46906         * gnulib-tool: New option --extract-notice.
46907         (func_usage): Document it.
46908         (sed_extract_prog): Update.
46909         (func_get_notice): New function.
46910         (func_modules_notice): New function.
46911         (func_import, func_create_testdir): Invoke it.
46912         Suggested by Jim Meyering.
46913
46914 2007-09-09  Bruno Haible  <bruno@clisp.org>
46915
46916         * gnulib-tool: New options --verbose, --quiet.
46917         (func_usage): Document them.
46918         (verbose): New variable.
46919         (func_execute_command): New function.
46920         (func_import): Don't show the module list and the file list if
46921         $verbose < 0.
46922         (func_create_testdir): Likewise. Use func_execute_command.
46923         (func_create_megatestdir): Use func_execute_command.
46924
46925 2007-09-08  Bruno Haible  <bruno@clisp.org>
46926
46927         * gnulib-tool (func_import): Prefer rsync over wget when available,
46928         for fetching the PO files.
46929
46930 2007-09-08  Bruno Haible  <bruno@clisp.org>
46931
46932         * posix-modules: New file. Portions copied from gnulib-tool.
46933         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46934
46935 2007-09-08  Jim Meyering  <jim@meyering.net>
46936
46937         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46938         * lib/fpending.h: Rename from __fpending.h.
46939         * lib/fpending.c: Rename from __fpending.c.
46940         Include "fpending.h", not "__fpending.h".
46941         * lib/__fpending.h, lib/__fpending.c: Remove files.
46942         * modules/fpending (Files): Reflect new file names.
46943         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46944
46945 2007-09-08  Bruno Haible  <bruno@clisp.org>
46946
46947         * m4/inttypes-h.m4: Remove stub file.
46948
46949 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46950
46951         * doc/headers/stdint.texi: Discuss #include_next issue.
46952
46953 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46954
46955         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46956
46957 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46958
46959         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46960         in variable name.
46961
46962 2007-09-03  Jim Meyering  <jim@meyering.net>
46963
46964         New module: git-version-gen.
46965         * modules/git-version-gen: New file.
46966
46967         Import changes from coreutils for bootstrap script.
46968
46969         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46970
46971         bootstrap: uses rsync to download the .po files
46972         * build-aux/bootstrap (po_download_command_format): New global.
46973         (download_po_files): Use rsync.
46974         (update_po_files): Don't remove .po files after download,
46975         so future rsync runs can take advantage of the copies.
46976
46977         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46978
46979         Solve the unnecessary-.po-file-regeneration problem once and for all.
46980         * build-aux/bootstrap (download_po_files): New function, renamed from
46981         get_translations.  Now, downloads, but doesn't update LINGUAS.
46982         (update_po_files): New function.
46983
46984         bootstrap: Ignore more.
46985         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46986         uniwidth to e.g., lib/.gitignore.
46987         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46988
46989         * build-aux/bootstrap: New setting: vc_ignore.
46990         (insert_sorted_if_absent): Create $file if absent.
46991         Adapt to new, possibly empty, list: $vc_ignore.
46992
46993         bootstrap: generate more ignorable names
46994         * build-aux/bootstrap (slurp): When generating ignorable names,
46995         also map .sin to .sed, .gperf to .c, and .y to .c.
46996
46997 2007-09-03  Jim Meyering  <jim@meyering.net>
46998
46999         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47000         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47001
47002 2007-09-02  Bruno Haible  <bruno@clisp.org>
47003
47004         Fix mis-recognition of 'mcs' on QNX 6.
47005         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47006         output contains the string "Mono".
47007         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47008         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47009
47010 2007-09-01  Bruno Haible  <bruno@clisp.org>
47011
47012         Fix collision between uniwidth/* and linebreak modules.
47013         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47014         u32_width): Remove declarations.
47015         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47016         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47017         streq3, streq2, streq1, streq0): Remove functions.
47018         (STREQ): Remove macro.
47019         (is_cjk_encoding): Remove function.
47020         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47021         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47022         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47023         * NEWS: Document the change.
47024
47025 2007-09-01  Bruno Haible  <bruno@clisp.org>
47026
47027         * lib/streq.h: Add double-inclusion guard.
47028
47029 2007-09-01  Karl Berry  <karl@gnu.org>
47030
47031         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47032
47033 2007-08-28  Jim Meyering  <jim@meyering.net>
47034
47035         Rename mreadlink_with_size to areadlink_with_size.
47036         * NEWS: Document the change.
47037         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47038         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47039         * lib/mreadlink.h: Rename this to...
47040         * lib/areadlink.h: ...this.
47041         * modules/mreadlink-with-size: Rename this to...
47042         * modules/areadlink-with-size: ...this.
47043         * lib/canonicalize.c: Reflect the renaming.
47044         * modules/canonicalize: Likewise.
47045
47046 2007-08-26  Bruno Haible  <bruno@clisp.org>
47047
47048         * gnulib-tool (func_import): When deciding which files to remove,
47049         consider also dangling symbolic links.
47050         Reported by Eric Blake.
47051
47052 2007-08-26  Bruno Haible  <bruno@clisp.org>
47053
47054         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47055
47056 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47057
47058         * lib/readline.c: Don't include getline.h, the prototype is now
47059         found in stdio.h.
47060
47061 2007-08-23  Jim Meyering  <jim@meyering.net>
47062
47063         Getdelim touchup.
47064         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47065         around the funlockfile call, since funlockfile never sets errno.
47066         Don't set errno upon failed realloc.
47067
47068 2007-08-22  Eric Blake  <ebb9@byu.net>
47069
47070         Getline touchups.
47071         * lib/getdelim.c (getdelim): Revert regression that required *n to
47072         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47073         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47074         getdelim, rather than whether implementation is missing.
47075         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47076         * lib/stdio_.h (getline): Also declare if replacement is
47077         required.
47078         * doc/functions/getdelim.texi: New file.
47079         * doc/functions/getline.texi: Likewise.
47080         * doc/gnulib.texi (Function Substitutes): Add new files.
47081         Reported by Bruno Haible.
47082
47083 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47084
47085         * users.txt: Add Guile.
47086
47087 2007-08-22  Eric Blake  <ebb9@byu.net>
47088
47089         * tests/test-getdelim.c (main): Use remove, not unlink.
47090         * tests/test-getline.c (main): Likewise.
47091
47092         Move getline and getdelim into stdio.h, per POSIX 200x.
47093         * modules/getline (Files): Remove getline.h.
47094         (Depends-on): Add stdio.
47095         (configure.ac): Add module indicator.
47096         * modules/getdelim (Files): Remove getdelim.h.
47097         (Depends-on): Add stdio.
47098         (configure.ac): Add module indicator.
47099         * modules/stdio (Makefile.am): Work with new indicators.
47100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47101         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47103         * lib/getdelim.h: Delete.
47104         * lib/getline.h: Delete.
47105         * lib/stdio_.h (getdelim, getline): Declare.
47106         * modules/getdelim-tests: New module.
47107         * modules/getline-tests: Likewise.
47108         * tests/test-getdelim.c: New file.
47109         * tests/test-getline.c: Likewise.
47110         * NEWS: Document the change.
47111         * lib/getline.c: Update choice of header.
47112         * lib/csharpcomp.c: Likewise.
47113         * lib/getpass.c: Likewise.
47114         * lib/javacomp.c: Likewise.
47115         * lib/javaversion.c: Likewise.
47116         * lib/yesno.c: Likewise.
47117         * lib/getdelim.c: Likewise.
47118         (getdelim): Set errno on failure, and avoid memory leak.
47119
47120 2007-08-19  Bruno Haible  <bruno@clisp.org>
47121
47122         * modules/closein (Depends-on): Add freadahead.
47123         * lib/closein.c: Include freadahead.h.
47124         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47125         is zero.
47126
47127 2007-08-19  Bruno Haible  <bruno@clisp.org>
47128
47129         * modules/freadahead-tests: New file.
47130         * tests/test-freadahead.sh: New file.
47131         * tests/test-freadahead.c: New file.
47132
47133         * modules/freadahead: New file.
47134         * lib/freadahead.h: New file.
47135         * lib/freadahead.c: New file.
47136         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47137         fbufmode, fpurge, freadable, fwritable.
47138
47139 2007-08-19  Eric Blake  <ebb9@byu.net>
47140
47141         Test yesno in combination with closein.
47142         * lib/yesno.c (yesno): Document use of stdin.
47143         * modules/yesno-tests (Files): New module.
47144         * tests/test-yesno.c (main): New file.
47145         * tests/test-yesno.sh: Likewise.
47146
47147 2007-08-19  Bruno Haible  <bruno@clisp.org>
47148
47149         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47150         * lib/fseeko.c (rpl_fseeko): Likewise.
47151         * lib/fseterr.c (fseterr): Likewise.
47152
47153 2007-08-19  Bruno Haible  <bruno@clisp.org>
47154
47155         * tests/test-lseek.c (main): Disable a test for BeOS.
47156         * doc/functions/lseek.texi: Document the BeOS bug.
47157
47158 2007-08-19  Bruno Haible  <bruno@clisp.org>
47159             Eric Blake  <ebb9@byu.net>
47160
47161         * lib/lseek.c: Include <sys/stat.h>.
47162         (rpl_lseek): Add workaround code also for Unix platforms.
47163         Needed for BeOS.
47164         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47165         * doc/functions/lseek.texi: Document BeOS definiency.
47166
47167 2007-08-18  Bruno Haible  <bruno@clisp.org>
47168
47169         * modules/fstrcmp-tests: New file.
47170         * tests/test-fstrcmp.c: New file.
47171
47172 2007-08-18  Bruno Haible  <bruno@clisp.org>
47173
47174         * modules/fstrcmp: New file, from GNU gettext with modifications.
47175         * lib/fstrcmp.h: New file, from GNU gettext.
47176         * lib/fstrcmp.c: New file, from GNU gettext.
47177         * MODULES.html.sh (String handling): Add fstrcmp.
47178
47179 2007-08-18  Bruno Haible  <bruno@clisp.org>
47180
47181         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47182         'bool'.
47183         (diag, compareseq): Remove const from the ctxt argument.
47184         (USE_HEURISTIC): Undefine at the end.
47185
47186 2007-08-18  Jim Meyering  <jim@meyering.net>
47187
47188         New file: lib/idcache.h
47189         * NEWS: Mention the addition.
47190         * modules/idcache (Files): Add lib/idcache.h
47191         * lib/idcache.c: Include "idcache.h".
47192         Don't include <sys/types.h>.
47193         Add a FIXME comment.
47194         Move file-scoped "static" declarations to the top.
47195         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47196
47197 2007-08-17  Bruno Haible  <bruno@clisp.org>
47198         and Paul Eggert  <eggert@cs.ucla.edu>
47199
47200         * MODULES.html.sh: Add diffseq.
47201         * modules/diffseq: New file.
47202         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47203         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47204
47205 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47206
47207         Import changes from coreutils for bootstrap script.
47208
47209         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47210
47211         * build-aux/bootstrap (slurp): Work even in environments where
47212         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47213         current code does not slurp files whose names start with ".", and
47214         this looks like it might be a troublesome area.
47215
47216         2007-07-11  Jim Meyering  <jim@meyering.net>
47217
47218         If there's a GPL vN copyright comment, require that N == 3.
47219
47220         2007-07-08  Jim Meyering  <jim@meyering.net>
47221
47222         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47223         * build-aux/bootstrap (mam_template): Move definition out of loop.
47224
47225         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47226
47227         * build-aux/bootstrap (symlink_to_dir): Rename function from
47228         symlink_to_gnulib.  Add a directory parameter.  Update all
47229         callers.
47230         (cp_mark_as_generated): Also check for -- and link to -- files in
47231         gl/.
47232
47233         2007-07-08  Jim Meyering  <jim@meyering.net>
47234
47235         Adapt to deeper hierarchy in gnulib.
47236         * build-aux/bootstrap (symlink_to_dir): If the destination
47237         directory doesn't exist, create it. This is required at least for
47238         "lib/uniwidth/cjk.h".
47239
47240         2007-05-15  Jim Meyering  <jim@meyering.net>
47241
47242         * build-aux/bootstrap: Now that generated Makefile.am files
47243         are no longer under version control, they must be created at
47244         bootstrap time.
47245
47246 2007-08-14  Ben Pfaff  <blp@gnu.org>
47247
47248         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47249
47250 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47251
47252         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47253         given the changes below.
47254         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47255         even on hosts that have padding bits beyond the supported 64.
47256
47257 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47258
47259         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47260         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47261         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47262         depends on it.
47263         (xstrtol_error): Remove.
47264         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47265         but with a different signature.
47266         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47267         * lib/xstrtol-error.c: Include exitfail.h.
47268         (xstrtol_fatal): New function, with a different signature from the
47269         old xstrtol_error, so that the caller need not worry about passing
47270         in an exit status, or about storage management of the option argument.
47271         (xstrtol_error): Now a static function.  Redo signature to
47272         implement xstrtol_fatal.  Output the correct number of hyphens in
47273         front of the option so that the caller need not worry about
47274         storage management.
47275         (N_): New macro.
47276         (_): Remove; not used now.
47277         * modules/xstrtol: Depend on getopt.
47278         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47279         of old STRTOL_FATAL_ERROR macro.
47280         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47281         of test program.
47282         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47283         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47284
47285 2007-08-08  Eric Blake  <ebb9@byu.net>
47286
47287         * lib/xstrtol-error.c: Add missing include.
47288
47289         Move xstrtol messages into gnulib domain, when --pobase is used.
47290         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47291         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47292         * modules/xstrtol (Files): Distribute new file.
47293         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47294         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47295         * tests/test-xstrtol.c: ...into new file.
47296         * tests/test-xstrtoul.c: Also test xstrtoul.
47297         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47298         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47299         * tests/test-xstrtol.sh: Drive the tests.
47300         * tests/test-xstrtoimax.sh: Likewise.
47301         * tests/test-xstrtoumax.sh: Likewise.
47302         * modules/xstrtol-tests: New module.
47303         * modules/xstrtoimax-tests: Likewise.
47304         * modules/xstrtoumax-tests: Likewise.
47305
47306 2007-08-08  Jim Meyering  <jim@meyering.net>
47307
47308         New function: mfile_name_concat.
47309         * lib/filenamecat.c (mfile_name_concat): New function, just like
47310         file_name_concat, but return NULL upon failure rather than exiting
47311         with a diagnostic.
47312         * lib/filenamecat.h: Declare it.
47313
47314 2007-08-07  Bruno Haible  <bruno@clisp.org>
47315
47316         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47317         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47318         warning from gcc.
47319         Reported by Eric Blake.
47320
47321 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47322
47323         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47324         * modules/crypto/arcfour (License): Likewise.
47325         * modules/crypto/des-tests (License): Likewise.
47326         * modules/crypto/gc-arctwo-tests (License): Likewise.
47327         * modules/crypto/gc-des-tests (License): Likewise.
47328         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47329         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47330         * modules/crypto/gc-md2-tests (License): Likewise.
47331         * modules/crypto/gc-md4-tests (License): Likewise.
47332         * modules/crypto/gc-md5-tests (License): Likewise.
47333         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47334         * modules/crypto/gc-rijndael-tests (License): Likewise.
47335         * modules/crypto/gc-sha1-tests (License): Likewise.
47336         * modules/crypto/gc-tests (License): Likewise.
47337         * modules/crypto/hmac-md5 (License): Likewise.
47338         * modules/crypto/hmac-sha1 (License): Likewise.
47339         * modules/crypto/md2-tests (License): Likewise.
47340         * modules/crypto/md4-tests (License): Likewise.
47341         * modules/crypto/md5 (License): Likewise.
47342         * modules/crypto/rijndael (License): Likewise.
47343         * modules/crypto/sha1 (License): Likewise.
47344         * modules/memxor (License): Likewise.
47345
47346 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47347         and Bruno Haible  <bruno@clisp.org>
47348
47349         * NEWS: Describe interface changes to human, xstrtol.
47350         * lib/human.h: Include <xstrtol.h>.
47351         (human_options): Return enum strtol_error, not int.  Remove
47352         bool arg; take int * instead.
47353         * lib/human.c: Don't include "gettext.h".
47354         (_): Remove; no longer used.
47355         Don't include <xstrtol.h>, since human.h does it.
47356         (human_options): Adjust to abovementioned interface changes.
47357         Do not report error to stderr; that's now the caller's
47358         responsibility.
47359         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47360         interface change.
47361         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47362         Str, Argument_type_string.  All uses changed.  Put " argument"
47363         in diagnostics to make them clearer.  Change wording of suffix
47364         message for clarity.
47365         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47366         Argument_type_string.
47367         (STRTOL_FATAL_WARN): Remove; no longer used.
47368         * modules/human (Depends-on): Remove gettext-h.
47369
47370 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47371
47372         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47373
47374 2007-07-31  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47377         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47378         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47379
47380 2007-07-31  Bruno Haible  <bruno@clisp.org>
47381
47382         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47383         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47384
47385 2007-07-30  Bruno Haible  <bruno@clisp.org>
47386
47387         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47388         * modules/c-ctype (License): Likewise.
47389         * modules/c-strcase (License): Likewise.
47390         * modules/check-version (License): Likewise.
47391         * modules/iconv (License): Likewise.
47392         * modules/iconv_open (License): Likewise.
47393         * modules/read-file (License): Likewise.
47394         * modules/striconv (License): Likewise.
47395         * modules/strverscmp (License): Likewise.
47396         * modules/vasprintf (License): Likewise.
47397         * modules/crypto/des (License): Likewise.
47398         * modules/crypto/gc (License): Likewise.
47399         * modules/crypto/gc-arcfour (License): Likewise.
47400         * modules/crypto/gc-arctwo (License): Likewise.
47401         * modules/crypto/gc-des (License): Likewise.
47402         * modules/crypto/gc-hmac-md5 (License): Likewise.
47403         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47404         * modules/crypto/gc-md2 (License): Likewise.
47405         * modules/crypto/gc-md4 (License): Likewise.
47406         * modules/crypto/gc-md5 (License): Likewise.
47407         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47408         * modules/crypto/gc-random (License): Likewise.
47409         * modules/crypto/gc-rijndael (License): Likewise.
47410         * modules/crypto/gc-sha1 (License): Likewise.
47411         * modules/crypto/md2 (License): Likewise.
47412         * modules/crypto/md4 (License): Likewise.
47413
47414 2007-07-30  Jim Meyering  <jim@meyering.net>
47415
47416         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47417         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47418         it has valid stat data.  This bug would cause du not to count the
47419         sizes of inaccessible directories.
47420         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47421         in <http://bugzilla.redhat.com/250077>.
47422
47423 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47424             Bruno Haible  <bruno@clisp.org>
47425
47426         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47427         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47428         #include_next, gives a diagnostic about it, but reports no error in
47429         the exit code.
47430         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47431
47432 2007-07-24  Ben Pfaff  <blp@gnu.org>
47433
47434         Improve name: "count-one-bits" is better than "popcount".
47435         * MODULES.html.sh: Update name.
47436         * lib/popcount.h: Renamed lib/count-one-bits.h.
47437         (popcount): Renamed count_one_bits.
47438         (popcountl): Renamed count_one_bits_l.
47439         (popcountll): Renamed count_one_bits_ll.
47440         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47441         * modules/popcount: Renamed module/count-one-bits.
47442         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47443         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47444
47445 2007-07-23  Ben Pfaff  <blp@gnu.org>
47446
47447         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47448         better code generation, and add U to large constants to avoid
47449         warnings, in non-GCC case.
47450         Suggested by Bruno Haible.
47451
47452 2007-07-23  Ben Pfaff  <blp@gnu.org>
47453
47454         * lib/popcount.h: Use verify_true instead of if...abort.
47455         * modules/popcount: Depend on verify module.
47456         Suggested by Jim Meyering.
47457
47458 2007-07-23  Bruno Haible  <bruno@clisp.org>
47459
47460         * gnulib-tool (func_import): Create a .cvsignore file also when the
47461         directory is not yet in CVS but the toplevel directory is. When
47462         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47463         Reported by Karl Berry.
47464
47465 2007-07-22  Ben Pfaff  <blp@gnu.org>
47466
47467         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47468         case.
47469         Suggested by Eric Blake.
47470
47471 2007-07-22  Ben Pfaff  <blp@gnu.org>
47472
47473         New module: popcount.
47474         * MODULES.html.sh: Add popcount.
47475         * modules/popcount: New file.
47476         * modules/popcount-tests: New file.
47477         * tests/test-popcount.c: New file.
47478         * lib/popcount.h: New file.
47479         * m4/popcount.m4: New file.
47480
47481 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47482
47483         * build-aux/announce-gen: Update to GPLv3.
47484
47485         * build-aux/config.guess: Update from config.
47486
47487 2007-07-21  Bruno Haible  <bruno@clisp.org>
47488
47489         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47490         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47491
47492 2007-07-20  Jim Meyering  <jim@meyering.net>
47493
47494         * check-module: Diagnose a self-dependency.
47495
47496 2007-07-19  Bruno Haible  <bruno@clisp.org>
47497
47498         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47499         empty.
47500         Reported by Eric Blake.
47501
47502 2007-07-18  Bruno Haible  <bruno@clisp.org>
47503
47504         * gnulib-tool: New options --po-base, --po-domain.
47505         (func_usage): Document them.
47506         (pobase, po_domain): New variables.
47507         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47508         DEFAULT_TEXT_DOMAIN.
47509         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47510         (func_import): Consider pobase and po_domain. Create a po/ directory.
47511         (func_create_testdir): Set pobase and po_domain to empty.
47512         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47513         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47514
47515 2007-07-18  Bruno Haible  <bruno@clisp.org>
47516
47517         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47518         EXTRA_DIST augmentation for files in build-aux/.
47519
47520 2007-07-16  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47523         * modules/getdelim (License): Likewise.
47524
47525 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47526
47527         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47528         * modules/d-type (License): Likewise.
47529         * modules/extensions (License): Likewise.
47530         * modules/fnmatch (License): Likewise.
47531         * modules/fseeko (License): Likewise.
47532         * modules/getaddrinfo (License): Likewise.
47533         * modules/getline (License): Likewise.
47534         * modules/getlogin_r (License): Likewise.
47535         * modules/getpass (License): Likewise.
47536         * modules/gettimeofday (License): Likewise.
47537         * modules/glob (License): Likewise.
47538         * modules/inet_ntop (License): Likewise.
47539         * modules/malloc (License): Likewise.
47540         * modules/malloca (License): Likewise.
47541         * modules/memmem (License): Likewise.
47542         * modules/mempcpy (License): Likewise.
47543         * modules/memset (License): Likewise.
47544         * modules/minmax (License): Likewise.
47545         * modules/mktime (License): Likewise.
47546         * modules/netinet_in (License): Likewise.
47547         * modules/pathmax (License): Likewise.
47548         * modules/poll (License): Likewise.
47549         * modules/regex (License): Likewise.
47550         * modules/snprintf (License): Likewise.
47551         * modules/stdbool (License): Likewise.
47552         * modules/stdint (License): Likewise.
47553         * modules/stdio (License): Likewise.
47554         * modules/strcase (License): Likewise.
47555         * modules/strcasestr (License): Likewise.
47556         * modules/strdup (License): Likewise.
47557         * modules/string (License): Likewise.
47558         * modules/strndup (License): Likewise.
47559         * modules/strnlen (License): Likewise.
47560         * modules/strpbrk (License): Likewise.
47561         * modules/strptime (License): Likewise.
47562         * modules/strsep (License): Likewise.
47563         * modules/sys_select (License): Likewise.
47564         * modules/sys_socket (License): Likewise.
47565         * modules/sys_stat (License): Likewise.
47566         * modules/sys_time (License): Likewise.
47567         * modules/time (License): Likewise.
47568         * modules/time_r (License): Likewise.
47569         * modules/timegm (License): Likewise.
47570         * modules/unistd (License): Likewise.
47571         * modules/vsnprintf (License): Likewise.
47572         * modules/wctype (License): Likewise.
47573
47574 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47575
47576         * modules/argz (License): LGPLv2+.
47577
47578 2007-07-15  Karl Berry  <karl@gnu.org>
47579
47580         * doc/gnulib.texi: revise node structure per new fdl.texi.
47581
47582 2007-07-14  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47585         the output file.
47586         * lib/uniname/uninames.h: Regenerated.
47587
47588 2007-07-14  Karl Berry  <karl@gnu.org>
47589
47590         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47591         omitting sectioning and index commands.
47592
47593 2007-07-13  Bruno Haible  <bruno@clisp.org>
47594
47595         New gnulib-tool option --more-symlinks.
47596         * gnulib-tool (func_usage): Document --more-symlinks.
47597         (do_copyrights): New variable.
47598         Recognize option --more-symlinks.
47599         (func_import): Don't add a copyright notice transform to
47600         sed_transform_lib_file if do_copyrights is empty.
47601
47602 2007-07-13  Bruno Haible  <bruno@clisp.org>
47603
47604         * lib/vasnprintf.c (decimal_point_char): Define also if
47605         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47606         && !NEED_PRINTF_DIRECTIVE_A.
47607         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47608         Gary V. Vaughan <gary@gnu.org>.
47609
47610 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47611
47612         * lib/inttypes_.h: Undo previous change, since it was fixed
47613         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47614
47615 2007-07-13  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47618         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47619
47620 2007-07-13  Jim Meyering  <jim@meyering.net>
47621
47622         df: Don't fail for Tru64's "file-on-file mount".
47623         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47624         so we fall through and use statfs instead.  Details here:
47625         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47626         Reported by Albert Chin.
47627
47628 2007-07-13  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47631         * modules/configmake (License): Likewise.
47632         * modules/gettext (License): Likewise.
47633         * modules/gettext-h (License): Likewise.
47634         * modules/include_next (License): Likewise.
47635         * modules/link-warning (License): Likewise.
47636         * modules/localcharset (License): Likewise.
47637         * modules/localename (License): Likewise.
47638         * modules/lock (License): Likewise.
47639         * modules/relocatable-lib-lgpl (License): Likewise.
47640         * modules/size_max (License): Likewise.
47641         * modules/vasnprintf (License): Likewise.
47642         * modules/wchar (License): Likewise.
47643         * modules/xsize (License): Likewise.
47644
47645 2007-07-13  Bruno Haible  <bruno@clisp.org>
47646
47647         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47648         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47649
47650 2007-07-12  Bruno Haible  <bruno@clisp.org>
47651
47652         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47653         in the modules files.
47654
47655 2007-07-11  Karl Berry  <karl@gnu.org>
47656
47657         * MODULES.html.sh (func_module): use
47658          sed -e '\|^'"${includefile}"'$|d'
47659          instead of /.../d, to avoid errors on $includefile's containing /.
47660
47661 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47662
47663         * gnulib-tool (func_import): Avoid duplication of --avoid
47664         statements
47665         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47666         names to `_' in variable names.
47667
47668 2007-07-10  Eric Blake  <ebb9@byu.net>
47669
47670         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47671         * NEWS: Document this change.
47672
47673 2007-07-08  Bruno Haible  <bruno@clisp.org>
47674
47675         Update to Unicode 5.0.
47676         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47677         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47678         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47679         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47680         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47681         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47682         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47683         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47684         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47685         U+10A3F, U+1D242..U+1D244.
47686         (nonspacing_table_ind): Update.
47687         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47688         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47689
47690 2007-07-08  Bruno Haible  <bruno@clisp.org>
47691
47692         Update to Unicode 5.0.
47693         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47694         code transform. Extend the name index field of unicode_name_to_code and
47695         unicode_code_to_name from 16 to 24 bits.
47696         * lib/uniname/uniname.c (unicode_character_name,
47697         unicode_name_character): Add the range 0x12xxx to the code transform.
47698         * lib/uniname/uninames.h: Regenerated.
47699         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47700
47701 2007-07-07  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/wcwidth-tests: New file.
47704         * tests/test-wcwidth.c: New file.
47705
47706         Work around MacOS X wcwidth() bug.
47707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47708         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47709         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47710         original wcwidth in non-UTF-8 locales.
47711         * modules/wcwidth (Depends-on): Add localcharset, streq,
47712         uniwidth/width.
47713         * doc/functions/wcwidth.texi: Update.
47714
47715 2007-07-07  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47718         (wcwidth): New declaration.
47719         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47720         macros.
47721         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47722         here. Prepare for creating <wchar.h> unconditionally.
47723         * modules/wchar (Depends-on): Add link-warning.
47724         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47725         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47726         * lib/wcwidth.h: Remove file.
47727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47728         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47729         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47730         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47731         (Include): Replace wcwidth.h with <wchar.h>.
47732         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47733         * lib/mbchar.h: Don't include wcwidth.h.
47734         * lib/mbswidth.c: Likewise.
47735         * NEWS: Mention the change.
47736
47737 2007-07-07  Bruno Haible  <bruno@clisp.org>
47738
47739         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47740         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47741         definition with an external declaration.
47742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47743         defined as a function. Remove AC_C_INLINE requirement.
47744         * modules/wcwidth (Files): Add lib/wcwidth.c.
47745         (Makefile.am): Remove redundant statement.
47746
47747 2007-07-07  Bruno Haible  <bruno@clisp.org>
47748
47749         * MODULES.html.sh (Unicode string functions): Add the new modules.
47750
47751         * tests/uniwidth/test-u32-strwidth.c: New file.
47752         * modules/uniwidth/u32-strwidth-tests: New file.
47753
47754         * lib/uniwidth/u32-strwidth.c: New file.
47755         * modules/uniwidth/u32-strwidth: New file.
47756
47757         * tests/uniwidth/test-u16-strwidth.c: New file.
47758         * modules/uniwidth/u16-strwidth-tests: New file.
47759
47760         * lib/uniwidth/u16-strwidth.c: New file.
47761         * modules/uniwidth/u16-strwidth: New file.
47762
47763         * tests/uniwidth/test-u8-strwidth.c: New file.
47764         * modules/uniwidth/u8-strwidth-tests: New file.
47765
47766         * lib/uniwidth/u8-strwidth.c: New file.
47767         * modules/uniwidth/u8-strwidth: New file.
47768
47769         * tests/uniwidth/test-u32-width.c: New file.
47770         * modules/uniwidth/u32-width-tests: New file.
47771
47772         * lib/uniwidth/u32-width.c: New file.
47773         * modules/uniwidth/u32-width: New file.
47774
47775         * tests/uniwidth/test-u16-width.c: New file.
47776         * modules/uniwidth/u16-width-tests: New file.
47777
47778         * lib/uniwidth/u16-width.c: New file.
47779         * modules/uniwidth/u16-width: New file.
47780
47781         * tests/uniwidth/test-u8-width.c: New file.
47782         * modules/uniwidth/u8-width-tests: New file.
47783
47784         * lib/uniwidth/u8-width.c: New file.
47785         * modules/uniwidth/u8-width: New file.
47786
47787         * tests/uniwidth/test-uc_width.c: New file.
47788         * modules/uniwidth/width-tests: New file.
47789
47790         * lib/uniwidth/width.c: New file, from GNU libiconv.
47791         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47792         * modules/uniwidth/width: New file.
47793
47794         * lib/uniwidth.h: New file, from GNU libiconv.
47795         * modules/uniwidth/base: New file.
47796
47797 2007-07-07  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/uniname.h: New file, from GNU gettext.
47800         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47801         * lib/uniname/uninames.h: New file, from GNU gettext.
47802         * lib/uniname/uniname.c: New file, from GNU gettext.
47803         * tests/uniname/test-uninames.sh: New file.
47804         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47805         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47806         * modules/uniname/base: New file.
47807         * modules/uniname/uniname: New file.
47808         * modules/uniname/uniname-tests: New file.
47809         * MODULES.html.sh (Unicode string functions): Add the new modules.
47810
47811 2007-07-06  Bruno Haible  <bruno@clisp.org>
47812
47813         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47814
47815 2007-07-06  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47818         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47819         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47820         include <sys/time.h>.
47821         Reported by Eric Blake.
47822
47823 2007-07-06  Eric Blake  <ebb9@byu.net>
47824
47825         Fix testing canonicalize on cygwin.
47826         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47827         Revert patch from 2007-06-19.
47828         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47829         canonicalize module is also in use.
47830         * tests/test-canonicalize.c: New file.
47831         * tests/test-canonicalize.sh: Likewise.
47832         * modules/canonicalize-tests: Likewise.
47833
47834 2007-07-06  Jim Meyering  <jim@meyering.net>
47835
47836         * lib/getugroups.c (getugroups): Detect getgrent failure.
47837         Adjust comment to reflect reality: this function may return -1.
47838
47839 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47840
47841         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47842         the new TP address.
47843         (usage): Fix typo
47844         (gnulib_mk): New variable.
47845
47846 2007-07-05  Jim Meyering  <jim@meyering.net>
47847
47848         Don't let endgrent clobber errno, no matter how improbable.
47849         * lib/getugroups.c (getugroups): Save and restore errno around
47850         endgrent call.
47851
47852         Close the group DB even when failing with 2^31 or more members.
47853         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47854
47855 2007-07-04  Jim Meyering  <jim@meyering.net>
47856
47857         * lib/getugroups.h: New file.
47858         * lib/getugroups.c: Include "getugroups.h".
47859         Remove uses of "register" keyword.
47860         Move local variable, "cp", down into scope where used.
47861         Give "username" parameter the "const" attribute.
47862         * modules/getugroups (Files): Add lib/getugroups.h
47863
47864 2007-07-04  Karl Berry  <karl@gnu.org>
47865
47866         * MODULES.html.sh (func_all_modules): Complete rename of
47867         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47868
47869 2007-07-02  Bruno Haible  <bruno@clisp.org>
47870
47871         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47872         mode, when inttypes.h comes from gnulib.
47873         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47874
47875 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47876
47877         * NEWS: Mention lgpl module name change.
47878
47879         * modules/lgpl-2.1: Renamed from lgpl.
47880
47881         * NEWS: Mention gpl module name change.
47882
47883         * modules/gpl-3.0: New file, based on gpl-2.0.
47884
47885         * modules/gpl-2.0: Renamed from gpl.
47886
47887         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47888         doc/gpl-2.0.texi.
47889
47890 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47891
47892         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47893         #define __STDC_LIMIT_MACROS temporarily while including
47894         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47895         Problem reported by Joel E. Denny in
47896         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47897
47898 2007-07-01  Bruno Haible  <bruno@clisp.org>
47899
47900         * lib/unistdio.h: New file.
47901         * lib/unistdio/u-asnprintf.h: New file.
47902         * lib/unistdio/u-asprintf.h: New file.
47903         * lib/unistdio/u-printf-args.c: New file.
47904         * lib/unistdio/u-printf-args.h: New file.
47905         * lib/unistdio/u-printf-parse.h: New file.
47906         * lib/unistdio/u-snprintf.h: New file.
47907         * lib/unistdio/u-sprintf.h: New file.
47908         * lib/unistdio/u-vasprintf.h: New file.
47909         * lib/unistdio/u-vsnprintf.h: New file.
47910         * lib/unistdio/u-vsprintf.h: New file.
47911         * lib/unistdio/ulc-asnprintf.c: New file.
47912         * lib/unistdio/ulc-asprintf.c: New file.
47913         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47914         * lib/unistdio/ulc-printf-parse.c: New file.
47915         * lib/unistdio/ulc-snprintf.c: New file.
47916         * lib/unistdio/ulc-sprintf.c: New file.
47917         * lib/unistdio/ulc-vasnprintf.c: New file.
47918         * lib/unistdio/ulc-vasprintf.c: New file.
47919         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47920         * lib/unistdio/ulc-vsnprintf.c: New file.
47921         * lib/unistdio/ulc-vsprintf.c: New file.
47922         * lib/unistdio/u8-asnprintf.c: New file.
47923         * lib/unistdio/u8-asprintf.c: New file.
47924         * lib/unistdio/u8-printf-parse.c: New file.
47925         * lib/unistdio/u8-snprintf.c: New file.
47926         * lib/unistdio/u8-sprintf.c: New file.
47927         * lib/unistdio/u8-vasnprintf.c: New file.
47928         * lib/unistdio/u8-vasprintf.c: New file.
47929         * lib/unistdio/u8-vsnprintf.c: New file.
47930         * lib/unistdio/u8-vsprintf.c: New file.
47931         * lib/unistdio/u8-u8-asnprintf.c: New file.
47932         * lib/unistdio/u8-u8-asprintf.c: New file.
47933         * lib/unistdio/u8-u8-snprintf.c: New file.
47934         * lib/unistdio/u8-u8-sprintf.c: New file.
47935         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47936         * lib/unistdio/u8-u8-vasprintf.c: New file.
47937         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47938         * lib/unistdio/u8-u8-vsprintf.c: New file.
47939         * lib/unistdio/u16-asnprintf.c: New file.
47940         * lib/unistdio/u16-asprintf.c: New file.
47941         * lib/unistdio/u16-printf-parse.c: New file.
47942         * lib/unistdio/u16-snprintf.c: New file.
47943         * lib/unistdio/u16-sprintf.c: New file.
47944         * lib/unistdio/u16-vasnprintf.c: New file.
47945         * lib/unistdio/u16-vasprintf.c: New file.
47946         * lib/unistdio/u16-vsnprintf.c: New file.
47947         * lib/unistdio/u16-vsprintf.c: New file.
47948         * lib/unistdio/u16-u16-asnprintf.c: New file.
47949         * lib/unistdio/u16-u16-asprintf.c: New file.
47950         * lib/unistdio/u16-u16-snprintf.c: New file.
47951         * lib/unistdio/u16-u16-sprintf.c: New file.
47952         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47953         * lib/unistdio/u16-u16-vasprintf.c: New file.
47954         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47955         * lib/unistdio/u16-u16-vsprintf.c: New file.
47956         * lib/unistdio/u32-asnprintf.c: New file.
47957         * lib/unistdio/u32-asprintf.c: New file.
47958         * lib/unistdio/u32-printf-parse.c: New file.
47959         * lib/unistdio/u32-snprintf.c: New file.
47960         * lib/unistdio/u32-sprintf.c: New file.
47961         * lib/unistdio/u32-vasnprintf.c: New file.
47962         * lib/unistdio/u32-vasprintf.c: New file.
47963         * lib/unistdio/u32-vsnprintf.c: New file.
47964         * lib/unistdio/u32-vsprintf.c: New file.
47965         * lib/unistdio/u32-u32-asnprintf.c: New file.
47966         * lib/unistdio/u32-u32-asprintf.c: New file.
47967         * lib/unistdio/u32-u32-snprintf.c: New file.
47968         * lib/unistdio/u32-u32-sprintf.c: New file.
47969         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47970         * lib/unistdio/u32-u32-vasprintf.c: New file.
47971         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47972         * lib/unistdio/u32-u32-vsprintf.c: New file.
47973         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47974         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47975         * tests/unistdio/test-ulc-printf1.h: New file.
47976         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47977         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47978         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47979         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47980         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47981         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47982         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47983         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47984         * tests/unistdio/test-u8-asnprintf1.c: New file.
47985         * tests/unistdio/test-u8-asnprintf1.h: New file.
47986         * tests/unistdio/test-u8-printf1.h: New file.
47987         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47988         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47989         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47990         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47991         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47992         * tests/unistdio/test-u8-vasprintf1.c: New file.
47993         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47994         * tests/unistdio/test-u8-vsprintf1.c: New file.
47995         * tests/unistdio/test-u16-asnprintf1.c: New file.
47996         * tests/unistdio/test-u16-asnprintf1.h: New file.
47997         * tests/unistdio/test-u16-printf1.h: New file.
47998         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47999         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48000         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48001         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48002         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48003         * tests/unistdio/test-u16-vasprintf1.c: New file.
48004         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48005         * tests/unistdio/test-u16-vsprintf1.c: New file.
48006         * tests/unistdio/test-u32-asnprintf1.c: New file.
48007         * tests/unistdio/test-u32-asnprintf1.h: New file.
48008         * tests/unistdio/test-u32-printf1.h: New file.
48009         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48010         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48011         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48012         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48013         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48014         * tests/unistdio/test-u32-vasprintf1.c: New file.
48015         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48016         * tests/unistdio/test-u32-vsprintf1.c: New file.
48017         * modules/unistdio/base: New file.
48018         * modules/unistdio/u-printf-args: New file.
48019         * modules/unistdio/ulc-asnprintf: New file.
48020         * modules/unistdio/ulc-asprintf: New file.
48021         * modules/unistdio/ulc-fprintf: New file.
48022         * modules/unistdio/ulc-printf-parse: New file.
48023         * modules/unistdio/ulc-snprintf: New file.
48024         * modules/unistdio/ulc-sprintf: New file.
48025         * modules/unistdio/ulc-vasnprintf: New file.
48026         * modules/unistdio/ulc-vasprintf: New file.
48027         * modules/unistdio/ulc-vfprintf: New file.
48028         * modules/unistdio/ulc-vsnprintf: New file.
48029         * modules/unistdio/ulc-vsprintf: New file.
48030         * modules/unistdio/u8-asnprintf: New file.
48031         * modules/unistdio/u8-asprintf: New file.
48032         * modules/unistdio/u8-printf-parse: New file.
48033         * modules/unistdio/u8-snprintf: New file.
48034         * modules/unistdio/u8-sprintf: New file.
48035         * modules/unistdio/u8-vasnprintf: New file.
48036         * modules/unistdio/u8-vasprintf: New file.
48037         * modules/unistdio/u8-vsnprintf: New file.
48038         * modules/unistdio/u8-vsprintf: New file.
48039         * modules/unistdio/u8-u8-asnprintf: New file.
48040         * modules/unistdio/u8-u8-asprintf: New file.
48041         * modules/unistdio/u8-u8-snprintf: New file.
48042         * modules/unistdio/u8-u8-sprintf: New file.
48043         * modules/unistdio/u8-u8-vasnprintf: New file.
48044         * modules/unistdio/u8-u8-vasprintf: New file.
48045         * modules/unistdio/u8-u8-vsnprintf: New file.
48046         * modules/unistdio/u8-u8-vsprintf: New file.
48047         * modules/unistdio/u16-asnprintf: New file.
48048         * modules/unistdio/u16-asprintf: New file.
48049         * modules/unistdio/u16-printf-parse: New file.
48050         * modules/unistdio/u16-snprintf: New file.
48051         * modules/unistdio/u16-sprintf: New file.
48052         * modules/unistdio/u16-vasnprintf: New file.
48053         * modules/unistdio/u16-vasprintf: New file.
48054         * modules/unistdio/u16-vsnprintf: New file.
48055         * modules/unistdio/u16-vsprintf: New file.
48056         * modules/unistdio/u16-u16-asnprintf: New file.
48057         * modules/unistdio/u16-u16-asprintf: New file.
48058         * modules/unistdio/u16-u16-snprintf: New file.
48059         * modules/unistdio/u16-u16-sprintf: New file.
48060         * modules/unistdio/u16-u16-vasnprintf: New file.
48061         * modules/unistdio/u16-u16-vasprintf: New file.
48062         * modules/unistdio/u16-u16-vsnprintf: New file.
48063         * modules/unistdio/u16-u16-vsprintf: New file.
48064         * modules/unistdio/u32-asnprintf: New file.
48065         * modules/unistdio/u32-asprintf: New file.
48066         * modules/unistdio/u32-printf-parse: New file.
48067         * modules/unistdio/u32-snprintf: New file.
48068         * modules/unistdio/u32-sprintf: New file.
48069         * modules/unistdio/u32-vasnprintf: New file.
48070         * modules/unistdio/u32-vasprintf: New file.
48071         * modules/unistdio/u32-vsnprintf: New file.
48072         * modules/unistdio/u32-vsprintf: New file.
48073         * modules/unistdio/u32-u32-asnprintf: New file.
48074         * modules/unistdio/u32-u32-asprintf: New file.
48075         * modules/unistdio/u32-u32-snprintf: New file.
48076         * modules/unistdio/u32-u32-sprintf: New file.
48077         * modules/unistdio/u32-u32-vasnprintf: New file.
48078         * modules/unistdio/u32-u32-vasprintf: New file.
48079         * modules/unistdio/u32-u32-vsnprintf: New file.
48080         * modules/unistdio/u32-u32-vsprintf: New file.
48081         * modules/unistdio/ulc-asnprintf-tests: New file.
48082         * modules/unistdio/ulc-vasnprintf-tests: New file.
48083         * modules/unistdio/ulc-vasprintf-tests: New file.
48084         * modules/unistdio/ulc-vsnprintf-tests: New file.
48085         * modules/unistdio/ulc-vsprintf-tests: New file.
48086         * modules/unistdio/u8-asnprintf-tests: New file.
48087         * modules/unistdio/u8-vasnprintf-tests: New file.
48088         * modules/unistdio/u8-vasprintf-tests: New file.
48089         * modules/unistdio/u8-vsnprintf-tests: New file.
48090         * modules/unistdio/u8-vsprintf-tests: New file.
48091         * modules/unistdio/u16-asnprintf-tests: New file.
48092         * modules/unistdio/u16-vasnprintf-tests: New file.
48093         * modules/unistdio/u16-vasprintf-tests: New file.
48094         * modules/unistdio/u16-vsnprintf-tests: New file.
48095         * modules/unistdio/u16-vsprintf-tests: New file.
48096         * modules/unistdio/u32-asnprintf-tests: New file.
48097         * modules/unistdio/u32-vasnprintf-tests: New file.
48098         * modules/unistdio/u32-vasprintf-tests: New file.
48099         * modules/unistdio/u32-vsnprintf-tests: New file.
48100         * modules/unistdio/u32-vsprintf-tests: New file.
48101         * MODULES.html.sh (Unicode string functions): Add the new modules.
48102
48103 2007-07-01  Bruno Haible  <bruno@clisp.org>
48104
48105         * lib/sprintf.c (sprintf): Limit the available length estimation,
48106         to avoid address wraparound.
48107         * lib/vsprintf.c (vsprintf): Likewise.
48108         * modules/sprintf-posix (Dependencies): Add stdint.
48109         * modules/vsprintf-posix (Dependencies): Likewise.
48110
48111 2007-07-01  Bruno Haible  <bruno@clisp.org>
48112
48113         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48114         Windows PATH as well. Conservative double-quoting. Comments.
48115
48116 2007-07-01  Bruno Haible  <bruno@clisp.org>
48117             Eric Blake  <ebb9@byu.net>
48118             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48119
48120         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48121         empty components in $PATH, denoting '.'.
48122
48123 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48124
48125         * gnulib-tool: Fix indentation.
48126         (func_create_megatestdir): Likewise.
48127         Report by Bruno Haible.
48128
48129 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48130
48131         Sync from Automake.
48132         * build-aux/gnupload: Fix shell portability issues with for loops.
48133         Report by Karl Berry.
48134
48135 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48136
48137         * build-aux/maint.mk (POURL): Use translationproject.org.
48138
48139 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48140             Bruno Haible  <bruno@clisp.org>
48141
48142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48143         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48144         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48145         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48146         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48147
48148 2007-06-27  Bruno Haible  <bruno@clisp.org>
48149
48150         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48151         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48152
48153 2007-06-26  Karl Berry  <karl@gnu.org>
48154
48155         * MODULES.html.sh: remove xreadlink-with-size.
48156
48157 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48158
48159         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48160         method that I hope also handles the double-include problem noted
48161         by Bruno Haible in
48162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48163
48164 2007-06-23  Bruno Haible  <bruno@clisp.org>
48165
48166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48167         Don't let the 'mostlyclean' target fail if the last subdirectory could
48168         not be removed.
48169         Reported by Karl Berry.
48170
48171 2007-06-23  Bruno Haible  <bruno@clisp.org>
48172
48173         * gnulib-tool (echo): Add a speedier workaround for ksh.
48174         * tests/test-echo.sh: Likewise.
48175
48176 2007-06-23  Bruno Haible  <bruno@clisp.org>
48177
48178         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48179         * tests/test-echo.sh: Likewise.
48180
48181 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48182
48183         * gnulib-tool (IFS): Initialize early, so we don't set it to
48184         empty later.
48185         (self_abspathname): Rewrite algorithm to set it, reindent.
48186         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48187         (func_create_megatestdir): Merge some sed scripts.
48188
48189 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48190
48191         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48192         exposed by Sun Studio 11 cc on Solaris 8.
48193
48194 2007-06-22  Bruno Haible  <bruno@clisp.org>
48195
48196         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48197         backslashes.
48198         * tests/test-echo.sh: New file.
48199
48200 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48201
48202         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48203         simplify `sed_replace_build_aux' scripts, they are portable but
48204         echoing them with `echo' is not.
48205         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48206
48207 2007-06-21  Karl Berry  <karl@gnu.org>
48208
48209         * config/srclist.txt: guess we can't handle the licenses via
48210         srclist at the moment.
48211
48212 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48213
48214         * MODULES.html.sh: Add include_next.
48215         * modules/include_next: New file.
48216
48217 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48220         INCLUDE_NEXT.
48221         (gl_CHECK_NEXT_HEADERS): New macro.
48222         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48223         the obsolescent gl_ABSOLUTE_HEADER.
48224         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48225         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48226         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48227         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48228         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48229         * m4/math_h.m4 (gl_MATH_H): Likewise.
48230         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48231         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48232         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48233         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48234         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48235         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48236         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48240         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48241         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48242         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48243         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48244         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48245         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48246         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48247         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48248         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48249         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48250         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48251         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48252         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48253         * lib/float_.h: Likewise.
48254         * lib/inttypes_.h: Likewise.
48255         * lib/math_.h: Likewise.
48256         * lib/search_.h: Likewise.
48257         * lib/signal_.h: Likewise.
48258         * lib/stdint_.h: Likewise.
48259         * lib/stdio_.h: Likewise.
48260         * lib/stdlib_.h: Likewise.
48261         * lib/string_.h: Likewise.
48262         * lib/sys_stat_.h: Likewise.
48263         * lib/sys_time_.h: Likewise.
48264         * lib/time_.h: Likewise.
48265         * lib/unistd_.h: Likewise.
48266         * lib/wchar_.h: Likewise.
48267         * lib/wctype_.h: Likewise.
48268         * lib/dirent_.h: Likewise.
48269         * lib/iconv_.h: Likewise.
48270         * lib/locale_.h: Likewise.
48271         * lib/netinet_in_.h: Likewise.
48272         * lib/sys_select_.h: Likewise.
48273         * lib/sys_socket_.h: Likewise.
48274         * lib/sysexits_.h: Likewise.
48275         * modules/fcntl (Depends-on): Depend on include_next, not
48276         absolute_header.
48277         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48278         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48279         * modules/fchdir: Likewise.
48280         * modules/float: Likewise.
48281         * modules/iconv_open: Likewise.
48282         * modules/inttypes: Likewise.
48283         * modules/locale: Likewise.
48284         * modules/math: Likewise.
48285         * modules/netinet_in: Likewise.
48286         * modules/search: Likewise.
48287         * modules/signal: Likewise.
48288         * modules/stdint: Likewise.
48289         * modules/stdio: Likewise.
48290         * modules/stdlib: Likewise.
48291         * modules/string: Likewise.
48292         * modules/sys_select: Likewise.
48293         * modules/sys_socket: Likewise.
48294         * modules/sys_stat: Likewise.
48295         * modules/sys_time: Likewise.
48296         * modules/sysexits: Likewise.
48297         * modules/time: Likewise.
48298         * modules/unistd: Likewise.
48299         * modules/wchar: Likewise.
48300         * modules/wctype: Likewise.
48301         * modules/sys_stat: Change maintainer to "all".
48302         * modules/unistd: Likewise.
48303
48304 2007-06-20  Karl Berry  <karl@gnu.org>
48305
48306         * config/srclist.txt: track www changes in license files.
48307
48308 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48309
48310         * build-aux/bootstrap: Remove stray dot.
48311         Make sure build_aux settings are honored when linking
48312         gnulib_extra_files.
48313
48314 2007-06-19  Eric Blake  <ebb9@byu.net>
48315
48316         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48317         Allow compilation on cygwin.
48318
48319 2007-06-19  Jim Meyering  <jim@meyering.net>
48320
48321         xreadlink-with-size: Remove module.  No longer used.
48322         Ex-callers now use xreadlink or mreadlink-with-size.
48323         * modules/xreadlink-with-size: Remove module.
48324         * lib/xreadlink-with-size.c: Remove file.
48325         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48326         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48327         just before the function definition *is* accurate.
48328
48329         Eliminate one way canonicalize_filename_mode could exit.
48330         * lib/canonicalize.c (canonicalize_filename_mode):
48331         Use mreadlink_with_size, not xreadlink_with_size.
48332
48333 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48334
48335         Detect porting problems to FreeBSD/arm, which has time_t wider than
48336         long int.  Original problem reported for GNU diff by Xin Li in
48337         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48338         * modules/getdate (Depends-on): Add intprops, verify.
48339         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48340         is an integer type no wider than long int.
48341
48342 2007-06-18  Jim Meyering  <jim@meyering.net>
48343
48344         New module: mreadlink-with-size.
48345         * MODULES.html.sh: Add mreadlink-with-size.
48346         * modules/mreadlink-with-size: New module
48347         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48348         not xreadlink-with-size.
48349         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48350
48351 2007-06-16  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48354         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48355         Reported by Gary V. Vaughan <gary@gnu.org>.
48356
48357 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         Revamp lchown so that it lives in unistd.h where it belongs.
48360         * lib/lchown.h: Remove.
48361         * lib/dirchownmod.c: Don't include lib/lchown.h.
48362         * lib/fchownat.c: Likewise.
48363         * lib/openat.c: Likewise.
48364         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48365         does not follow symlinks.
48366         (EOPNOTSUPP): Define if not defined.
48367         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48368         is defined to 0.
48369         (lchown): New decl.
48370         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48371         Do not check for lchown decl.
48372         Set REPLACE_LCHOWN.
48373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48374         REPLACE_LCHOWN.
48375         * modules/chown: Make it clear it follows symlinks.
48376         * modules/lchown: Make it clear it doesn't follow symlinks.
48377         (Files): Remove lib/lchown.h
48378         (Depends-on): Add unistd.
48379         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48380         (Include): Include <unistd.h>, not "lchown.h".
48381         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48382         REPLACE_LCHOWN.
48383
48384 2007-06-15  Jim Meyering  <jim@meyering.net>
48385
48386         Change license (GPL to LGPL) of fsusage and dependents.
48387         * modules/fsusage (License): Change to LGPL.
48388         * modules/full-read (License): Likewise.
48389         * modules/full-write (License): Likewise.
48390         * modules/safe-read (License): Likewise.
48391         * modules/safe-write (License): Likewise.
48392
48393 2007-06-14  Ben Pfaff  <blp@gnu.org>
48394
48395         Missing part of allocsa -> malloca transition.
48396         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48397         gl_MALLOCA.
48398
48399 2007-06-12  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48402         to ia64, x86_64, i386.
48403         Reported by Eric Blake.
48404
48405 2007-06-12  Bruno Haible  <bruno@clisp.org>
48406
48407         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48408         cross-compiling to x86_64.
48409
48410 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48411
48412         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48413         glitch reported by Ralf Wildenhues in
48414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48415
48416         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48417         Vin Shelton.
48418
48419 2007-06-11  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48422         replacement string.
48423         Reported by Eric Blake.
48424
48425 2007-06-10  Bruno Haible  <bruno@clisp.org>
48426
48427         Prepare vasnprintf code for use with Unicode strings.
48428         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48429         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48430         TYPE_U32_STRING.
48431         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48432         a_u32_string variants.
48433         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48434         * lib/printf-args.c: Don't include config.h and the specification
48435         header if PRINTF_FETCHARGS is already defined.
48436         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48437         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48438         TYPE_U16_STRING, TYPE_U32_STRING.
48439         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48440         u16_directive, u16_directives, u32_directive, u32_directives): New
48441         types.
48442         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48443         New declarations.
48444         * lib/printf-parse.c: Don't include config.h and the specification
48445         header if PRINTF_PARSE is already defined. Eliminate the set of
48446         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48447         them now. Include c-ctype.h.
48448         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48449         directive and CHAR_T_ONLY_ASCII.
48450         * lib/vasnprintf.c: Don't include config.h and the specification header
48451         if VASNPRINTF is already defined.
48452         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48453         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48454         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48455         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48456         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48457         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48458         code accordingly.
48459         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48460         pad_ourselves also in this case, with the 'c' and 's' directives, and
48461         with a different notion of "width".
48462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48463
48464 2007-06-10  Bruno Haible  <bruno@clisp.org>
48465
48466         * modules/unistr/u32-mbsnlen: New file.
48467         * lib/unistr/u32-mbsnlen.c: New file.
48468
48469         * modules/unistr/u16-mbsnlen: New file.
48470         * lib/unistr/u16-mbsnlen.c: New file.
48471
48472         * modules/unistr/u8-mbsnlen: New file.
48473         * lib/unistr/u8-mbsnlen.c: New file.
48474
48475         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48476         declarations.
48477
48478 2007-06-10  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/string_.h (mbsnlen): New declaration.
48481         * lib/mbsnlen.c: New file.
48482         * m4/mbsnlen.m4: New file.
48483         * modules/mbsnlen: New file.
48484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48485         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48486         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48487
48488 2007-06-10  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48491
48492 2007-06-10  Bruno Haible  <bruno@clisp.org>
48493
48494         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48495         * lib/mbuiter.h: Likewise.
48496
48497 2007-06-10  Bruno Haible  <bruno@clisp.org>
48498
48499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48500         declaration.
48501
48502 2007-06-10  Karl Berry  <karl@gnu.org>
48503
48504         * config/srclist.txt: remove gettext entries, Bruno prefers
48505         to update individually.
48506
48507 2007-06-10  Bruno Haible  <bruno@clisp.org>
48508
48509         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48510         'maxlen'. Ensure only length + width bytes are allocated, not
48511         length + 1 + width.
48512
48513 2007-06-09  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48516         (CHAR_T): Remove macro.
48517         (VASNPRINTF): Update.
48518
48519 2007-06-09  Bruno Haible  <bruno@clisp.org>
48520
48521         * MODULES.html.sh (Unicode string functions): Add the new modules.
48522
48523         * modules/uniconv/u32-conv-to-enc: New file.
48524         * lib/uniconv/u32-conv-to-enc.c: New file.
48525         * modules/uniconv/u32-conv-to-enc-tests: New file.
48526         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48527
48528         * modules/uniconv/u16-conv-to-enc: New file.
48529         * lib/uniconv/u16-conv-to-enc.c: New file.
48530         * lib/uniconv/u-conv-to-enc.h: New file.
48531         * modules/uniconv/u16-conv-to-enc-tests: New file.
48532         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48533
48534         * modules/uniconv/u8-conv-to-enc: New file.
48535         * lib/uniconv/u8-conv-to-enc.c: New file.
48536         * modules/uniconv/u8-conv-to-enc-tests: New file.
48537         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48538
48539         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48540         u32_conv_to_encoding): New declarations.
48541
48542 2007-06-09  Bruno Haible  <bruno@clisp.org>
48543
48544         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48545
48546 2007-06-09  Bruno Haible  <bruno@clisp.org>
48547
48548         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48549         * modules/malloca: Renamed from modules/allocsa, updated.
48550         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48551         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48552         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48553         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48554         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48555         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48556         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48557         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48558         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48559         * modules/c-strcasestr (Depends-on): Update.
48560         * lib/c-strcasestr.c: Update.
48561         * modules/c-strstr (Depends-on): Update.
48562         * lib/c-strstr.c: Update.
48563         * modules/canonicalize-lgpl (Depends-on): Update.
48564         * lib/canonicalize-lgpl.c: Update.
48565         * modules/clean-temp (Depends-on): Update.
48566         * lib/clean-temp.c: Update.
48567         * modules/csharpcomp (Depends-on): Update.
48568         * lib/csharpcomp.c: Update.
48569         * modules/csharpexec (Depends-on): Update.
48570         * lib/csharpexec.c: Update.
48571         * modules/javacomp (Depends-on): Update.
48572         * lib/javacomp.c: Update.
48573         * modules/javaexec (Depends-on): Update.
48574         * lib/javaexec.c: Update.
48575         * modules/mbscasestr (Depends-on): Update.
48576         * lib/mbscasestr.c: Update.
48577         * modules/mbsstr (Depends-on): Update.
48578         * lib/mbsstr.c: Update.
48579         * modules/setenv (Depends-on): Update.
48580         * lib/setenv.c: Update.
48581         * modules/strcasestr (Depends-on): Update.
48582         * lib/strcasestr.c: Update.
48583         * modules/striconveha (Depends-on): Update.
48584         * lib/striconveha.c: Update.
48585         * modules/relocatable-prog-wrapper (Files): Update.
48586         * lib/relocwrapper.c: Update.
48587         * build-aux/install-reloc: Update.
48588         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48589
48590 2007-06-08  Bruno Haible  <bruno@clisp.org>
48591
48592         Port to uClibc.
48593         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48594         * lib/fpurge.c (fpurge): Likewise.
48595         * lib/freading.c (freading): Likewise.
48596         * lib/fseeko.c (rpl_fseeko): Likewise.
48597         * lib/fseterr.c (fseterr): Likewise.
48598         * lib/fwriting.c (fwriting): Likewise.
48599         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48600
48601 2007-06-08  Bruno Haible  <bruno@clisp.org>
48602
48603         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48604         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48605         * modules/gettext (Files): Add m4/intlmacosx.m4.
48606
48607 2007-06-07  Bruno Haible  <bruno@clisp.org>
48608
48609         * modules/localename-tests: New file.
48610         * tests/test-localename.c: New file.
48611
48612         New module 'localename'.
48613         * lib/localename.h: New file.
48614         * lib/localename.c: New file, from GNU gettext.
48615         * m4/localename.m4: New file.
48616         * modules/localename: New file.
48617
48618 2007-06-07  Bruno Haible  <bruno@clisp.org>
48619
48620         Work around the lack of <wchar.h> on some builds of uClibc.
48621         * doc/headers/wchar.texi: Update.
48622         * lib/wchar_.h: Include <wchar.h> only if it exists.
48623         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48624         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48625         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48626         doesn't exist.
48627         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48628         * modules/mbfile (Depends-on): Add wchar.
48629         * modules/mbiter (Depends-on): Likewise.
48630         * modules/mbuiter (Depends-on): Likewise.
48631         Reported by Simon Josefsson.
48632
48633 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48634
48635         Work around problem reported by Steven M. Schweda in
48636         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48637         Tru64 5.1B with the Compaq compiler environment installed declares
48638         an 'isblank' function but does not define it in the C library.
48639         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48640         * lib/regex_internal.h (isblank): Likewise.
48641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48642         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48643
48644 2007-06-05  Bruno Haible  <bruno@clisp.org>
48645
48646         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48647         ia64.
48648         * modules/printf-safe: New file.
48649         * modules/fprintf-posix (Depends-on): Add printf-safe.
48650         * modules/printf-posix (Depends-on): Likewise.
48651         * modules/snprintf-posix (Depends-on): Likewise.
48652         * modules/sprintf-posix (Depends-on): Likewise.
48653         * modules/vasnprintf-posix (Depends-on): Likewise.
48654         * modules/vasprintf-posix (Depends-on): Likewise.
48655         * modules/vfprintf-posix (Depends-on): Likewise.
48656         * modules/vprintf-posix (Depends-on): Likewise.
48657         * modules/vsnprintf-posix (Depends-on): Likewise.
48658         * modules/vsprintf-posix (Depends-on): Likewise.
48659         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48660         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48661         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48662         "no" on i386, x86_64, ia64.
48663         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48664         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48665         on i386, x86_64, ia64.
48666         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48667         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48668         on i386, x86_64, ia64.
48669         * tests/test-vasnprintf-posix.c: Include float.h.
48670         (LDBL80_WORDS): New macro.
48671         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48672         on i386, x86_64, ia64.
48673         * tests/test-vasprintf-posix.c: Include float.h.
48674         (LDBL80_WORDS): New macro.
48675         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48676         on i386, x86_64, ia64.
48677         * tests/test-snprintf-posix.c: Include float.h.
48678         * tests/test-sprintf-posix.c: Likewise.
48679         * tests/test-vsnprintf-posix.c: Likewise.
48680         * tests/test-vsprintf-posix.c: Likewise.
48681
48682 2007-06-05  Bruno Haible  <bruno@clisp.org>
48683
48684         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48685         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48686         non-IEEE numbers on i386, x86_64, ia64.
48687         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48688         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48689         * tests/test-isnanl.h: Include float.h.
48690         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48691
48692 2007-06-05  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48695         also the %a / %A. Handle the %a / %A code before this extra handling.
48696
48697 2007-06-05  Bruno Haible  <bruno@clisp.org>
48698
48699         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48700         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48701
48702 2007-06-05  Bruno Haible  <bruno@clisp.org>
48703
48704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48705         typo in variable name.
48706
48707 2007-06-05  Eric Blake  <ebb9@byu.net>
48708
48709         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48710         Reported by Simon Josefsson.
48711
48712 2007-06-04  Bruno Haible  <bruno@clisp.org>
48713
48714         Avoid test failures on some PowerPC platforms.
48715         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48716         Define differently for PowerPC.
48717         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48718         Reported by Gary V. Vaughan <gary@gnu.org>.
48719
48720 2007-06-02  Bruno Haible  <bruno@clisp.org>
48721
48722         Fix test-stdint failure on FreeBSD/ia64.
48723         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48724         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48725         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48726         * doc/headers/stdint.texi: Update.
48727
48728 2007-06-01  Bruno Haible  <bruno@clisp.org>
48729
48730         * tests/test-binary-io.c (main): Pass a third argument to open().
48731         Reported by Gary V. Vaughan <gary@gnu.org>.
48732
48733 2007-06-01  Bruno Haible  <bruno@clisp.org>
48734
48735         * doc/functions/frexpl.texi: Update for mingw.
48736
48737 2007-06-01  Bruno Haible  <bruno@clisp.org>
48738
48739         * tests/test-lseek.c (main): Disable test of errno for invalid third
48740         argument.
48741         * doc/functions/lseek.texi: Update.
48742         Reported by Gary V. Vaughan <gary@gnu.org>.
48743
48744 2007-05-28  Bruno Haible  <bruno@clisp.org>
48745
48746         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48747
48748 2007-05-31  Eric Blake  <ebb9@byu.net>
48749
48750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48751         cross compiling.
48752
48753 2007-05-30  Eric Blake  <ebb9@byu.net>
48754         and Bruno Haible  <bruno@clisp.org>
48755
48756         Work around mingw test failures exposed by m4-1.4.9b.
48757         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48758         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48759         moment.
48760
48761 2007-05-30  Bruno Haible  <bruno@clisp.org>
48762
48763         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48764         assuming that they are closed. Needed on HP-UX 11.
48765
48766 2007-05-29  Bruno Haible  <bruno@clisp.org>
48767
48768         Fix a problem with #include_next.
48769         * lib/dirent_.h: Split the double-inclusion guard.
48770         * lib/fcntl_.h: Likewise.
48771         * lib/float_.h: Likewise.
48772         * lib/iconv_.h: Likewise.
48773         * lib/inttypes_.h: Likewise.
48774         * lib/locale_.h: Likewise.
48775         * lib/math_.h: Likewise.
48776         * lib/netinet_in_.h: Likewise.
48777         * lib/search_.h: Likewise.
48778         * lib/signal_.h: Likewise.
48779         * lib/stdint_.h: Likewise.
48780         * lib/stdio_.h: Likewise.
48781         * lib/stdlib_.h: Likewise.
48782         * lib/string_.h: Likewise.
48783         * lib/sys_select_.h: Likewise.
48784         * lib/sys_socket_.h: Likewise.
48785         * lib/sys_stat_.h: Likewise.
48786         * lib/sys_time_.h: Likewise.
48787         * lib/sysexits_.h: Likewise.
48788         * lib/time_.h: Likewise.
48789         * lib/unistd_.h: Likewise.
48790         * lib/wchar_.h: Likewise.
48791         * lib/wctype_.h: Likewise.
48792
48793 2007-05-29  Bruno Haible  <bruno@clisp.org>
48794
48795         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48796         for the moment.
48797
48798 2007-05-29  Bruno Haible  <bruno@clisp.org>
48799
48800         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48801         invocation.
48802         Reported by Eric Blake.
48803
48804 2007-05-29  Bruno Haible  <bruno@clisp.org>
48805
48806         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48807         compiling case.
48808
48809 2007-05-29  Eric Blake  <ebb9@byu.net>
48810             Bruno Haible  <bruno@clisp.org>
48811
48812         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48813         cross compiles.
48814
48815 2007-05-28  Eric Blake  <ebb9@byu.net>
48816
48817         * modules/closein-tests (test_closein_LDADD): Support test on
48818         cygwin with libtool.
48819
48820 2007-05-28  Bruno Haible  <bruno@clisp.org>
48821
48822         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48823         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48824         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48825         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48826         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48827         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48828         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48829         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48830         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48831
48832 2007-05-28  Eric Blake  <ebb9@byu.net>
48833
48834         Unconditionally include <config.h> in unit tests.
48835         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48836         * tests/test-allocsa.c, tests/test-arcfour.c,
48837         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48838         tests/test-array_list.c, tests/test-array_oset.c,
48839         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48840         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48841         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48842         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48843         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48844         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48845         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48846         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48847         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48848         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48849         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48850         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48851         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48852         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48853         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48854         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48855         test-md5.c, test-memmem.c, test-printf-posix.c,
48856         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48857         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48858         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48859         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48860         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48861         test-vasnprintf-posix2.c, test-vasnprintf.c,
48862         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48863         test-vfprintf-posix.c, test-vprintf-posix.c,
48864         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48865         test-xvasprintf.c: Likewise.
48866
48867 2007-05-28  Bruno Haible  <bruno@clisp.org>
48868
48869         * gnulib-tool (func_import): Remember the --with-tests command-line
48870         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48871         Reported by Eric Blake.
48872
48873 2007-05-28  Bruno Haible  <bruno@clisp.org>
48874
48875         * modules/ftell-tests: New file.
48876         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48877         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48878
48879         * lib/ftell.c: New file.
48880         * modules/ftell: New file.
48881         * m4/ftell.m4: New file.
48882         * doc/functions/ftell.texi: Update.
48883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48884         REPLACE_FTELL.
48885         * lib/stdio_.h (rpl_ftell): New declaration.
48886         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48887         REPLACE_FTELL.
48888
48889 2007-05-28  Eric Blake  <ebb9@byu.net>
48890
48891         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48892
48893 2007-05-28  Bruno Haible  <bruno@clisp.org>
48894
48895         * modules/fseek-tests: New file.
48896         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48897         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48898
48899         * lib/fseek.c: New file.
48900         * modules/fseek: New file.
48901         * m4/fseek.m4: New file.
48902         * doc/functions/fseek.texi: Update.
48903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48904         REPLACE_FSEEK.
48905         * lib/stdio_.h (rpl_fseek): New declaration.
48906         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48907         REPLACE_FSEEK.
48908
48909 2007-05-28  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/stdio_.h (fflush): More comments.
48912
48913 2007-05-28  Bruno Haible  <bruno@clisp.org>
48914
48915         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48916         runtime test.
48917
48918 2007-05-28  Eric Blake  <ebb9@byu.net>
48919
48920         Improve lseek module.
48921         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48922         * lib/unistd_.h (lseek): Scale back link warning message.
48923         * tests/test-lseek.c: Beef up test.
48924         * tests/test-lseek.sh: Exercise more facets of lseek.
48925         Reported by Bruno Haible.
48926
48927 2007-05-28  Bruno Haible  <bruno@clisp.org>
48928
48929         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48930         to define.
48931
48932 2007-05-27  Bruno Haible  <bruno@clisp.org>
48933
48934         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48935
48936 2007-05-27  Bruno Haible  <bruno@clisp.org>
48937
48938         * modules/openmp: New file.
48939         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48940         Noah Misch.
48941
48942 2007-05-26  Bruno Haible  <bruno@clisp.org>
48943
48944         * modules/chdir-long (Depends-on): Add fchdir.
48945         * modules/chdir-safer (Depends-on): Likewise.
48946         * modules/fts (Depends-on): Likewise.
48947         * modules/fts-lgpl (Depends-on): Likewise.
48948         * modules/openat (Depends-on): Likewise.
48949         * modules/savewd (Depends-on): Likewise.
48950
48951 2007-05-24  Eric Blake  <ebb9@byu.net>
48952
48953         Fix lseek on mingw.
48954         * modules/lseek: New module.
48955         * m4/lseek.m4: New file.
48956         * lib/lseek.c: New file.
48957         * modules/lseek-tests: New file.
48958         * tests/test-lseek.c: New file.
48959         * tests/test-lseek.sh: New file.
48960         * MODULES.html.sh: Document lseek module.
48961         * modules/fflush (Depends-on): Add lseek, fseeko.
48962         * modules/fseeko (Depends-on): Likewise.
48963         * modules/ftello (Depends-on): Likewise.
48964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48965         broken.
48966         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48967         broken.
48968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48969         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48970         * lib/ftello.c (rpl_ftello): Likewise.
48971         * tests/test-fseeko.c (main): Test this.
48972         * tests/test-fseeko.sh: Likewise.
48973         * tests/test-ftello.c (main): Likewise.
48974         * tests/test-ftello.sh: Likewise.
48975         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48976         implies replacing fseek.
48977         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48978         HAVE_FTELLO.
48979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48980         * modules/unistd (Makefile.am): Likewise.
48981         * lib/unistd_.h (lseek): Declare a replacement.
48982         * doc/functions/lseek.texi (lseek): Document this fix.
48983         * doc/functions/fseek.texi (fseek): Likewise.
48984         * doc/functions/ftell.texi (ftell): Likewise.
48985
48986 2007-05-24  Bruno Haible  <bruno@clisp.org>
48987
48988         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48989         in the printed representation of a NaN.
48990         * tests/test-vasprintf-posix.c (test_function): Likewise.
48991         * tests/test-snprintf-posix.h (test_function): Likewise.
48992         * tests/test-sprintf-posix.h (test_function): Likewise.
48993         Reported by Eric Blake.
48994
48995 2007-05-23  Eric Blake  <ebb9@byu.net>
48996
48997         Fix fseeko/ftello on cygwin 1.5.24.
48998         * doc/functions/fseeko.texi (fseeko): Document the fix.
48999         * doc/functions/ftello.texi (ftello): Document the fix.
49000         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49001         * doc/functions/stdout.text (stdout): New file.
49002         * doc/functions/stderr.text (stderr): New file.
49003         * doc/gnulib.texi (Function Substitutes): Use new files.
49004         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49005         prior to 1.7.0.
49006         * tests/test-ftello.c (main): Likewise for ftello.
49007         * tests/test-fseeko.sh: New file.
49008         * tests/test-ftello.sh: New file.
49009         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49010         with seekable stdin.
49011         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49012         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49013         (gl_REPLACE_FSEEKO): New macro.
49014         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49015         * modules/fseeko (Files): Distribute fseeko.c.
49016         * modules/ftello (Files): Distribute ftello.c.
49017         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49018         mode.
49019         * lib/ftello.c (rpl_ftello): New file.
49020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49021         fseeko, ftello.
49022         (gl_STDIN_LARGE_OFFSET): New macro.
49023         * modules/stdio (Makefile.am): Perform the replacement.
49024         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49025
49026 2007-05-23  Bruno Haible  <bruno@clisp.org>
49027
49028         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49029         GNULIB_POSIXCHECK is defined.
49030
49031 2007-05-21  Bruno Haible  <bruno@clisp.org>
49032
49033         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49034         Check also the output for NaN arguments. When cross-compiling, guess
49035         no on IRIX.
49036         * lib/vasnprintf.c: Update comments.
49037         * tests/test-vasnprintf-posix.c (strisnan): New function.
49038         (test_function): Use it.
49039         * tests/test-vasprintf-posix.c (strisnan): New function.
49040         (test_function): Use it.
49041         * tests/test-snprintf-posix.h (strisnan): New function.
49042         (test_function): Use it.
49043         * tests/test-sprintf-posix.h (strisnan): New function.
49044         (test_function): Use it.
49045         Reported by Eric Blake.
49046
49047 2007-05-20  Bruno Haible  <bruno@clisp.org>
49048
49049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49050         numbers that fails on BeOS.
49051         * doc/functions/frexpl.texi: Update.
49052
49053 2007-05-20  Jim Meyering  <jim@meyering.net>
49054
49055         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49056         forced upon us by glibc-2.6.
49057
49058 2007-05-20  Bruno Haible  <bruno@clisp.org>
49059
49060         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49061         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49062         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49063         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49064         NEED_PRINTF_INFINITE.
49065         (is_infinitel): New function.
49066         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49068         gl_PREREQ_VASNPRINTF_INFINITE.
49069         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49071         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49072         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49073         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49074         gl_PREREQ_VASNPRINTF_INFINITE.
49075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49082         * doc/functions/fprintf.texi: Update.
49083         * doc/functions/printf.texi: Update.
49084         * doc/functions/snprintf.texi: Update.
49085         * doc/functions/sprintf.texi: Update.
49086         * doc/functions/vfprintf.texi: Update.
49087         * doc/functions/vprintf.texi: Update.
49088         * doc/functions/vsnprintf.texi: Update.
49089         * doc/functions/vsprintf.texi: Update.
49090
49091 2007-05-20  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49094         was not found in libc.
49095         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49096
49097 2007-05-20  Bruno Haible  <bruno@clisp.org>
49098
49099         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49100         printed as "-nan" instead of "nan".
49101         * tests/test-vasprintf-posix.c (test_function): Likewise.
49102         * tests/test-snprintf-posix.h (test_function): Likewise.
49103         * tests/test-sprintf-posix.h (test_function): Likewise.
49104         Needed for HP-UX 11.
49105
49106 2007-05-20  Jim Meyering  <jim@meyering.net>
49107
49108         Fix buggy test for the fchownat-deref bug.
49109         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49110         symlink required for the run-test.  Without it, this test would
49111         always declare that fchownat doesn't work, and client code would
49112         unnecessarily use the replacement function with fixed libc.
49113         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49114         Reported by Greg Schafer.
49115
49116 2007-05-19  Bruno Haible  <bruno@clisp.org>
49117
49118         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49119         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49120         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49121         Needed for IRIX 6.5 and Solaris 2.5.1.
49122
49123 2007-05-19  Bruno Haible  <bruno@clisp.org>
49124
49125         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49126         (test_function): Skip tests involving -0.0 on platforms where
49127         -0.0 = 0.0.
49128         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49129         (test_function): Skip tests involving -0.0 on platforms where
49130         -0.0 = 0.0.
49131         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49132         (test_function): Skip tests involving -0.0 on platforms where
49133         -0.0 = 0.0.
49134         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49135         (test_function): Skip tests involving -0.0 on platforms where
49136         -0.0 = 0.0.
49137         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49138         tests.
49139         * tests/test-printf-posix.h (test_function): Likewise.
49140         * tests/test-printf-posix.output: Remove all -0.0 related results.
49141         Needed for IRIX 6.5.
49142
49143 2007-05-19  Bruno Haible  <bruno@clisp.org>
49144
49145         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49146         printed as "nan0x7fffffff" instead of "nan".
49147         * tests/test-vasprintf-posix.c (test_function): Likewise.
49148         * tests/test-snprintf-posix.h (test_function): Likewise.
49149         * tests/test-sprintf-posix.h (test_function): Likewise.
49150         * tests/test-fprintf-posix.h (NaN): Remove macro.
49151         (test_function): Remove all NaN related tests.
49152         * tests/test-printf-posix.h (NaN): Remove macro.
49153         (test_function): Remove all NaN related tests.
49154         * tests/test-printf-posix.output: Remove all NaN related results.
49155         Needed for IRIX 6.5.
49156
49157 2007-05-19  Bruno Haible  <bruno@clisp.org>
49158
49159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49161
49162 2007-05-19  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/float_.h: New file.
49165         * m4/float_h.m4: New file.
49166         * modules/float: New file.
49167         * modules/isnanl (Dependencies): Add float.
49168         * modules/isnanl-nolibm (Dependencies): Likewise.
49169         * modules/mathl (Dependencies): Likewise.
49170         * modules/printf-frexpl (Dependencies): Likewise.
49171         * modules/signbit (Dependencies): Likewise.
49172         * modules/vasnprintf (Dependencies): Likewise.
49173         * doc/headers/float.texi: Update.
49174
49175 2007-05-19  Jim Meyering  <jim@meyering.net>
49176
49177         * lib/utimens.c (gl_futimens): Rename from futimens,
49178         now that glibc-2.6 declares futimens.
49179         * lib/utimens.h: Likewise.
49180
49181 2007-05-19  Bruno Haible  <bruno@clisp.org>
49182
49183         Avoid test failures on mingw.
49184         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49185         * tests/test-printf-posix.sh: Likewise.
49186         * tests/test-vfprintf-posix.sh: Likewise.
49187         * tests/test-vprintf-posix.sh: Likewise.
49188
49189 2007-05-19  Bruno Haible  <bruno@clisp.org>
49190
49191         Fix *printf result for NaN, Inf, -0.0 on mingw.
49192         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49193         * lib/vasnprintf.c: Include math.h and isnan.h.
49194         (is_infinite_or_zero): New function.
49195         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49196         values in the %f, %F, %e, %E, %g, %G directives.
49197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49199         gl_PRINTF_INFINITE and test its result. Invoke
49200         gl_PREREQ_VASNPRINTF_INFINITE.
49201         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49205         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49208         * doc/functions/fprintf.texi: Update.
49209         * doc/functions/printf.texi: Update.
49210         * doc/functions/snprintf.texi: Update.
49211         * doc/functions/sprintf.texi: Update.
49212         * doc/functions/vfprintf.texi: Update.
49213         * doc/functions/vprintf.texi: Update.
49214         * doc/functions/vsnprintf.texi: Update.
49215         * doc/functions/vsprintf.texi: Update.
49216
49217 2007-05-19  Bruno Haible  <bruno@clisp.org>
49218
49219         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49220         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49221         Instead of multiplying with 10^k, set extra_zeroes to k.
49222         (scale10_round_long_double): Remove function.
49223
49224 2007-05-18  Bruno Haible  <bruno@clisp.org>
49225
49226         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49227         introduced on 2007-05-06.
49228
49229 2007-05-18  Bruno Haible  <bruno@clisp.org>
49230
49231         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49232         %g directives.
49233         * tests/test-vasprintf-posix.c (test_function): Likewise.
49234         * tests/test-snprintf-posix.h (test_function): Likewise.
49235         * tests/test-sprintf-posix.h (test_function): Likewise.
49236
49237 2007-05-18  Bruno Haible  <bruno@clisp.org>
49238
49239         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49240         (strmatch): New function.
49241         (test_function): Test the %f directive on numbers of various exponents.
49242         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49243         (strmatch): New function.
49244         (test_function): Test the %f directive on numbers of various exponents.
49245         * tests/test-snprintf-posix.h (strmatch): New function.
49246         (test_function): Test the %f directive on numbers of various exponents.
49247         * tests/test-sprintf-posix.h (strmatch): New function.
49248         (test_function): Test the %f directive on numbers of various exponents.
49249         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49250         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49251         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49252         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49253
49254 2007-05-18  Bruno Haible  <bruno@clisp.org>
49255
49256         Add support for 'long double' number output.
49257         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49258         * lib/vasnprintf.c: Include math.h and float+.h.
49259         (mp_limb_t): New type.
49260         (GMP_LIMB_BITS): New macro.
49261         (mp_twolimb_t): New type.
49262         (GMP_TWOLIMB_BITS): New macro.
49263         (mpn_t): New type.
49264         (multiply, divide, convert_to_decimal, decode_long_double,
49265         scale10_round_long_double, scale10_round_decimal_long_double,
49266         floorlog10l): New functions.
49267         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49268         for the %f, %F, %e, %E, %g, %G directives.
49269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49271         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49272         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49280         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49281         * modules/snprintf-posix (Depends-on): Likewise.
49282         * modules/sprintf-posix (Depends-on): Likewise.
49283         * modules/vasnprintf-posix (Depends-on): Likewise.
49284         * modules/vasprintf-posix (Depends-on): Likewise.
49285         * modules/vfprintf-posix (Depends-on): Likewise.
49286         * modules/vsnprintf-posix (Depends-on): Likewise.
49287         * modules/vsprintf-posix (Depends-on): Likewise.
49288         * modules/vasnprintf (Files): Add lib/float+.h.
49289         * doc/functions/fprintf.texi: Update.
49290         * doc/functions/printf.texi: Update.
49291         * doc/functions/snprintf.texi: Update.
49292         * doc/functions/sprintf.texi: Update.
49293         * doc/functions/vfprintf.texi: Update.
49294         * doc/functions/vprintf.texi: Update.
49295         * doc/functions/vsnprintf.texi: Update.
49296         * doc/functions/vsprintf.texi: Update.
49297
49298 2007-05-18  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49301
49302 2007-05-18  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49305         for printing 64-bit integers. Needed for mingw.
49306
49307 2007-05-18  Bruno Haible  <bruno@clisp.org>
49308
49309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49310         gl_FUNC_FREXPL_WORKS.
49311         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49312
49313 2007-05-18  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/frexpl-nolibm-tests: New file.
49316
49317         * modules/frexpl-nolibm: New file.
49318         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49319
49320 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49321
49322         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49323         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49324         GCC 4.2, which otherwise issues a lot of warnings.
49325         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49326         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49327         Likewise.
49328         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49329         * modules/iconv_open (iconv.h): Likewise.
49330         * modules/locale (locale.h): Likewise.
49331         * modules/netinet_in (netinet/in.h): Likewise.
49332         * modules/sys_select (sys_select.h): Likewise.
49333         * modules/sys_socket (sys/socket.h): Likewise.
49334         * modules/sys_stat (sys/stat.h): Likewise.
49335         * modules/sysexits (sysexits.h): Likewise.
49336         * modules/unistd (unistd.h): Likewise.
49337
49338 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49339
49340         * modules/closein-tests (Makefile.am): Distribute
49341         `test-closein.sh'.
49342
49343 2007-05-17  Bruno Haible  <bruno@clisp.org>
49344
49345         * tests/test-printf-posix.output: Renamed from
49346         tests/test-fprintf-posix.out.
49347         * modules/fprintf-posix-tests: Update.
49348         * modules/printf-posix-tests: Update.
49349         * modules/vfprintf-posix-tests: Update.
49350         * modules/vprintf-posix-tests: Update.
49351         * tests/test-fprintf-posix.sh: Update.
49352         * tests/test-printf-posix.sh: Update.
49353         * tests/test-vfprintf-posix.sh: Update.
49354         * tests/test-vprintf-posix.sh: Update.
49355         Reported by Ralf Wildenhues.
49356
49357 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49358
49359         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49360         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49361         GCC 4.2, which otherwise issues a lot of warnings.
49362         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49363         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49364         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49365         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49366         it should no longer be needed.
49367         * lib/string_.h: Likewise.
49368         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49369         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49370         * modules/inttypes (inttypes.h): Likewise.
49371         * modules/math (math.h): Likewise.
49372         * modules/search (search.h): Likewise.
49373         * modules/signal (signal.h): Likewise.
49374         * modules/stdint (stdint.h): Likewise.
49375         * modules/stdio (stdio.h): Likewise.
49376         * modules/stdlib (stdlib.h): Likewise.
49377         * modules/string (string.h): Likewise.
49378         * modules/sys_time (sys/time.h): Likewise.
49379         * modules/time (time.h): Likewise.
49380         * modules/wchar (wchar.h): Likewise.
49381         * modules/wctype (wtype.h): Likewise.
49382
49383 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49384
49385         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49386
49387 2007-05-13  Bruno Haible  <bruno@clisp.org>
49388
49389         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49390         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49391         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49392         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49393         (gl_PREREQ_STRTOK_R): Don't require it here.
49394
49395 2007-05-13  Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49398         when used in C++ mode.
49399
49400 2007-05-12  Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/linebuffer.h: Tweak doc.
49403         * lib/linebuffer.c: Likewise.
49404
49405 2007-05-12  James Youngman  <jay@gnu.org>
49406
49407         * lib/linebuffer.c (readlinebuffer_delim): New function,
49408         like readlinebuffer, but use a caller-specified delimiter.
49409         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49410         as the delimiter.
49411         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49412
49413 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49414
49415         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49416         * modules/openat (Files): Remove openat-die.c.
49417         (Depends-on): Add openat-die.
49418         * modules/openat-die: New module.
49419
49420 2007-05-06  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49423         Update with info about Cygwin.
49424         * doc/functions/fprintf.texi: Update.
49425         * doc/functions/printf.texi: Update.
49426         * doc/functions/snprintf.texi: Update.
49427         * doc/functions/sprintf.texi: Update.
49428         * doc/functions/vfprintf.texi: Update.
49429         * doc/functions/vprintf.texi: Update.
49430         * doc/functions/vsnprintf.texi: Update.
49431         * doc/functions/vsprintf.texi: Update.
49432         Reported by Eric Blake.
49433
49434 2007-05-06  Bruno Haible  <bruno@clisp.org>
49435
49436         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49437         padding ourselves for the floating-point directives.
49438         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49441         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49442         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49450         * tests/test-snprintf-posix.h (test_function): Also check the width
49451         and some flags in the %f directive.
49452         * tests/test-sprintf-posix.h (test_function): Likewise.
49453         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49454         * tests/test-vasprintf-posix.c (test_function): Likewise.
49455         * doc/functions/fprintf.texi: Update.
49456         * doc/functions/printf.texi: Update.
49457         * doc/functions/snprintf.texi: Update.
49458         * doc/functions/sprintf.texi: Update.
49459         * doc/functions/vfprintf.texi: Update.
49460         * doc/functions/vprintf.texi: Update.
49461         * doc/functions/vsnprintf.texi: Update.
49462         * doc/functions/vsprintf.texi: Update.
49463
49464 2007-05-06  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49467         pass the ' flag character to sprintf or snprintf.
49468         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49471         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49472         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49480         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49481         flag.
49482         * tests/test-sprintf-posix.h (test_function): Likewise.
49483         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49484         * tests/test-vasprintf-posix.c (test_function): Likewise.
49485         * doc/functions/fprintf.texi: Update.
49486         * doc/functions/printf.texi: Update.
49487         * doc/functions/snprintf.texi: Update.
49488         * doc/functions/sprintf.texi: Update.
49489         * doc/functions/vfprintf.texi: Update.
49490         * doc/functions/vprintf.texi: Update.
49491         * doc/functions/vsnprintf.texi: Update.
49492         * doc/functions/vsprintf.texi: Update.
49493
49494 2007-05-01  Bruno Haible  <bruno@clisp.org>
49495
49496         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49497
49498 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49499
49500         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49501         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49502
49503 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49504
49505         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49506         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49508
49509 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49510
49511         * lib/argp-help.c (struct hol_entry): New member `ord'.
49512         (HOL_ENTRY_PTRCMP): Use ord for comparison
49513         (hol_sort): Initialize ord.
49514
49515 2007-05-01  Bruno Haible  <bruno@clisp.org>
49516
49517         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49518         Reported by Eric Blake.
49519         * doc/gnulib.texi (Function Substitutes): Update.
49520
49521 2007-05-01  Bruno Haible  <bruno@clisp.org>
49522
49523         * doc/functions.texi: Remove file, now redundant through
49524         doc/functions/*.texi.
49525
49526 2007-05-01  Bruno Haible  <bruno@clisp.org>
49527
49528         * modules/argp (Depends-on): Add sleep.
49529
49530 2007-05-01  Bruno Haible  <bruno@clisp.org>
49531
49532         * modules/sleep-tests: New file.
49533         * tests/test-sleep.c: New file.
49534
49535         * modules/sleep: New file.
49536         * lib/sleep.c: New file.
49537         * m4/sleep.m4: New file.
49538         * lib/unistd_.h (sleep): New declaration.
49539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49540         HAVE_SLEEP.
49541         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49542         * doc/functions/sleep.texi: Document the sleep module.
49543
49544 2007-05-01  Bruno Haible  <bruno@clisp.org>
49545
49546         * lib/sigprocmask.h: Remove file.
49547         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49548         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49549         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49550         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49551         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49552         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49553         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49554         HAVE_SIGSET_T as a shell variable.
49555         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49556         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49557         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49558         (Depends-on): Add signal. Remove verify.
49559         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49560         (Include): Mention <signal.h> instead of sigprocmask.h.
49561         * NEWS: Mention the change.
49562         * lib/fatal-signal.c: Don't include sigprocmask.h.
49563
49564 2007-05-01  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/signal: New file.
49567         * lib/signal_.h: New file.
49568         * m4/signal_h.m4: New file.
49569
49570 2007-05-01  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49573         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49574         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49575         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49576
49577 2007-05-01  Bruno Haible  <bruno@clisp.org>
49578
49579         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49580         configure time.
49581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49582         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49583         * modules/sys_stat (Makefile.am): Substitute their values into
49584         sys/stat.h.
49585
49586 2007-05-01  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49589         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49590         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49591
49592 2007-05-01  Bruno Haible  <bruno@clisp.org>
49593
49594         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49595         'assert' module here.
49596
49597 2007-05-01  Bruno Haible  <bruno@clisp.org>
49598
49599         * doc/functions/*.texi: New files.
49600         * doc/functions/google-ranking.txt: New file.
49601         * doc/gnulib.texi (Function Substitutes): New chapter.
49602         (ctime, inet_ntoa): Remove sections.
49603         * doc/ctime.texi: Remove file.
49604         * doc/inet_ntoa.texi: Remove file.
49605         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49606         dependencies.
49607         (%.info): New rule, specifying a --reference-limit.
49608
49609 2007-05-01  Bruno Haible  <bruno@clisp.org>
49610
49611         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49612
49613 2007-05-01  Bruno Haible  <bruno@clisp.org>
49614
49615         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49616         the portability of 'mkdir' to mingw systems.
49617
49618 2007-05-01  Bruno Haible  <bruno@clisp.org>
49619
49620         * doc/headers/google-ranking.txt: New file.
49621
49622 2007-04-30  Eric Blake  <ebb9@byu.net>
49623
49624         Prefer fseeko to fseek.
49625         * modules/getpass (Depends-on): Add fseeko.
49626         * lib/getpass.c (getpass): Use fseeko, not fseek.
49627
49628 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49629
49630         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49631         assumes the sorting is stable, while most qsort implementations
49632         are not.  Use argument addresses to ensure they never compare as
49633         equal.
49634
49635         * tests/test-argp-2.sh (usage-indent test): Fix output
49636         (func_compare): Restore diff options
49637         * tests/test-argp.c: Restore #include "progname.h"
49638
49639 2007-04-29  Bruno Haible  <bruno@clisp.org>
49640
49641         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49643         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49645         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49646         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49647         (TESTS, check_PROGRAMS): Add test-snprintf.
49648         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49649         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49650         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49651         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49652         assertions that fail on HP-UX, OSF/1, or IRIX.
49653         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49654
49655 2007-04-29  Bruno Haible  <bruno@clisp.org>
49656
49657         * MODULES.html.sh (posix_functions): Remove 'contents'.
49658
49659 2007-04-29  Karl Berry  <karl@gnu.org>
49660
49661         * config/srclist.txt (gendocs_template_min): new entry.
49662
49663 2007-04-29  Bruno Haible  <bruno@clisp.org>
49664
49665         Work around fpurge bug on BSD systems.
49666         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49667         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49668         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49669         fpurge to rpl_fpurge if the system already has this function.
49670         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49671         the case where the system already has this function. Correct invariants
49672         on BSD systems.
49673         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49674         BSD systems.
49675
49676 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49677
49678         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49679         proposed by Sven Verdoolaege.
49680
49681         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49682         options.
49683         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49684         (usage and help tests): Update
49685
49686 2007-04-29  Bruno Haible  <bruno@clisp.org>
49687
49688         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49689         Print more information in case of failure. Disable a test on BeOS.
49690
49691 2007-04-29  Bruno Haible  <bruno@clisp.org>
49692
49693         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49694         This helps debugging on systems on which no gdb is available.
49695
49696 2007-04-29  Bruno Haible  <bruno@clisp.org>
49697
49698         * lib/freading.h: Improve comments.
49699         * lib/fwriting.h: Likewise.
49700         * tests/test-freading.c (main): Don't check freading immediately after
49701         repositioning. Needed for glibc.
49702
49703 2007-04-29  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/freading.c (freading): Trivial simplification.
49706
49707 2007-04-28  Bruno Haible  <bruno@clisp.org>
49708
49709         * tests/test-fwriting.c (main): Also test the interaction between
49710         fflush and fwriting.
49711         * modules/fwriting-tests (Depends-on): Add fflush.
49712
49713         * tests/test-freading.c (main): Also test the interaction between
49714         fflush and freading.
49715         * modules/freading-tests (Depends-on): Add fflush.
49716
49717 2007-04-28  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49720         fseeko and ftello.
49721         Suggested by Eric Blake.
49722
49723 2007-04-28  Jim Meyering  <jim@meyering.net>
49724
49725         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49726         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49727         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49728
49729 2007-04-27  Eric Blake  <ebb9@byu.net>
49730
49731         * doc/headers/assert.texi (assert.h): Document assert module use.
49732
49733 2007-04-27  Bruno Haible  <bruno@clisp.org>
49734
49735         * doc/headers/*.texi: New files.
49736         * doc/gnulib.texi (Header File Substitutes): New chapter.
49737         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49738         dependencies.
49739         (standards.info ,standards.html, standards.dvi): Update dependencies.
49740         (mostlyclean, clean): New targets.
49741
49742 2007-04-27  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49745         * modules/sysexits (Files, Makefile.am): Update.
49746
49747         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49748         * modules/sys_socket (Files, Makefile.am): Update.
49749
49750         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49751         * modules/sys_stat (Files, Makefile.am): Update.
49752
49753 2007-04-27  Eric Blake  <ebb9@byu.net>
49754
49755         * lib/freading.h: Improve comments.
49756         * lib/fwriting.h: Likewise.
49757         * lib/fflush.c: Likewise.
49758
49759         Fix closein for mingw.
49760         * modules/closein-tests: Add tests for closein.
49761         * tests/test-closein.c: New file.
49762         * tests/test-closein.sh: Likewise.
49763         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49764         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49765
49766 2007-04-27  Bruno Haible  <bruno@clisp.org>
49767
49768         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49769         version is < 6.
49770         * lib/math_.h [__DECC]: Likewise.
49771         * lib/stdio_.h [__DECC]: Likewise.
49772         * lib/stdlib_.h [__DECC]: Likewise.
49773         * lib/string_.h [__DECC]: Likewise.
49774         * lib/time_.h [__DECC]: Likewise.
49775         * lib/wchar_.h [__DECC]: Likewise.
49776         * lib/wctype_.h [__DECC]: Likewise.
49777
49778 2007-04-27  Bruno Haible  <bruno@clisp.org>
49779
49780         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49781
49782 2007-04-27  Bruno Haible  <bruno@clisp.org>
49783
49784         * lib/fflush.c: Add comments.
49785         * modules/fpurge-tests (Depends-on): Add fflush.
49786         * modules/freadable-tests (Depends-on): Likewise.
49787         * modules/fwritable-tests (Depends-on): Likewise.
49788
49789 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49790
49791         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49792         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49793         Report by Bruno Haible <bruno@clisp.org>.
49794
49795 2007-04-26  Eric Blake  <ebb9@byu.net>
49796
49797         Fix fflush on mingw.
49798         * modules/fflush (Depends-on): Add freading.
49799         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49800         but unread data.
49801
49802 2007-04-26  Eric Blake  <ebb9@byu.net>
49803         and Bruno Haible  <bruno@clisp.org>
49804
49805         Implement freading and fwriting.
49806         * lib/freading.c: New file.
49807         * lib/freading.h: Likewise.
49808         * m4/freading.m4: Likewise.
49809         * modules/freading: Likewise.
49810         * modules/freading-tests: Likewise.
49811         * tests/test-freading.c: Likewise.
49812         * lib/fwriting.c: New file.
49813         * lib/fwriting.h: Likewise.
49814         * m4/fwriting.m4: Likewise.
49815         * modules/fwriting: Likewise.
49816         * modules/fwriting-tests: Likewise.
49817         * tests/test-fwriting.c: Likewise.
49818         * MODULES.html.sh (File stream based Input/Output): Mention them.
49819
49820 2007-04-26  Bruno Haible  <bruno@clisp.org>
49821
49822         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49823         'long' when we assume it.
49824         Suggested by Eric Blake.
49825
49826 2007-04-26  Bruno Haible  <bruno@clisp.org>
49827
49828         Ensure fseeko, ftello are declared on glibc systems.
49829         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49830         * modules/fseeko (configure.ac-early): Likewise.
49831         * modules/ftello (configure.ac-early): Likewise.
49832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49833         AC_FUNC_FSEEKO for this.
49834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49835         (gl_CHECK_FSEEKO): Remove macro.
49836
49837 2007-04-26  Bruno Haible  <bruno@clisp.org>
49838
49839         * tests/test-fflush.c (main): Also check the ftell result after
49840         fflush and fseek/fseeko.
49841         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49842         file descriptor position cache in the stream.
49843         * lib/fseeko.c (rpl_fseeko): Likewise.
49844
49845 2007-04-26  Bruno Haible  <bruno@clisp.org>
49846
49847         * modules/fflush-tests (Depends-on): Add fseeko.
49848
49849 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49850             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49851
49852         * lib/argz_.h: ensure error_t definition is obtained in same
49853         mechanism system argz.h would have.
49854         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49855         argz facilities are known bad.  Err on the side of caution if
49856         cross-compiling.
49857
49858 2007-04-25  Eric Blake  <ebb9@byu.net>
49859
49860         * lib/fpurge.c (includes): Use stdlib.h for free.
49861         * tests/test-fflush.c (main): Also test fflush-fseeko.
49862
49863 2007-04-25  Bruno Haible  <bruno@clisp.org>
49864
49865         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49866         * lib/fseeko.c: New file.
49867         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49868         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49869         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49870         gl_FUNC_FSEEKO.
49871         (gl_FUNC_FSEEKO): Invoke it.
49872         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49873         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49874         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49875
49876 2007-04-25  Bruno Haible  <bruno@clisp.org>
49877
49878         * modules/fflush (Depends-on): Add ftello.
49879
49880 2007-04-25  Bruno Haible  <bruno@clisp.org>
49881
49882         * modules/ftello-tests: New file.
49883         * tests/test-ftello.c: New file.
49884
49885         * modules/ftello: New file.
49886         * m4/ftello.m4: New file.
49887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49888         HAVE_FTELLO.
49889         * lib/stdio_.h (ftello): New declaration.
49890         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49891         HAVE_FTELLO.
49892
49893 2007-04-25  Bruno Haible  <bruno@clisp.org>
49894
49895         * modules/fseeko-tests: New file.
49896         * tests/test-fseeko.c: New file.
49897
49898         * modules/fseeko: New file.
49899         * m4/fseeko.m4: New file.
49900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49901         HAVE_FSEEKO.
49902         * lib/stdio_.h (fseeko): New declaration.
49903         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49904         HAVE_FSEEKO.
49905
49906 2007-04-25  Bruno Haible  <bruno@clisp.org>
49907
49908         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49909
49910 2007-04-25  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49913         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49914         * tests/test-unistd.c: Likewise.
49915         * tests/test-fcntl.c: Likewise.
49916
49917 2007-04-23  Eric Blake  <ebb9@byu.net>
49918
49919         * lib/fflush.c: Fix missing include.
49920         Reported by Bruno Haible.
49921
49922 2007-04-23  Bruno Haible  <bruno@clisp.org>
49923
49924         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49925         Reported by Eric Blake.
49926
49927 2007-04-23  Bruno Haible  <bruno@clisp.org>
49928
49929         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49930
49931 2007-04-23  Bruno Haible  <bruno@clisp.org>
49932
49933         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49934
49935 2007-04-23  Bruno Haible  <bruno@clisp.org>
49936
49937         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49938         Needed on HP-UX 11.
49939
49940 2007-04-16  Eric Blake  <ebb9@byu.net>
49941
49942         Make fflush rely on fpurge.
49943         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49944         open coding all variants.
49945         * modules/fflush (Depends-on): Add fpurge and unistd.
49946         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49947         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49948
49949         Fix --with-tests compilation on cygwin.
49950         * modules/argmatch-tests (Makefile.am): List gnulib library first
49951         in LDADD.
49952         * modules/argp-tests (Makefile.am): Likewise.
49953         * modules/array-list-tests (Makefile.am): Likewise.
49954         * modules/array-oset-tests (Makefile.am): Likewise.
49955         * modules/avltree-list-tests (Makefile.am): Likewise.
49956         * modules/avltree-oset-tests (Makefile.am): Likewise.
49957         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49958         * modules/carray-list-tests (Makefile.am): Likewise.
49959         * modules/dirname-tests (Makefile.am): Likewise.
49960         * modules/frexp-tests (Makefile.am): Likewise.
49961         * modules/isnanl-tests (Makefile.am): Likewise.
49962         * modules/linked-list-tests (Makefile.am): Likewise.
49963         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49964         * modules/lock-tests (Makefile.am): Likewise.
49965         * modules/rbtree-list-tests (Makefile.am): Likewise.
49966         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49967         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49968         * modules/tls-tests (Makefile.am): Likewise.
49969         * modules/tsearch-tests (Makefile.am): Likewise.
49970         * modules/xvasprintf-tests (Makefile.am): Likewise.
49971
49972         Fix fpurge for cygwin.
49973         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49974         value.
49975         * modules/fpurge-tests (Depends-on): Clean up trash.
49976
49977 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49978
49979         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49980
49981         * m4/autobuild.m4: Re-indent.
49982
49983 2007-04-13  Bruno Haible  <bruno@clisp.org>
49984
49985         * modules/fpurge-tests: New file.
49986         * tests/test-fpurge.c: New file.
49987
49988         * modules/fpurge: New file.
49989         * lib/fpurge.h: New file.
49990         * lib/fpurge.c: New file.
49991         * m4/fpurge.m4: New file.
49992
49993 2007-04-13  Bruno Haible  <bruno@clisp.org>
49994
49995         * modules/fbufmode-tests: New file.
49996         * tests/test-fbufmode.c: New file.
49997
49998         * modules/fbufmode: New file.
49999         * lib/fbufmode.h: New file.
50000         * lib/fbufmode.c: New file.
50001         * m4/fbufmode.m4: New file.
50002
50003 2007-04-13  Bruno Haible  <bruno@clisp.org>
50004
50005         * modules/fwritable-tests: New file.
50006         * tests/test-fwritable.c: New file.
50007
50008         * modules/fwritable: New file.
50009         * lib/fwritable.h: New file.
50010         * lib/fwritable.c: New file.
50011         * m4/fwritable.m4: New file.
50012
50013 2007-04-13  Bruno Haible  <bruno@clisp.org>
50014
50015         * modules/freadable-tests: New file.
50016         * tests/test-freadable.c: New file.
50017
50018         * modules/freadable: New file.
50019         * lib/freadable.h: New file.
50020         * lib/freadable.c: New file.
50021         * m4/freadable.m4: New file.
50022
50023 2007-04-13  Bruno Haible  <bruno@clisp.org>
50024
50025         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50026         MOSTLYCLEANFILES.
50027
50028 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50029
50030         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50031         gzip bootstrap.conf to avoid dragging in i18n machinery.
50032         (gnulib_tool_option): Use it.
50033
50034 2007-04-13  Bruno Haible  <bruno@clisp.org>
50035
50036         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50037         %F directives.
50038         * tests/test-vasprintf-posix.c (test_function): Likewise.
50039         * tests/test-snprintf-posix.h (test_function): Likewise.
50040         * tests/test-sprintf-posix.h (test_function): Likewise.
50041         * tests/test-fprintf-posix.h (test_function): Likewise.
50042         * tests/test-printf-posix.h (test_function): Likewise.
50043         * tests/test-fprintf-posix.out: Likewise.
50044
50045 2007-04-13  Bruno Haible  <bruno@clisp.org>
50046
50047         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50048         * modules/tls-tests (configure.ac): Likewise.
50049         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50050
50051 2007-04-13  Bruno Haible  <bruno@clisp.org>
50052
50053         * lib/tls.c (glthread_tls_get): Fix return type.
50054         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50055
50056 2007-04-12  Eric Blake  <ebb9@byu.net>
50057
50058         * modules/gettime (Depends-on): Remove gettime.
50059         Reported by Dmitry V. Levin.
50060
50061 2007-04-12  Bruno Haible  <bruno@clisp.org>
50062
50063         * modules/fflush (Include): Mention <stdio.h>.
50064         * modules/strtoimax (Include): Mention <inttypes.h>.
50065         * modules/strtoumax (Include): Likewise.
50066
50067 2007-04-12  Eric Blake  <ebb9@byu.net>
50068
50069         * .cvsignore: New file.
50070         * .gitignore: Likewise.
50071
50072 2007-04-12  Bruno Haible  <bruno@clisp.org>
50073
50074         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50075         not before, since $(LDADD) often contains libgnu.a.
50076         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50077         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50078         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50079         Needed on Cygwin.
50080
50081 2007-04-12  Eric Blake  <ebb9@byu.net>
50082
50083         Work around glibc's failure to flush stdin on fclose.
50084         * lib/closein.c (close_stdin): Flush stdin before closing.
50085
50086         Work around glibc's failure to reset seekable stdin on exit.
50087         * modules/closein: New module.
50088         * lib/closein.c: New file.
50089         * lib/closein.h: Likewise.
50090         * m4/closein.m4: Likewise.
50091         * MODULES.html.sh (File stream based Input/Output): Document it.
50092
50093 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50094
50095         * gnulib-tool: Rename generated 'autobuild' script to
50096         'do-autobuild' in --create-megatestdir output.
50097
50098         * doc/gnulib.texi (Build robot for gnulib): Fix.
50099
50100 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50101
50102         * modules/sysexits (Depends-on): Add absolute-header.
50103
50104 2007-04-12  Eric Blake  <ebb9@byu.net>
50105
50106         No need to preserve errno on success.
50107         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50108         Reported by Bruno Haible.
50109
50110 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50111
50112         * MODULES.html.sh (Support for maintaining and releasing
50113         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50114
50115 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50116
50117         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50118
50119 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50120
50121         * modules/autobuild: New module.
50122
50123         * m4/autobuild.m4: New file.
50124
50125 2007-04-11  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50128         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50132         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50133         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50135         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50136         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50155         Reported by Eric Blake.
50156
50157 2007-04-11  Bruno Haible  <bruno@clisp.org>
50158
50159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50160
50161 2007-04-10  Bruno Haible  <bruno@clisp.org>
50162
50163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50164         for NaN and Infinity. Needed on FreeBSD 6.1.
50165         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50166         regarding results for "%010a" of Infinity and NaN.
50167         * tests/test-vasprintf-posix.c (test_function): Likewise.
50168         * tests/test-snprintf-posix.h (test_function): Likewise.
50169         * tests/test-sprintf-posix.h (test_function): Likewise.
50170         * tests/test-fprintf-posix.h (test_function): Likewise.
50171         * tests/test-printf-posix.h (test_function): Likewise.
50172         * tests/test-fprintf-posix.out: Likewise.
50173
50174 2007-04-10  Bruno Haible  <bruno@clisp.org>
50175
50176         * modules/locale-tests: New file.
50177         * tests/test-locale.c: New file.
50178
50179         * modules/locale: New file.
50180         * lib/locale_.h: New file.
50181         * m4/locale_h.m4: New file.
50182
50183 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50184             Bruno Haible  <bruno@clisp.org>
50185
50186         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50187         be determined, test for availability of the copysignf, copysign,
50188         copysignl functions.
50189         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50190         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50191         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50192
50193 2007-04-09  Eric Blake  <ebb9@byu.net>
50194
50195         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50196         * modules/stdio (Makefile.am): Support fflush.
50197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50198         * modules/fflush: New file.
50199         * lib/fflush.c: Likewise.
50200         * m4/fflush.m4: Likewise.
50201         * modules/fflush-tests: New test.
50202         * tests/test-fflush.c: Likewise.
50203         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50204
50205 2007-04-06  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50208         (VASNPRINTF): Use signbit for faster determination whether to print a
50209         minus sign.
50210         * modules/vasnprintf (Files): Remove lib/float+.h.
50211         * modules/fprintf-posix (Depends-on): Add signbit.
50212         * modules/snprintf-posix (Depends-on): Likewise.
50213         * modules/sprintf-posix (Depends-on): Likewise.
50214         * modules/vasnprintf-posix (Depends-on): Likewise.
50215         * modules/vasprintf-posix (Depends-on): Likewise.
50216         * modules/vfprintf-posix (Depends-on): Likewise.
50217         * modules/vsnprintf-posix (Depends-on): Likewise.
50218         * modules/vsprintf-posix (Depends-on): Likewise.
50219
50220 2007-04-06  Bruno Haible  <bruno@clisp.org>
50221
50222         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50223         * tests/test-frexpl.c (main): Likewise.
50224         * tests/test-ldexpl.c (main): Likewise.
50225         * modules/frexp-tests (Depends-on): Add signbit.
50226         * modules/frexpl-tests (Depdends-on): Likewise.
50227         * modules/ldexpl-tests (Depdends-on): Likewise.
50228
50229 2007-04-06  Bruno Haible  <bruno@clisp.org>
50230
50231         * modules/signbit-tests: New file.
50232         * tests/test-signbit.c: New file.
50233
50234         * modules/signbit: New file.
50235         * lib/signbitf.c: New file.
50236         * lib/signbitd.c: New file.
50237         * lib/signbitl.c: New file.
50238         * m4/signbit.m4: New file.
50239         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50240         (signbit): New macro.
50241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50242         REPLACE_SIGNBIT.
50243         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50244         REPLACE_FREXPL into math.h.
50245
50246 2007-04-06  Bruno Haible  <bruno@clisp.org>
50247
50248         * modules/isnanf-nolibm-tests: New file.
50249         * tests/test-isnanf.c: New file.
50250
50251         * modules/isnanf-nolibm: New file.
50252         * lib/isnanf.h: New file.
50253         * lib/isnanf.c: New file.
50254         * lib/isnan.c: Consider the USE_FLOAT macro.
50255         * m4/isnanf.m4: New file.
50256
50257 2007-04-06  Bruno Haible  <bruno@clisp.org>
50258
50259         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50260         (Link): New section.
50261
50262         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50263
50264 2007-04-06  Bruno Haible  <bruno@clisp.org>
50265
50266         Assume the 'long double' type.
50267         * m4/longdouble.m4: Remove file.
50268         * config/srclist.txt: Don't mention longdouble.m4.
50269         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50270         * lib/float+.h: Likewise.
50271         * lib/frexp.c: Likewise.
50272         * lib/printf-args.h: Likewise.
50273         * lib/printf-args.c: Likewise.
50274         * lib/printf-frexp.c: Likewise.
50275         * lib/printf-parse.c: Likewise.
50276         * lib/vasnprintf.c: Likewise.
50277         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50278         * m4/intl.m4: Likewise.
50279         * m4/isnanl.m4: Likewise.
50280         * m4/printf.m4: Likewise.
50281         * m4/printf-frexpl.m4: Likewise.
50282         * m4/vasnprintf.m4: Likewise.
50283         * modules/allocsa (Files): Remove m4/longdouble.m4.
50284         * modules/gettext (Files): Likewise.
50285         * modules/relocatable-prog-wrapper (Files): Likewise.
50286         * modules/vasnprintf (Files): Likewise.
50287         * modules/isnanl (Files): Likewise.
50288         (Include): Simplify.
50289         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50290         (Include): Simplify.
50291         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50292         (Include): Simplify.
50293         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50294         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50295         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50296         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50297         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50298         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50299         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50300         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50301         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50302         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50303         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50304         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50305         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50306         * tests/test-isnanl.c: Likewise.
50307         * tests/test-snprintf-posix.h: Likewise.
50308         * tests/test-sprintf-posix.h: Likewise.
50309         * tests/test-vasnprintf-posix.c: Likewise.
50310         * tests/test-vasnprintf-posix2.c: Likewise.
50311         * tests/test-vasprintf-posix.c: Likewise.
50312
50313 2007-04-06  Bruno Haible  <bruno@clisp.org>
50314
50315         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50316         * lib/math_.h [__DECC]: Include the overridden include file through
50317         #include_next, outside the double-inclusion guard.
50318         * lib/stdio_.h [__DECC]: Likewise.
50319         * lib/stdlib_.h [__DECC]: Likewise.
50320         * lib/string_.h [__DECC]: Likewise.
50321         * lib/time_.h [__DECC]: Likewise.
50322         * lib/wchar_.h [__DECC]: Likewise.
50323         * lib/wctype_.h [__DECC]: Likewise.
50324         * lib/inttypes_.h [__DECC]: Likewise.
50325         Reported by Albert Chin <china@thewrittenword.com> in
50326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50327
50328 2007-04-04  Eric Blake  <ebb9@byu.net>
50329
50330         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50331         1.5.x.
50332
50333 2007-04-04  Bruno Haible  <bruno@clisp.org>
50334
50335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50336         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50337
50338 2007-04-04  Bruno Haible  <bruno@clisp.org>
50339
50340         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50341         results for "%010a" of Infinity and NaN.
50342         * tests/test-vasprintf-posix.c (test_function): Likewise.
50343         * tests/test-snprintf-posix.h (test_function): Likewise.
50344         * tests/test-sprintf-posix.h (test_function): Likewise.
50345         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50346         * tests/test-printf-posix.h (test_function): Likewise.
50347         * tests/test-fprintf-posix.out: Update.
50348         Needed for FreeBSD 6.1.
50349
50350 2007-04-04  Bruno Haible  <bruno@clisp.org>
50351
50352         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50353         directly used by the gnulib modules nor by gnulib-tool.
50354
50355 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50356
50357         * DEPENDENCIES: Give overall description of version dependency
50358         desirability.  Use more-typical names for apps.
50359         Add shell, coreutils, diffutils, grep, tar, gzip.
50360
50361 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50362
50363         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50364
50365 2007-04-04  Karl Berry  <karl@gnu.org>
50366
50367         * MODULES.html.sh (func_module): missing '.
50368
50369 2007-04-03  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/argmatch-tests (Makefile.am): New variable
50372         test_argmatch_LDADD.
50373         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50374         * modules/array-list-tests (Makefile.am): New variable
50375         test_array_list_LDADD.
50376         * modules/array-oset-tests (Makefile.am): New variable
50377         test_array_oset_LDADD.
50378         * modules/avltree-list-tests (Makefile.am): New variable
50379         test_avltree_list_LDADD.
50380         * modules/avltree-oset-tests (Makefile.am): New variable
50381         test_avltree_oset_LDADD.
50382         * modules/avltreehash-list-tests (Makefile.am): New variable
50383         test_avltreehash_list_LDADD.
50384         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50385         test_canonicalize_lgpl_LDADD.
50386         * modules/carray-list-tests (Makefile.am): New variable
50387         test_carray_list_LDADD.
50388         * modules/dirname-tests (Makefile.am): New variable
50389         test_dirname_LDADD.
50390         * modules/linked-list-tests (Makefile.am): New variable
50391         test_linked_list_LDADD.
50392         * modules/linkedhash-list-tests (Makefile.am): New variable
50393         test_linkedhash_list_LDADD.
50394         * modules/rbtree-list-tests (Makefile.am): New variable
50395         test_rbtree_list_LDADD.
50396         * modules/rbtree-oset-tests (Makefile.am): New variable
50397         test_rbtree_oset_LDADD.
50398         * modules/rbtreehash-list-tests (Makefile.am): New variable
50399         test_rbtreehash_list_LDADD.
50400         * modules/xvasprintf-tests (Makefile.am): New variable
50401         test_xvasprintf_LDADD.
50402         Reported by Eric Blake.
50403
50404 2007-04-03  Eric Blake  <ebb9@byu.net>
50405
50406         * DEPENDENCIES: Weaken m4 requirements.
50407
50408 2007-04-03  Bruno Haible  <bruno@clisp.org>
50409
50410         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50411         * modules/isnanl-tests (configure.ac): Likewise.
50412
50413 2007-04-03  Ben Pfaff  <blp@gnu.org>
50414
50415         * modules/iconv_open: Add $(srcdir)/ to source directory
50416         references in Makefile fragments that call gperf, to fix VPATH
50417         builds.
50418
50419 2007-04-03  Bruno Haible  <bruno@clisp.org>
50420
50421         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50422         * lib/ldexpl.c: Undo last change.
50423
50424 2007-04-03  Bruno Haible  <bruno@clisp.org>
50425
50426         * modules/printf-frexpl (Depends-on): Undo last change.
50427         (Files): Add m4/ldexpl.m4.
50428
50429 2007-04-03  Bruno Haible  <bruno@clisp.org>
50430
50431         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50432         * modules/isnanl (Link): New section.
50433
50434         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50435         * modules/frexp (Link): New section.
50436
50437         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50438         * modules/frexpl (Link): New section.
50439
50440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50441         * modules/ldexpl (Link): New section.
50442
50443 2007-04-03  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/TEMPLATE-EXTENDED: New file.
50446         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50447
50448 2007-04-03  Bruno Haible  <bruno@clisp.org>
50449
50450         * DEPENDENCIES: New file.
50451         Suggested by Simon Josefsson.
50452
50453 2007-04-03  Bruno Haible  <bruno@clisp.org>
50454
50455         * doc/gnulib.texi: Escape @.
50456
50457 2007-04-03  James Youngman  <jay@gnu.org>
50458         and Paul Eggert  <eggert@cs.ucla.edu>
50459
50460         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50461         birthtime on all systems that have birthtime, not just those which
50462         use st_birthtimensec rather than st_birthtim.  Putting zero in
50463         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50464         that the birth time is not available for files on an NFS mount.
50465
50466 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50467
50468         * modules/memxor: Move back from crypto/, suggested by Bruno.
50469         * modules/crypto/hmac-sha1: Fix memxor dependency.
50470
50471         * modules/crypto/gc: Moved from ../.
50472
50473 2007-04-02  Eric Blake  <ebb9@byu.net>
50474
50475         * lib/ldexpl.c (includes): Avoid libm.
50476
50477         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50478
50479 2007-04-02  Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50482         on IRIX.
50483
50484 2007-04-02  Bruno Haible  <bruno@clisp.org>
50485
50486         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50487         x86 or x86_64 platforms running MacOS X.
50488         Reported by Ryan Schmidt <@ryandesign.com>.
50489
50490 2007-04-02  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50493         i386.
50494
50495 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50496
50497         * modules/crypto/arcfour: Moved from ../.
50498         * modules/crypto/arcfour-tests: Moved from ../.
50499         * modules/crypto/arctwo: Moved from ../.
50500         * modules/crypto/arctwo-tests: Moved from ../.
50501         * modules/crypto/des: Moved from ../.
50502         * modules/crypto/des-tests: Moved from ../.
50503         * modules/crypto/gc-arcfour: Moved from ../.
50504         * modules/crypto/gc-arcfour-tests: Moved from ../.
50505         * modules/crypto/gc-arctwo: Moved from ../.
50506         * modules/crypto/gc-arctwo-tests: Moved from ../.
50507         * modules/crypto/gc-des: Moved from ../.
50508         * modules/crypto/gc-des-tests: Moved from ../.
50509         * modules/crypto/gc-hmac-md5: Moved from ../.
50510         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50511         * modules/crypto/gc-hmac-sha1: Moved from ../.
50512         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50513         * modules/crypto/gc-md2: Moved from ../.
50514         * modules/crypto/gc-md2-tests: Moved from ../.
50515         * modules/crypto/gc-md4: Moved from ../.
50516         * modules/crypto/gc-md4-tests: Moved from ../.
50517         * modules/crypto/gc-md5: Moved from ../.
50518         * modules/crypto/gc-md5-tests: Moved from ../.
50519         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50520         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50521         * modules/crypto/gc-random: Moved from ../.
50522         * modules/crypto/gc-rijndael: Moved from ../.
50523         * modules/crypto/gc-rijndael-tests: Moved from ../.
50524         * modules/crypto/gc-sha1: Moved from ../.
50525         * modules/crypto/gc-sha1-tests: Moved from ../.
50526         * modules/crypto/gc-tests: Moved from ../.
50527         * modules/crypto/hmac-md5: Moved from ../.
50528         * modules/crypto/hmac-md5-tests: Moved from ../.
50529         * modules/crypto/hmac-sha1: Moved from ../.
50530         * modules/crypto/hmac-sha1-tests: Moved from ../.
50531         * modules/crypto/md2: Moved from ../.
50532         * modules/crypto/md2-tests: Moved from ../.
50533         * modules/crypto/md4: Moved from ../.
50534         * modules/crypto/md4-tests: Moved from ../.
50535         * modules/crypto/md5: Moved from ../.
50536         * modules/crypto/md5-tests: Moved from ../.
50537         * modules/crypto/memxor: Moved from ../.
50538         * modules/crypto/rijndael: Moved from ../.
50539         * modules/crypto/rijndael-tests: Moved from ../.
50540         * modules/crypto/sha1: Moved from ../.
50541
50542 2007-03-30  James Youngman  <jay@gnu.org>
50543
50544         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50545         rename() to change the ctime of a file (because ctime is unaffected
50546         by rename on jfs2 on AIX 5.1).
50547         (main): Start by doing cleanup, in case a previous run failed leaving
50548         test files behind.
50549
50550 2007-03-31  Bruno Haible  <bruno@clisp.org>
50551
50552         Support old proprietary implementations of iconv.
50553         * modules/iconv_open: New file.
50554         * lib/iconv_.h: New file.
50555         * m4/iconv_h.m4: New file.
50556         * lib/iconv_open.c: New file.
50557         * lib/iconv_open-aix.gperf: New file.
50558         * lib/iconv_open-hpux.gperf: New file.
50559         * lib/iconv_open-irix.gperf: New file.
50560         * lib/iconv_open-osf.gperf: New file.
50561         * m4/iconv_open.m4: New file.
50562         * modules/linebreak (Depends-on): Add iconv_open.
50563         * modules/striconv (Depends-on): Likewise.
50564         * modules/striconveh (Depends-on): Likewise.
50565         * modules/unicodeio (Depends-on): Likewise.
50566         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50567         (iconv_t)(-1).
50568         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50569         conversion if cd is (iconv_t)(-1).
50570         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50571         is not possible.
50572
50573 2007-03-31  Bruno Haible  <bruno@clisp.org>
50574
50575         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50576         work on Solaris either. Protect also second use of "autodetect_jp".
50577
50578 2007-03-31  Bruno Haible  <bruno@clisp.org>
50579
50580         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50581         the function is not present.
50582
50583 2007-03-31  Bruno Haible  <bruno@clisp.org>
50584
50585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50586         the function is not present.
50587
50588 2007-03-31  Bruno Haible  <bruno@clisp.org>
50589
50590         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50591         a bug in HP-UX iconv_open().
50592
50593 2007-03-31  Bruno Haible  <bruno@clisp.org>
50594
50595         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50596         (Mathematics <math.h>): New section, add fpieee.
50597         (Input/output <stdio.h>): Add fseterr.
50598         (Mathematics <math.h>): New section, add printf-frexp.
50599         (Container data structures): Add sublist.
50600         (Core language properties): Add fpucw, inline.
50601         (Functions for greatest-width integer types <inttypes.h>): Add
50602         imaxabs, imaxdiv, inttypes.
50603         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50604         isnanl-nolibm, ldexp.
50605         (Mathematics <math.h>): New section, add printf-frexpl.
50606         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50607         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50608         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50609         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50610         (Unicode string functions): Add unistr/u*-mbtoucr.
50611         (Java): Add javacomp-script, javaexec-script.
50612         (C#): Add csharpcomp-script, csharpexec-script.
50613         (Support for building libraries and executables): Add havelib,
50614         relocatable-*.
50615         (Support for maintaining and releasing projects): Renamed from
50616         'Support for maintaining and release projects'. Add announce-gen.
50617
50618 2007-03-31  Bruno Haible  <bruno@clisp.org>
50619
50620         * README: Talk primarily about git.
50621         (git and CVS): Renamed from CVS.
50622         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50623         gnulib is available through git.
50624         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50625
50626 2007-03-30  Bruno Haible  <bruno@clisp.org>
50627
50628         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50629         * lib/poll_.h: Likewise.
50630         * lib/stat_.h: Likewise.
50631         * lib/sys_time_.h: Likewise.
50632         * lib/sysexit_.h: Likewise.
50633         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50634         * lib/stdbool_.h: Likewise.
50635         * lib/byteswap_.h: Add double-inclusion guard.
50636
50637 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50638
50639         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50640
50641 2007-03-30  Karl Berry  <karl@gnu.org>
50642
50643         * config/srclist-update: double space after USA in the license
50644         substitution, since that's how it's usually (?) written.
50645
50646 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50647
50648         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50649         reported by Bruno Haible.
50650
50651 2007-03-29  Bruno Haible  <bruno@clisp.org>
50652
50653         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50654         a bug in AIX iconv().
50655
50656 2007-03-29  Bruno Haible  <bruno@clisp.org>
50657
50658         * modules/ldexpl-tests: New file.
50659         * tests/test-ldexpl.c: New file.
50660
50661 2007-03-29  Bruno Haible  <bruno@clisp.org>
50662
50663         * lib/ldexpl.c: Include fpucw.h.
50664         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50665         multiplication.
50666         * modules/ldexpl (Depends-on): Add fpucw.
50667
50668 2007-03-29  Bruno Haible  <bruno@clisp.org>
50669
50670         * modules/ldexpl: New file.
50671         * m4/ldexpl.m4: New file.
50672         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50673         set.
50674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50675         REPLACE_LDEXPL.
50676         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50677         REPLACE_LDEXPL.
50678         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50679         gl_FUNC_LDEXPL_WORKS.
50680         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50681         * modules/mathl (Files): Remove lib/ldexpl.c.
50682         (Depends-on): Add ldexpl.
50683
50684 2007-03-29  Bruno Haible  <bruno@clisp.org>
50685
50686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50687
50688 2007-03-29  Bruno Haible  <bruno@clisp.org>
50689
50690         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50691         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50692         and possibly also HP-UX.
50693         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50694         work on AIX, IRIX, HP-UX, OSF/1.
50695         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50696         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50697         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50698         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50699         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50700         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50701
50702 2007-03-29  Bruno Haible  <bruno@clisp.org>
50703
50704         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50705
50706 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50707
50708         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50709         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50710
50711 2007-03-29  Eric Blake  <ebb9@byu.net>
50712
50713         * lib/acl-internal.h: Remove redundant include.
50714         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50715         Cygwin when a file is locked.
50716
50717 2007-03-29  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50720         file.
50721         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50722
50723 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50726         try to remove a parent directory if the child couldn't be removed
50727         (except for the first rmdir, which could fail because the child
50728         doesn't exist).  Problem reported by Jeff Blaine in
50729         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50730
50731 2007-03-28  Bruno Haible  <bruno@clisp.org>
50732
50733         * lib/striconveh.c (utf8conv_carefully): New function.
50734         (mem_cd_iconveh_internal): Invoke it.
50735
50736 2007-03-28  Bruno Haible  <bruno@clisp.org>
50737
50738         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50739         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50740         input.
50741         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50742         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50743         unistr/u8-uctomb.
50744
50745 2007-03-28  Bruno Haible  <bruno@clisp.org>
50746
50747         * modules/unistr/u8-mbtoucr: New file.
50748         * lib/unistr/u8-mbtoucr.c: New file.
50749         * modules/unistr/u16-mbtoucr: New file.
50750         * lib/unistr/u16-mbtoucr.c: New file.
50751         * modules/unistr/u16-mbtoucr: New file.
50752         * lib/unistr/u16-mbtoucr.c: New file.
50753         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50754
50755 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50756             Bruno Haible  <bruno@clisp.org>
50757
50758         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50759         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50760         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50761
50762         * m4/stdio_h.m4: Add stubs for vasprintf too.
50763
50764         * modules/stdio: Support vasprintf in sed command.
50765
50766         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50767         vasprintf.h.  Add stdio module indicator.
50768
50769         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50770         vasprintf.h.
50771
50772         * lib/vasprintf.h: File removed.
50773
50774         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50775         * lib/vasprintf.c: Ditto.
50776         * lib/xvasprintf.c: Ditto.
50777         * tests/test-vasprintf-posix.c: Ditto.
50778         * tests/test-vasprintf.c: Ditto.
50779
50780 2007-03-27  Bruno Haible  <bruno@clisp.org>
50781
50782         Make vasnprintf multithread-safe.
50783         * lib/vasnprintf.c (decimal_point_char): New function.
50784         (VASNPRINTF): Use it.
50785         Suggested by Simon Josefsson.
50786
50787 2007-03-27  Eric Blake  <ebb9@byu.net>
50788
50789         Support sub-second birthtime on cygwin.
50790         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50791         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50792         (get_stat_birthtime): Also work with st_birthtim.
50793
50794 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50795
50796         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50797         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50798         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50799         (get_stat_birthtime_ns): Simplify compile-time tests.
50800         (get_stat_birthtime): Change the API to look like
50801         get_stat_mtime etc., except return a negative tv_nsec on error.
50802         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50803         Don't check for "spare" fields.
50804         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50805         or for struct stat.st_birthtime, as these tests aren't used.
50806         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50807
50808 2007-03-27  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/stat-time.h: Include <sys/stat.h>.
50811
50812 2007-03-27  James Youngman  <jay@gnu.org>
50813
50814         * lib/stat-time.h (get_stat_birthtime): New function for
50815           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50816         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50817           and its variants.
50818         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50819         * modules/stat-time-test: New file.
50820         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50821
50822 2007-03-26  Bruno Haible  <bruno@clisp.org>
50823
50824         Better support of signalling NaNs.
50825         * lib/atanl.c: Include isnanl.h.
50826         (atanl): Perform test for NaN at the beginning of the function and
50827         through a call to isnanl.
50828         * lib/cosl.c: Include isnanl.h.
50829         (cosl): Perform test for NaN at the beginning of the function and
50830         through a call to isnanl.
50831         * lib/ldexpl.c: Include isnanl.h.
50832         (ldexpl): Perform test for NaN through a call to isnanl.
50833         * lib/logl.c: Include isnanl.h.
50834         (logl): Perform test for NaN at the beginning of the function and
50835         through a call to isnanl.
50836         * lib/sinl.c: Include isnanl.h.
50837         (sinl): Perform test for NaN at the beginning of the function and
50838         through a call to isnanl.
50839         * lib/sqrtl.c: Include isnanl.h.
50840         (sqrtl): Perform test for NaN at the beginning of the function and
50841         through a call to isnanl.
50842         * lib/tanl.c: Include isnanl.h.
50843         (tanl): Perform test for NaN at the beginning of the function and
50844         through a call to isnanl.
50845         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50846         * modules/mathl (Depends-on): Add isnanl.
50847
50848 2007-03-26  Eric Blake  <ebb9@byu.net>
50849
50850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50851         regression in logic sense of previous patch.
50852
50853 2007-03-26  Bruno Haible  <bruno@clisp.org>
50854
50855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50856         unportable shell command "if ! ...".
50857         Reported by Ralf Wildenhues.
50858
50859 2007-03-25  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50862         <sysexits.h> file, and only add EX_CONFIG.
50863         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50864         absolute file name and whether it is sufficient. Substitute also
50865         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50866         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50867         ABSOLUTE_SYSEXITS_H into sysexits.h.
50868
50869 2007-03-25  Bruno Haible  <bruno@clisp.org>
50870
50871         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50872         hints is NULL.
50873
50874 2007-03-25  Bruno Haible  <bruno@clisp.org>
50875
50876         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50877         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50878
50879 2007-03-25  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/vasnprintf.c: Include langinfo.h.
50882         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50883         multithread-safe.
50884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50893         Reported by Simon Josefsson.
50894
50895 2007-03-25  Bruno Haible  <bruno@clisp.org>
50896
50897         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50898         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50899         * modules/vasnprintf (Depends-on): Add stdint.
50900
50901 2007-03-25  Bruno Haible  <bruno@clisp.org>
50902
50903         * modules/fpieee: New file.
50904         * m4/fpieee.m4: New file.
50905         * modules/isnan-nolibm (Depends-on): Add fpieee.
50906         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50907         * modules/isnanl (Depends-on): Add fpieee.
50908
50909 2007-03-25  Bruno Haible  <bruno@clisp.org>
50910
50911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50912
50913 2007-03-25  Bruno Haible  <bruno@clisp.org>
50914
50915         Avoid test failures on IRIX 6.5.
50916         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50917         (main): Use it.
50918         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50919         macros.
50920         (main): Use them.
50921
50922 2007-03-25  Bruno Haible  <bruno@clisp.org>
50923
50924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50925         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50926         exists but doesn't work.
50927         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50928         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50930         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
50931         math.h.
50932
50933 2007-03-25  Bruno Haible  <bruno@clisp.org>
50934
50935         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50936         returns inf. Needed on IRIX 6.5.
50937
50938 2007-03-25  Bruno Haible  <bruno@clisp.org>
50939
50940         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50941         (main): Use isnanl instead of x != x idiom.
50942         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50943
50944         * tests/test-frexp.c: Include isnan.h.
50945         (main): Use isnan instead of x != x idiom.
50946         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50947
50948 2007-03-25  Bruno Haible  <bruno@clisp.org>
50949
50950         * tests/test-frexp.c (NaN): New function/macro.
50951         (main): Use it instead of 0.0 / 0.0.
50952         * tests/test-isnan.c (NaN): New function/macro.
50953         (main): Use it instead of 0.0 / 0.0.
50954         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50955         (test_function): Use it instead of 0.0 / 0.0.
50956         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50957         (test_function): Use it instead of 0.0 / 0.0.
50958         * tests/test-snprintf-posix.h (NaN): New function/macro.
50959         (test_function): Use it instead of 0.0 / 0.0.
50960         * tests/test-sprintf-posix.h (NaN): New function/macro.
50961         (test_function): Use it instead of 0.0 / 0.0.
50962         * tests/test-fprintf-posix.h (NaN): New function/macro.
50963         (test_function): Use it instead of 0.0 / 0.0.
50964         * tests/test-printf-posix.h (NaN): New function/macro.
50965         (test_function): Use it instead of 0.0 / 0.0.
50966
50967         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50968
50969 2007-03-25  Bruno Haible  <bruno@clisp.org>
50970
50971         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50972
50973 2007-03-25  Bruno Haible  <bruno@clisp.org>
50974
50975         * lib/regexec.c (merge_state_with_log): Make static.
50976
50977 2007-03-25  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/trigl.c (kernel_rem_pio2): Make static.
50980
50981 2007-03-25  Bruno Haible  <bruno@clisp.org>
50982
50983         * lib/sincosl.c (sincosl_table): Make static.
50984
50985 2007-03-25  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50988         if the compiler does not support C99.
50989
50990 2007-03-25  Bruno Haible  <bruno@clisp.org>
50991
50992         * modules/time (Makefile.am): Ensure all rule action lines start with a
50993         tab.
50994
50995 2007-03-24  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/tsearch-tests: New file.
50998         * tests/test-tsearch.sh: New file.
50999         * tests/test-tsearch.c: New file, mostly copied from glibc.
51000
51001         * modules/search-tests: New file.
51002         * tests/test-search.c: New file.
51003
51004         * modules/search: New file.
51005         * lib/search_.h: New file, incorporating lib/tsearch.h.
51006         * m4/search_h.m4: New file.
51007         * lib/tsearch.h: Remove file.
51008         * lib/tsearch.c: Include search.h instead of tsearch.h.
51009         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51010         HAVE_TSEARCH.
51011         * modules/tsearch (Files): Remove lib/tsearch.h.
51012         (Depends-on): Add search.
51013         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51014         (Include): Change tsearch.h into search.h.
51015
51016 2007-03-24  Bruno Haible  <bruno@clisp.org>
51017
51018         * modules/fpucw: New file.
51019         * lib/fpucw.h: New file.
51020         * lib/frexp.c: Include fpucw.h.
51021         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51022         (FUNC): Use them.
51023         * lib/printf-frexp.c: Include fpucw.h.
51024         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51025         (FUNC): Use them.
51026         * lib/vasnprintf.c: Include fpucw.h.
51027         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51028         'long double' calculations.
51029         * tests/test-frexpl.c: Include fpucw.h.
51030         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51031         * tests/test-printf-frexpl.c: Include fpucw.h.
51032         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51033         * modules/frexpl (Depends-on): Add fpucw.
51034         * modules/printf-frexpl (Depends-on): Likewise.
51035         * modules/fprintf-posix (Depends-on): Likewise.
51036         * modules/snprintf-posix (Depends-on): Likewise.
51037         * modules/sprintf-posix (Depends-on): Likewise.
51038         * modules/vasnprintf-posix (Depends-on): Likewise.
51039         * modules/vasprintf-posix (Depends-on): Likewise.
51040         * modules/vfprintf-posix (Depends-on): Likewise.
51041         * modules/vsnprintf-posix (Depends-on): Likewise.
51042         * modules/vsprintf-posix (Depends-on): Likewise.
51043         * modules/frexpl-tests (Depends-on): Likewise.
51044         * modules/printf-frexpl-tests (Depends-on): Likewise.
51045
51046 2007-03-24  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/float+.h: New file.
51049         * lib/isnan.c: Include float+.h.
51050         (SIZE): New macro.
51051         (FUNC): Compare only SIZE bytes of the value.
51052         * lib/vasnprintf.c: Include float+.h.
51053         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51054         SIZEOF_LDBL or SIZEOF_DBL bytes.
51055         * modules/isnan-nolibm (Files): Add lib/float+.h.
51056         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51057         * modules/isnanl (Files): Add lib/float+.h.
51058         * modules/vasnprintf (Files): Add lib/float+.h.
51059
51060 2007-03-24  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51063         include isnanl-nolibm.h.
51064
51065 2007-03-24  Bruno Haible  <bruno@clisp.org>
51066
51067         * tests/test-read-file.c (main): Don't produce spurious output for
51068         expected situations. Make the test fail if it encountered unexpected
51069         results.
51070
51071 2007-03-24  Bruno Haible  <bruno@clisp.org>
51072
51073         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51074         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51075
51076 2007-03-24  Bruno Haible  <bruno@clisp.org>
51077
51078         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51079
51080 2007-03-24  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51083         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51084
51085         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51086         * modules/utf8-ucs4: Turn into a symbolic link to module
51087         unistr/u8-mbtouc.
51088
51089         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51090         utf8-ucs4-unsafe.
51091         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51092         unistr/u8-mbtouc-unsafe.
51093
51094         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51095         * modules/utf16-ucs4: Turn into a symbolic link to module
51096         unistr/u16-mbtouc.
51097
51098         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51099         utf16-ucs4-unsafe.
51100         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51101         unistr/u16-mbtouc-unsafe.
51102
51103         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51104         * modules/ucs4-utf8: Turn into a symbolic link to module
51105         unistr/u8-ubtomb.
51106
51107         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51108         * modules/ucs4-utf16: Turn into a symbolic link to module
51109         unistr/u16-ubtomb.
51110
51111 2007-03-24  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51114         Enable the function only if HAVE_INLINE.
51115         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51116         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51117         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51118         Enable the function only if HAVE_INLINE.
51119         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51120         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51121         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51122         Enable the function only if HAVE_INLINE.
51123         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51124         Enable the function only if HAVE_INLINE.
51125         * modules/utf8-ucs4: Update.
51126         * modules/utf8-ucs4-unsafe: Update.
51127         * modules/utf16-ucs4: Update.
51128         * modules/utf16-ucs4-unsafe: Update.
51129         * modules/ucs4-utf8: Update.
51130         * modules/ucs4-utf16: Update.
51131
51132 2007-03-24  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/utf8-ucs4.h: Remove file.
51135         * lib/utf8-ucs4-unsafe.h: Remove file.
51136         * lib/utf16-ucs4.h: Remove file.
51137         * lib/utf16-ucs4-unsafe.h: Remove file.
51138         * lib/ucs4-utf8.h: Remove file.
51139         * lib/ucs4-utf16.h: Remove file.
51140         * lib/unistr.h: Include their previous contents.
51141         * m4/utf-ucs4.m4: Remove file.
51142         * m4/ucs4-utf.m4: Remove file.
51143         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51144         (Depends-on): Add unistr/base.
51145         (configure.ac): Remove gl_UTF_UCS4.
51146         (Makefile.am): Update.
51147         (Include): Change to unistr.h.
51148         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51149         (Depends-on): Add unistr/base.
51150         (configure.ac): Remove gl_UTF_UCS4.
51151         (Makefile.am): Update.
51152         (Include): Change to unistr.h.
51153         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51154         (Depends-on): Add unistr/base.
51155         (configure.ac): Remove gl_UTF_UCS4.
51156         (Makefile.am): Update.
51157         (Include): Change to unistr.h.
51158         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51159         (Depends-on): Add unistr/base.
51160         (configure.ac): Remove gl_UTF_UCS4.
51161         (Makefile.am): Update.
51162         (Include): Change to unistr.h.
51163         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51164         (Depends-on): Add unistr/base.
51165         (configure.ac): Remove gl_UCS4_UTF.
51166         (Makefile.am): Update.
51167         (Include): Change to unistr.h.
51168         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51169         (Depends-on): Add unistr/base.
51170         (configure.ac): Remove gl_UCS4_UTF.
51171         (Makefile.am): Update.
51172         (Include): Change to unistr.h.
51173         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51174         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51175         utf8-ucs4-unsafe.h.
51176         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51177         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51178         utf16-ucs4-unsafe.h.
51179         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51180         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51181         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51182         * lib/unistr/u8-strchr.c: Likewise.
51183         * lib/unistr/u8-strrchr.c: Likewise.
51184         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51185         * lib/unistr/u16-strchr.c: Likewise.
51186         * lib/unistr/u16-strrchr.c: Likewise.
51187         * lib/striconveh.c: Update.
51188         * lib/linebreak.c: Update.
51189
51190 2007-03-24  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51193         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51194
51195 2007-03-22  Bruno Haible  <bruno@clisp.org>
51196
51197         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51198
51199 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51200
51201         * MODULES.html.sh (File system functions): New module write-any-file.
51202         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51203         * m4/write-any-file.m4: New files.
51204
51205 2007-03-23  Eric Blake  <ebb9@byu.net>
51206
51207         * gnulib-tool: Rearrange space-tab sequences, since some editors
51208         like to eat them.
51209
51210 2007-03-23  Eric Blake  <ebb9@byu.net>
51211
51212         * lib/version-etc.c (version_etc_va): Update license wording to
51213         be more concise.  Recommended by Richard Stallman.
51214
51215 2007-03-22  Bruno Haible  <bruno@clisp.org>
51216
51217         * lib/poll.c (MSG_PEEK): New fallback definition.
51218
51219 2007-03-22  Bruno Haible  <bruno@clisp.org>
51220
51221         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51222         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51223         (main): Update.
51224         Fixes a compilation error on BeOS.
51225
51226 2007-03-22  Bruno Haible  <bruno@clisp.org>
51227
51228         * modules/frexpl-tests: New file.
51229         * tests/test-frexpl.c: New file.
51230
51231         * modules/frexpl: New file.
51232         * m4/frexpl.m4: New file.
51233         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51234         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51236         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51237         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51238         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51239
51240 2007-03-22  Bruno Haible  <bruno@clisp.org>
51241
51242         * lib/frexpl.c: Share code with lib/frexp.c.
51243         * modules/mathl (Files): Add lib/frexp.c.
51244         (Depends-on): Add isnanl-nolibm.
51245
51246 2007-03-22  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/printf-frexp (Files): Add m4/frexp.m4.
51249         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51250         only if the found frexp function actually works.
51251
51252 2007-03-22  Bruno Haible  <bruno@clisp.org>
51253
51254         * lib/frexp.c: Remove older implementation that uses divisions.
51255
51256 2007-03-21  Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/frexp-tests: New file.
51259         * tests/test-frexp.c: New file.
51260
51261         * modules/frexp: New file.
51262         * lib/frexp.c: New file.
51263         * m4/frexp.m4: New file.
51264         * lib/math_.h (frexp): New declaration.
51265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51266         REPLACE_FREXP.
51267         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51268
51269 2007-03-21  Bruno Haible  <bruno@clisp.org>
51270
51271         * modules/isnanl-tests: New file.
51272         * tests/test-isnanl.c: New file.
51273
51274         * modules/isnanl: New file.
51275         * lib/isnanl.h: New file.
51276         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51277         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51278         gl_FUNC_ISNANL_WORKS.
51279         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51280         New macros.
51281
51282 2007-03-21  Bruno Haible  <bruno@clisp.org>
51283
51284         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51285         lib/isnanl.h.
51286         (Include): Update.
51287         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51288         * lib/vasnprintf.c: Update.
51289         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51290         tests/test-isnanl.h, remove tests/test-isnanl.c.
51291         (Makefile.am): Update.
51292         * tests/test-isnanl-nolibm.c: New file.
51293         * tests/test-isnanl.h: New file.
51294         * tests/test-isnanl.c: Remove file.
51295
51296 2007-03-21  Jim Meyering  <jim@meyering.net>
51297
51298         When trying to open ".", treat ESTALE like EACCES.
51299         * lib/savewd.c (savewd_save): Resort to forking not just upon
51300         failure with EACCES, but also when errno is ESTALE.
51301
51302 2007-03-20  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51305         Needed on AIX 5.1. Reported by Matthew Woehlke.
51306
51307 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         Suggestions by Bruno Haible:
51310         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51311         our own.
51312         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51313         * modules/acl (Depends-on): Add gettext.
51314
51315 2007-03-19  Bruno Haible  <bruno@clisp.org>
51316
51317         * modules/iconvme: Remove file.
51318         * lib/iconvme.h: Remove file.
51319         * lib/iconvme.c: Remove file.
51320         * m4/iconvme.m4: Remove file.
51321
51322 2007-03-19  Bruno Haible  <bruno@clisp.org>
51323
51324         * doc/relocatable-maint.texi: Break long shell script line.
51325         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51326
51327 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51328
51329         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51330         handle file_has_acl.
51331         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51332         * lib/acl.c: Move header inclusions and related macro defns into
51333         lib/acl-internal.h.
51334         (S_ISLNK): Remove defn, since that's now done for us.
51335         (file_has_acl): Move to lib/file-has-acl.c.
51336         Call acl_trivial if available.  This is the crucial part of the fix.
51337         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51338         shared within the library.  Rewrite a bit, partly to make it compatible
51339         with the GNU coding style.
51340         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51341         Remove unnecessary double-quotes.
51342         Don't test for acl_to_text; the build will catch that.
51343         Replace acl_entries if it doesn't exist and it is needed.
51344         Check for -lsec and acl_trivial (as used on Solaris 10).
51345         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51346         lib/file-has-acl.c.
51347         (Depends-on): Add sys_stat, for S_ISLNK.
51348
51349 2007-03-19  Ben Pfaff  <blp@gnu.org>
51350
51351         * doc/gnulib.texi: Fix typos.
51352         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51353
51354 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51355
51356         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51357         If size is zero here, buf must be zero.
51358
51359 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51360
51361         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51362         <bruno@clisp.org>.
51363
51364 2007-03-18  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51367         Suggested by Eric Blake.
51368
51369 2007-03-18  Ben Pfaff  <blp@gnu.org>
51370
51371         * doc/relocatable.texi: Recommend using as prefix a directory
51372         that does not exist and will never be created.  Based on
51373         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51374         and others.
51375
51376 2007-03-17  Bruno Haible  <bruno@clisp.org>
51377
51378         * lib/fchownat.c: Include lchown.h.
51379
51380 2007-03-17  Bruno Haible  <bruno@clisp.org>
51381
51382         Fix endless loop when the given allocated size was > INT_MAX.
51383         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51384         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51385         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51386         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51387         * lib/sprintf.c (sprintf): Likewise.
51388
51389 2007-03-17  Bruno Haible  <bruno@clisp.org>
51390
51391         * tests/test-argp-2.sh (func_compare): Output a context diff.
51392
51393 2007-03-17  Bruno Haible  <bruno@clisp.org>
51394
51395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51396         locale's decimal-point character.
51397
51398 2007-03-17  Bruno Haible  <bruno@clisp.org>
51399
51400         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51401         before comparing it. Needed because on some platforms (e.g. x86) a
51402         'long double' occupies less bytes than sizeof (long double).
51403
51404 2007-03-17  Bruno Haible  <bruno@clisp.org>
51405
51406         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51407         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51408         * tests/test-getaddrinfo.c (simple): Likewise.
51409         * tests/test-read-file.c (main): Likewise.
51410
51411 2007-03-17  Bruno Haible  <bruno@clisp.org>
51412
51413         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51414
51415 2007-03-17  Bruno Haible  <bruno@clisp.org>
51416
51417         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51418         unused variable.
51419
51420 2007-03-17  Bruno Haible  <bruno@clisp.org>
51421
51422         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51423         * tests/test-c-strncasecmp.c: Likewise.
51424
51425 2007-03-17  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/stdlib (Depends-on): Add unistd.
51428         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51429         Needed for MacOS X 10.3.
51430
51431 2007-03-17  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51434
51435 2007-03-17  Bruno Haible  <bruno@clisp.org>
51436
51437         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51438
51439 2007-03-17  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51442         to reflect files copied from gnulib (with or without modifications).
51443         Suggested by Jim Meyering.
51444
51445 2007-03-17  Eric Blake  <ebb9@byu.net>
51446
51447         * NEWS: Document stdlib change from 2007-02-18.
51448
51449 2007-03-17  Jim Meyering  <jim@meyering.net>
51450
51451         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51452         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51453         someone uses a name containing shell meta-characters.
51454         Reported by Alfred M. Szmidt.
51455
51456         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51457
51458 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51459
51460         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51461         and copy gettext configuration files only if configure.ac contains
51462         a use of AM_GNU_GETTEXT_VERSION.
51463
51464 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51465
51466         * build-aux/bootstrap (gnulib_name): New variable.
51467         (gnulib_tool_options): Use it.
51468
51469 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51470
51471         * tests/test-des.c: Use new namespace.
51472
51473 2007-03-15  Bruno Haible  <bruno@clisp.org>
51474
51475         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51476         Reported by James Youngman <jay@gnu.org>.
51477
51478 2007-03-15  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51481         declared prototype. Needed with cc on OSF/1 5.1.
51482
51483 2007-03-15  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51486         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51487         (struct gl_list_implementation): Add dispose_fn argument to the
51488         'create_empty', 'create' methods.
51489         (struct gl_list_impl_base): Add field 'dispose_fn'.
51490         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51491         argument.
51492         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51493         dispose_fn argument.
51494         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51495         dispose_fn on the dropped values.
51496         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51497         dispose_fn argument.
51498         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51499         dropped values.
51500         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51501         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51502         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51503         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51504         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51505         argument.
51506         (gl_tree_list_free): Call dispose_fn on the dropped values.
51507         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51508         the dropped values.
51509         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51510         Add dispose_fn argument.
51511         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51512         Call dispose_fn on the dropped values.
51513         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51514         Add dispose_fn argument.
51515         (gl_sublist_create): Initialize the 'dispose_fn' field.
51516         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51517         * tests/test-array_list.c (main): Update.
51518         * tests/test-carray_list.c (main): Update.
51519         * tests/test-avltree_list.c (main): Update.
51520         * tests/test-rbtree_list.c (main): Update.
51521         * tests/test-avltreehash_list.c (main): Update.
51522         * tests/test-rbtreehash_list.c (main): Update.
51523         * tests/test-linked_list.c (main): Update.
51524         * tests/test-linkedhash_list.c (main): Update.
51525         * tests/test-array_oset.c (main): Update.
51526
51527 2007-03-15  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51530         (gl_oset_create_empty): Add dispose_fn argument.
51531         (struct gl_oset_implementation): Add dispose_fn argument to
51532         'create_empty' method.
51533         (struct gl_oset_impl_base): Add dispose_fn field.
51534         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51535         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51536         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51537         values.
51538         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51539         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51540         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51541         dropped value.
51542         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51543         dropped value.
51544         * tests/test-array_oset.c (main): Update.
51545         * tests/test-avltree_oset.c (main): Update.
51546         * tests/test-rbtree_oset.c (main): Update.
51547         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51548
51549 2007-03-13  Bruno Haible  <bruno@clisp.org>
51550
51551         * tests/test-stdbool.c (i): Update after last patch.
51552
51553 2007-03-12  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51556         the iswprint macro. Needed on Solaris 2.5.1.
51557
51558 2007-03-12  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-printf-frexp.c (main): Declare x as volatile.
51561
51562 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51563
51564         * doc/gnulib.texi (Build robot for gnulib): New section.
51565
51566 2007-03-12  Jim Meyering  <jim@meyering.net>
51567
51568         * build-aux/bootstrap: New file.
51569         * build-aux/bootstrap.conf: New file, from coreutils.
51570
51571 2007-03-11  Bruno Haible  <bruno@clisp.org>
51572
51573         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51574
51575 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51576
51577         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51578         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51579         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51580
51581 2007-03-11  Bruno Haible  <bruno@clisp.org>
51582
51583         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51584         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51585
51586 2007-03-11  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51589         formula. Needed for SunPRO C 5.0.
51590
51591 2007-03-11  Bruno Haible  <bruno@clisp.org>
51592
51593         * modules/long-options (Depends-on): Add getopt.
51594
51595 2007-03-11  Bruno Haible  <bruno@clisp.org>
51596
51597         * modules/modechange (Depends-on): Add stdbool.
51598
51599 2007-03-11  Bruno Haible  <bruno@clisp.org>
51600
51601         * modules/i-ring (Depends-on): Add stdbool.
51602
51603 2007-03-11  Bruno Haible  <bruno@clisp.org>
51604
51605         * modules/gc-des (Depends-on): Add stdbool.
51606
51607 2007-03-11  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51610
51611 2007-03-11  Bruno Haible  <bruno@clisp.org>
51612
51613         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51614
51615 2007-03-11  Bruno Haible  <bruno@clisp.org>
51616
51617         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51618
51619 2007-03-11  Bruno Haible  <bruno@clisp.org>
51620
51621         * lib/vasnprintf.c (sprintf): Undefine.
51622
51623 2007-03-11  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51626         initializers in SunPRO C and Compaq C compilers.
51627
51628 2007-03-11  Bruno Haible  <bruno@clisp.org>
51629
51630         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51631         decrementing code ANSI C compliant.
51632
51633 2007-03-11  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51636         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51637
51638 2007-03-11  Bruno Haible  <bruno@clisp.org>
51639
51640         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51641         <stdbool.h> substitute doesn't pass.
51642
51643 2007-03-11  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51646
51647 2007-03-11  Bruno Haible  <bruno@clisp.org>
51648
51649         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51650         script, for submission to autobuild.josefsson.org.
51651
51652 2007-03-10  Bruno Haible  <bruno@clisp.org>
51653
51654         * modules/canonicalize-lgpl-tests: New file.
51655         * tests/test-canonicalize-lgpl.sh: New file.
51656         * tests/test-canonicalize-lgpl.c: New file.
51657
51658         * modules/c-strcase-tests: New file.
51659         * tests/test-c-strcase.sh: New file.
51660         * tests/test-c-strcasecmp.c: New file.
51661         * tests/test-c-strncasecmp.c: New file.
51662
51663         * modules/atexit-tests: New file.
51664         * tests/test-atexit.sh: New file.
51665         * tests/test-atexit.c: New file.
51666
51667 2007-03-10  Bruno Haible  <bruno@clisp.org>
51668
51669         * tests/test-binary-io.sh: Use temporary filenames that are not so
51670         likely to clash with those of other tests (in a parallel make).
51671         * tests/test-binary-io.c: Likewise.
51672
51673 2007-03-10  Bruno Haible  <bruno@clisp.org>
51674
51675         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51676         fallback; use #error instead.
51677         Suggested by Simon Josefsson.
51678
51679 2007-03-10  Bruno Haible  <bruno@clisp.org>
51680
51681         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51682         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51683         first and the last.
51684
51685 2007-03-10  Bruno Haible  <bruno@clisp.org>
51686
51687         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51688
51689 2007-03-10  Bruno Haible  <bruno@clisp.org>
51690
51691         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51692         "make distcheck".
51693         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51694         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51695         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51696
51697 2007-03-10  Bruno Haible  <bruno@clisp.org>
51698
51699         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51700         variable.
51701         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51702         variable.
51703
51704 2007-03-09  Eric Blake  <ebb9@byu.net>
51705         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51706
51707         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51708         types are not being provided by gnulib.
51709         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51710         types are supported.
51711
51712 2007-03-10  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/stdio_.h (__attribute__): New macro.
51715         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51716         vsprintf): Specify __attribute__ __format__ for GCC.
51717         Suggested by Eric Blake.
51718
51719 2007-03-09  Bruno Haible  <bruno@clisp.org>
51720
51721         * modules/printf-posix-tests: New file.
51722         * tests/test-printf-posix.sh: New file.
51723         * tests/test-printf-posix.c: New file.
51724
51725         * modules/printf-posix: New file.
51726         * lib/printf.c: New file.
51727         * m4/printf-posix-rpl.m4: New file.
51728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51729         REPLACE_PRINTF.
51730         * lib/stdio_.h (printf): New declaration.
51731         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51732         ____strfmon____): New macros.
51733         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51734         REPLACE_PRINTF.
51735
51736 2007-03-09  Bruno Haible  <bruno@clisp.org>
51737
51738         * tests/test-vasnprintf-posix2.sh: New file.
51739         * tests/test-vasnprintf-posix2.c: New file.
51740         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51741         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51742         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51743
51744         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51745         a locale dependent decimal point, rather than always '.'.
51746
51747 2007-03-09  Eric Blake  <ebb9@byu.net>
51748
51749         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51750         spite of platforms like Tandem/NSK that define it to -1.
51751
51752 2007-03-08  Bruno Haible  <bruno@clisp.org>
51753
51754         * modules/vprintf-posix-tests: New file.
51755         * tests/test-vprintf-posix.sh: New file.
51756         * tests/test-vprintf-posix.c: New file.
51757         * tests/test-printf-posix.h: New file.
51758
51759         * modules/vprintf-posix: New file.
51760         * lib/vprintf.c: New file.
51761         * m4/vprintf-posix.m4: New file.
51762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51763         REPLACE_VPRINTF.
51764         * lib/stdio_.h (vprintf): New declaration.
51765         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51766         REPLACE_VPRINTF.
51767
51768 2007-03-08  Bruno Haible  <bruno@clisp.org>
51769
51770         * modules/fprintf-posix-tests: New file.
51771         * tests/test-fprintf-posix.sh: New file.
51772         * tests/test-fprintf-posix.c: New file.
51773
51774         * modules/fprintf-posix: New file.
51775         * lib/fprintf.c: New file.
51776         * m4/fprintf-posix.m4: New file.
51777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51778         REPLACE_FPRINTF.
51779         * lib/stdio_.h (fprintf): New declaration.
51780         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51781         REPLACE_FPRINTF.
51782
51783 2007-03-08  Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/vfprintf-posix-tests: New file.
51786         * tests/test-vfprintf-posix.sh: New file.
51787         * tests/test-vfprintf-posix.c: New file.
51788         * tests/test-fprintf-posix.h: New file.
51789         * tests/test-fprintf-posix.out: New file.
51790
51791         * modules/vfprintf-posix: New file.
51792         * lib/vfprintf.c: New file.
51793         * m4/vfprintf-posix.m4: New file.
51794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51795         REPLACE_VFPRINTF.
51796         * lib/stdio_.h (vfprintf): New declaration.
51797         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51798         REPLACE_VFPRINTF.
51799
51800 2007-03-08  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51803
51804 2007-03-08  Bruno Haible  <bruno@clisp.org>
51805
51806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51807         instead of 'expr' invocations.
51808         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51810         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51813         Suggested by Paul Eggert.
51814
51815 2007-03-08  Bruno Haible  <bruno@clisp.org>
51816
51817         * modules/fseterr-tests: New file.
51818         * tests/test-fseterr.c: New file.
51819
51820         * modules/fseterr: New file.
51821         * lib/fseterr.h: New file.
51822         * lib/fseterr.c: New file.
51823
51824 2007-03-08  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51827         * lib/getopt_.h: Likewise.
51828         * lib/mbswidth.h: Likewise.
51829         * lib/setenv.h: Likewise.
51830         * lib/vasnprintf.h: Likewise.
51831         * lib/vasprintf.h: Likewise.
51832         * lib/verror.h: Likewise.
51833         * lib/xsetenv.h: Likewise.
51834         * lib/xvasprintf.h: Likewise.
51835
51836 2007-03-08  Jim Meyering  <jim@meyering.net>
51837
51838         * users.txt: Add parted.
51839
51840         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51841
51842 2007-03-07  Bruno Haible  <bruno@clisp.org>
51843
51844         * m4/printf.m4: Make the shell script snippets copy&pastable.
51845
51846 2007-03-02  Bruno Haible  <bruno@clisp.org>
51847
51848         * lib/netinet_in_.h: New file.
51849         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51850         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51851         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51852         (Depends-on): Add absolute-header.
51853         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51854         into netinet/in.h.
51855
51856 2007-03-03  Bruno Haible  <bruno@clisp.org>
51857
51858         * lib/sys_select_.h: New file.
51859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51860         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51861         * modules/sys_select (Files): Add lib/sys_select_.h.
51862         (Depends-on): Add absolute-header.
51863         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51864         into sys/select.h.
51865
51866 2007-03-02  Bruno Haible  <bruno@clisp.org>
51867
51868         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51869         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51870         values.
51871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51872         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51873         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51874         * modules/sys_socket (Depends-on): Add absolute-header.
51875         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51876         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51877         (Include): Remove requirement of inclusion of <sys/types.h>.
51878
51879 2007-03-02  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/byteswap_.h (bswap_32): Fix formula.
51882
51883 2007-03-06  Bruno Haible  <bruno@clisp.org>
51884
51885         * modules/sprintf-posix-tests: New file.
51886         * tests/test-sprintf-posix.c: New file.
51887
51888         * modules/sprintf-posix: New file.
51889         * lib/sprintf.c: New file.
51890         * m4/sprintf-posix.m4: New file.
51891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51892         REPLACE_SPRINTF.
51893         * lib/stdio_.h (sprintf): New declaration.
51894         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51895         REPLACE_SPRINTF.
51896
51897 2007-03-06  Bruno Haible  <bruno@clisp.org>
51898
51899         * modules/vsprintf-posix-tests: New file.
51900         * tests/test-vsprintf-posix.c: New file.
51901         * tests/test-sprintf-posix.h: New file.
51902
51903         * modules/vsprintf-posix: New file.
51904         * lib/vsprintf.c: New file.
51905         * m4/vsprintf-posix.m4: New file.
51906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51907         REPLACE_VSPRINTF.
51908         * lib/stdio_.h (vsprintf): New declaration.
51909         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51910         REPLACE_VSPRINTF.
51911
51912 2007-03-06  Bruno Haible  <bruno@clisp.org>
51913
51914         * modules/vsnprintf (Depend-on): Remove minmax.
51915
51916 2007-03-06  Bruno Haible  <bruno@clisp.org>
51917
51918         * modules/snprintf-posix-tests: New file.
51919         * tests/test-snprintf-posix.c: New file.
51920
51921         * modules/snprintf-posix: New file.
51922         * m4/snprintf-posix.m4: New file.
51923         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51924         gl_FUNC_SNPRINTF.
51925         (gl_FUNC_SNPRINTF): Invoke it.
51926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51927         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51928         is set.
51929         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51930
51931 2007-03-06  Bruno Haible  <bruno@clisp.org>
51932
51933         * modules/vsnprintf-posix-tests: New file.
51934         * tests/test-vsnprintf-posix.c: New file.
51935         * tests/test-snprintf-posix.h: New file.
51936
51937         * modules/vsnprintf-posix: New file.
51938         * m4/vsnprintf-posix.m4: New file.
51939         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51940         gl_FUNC_VSNPRINTF.
51941         (gl_FUNC_VSNPRINTF): Invoke it.
51942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51943         * lib/stdio_.h (vsnprintf): Define as a replacement if
51944         REPLACE_VSNPRINTF is set.
51945         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51946
51947 2007-03-06  Bruno Haible  <bruno@clisp.org>
51948
51949         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51951
51952 2007-03-06  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51955         (asinl): Declare also if HAVE_DECL_ASINL is set.
51956         (atanl): Declare also if HAVE_DECL_ATANL is set.
51957         (ceill): Declare also if HAVE_DECL_CEILL is set.
51958         (cosl): Declare also if HAVE_DECL_COSL is set.
51959         (expl): Declare also if HAVE_DECL_EXPL is set.
51960         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51961         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51962         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51963         (logl): Declare also if HAVE_DECL_LOGL is set.
51964         (sinl): Declare also if HAVE_DECL_SINL is set.
51965         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51966         (tanl): Declare also if HAVE_DECL_TANL is set.
51967         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51969         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51970         declaration of frexpl, ldexpl.
51971         * modules/printf-frexpl (Depends-on): Add math.
51972         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51973
51974 2007-03-05  Bruno Haible  <bruno@clisp.org>
51975
51976         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51977         frexpl and ldexpl are declared.
51978         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51979
51980 2007-03-05  Bruno Haible  <bruno@clisp.org>
51981
51982         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51983         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51984
51985 2007-03-05  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/stdio_.h: Include <stddef.h>.
51988
51989 2007-03-05  Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51992
51993 2007-03-05  Bruno Haible  <bruno@clisp.org>
51994
51995         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51996         NetBSD 4, from Ralf Wildenhues.
51997
51998 2007-03-04  Bruno Haible  <bruno@clisp.org>
51999
52000         * lib/vasprintf.h: Update #if logic for the case when the functions
52001         exist but are overridden.
52002
52003 2007-03-04  Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52006         implementations: glibc-2.4 and MacOS X 10.3.
52007         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52008         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52009         * tests/test-vasprintf-posix.c (test_function): Likewise.
52010
52011 2007-03-04  Bruno Haible  <bruno@clisp.org>
52012
52013         * modules/vasprintf-posix-tests: New file.
52014         * tests/test-vasprintf-posix.c: New file.
52015
52016         * modules/vasprintf-posix: New file.
52017         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52018         defined.
52019         * m4/vasprintf-posix.m4: New file.
52020         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52021         gl_FUNC_VASPRINTF.
52022         (gl_FUNC_VASPRINTF): Invoke it.
52023         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52024         here.
52025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52026
52027 2007-03-04  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52030         REPLACE_GETTIMEOFDAY.
52031         * modules/sys_time (Makefile.am): Likewise.
52032         * m4/sys_time_h.m4: Likewise.
52033         * m4/gettimeofday.m4: Likewise.
52034
52035 2007-03-04  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/vasnprintf-posix-tests: New file.
52038         * tests/test-vasnprintf-posix.c: New file.
52039
52040         * modules/vasnprintf-posix: New file.
52041         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52042         printf-frexpl.h.
52043         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52044         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52045         REPLACE_VASNPRINTF is defined.
52046         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52047         gl_FUNC_VASNPRINTF.
52048         (gl_FUNC_VASNPRINTF): Invoke it.
52049         * m4/vasnprintf-posix.m4: New file.
52050         * m4/printf.m4: New file.
52051
52052 2007-03-04  Bruno Haible  <bruno@clisp.org>
52053
52054         Compile progreloc.c only if --enable-relocatable is specified.
52055         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52056         if --enable-relocatable was specified.
52057         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52058         lib_SOURCES.
52059
52060 2007-03-04  Jim Meyering  <jim@meyering.net>
52061
52062         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52063         Use it consistently, rather than enumerating errno constants.
52064
52065 2007-03-04  Bruno Haible  <bruno@clisp.org>
52066
52067         * modules/xvasprintf-tests: New file.
52068         * tests/test-xvasprintf.c: New file.
52069
52070         * modules/vasprintf-tests: New file.
52071         * tests/test-vasprintf.c: New file.
52072
52073         * modules/vasnprintf-tests: New file.
52074         * tests/test-vasnprintf.c: New file.
52075
52076         * modules/vsnprintf-tests: New file.
52077         * tests/test-vsnprintf.c: New file.
52078
52079         * modules/snprintf-tests: New file.
52080         * tests/test-snprintf.c: New file.
52081
52082 2007-03-04  Bruno Haible  <bruno@clisp.org>
52083
52084         Compile relocatable.c only if --enable-relocatable is specified.
52085         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52086         gl_RELOCATABLE_LIBRARY.
52087         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52088         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52089         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52090         gl_RELOCATABLE_LIBRARY.
52091         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52092         (Makefile.am): Remove lib_SOURCES.
52093         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52094         gl_RELOCATABLE_LIBRARY.
52095         (Makefile.am): Remove lib_SOURCES.
52096         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52097         always.
52098         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52099         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52100
52101 2007-03-04  Bruno Haible  <bruno@clisp.org>
52102
52103         * modules/argmatch-tests: New file.
52104         * tests/test-argmatch.c: New file.
52105
52106         * tests/test-allocsa.c (main): Halve the number of loop runs.
52107
52108         * modules/alloca-opt-tests: New file.
52109         * tests/test-alloca-opt.c: New file.
52110
52111 2007-03-04  Jim Meyering  <jim@meyering.net>
52112
52113         Work around difference between Linux ACLs and Solaris 10 ZFS.
52114         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52115         for EINVAL.
52116
52117 2007-03-03  Bruno Haible  <bruno@clisp.org>
52118
52119         * modules/relocatable-prog (Depends-on): Add back progreloc's
52120         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52121
52122 2007-03-03  Bruno Haible  <bruno@clisp.org>
52123
52124         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52125         * modules/relocatable-lib: New file.
52126
52127 2007-03-03  Bruno Haible  <bruno@clisp.org>
52128
52129         * modules/relocatable-prog: Renamed from modules/relocatable.
52130         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52131
52132 2007-03-03  Bruno Haible  <bruno@clisp.org>
52133
52134         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52135         m4/relocatable-lib.m4.
52136         (Depends-on): Remove 'relocatable'.
52137         (configure.ac): Add gl_RELOCATABLE_NOP.
52138
52139 2007-03-03  Bruno Haible  <bruno@clisp.org>
52140
52141         * modules/relocatable-prog-wrapper: New file.
52142         * modules/relocatable (Depends-on): Add it. Remove all other
52143         dependencies except progname.
52144         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52145
52146         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52147         (gl_FUNC_STRERROR): Nop.
52148         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52149
52150         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52151         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52152
52153         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52154         (gl_FUNC_READLINK): Update.
52155
52156         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52157
52158 2007-03-03  Bruno Haible  <bruno@clisp.org>
52159
52160         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52161         * modules/xreadlink (Depends-on): Add unistd.
52162         * modules/xreadlink-with-size (Depends-on): Likewise.
52163
52164 2007-03-03  Bruno Haible  <bruno@clisp.org>
52165
52166         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52167         extracted from gt_FUNC_SETENV.
52168         (gt_FUNC_SETENV): Remove macro.
52169         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52170         remove gt_FUNC_SETENV.
52171
52172 2007-03-03  Bruno Haible  <bruno@clisp.org>
52173
52174         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52175         ENABLE_RELOCATABLE here.
52176         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52177
52178 2007-03-03  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52181         * tests/test-rbtreehash_list.c: Include progname.h.
52182         (main): Call set_program_name.
52183
52184         * modules/rbtree-oset-tests (Depends-on): Add progname.
52185         * tests/test-rbtree_oset.c: Include progname.h.
52186         (main): Call set_program_name.
52187
52188         * modules/rbtree-list-tests (Depends-on): Add progname.
52189         * tests/test-rbtree_list.c: Include progname.h.
52190         (main): Call set_program_name.
52191
52192         * modules/linked-list-tests (Depends-on): Add progname.
52193         * tests/test-linked_list.c: Include progname.h.
52194         (main): Call set_program_name.
52195
52196 2007-03-03  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52199         All uses of __restrict changed to _Restrict_.
52200         * lib/glob_.h (__restrict): Remove macro.
52201
52202 2007-03-02  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/gettext (configure.ac): Require gettext infrastructure
52205         from version 0.16.1.
52206
52207 2007-03-02  Bruno Haible  <bruno@clisp.org>
52208
52209         * modules/linkedhash-list-tests (Depends-on): Add progname.
52210         * tests/test-linkedhash_list.c: Include progname.h.
52211         (main): Call set_program_name.
52212
52213         * modules/carray-list-tests (Depends-on): Add progname.
52214         * tests/test-carray_list.c: Include progname.h.
52215         (main): Call set_program_name.
52216
52217         * modules/avltreehash-list-tests (Depends-on): Add progname.
52218         * tests/test-avltreehash_list.c: Include progname.h.
52219         (main): Call set_program_name.
52220
52221         * modules/avltree-oset-tests (Depends-on): Add progname.
52222         * tests/test-avltree_oset.c: Include progname.h.
52223         (main): Call set_program_name.
52224
52225         * modules/avltree-list-tests (Depends-on): Add progname.
52226         * tests/test-avltree_list.c: Include progname.h.
52227         (main): Call set_program_name.
52228
52229         * modules/array-oset-tests (Depends-on): Add progname.
52230         * tests/test-array_oset.c: Include progname.h.
52231         (main): Call set_program_name.
52232
52233         * modules/array-list-tests (Depends-on): Add progname.
52234         * tests/test-array_list.c: Include progname.h.
52235         (main): Call set_program_name.
52236
52237         * modules/argp-tests (Depends-on): Add progname.
52238         * tests/test-argp.c: Include argp.h first. Include progname.h.
52239         (main): Call set_program_name.
52240
52241 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52242
52243         * doc/gnulib-tool.texi (Initial import): Reword description of
52244         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52245         limited effect even if defined after the first system include.
52246
52247 2007-03-01  Bruno Haible  <bruno@clisp.org>
52248
52249         * build-aux/config.libpath: Update to libtool-1.5.22.
52250         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52251
52252 2007-03-01  Bruno Haible  <bruno@clisp.org>
52253
52254         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52255         foo_CFLAGS.
52256         Reported by Ralf Wildenhues.
52257
52258 2007-03-01  Bruno Haible  <bruno@clisp.org>
52259
52260         * build-aux/install-reloc: Remove object files left over by some
52261         compilers.
52262         Reported by Ralf Wildenhues.
52263
52264 2007-03-01  Bruno Haible  <bruno@clisp.org>
52265
52266         * build-aux/install-reloc: Break long lines.
52267
52268 2007-03-01  Bruno Haible  <bruno@clisp.org>
52269
52270         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52271         Reported by Ralf Wildenhues.
52272
52273 2007-03-01  Bruno Haible  <bruno@clisp.org>
52274
52275         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52276         include ordering constraints.
52277
52278 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52279
52280         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52282         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52283         as another example.
52284         * lib/time_.h: Fix misspelling.
52285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52286         Require gl_HEADER_TIME_H_DEFAULTS.
52287         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52288         * m4/time_r.m4 (gl_TIME_R): Likewise.
52289         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52290
52291 2007-03-01  Bruno Haible  <bruno@clisp.org>
52292
52293         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52294         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52295
52296 2007-03-01  Jim Meyering  <jim@meyering.net>
52297
52298         * modules/xreadlink (Maintainer): Add my name.
52299         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52300
52301 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52302             Bruno Haible  <bruno@clisp.org>
52303
52304         * build-aux/install-reloc: Compile also c-ctype.c.
52305         * build-aux/relocatable.sh.in: New file.
52306         * doc/relocatable.texi: New file.
52307         * doc/relocatable-maint.texi: New file.
52308         * doc/gnulib.texi: Include relocatable-maint.texi.
52309         * lib/progreloc.c: Include unistd.h unconditionally.
52310         * lib/relocwrapper.c: Include unistd.h unconditionally.
52311         Include c-ctype.h.
52312         (add_dotbin): Use c_tolower.
52313         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52314         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52315         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52316         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52317         to m4/relocatable-lib.m4.
52318         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52319         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52320         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52321         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52322         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52323         * modules/relocatable: New file.
52324         * modules/relocatable-lib: New file.
52325         * modules/relocatable-script: New file.
52326
52327 2007-02-28  Bruno Haible  <bruno@clisp.org>
52328
52329         Import --enable-relocatable infrastructure.
52330         * build-aux/config.libpath: New file, from GNU gettext.
52331         * build-aux/install-reloc: New file, from GNU gettext.
52332         * build-aux/reloc-ldflags: New file, from GNU gettext.
52333         * lib/relocatable.h: New file, from GNU gettext.
52334         * lib/relocatable.c: New file, from GNU gettext.
52335         * lib/relocwrapper.c: New file, from GNU gettext.
52336         * m4/relocatable.m4: New file, from GNU gettext.
52337
52338 2007-02-28  Bruno Haible  <bruno@clisp.org>
52339
52340         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52341
52342         * modules/xreadlink: New file, from GNU gettext with modifications.
52343         * lib/xreadlink.c: New file, from GNU gettext.
52344         * lib/xreadlink.h: Add comments.
52345         (xreadlink): New declaration.
52346
52347         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52348         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52349         lib/xreadlink-with-size.c.
52350         (configure.ac): Remove gl_XREADLINK invocation.
52351         (Makefile.am): Augment lib_SOURCES.
52352         * m4/xreadlink.m4: Remove file.
52353         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52354         (xreadlink_with_size): Renamed from xreadink.
52355         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52356         * modules/canonicalize (Depends-on): Replace xreadlink with
52357         xreadlink-with-size.
52358         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52359
52360 2007-02-25  Jim Meyering  <jim@meyering.net>
52361
52362         * build-aux/announce-gen: When complaining about excess arguments,
52363         list them.
52364
52365 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52366
52367         * README: Document signed integer overflow situation more
52368         accurately.
52369
52370 2007-02-25  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52373         'a' or 'A' conversion.
52374
52375 2007-02-25  Bruno Haible  <bruno@clisp.org>
52376
52377         * modules/filename: Renamed from modules/pathname.
52378         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52379         lib/concatpath.c with lib/concat-filename.c.
52380         (Makefile.am): Update.
52381         (Include): Replace pathname.h with filename.h.
52382         * lib/filename.h: Renamed from lib/pathname.h.
52383         (concatenated_filename): Renamed from concatenated_pathname.
52384         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52385         (concatenated_filename): Renamed from concatenated_pathname.
52386         * lib/findprog.c: Include filename.h instead of pathname.h.
52387         (find_in_path): Update.
52388         * lib/javacomp.c: Include filename.h instead of pathname.h.
52389         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52390         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52391         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52392         is_oldgcj_14_13_usable, is_javac_usable): Update.
52393         * lib/javaexec.c: Include filename.h instead of pathname.h.
52394         (execute_java_class): Update.
52395         * modules/findprog: Update.
52396         * modules/javacomp: Update.
52397         * modules/javaexec: Update.
52398         * MODULES.html.sh (File system functions): Add 'filename', remove
52399         'pathname'.
52400
52401 2007-02-25  Bruno Haible  <bruno@clisp.org>
52402
52403         * modules/printf-frexpl-tests: New file.
52404         * tests/test-printf-frexpl.c: New file.
52405
52406         * modules/printf-frexpl: New file.
52407         * lib/printf-frexpl.h: New file.
52408         * lib/printf-frexpl.c: New file.
52409         * m4/printf-frexpl.m4: New file.
52410
52411 2007-02-25  Bruno Haible  <bruno@clisp.org>
52412
52413         * modules/printf-frexp-tests: New file.
52414         * tests/test-printf-frexp.c: New file.
52415
52416         * modules/printf-frexp: New file.
52417         * lib/printf-frexp.h: New file.
52418         * lib/printf-frexp.c: New file.
52419         * m4/printf-frexp.m4: New file.
52420
52421 2007-02-25  Bruno Haible  <bruno@clisp.org>
52422
52423         Assume automake >= 1.10 for the tests.
52424         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52425         * modules/arctwo-tests: Likewise.
52426         * modules/argp-tests: Likewise.
52427         * modules/avltree-list-tests: Likewise.
52428         * modules/avltree-oset-tests: Likewise.
52429         * modules/avltreehash-list-tests: Likewise.
52430         * modules/carray-list-tests: Likewise.
52431         * modules/crc-tests: Likewise.
52432         * modules/des-tests: Likewise.
52433         * modules/gc-arcfour-tests: Likewise.
52434         * modules/gc-arctwo-tests: Likewise.
52435         * modules/gc-des-tests: Likewise.
52436         * modules/gc-hmac-md5-tests: Likewise.
52437         * modules/gc-hmac-sha1-tests: Likewise.
52438         * modules/gc-md2-tests: Likewise.
52439         * modules/gc-md4-tests: Likewise.
52440         * modules/gc-md5-tests: Likewise.
52441         * modules/gc-pbkdf2-sha1-tests: Likewise.
52442         * modules/gc-rijndael-tests: Likewise.
52443         * modules/gc-sha1-tests: Likewise.
52444         * modules/gc-tests: Likewise.
52445         * modules/getaddrinfo-tests: Likewise.
52446         * modules/hmac-md5-tests: Likewise.
52447         * modules/hmac-sha1-tests: Likewise.
52448         * modules/linked-list-tests: Likewise.
52449         * modules/linkedhash-list-tests: Likewise.
52450         * modules/lock-tests: Likewise.
52451         * modules/md2-tests: Likewise.
52452         * modules/md4-tests: Likewise.
52453         * modules/md5-tests: Likewise.
52454         * modules/rbtree-list-tests: Likewise.
52455         * modules/rbtree-oset-tests: Likewise.
52456         * modules/rbtreehash-list-tests: Likewise.
52457         * modules/read-file-tests: Likewise.
52458         * modules/rijndael-tests: Likewise.
52459         * modules/stdint-tests: Likewise.
52460         * modules/tls-tests: Likewise.
52461
52462 2007-02-24  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52465         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52466         function; instead check whether isnan with a double argument links.
52467         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52468         function; instead check whether isnan with a 'long double' argument
52469         links.
52470         Reported by Eric Blake <ebb9@byu.net>.
52471
52472 2007-02-24  Bruno Haible  <bruno@clisp.org>
52473
52474         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52475         defined.
52476         * lib/isnanl.c: Remove all code. Just include isnan.c.
52477         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52478
52479 2007-02-25  Jim Meyering  <jim@meyering.net>
52480
52481         Avoid conflicting types for 'unsetenv' on FreeBSD.
52482         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52483         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52484         in stdlib.h.
52485
52486 2007-02-24  Bruno Haible  <bruno@clisp.org>
52487
52488         * modules/isnanl-nolibm-tests: New file.
52489         * tests/test-isnanl.c: New file.
52490
52491         * modules/isnanl-nolibm: New file.
52492         * lib/isnanl.h: New file.
52493         * lib/isnanl.c: New file.
52494         * m4/isnanl.m4: New file.
52495
52496 2007-02-24  Bruno Haible  <bruno@clisp.org>
52497
52498         * modules/isnan-nolibm-tests: New file.
52499         * tests/test-isnan.c: New file.
52500
52501         * modules/isnan-nolibm: New file.
52502         * lib/isnan.h: New file.
52503         * lib/isnan.c: New file.
52504         * m4/isnan.m4: New file.
52505
52506 2007-02-24  Bruno Haible  <bruno@clisp.org>
52507
52508         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52509         assume that an exponent fits in 20 bits.
52510
52511 2007-02-24  Jim Meyering  <jim@meyering.net>
52512
52513         * m4/regex.m4: Update the description of the configure-time option,
52514         --without-included-regex, to state accurately what the defaults are,
52515         and perhaps to give people an idea why using this option is risky.
52516
52517 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52520         loops on small arguments.  This attempts to avoid the problem
52521         Bruno Haible reported for AIX 4.3.2 in
52522         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52523
52524 2007-02-23  Bruno Haible  <bruno@clisp.org>
52525
52526         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52527         Needed for help2man.
52528
52529 2007-02-23  Karl Berry  <karl@gnu.org>
52530
52531         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52532         exists, foo.h should be cvs-ignored, not committed.
52533
52534 2007-02-23  Eric Blake  <ebb9@byu.net>
52535
52536         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52537         * lib/stat-time.h (includes): Likewise.
52538         * lib/utimecmp.c (includes): Likewise.
52539         * lib/utimens.h (includes): Likewise.
52540         * lib/getdate.y (includes): Also include "timespec.h" for use
52541         internal to the module.
52542         * modules/utimens (Depends-on): Revert yesterday's patch.
52543         * modules/nanosleep (Depends-on): Add missing dependency.
52544
52545 2007-02-22  Bruno Haible  <bruno@clisp.org>
52546
52547         * lib/glob.c: Don't include getlogin_r.h.
52548
52549 2007-02-22  Jim Meyering  <jim@meyering.net>
52550
52551         * modules/utimens (Depends-on): Add timespec, required for
52552         utimens.h's inclusion of timespec.h.
52553
52554 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52557         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52558         Schwab in
52559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52560         I'll try to think of a better way to fix the Solaris problem.
52561
52562         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52563         like glibc; on Solaris 10, it fails with errno == EINVAL.
52564         POSIX says the behavior is unspecified if the first argument is NULL,
52565         so play it safe and never pass NULL to the system getcwd.
52566
52567 2007-02-21  Jim Meyering  <jim@meyering.net>
52568
52569         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52570         of gettimeofday.  It would conflict with the one now always
52571         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52572         an IRIX 6.5 build failure.
52573
52574 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52575
52576         Minor fixups to port to Solaris 10 with Sun C 5.8.
52577         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52578         * modules/getcwd (Depends-on): Add dirfd.
52579         * lib/putenv.c (putenv): #undef it.
52580         (rpl_putenv): New decl.
52581         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52582
52583 2007-02-20  Bruno Haible  <bruno@clisp.org>
52584
52585         * modules/stdio-tests: New file.
52586         * tests/test-stdio.c: New file.
52587
52588         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52589         (Depends-on): Add stdio.
52590         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52591         (Include): Use <stdio.h> instead of vsnprintf.h.
52592         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52593         HAVE_DECL_VSNPRINTF.
52594         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52595
52596         * modules/snprintf (Files): Remove lib/snprintf.h.
52597         (Depends-on): Add stdio.
52598         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52599         (Include): Use <stdio.h> instead of snprintf.h.
52600         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52601         HAVE_DECL_SNPRINTF.
52602         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52603         * lib/getaddrinfo.c: Likewise.
52604
52605         * modules/stdio: New file.
52606         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52607         * lib/snprintf.h: Remove file.
52608         * lib/vsnprintf.h: Remove file.
52609         * lib/.cppi-disable: Remove snprintf.h.
52610         * m4/stdio_h.m4: New file.
52611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52612
52613 2007-02-20  Jim Meyering  <jim@meyering.net>
52614
52615         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52616         used by e.g., mingw.  From Bruno Haible.
52617
52618 2007-02-19  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52621         warnings.
52622         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52623
52624 2007-02-19  Bruno Haible  <bruno@clisp.org>
52625
52626         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52627         from mingw users.
52628
52629 2007-02-19  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52632         warnings.
52633         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52634
52635 2007-02-19  Jim Meyering  <jim@meyering.net>
52636
52637         Don't use FD after a successful "fdopendir (fd)".
52638         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52639         Reset it by calling dirfd on the just-obtained DIR*.
52640
52641         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52642         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52643
52644 2007-02-18  Bruno Haible  <bruno@clisp.org>
52645
52646         * lib/readlink.c: Include <unistd.h>.
52647         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52648         HAVE_READLINK.
52649         * modules/readlink (Depends-on): Add unistd.
52650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52651         (Include): Add <unistd.h>.
52652
52653         * lib/getlogin_r.h: Remove file.
52654         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52655         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52656         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52657         HAVE_DECL_GETLOGIN_R.
52658         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52660         (Include): Use <unistd.h> instead of getlogin_r.h.
52661
52662         * lib/getcwd.h: Remove file.
52663         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52664         * lib/xgetcwd.c: Likewise.
52665         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52666         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52667         * modules/getcwd (Files): Remove lib/getcwd.h.
52668         (Depends-on): Add unistd.
52669         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52670         (Include): Use <unistd.h> instad of getcwd.h.
52671
52672         * lib/ftruncate.c: Include <unistd.h> first.
52673         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52674         Set HAVE_FTRUNCATE.
52675         * modules/ftruncate (Depends-on): Add unistd.
52676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52677
52678         * lib/fchdir.c: Include <unistd.h> first.
52679         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52681         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52682         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52683         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52684
52685         * lib/dup2.c: Include <unistd.h> first.
52686         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52687         HAVE_DUP2.
52688         * modules/dup2 (Depends-on): Add unistd.
52689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52690
52691         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52692         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52693         REPLACE_CHOWN. Don't define chown as a macro here.
52694         * modules/chown (Depends-on): Add unistd.
52695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52696
52697         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52698         Add definition for GL_LINK_WARNING.
52699         (chown, dup2): New declarations.
52700         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52701         link warning.
52702         (ftruncate): New declaration.
52703         (getcwd): New declaration, taken from old getcwd.h.
52704         (getlogin_r): New declaration, taken from old getlogin_r.h.
52705         (readlink): New declaration.
52706         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52707         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52708         (gl_PREREQ_UNISTD): Remove macro.
52709         (gl_UNISTD_MODULE_INDICATOR): New macro.
52710         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52711         many new variables. Don't set UNISTD_H.
52712         * modules/unistd (Description): Change.
52713         (Depends-on): Add link-warning.
52714         (configure.ac): Update.
52715         (Makefile.am): Create unistd.h always. Substitute many new variables
52716         into it.
52717
52718 2007-02-18  Bruno Haible  <bruno@clisp.org>
52719
52720         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52721         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52722         HAVE_GETSUBOPT.
52723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52724         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52725         * lib/getsubopt.h: Remove file.
52726         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52727         (Depends-on): Add stdlib.
52728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52729         (Includes): Use <stdlib.h> instead of getsubopt.h.
52730         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52731         Set HAVE_GETSUBOPT.
52732         * lib/getsubopt.c: Don't include getsubopt.h.
52733
52734 2007-02-18  Bruno Haible  <bruno@clisp.org>
52735
52736         * modules/fchdir (Depends-on): Add dup2.
52737
52738 2007-02-18  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/stdlib_.h: Handle glibc's special invocation convention
52741         specially.
52742
52743 2007-02-18  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/stdlib-tests: New file.
52746         * tests/test-stdlib.c: New file.
52747
52748         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52749         (Depends-on): Add stdlib.
52750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52751         (Includes): Use <stdlib.h> instead of mkstemp.h.
52752         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52753         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52754         * lib/mkstemp.c: Don't include mkstemp.h.
52755         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52756         * lib/stdlib--.h: Don't include mkstemp.h.
52757
52758         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52759         (Depends-on): Add stdlib.
52760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52761         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52762         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52763         HAVE_MKDTEMP.
52764         * lib/mkdtemp.c: Don't include mkdtemp.h.
52765         * lib/clean-temp.c: Don't include mkdtemp.h.
52766
52767         * modules/exit (Files): Remove lib/exit.h.
52768         (Depends-on): Add stdlib.
52769         (Makefile.am): Remove lib_SOURCES.
52770         (Include): Use <stdlib.h> instead of exit.h.
52771         * lib/argmatch.c: Don't include exit.h.
52772         * lib/execute.c: Likewise.
52773         * lib/pagealign_alloc.c: Likewise.
52774         * lib/pipe.c: Likewise.
52775         * lib/wait-process.c: Likewise.
52776         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52777         * lib/exitfail.c: Likewise.
52778         * lib/savewd.c: Likewise.
52779         * lib/xsetenv.c: Likewise.
52780
52781         * modules/stdlib: New file.
52782         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52783         and extra comments about mkstemp().
52784         * lib/exit.h: Remove file.
52785         * lib/mkdtemp.h: Remove file.
52786         * lib/mkstemp.h: Remove file.
52787         * m4/stdlib_h.m4: New file.
52788         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52789
52790 2007-02-18  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/math-tests: New file.
52793         * tests/test-math.c: New file.
52794
52795         * modules/math: New file.
52796         * modules/mathl (Files): Remove lib/mathl.h.
52797         (Depends-on): Add math.
52798         (Makefile.am): Don't mention mathl.h.
52799         (Include): Use <math.h> instead of mathl.h.
52800         * lib/math_.h: New file.
52801         * lib/mathl.h: Remove file.
52802         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52803         mathl.h.
52804         * lib/asinl.c: Likewise.
52805         * lib/atanl.c: Likewise.
52806         * lib/ceill.c: Likewise.
52807         * lib/cosl.c: Likewise.
52808         * lib/expl.c: Likewise.
52809         * lib/floorl.c: Likewise.
52810         * lib/frexpl.c: Likewise.
52811         * lib/ldexpl.c: Likewise.
52812         * lib/logl.c: Likewise.
52813         * lib/sincosl.c: Likewise.
52814         * lib/sinl.c: Likewise.
52815         * lib/sqrtl.c: Likewise.
52816         * lib/tanl.c: Likewise.
52817         * lib/trigl.c: Likewise.
52818         * m4/math_h.m4: New file.
52819         * MODULES.html.sh (Mathematics): Add math.
52820
52821 2007-02-17  Bruno Haible  <bruno@clisp.org>
52822
52823         * modules/wctype-tests: New file.
52824         * tests/test-wctype.c: New file.
52825
52826         * modules/wchar-tests: New file.
52827         * tests/test-wchar.c: New file.
52828
52829         * modules/unistd-tests: New file.
52830         * tests/test-unistd.c: New file.
52831
52832         * modules/time-tests: New file.
52833         * tests/test-time.c: New file.
52834
52835         * modules/sysexits-tests: New file.
52836         * tests/test-sysexits.c: New file.
52837
52838         * modules/sys_time-tests: New file.
52839         * tests/test-sys_time.c: New file.
52840
52841         * modules/sys_stat-tests: New file.
52842         * tests/test-sys_stat.c: New file.
52843
52844         * modules/sys_socket-tests: New file.
52845         * tests/test-sys_socket.c: New file.
52846
52847         * modules/sys_select-tests: New file.
52848         * tests/test-sys_select.c: New file.
52849
52850         * modules/string-tests: New file.
52851         * tests/test-string.c: New file.
52852
52853         * modules/stdbool-tests: New file.
52854         * tests/test-stdbool.c: New file.
52855
52856         * modules/netinet_in-tests: New file.
52857         * tests/test-netinet_in.c: New file.
52858
52859         * modules/inttypes-tests: New file.
52860         * tests/test-inttypes.c: New file.
52861
52862         * modules/fcntl-tests: New file.
52863         * tests/test-fcntl.c: New file.
52864
52865         * modules/byteswap-tests: New file.
52866         * tests/test-byteswap.c: New file.
52867
52868         * modules/arpa_inet-tests: New file.
52869         * tests/test-arpa_inet.c: New file.
52870
52871 2007-02-17  Bruno Haible  <bruno@clisp.org>
52872
52873         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52874         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52875         if the corresponding module is not enabled. Emit link warnings if
52876         the function is used nevertheless.
52877         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52878         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52879         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52880         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52881         * modules/inttypes (Depends-on): Add link-warning.
52882         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52883         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52884         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52885         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52886         * modules/imaxdiv (configure.ac): Likewise.
52887         * modules/strtoimax (configure.ac): Likewise.
52888         * modules/strtoumax (configure.ac): Likewise.
52889
52890 2007-02-17  Bruno Haible  <bruno@clisp.org>
52891
52892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52893         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52894         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52895         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52896
52897 2007-02-17  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/link-warning: New file.
52900         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52901         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52902         * modules/string (Depends-on): Add link-warning.
52903         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52904         string.h.
52905         * MODULES.html.sh (Support for building libraries and executables): Add
52906         link-warning.
52907
52908 2007-02-17  Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52911         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52912         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52913         long lines.
52914
52915 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52916             Bruno Haible  <bruno@clisp.org>
52917
52918         * modules/tmpfile: New file.
52919         * lib/tmpfile.c: New file.
52920         * m4/tmpfile.m4: New file.
52921         * MODULES.html.sh (func_all_modules): New section "Input/output".
52922
52923 2007-02-15  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52926         (supports_delete_on_close): New function.
52927         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52928
52929 2007-02-14  Bruno Haible  <bruno@clisp.org>
52930
52931         * modules/mbspcasecmp-tests: New file.
52932         * tests/test-mbspcasecmp.sh: New file.
52933         * tests/test-mbspcasecmp.c: New file.
52934
52935         New module mbspcasecmp.
52936         * modules/mbspcasecmp: New file.
52937         * lib/mbspcasecmp.c: New file.
52938         * lib/string_.h (strncasecmp): Change warning message.
52939         (mbspcasecmp): New declaration.
52940         * m4/mbspcasecmp.m4: New file.
52941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52942         GNULIB_MBSPCASECMP.
52943         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52944         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52945
52946 2007-02-14  Bruno Haible  <bruno@clisp.org>
52947
52948         * modules/mbsncasecmp-tests: New file.
52949         * tests/test-mbsncasecmp.sh: New file.
52950         * tests/test-mbsncasecmp.c: New file.
52951
52952         New module mbsncasecmp.
52953         * modules/mbsncasecmp: New file.
52954         * lib/mbsncasecmp.c: New file.
52955         * lib/string_.h (mbsncasecmp): New declaration.
52956         * m4/mbsncasecmp.m4: New file.
52957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52958         GNULIB_MBSNCASECMP.
52959         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52960         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52961
52962 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52963
52964         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52965         Verify that it doesn't overlap with our flags.
52966         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52967         do not have the desired effect in multibyte locales; instead, use
52968         mbscasecmp.
52969         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52970         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52971         we don't require GNU fnmatch ourselves (if our users require it, they
52972         should do so explicitly).
52973
52974         Fix regex code so it doesn't rely on strcasecmp.
52975         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52976         Otherwise, include gnulib's langinfo.h.
52977         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52978         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52979         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52980         * modules/regex (FILES): Remove m4/codeset.m4.
52981         (Depends-on): Add localcharset.  Remove strcase.
52982
52983 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52984
52985         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52986         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52987
52988 2007-02-13  Bruno Haible  <bruno@clisp.org>
52989
52990         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52992
52993 2007-02-12  Bruno Haible  <bruno@clisp.org>
52994
52995         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52996         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52997         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52998         time warning rather than a link error.
52999
53000 2007-02-12  Bruno Haible  <bruno@clisp.org>
53001
53002         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53005
53006 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53007
53008         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53009         args, not 2.
53010
53011 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         New module 'time', so that apps can include <time.h> as per
53014         POSIX and GNU instead of separate include files like time_r.h
53015         and timegm.h.  This implementation tries out a simpler approach
53016         for replacing decls in standard include files (as compared to
53017         the string module), somewhat as an experiment.
53018
53019         * config/srclist.txt: Comment out mktime.c for now.
53020         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53021         since it doesn't apply any more.  Use generic wording instead.
53022         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53023         'time'.
53024         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53025         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53026         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53027         Don't include <sys/types.h>; no longer needed since we assume C89.
53028         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53029         * lib/strftime.c: Likewise.
53030         * lib/time_r.c: Likewise.
53031         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53032         * lib/nanosleep.c: Include <time.h> first, to check interface.
53033         * lib/strptime.c: Likewise.
53034         * lib/time_r.c: Likewise.
53035         * lib/timegm.c: Likewise.
53036         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53037         needed.
53038         * lib/timegm.c: Don't include timegm.h; no longer needed.
53039         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53040         time.h now handles any problems in that area.
53041         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53042         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53043         that time.h defines struct timespec.
53044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53045         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53046         handles that.
53047         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53048         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53049         needed.  Set REPLACE_LOCALTIME.
53050         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53051         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53052         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53053         nanosleep; time_h.m4 now does that.  Don't require
53054         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53055         module handles this now.
53056         * modules/getdate (Depends-on): Remove timespec.  Add time.
53057         * modules/nanosleep (Depends-on): Likewise.
53058         * modules/stat-time (Depends-on): Likewise.
53059         * modules/nanosleep (Include): Include time.h, not timespec.h.
53060         * modules/strptime (Files): Remove lib/strptime.h.
53061         (Depends-on): Add extensions, time.
53062         (Include): Include time.h, not strptime.h.
53063         * modules/time_r (Files): Remove lib/time_r.h.
53064         (Depends-on): Add time.
53065         (Include): Include time.h, not time_r.h.
53066         * modules/timegm: Likewise.
53067         * modules/timespec (Description): Now does timespec-related decls
53068         of our own, instead of struct timespec itself.
53069         (Depends-on): Add time; remove extensions.
53070         (Maintainer): Add self.
53071         * modules/utimecmp (Depends-on): Add time; remove timespec.
53072         * modules/utimens (Depends-on): Likewise.
53073         * modules/xnanosleep (Depends-on): Likewise.
53074
53075 2007-02-11  Bruno Haible  <bruno@clisp.org>
53076
53077         * lib/c-strstr.c: Include allocsa.h.
53078         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53079         * lib/c-strcasestr.c: Include allocsa.h.
53080         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53081         * lib/strcasestr.c: Include allocsa.h.
53082         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53083         * lib/mbsstr.c: Include allocsa.h.
53084         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53085         allocsa/freesa instead of malloc/free.
53086         * lib/mbscasestr.c: Include allocsa.h.
53087         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53088         allocsa/freesa instead of malloc/free.
53089         * modules/c-strstr (Depends-on): Add allocsa.
53090         * modules/c-strcasestr (Depends-on): Likewise.
53091         * modules/strcasestr (Depends-on): Likewise.
53092         * modules/mbsstr (Depends-on): Likewise.
53093         * modules/mbscasestr (Depends-on): Likewise.
53094
53095 2007-02-11  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53098
53099         * modules/mbsspn-tests: New file.
53100         * tests/test-mbsspn.sh: New file.
53101         * tests/test-mbsspn.c: New file.
53102
53103 2007-02-11  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53106
53107         * modules/mbspbrk-tests: New file.
53108         * tests/test-mbspbrk.sh: New file.
53109         * tests/test-mbspbrk.c: New file.
53110
53111 2007-02-11  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53114         unneeded cast.
53115
53116         * modules/mbscspn-tests: New file.
53117         * tests/test-mbscspn.sh: New file.
53118         * tests/test-mbscspn.c: New file.
53119
53120 2007-02-11  Bruno Haible  <bruno@clisp.org>
53121
53122         * modules/mbscasecmp-tests: New file.
53123         * tests/test-mbscasecmp.sh: New file.
53124         * tests/test-mbscasecmp.c: New file.
53125
53126 2007-02-11  Bruno Haible  <bruno@clisp.org>
53127
53128         Ensure O(n) worst-case complexity of mbscasestr.
53129         * lib/mbscasestr.c: Include stdbool.h.
53130         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53131         functions.
53132         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53133         the bookkeeping indicates that it's worth it.
53134         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53135
53136         * modules/mbscasestr-tests: New file.
53137         * tests/test-mbscasestr1.c: New file.
53138         * tests/test-mbscasestr2.sh: New file.
53139         * tests/test-mbscasestr2.c: New file.
53140         * tests/test-mbscasestr3.sh: New file.
53141         * tests/test-mbscasestr3.c: New file.
53142         * tests/test-mbscasestr4.sh: New file.
53143         * tests/test-mbscasestr4.c: New file.
53144         * m4/locale-tr.m4: New file.
53145
53146 2007-02-11  Bruno Haible  <bruno@clisp.org>
53147
53148         Ensure O(n) worst-case complexity of mbsstr.
53149         * lib/mbsstr.c: Include stdbool.h.
53150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53151         functions.
53152         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53153         bookkeeping indicates that it's worth it.
53154         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53155
53156         * modules/mbsstr-tests: New file.
53157         * tests/test-mbsstr1.c: New file.
53158         * tests/test-mbsstr2.sh: New file.
53159         * tests/test-mbsstr2.c: New file.
53160         * tests/test-mbsstr3.sh: New file.
53161         * tests/test-mbsstr3.c: New file.
53162         * m4/locale-fr.m4: New file.
53163
53164 2007-02-11  Bruno Haible  <bruno@clisp.org>
53165
53166         * lib/mbsrchr.c (mbsrchr): Fix bug.
53167
53168         * modules/mbsrchr-tests: New file.
53169         * tests/test-mbsrchr.sh: New file.
53170         * tests/test-mbsrchr.c: New file.
53171
53172 2007-02-11  Bruno Haible  <bruno@clisp.org>
53173
53174         * lib/mbschr.c (mbschr): Fix bug.
53175
53176         * modules/mbschr-tests: New file.
53177         * tests/test-mbschr.sh: New file.
53178         * tests/test-mbschr.c: New file.
53179         * m4/locale-zh.m4: New file.
53180
53181 2007-02-11  Bruno Haible  <bruno@clisp.org>
53182
53183         Support for copying multibyte string iterators.
53184         * lib/mbiter.h: Include <string.h>.
53185         (mbiter_multi_copy): New function.
53186         (mbi_copy): New macro.
53187         * lib/mbuiter.h: Include <string.h>.
53188         (mbuiter_multi_copy): New function.
53189         (mbui_copy): New macro.
53190
53191 2007-02-11  Bruno Haible  <bruno@clisp.org>
53192
53193         New module mbslen.
53194         * modules/mbslen: New file.
53195         * lib/mbslen.c: New file.
53196         * lib/string_.h (mbslen): New declaration.
53197         * m4/mbslen.m4: New file.
53198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53199         GNULIB_MBSLEN.
53200         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53201         * MODULES.html.sh (Internationalization functions): Add mbslen.
53202
53203 2007-02-11  Bruno Haible  <bruno@clisp.org>
53204
53205         Ensure O(n) worst-case complexity of strcasestr substitute.
53206         * lib/strcasestr.c: Include stdbool.h.
53207         (knuth_morris_pratt): New function.
53208         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53209         bookkeeping indicates that it's worth it.
53210         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53211
53212         * modules/strcasestr-tests: New file.
53213         * tests/test-strcasestr.c: New file.
53214
53215 2007-02-11  Bruno Haible  <bruno@clisp.org>
53216
53217         Ensure O(n) worst-case complexity of c_strcasestr.
53218         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53219         (knuth_morris_pratt): New function.
53220         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53221         the bookkeeping indicates that it's worth it.
53222         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53223
53224         * modules/c-strcasestr-tests: New file.
53225         * tests/test-c-strcasestr.c: New file.
53226
53227 2007-02-11  Bruno Haible  <bruno@clisp.org>
53228
53229         Ensure O(n) worst-case complexity of c_strstr.
53230         * lib/c-strstr.c: Include stdbool.h, string.h.
53231         (knuth_morris_pratt): New function.
53232         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53233         bookkeeping indicates that it's worth it.
53234         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53235
53236         * lib/c-strstr.c: Complete rewrite for maintainability.
53237
53238         * modules/c-strstr-tests: New file.
53239         * tests/test-c-strstr.c: New file.
53240
53241 2007-02-11  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53244         5.2.1 and earlier, whereby \055 was treated just like the range
53245         delimiter '-'.
53246         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53247
53248 2007-02-08  Bruno Haible  <bruno@clisp.org>
53249
53250         * modules/regex (Depends-on): Add stdbool.
53251         Reported by Dalibor Topic <robilad@kaffe.org>.
53252
53253 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53256         Prefer returning from main to exiting from it.
53257         Remove unnecessary parens after sizeof.
53258
53259 2007-02-05  Bruno Haible  <bruno@clisp.org>
53260
53261         New module mbssep.
53262         * modules/mbssep: New file.
53263         * lib/mbssep.c: New file.
53264         * lib/string_.h (strsep): Add a conditional link warning.
53265         (mbssep): New declaration.
53266         * m4/mbssep.m4: New file.
53267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53268         GNULIB_MBSSEP.
53269         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53270         * MODULES.html.sh (Internationalization functions): Add mbssep.
53271
53272 2007-02-05  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53275         Optimize search in case of 1 delimiter.
53276
53277 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53278
53279         * lib/acl.h: Include sys/types.h before sys/acl.h.
53280
53281 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53282
53283         Merge upstream fix for glibc bugzilla #3957:
53284
53285         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53286
53287         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53288         bit for RE_HAT_LISTS_NOT_NEWLINE.
53289         (build_charclass_op): Remove bogus comment.
53290
53291 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53292
53293         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53294
53295 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53298         * lib/memmem.c [!defined _LIBC]: Include config.h.
53299
53300 2007-02-04  Bruno Haible  <bruno@clisp.org>
53301
53302         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53303         warning message.
53304
53305 2007-02-04  Bruno Haible  <bruno@clisp.org>
53306
53307         New module mbstok_r.
53308         * modules/mbstok_r: New file.
53309         * lib/mbstok_r.c: New file.
53310         * lib/string_.h (strtok_r): Change argument names to match the
53311         comments. Add a conditional link warning.
53312         (mbstok_r): New declaration.
53313         * m4/mbstok_r.m4: New file.
53314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53315         GNULIB_MBSTOK_R.
53316         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53317         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53318
53319 2007-02-04  Bruno Haible  <bruno@clisp.org>
53320
53321         New module mbsspn.
53322         * modules/mbsspn: New file.
53323         * lib/mbsspn.c: New file.
53324         * lib/string_.h (strspn): Add a conditional link warning.
53325         (mbsspn): New declaration.
53326         * m4/mbsspn.m4: New file.
53327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53328         GNULIB_MBSSPN.
53329         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53330         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53331
53332 2007-02-04  Bruno Haible  <bruno@clisp.org>
53333
53334         New module mbspbrk.
53335         * modules/mbspbrk: New file.
53336         * lib/mbspbrk.c: New file.
53337         * lib/string_.h (strpbrk): Add a conditional link warning.
53338         (mbspbrk): New declaration.
53339         * m4/mbspbrk.m4: New file.
53340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53341         GNULIB_MBSPBRK.
53342         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53343         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53344
53345 2007-02-04  Bruno Haible  <bruno@clisp.org>
53346
53347         New module mbscspn.
53348         * modules/mbscspn: New file.
53349         * lib/mbscspn.c: New file.
53350         * lib/string_.h (strcspn): Add a conditional link warning.
53351         (mbscspn): New declaration.
53352         * m4/mbscspn.m4: New file.
53353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53354         GNULIB_MBSCSPN.
53355         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53356         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53357
53358 2007-02-04  Bruno Haible  <bruno@clisp.org>
53359
53360         New module mbscasestr, reduced goal of strcasestr.
53361         * modules/mbscasestr: New file.
53362         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53363         (mbscasestr): Renamed from strcasestr.
53364         * lib/strcasestr.c: Don't include mbuiter.h.
53365         (strcasestr): Remove support for multibyte locales.
53366         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53367         Change the conditional link warning.
53368         (mbscasestr): New declaration.
53369         * m4/mbscasestr.m4: New file.
53370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53371         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53372         REPLACE_STRCASESTR.
53373         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53375         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53376         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53377         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53378         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53379         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53380         (Depends-on): Remove mbuiter.
53381         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53382
53383 2007-02-04  Bruno Haible  <bruno@clisp.org>
53384
53385         Simplify handling of strncasecmp.
53386         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53387         the conditional link warning.
53388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53389         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53390         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53391         * modules/strcase (configure.ac): Don't invoke
53392         gl_STRING_MODULE_INDICATOR.
53393         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53394
53395 2007-02-04  Bruno Haible  <bruno@clisp.org>
53396
53397         New module mbscasecmp, reduced goal of strcasecmp.
53398         * modules/mbscasecmp: New file.
53399         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53400         (mbscasecmp): Renamed from strcasecmp.
53401         * lib/strcasecmp.c: Don't include mbuiter.h.
53402         (strcasecmp): Remove support for multibyte locales.
53403         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53404         Change the conditional link warning.
53405         (mbscasecmp): New declaration.
53406         * m4/mbscasecmp.m4: New file.
53407         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53408         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53409         REPLACE_STRCASECMP.
53410         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53412         GNULIB_MBSCASECMP.
53413         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53414         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53415         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53416         (Depends-on): Remove mbuiter.
53417         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53418
53419 2007-02-04  Bruno Haible  <bruno@clisp.org>
53420
53421         New module mbsstr. Remove module strstr.
53422         * modules/mbsstr: New file.
53423         * modules/strstr: Remove file.
53424         * lib/mbsstr.c: Renamed from lib/strstr.c.
53425         (mbsstr): Renamed from strstr.
53426         * lib/string_.h (strstr): Remove declaration. Change the conditional
53427         link warning.
53428         (mbsstr): New declaration.
53429         * m4/mbsstr.m4: New file.
53430         * m4/strstr.m4: Remove file.
53431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53432         REPLACE_STRSTR.
53433         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53434         Don't initialize GNULIB_STRSTR.
53435         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53436         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53437         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53438         (Support for systems lacking ANSI C 89): Remove strstr.
53439
53440 2007-02-04  Bruno Haible  <bruno@clisp.org>
53441
53442         New module mbsrchr.
53443         * modules/mbsrchr: New file.
53444         * lib/mbsrchr.c: New file.
53445         * lib/string_.h (strrchr): Add a conditional link warning.
53446         (mbsrchr): New declaration.
53447         * m4/mbsrchr.m4: New file.
53448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53449         GNULIB_MBSRCHR.
53450         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53451         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53452
53453 2007-02-04  Bruno Haible  <bruno@clisp.org>
53454
53455         New module mbschr.
53456         * modules/mbschr: New file.
53457         * lib/mbschr.c: New file.
53458         * lib/string_.h (strchr): Add a conditional link warning.
53459         (mbschr): New declaration.
53460         * m4/mbschr.m4: New file.
53461         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53462         GNULIB_MBSCHR.
53463         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53464         * MODULES.html.sh (Internationalization functions): Add mbschr.
53465
53466 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53467
53468         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53469
53470         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53471
53472 2007-02-04  Bruno Haible  <bruno@clisp.org>
53473
53474         New module description section 'configure.ac-early'.
53475         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53476         (func_get_autoconf_early_snippet): New function.
53477         (func_import, func_create_testdir): Use it. Remove special cases for
53478         modules 'extensions' and 'lock'.
53479         * modules/extensions (configure.ac-early): Require
53480         gl_USE_SYSTEM_EXTENSIONS.
53481         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53482
53483 2007-02-04  Bruno Haible  <bruno@clisp.org>
53484
53485         Make use of gcj-4.3's -fsource and -ftarget option.
53486         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53487         and if so try the options -fsource and -ftarget.
53488         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53489         source_version, ftarget_option, target_version arguments.
53490         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53491         (is_envjavac_oldgcj_14_14_usable): Renamed from
53492         is_envjavac_gcj_14_14_usable.
53493         (is_envjavac_oldgcj_14_13_usable): Renamed from
53494         is_envjavac_gcj_14_13_usable.
53495         (is_gcj_present): Update.
53496         (is_gcj_43, is_gcj43_usable): New functions.
53497         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53498         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53499         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53500         try the options -fsource and -ftarget.
53501
53502 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53503
53504         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53505         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53506         larger value.
53507
53508 2007-02-03  Jim Meyering  <jim@meyering.net>
53509
53510         Give tools a better chance to allocate space for very large buffers.
53511         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53512
53513         Make pwd and readlink work also when run with an unreadable parent dir
53514         on systems with openat support.
53515         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53516         provided getcwd function, even when we have openat support.
53517         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53518
53519 2007-02-02  Bruno Haible  <bruno@clisp.org>
53520
53521         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53522         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53523         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53524         portability problems if one of these functions is only used on specific
53525         platforms.
53526         Reported by Paul Eggert.
53527
53528 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53531         is causing more trouble than it's curing.
53532         * lib/regex_internal.h (__mempcpy): Remove.
53533         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53534         (and make the code a tad smaller to boot).
53535         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53536
53537 2007-02-02  Jim Meyering  <jim@meyering.net>
53538
53539         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53540         section, not in the Makefile.am: one.
53541
53542 2007-02-02  Eric Blake  <ebb9@byu.net>
53543
53544         * lib/strchrnul.c: Always include config.h first.
53545
53546         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53547         gnulib strstr is not necessary here.
53548
53549 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53550
53551         * m4/socklen.m4: Fix typo.
53552
53553 2007-02-02  Eric Blake  <ebb9@byu.net>
53554
53555         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53556         * modules/netinet_in (Makefile.am): Likewise.
53557
53558 2007-02-01  Bruno Haible  <bruno@clisp.org>
53559
53560         * lib/string_.h (GL_LINK_WARNING): New macro.
53561         (strcasecmp, strstr, strcasestr): If provided by the system,
53562         conditionally define as a macro that leads to a warning instead of to
53563         an error.
53564         (strncasecmp): Conditionally define as a macro that leads to a warning.
53565
53566 2007-02-01  Karl Berry  <karl@gnu.org>
53567
53568         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53569
53570 2007-02-01  Bruno Haible  <bruno@clisp.org>
53571
53572         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53573         renamings.
53574
53575 2007-02-01  Eric Blake  <ebb9@byu.net>
53576
53577         * modules/regex (Depends-on): Revert dependence on mempcpy.
53578         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53579         module's definition of mempcpy.
53580         Reported by Paul Eggert.
53581
53582 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53583
53584         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53585         the symbol XYZ before redefining it.  This fixes a problem with
53586         programs that don't use XYZ, when compiled on systems that define
53587         XYZ to something else.
53588
53589 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53590
53591         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53592         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53593         writeable to group or other and (2) is intended to have a special
53594         mode bit that is set or cleared.  In such a case, the directory
53595         should be neither group- nor other-writeable until the special
53596         mode bits are right.
53597
53598 2007-01-31  Eric Blake  <ebb9@byu.net>
53599
53600         * modules/mountlist (Depends-on): Add strstr.
53601
53602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53603         bug.
53604         * modules/string (Makefile.am): Remove redundant replacement.
53605         * modules/regex (Depends-on): Add mempcpy.
53606
53607 2007-01-31  Bruno Haible  <bruno@clisp.org>
53608
53609         New module description field 'Link'.
53610         * gnulib-tool (func_usage): Document --extract-link-directive.
53611         (sed_extract_prog): Recognize 'Link' directive.
53612         (func_get_link_directive): New function.
53613         (func_import): Show summary of link directives.
53614         Handle --extract-link-directive option.
53615         * modules/acl (Link): New section.
53616         * modules/clock-time (Link): New section.
53617         * modules/euidaccess (Link): New section.
53618         * modules/gettext (Link): New section.
53619         * modules/iconv (Link): New section.
53620         * modules/lock (Link): New section.
53621         * modules/nanosleep (Link): New section.
53622         * modules/readline (Link): New section.
53623
53624 2007-01-27  Bruno Haible  <bruno@clisp.org>
53625
53626         Enforce the use of gnulib modules for unportable <string.h> functions.
53627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53628         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53629         (gl_HEADER_STRING_H_BODY): Require it.
53630         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53631         the symbol XYZ to one that gives a link error.
53632         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53633         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53634         * modules/mempcpy (configure.ac): Likewise.
53635         * modules/memrchr (configure.ac): Likewise.
53636         * modules/stpcpy (configure.ac): Likewise.
53637         * modules/stpncpy (configure.ac): Likewise.
53638         * modules/strcase (configure.ac): Likewise.
53639         * modules/strcasestr (configure.ac): Likewise.
53640         * modules/strchrnul (configure.ac): Likewise.
53641         * modules/strdup (configure.ac): Likewise.
53642         * modules/strndup (configure.ac): Likewise.
53643         * modules/strnlen (configure.ac): Likewise.
53644         * modules/strpbrk (configure.ac): Likewise.
53645         * modules/strsep (configure.ac): Likewise.
53646         * modules/strstr (configure.ac): Likewise.
53647         * modules/strtok_r (configure.ac): Likewise.
53648
53649 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53650
53651         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53652
53653 2007-01-30  Jim Meyering  <jim@meyering.net>
53654
53655         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53656
53657 2007-01-29  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53660         * lib/execute.c: Likewise.
53661         * lib/pipe.c: Likewise.
53662         * lib/printf-args.h: Likewise.
53663         * lib/printf-args.c: Likewise.
53664         * lib/printf-parse.c: Likewise.
53665         * lib/vasnprintf.c: Likewise.
53666
53667 2007-01-29  Eric Blake  <ebb9@byu.net>
53668
53669         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53670         declaration.
53671
53672 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * lib/strptime.h (strptime): Use 'restrict' for args where
53675         POSIX requires this.
53676         * lib/strptime.c (strptime): Likewise.
53677         Change license notice from LGPL to GPL, since gnulib-tool will
53678         change this as needed.
53679         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53680         defined.
53681         Include "strptime.h" first, to check interface.
53682         Do not #undef _LIBC and _NL_CURRENT.
53683         Do not include <stdlib.h>; no longer needed.
53684         Include "time_r.h" and declare ptime_locale_status
53685         only if _LIBC is not defined.
53686         (__P): Remove unused macro.
53687         (match_string): Bring back glibc version, but use it only if _LIBC
53688         is defined.
53689         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53690         Remove unnecessary assertion and abort() call.
53691         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53692         * m4/strptime.m4: Fix serial number comment.
53693         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53694         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53695         (Depends-on): Add time_r.
53696
53697 2007-01-29  Bruno Haible  <bruno@clisp.org>
53698
53699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53700         strptime.
53701         * modules/strptime (Depends-on): Add stdbool.
53702         * lib/strptime.h: Include <time.h> always. Add comments.
53703
53704 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53705
53706         * modules/strptime: New file.
53707         * lib/strptime.h: New file.
53708         * lib/strptime.c: New file.
53709         * m4/strptime.m4: New file.
53710
53711 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * MODULES.html.sh: New module mpsort.
53714         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53715
53716         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53717         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53719         All uses changed.
53720         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53721         All uses changed.
53722         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53723         to _Restrict_.
53724         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53725         the parameter matches the prototype.
53726
53727 2007-01-28  Jim Meyering  <jim@meyering.net>
53728
53729         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53730         sys/time.h here, reverting that part of the previous patch:
53731         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53732
53733 2007-01-28  Bruno Haible  <bruno@clisp.org>
53734
53735         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53736         value of $(SYS_TIME_H).
53737         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53738         remove it conditionally, too. [added by Jim Meyering]
53739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53740         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53741         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53742         GETTIMEOFDAY_REPLACEMENT to 1.
53743
53744 2007-01-28  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53747         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53749         Set UNISTD_H instead of UNISTD_H2.
53750         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53751
53752 2007-01-28  Bruno Haible  <bruno@clisp.org>
53753
53754         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53755         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53756
53757 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53758
53759         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53760         (func_create_testdir): Ensure C locale for `grep' and `tr'
53761         character ranges.
53762         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53763         ACLOCAL_AMFLAGS parsing state machine.
53764
53765 2007-01-27  Bruno Haible  <bruno@clisp.org>
53766
53767         * modules/unistr/base: Update.
53768
53769 2007-01-27  Bruno Haible  <bruno@clisp.org>
53770
53771         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53772         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53773         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53774         modules/unistr/u32-mbtouc.
53775         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53776         * lib/unistr.h: Update.
53777         * lib/linebreak.c: Update.
53778         * modules/unistr/u32-mbtouc: Renamed from
53779         modules/unistr/u32-mbtouc-safe.
53780         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53781         * lib/unistr.h: Update.
53782         * lib/unistr/u32-to-u8.c: Update.
53783         * lib/unistr/u32-to-u16.c: Update.
53784
53785 2007-01-27  Bruno Haible  <bruno@clisp.org>
53786
53787         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53788         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53789         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53790         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53791         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53792         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53793         modules/unistr/u16-mbtouc.
53794         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53795         * lib/unistr.h: Update.
53796         * lib/linebreak.c: Update.
53797         * modules/linebreak: Update.
53798         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53799         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53800         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53801         * modules/unistr/u16-mbtouc: Renamed from
53802         modules/unistr/u16-mbtouc-safe.
53803         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53804         * lib/unistr.h: Update.
53805         * lib/unistr/u16-to-u8.c: Update.
53806         * modules/unistr/u16-to-u8: Update.
53807         * lib/unistr/u16-to-u32.c: Update.
53808         * modules/unistr/u16-to-u32: Update.
53809
53810 2007-01-27  Bruno Haible  <bruno@clisp.org>
53811
53812         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53813         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53814         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53815         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53816         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53817         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53818         modules/unistr/u8-mbtouc.
53819         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53820         * lib/unistr.h: Update.
53821         * lib/striconveh.c: Update.
53822         * modules/striconveh: Update.
53823         * lib/linebreak.c: Update.
53824         * modules/linebreak: Update.
53825         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53826         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53827         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53828         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53829         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53830         * lib/unistr.h: Update.
53831         * lib/striconveh.c: Update.
53832         * modules/striconveh: Update.
53833         * lib/unistr/u8-to-u16.c: Update.
53834         * modules/unistr/u8-to-u16: Update.
53835         * lib/unistr/u8-to-u32.c: Update.
53836         * modules/unistr/u8-to-u32: Update.
53837
53838 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53839
53840         Sync from Libtool.
53841         * lib/argz.c: Do not include strings.h nor memory.h, include
53842         string.h unconditionally.  Patch by Simon Josefsson.
53843
53844 2007-01-27  Bruno Haible  <bruno@clisp.org>
53845
53846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53847         from gl_HEADER_STRING_H_BODY.
53848         (gl_HEADER_STRING_H_BODY): Require it.
53849         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53850         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53851         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53852         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53854         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53856         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53857         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53858         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53859         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53860         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53861         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53862         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53863         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53864
53865 2007-01-27  Bruno Haible  <bruno@clisp.org>
53866
53867         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53868         check_PROGRAMS into noinst_PROGRAMS.
53869         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53870         check_PROGRAMS in this case.
53871         (func_import): Set for_test to false.
53872         (func_create_testdir): Set for_test to true.
53873
53874 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53875             Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53878         (Depends-on): Add string.
53879         (Includes): Use <string.h> instead of strcasestr.h.
53880         * modules/string (Makefile.am): Also substitute the value of
53881         REPLACE_STRCASESTR.
53882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53883         assume strcasestr is declared in <string.h> not <strings.h>. Also
53884         set REPLACE_STRCASESTR.
53885         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53886         REPLACE_STRCASESTR.
53887         * lib/strcasestr.h: Remove file.
53888         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53889         * lib/string_.h (strcasestr): New declaration.
53890
53891 2007-01-27  Bruno Haible  <bruno@clisp.org>
53892
53893         * lib/string_.h: Use 'extern'.
53894
53895 2007-01-27  Jim Meyering  <jim@meyering.net>
53896
53897         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53898         of set-but-not-used local, "q".
53899
53900         * lib/mempcpy.c: Include <config.h> before <string.h>.
53901         This fixes a compilation error on HP-UX, due to the system's
53902         "restrict"-using mempcpy prototype.
53903
53904 2007-01-26  Bruno Haible  <bruno@clisp.org>
53905
53906         Small optimization.
53907         * lib/javacomp.c: Include c-strstr.h.
53908          (is_envjavac_gcj): Use c_strstr instead of strstr.
53909         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53910
53911 2007-01-26  Bruno Haible  <bruno@clisp.org>
53912
53913         * MODULES.html.sh (Unicode string functions): Add the new modules.
53914
53915         * modules/uniconv/u32-strconv-to-locale: New file.
53916         * lib/uniconv/u32-strconv-to-locale.c: New file.
53917
53918         * modules/uniconv/u16-strconv-to-locale: New file.
53919         * lib/uniconv/u16-strconv-to-locale.c: New file.
53920
53921         * modules/uniconv/u8-strconv-to-locale: New file.
53922         * lib/uniconv/u8-strconv-to-locale.c: New file.
53923
53924         * modules/uniconv/u32-strconv-from-locale: New file.
53925         * lib/uniconv/u32-strconv-from-locale.c: New file.
53926
53927         * modules/uniconv/u16-strconv-from-locale: New file.
53928         * lib/uniconv/u16-strconv-from-locale.c: New file.
53929
53930         * modules/uniconv/u8-strconv-from-locale: New file.
53931         * lib/uniconv/u8-strconv-from-locale.c: New file.
53932
53933         * modules/uniconv/u32-strconv-to-enc: New file.
53934         * lib/uniconv/u32-strconv-to-enc.c: New file.
53935         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53936         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53937
53938         * modules/uniconv/u16-strconv-to-enc: New file.
53939         * lib/uniconv/u16-strconv-to-enc.c: New file.
53940         * lib/uniconv/u-strconv-to-enc.h: New file.
53941         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53942         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53943
53944         * modules/uniconv/u8-strconv-to-enc: New file.
53945         * lib/uniconv/u8-strconv-to-enc.c: New file.
53946         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53947         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53948
53949         * modules/uniconv/u32-strconv-from-enc: New file.
53950         * lib/uniconv/u32-strconv-from-enc.c: New file.
53951         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53952         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53953
53954         * modules/uniconv/u16-strconv-from-enc: New file.
53955         * lib/uniconv/u16-strconv-from-enc.c: New file.
53956         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53957         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53958
53959         * modules/uniconv/u8-strconv-from-enc: New file.
53960         * lib/uniconv/u8-strconv-from-enc.c: New file.
53961         * lib/uniconv/u-strconv-from-enc.h: New file.
53962         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53963         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53964
53965         * modules/uniconv/u32-conv-from-enc: New file.
53966         * lib/uniconv/u32-conv-from-enc.c: New file.
53967         * modules/uniconv/u32-conv-from-enc-tests: New file.
53968         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53969
53970         * modules/uniconv/u16-conv-from-enc: New file.
53971         * lib/uniconv/u16-conv-from-enc.c: New file.
53972         * lib/uniconv/u-conv-from-enc.h: New file.
53973         * modules/uniconv/u16-conv-from-enc-tests: New file.
53974         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53975
53976         * modules/uniconv/u8-conv-from-enc: New file.
53977         * lib/uniconv/u8-conv-from-enc.c: New file.
53978         * modules/uniconv/u8-conv-from-enc-tests: New file.
53979         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53980
53981         * modules/uniconv/base: New file.
53982         * lib/uniconv.h: New file.
53983
53984 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53985
53986         * doc/gnulib-tool.texi (Initial import): Update to match current
53987         behavior with strdup module.
53988         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53989         * lib/memmem.h: Remove; all uses removed.  This is now done
53990         by <string.h>.
53991         * lib/mempcpy.h: Likewise.
53992         * lib/memrchr.h: Likewise.
53993         * lib/stpcpy.h: Likewise.
53994         * lib/stpncpy.h: Likewise.
53995         * lib/strcase.h: Likewise.
53996         * lib/strchrnul.h: Likewise.
53997         * lib/strdup.h: Likewise.
53998         * lib/strndup.h: Likewise.
53999         * lib/strnlen.h: Likewise.
54000         * lib/strpbrk.h: Likewise.
54001         * lib/strsep.h: Likewise.
54002         * lib/strstr.h: Likewise.
54003         * lib/strtok_r.h: Likewise.
54004         * lib/string_.h: New file.
54005         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54006         Rely on <string.h> instead.
54007         * lib/canon-host.c: Likewise.
54008         * lib/chdir-long.c: Likewise.
54009         * lib/concatpath.c: Likewise.
54010         * lib/exclude.c: Likewise.
54011         * lib/fchdir.c: Likewise.
54012         * lib/getaddrinfo.c: Likewise.
54013         * lib/getcwd.c: Likewise.
54014         * lib/getsubopt.c: Likewise.
54015         * lib/glob.c: Likewise.
54016         * lib/hard-locale.c: Likewise.
54017         * lib/iconvme.c: Likewise.
54018         * lib/javacomp.c: Likewise.
54019         * lib/mempcpy.c: Likewise.
54020         * lib/memrchr.c: Likewise.
54021         * lib/regex_internal.h: Likewise.
54022         * lib/stpncpy.c: Likewise.
54023         * lib/strcasecmp.c: Likewise.
54024         * lib/strchrnul.c: Likewise.
54025         * lib/strdup.c: Likewise.
54026         * lib/striconv.c: Likewise.
54027         * lib/striconveh.c: Likewise.
54028         * lib/striconveha.c: Likewise.
54029         * lib/strncasecmp.c: Likewise.
54030         * lib/strndup.c: Likewise.
54031         * lib/strnlen.c: Likewise.
54032         * lib/strsep.c: Likewise.
54033         * lib/strstr.c: Likewise.
54034         * lib/strtok_r.c: Likewise.
54035         * lib/userspec.c: Likewise.
54036         * lib/w32spawn.h: Likewise.
54037         * lib/xstrndup.c: Likewise.
54038         * lib/mountlist.c (strstr): Remove decl.
54039         * m4/string_h.m4: New file.
54040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54041         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54043         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54044         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54045         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54046         Set REPLACE_STRCASECMP if necessary.
54047         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54048         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54049         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54050         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54051         HAVE_DECL_STRDUP if necessary.
54052         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54053         since gl_FUNC_STRNDUP does that now.
54054         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54055         Check for decl here...
54056         (gl_PREREQ_STRNLEN): ... not here.
54057         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54058         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54059         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54061         necessary.
54062         * modules/string: New file.
54063         * modules/memmem (Files): Remove special-purpose include file.
54064         (Depends-on): Add string.
54065         (Include): Include <string.h>, not the removed file.
54066         * modules/mempcpy: Likewise.
54067         * modules/memrchr: Likewise.
54068         * modules/stpcpy: Likewise.
54069         * modules/stpncpy: Likewise.
54070         * modules/strcase: Likewise.
54071         * modules/strchrnul: Likewise.
54072         * modules/strdup: Likewise.
54073         * modules/strndup: Likewise.
54074         * modules/strnlen: Likewise.
54075         * modules/strpbrk: Likewise.
54076         * modules/strsep: Likewise.
54077         * modules/strstr: Likewise.
54078         * modules/strtok_r: Likewise.
54079         * tests/test-dirname.c: Don't include "strdup.h", since
54080         <string.h> now suffices.
54081         * tests/test-memmem.c: Don't include "memmem.h", since
54082         <string.h> now suffices.
54083
54084 2007-01-25  Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54087         *resultp is 0.
54088
54089         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54090         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54091         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54092         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54093
54094         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54095         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54096         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54097         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54098         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54099         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54100
54101 2007-01-24  Bruno Haible  <bruno@clisp.org>
54102
54103         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54104         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54105         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54106         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54107         gl_FUNC_FTS_CORE.
54108         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54109         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54110         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54111         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54112         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54113         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54114         gl_FUNC_FCHOWNAT.
54115         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54116         gl_FUNC_STRFTIME.
54117         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54118         Reported by Ralf Wildenhues.
54119
54120 2007-01-24  Bruno Haible  <bruno@clisp.org>
54121
54122         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54123         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54124         gl_GETADDRINFO.
54125         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54126         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54127         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54128
54129 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54130
54131         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54132         Don't use 'exit'; just return from 'main'.
54133         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54134
54135         * lib/fnmatch_.h: Readjust white space and comments to match
54136         glibc, to avoid spurious diffs.
54137
54138 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54141         2004-12-01 change by Jakub Jelinek, since this code won't compile
54142         if !LIBC.  Problem reported by Bob Proulx.
54143
54144 2007-01-23  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/striconveh.c: Include c-strcaseeq.h.
54147         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54148         * modules/striconveh (Depends-on): Add c-strcaseeq.
54149
54150 2007-01-23  Bruno Haible  <bruno@clisp.org>
54151
54152         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54153
54154         * modules/c-strcaseeq: New file.
54155         * lib/c-strcaseeq.h: New file.
54156
54157         * modules/streq: New file.
54158         * lib/streq.h: New file.
54159
54160 2007-01-23  Bruno Haible  <bruno@clisp.org>
54161
54162         * modules/striconveha-tests: New file.
54163         * tests/test-striconveha.c: New file.
54164
54165         * lib/striconveha.h: Include <stdbool.h>.
54166         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54167         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54168         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54169         (mem_iconveha): New function.
54170         (str_iconveha_notranslit): Renamed from str_iconveha.
54171         (str_iconveha): New function.
54172         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54173         c-strcase.
54174
54175 2007-01-23  Bruno Haible  <bruno@clisp.org>
54176
54177         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54178         encodings without forgiving before trying any encoding with handler.
54179         (str_iconveha): Try all encodings without forgiving before trying any
54180         encoding with handler.
54181
54182 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54183
54184         Import the following changes from libc.
54185
54186         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54187
54188         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54189
54190         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54191
54192         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54193         normal_bracket label.
54194
54195         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54196
54197         [BZ #361]
54198         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54199         to normal_bracket after fetching the next character.
54200
54201 2007-01-22  Bruno Haible  <bruno@clisp.org>
54202
54203         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54204         argument.
54205         * lib/striconveh.c (iconv_carefully_1): New function.
54206         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54207         argument.
54208         (str_cd_iconveh): Update.
54209         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54210         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54211         * tests/test-striconveh.c (MAGIC): New macro.
54212         (new_offsets): New function.
54213         (main): Test call with and without offsets.
54214
54215 2007-01-22  Bruno Haible  <bruno@clisp.org>
54216
54217         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54218         * modules/sys_select (Makefile.am): Likewise.
54219         * modules/sys_socket (Makefile.am): Likewise.
54220         * modules/sys_time (Makefile.am): Likewise.
54221
54222 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * modules/gettimeofday (License): Change from GPL to LGPL, since
54225         gettimeofday is a library function.
54226
54227 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54228
54229         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54230
54231 2007-01-21  Bruno Haible  <bruno@clisp.org>
54232
54233         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54234
54235 2007-01-21  Bruno Haible  <bruno@clisp.org>
54236
54237         * modules/striconveha: New file.
54238         * lib/striconveha.h: New file.
54239         * lib/striconveha.c: New file.
54240         * MODULES.html.sh (Internationalization functions): Add striconveha.
54241         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54242         string.
54243         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54244
54245 2007-01-21  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54248         * lib/striconveh.c (str_iconveh): Likewise.
54249
54250 2007-01-21  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/striconveh.h (mem_iconveh): New declaration.
54253         * lib/striconveh.c (mem_iconveh): New function.
54254         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54255
54256 2007-01-21  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54259
54260         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54261         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54262         original result buffer.
54263         (str_cd_iconveh): Update.
54264         * tests/test-striconveh.c (main): Update.
54265
54266         * lib/striconv.h (mem_cd_iconv): Change specification.
54267         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54268         result buffer.
54269         (str_cd_iconv): Update.
54270         * tests/test-striconv.c (main): Update.
54271
54272 2007-01-21  Bruno Haible  <bruno@clisp.org>
54273
54274         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54275
54276 2007-01-20  Jim Meyering  <jim@meyering.net>
54277
54278         * lib/userspec.c (parse_with_separator): If a user or group string
54279         starts with "+", skip the corresponding name-to-ID look-up, since
54280         such a look-up must fail: user and group names may not include "+".
54281
54282 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54283
54284         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54285         since we now assume the sys_time module.
54286         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54287         check for sys/time.h; no longer needed.
54288         * modules/poll (Depends-on): Depend on sys_time.
54289
54290 2007-01-18  Bruno Haible  <bruno@clisp.org>
54291
54292         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54293         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54294
54295         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54296         gettimeofday.
54297
54298         * tests/test-gettimeofday.c: Include <time.h>.
54299         (dummy): Remove variable.
54300
54301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54302         gl_HEADER_SYS_TIME_H.
54303         (gl_HEADER_SYS_TIME_H): New macro.
54304
54305         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54306         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54307         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54308         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54309         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54311         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54312         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54313         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54314         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54315         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54316
54317         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54318         last change; it caused a compilation error when cross-compiling to
54319         Cygwin.
54320
54321 2007-01-18  Jim Meyering  <jim@meyering.net>
54322
54323         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54324         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54325         than the race-prone "test -d sys || mkdir sys".
54326         (configure.ac): Use AC_PROG_MKDIR_P.
54327         * modules/sys_select: Likewise.
54328         * modules/sys_socket: Likewise.
54329         * modules/sys_time: Likewise.
54330
54331 2007-01-18  Eric Blake  <ebb9@byu.net>
54332
54333         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54334         replace gettimeofday.
54335         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54336         name, to avoid infinite recursion.
54337
54338 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54339
54340         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54341         module sys_time.
54342         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54343         assume timespec.h defines struct timeval.
54344         * lib/settime.c: Likewise.
54345         * lib/utimens.c: Likewise.
54346         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54347         since we now assume the gettimeofday module.
54348         * lib/tempname.c (__gen_tempname): Likewise.
54349         * lib/gettimeofday.h: Remove.
54350         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54351         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54352         Include <time.h>, for 'time()'.
54353         (localtime_buffer_addr): Also use this workaround if
54354         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54355         to simplify the uses.  All uses changed.
54356         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54357         that #undef is inside {}, and 'const' follows type name consistently.
54358         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54359         (gettimeofday): Do not use the maximum possible value for
54360         tv->tv_usec, since that might break usages other than ls.c.
54361         Instead, we'll leave ls.c alone.  This undoes today's patch
54362         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54363         we've never observed the problem but might as well keep the
54364         canary.
54365         * lib/nanosleep.c: Include timespec.h first, for interface check.
54366         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54367         now assume the sys_time module.
54368         * lib/tempname.c: Likewise.
54369         * lib/timespec.h: Likewise.
54370         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54371         needed.
54372         * lib/strftime.c: Likewise.
54373         * lib/timespec.h: Likewise.
54374         * lib/posixtm.c: Include posixtm.h first, for interface check.
54375         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54376         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54377         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54378         * lib/sys_time_.h: New file.
54379         * lib/timespec.h (struct timespec): Use long int, not long.
54380         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54381         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54382         Remove obsolescent call to AC_HEADER_TIME.
54383         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54385         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54386         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54387         Likewise.
54388         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54389         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54391         into the sys_time module.  Check for gettimeofday just once.
54392         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54393         for gettimeofday signature to just check the signature.  Merely
54394         compile it, since linking doesn't test signature.  Improve test for
54395         whether gettimeofday.o is actually needed.
54396         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54397         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54398         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54399         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54400         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54401         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54402         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54403         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54404         than worrying about sys/time.h.
54405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54406         Don't bother worrying about TIME_WITH_SYS_TIME.
54407         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54408         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54409         * m4/sys_time_h.m4: New file.
54410         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54411         Don't include sys/time.h.  Return from main rather than exiting.
54412         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54413         all uses changed.
54414         * modules/gethrxtime (Depends-on): Add sys_time.
54415         * modules/gettime (Depends-on): Likewise.
54416         * modules/gettimeofday (Depends-on): Likewise.
54417         * modules/nanosleep (Depends-on): Likewise.
54418         * modules/settime (Depends-on): Likewise.
54419         * modules/tempname (Depends-on): Likewise.
54420         * modules/utimens (Depends-on): Likewise.
54421         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54422         (Include): Change back to <sys/time.h>.
54423         (Maintainer): Add self.
54424         * modules/sys_time: New file.
54425         * modules/tempname (Depends-on): Add gettimeofday.
54426         * tests/test-gettimeofday.c: Include <sys/time.h>
54427         rather than gettimeofday.h.
54428
54429 2007-01-17  Bruno Haible  <bruno@clisp.org>
54430
54431         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54432         the license default to GPL.
54433         (func_create_testdir): Don't complain if a module is LGPL and its
54434         tests module depends on GPLed modules.
54435
54436 2007-01-17  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/gettimeofday.c (gettimeofday): Add code for the case
54439         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54440         maximum possible value for tv->tv_usec, rather than the minimum one.
54441
54442 2005-10-08  Martin Lambers  <marlam@marlam.de>
54443 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54444 2007-01-16  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54447         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54448         gl_FUNC_GETTIMEOFDAY.
54449         (Include): Add gettimeofday.h.
54450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54451         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54452         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54453         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54454         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54455         * lib/gettimeofday.h: New file.
54456         * lib/gettimeofday.c: Include <sys/timeb.h>.
54457         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54458         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54459         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54460         fall back on time().
54461
54462         * tests/test-gettimeofday.c: New file.
54463         * modules/gettimeofday-tests: New file.
54464
54465 2007-01-16  Eric Blake  <ebb9@byu.net>
54466
54467         * modules/fnmatch (Depends-on): Depend on wchar.
54468         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54469         * m4/fnmatch.m4: Likewise.
54470         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54471         * m4/mbchar.m4: Likewise.
54472         * modules/mbswidth (Depends-on): Depend on wchar.
54473         * lib/mbswidth.c: Assume <wchar.h>.
54474         * m4/mbswidth.m4: Likewise.
54475         * modules/quotearg (Depends-on): Depend on wchar.
54476         * lib/quotearg.c: Assume <wchar.h>.
54477         * m4/quotearg.m4: Likewise.
54478         * modules/regex (Depends-on): Depend on wchar.
54479         * lib/regex_internal.h: Assume <wchar.h>.
54480         * m4/regex.m4: Likewise.
54481         * modules/stdint (Depends-on): Depend on wchar.
54482         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54483         * m4/stdint.m4: Likewise.
54484         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54485         * modules/strftime (Depends-on): Depend on wchar.
54486         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54487         * modules/strtol (Depends-on): Depend on wchar.
54488         * lib/strtol.c: Assume <wchar.h>.
54489         * modules/wcwidth (Depends-on): Depend on wchar.
54490         * lib/wcwidth.h: Assume <wchar.h>.
54491         * m4/wcwidth.m4: Likewise.
54492
54493 2007-01-16  Bruno Haible  <bruno@clisp.org>
54494
54495         * modules/csharpexec-script: New, created from...
54496         * modules/csharpexec: ... this.
54497
54498 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54499
54500         * modules/javaexec-script: New, created from...
54501         * modules/javaexec: ... this.
54502
54503 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54504
54505         * modules/poll (Dependencies): Add sys_select.
54506
54507 2007-01-15  Jim Meyering  <jim@meyering.net>
54508
54509         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54510         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54511         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54512         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54513
54514 2007-01-15  Bruno Haible  <bruno@clisp.org>
54515
54516         * modules/striconveh: New file.
54517         * lib/striconveh.h: New file.
54518         * lib/striconveh.c: New file.
54519         * MODULES.html.sh (Internationalization functions): Add striconveh.
54520
54521         * modules/striconveh-tests: New file.
54522         * tests/test-striconveh.c: New file.
54523
54524 2007-01-15  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54527         not from GNU libiconv or GNU libc.
54528
54529 2007-01-15  Bruno Haible  <bruno@clisp.org>
54530
54531         * doc/gnulib-intro.texi (Copyright): Explain the different license
54532         terms for module descriptions, autoconf macros, tests, documentation.
54533
54534 2007-01-14  Bruno Haible  <bruno@clisp.org>
54535
54536         * modules/striconv-tests: New file.
54537         * tests/test-striconv.c: New file.
54538
54539 2007-01-14  Bruno Haible  <bruno@clisp.org>
54540
54541         * modules/iconv-tests: New file.
54542         * tests/test-iconv.c: New file.
54543
54544 2007-01-14  Bruno Haible  <bruno@clisp.org>
54545
54546         * gnulib-tool (func_get_license): For test modules, use the license of
54547         the main module.
54548
54549 2007-01-14  Bruno Haible  <bruno@clisp.org>
54550
54551         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54552         if iconv is found to exist.
54553
54554 2007-01-14  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/c-ctype-tests: New file.
54557         * tests/test-c-ctype.c: New file.
54558
54559 2007-01-14  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/binary-io-tests: New file.
54562         * tests/test-binary-io.sh: New file.
54563         * tests/test-binary-io.c: New file.
54564
54565 2007-01-14  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/array-oset-tests: New file.
54568         * tests/test-array_oset.c: New file.
54569
54570 2007-01-14  Bruno Haible  <bruno@clisp.org>
54571
54572         * modules/array-list-tests: New file.
54573         * tests/test-array_list.c: New file.
54574
54575 2007-01-14  Bruno Haible  <bruno@clisp.org>
54576
54577         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54578         and make.
54579         Reported by Simon Josefsson in
54580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54581
54582 2007-01-14  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/allocsa-tests: New file.
54585         * tests/test-allocsa.c: New file.
54586
54587 2007-01-14  Bruno Haible  <bruno@clisp.org>
54588
54589         * modules/fchdir (Depends-on): Add absolute-header.
54590         * modules/unistd (Depends-on): Likewise.
54591
54592 2006-12-30  Bruno Haible  <bruno@clisp.org>
54593
54594         * modules/fchdir: New file.
54595         * modules/unistd (Files): Add lib/unistd_.h.
54596         (Makefile.am): Generate unistd.h from unistd_.h.
54597         * lib/fchdir.c: New file.
54598         * lib/dirent_.h: New file.
54599         * lib/unistd_.h: New file.
54600         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54601         * m4/fchdir.m4: New file.
54602         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54603         (gl_HEADER_UNISTD): Invoke it.
54604         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54605         function.
54606         * lib/backupfile.c (opendir, closedir): Undefine.
54607         * lib/chown.c (open, close): Undefine.
54608         * lib/clean-temp.c (open, close): Undefine.
54609         * lib/copy-file.c (open, close): Undefine.
54610         * lib/execute.c (open, close): Undefine.
54611         * lib/fsusage.c (open, close): Undefine.
54612         * lib/gc-gnulib.c (open, close): Undefine.
54613         * lib/getcwd.c (opendir, closedir): Undefine.
54614         * lib/glob.c (opendir, closedir): Undefine.
54615         * lib/javacomp.c (open, close): Undefine.
54616         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54617         * lib/openat-proc.c (open, close): Undefine.
54618         * lib/pagealign_alloc.c (open, close): Undefine.
54619         * lib/pipe.c (open, close): Undefine.
54620         * lib/progreloc.c (open, close): Undefine.
54621         * lib/savedir.c (opendir, closedir): Undefine.
54622         * lib/utime.c (open, close): Undefine.
54623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54624
54625 2007-01-10  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54628
54629 2007-01-12  Eric Blake  <ebb9@byu.net>
54630
54631         Provide a robust <wchar.h>.  Further simplifications are now
54632         possible in other modules, but not included here.
54633         * modules/wchar: New module.
54634         * m4/wchar.m4: New file.
54635         * lib/wchar_.h: Likewise.
54636         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54637         of the new module.
54638         * MODULES.html.sh (Extended multibyte and wide character utilities):
54639         New section.
54640
54641 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54644         to a reasonable default for memory allocation.
54645         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54646         file system that reports garbage st_size values for symlinks.
54647         Problem reported by Liyang Hu.
54648
54649 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54650
54651         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54652         Emacs .#* auto-save files).
54653
54654 2007-01-11  Bruno Haible  <bruno@clisp.org>
54655
54656         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54657         directory.
54658
54659 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54660
54661         Use @...@ consistently in lib/wctype_.h.
54662         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54663         on it being set to 1 or 0.
54664         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54665         go back to AC_SUBSTing it.
54666         * modules/wctype (Makefile.am): Undo previous change.
54667
54668 2007-01-10  Eric Blake  <ebb9@byu.net>
54669
54670         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54671         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54672         * modules/wctype (Makefile.am): Likewise.
54673         Reported by Chris McGuire.
54674
54675 2007-01-10  Jim Meyering  <jim@meyering.net>
54676
54677         fts.c: a small readability/maintainability improvement
54678         * lib/fts.c (fts_read): Make this code slightly more readable and
54679         maintainable by hoisting the "sp->fts_cur = p" assignments to
54680         immediately follow the statements that set P.  Derived from
54681         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54682
54683 2007-01-10  Eric Blake  <ebb9@byu.net>
54684
54685         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54686         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54688         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54689         Reported by Chris McGuire.
54690
54691 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54692
54693         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54694         in sed script.
54695
54696 2007-01-09  Bruno Haible  <bruno@clisp.org>
54697
54698         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54699         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54700         variables.
54701         (func_module): Use them.
54702
54703 2007-01-09  Bruno Haible  <bruno@clisp.org>
54704
54705         * modules/unistr/base: New file.
54706         * lib/unistr.h: New file.
54707
54708         * modules/unistr/u8-to-u16: New file.
54709         * lib/unistr/u8-to-u16.c: New file.
54710
54711         * modules/unistr/u8-to-u32: New file.
54712         * lib/unistr/u8-to-u32.c: New file.
54713
54714         * modules/unistr/u16-to-u8: New file.
54715         * lib/unistr/u16-to-u8.c: New file.
54716
54717         * modules/unistr/u16-to-u32: New file.
54718         * lib/unistr/u16-to-u32.c: New file.
54719
54720         * modules/unistr/u32-to-u8: New file.
54721         * lib/unistr/u32-to-u8.c: New file.
54722
54723         * modules/unistr/u32-to-u16: New file.
54724         * lib/unistr/u32-to-u16.c: New file.
54725
54726         * modules/unistr/u8-check: New file.
54727         * modules/unistr/u16-check: New file.
54728         * modules/unistr/u32-check: New file.
54729         * lib/unistr/u8-check.c: New file.
54730         * lib/unistr/u16-check.c: New file.
54731         * lib/unistr/u32-check.c: New file.
54732
54733         * modules/unistr/u8-chr: New file.
54734         * modules/unistr/u16-chr: New file.
54735         * modules/unistr/u32-chr: New file.
54736         * lib/unistr/u8-chr.c: New file.
54737         * lib/unistr/u16-chr.c: New file.
54738         * lib/unistr/u32-chr.c: New file.
54739
54740         * modules/unistr/u8-cmp: New file.
54741         * modules/unistr/u16-cmp: New file.
54742         * modules/unistr/u32-cmp: New file.
54743         * lib/unistr/u8-cmp.c: New file.
54744         * lib/unistr/u16-cmp.c: New file.
54745         * lib/unistr/u32-cmp.c: New file.
54746
54747         * modules/unistr/u8-cpy: New file.
54748         * modules/unistr/u16-cpy: New file.
54749         * modules/unistr/u32-cpy: New file.
54750         * lib/unistr/u8-cpy.c: New file.
54751         * lib/unistr/u16-cpy.c: New file.
54752         * lib/unistr/u32-cpy.c: New file.
54753         * lib/unistr/u-cpy.h: New file.
54754
54755         * modules/unistr/u8-cpy-alloc: New file.
54756         * modules/unistr/u16-cpy-alloc: New file.
54757         * modules/unistr/u32-cpy-alloc: New file.
54758         * lib/unistr/u8-cpy-alloc.c: New file.
54759         * lib/unistr/u16-cpy-alloc.c: New file.
54760         * lib/unistr/u32-cpy-alloc.c: New file.
54761         * lib/unistr/u-cpy-alloc.h: New file.
54762
54763         * modules/unistr/u8-endswith: New file.
54764         * modules/unistr/u16-endswith: New file.
54765         * modules/unistr/u32-endswith: New file.
54766         * lib/unistr/u8-endswith.c: New file.
54767         * lib/unistr/u16-endswith.c: New file.
54768         * lib/unistr/u32-endswith.c: New file.
54769         * lib/unistr/u-endswith.h: New file.
54770
54771         * modules/unistr/u8-mblen: New file.
54772         * modules/unistr/u16-mblen: New file.
54773         * modules/unistr/u32-mblen: New file.
54774         * lib/unistr/u8-mblen.c: New file.
54775         * lib/unistr/u16-mblen.c: New file.
54776         * lib/unistr/u32-mblen.c: New file.
54777
54778         * modules/unistr/u8-mbtouc: New file.
54779         * modules/unistr/u16-mbtouc: New file.
54780         * modules/unistr/u32-mbtouc: New file.
54781         * lib/unistr/u8-mbtouc.c: New file.
54782         * lib/unistr/u16-mbtouc.c: New file.
54783         * lib/unistr/u32-mbtouc.c: New file.
54784
54785         * modules/unistr/u8-mbtouc-safe: New file.
54786         * modules/unistr/u16-mbtouc-safe: New file.
54787         * modules/unistr/u32-mbtouc-safe: New file.
54788         * lib/unistr/u8-mbtouc-safe.c: New file.
54789         * lib/unistr/u16-mbtouc-safe.c: New file.
54790         * lib/unistr/u32-mbtouc-safe.c: New file.
54791
54792         * modules/unistr/u8-move: New file.
54793         * modules/unistr/u16-move: New file.
54794         * modules/unistr/u32-move: New file.
54795         * lib/unistr/u8-move.c: New file.
54796         * lib/unistr/u16-move.c: New file.
54797         * lib/unistr/u32-move.c: New file.
54798         * lib/unistr/u-move.h: New file.
54799
54800         * modules/unistr/u8-next: New file.
54801         * modules/unistr/u16-next: New file.
54802         * modules/unistr/u32-next: New file.
54803         * lib/unistr/u8-next.c: New file.
54804         * lib/unistr/u16-next.c: New file.
54805         * lib/unistr/u32-next.c: New file.
54806
54807         * modules/unistr/u8-prev: New file.
54808         * modules/unistr/u16-prev: New file.
54809         * modules/unistr/u32-prev: New file.
54810         * lib/unistr/u8-prev.c: New file.
54811         * lib/unistr/u16-prev.c: New file.
54812         * lib/unistr/u32-prev.c: New file.
54813
54814         * modules/unistr/u8-set: New file.
54815         * modules/unistr/u16-set: New file.
54816         * modules/unistr/u32-set: New file.
54817         * lib/unistr/u8-set.c: New file.
54818         * lib/unistr/u16-set.c: New file.
54819         * lib/unistr/u32-set.c: New file.
54820         * lib/unistr/u-set.h: New file.
54821
54822         * modules/unistr/u8-startswith: New file.
54823         * modules/unistr/u16-startswith: New file.
54824         * modules/unistr/u32-startswith: New file.
54825         * lib/unistr/u8-startswith.c: New file.
54826         * lib/unistr/u16-startswith.c: New file.
54827         * lib/unistr/u32-startswith.c: New file.
54828         * lib/unistr/u-startswith.h: New file.
54829
54830         * modules/unistr/u8-stpcpy: New file.
54831         * modules/unistr/u16-stpcpy: New file.
54832         * modules/unistr/u32-stpcpy: New file.
54833         * lib/unistr/u8-stpcpy.c: New file.
54834         * lib/unistr/u16-stpcpy.c: New file.
54835         * lib/unistr/u32-stpcpy.c: New file.
54836         * lib/unistr/u-stpcpy.h: New file.
54837
54838         * modules/unistr/u8-stpncpy: New file.
54839         * modules/unistr/u16-stpncpy: New file.
54840         * modules/unistr/u32-stpncpy: New file.
54841         * lib/unistr/u8-stpncpy.c: New file.
54842         * lib/unistr/u16-stpncpy.c: New file.
54843         * lib/unistr/u32-stpncpy.c: New file.
54844         * lib/unistr/u-stpncpy.h: New file.
54845
54846         * modules/unistr/u8-strcat: New file.
54847         * modules/unistr/u16-strcat: New file.
54848         * modules/unistr/u32-strcat: New file.
54849         * lib/unistr/u8-strcat.c: New file.
54850         * lib/unistr/u16-strcat.c: New file.
54851         * lib/unistr/u32-strcat.c: New file.
54852         * lib/unistr/u-strcat.h: New file.
54853
54854         * modules/unistr/u8-strchr: New file.
54855         * modules/unistr/u16-strchr: New file.
54856         * modules/unistr/u32-strchr: New file.
54857         * lib/unistr/u8-strchr.c: New file.
54858         * lib/unistr/u16-strchr.c: New file.
54859         * lib/unistr/u32-strchr.c: New file.
54860
54861         * modules/unistr/u8-strcmp: New file.
54862         * modules/unistr/u16-strcmp: New file.
54863         * modules/unistr/u32-strcmp: New file.
54864         * lib/unistr/u8-strcmp.c: New file.
54865         * lib/unistr/u16-strcmp.c: New file.
54866         * lib/unistr/u32-strcmp.c: New file.
54867
54868         * modules/unistr/u8-strcpy: New file.
54869         * modules/unistr/u16-strcpy: New file.
54870         * modules/unistr/u32-strcpy: New file.
54871         * lib/unistr/u8-strcpy.c: New file.
54872         * lib/unistr/u16-strcpy.c: New file.
54873         * lib/unistr/u32-strcpy.c: New file.
54874         * lib/unistr/u-strcpy.h: New file.
54875
54876         * modules/unistr/u8-strcspn: New file.
54877         * modules/unistr/u16-strcspn: New file.
54878         * modules/unistr/u32-strcspn: New file.
54879         * lib/unistr/u8-strcspn.c: New file.
54880         * lib/unistr/u16-strcspn.c: New file.
54881         * lib/unistr/u32-strcspn.c: New file.
54882         * lib/unistr/u-strcspn.h: New file.
54883
54884         * modules/unistr/u8-strdup: New file.
54885         * modules/unistr/u16-strdup: New file.
54886         * modules/unistr/u32-strdup: New file.
54887         * lib/unistr/u8-strdup.c: New file.
54888         * lib/unistr/u16-strdup.c: New file.
54889         * lib/unistr/u32-strdup.c: New file.
54890         * lib/unistr/u-strdup.h: New file.
54891
54892         * modules/unistr/u8-strlen: New file.
54893         * modules/unistr/u16-strlen: New file.
54894         * modules/unistr/u32-strlen: New file.
54895         * lib/unistr/u8-strlen.c: New file.
54896         * lib/unistr/u16-strlen.c: New file.
54897         * lib/unistr/u32-strlen.c: New file.
54898         * lib/unistr/u-strlen.h: New file.
54899
54900         * modules/unistr/u8-strmblen: New file.
54901         * modules/unistr/u16-strmblen: New file.
54902         * modules/unistr/u32-strmblen: New file.
54903         * lib/unistr/u8-strmblen.c: New file.
54904         * lib/unistr/u16-strmblen.c: New file.
54905         * lib/unistr/u32-strmblen.c: New file.
54906
54907         * modules/unistr/u8-strmbtouc: New file.
54908         * modules/unistr/u16-strmbtouc: New file.
54909         * modules/unistr/u32-strmbtouc: New file.
54910         * lib/unistr/u8-strmbtouc.c: New file.
54911         * lib/unistr/u16-strmbtouc.c: New file.
54912         * lib/unistr/u32-strmbtouc.c: New file.
54913
54914         * modules/unistr/u8-strncat: New file.
54915         * modules/unistr/u16-strncat: New file.
54916         * modules/unistr/u32-strncat: New file.
54917         * lib/unistr/u8-strncat.c: New file.
54918         * lib/unistr/u16-strncat.c: New file.
54919         * lib/unistr/u32-strncat.c: New file.
54920         * lib/unistr/u-strncat.h: New file.
54921
54922         * modules/unistr/u8-strncmp: New file.
54923         * modules/unistr/u16-strncmp: New file.
54924         * modules/unistr/u32-strncmp: New file.
54925         * lib/unistr/u8-strncmp.c: New file.
54926         * lib/unistr/u16-strncmp.c: New file.
54927         * lib/unistr/u32-strncmp.c: New file.
54928
54929         * modules/unistr/u8-strncpy: New file.
54930         * modules/unistr/u16-strncpy: New file.
54931         * modules/unistr/u32-strncpy: New file.
54932         * lib/unistr/u8-strncpy.c: New file.
54933         * lib/unistr/u16-strncpy.c: New file.
54934         * lib/unistr/u32-strncpy.c: New file.
54935         * lib/unistr/u-strncpy.h: New file.
54936
54937         * modules/unistr/u8-strnlen: New file.
54938         * modules/unistr/u16-strnlen: New file.
54939         * modules/unistr/u32-strnlen: New file.
54940         * lib/unistr/u8-strnlen.c: New file.
54941         * lib/unistr/u16-strnlen.c: New file.
54942         * lib/unistr/u32-strnlen.c: New file.
54943         * lib/unistr/u-strnlen.h: New file.
54944
54945         * modules/unistr/u8-strpbrk: New file.
54946         * modules/unistr/u16-strpbrk: New file.
54947         * modules/unistr/u32-strpbrk: New file.
54948         * lib/unistr/u8-strpbrk.c: New file.
54949         * lib/unistr/u16-strpbrk.c: New file.
54950         * lib/unistr/u32-strpbrk.c: New file.
54951         * lib/unistr/u-strpbrk.h: New file.
54952
54953         * modules/unistr/u8-strrchr: New file.
54954         * modules/unistr/u16-strrchr: New file.
54955         * modules/unistr/u32-strrchr: New file.
54956         * lib/unistr/u8-strrchr.c: New file.
54957         * lib/unistr/u16-strrchr.c: New file.
54958         * lib/unistr/u32-strrchr.c: New file.
54959
54960         * modules/unistr/u8-strspn: New file.
54961         * modules/unistr/u16-strspn: New file.
54962         * modules/unistr/u32-strspn: New file.
54963         * lib/unistr/u8-strspn.c: New file.
54964         * lib/unistr/u16-strspn.c: New file.
54965         * lib/unistr/u32-strspn.c: New file.
54966         * lib/unistr/u-strspn.h: New file.
54967
54968         * modules/unistr/u8-strstr: New file.
54969         * modules/unistr/u16-strstr: New file.
54970         * modules/unistr/u32-strstr: New file.
54971         * lib/unistr/u8-strstr.c: New file.
54972         * lib/unistr/u16-strstr.c: New file.
54973         * lib/unistr/u32-strstr.c: New file.
54974         * lib/unistr/u-strstr.h: New file.
54975
54976         * modules/unistr/u8-strtok: New file.
54977         * modules/unistr/u16-strtok: New file.
54978         * modules/unistr/u32-strtok: New file.
54979         * lib/unistr/u8-strtok.c: New file.
54980         * lib/unistr/u16-strtok.c: New file.
54981         * lib/unistr/u32-strtok.c: New file.
54982         * lib/unistr/u-strtok.h: New file.
54983
54984         * modules/unistr/u8-uctomb: New file.
54985         * modules/unistr/u16-uctomb: New file.
54986         * modules/unistr/u32-uctomb: New file.
54987         * lib/unistr/u8-uctomb.c: New file.
54988         * lib/unistr/u16-uctomb.c: New file.
54989         * lib/unistr/u32-uctomb.c: New file.
54990
54991         * MODULES.html.sh (Unicode string functions): Add the new modules.
54992
54993 2007-01-08  Bruno Haible  <bruno@clisp.org>
54994
54995         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54996         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54997         subdirectories.
54998
54999 2007-01-08  Karl Berry  <karl@gnu.org>
55000
55001         * doc/error.texi: mention that main() fns must set program_name
55002         when progname is used.
55003
55004 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55007         WCTYPE_H is empty, for the benefit of builds from non-distclean
55008         directories.  Problem reported by Eric Blake in
55009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55010
55011 2007-01-08  Bruno Haible  <bruno@clisp.org>
55012
55013         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55014         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55015         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55016         PROVIDE_CANONICALIZE_FILENAME_MODE.
55017         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55018
55019 2007-01-08  Bruno Haible  <bruno@clisp.org>
55020
55021         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55022         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55023         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55024         * lib/fts.c: Likewise.
55025         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55026
55027 2006-12-25  Bruno Haible  <bruno@clisp.org>
55028
55029         * modules/utf8-ucs4-safe: New file.
55030         * lib/utf8-ucs4-safe.h: New file.
55031         * lib/unistr/utf8-ucs4-safe.c: New file.
55032
55033         * modules/utf16-ucs4-safe: New file.
55034         * lib/utf16-ucs4-safe.h: New file.
55035         * lib/unistr/utf16-ucs4-safe.c: New file.
55036
55037         * MODULES.html.sh (Unicode string functions): Add the new modules.
55038
55039 2007-01-08  Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55042         (Depends-on): Add unitypes.
55043         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55044         (u8_mbtouc_aux): Move out to separate file.
55045         (u8_mbtouc): Use ucs4_t, uint8_t types.
55046         * lib/unistr/utf8-ucs4.c: New file.
55047
55048         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55049         (Depends-on): Add unitypes.
55050         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55051         (u16_mbtouc_aux): Move out to separate file.
55052         (u16_mbtouc): Use ucs4_t, uint16_t types.
55053         * lib/unistr/utf16-ucs4.c: New file.
55054
55055         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55056         (Depends-on): Add unitypes.
55057         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55058         (u8_uctomb_aux): Move out to separate file.
55059         (u8_uctomb): Use ucs4_t, uint8_t types.
55060         * lib/unistr/ucs4-utf8.c: New file.
55061
55062         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55063         (Depends-on): Add unitypes.
55064         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55065         (u16_uctomb_aux): Move out to separate file.
55066         (u16_uctomb): Use ucs4_t, uint16_t types.
55067         * lib/unistr/ucs4-utf16.c: New file.
55068
55069 2006-12-25  Bruno Haible  <bruno@clisp.org>
55070
55071         * modules/unitypes: New file.
55072         * lib/unitypes.h: New file.
55073         * MODULES.html.sh (func_all_modules): New section "Unicode string
55074         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55075         this section. Add unitypes.
55076
55077 2007-01-08  Bruno Haible  <bruno@clisp.org>
55078
55079         Avoid variable names that conflict with those from libtool.
55080         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55081         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55082         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55083         library_names_spec to acl_library_names_spec, hardcode_* to
55084         acl_hardcode_*.
55085         Reported by Ralf Wildenhues.
55086
55087 2007-01-08  Bruno Haible  <bruno@clisp.org>
55088
55089         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55090         definition.
55091         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55092         definition.
55093         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55094         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55095         definition.
55096         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55097         definition.
55098         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55099         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55100         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55101         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55102         definition.
55103         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55104         definition.
55105         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55106         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55107         GC_USE_<algorithm>.
55108         * lib/gc-libgcrypt.c: Likewise.
55109         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55110         * modules/gc-arctwo (configure.ac): Likewise.
55111         * modules/gc-des (configure.ac): Likewise.
55112         * modules/gc-hmac-md5 (configure.ac): Likewise.
55113         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55114         * modules/gc-md2 (configure.ac): Likewise.
55115         * modules/gc-md4 (configure.ac): Likewise.
55116         * modules/gc-md5 (configure.ac): Likewise.
55117         * modules/gc-random (configure.ac): Likewise.
55118         * modules/gc-rijndael (configure.ac): Likewise.
55119         * modules/gc-sha1 (configure.ac): Likewise.
55120
55121 2007-01-08  Bruno Haible  <bruno@clisp.org>
55122
55123         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55124         macro definition.
55125         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55126         definition.
55127         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55128         definition.
55129         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55130         * modules/fcntl-safer (configure.ac): Likewise.
55131         * modules/fopen-safer (configure.ac): Likewise.
55132         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55133         GNULIB_FWRITEERROR macro definition.
55134
55135 2007-01-08  Bruno Haible  <bruno@clisp.org>
55136
55137         * m4/gnulib-common.m4: New file.
55138         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55139         (func_get_filelist): Add m4/gnulib-common.m4.
55140
55141 2007-01-08  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55144         command.
55145
55146 2007-01-08  Jim Meyering  <jim@meyering.net>
55147
55148         Use a more robust test for a "can't happen" condition.
55149         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55150         narrowed the st_size value.  Presuming the "can't happen" condition
55151         is true, that narrowing could conceivably convert an invalid st_size
55152         value into a valid one.  Instead, use a change based on Matthew
55153         Woehlke's original patch.
55154
55155         Slight readability improvement: use an assert-like macro
55156         in place of literal "abort ()" uses.
55157         * lib/fts.c (fts_assert): Define.
55158         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55159         Use this macro instead of a bare 'abort'.
55160
55161 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55162
55163         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55164         simply work around them.
55165         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55166         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55167         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55168         declaring.
55169         Don't bother to define as macros, since the standard doesn't require it.
55170         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55171         longer worry about IRIX 5.3.
55172         (HAVE_WCTYPE_CTMP_BUG): Remove.
55173
55174 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55175
55176         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55177         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55178         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55179         Problems reported by Georg Schwarz for IRIX 5.3.
55180
55181         * gnulib-tool (autoconf_minversion): Take the maximum version number
55182         found, not the minimum.  Problem reported by James Youngman.
55183
55184 2007-01-03  Karl Berry  <karl@gnu.org>
55185
55186         * doc/error.texi: new file, explaining interaction with progname.
55187         * doc/gnulib.texi: include it.  Update copyright.
55188
55189 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55190
55191         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55192         AC_CANONICAL_HOST, to improve autobuild outputs.
55193
55194 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55195             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55196
55197         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55198         sockets, server sockets, and other file descriptors.  Count errors
55199         to compute the return value.  Reorder the code a bit to be easier
55200         to follow.  Don't set event bits that were not requested (except
55201         POLLERR and POLLHUP).
55202
55203 2007-01-01  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55206
55207 2007-01-03  Jim Meyering  <jim@meyering.net>
55208
55209         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55210
55211 2007-01-02  Bruno Haible  <bruno@clisp.org>
55212
55213         * modules/settime (Include): Require timespec.h.
55214         * modules/nanosleep (Include): Likewise.
55215
55216 2007-01-01  Bruno Haible  <bruno@clisp.org>
55217
55218         * gnulib-tool (func_emit_copyright_notice): Bump year.
55219         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55220
55221 2007-01-01  Bruno Haible  <bruno@clisp.org>
55222
55223         Improve support for OpenBSD.
55224         * build-aux/config.rpath (libname_spec): Export.
55225         (library_names_spec): New variable. Export.
55226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55227         library_names_spec from the config.rpath output. Locate shared library
55228         through the name pattern in library_names_spec.
55229
55230 2007-01-01  Eric Blake  <ebb9@byu.net>
55231
55232         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55233
55234 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55235
55236         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55237         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55238         assume the C locale, and avoid an "eval" that could cause trouble.
55239         Problem with SORT reported by Bob Proulx.
55240
55241         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55242         Define.  Trivial patch from Henning Nielsen Lund, originally
55243         sent to bug-grep@gnu.org today.
55244
55245 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55246
55247         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55248         struct stat.  Problem reported by Henning Nielsen Lund.
55249         * lib/acl.c: Include acl.h first, to check interface.  Don't
55250         bother to include sys/types.h and sys/stat.h again.
55251
55252 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55253
55254         Import the following change from libc; problem reported by
55255         Sven Verdoolaege.
55256
55257         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55258
55259         [BZ #1373]
55260         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55261
55262 2006-12-28  Jim Meyering  <jim@meyering.net>
55263
55264         * build-aux/announce-gen: Do not assume that the package
55265         builds any of tar.gz, tar.bz2, and .xdelta files.
55266         Suggestion from Simon Josefsson.
55267
55268 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55269
55270         * modules/announce-gen: New file.
55271
55272 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55273
55274         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55275         handles its gotchas now.
55276         * lib/mbswidth.c: Likewise.
55277         * lib/wcwidth.h: Likewise.
55278         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55279         and iswcntrl; the wctype module does this stuff now.
55280         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55282         * modules/mbchar (Depends-on): Add wctype.
55283         * modules/mbswidth (Depends-on): Likewise.
55284         * modules/wcwidth (Depends-on): Likewise.
55285
55286 2006-12-27  Eric Blake  <ebb9@byu.net>
55287
55288         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55289         module uses more than what <wctype.h> is required to provide.
55290
55291 2006-12-26  Eric Blake  <ebb9@byu.net>
55292
55293         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55294
55295 2006-12-26  Eric Blake  <ebb9@byu.net>
55296
55297         * modules/absolute-header: New module.
55298         * modules/fcntl (Depends-on): Depend on it.
55299         * modules/inttypes (Depends-on): Likewise.
55300         * modules/stdint (Depends-on): Likewise.
55301         * modules/sys_stat (Depends-on): Likewise.
55302         * modules/wctype (Depends-on): Likewise.
55303         * MODULES.html.sh (Support for building libraries and
55304         executables): Document it.
55305
55306 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         * gnulib-tool (SED): Remove, undoing previous change.
55309         The problem was that it broke coreutils on Solaris, because
55310         "sed --posix" leaked into a makefile.
55311         (sed): New alias, if 'alias' and GNU sed.
55312
55313 2006-12-24  Jim Meyering  <jim@meyering.net>
55314
55315         Work around an fchownat bug in glibc-2.4:
55316         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55317         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55318         in spite of the -P option.
55319         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55320         New macros.
55321         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55322         * modules/openat (Files): Add lib/fchownat.c.
55323         * lib/openat.c (fchownat): Don't define here.  Move to...
55324         * lib/fchownat.c: ...this new file.
55325
55326 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55327
55328         Fix bug reported by Bruno Haible in
55329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55330         where quotearg.c didn't compile on Mac OS X 10.2 because it
55331         lacks <wchar.h> and wint_t.
55332         * lib/wctype_.h (__wctype_wint_t): New type.
55333         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55334         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55335         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55336         Arg is now of type __wctype_wint_t, not wint_t.
55337         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55338         substitute HAVE_WINT_T.
55339         * modules/wctype (Files): Add m4/wint_t.m4.
55340         (wctype.h): Substitute HAVE_WINT_T.
55341
55342 2006-12-23  Bruno Haible  <bruno@clisp.org>
55343
55344         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55345
55346 2006-12-23  Bruno Haible  <bruno@clisp.org>
55347
55348         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55349         S_ISLNK.
55350         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55351         mingw.
55352
55353 2006-12-22  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/copy-file.c: Include acl.h.
55356         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55357         Close the file descriptors only after being done with copy_acl.
55358         * modules/copy-file (Depends-on): Add acl.
55359
55360 2006-12-22  Bruno Haible  <bruno@clisp.org>
55361
55362         * gnulib-tool (SED): New variable.
55363         Use $SED instead of sed everywhere.
55364
55365 2006-12-22  Bruno Haible  <bruno@clisp.org>
55366
55367         * modules/no-c++: New file.
55368         * m4/no-c++.m4: New file.
55369         * MODULES.html.sh (Support for building libraries and executables):
55370         Add no-c++.
55371
55372 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55375         Include <limits.h>, and use its INT_MAX to rewrite the
55376         j loop so that it does not overflow 'int'.  Problem reported by
55377         Ralf Wildenhues in
55378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55379         Play it safe by shifting left by 1 rather than multiplying by 2,
55380         as GCC is less likely to optimize this away when the value
55381         is signed (when it assumes overflow leads to undefined behavior).
55382         Also, don't assume time_t uses two's complement.
55383
55384 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * MODULES.html.sh: New module wctype.
55387         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55388         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55389         <wctype.h>, since the new wctype module should fix this.
55390         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55391         the wctype module should arrange for it.
55392         * lib/regex_internal.h: Likewise.
55393         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55394         since the wctype module should handle this now.
55395         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55396         * modules/fnmatch (Depends-on): Add wctype.
55397         * modules/quotearg (Depends-on): Likewise.
55398         * modules/regex (Depends-on): Likewise.
55399
55400 2006-12-19  Bruno Haible  <bruno@clisp.org>
55401
55402         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55403         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55404
55405 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55406
55407         * modules/savewd (Depends-on): Fix dependency on fcntl.
55408
55409 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55410
55411         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55412         conforms to C99, rather than relying on the user's environment
55413         setting of STDINT_H.
55414
55415 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55416         and Eric Blake  <ebb9@byu.net>
55417
55418         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55419         This is more consistent with the other defines here.
55420         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55421         Port to z/OS.  Problem reported by Paul Gilmartin.
55422         Change local vars to use gl_ prefix rather than ac_.
55423         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55424         with other defines.
55425         * modules/double-slash-root: New module.
55426         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55427         (Depends-on): Add double-slash-root.
55428         * MODULES.html.sh (File system functions): Mention new module.
55429
55430 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55431
55432         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55433         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55434         This is for the benefit of gzip, which doesn't do i18n.
55435
55436 2006-12-12  Jim Meyering  <jim@meyering.net>
55437
55438         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55439         Reported by Andreas Schwab <schwab@suse.de>.
55440
55441 2006-12-12  Bruno Haible  <bruno@clisp.org>
55442
55443         Merge these changes.
55444         2006-09-05  Bruno Haible  <bruno@clisp.org>
55445         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55446         iconv_alloc succeeded.
55447         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55448         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55449         test for " && dest " at the end - dest is always != NULL there. Call
55450         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55451         with 2xNULL arguments, also to flush the state storage. Handle the
55452         IRIX iconv behaviour. Realloc the final result, to throw away unused
55453         memory.
55454
55455 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55458         and fchmodat unconditionally, since glibc 2.4 has them.
55459         Problem reported by Arkadiusz Miskiewicz.
55460
55461 2006-12-10  Bruno Haible  <bruno@clisp.org>
55462
55463         * gnulib-tool (func_import): Show the include files only for those
55464         modules that are copied and specified.
55465         Reported by Karl Berry.
55466
55467 2006-12-08  Jim Meyering  <jim@meyering.net>
55468
55469         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55470         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55471
55472         * build-aux/announce-gen: Add two new options, both optional:
55473         --bootstrap-tools=TOOL_LIST
55474               a comma-separated list of tools, e.g.,
55475               autoconf,automake,bison,gnulib
55476         --gnulib-snapshot-date=DATE
55477               if gnulib is in the bootstrap tool list,
55478               then report this as the snapshot date.
55479               If not specified, use the current date/time.
55480               If you specify a date here, be sure it's UTC.
55481
55482 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55483
55484         * tests/test-argp-2.sh: Fix test to match actual output.
55485         (func_compare): Fix sed script to be portable.
55486
55487 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55488
55489         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55490         workaround for this case.  It is not autoconfigured now; offhand
55491         it's hard to see how to autoconfigure it.
55492
55493 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55494
55495         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55496         a directory that is about to be chowned.  Such a directory's
55497         initial file permissions should permit the owner only and this
55498         should not be changed until after the chown, since the group and
55499         other bits would be incorrect if they granted permission before
55500         the chown.
55501
55502         Fix porting problem for iswctype reported by Georg Schwarz in:
55503         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55504         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55505         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55507         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55508
55509 2006-12-03  Jim Meyering  <jim@meyering.net>
55510
55511         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55512         p->fts_statp may not yet be defined.
55513         (fts_read): Instead, set it in the caller, once p->fts_statp is
55514         sure to be defined, and corresponds to a top-level directory.
55515         This bug made du -x fail.  Here's the coreutils test case:
55516         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55517         Reported by Mike Frysinger.
55518
55519 2006-12-01  Jim Meyering  <jim@meyering.net>
55520
55521         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55522         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55523         Reported by Simon Josefsson.
55524
55525 2006-11-30  Jim Meyering  <jim@meyering.net>
55526
55527         * m4/warning.m4: Use the all-permissive copyright notice
55528         recommended by RMS (rather than LGPL).
55529         * m4/vararrays.m4: Likewise.
55530         * m4/flexmember.m4: Likewise.
55531
55532 2006-11-29  Bruno Haible  <bruno@clisp.org>
55533
55534         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55535         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55536         using +=.
55537         Reported by Simon Josefsson <simon@josefsson.org>.
55538
55539 2006-11-28  James Youngman <jay@gnu.org>
55540
55541         * README: Advise users that they might find the bug-gnulib@gnu.org
55542         and autotools-announce@gnu.org mailing lists useful.
55543
55544 2006-11-28  Bruno Haible  <bruno@clisp.org>
55545
55546         * m4/ptrdiff_max.m4: Remove file.
55547
55548 2006-11-21  Bruno Haible  <bruno@clisp.org>
55549
55550         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55551         _AC_COMPUTE_INT.
55552         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55553         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55554         _AC_COMPUTE_INT.
55555         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55556         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55557         _AC_COMPUTE_INT.
55558         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55559
55560 2006-11-28  Jim Meyering  <jim@meyering.net>
55561
55562         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55563         warning from "gcc -Wshadow" about shadowing the builtin.
55564
55565 2006-11-27  Bruno Haible  <bruno@clisp.org>
55566
55567         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55568         _AC_COMPUTE_INT.
55569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55570
55571 2006-11-27  Bruno Haible  <bruno@clisp.org>
55572             Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55575
55576 2006-11-26  Bruno Haible  <bruno@clisp.org>
55577
55578         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55579         noinst_LTLIBRARIES.
55580
55581 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55582             Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55585         if compiling with "gcc -ansi".
55586
55587 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         Fix some incompatibilities with gcc -ansi -pedantic.
55590         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55591         if compiling pedantically with GCC, unless it's C99 or later.
55592         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55593         it mishandles gcc -ansi -pedantic as well.
55594         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55595         if gcc -pedantic.
55596         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55597         initializers for struct if -pedantic, unless it's C99 or later.
55598
55599 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55600
55601         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55602         Don't close an fd more than once. Identical atimes indicate
55603         success, not failure.
55604
55605 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55606
55607         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55608
55609 2006-11-23  Jim Meyering  <jim@meyering.net>
55610
55611         * build-aux/announce-gen: New file.  From coreutils.
55612
55613 2006-11-22  Jim Meyering  <jim@meyering.net>
55614
55615         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55616         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55617         (fts_read): Use a temporary to narrow the overused st_size member
55618         before using it in a switch statement.  Reported by Matthew Woehlke.
55619
55620         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55621         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55622
55623 2006-11-20  Bruno Haible  <bruno@clisp.org>
55624
55625         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55626         changequote instead of pairs of brackets.
55627         Reported by Andreas Schwab <schwab@suse.de>.
55628
55629 2006-11-21  Jim Meyering  <jim@meyering.net>
55630
55631         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55632         so as to remain compatible with older compilers.
55633         Patch from Michael Deutschmann.
55634
55635 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55636
55637         * MODULES.html.sh (File system functions): Add openat.
55638
55639         * lib/openat.h (rpl_fstatat): New macro, if
55640         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55641         (fstatat): Define to rpl_fstatat under the same conditions,
55642         unless COMPILING_FSTATAT.
55643         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55644         seems to have the bug.
55645         * lib/fstatat.c: New file.
55646         * modules/openat (Files): Add it.
55647
55648 2006-11-20  Bruno Haible  <bruno@clisp.org>
55649
55650         * Makefile: New file.
55651
55652 2006-11-20  Jim Meyering  <jim@meyering.net>
55653
55654         The beginnings of syntax-related checks for gnulib.
55655         * lib/Makefile: New file.
55656         * lib/t-idcache: New script.  Ensure that the two halves of
55657         idcache.c stay in sync.
55658
55659         * lib/idcache.c: Adjust comments in user- and group- portions to
55660         be more accurate, and to be consistent with one another.
55661
55662 2006-11-20  Jim Meyering  <jim@meyering.net>
55663
55664         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55665         continue using the flexible array member (thus, this module performs
55666         half as many malloc calls), with the addition that...
55667         (getgroup, getuser): Consistently record a non-match via an empty
55668         "name" string, and map an empty string match to a NULL return value.
55669         * modules/idcache (Depends-on): Re-add flexmember.
55670
55671         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55672         (getuidbyname, getgroup, getgidbyname): Likewise.
55673
55674         Use cleaner syntax: NULL rather than 0.
55675         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55676
55677 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55678
55679         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55680         It mishandled the case where the group was missing.
55681         Problem reported by Greg Schafer.
55682         * modules/idcache: Likewise.
55683
55684 2006-11-18  Jim Meyering  <jim@meyering.net>
55685
55686         * check-module (%exempt_header): Add exception for some
55687         conditionally-included headers.
55688
55689         * modules/i-ring (Depends-on): Add verify.
55690         (License): Change to LGPL.
55691
55692 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55693
55694         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55695         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55696         and inttostr.h.  Use snprintf rather than uinttostr, so that
55697         LGPLed code doesn't depend on GPLed.
55698
55699 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * modules/inline (License): Change from GPL to LGPL.
55702
55703 2006-11-17  Jim Meyering  <jim@meyering.net>
55704
55705         * modules/d-type (License): Switch to LGPL.
55706
55707 2006-11-15  Bruno Haible  <bruno@clisp.org>
55708
55709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55710
55711 2006-11-15  Eric Blake  <ebb9@byu.net>
55712
55713         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55714         the module dependency.
55715
55716 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55717             Bruno Haible  <bruno@clisp.org>
55718
55719         * gnulib-tool (func_create_testdir): Add license consistency check.
55720
55721 2006-11-15  Eric Blake  <ebb9@byu.net>
55722
55723         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55724         random "(cached)" in configure output.
55725
55726 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55727
55728         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55729         test for conforming inttypes.h is both announced and cached.
55730
55731         * MODULES.html.sh (seen_modules, seen_files): New variables.
55732         (func_module): Rewrite to use a few less gnulib-tool and sed
55733         invocations.  Avoid a couple of quadratic algorithms for ...
55734         (missed_modules, missed_files): ... these, with ...
55735         (func_append, func_tmpdir): ... these new functions, from
55736         gnulib-tool.  Analogously, install traps for cleanup.
55737
55738         * tests/test-gc.c (main): Remove unused variables.
55739         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55740
55741 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55742
55743         * modules/inttostr (License): Change to LGPL.
55744
55745 2006-11-14  Eric Blake  <ebb9@byu.net>
55746
55747         * modules/tempname (License): Change to LGPL.
55748
55749 2006-11-14  Eric Blake  <ebb9@byu.net>
55750
55751         * doc/functions.texi (Function Portability): *printf functions on
55752         Cygwin now understand all POSIX size specifiers.
55753
55754 2006-11-14  Bruno Haible  <bruno@clisp.org>
55755
55756         * modules/c-ctype (License): Change to LGPL.
55757
55758 2006-11-12  Bruno Haible  <bruno@clisp.org>
55759
55760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55761         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55762         for GNOME libraries, for which the include files are installed in
55763         subdirectories of $prefix/include.
55764
55765 2006-11-12  Bruno Haible  <bruno@clisp.org>
55766
55767         * m4/lib-link.m4: Require at least autoconf-2.54.
55768         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55769         name to underscores for the --with option.
55770
55771 2006-11-13  Bruno Haible  <bruno@clisp.org>
55772
55773         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55774         the tests directory.
55775         Reported by Ralf Wildenhues.
55776
55777 2006-11-13  Bruno Haible  <bruno@clisp.org>
55778
55779         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55780         (func_emit_initmacro_end): Undo the override here.
55781         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55782         Works around the famous automake error in coreutils.
55783
55784 2006-11-13  Eric Blake  <ebb9@byu.net>
55785
55786         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55787         element, not its node.
55788
55789 2006-11-12  Bruno Haible  <bruno@clisp.org>
55790
55791         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55792         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55793
55794 2006-11-12  Bruno Haible  <bruno@clisp.org>
55795
55796         * gnulib-tool: New option --local-symlink.
55797         (func_usage): Document it.
55798         (lsymbolic): New variable.
55799         (func_import, func_create_testdir): If --symlink was not specified,
55800         test whether --local-symlink was specified and the file comes from
55801         the local_gnulib_dir.
55802
55803 2006-11-12  Bruno Haible  <bruno@clisp.org>
55804
55805         * gnulib-tool (func_ln): New function.
55806         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55807
55808 2006-11-12  Bruno Haible  <bruno@clisp.org>
55809
55810         Finish support for source files in subdirectories.
55811         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55812         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55813         AUTOMAKE_OPTIONS.
55814         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55815
55816 2006-11-12  Bruno Haible  <bruno@clisp.org>
55817
55818         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55819         EXTRA_lib_SOURCES augmentation.
55820         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55821
55822 2006-11-12  Jim Meyering  <jim@meyering.net>
55823
55824         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55825         file descriptors.  This also averts a failure on systems with
55826         native openat support when a traversed directory lacks "x" access.
55827         * lib/fts_.h: Include "i-ring.h"
55828         (struct FTS) [fts_fd_ring]: New member.
55829         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55830         (FCHDIR): Add parentheses.
55831         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55832         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55833         When descending, rather than simply closing the previous
55834         fts_cwd_fd value, push that file descriptor onto the ring.
55835         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55836         (fts_open): Initialize the new fd_ring member.
55837         (fts_close): Clear the ring.
55838         (fts_safe_changedir): When possible, use our new fd_ring to skip
55839         the diropen and fstat and dev/ino comparison that would normally
55840         accompany a virtual `chdir ("..")'.
55841
55842         * modules/fts (Depends-on): Add i-ring.
55843         * modules/i-ring: New module.
55844         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55845         * m4/i-ring.m4: New file.
55846
55847 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55848
55849         * gnulib-tool (func_create_testdir): Fix replacement of
55850         `build-aux' in configure.ac.  Run autotools in gltests
55851         subdirectory.
55852         (func_create_testdir, func_create_megatestdir, test): There is
55853         no need for '--force' in most autotool invocations in a new
55854         tree.  Actually fail the whole test if any of the tools, or the
55855         configure or make stages fail.
55856
55857         Sync from Automake.
55858         * build-aux/gnupload: Revert last change.  Add pointer to upload
55859         instructions of the GNU Maintenance Instructions.
55860         Suggestion by Karl Berry.
55861
55862 2006-11-10  Jim Meyering  <jim@meyering.net>
55863
55864         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55865
55866 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55869         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55870         (bind_textdomain_codeset) [! ENABLE_NLS]:
55871         Evaluate all the arguments.  That way, callers get compatible behavior
55872         if the arguments have side effects.  Also, it avoids some GCC
55873         diagnostics in some cases; Joel E. Denny reported problems when Bison
55874         was configured with --enable-gcc-warnigs.
55875
55876 2006-11-10  Jim Meyering  <jim@meyering.net>
55877
55878         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55879         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55880         account.
55881
55882 2006-11-10  Jim Meyering  <jim@meyering.net>
55883
55884         * modules/inline: New file/module.
55885         * modules/xalloc (Files): Remove m4/inline.m4.
55886         (Depends-on): Add inline, instead.
55887         * modules/oset: Likewise.
55888         * modules/list: Likewise.
55889
55890 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55893         Problem reported by Matthew Woehlke.
55894
55895 2006-11-09  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/tempname.c (gen_tempname): Remove variant that invokes
55898         __gen_tempname.
55899         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55900         __gen_tempname.
55901
55902 2006-11-08  Bruno Haible  <bruno@clisp.org>
55903
55904         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55905         to 'yes' instead of 'cross-compiling'.
55906
55907 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55908
55909         * lib/quotearg.h (quotearg_free): New decl.
55910         * lib/quotearg.c (quotearg_free): New function.
55911         (slot0, nslots, slotvec0, slotvec):
55912         Now file-scope so that quotearg_free can get at them.
55913
55914 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55915
55916         Sync from Automake.
55917         * build-aux/gnupload: Add missing 'gnu' to example URL.
55918         Report by Karl Berry.
55919
55920 2006-11-08  Bruno Haible  <bruno@clisp.org>
55921
55922         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55923         Suggested by Paul Eggert.
55924
55925 2006-11-08  Jim Meyering  <jim@meyering.net>
55926
55927         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55928         It's already included if !_LIBC.
55929         (fts_safe_changedir): Add a comment.
55930
55931 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55932
55933         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55934         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55935         Matthew Woehlke.
55936
55937         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55938         definitions up, to avoid colliding with change below.
55939         (static_inline) [HAVE_INLINE]: New macro.
55940         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55941         Provide extern decls when !HAVE_INLINE.  Do not define unless
55942         static_inline is defined, either by us or by xmalloc.c.  Use
55943         static_inline rather than static inline.
55944         (XCALLOC): Optimize sizeof(T) = 1 case.
55945         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55946
55947 2006-11-07  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55950         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55951         AC_C_INLINE.
55952         * modules/xalloc (Files): Add m4/inline.m4.
55953
55954 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55955
55956         * README: Fix typo.
55957         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55958         (Miscellanous Notes): ...from this.
55959
55960 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55961
55962         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55963         Mention that offsetof should be used instead of sizeof.
55964         From Bruno Haible.
55965
55966 2006-11-07  Bruno Haible  <bruno@clisp.org>
55967
55968         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55969
55970 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55971
55972         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55973         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55974         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55975         (gl_tree_add_before, gl_tree_add_after):
55976         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55977         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55978         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55979         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55980         (gl_linked_add_after, gl_linked_add_at): Likewise.
55981         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55982         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55983         (gl_tree_add_before, gl_tree_add_after): Likewise.
55984         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55985         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55986         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55987
55988 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55989
55990         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55991
55992 2006-11-06  Bruno Haible  <bruno@clisp.org>
55993
55994         * m4/inline.m4: New file.
55995         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55996         * modules/list (Files): Add m4/inline.m4.
55997         * modules/oset (Files): Likewise.
55998
55999 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         * lib/idcache.c: Include <stddef.h>, for offsetof.
56002         (struct userid.name): Change from char * to a flexible array member.
56003         All uses changed.
56004         * modules/idcache (Depends-on): Add flexmember.
56005
56006         * MODULES.html.sh (Core language properties): New module flexmember.
56007         * modules/flexmember, m4/flexmember.m4: New files.
56008
56009         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56010         inline functions that are identical with the old xnmalloc_inline,
56011         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56012         that we can avoid some unnecessary integer multiplications and
56013         divisions in the common case where the element size is known at
56014         compile time.
56015         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56016         needed.
56017         (xnboundedmalloc): Remove.
56018         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56019         arguments, for consistency with rest of this header.
56020         (xcharalloc): Rewrite using XNMALLOC.
56021         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56022         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56023         versions have been moved to lib/xalloc.h and renamed to be the
56024         non-*_inline versions.
56025         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56026         and xnrealloc functions, since those functions are now inline and
56027         now call us.
56028         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56029         renaming described above.
56030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56031         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56032         captures the dependency in AC_C_INLINE.
56033
56034         New module canonicalize-lgpl, proposed by Charles Wilson in
56035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56036         with a few small changes afterwards.
56037         * MODULES.html.sh (File system functions): New module
56038         canonicalize-lgpl.
56039         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56040         and canonicalize_file_name.
56041         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56042         * modules/canonicalize-lgpl: New files.
56043
56044 2006-11-05  Bruno Haible  <bruno@clisp.org>
56045
56046         * gnulib-tool (func_import, func_create_testdir): Create directories
56047         also for files in subdirectories of lib/.
56048
56049 2006-11-05  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56052         ANSI C compliant.
56053
56054 2006-11-03  Bruno Haible  <bruno@clisp.org>
56055
56056         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56057         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56058         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56059         (xnboundedmalloc): New inline function.
56060         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56061         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56062         xmalloc.
56063         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56064         xmalloc.
56065         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56066         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56067         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56068         xmalloc.
56069         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56070         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56071         xmalloc.
56072         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56073         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56074         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56075         xmalloc.
56076         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56077         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56078         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56079         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56080         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56081         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56082         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56083
56084 2006-11-03  Bruno Haible  <bruno@clisp.org>
56085
56086         * lib/c-ctype.h [C++]: Define functions without name mangling.
56087         * lib/fwriteerror.h [C++]: Likewise.
56088         * lib/gcd.h [C++]: Likewise.
56089         * lib/linebreak.h [C++]: Likewise.
56090
56091 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56092
56093         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56094         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56095         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56096         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56097         Check for functions and headers just once.
56098         Check for declaration of canonicalize_file_name.
56099         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56100
56101 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56102
56103         * gnulib-tool (func_import): Fix typo in actioncmd.
56104
56105 2006-11-02  Bruno Haible  <bruno@clisp.org>
56106
56107         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56108         newline sequence in the Makefile.am snippet as a space, like "make"
56109         does.
56110         Reported by Roger Persson <perrog@gmail.com>.
56111
56112 2006-11-01  Bruno Haible  <bruno@clisp.org>
56113
56114         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56115         already declared in <string.h>.
56116         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56117
56118 2006-11-01  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56121         * lib/strcase.h: Include <string.h>.
56122         (strcasecmp): Define to rpl_strcasecmp here.
56123
56124 2006-11-01  Bruno Haible  <bruno@clisp.org>
56125
56126         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56127
56128 2006-11-01  Eric Blake  <ebb9@byu.net>
56129
56130         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56131
56132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56133
56134 2006-10-29  Bruno Haible  <bruno@clisp.org>
56135
56136         Make it compile in C++ mode.
56137         * lib/full-write.c (full_rw): Add a cast.
56138
56139 2006-11-01  Bruno Haible  <bruno@clisp.org>
56140
56141         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56142         be POSIX compliant.
56143         Reported by Roger Persson <perrog@gmail.com>.
56144
56145 2006-11-01  Eric Blake  <ebb9@byu.net>
56146
56147         * lib/getopt_.h: Fix comments.
56148
56149 2006-10-31  Eric Blake  <ebb9@byu.net>
56150
56151         * modules/tmpdir (Depends-on): Add sys_stat.
56152         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56153         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56154         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56155         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56156         tempname.
56157
56158 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56159
56160         Avoid some C++ diagnostics reported by Bruno Haible.
56161         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56162         xmalloc.
56163         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56164         (struct slotvec): Move to top level.
56165         (quotearg_n_options): Rewrite to avoid xmalloc.
56166         * lib/xalloc.h (xcharalloc): New function.
56167         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56168         [defined __cplusplus]: Add function template that provides result
56169         type propagation.  This part of the change is from Bruno Haible.
56170
56171 2006-10-29  Bruno Haible  <bruno@clisp.org>
56172
56173         Make it compile in C++ mode.
56174         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56175         * lib/strnlen1.c (strnlen1): Cast memchr result.
56176         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56177         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56178         (create_temp_dir): Rename local variable 'template'.
56179         (compile_csharp_using_sscli): Add cast.
56180         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56181         * lib/findprog.c (find_in_path): Likewise.
56182         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56183         * lib/wait-process.c (register_slave_subprocess): Likewise.
56184
56185 2006-10-22  Bruno Haible  <bruno@clisp.org>
56186
56187         * modules/tsearch: New file.
56188         * lib/tsearch.h: New file.
56189         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56190         * m4/tsearch.m4: New file.
56191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56192
56193 2006-10-29  Eric Blake  <ebb9@byu.net>
56194
56195         * lib/arcfour.c: Assume config.h.
56196         * lib/arctwo.c: Likewise.
56197         * lib/base64.c: Likewise.
56198         * lib/check-version.c: Likewise.
56199         * lib/crc.c: Likewise.
56200         * lib/des.c: Likewise.
56201         * lib/gc-gnulib.c: Likewise.
56202         * lib/gc-libgcrypt.c: Likewise.
56203         * lib/gc-pbkdf2-sha1.c: Likewise.
56204         * lib/getaddrinfo.c: Likewise.
56205         * lib/getdelim.c: Likewise.
56206         * lib/getline.c: Likewise.
56207         * lib/hmac-md5.c: Likewise.
56208         * lib/hmac-sha1.c: Likewise.
56209         * lib/iconvme.c: Likewise.
56210         * lib/md2.c: Likewise.
56211         * lib/md4.c: Likewise.
56212         * lib/memxor.c: Likewise.
56213         * lib/read-file.c: Likewise.
56214         * lib/readline.c: Likewise.
56215         * lib/rijndael-alg-fst.c: Likewise.
56216         * lib/rijndael-api-fst.c: Likewise.
56217         * lib/xgetdomainname.c: Likewise.
56218
56219 2006-10-28  Eric Blake  <ebb9@byu.net>
56220
56221         * lib/xstrndup.c: Assume config.h.
56222
56223 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56224
56225         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56226         stat-macros.h is now for our own macros, whereas stat_h is for
56227         macros in the <sys/stat.h> name space.
56228         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56229         (STAT_MACROS_H): Remove.
56230         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56231         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56232         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56233         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56234         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56235         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56236         Move these macros to ...
56237         * lib/stat_.h: here.  Don't include stat-macros.h.
56238         * lib/canonicalize.c: Don't include stat-macros.h.
56239         * lib/chown.c: Likewise.
56240         * lib/euidaccess.c: Likewise.
56241         * lib/file-type.c: Likewise.
56242         * lib/filemode.c: Likewise.
56243         * lib/glob.c: Likewise.
56244         * lib/isapipe.c: Likewise.
56245         * lib/lchown.c: Likewise.
56246         * lib/lstat.c: Likewise.
56247         * lib/mkdir-p.c: Likewise.
56248         * lib/rmdir.c: Likewise.
56249         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56251         unless mkdir isn't declared, to speed up 'configure'.
56252         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56253         would define all the S_* symbols.
56254         * modules/canonicalize (Depends-on):
56255         Depend on sys_stat, not stat-macros.
56256         * modules/chown: Likewise.
56257         * modules/euidaccess: Likewise.
56258         * modules/filemode: Likewise.
56259         * modules/file-type: Likewise.
56260         * modules/glob: Likewise.
56261         * modules/isapipe: Likewise.
56262         * modules/lchown: Likewise.
56263         * modules/lstat: Likewise.
56264         * modules/mkancesdirs: Likewise.
56265         * modules/rmdir: Likewise.
56266         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56267         * modules/modechange: Likewise.
56268         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56269         (configure.ac): Remove gl_STAT_MACROS.
56270         * modules/sys_stat (Depends-on): Remove stat-macros.
56271
56272 2006-10-27  Bruno Haible  <bruno@clisp.org>
56273
56274         * m4/signed.m4: Remove file.
56275         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56276         invocation.
56277         * modules/vasnprintf (Files): Remove m4/signed.m4.
56278
56279 2006-10-27  Bruno Haible  <bruno@clisp.org>
56280
56281         Update to GNU gettext 0.16.
56282         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56283         m4/inttypes-h.m4, m4/signed.m4.
56284         * m4/gettext.m4: Update to GNU gettext 0.16.
56285         * m4/intl.m4: New file, from GNU gettext.
56286         * m4/intldir.m4: New file, from GNU gettext.
56287         * config/srclist.txt: Update
56288
56289 2006-10-27  Eric Blake  <ebb9@byu.net>
56290
56291         * MODULES.html.sh: Document tempname.
56292         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56293         dependencies.
56294         (Files): Move lib/tempname.c...
56295         * modules/tempname: ...to this new module.
56296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56297         (gl_PREREQ_TEMPNAME): Move...
56298         * m4/tempname.m4: ...to this new file.
56299         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56300         * modules/sys_stat (Depends-on): Add stat-macros.
56301         * lib/stat_.h (includes): Pick up stat macros.
56302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56303         if stat macros are broken.
56304         * lib/tempname.c (includes): No need to include "stat-macros.h".
56305         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56306         (direxists, __path_search) [!_LIBC]: Don't compile these in
56307         gnulib; the tmpdir module covers that.
56308         * lib/tempname.h: New file.
56309
56310 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * COPYING: Explain how gnulib-tool converts licence headers.
56313         Almost all wording by Eric Blake.
56314
56315 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56316
56317         * lib/mbchar.h (is_basic_table): Make read-only.
56318         * lib/mbchar.c (is_basic_table): Likewise.
56319         Reported by John Darrington.
56320
56321 2006-10-25  Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/progname.h (set_program_name): Undefine before defining.
56324
56325 2006-10-25  Bruno Haible  <bruno@clisp.org>
56326
56327         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56328         false for non-gcc C++ compilers.
56329         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56330
56331 2006-10-24  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56334         iconv implementations like Irix iconv.
56335
56336 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * modules/vararrays: New file.
56339         * m4/vararrays.m4: New file, taken from diffutils.
56340         * MODULES.html.sh: New module vararrays.
56341
56342 2006-10-24  Karl Berry  <karl@gnu.org>
56343
56344         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56345         Don't call GNU Unix.
56346
56347 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56348
56349         * users.txt: Add Libtool.
56350
56351         Sync from Libtool:
56352
56353         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56354
56355         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56356         to gnulib's policy of including config.h unconditionally.
56357
56358 2006-10-24  Bruno Haible  <bruno@clisp.org>
56359
56360         * modules/wcwidth (Files): Add m4/wint_t.m4.
56361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56362         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56363
56364 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56365
56366         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56367         to pacify GCC with some -W flags enabled.  Problem reported by
56368         Bruno Haible.
56369
56370 2006-10-24  Jim Meyering  <jim@meyering.net>
56371
56372         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56373         Reported by Karl Berry.
56374
56375 2006-10-23  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56378
56379 2006-10-24  Bruno Haible  <bruno@clisp.org>
56380
56381         * lib/gl_list.h: Use C comment style, not C++ comment style.
56382
56383 2006-10-23  Eric Blake  <ebb9@byu.net>
56384
56385         * lib/getaddrinfo.c (includes): Add missing include.
56386
56387 2006-10-23  Bruno Haible  <bruno@clisp.org>
56388             Paul Eggert  <eggert@cs.ucla.edu>
56389
56390         Ability to rename obstack_free.
56391         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56392         obstack_free.
56393         (obstack_free): Invoke the __obstack_free macro.
56394         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56395
56396 2006-10-23  Bruno Haible  <bruno@clisp.org>
56397             Paul Eggert  <eggert@cs.ucla.edu>
56398
56399         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56400         __argc, __argv from the declaration. (They are defined as macros on
56401         mingw.)
56402
56403 2006-10-22  Bruno Haible  <bruno@clisp.org>
56404
56405         * doc/gnulib-intro.texi: New file.
56406         * doc/gnulib.texi: Include it.
56407
56408 2006-10-21  Bruno Haible  <bruno@clisp.org>
56409
56410         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56411         "Introduction", "Miscellanous Notes", "Particular Modules".
56412
56413 2006-10-21  Bruno Haible  <bruno@clisp.org>
56414
56415         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56416         Change mostlyclean-local rule to avoid sh syntax error from bash
56417         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56418
56419 2006-10-23  Jim Meyering  <jim@meyering.net>
56420
56421         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56422         in place of snprintf.
56423
56424         * modules/inttostr (Files): Add lib/uinttostr.c.
56425         * lib/uinttostr.c (inttostr): New file/function.
56426         * lib/inttostr.h (uinttostr): Declare.
56427         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56428         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56429         Add uinttostr.
56430         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56431
56432 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * lib/canonicalize.c (ELOOP): Define if not already defined.
56435         Problem reported by Bruno Haible in
56436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56437
56438 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56439
56440         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56441         Problem reported by Perry Smith and Ville Laurikari.
56442
56443         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56444         uses.
56445
56446 2006-10-19  Bruno Haible  <bruno@clisp.org>
56447
56448         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56449         for mingw.
56450
56451 2006-10-19  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56454         Needed for mingw.
56455
56456 2006-10-19  Bruno Haible  <bruno@clisp.org>
56457
56458         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56459
56460 2006-10-19  Bruno Haible  <bruno@clisp.org>
56461
56462         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56463         it.
56464
56465 2006-10-19  Bruno Haible  <bruno@clisp.org>
56466
56467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56468         invocation.
56469
56470 2006-10-19  Bruno Haible  <bruno@clisp.org>
56471
56472         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56473         mountlist by default.
56474
56475 2006-10-16  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/c-strstr.c: Include c-strstr.h.
56478
56479 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56480
56481         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56482         in a slash.
56483
56484 2006-10-18  Bruno Haible  <bruno@clisp.org>
56485
56486         * lib/lock.h [C++]: Wrap definitions in extern "C".
56487
56488 2006-10-18  Bruno Haible  <bruno@clisp.org>
56489
56490         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56491         gl_LIBOBJS list.
56492
56493 2006-10-18  Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56496
56497 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * lib/xstrtol.h: Include gettext.h.
56500         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56501         Problem reported by Eric Blake.
56502         * modules/xstrtol (Depends-on): Add gettext-h.
56503
56504 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56505
56506         * lib/strftime.c (advance): New macro.
56507         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56508         incomplete type, so you can't add 0 to it.  Problem and patch
56509         reported by Eelco Dolstra for dietlibc.
56510
56511 2006-10-18  Jim Meyering  <jim@meyering.net>
56512
56513         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56514         type for a local, and rename it: s/up/user_proc/.
56515
56516 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56517
56518         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56519         READ_UTMP_USER_PROCESS.
56520         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56521
56522 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56525         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56526
56527 2006-10-17  Eric Blake  <ebb9@byu.net>
56528
56529         * lib/sigprocmask.c (sigprocmask): Fix typo.
56530
56531         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56532
56533         * modules/clean-temp (Makefile.am): Don't add to make output...
56534         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56535         config.h.
56536
56537 2006-10-17  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56540         differently if DEFAULT_TEXT_DOMAIN is set.
56541
56542 2006-10-16  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/clean-temp.c: Include fwriteerror.h.
56545
56546 2006-10-16  Bruno Haible  <bruno@clisp.org>
56547
56548         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56549
56550 2006-10-16  Bruno Haible  <bruno@clisp.org>
56551
56552         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56553         * lib/sigprocmask.h: Include <sys/types.h>.
56554         (sigset_t): Use the system's definition if present.
56555
56556 2006-10-17  Eric Blake  <ebb9@byu.net>
56557
56558         * lib/xvasprintf.c (includes): Assume config.h.
56559         * lib/xasprintf.c (includes): Likewise.
56560
56561 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56562
56563         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56564         at least as wide as intmax_t.
56565
56566 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56567
56568         (Imported from Automake.)
56569         * build-aux/gnupload: Update to version 1.1 of directive file.
56570
56571 2006-10-16  Eric Blake  <ebb9@byu.net>
56572
56573         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56574         match Automake 1.10a.
56575
56576 2006-10-14  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/sigprocmask: New file.
56579         * lib/sigprocmask.h: New file.
56580         * lib/sigprocmask.c: New file.
56581         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56582         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56583         request sigprocmask.o.
56584         (gl_PREREQ_SIGPROCMASK): New macro.
56585         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56586         (Depends-on): Add sigprocmask.
56587         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56588         gt_SIGNALBLOCKING. Test for 'raise' only once.
56589         * lib/fatal-signal.c: Include sigprocmask.h.
56590         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56591         unblock_fatal_signals): Define always.
56592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56593         sigprocmask.
56594
56595 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         Sync from Automake.
56598         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56599         which incorrectly sets the mode of an existing destination
56600         directory.  In some cases the unpatched install-sh could do the
56601         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56602         system.  We hope this is rare in practice, but it's clearly worth
56603         fixing.  Problem reported by Alex Unleashed in
56604         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56605         Also, don't bother to check for -m bugs unless we're using -m;
56606         suggested by Stepan Kasal.
56607
56608 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56609
56610         Sync from Automake.
56611         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56612         `-c' flag, so they appear at the same position as in %FASTDEP%
56613         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56614         which ignores unknown options only after the first non-option.
56615         Bug report against M4 by Nelson H. F. Beebe.
56616
56617 2006-10-13  Jim Meyering  <jim@meyering.net>
56618
56619         Fix a bug in yesterday's change.
56620         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56621         p->fts_statp->st_dev would be used uninitialized.
56622         Ensures that we always call fts_stat on the very first entry.
56623         Miklos Szeredi reported that find -xdev stopped working.
56624
56625 2006-10-12  Bruno Haible  <bruno@clisp.org>
56626
56627         * gnulib-tool (func_get_automake_snippet): Append an automatically
56628         computed EXTRA_DIST augmentation.
56629         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56630         * modules/alloca-opt (Makefile.am): Likewise.
56631         * modules/allocsa (Makefile.am): Likewise.
56632         * modules/arcfour (Makefile.am): Likewise.
56633         * modules/arctwo (Makefile.am): Likewise.
56634         * modules/argmatch (Makefile.am): Likewise.
56635         * modules/argz (Makefile.am): Likewise.
56636         * modules/atexit (Makefile.am): Likewise.
56637         * modules/backupfile (Makefile.am): Likewise.
56638         * modules/byteswap (Makefile.am): Likewise.
56639         * modules/c-strtod (Makefile.am): Likewise.
56640         * modules/c-strtold (Makefile.am): Likewise.
56641         * modules/calloc (Makefile.am): Likewise.
56642         * modules/canon-host (Makefile.am): Likewise.
56643         * modules/canonicalize (Makefile.am): Likewise.
56644         * modules/chdir-long (Makefile.am): Likewise.
56645         * modules/chdir-safer (Makefile.am): Likewise.
56646         * modules/check-version (Makefile.am): Likewise.
56647         * modules/chown (Makefile.am): Likewise.
56648         * modules/cloexec (Makefile.am): Likewise.
56649         * modules/close-stream (Makefile.am): Likewise.
56650         * modules/closeout (Makefile.am): Likewise.
56651         * modules/crc (Makefile.am): Likewise.
56652         * modules/csharpexec (Makefile.am): Likewise.
56653         * modules/cycle-check (Makefile.am): Likewise.
56654         * modules/des (Makefile.am): Likewise.
56655         * modules/dev-ino (Makefile.am): Likewise.
56656         * modules/dirfd (Makefile.am): Likewise.
56657         * modules/dirname (Makefile.am): Likewise.
56658         * modules/dup2 (Makefile.am): Likewise.
56659         * modules/eealloc (Makefile.am): Likewise.
56660         * modules/error (Makefile.am): Likewise.
56661         * modules/euidaccess (Makefile.am): Likewise.
56662         * modules/exclude (Makefile.am): Likewise.
56663         * modules/exitfail (Makefile.am): Likewise.
56664         * modules/fcntl-safer (Makefile.am): Likewise.
56665         * modules/fcntl (Makefile.am): Likewise.
56666         * modules/file-type (Makefile.am): Likewise.
56667         * modules/fileblocks (Makefile.am): Likewise.
56668         * modules/filemode (Makefile.am): Likewise.
56669         * modules/filenamecat (Makefile.am): Likewise.
56670         * modules/fnmatch (Makefile.am): Likewise.
56671         * modules/fopen-safer (Makefile.am): Likewise.
56672         * modules/fpending (Makefile.am): Likewise.
56673         * modules/fprintftime (Makefile.am): Likewise.
56674         * modules/free (Makefile.am): Likewise.
56675         * modules/fsusage (Makefile.am): Likewise.
56676         * modules/ftruncate (Makefile.am): Likewise.
56677         * modules/fts (Makefile.am): Likewise.
56678         * modules/gc-arcfour (Makefile.am): Likewise.
56679         * modules/gc-des (Makefile.am): Likewise.
56680         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56681         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56682         * modules/gc-md4 (Makefile.am): Likewise.
56683         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56684         * modules/gc-sha1 (Makefile.am): Likewise.
56685         * modules/gc (Makefile.am): Likewise.
56686         * modules/getaddrinfo (Makefile.am): Likewise.
56687         * modules/getcwd (Makefile.am): Likewise.
56688         * modules/getdelim (Makefile.am): Likewise.
56689         * modules/getdomainname (Makefile.am): Likewise.
56690         * modules/getgroups (Makefile.am): Likewise.
56691         * modules/gethostname (Makefile.am): Likewise.
56692         * modules/gethrxtime (Makefile.am): Likewise.
56693         * modules/getline (Makefile.am): Likewise.
56694         * modules/getloadavg (Makefile.am): Likewise.
56695         * modules/getlogin_r (Makefile.am): Likewise.
56696         * modules/getndelim2 (Makefile.am): Likewise.
56697         * modules/getopt (Makefile.am): Likewise.
56698         * modules/getpagesize (Makefile.am): Likewise.
56699         * modules/getpass-gnu (Makefile.am): Likewise.
56700         * modules/getpass (Makefile.am): Likewise.
56701         * modules/getsubopt (Makefile.am): Likewise.
56702         * modules/gettime (Makefile.am): Likewise.
56703         * modules/gettimeofday (Makefile.am): Likewise.
56704         * modules/getugroups (Makefile.am): Likewise.
56705         * modules/getusershell (Makefile.am): Likewise.
56706         * modules/glob (Makefile.am): Likewise.
56707         * modules/group-member (Makefile.am): Likewise.
56708         * modules/hard-locale (Makefile.am): Likewise.
56709         * modules/hash (Makefile.am): Likewise.
56710         * modules/hmac-md5 (Makefile.am): Likewise.
56711         * modules/hmac-sha1 (Makefile.am): Likewise.
56712         * modules/human (Makefile.am): Likewise.
56713         * modules/idcache (Makefile.am): Likewise.
56714         * modules/imaxabs (Makefile.am): Likewise.
56715         * modules/imaxdiv (Makefile.am): Likewise.
56716         * modules/inet_ntop (Makefile.am): Likewise.
56717         * modules/inet_pton (Makefile.am): Likewise.
56718         * modules/intprops (Makefile.am): Likewise.
56719         * modules/inttostr (Makefile.am): Likewise.
56720         * modules/inttypes (Makefile.am): Likewise.
56721         * modules/isapipe (Makefile.am): Likewise.
56722         * modules/javaversion (Makefile.am): Likewise.
56723         * modules/lchmod (Makefile.am): Likewise.
56724         * modules/lchown (Makefile.am): Likewise.
56725         * modules/localcharset (Makefile.am): Likewise.
56726         * modules/long-options (Makefile.am): Likewise.
56727         * modules/lstat (Makefile.am): Likewise.
56728         * modules/malloc (Makefile.am): Likewise.
56729         * modules/mathl (Makefile.am): Likewise.
56730         * modules/mbchar (Makefile.am): Likewise.
56731         * modules/md2 (Makefile.am): Likewise.
56732         * modules/md4 (Makefile.am): Likewise.
56733         * modules/md5 (Makefile.am): Likewise.
56734         * modules/memcasecmp (Makefile.am): Likewise.
56735         * modules/memchr (Makefile.am): Likewise.
56736         * modules/memcmp (Makefile.am): Likewise.
56737         * modules/memcoll (Makefile.am): Likewise.
56738         * modules/memcpy (Makefile.am): Likewise.
56739         * modules/memmem (Makefile.am): Likewise.
56740         * modules/memmove (Makefile.am): Likewise.
56741         * modules/mempcpy (Makefile.am): Likewise.
56742         * modules/memrchr (Makefile.am): Likewise.
56743         * modules/memset (Makefile.am): Likewise.
56744         * modules/memxor (Makefile.am): Likewise.
56745         * modules/mkancesdirs (Makefile.am): Likewise.
56746         * modules/mkdir-p (Makefile.am): Likewise.
56747         * modules/mkdir (Makefile.am): Likewise.
56748         * modules/mkdtemp (Makefile.am): Likewise.
56749         * modules/mkstemp (Makefile.am): Likewise.
56750         * modules/mktime (Makefile.am): Likewise.
56751         * modules/modechange (Makefile.am): Likewise.
56752         * modules/mountlist (Makefile.am): Likewise.
56753         * modules/nanosleep (Makefile.am): Likewise.
56754         * modules/obstack (Makefile.am): Likewise.
56755         * modules/openat (Makefile.am): Likewise.
56756         * modules/pagealign_alloc (Makefile.am): Likewise.
56757         * modules/pathmax (Makefile.am): Likewise.
56758         * modules/physmem (Makefile.am): Likewise.
56759         * modules/poll (Makefile.am): Likewise.
56760         * modules/posixtm (Makefile.am): Likewise.
56761         * modules/posixver (Makefile.am): Likewise.
56762         * modules/putenv (Makefile.am): Likewise.
56763         * modules/quote (Makefile.am): Likewise.
56764         * modules/quotearg (Makefile.am): Likewise.
56765         * modules/raise (Makefile.am): Likewise.
56766         * modules/read-file (Makefile.am): Likewise.
56767         * modules/readline (Makefile.am): Likewise.
56768         * modules/readlink (Makefile.am): Likewise.
56769         * modules/readtokens (Makefile.am): Likewise.
56770         * modules/readutmp (Makefile.am): Likewise.
56771         * modules/realloc (Makefile.am): Likewise.
56772         * modules/regex (Makefile.am): Likewise.
56773         * modules/rename-dest-slash (Makefile.am): Likewise.
56774         * modules/rename (Makefile.am): Likewise.
56775         * modules/rijndael (Makefile.am): Likewise.
56776         * modules/rmdir (Makefile.am): Likewise.
56777         * modules/rpmatch (Makefile.am): Likewise.
56778         * modules/safe-read (Makefile.am): Likewise.
56779         * modules/safe-write (Makefile.am): Likewise.
56780         * modules/same-inode (Makefile.am): Likewise.
56781         * modules/same (Makefile.am): Likewise.
56782         * modules/save-cwd (Makefile.am): Likewise.
56783         * modules/savedir (Makefile.am): Likewise.
56784         * modules/setenv (Makefile.am): Likewise.
56785         * modules/settime (Makefile.am): Likewise.
56786         * modules/sha1 (Makefile.am): Likewise.
56787         * modules/sig2str (Makefile.am): Likewise.
56788         * modules/snprintf (Makefile.am): Likewise.
56789         * modules/stat-macros (Makefile.am): Likewise.
56790         * modules/stat-time (Makefile.am): Likewise.
56791         * modules/stdbool (Makefile.am): Likewise.
56792         * modules/stdint (Makefile.am): Likewise.
56793         * modules/stdlib-safer (Makefile.am): Likewise.
56794         * modules/stpcpy (Makefile.am): Likewise.
56795         * modules/stpncpy (Makefile.am): Likewise.
56796         * modules/strcase (Makefile.am): Likewise.
56797         * modules/strcasestr (Makefile.am): Likewise.
56798         * modules/strchrnul (Makefile.am): Likewise.
56799         * modules/strcspn (Makefile.am): Likewise.
56800         * modules/strdup (Makefile.am): Likewise.
56801         * modules/strerror (Makefile.am): Likewise.
56802         * modules/strftime (Makefile.am): Likewise.
56803         * modules/strndup (Makefile.am): Likewise.
56804         * modules/strnlen (Makefile.am): Likewise.
56805         * modules/strpbrk (Makefile.am): Likewise.
56806         * modules/strsep (Makefile.am): Likewise.
56807         * modules/strstr (Makefile.am): Likewise.
56808         * modules/strtod (Makefile.am): Likewise.
56809         * modules/strtoimax (Makefile.am): Likewise.
56810         * modules/strtok_r (Makefile.am): Likewise.
56811         * modules/strtol (Makefile.am): Likewise.
56812         * modules/strtoll (Makefile.am): Likewise.
56813         * modules/strtoul (Makefile.am): Likewise.
56814         * modules/strtoull (Makefile.am): Likewise.
56815         * modules/strtoumax (Makefile.am): Likewise.
56816         * modules/strverscmp (Makefile.am): Likewise.
56817         * modules/sys_socket (Makefile.am): Likewise.
56818         * modules/sys_stat (Makefile.am): Likewise.
56819         * modules/sysexits (Makefile.am): Likewise.
56820         * modules/time_r (Makefile.am): Likewise.
56821         * modules/timegm (Makefile.am): Likewise.
56822         * modules/timespec (Makefile.am): Likewise.
56823         * modules/tmpfile-safer (Makefile.am): Likewise.
56824         * modules/trim (Makefile.am): Likewise.
56825         * modules/unistd-safer (Makefile.am): Likewise.
56826         * modules/unlinkdir (Makefile.am): Likewise.
56827         * modules/unlocked-io (Makefile.am): Likewise.
56828         * modules/userspec (Makefile.am): Likewise.
56829         * modules/utime (Makefile.am): Likewise.
56830         * modules/utimecmp (Makefile.am): Likewise.
56831         * modules/utimens (Makefile.am): Likewise.
56832         * modules/vasnprintf (Makefile.am): Likewise.
56833         * modules/vasprintf (Makefile.am): Likewise.
56834         * modules/vsnprintf (Makefile.am): Likewise.
56835         * modules/xalloc (Makefile.am): Likewise.
56836         * modules/xgetcwd (Makefile.am): Likewise.
56837         * modules/xnanosleep (Makefile.am): Likewise.
56838         * modules/xreadlink (Makefile.am): Likewise.
56839         * modules/xstrtod (Makefile.am): Likewise.
56840         * modules/xstrtol (Makefile.am): Likewise.
56841         * modules/xstrtold (Makefile.am): Likewise.
56842         * modules/yesno (Makefile.am): Likewise.
56843         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56844
56845 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56846
56847         * modules/error (Makefile.am): Distribute files through
56848         EXTRA_DIST, not lib_SOURCES.
56849
56850 2006-10-12  Eric Blake  <ebb9@byu.net>
56851
56852         * modules/error (Makefile.am): Distribute files in /lib.
56853         * modules/obstack (Makefile.am): Likewise.
56854
56855 2006-10-12  Bruno Haible  <bruno@clisp.org>
56856
56857         * modules/acl (Makefile.am): Distribute all files in lib/ through
56858         EXTRA_DIST.
56859         * modules/arcfour (Makefile.am): Likewise.
56860         * modules/arctwo (Makefile.am): Likewise.
56861         * modules/argmatch (Makefile.am): Likewise.
56862         * modules/argz (Makefile.am): Likewise.
56863         * modules/atexit (Makefile.am): Likewise.
56864         * modules/backupfile (Makefile.am): Likewise.
56865         * modules/c-strtod (Makefile.am): Likewise.
56866         * modules/c-strtold (Makefile.am): Likewise.
56867         * modules/calloc (Makefile.am): Likewise.
56868         * modules/canon-host (Makefile.am): Likewise.
56869         * modules/canonicalize (Makefile.am): Likewise.
56870         * modules/chdir-long (Makefile.am): Likewise.
56871         * modules/chdir-safer (Makefile.am): Likewise.
56872         * modules/check-version (Makefile.am): Likewise.
56873         * modules/chown (Makefile.am): Likewise.
56874         * modules/cloexec (Makefile.am): Likewise.
56875         * modules/close-stream (Makefile.am): Likewise.
56876         * modules/closeout (Makefile.am): Likewise.
56877         * modules/crc (Makefile.am): Likewise.
56878         * modules/cycle-check (Makefile.am): Likewise.
56879         * modules/des (Makefile.am): Likewise.
56880         * modules/dirfd (Makefile.am): Likewise.
56881         * modules/dirname (Makefile.am): Likewise.
56882         * modules/dup2 (Makefile.am): Likewise.
56883         * modules/euidaccess (Makefile.am): Likewise.
56884         * modules/exclude (Makefile.am): Likewise.
56885         * modules/exitfail (Makefile.am): Likewise.
56886         * modules/fcntl-safer (Makefile.am): Likewise.
56887         * modules/file-type (Makefile.am): Likewise.
56888         * modules/fileblocks (Makefile.am): Likewise.
56889         * modules/filemode (Makefile.am): Likewise.
56890         * modules/filenamecat (Makefile.am): Likewise.
56891         * modules/fnmatch (Makefile.am): Likewise.
56892         * modules/fopen-safer (Makefile.am): Likewise.
56893         * modules/fpending (Makefile.am): Likewise.
56894         * modules/fprintftime (Makefile.am): Likewise.
56895         * modules/free (Makefile.am): Likewise.
56896         * modules/fsusage (Makefile.am): Likewise.
56897         * modules/ftruncate (Makefile.am): Likewise.
56898         * modules/fts (Makefile.am): Likewise.
56899         * modules/gc (Makefile.am): Likewise.
56900         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56901         * modules/getaddrinfo (Makefile.am): Likewise.
56902         * modules/getcwd (Makefile.am): Likewise.
56903         * modules/getdelim (Makefile.am): Likewise.
56904         * modules/getdomainname (Makefile.am): Likewise.
56905         * modules/getgroups (Makefile.am): Likewise.
56906         * modules/gethostname (Makefile.am): Likewise.
56907         * modules/gethrxtime (Makefile.am): Likewise.
56908         * modules/getline (Makefile.am): Likewise.
56909         * modules/getloadavg (Makefile.am): Likewise.
56910         * modules/getlogin_r (Makefile.am): Likewise.
56911         * modules/getopt (Makefile.am): Likewise.
56912         * modules/getpass (Makefile.am): Likewise.
56913         * modules/getpass-gnu (Makefile.am): Likewise.
56914         * modules/getsubopt (Makefile.am): Likewise.
56915         * modules/gettime (Makefile.am): Likewise.
56916         * modules/gettimeofday (Makefile.am): Likewise.
56917         * modules/getugroups (Makefile.am): Likewise.
56918         * modules/getusershell (Makefile.am): Likewise.
56919         * modules/glob (Makefile.am): Likewise.
56920         * modules/group-member (Makefile.am): Likewise.
56921         * modules/hard-locale (Makefile.am): Likewise.
56922         * modules/hash (Makefile.am): Likewise.
56923         * modules/hmac-md5 (Makefile.am): Likewise.
56924         * modules/hmac-sha1 (Makefile.am): Likewise.
56925         * modules/human (Makefile.am): Likewise.
56926         * modules/idcache (Makefile.am): Likewise.
56927         * modules/imaxabs (Makefile.am): Likewise.
56928         * modules/imaxdiv (Makefile.am): Likewise.
56929         * modules/inet_ntop (Makefile.am): Likewise.
56930         * modules/inet_pton (Makefile.am): Likewise.
56931         * modules/inttostr (Makefile.am): Likewise.
56932         * modules/isapipe (Makefile.am): Likewise.
56933         * modules/lchown (Makefile.am): Likewise.
56934         * modules/long-options (Makefile.am): Likewise.
56935         * modules/lstat (Makefile.am): Likewise.
56936         * modules/malloc (Makefile.am): Likewise.
56937         * modules/mathl (Makefile.am): Likewise.
56938         * modules/mbchar (Makefile.am): Likewise.
56939         * modules/md2 (Makefile.am): Likewise.
56940         * modules/md4 (Makefile.am): Likewise.
56941         * modules/md5 (Makefile.am): Likewise.
56942         * modules/memcasecmp (Makefile.am): Likewise.
56943         * modules/memchr (Makefile.am): Likewise.
56944         * modules/memcmp (Makefile.am): Likewise.
56945         * modules/memcoll (Makefile.am): Likewise.
56946         * modules/memcpy (Makefile.am): Likewise.
56947         * modules/memmem (Makefile.am): Likewise.
56948         * modules/memmove (Makefile.am): Likewise.
56949         * modules/mempcpy (Makefile.am): Likewise.
56950         * modules/memrchr (Makefile.am): Likewise.
56951         * modules/memset (Makefile.am): Likewise.
56952         * modules/memxor (Makefile.am): Likewise.
56953         * modules/mkancesdirs (Makefile.am): Likewise.
56954         * modules/mkdir (Makefile.am): Likewise.
56955         * modules/mkdir-p (Makefile.am): Likewise.
56956         * modules/mkdtemp (Makefile.am): Likewise.
56957         * modules/mkstemp (Makefile.am): Likewise.
56958         * modules/mktime (Makefile.am): Likewise.
56959         * modules/modechange (Makefile.am): Likewise.
56960         * modules/mountlist (Makefile.am): Likewise.
56961         * modules/nanosleep (Makefile.am): Likewise.
56962         * modules/openat (Makefile.am): Likewise.
56963         * modules/pagealign_alloc (Makefile.am): Likewise.
56964         * modules/physmem (Makefile.am): Likewise.
56965         * modules/poll (Makefile.am): Likewise.
56966         * modules/posixtm (Makefile.am): Likewise.
56967         * modules/posixver (Makefile.am): Likewise.
56968         * modules/putenv (Makefile.am): Likewise.
56969         * modules/quote (Makefile.am): Likewise.
56970         * modules/quotearg (Makefile.am): Likewise.
56971         * modules/raise (Makefile.am): Likewise.
56972         * modules/read-file (Makefile.am): Likewise.
56973         * modules/readline (Makefile.am): Likewise.
56974         * modules/readlink (Makefile.am): Likewise.
56975         * modules/readtokens (Makefile.am): Likewise.
56976         * modules/readutmp (Makefile.am): Likewise.
56977         * modules/realloc (Makefile.am): Likewise.
56978         * modules/regex (Makefile.am): Likewise.
56979         * modules/rename (Makefile.am): Likewise.
56980         * modules/rename-dest-slash (Makefile.am): Likewise.
56981         * modules/rijndael (Makefile.am): Likewise.
56982         * modules/rmdir (Makefile.am): Likewise.
56983         * modules/rpmatch (Makefile.am): Likewise.
56984         * modules/safe-read (Makefile.am): Likewise.
56985         * modules/safe-write (Makefile.am): Likewise.
56986         * modules/same (Makefile.am): Likewise.
56987         * modules/save-cwd (Makefile.am): Likewise.
56988         * modules/savedir (Makefile.am): Likewise.
56989         * modules/setenv (Makefile.am): Likewise.
56990         * modules/settime (Makefile.am): Likewise.
56991         * modules/sha1 (Makefile.am): Likewise.
56992         * modules/sig2str (Makefile.am): Likewise.
56993         * modules/snprintf (Makefile.am): Likewise.
56994         * modules/stdlib-safer (Makefile.am): Likewise.
56995         * modules/stpcpy (Makefile.am): Likewise.
56996         * modules/stpncpy (Makefile.am): Likewise.
56997         * modules/strcase (Makefile.am): Likewise.
56998         * modules/strcasestr (Makefile.am): Likewise.
56999         * modules/strchrnul (Makefile.am): Likewise.
57000         * modules/strcspn (Makefile.am): Likewise.
57001         * modules/strdup (Makefile.am): Likewise.
57002         * modules/strerror (Makefile.am): Likewise.
57003         * modules/strftime (Makefile.am): Likewise.
57004         * modules/strndup (Makefile.am): Likewise.
57005         * modules/strnlen (Makefile.am): Likewise.
57006         * modules/strpbrk (Makefile.am): Likewise.
57007         * modules/strsep (Makefile.am): Likewise.
57008         * modules/strstr (Makefile.am): Likewise.
57009         * modules/strtod (Makefile.am): Likewise.
57010         * modules/strtoimax (Makefile.am): Likewise.
57011         * modules/strtok_r (Makefile.am): Likewise.
57012         * modules/strtol (Makefile.am): Likewise.
57013         * modules/strtoll (Makefile.am): Likewise.
57014         * modules/strtoul (Makefile.am): Likewise.
57015         * modules/strtoull (Makefile.am): Likewise.
57016         * modules/strtoumax (Makefile.am): Likewise.
57017         * modules/strverscmp (Makefile.am): Likewise.
57018         * modules/time_r (Makefile.am): Likewise.
57019         * modules/timegm (Makefile.am): Likewise.
57020         * modules/tmpfile-safer (Makefile.am): Likewise.
57021         * modules/unistd-safer (Makefile.am): Likewise.
57022         * modules/unlinkdir (Makefile.am): Likewise.
57023         * modules/userspec (Makefile.am): Likewise.
57024         * modules/utime (Makefile.am): Likewise.
57025         * modules/utimecmp (Makefile.am): Likewise.
57026         * modules/utimens (Makefile.am): Likewise.
57027         * modules/vasnprintf (Makefile.am): Likewise.
57028         * modules/vasprintf (Makefile.am): Likewise.
57029         * modules/vsnprintf (Makefile.am): Likewise.
57030         * modules/xalloc (Makefile.am): Likewise.
57031         * modules/xgetcwd (Makefile.am): Likewise.
57032         * modules/xnanosleep (Makefile.am): Likewise.
57033         * modules/xreadlink (Makefile.am): Likewise.
57034         * modules/xstrtod (Makefile.am): Likewise.
57035         * modules/xstrtol (Makefile.am): Likewise.
57036         * modules/xstrtold (Makefile.am): Likewise.
57037         * modules/yesno (Makefile.am): Likewise.
57038
57039 2006-10-12  Jim Meyering  <jim@meyering.net>
57040
57041         * m4/getloadavg.m4: Revert the change below.
57042
57043         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57044         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57045         fail with a symlink, which is what coreutils' ./bootstrap now
57046         creates by default.
57047
57048 2006-10-12  Bruno Haible  <bruno@clisp.org>
57049
57050         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57051         mingw.
57052         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57053         MSVC and mingw explicitly.
57054
57055 2006-10-11  Simon Josefsson  <jas@extundo.com>
57056             Bruno Haible  <bruno@clisp.org>
57057
57058         Add support for multiple gnulib-tool invocations in the scope of a
57059         single configure.ac file.
57060         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57061         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57062         with the same contents as the _LIBADD variable.
57063         (func_emit_initmacro_start, func_emit_initmacro_end,
57064         func_emit_initmacro_done): New functions.
57065         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57066         gl_LIBOBJS and gl_LTLIBOBJS.
57067
57068 2006-10-11  Bruno Haible  <bruno@clisp.org>
57069
57070         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57071         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57072         autoreconf. Instead, invoke autopoint explicitly but move back the
57073         *.m4 files from gnulib.
57074
57075 2006-10-11  Bruno Haible  <bruno@clisp.org>
57076
57077         * gnulib-tool (func_usage): Make module names after --create-testdir
57078         optional.
57079         (func_create_testdir): If no module was specified, use nearly all
57080         modules.
57081
57082 2006-10-12  Jim Meyering  <jim@meyering.net>
57083
57084         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57085         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57086         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57087         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57088         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57089         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57090         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57091         (fts_set_stat_required): New function.
57092         (fts_open): Defer the calls to fts_stat, if possible or requested.
57093         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57094         into fts_stat itself.
57095         (fts_read): Perform any required (deferred) fts_stat call.
57096         (fts_build): Likewise, for the directory we're about to open and read.
57097         In the readdir loop, carefully decide whether each entry will require
57098         an eventual call to fts_stat, using dirent.d_type info if available.
57099         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57100         a command line argument into this function.  Update all callers.
57101         Map a return value of FTS_DOT to FTS_D for a command line argument.
57102         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57103         Thanks to Miklos Szeredi for his tenacity and for the initial
57104         bug report about "find" failing on a FUSE-based file system.
57105
57106         * lib/fts.c (fts_open): Use consistent indentation.
57107
57108 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57111         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57112         reported by Jim Meyering.  All uses of cache variables renamed
57113         to match Autoconf's.
57114         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57115         the other one.
57116
57117         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57118         Fix misspelling in diagnostic.
57119
57120 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57121
57122         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57123         defined.  Problem reported by Matthew Woehlke.
57124
57125         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57126         Add support for Tandem NonStop R series.
57127         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57128         Use new macro.
57129
57130         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57131         (has_trailing_slash): Omit size arg; all callers changed.
57132         Omit 'inline', since it doesn't help performance and we'd
57133         need to configure it.
57134         Don't count //, ///, etc. as having a trailing slash.
57135         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57136         (rpl_rename_dest_slash): On failure, use rename's errno rather
57137         than (in some cases) an incorrect or junk errno.
57138         Simplify code by removing need to compute length; this does
57139         cause it to make two passes instead of one over the file name,
57140         but it's worth it.
57141
57142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57143         change, since Autoconf's version may no longer be appropriate now
57144         that we are using CVS Autoconf's version.  Add support for Tandem.
57145
57146 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57147             Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57150         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57151         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57152         gl_AC_TYPE_LONG_LONG.
57153
57154         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57155         instead of HAVE_LONG_LONG.
57156         * lib/printf-args.c (printf_fetchargs): Likewise.
57157         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57158         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57159         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57160         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57161         gl_AC_TYPE_LONG_LONG.
57162
57163 2006-10-11  Bruno Haible  <bruno@clisp.org>
57164
57165         * m4/longlong.m4: Add comments.
57166         * m4/ulonglong.m4: Likewise.
57167
57168 2006-10-10  Bruno Haible  <bruno@clisp.org>
57169
57170         Make it possible to #define stpcpy, strdup to aliases.
57171         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57172         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57173
57174 2006-10-10  Bruno Haible  <bruno@clisp.org>
57175
57176         Make it possible to #define gcd to an alias.
57177         * lib/gcd.c: Include config.h.
57178
57179 2006-10-10  Bruno Haible  <bruno@clisp.org>
57180
57181         Make it possible to #define c_isascii to an alias.
57182         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57183         defined. Undefine the macros before defining them, to avoid gcc
57184         warnings.
57185         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57186         define NO_C_CTYPE_MACROS early.
57187
57188 2006-10-10  Bruno Haible  <bruno@clisp.org>
57189
57190         Make it possible to #define set_program_name to an alias.
57191         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57192         ENABLE_RELOCATABLE early.
57193
57194 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57195
57196         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57197         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57198         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57199         More generally, don't assume that 64-bit signed int is available
57200         if unsigned int is, and vice versa.
57201         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57202         unsigned symbols, not on their signed counterparts.
57203         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57204         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57205         (UINT64_C, UINTMAX_C):
57206         Likewise.
57207         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57208         unsigned counterparts.
57209         (Have_long_long, Unsigned): New macros.
57210         (Int): Renamed from INT.
57211         (strtoimax): Use the new macros.
57212         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57213         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57214         * modules/inttypes (inttypes.h): Substitute
57215         HAVE_UNSIGNED_LONG_LONG_INT.
57216         * modules/stdint (stdint.h): Likewise.
57217         (Files): Add m4/ulonglong.m4.
57218
57219 2006-10-10  Bruno Haible  <bruno@clisp.org>
57220
57221         Fix a gcc -Wshadow warning.
57222         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57223         to 'bucket'.
57224         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57225         gl_linked_indexof_from_to): Likewise.
57226         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57227         Likewise.
57228         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57229         Likewise.
57230         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57231         Reported by Eric Blake.
57232
57233 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57236         for NetBSD.  Problem reported by Bruno Haible.
57237
57238 2006-10-09  Jim Meyering  <jim@meyering.net>
57239
57240         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57241         Patch from Bruno Haible.
57242
57243 2006-10-09  Jim Meyering  <jim@meyering.net>
57244
57245         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57246         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57247         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57248
57249 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57250
57251         Don't include <config.h> twice; this doesn't work in some cases,
57252         e.g., when config.h has "#define intmax_t long long int" and
57253         we include <config.h>, <inttypes.h>, <config.h> in that order.
57254         Problem reported by Matthew Woehlke in:
57255         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57256         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57257         * lib/fts-cycle.c: Don't include config.h.
57258         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57259         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57260         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57261         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57262         inttypes.h.
57263         * lib/xstrtoumax.c: Likewise.
57264         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57265         __strtol and the like, so that this module is more like its siblings.
57266         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57267         Remove; no longer needed now that we assume gnulib inttypes.h.
57268
57269 2006-10-08  Bruno Haible  <bruno@clisp.org>
57270
57271         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57272         option.
57273
57274 2006-10-07  Jim Meyering  <jim@meyering.net>
57275
57276         * modules/inttypes (inttypes.h): Revert what seems to have been
57277         an inadvertent part of today's change: use "|", not "/" in the
57278         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57279
57280 2006-10-07  Bruno Haible  <bruno@clisp.org>
57281
57282         * modules/sublist: New file.
57283
57284 2006-10-07  Bruno Haible  <bruno@clisp.org>
57285
57286         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57287         * modules/argz (argz.h): Likewise.
57288         * modules/arpa_inet (arpa/inet.h): Likewise.
57289         * modules/byteswap (byteswap.h): Likewise.
57290         * modules/configmake (configmake.h): Likewise.
57291         * modules/fcntl (fcntl.h): Likewise.
57292         * modules/fnmatch (fnmatch.h): Likewise.
57293         * modules/getopt (getopt.h): Likewise.
57294         * modules/glob (glob.h): Likewise.
57295         * modules/inttypes (inttypes.h): Likewise.
57296         * modules/netinet_in (netinet/in.h): Likewise.
57297         * modules/poll (poll.h): Likewise.
57298         * modules/stdbool (stdbool.h): Likewise.
57299         * modules/stdint (stdint.h): Likewise.
57300         * modules/sys_select (sys/select.h): Likewise.
57301         * modules/sys_socket (sys/socket.h): Likewise.
57302         * modules/sys_stat (sys/stat.h): Likewise.
57303         * modules/sysexits (sysexits.h): Likewise.
57304         * modules/unistd (unistd.h): Likewise.
57305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57306         Add a "DO NOT EDIT" comment to the generated file.
57307         (func_import): Likewise for gnulib-comp.m4.
57308
57309 2006-10-07  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/gl_sublist.h: New file.
57312         * lib/gl_sublist.c: New file.
57313
57314 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57317         name (relative to the original working directory) and the file
57318         name component (relative to the temporary working directory).  All
57319         callers changed.
57320         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57321         * lib/mkdir-p.c (make_dir_parents): Likewise.
57322         * lib/mkdir-p.h (make_dir_parents): Likewise.
57323
57324 2006-10-06  Eric Blake  <ebb9@byu.net>
57325
57326         Define several macros for use by the clean-temp module.
57327         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57329         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57330
57331         * lib/clean-temp.h (close_stream_temp): New declaration.
57332         * lib/clean-temp.c (includes): Pull in headers according to what
57333         other modules are in use.
57334         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57335
57336 2006-10-06  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57339         instead of fopen, fwriteerror.
57340
57341 2006-10-06  Bruno Haible  <bruno@clisp.org>
57342
57343         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57344         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57345         int.
57346         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57347         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57348         Return an error indicator.
57349         Suggested by Eric Blake.
57350
57351 2006-10-06  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57354         Reported by Eric Blake.
57355
57356 2006-10-06  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/closeout (Description): Mention stderr too.
57359
57360 2006-10-06  Bruno Haible  <bruno@clisp.org>
57361         and Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * lib/closeout.c (close_stdout): Also close stderr.
57364         * lib/closeout.h: Update comment.
57365
57366 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57367
57368         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57369         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57370         * lib/dirchownmod.c: Include lchown.h.
57371         * lib/lchown.c: Don't include files that lchown.h now includes.
57372         Don't declare chown, since lchown.h now does that.
57373         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57374         (lchown): Define to rpl_chown if lchown is declared but
57375         does not exist.  Declare using a prototype if lchown is not
57376         declared.  Add a copyright notice.
57377         * lib/mkstemp.h: Include <unistd.h>.
57378         * lib/openat.c: Include lchown.h.
57379
57380         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57381         we now test for that separately.
57382         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57383         rather than O_NOFOLLOW, when testing whether it's possible to
57384         avoid a race condition reliably.
57385         * lib/savewd.c (savewd_chdir): Likewise.
57386
57387         Remove macros that are no longer needed now that stdint.h is
57388         reliable.
57389         * lib/fsusage.c (UINTMAX_MAX): Remove.
57390         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57391         * lib/utimecmp.c (SIZE_MAX): Remove.
57392
57393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57394
57395         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57396         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57397         O_NOATIME works.
57398
57399 2006-10-05  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/gl_list.h (gl_sortedlist_search_from_to,
57402         gl_sortedlist_indexof_from_to): New declarations.
57403         (gl_list_implementation): New fields sortedlist_search_from_to,
57404         sortedlist_indexof_from_to.
57405         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57406         inline functions.
57407         * lib/gl_list.c (gl_sortedlist_search_from_to,
57408         gl_sortedlist_indexof_from_to): New functions.
57409         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57410         function.
57411         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57412         (gl_array_sortedlist_search_from_to): New function.
57413         (gl_array_list_implementation): Update.
57414         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57415         function.
57416         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57417         (gl_carray_sortedlist_search_from_to): New function.
57418         (gl_carray_list_implementation): Update.
57419         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57420         gl_linked_sortedlist_indexof_from_to): New functions.
57421         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57422         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57423         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57424         gl_tree_sortedlist_indexof_from_to): New functions.
57425         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57426         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57427         Update.
57428         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57429         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57430         Update.
57431
57432 2006-10-05  Bruno Haible  <bruno@clisp.org>
57433
57434         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57435         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57436         (struct gl_list_implementation): Add fields search_from_to,
57437         indexof_from_to. Remove fields search, indexof.
57438         (gl_list_search): Use the search_from_to method.
57439         (gl_list_search_from, gl_list_search_from_to): New functions.
57440         (gl_list_indexof): Use the indexof_from_to method.
57441         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57442         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57443         (gl_list_search_from, gl_list_search_from_to): New functions.
57444         (gl_list_indexof): Use the indexof_from_to method.
57445         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57446         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57447         gl_array_indexof. Add start_index, end_index arguments.
57448         (gl_array_search_from_to): Renamed from gl_array_search. Add
57449         start_index, end_index arguments.
57450         (gl_array_remove, gl_array_list_implementation): Update.
57451         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57452         gl_carray_indexof. Add start_index, end_index arguments.
57453         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57454         start_index, end_index arguments.
57455         (gl_carray_remove, gl_carray_list_implementation): Update.
57456         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57457         gl_linked_search. Add start_index, end_index arguments.
57458         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57459         start_index, end_index arguments.
57460         (gl_linked_remove): Update.
57461         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57462         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57463         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57464         field to 'size_t'.
57465         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57466         gl_tree_search. Add start_index, end_index arguments.
57467         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57468         start_index, end_index arguments.
57469         (gl_tree_remove): Update.
57470         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57471         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57472         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57473         function.
57474         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57475         gl_tree_search. Add start_index, end_index arguments.
57476         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57477         start_index, end_index arguments.
57478         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57479         Update.
57480         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57481
57482 2006-10-05  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57485
57486         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57487         fwriteerror_temp): New declarations.
57488         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57489         (descriptors): New variable.
57490         (cleanup): First, close the descriptors.
57491         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57492         fclose_temp, fwriteerror_temp): New functions.
57493
57494 2006-10-04  Jim Meyering  <jim@meyering.net>
57495
57496         * lib/fts.c (fts_open): Tiny comment change.
57497
57498 2006-10-04  Bruno Haible  <bruno@clisp.org>
57499
57500         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57501         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57502         gl_LOCK_BODY.
57503         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57504         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57505         gl_LOCK_EARLY_BODY.
57506         (gl_LOCK): Require gl_LOCK_BODY.
57507
57508 2006-10-04  Bruno Haible  <bruno@clisp.org>
57509
57510         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57511         (gl_oset_search_atleast): New declaration.
57512         (struct gl_oset_implementation): Add field 'search_atleast'.
57513         (gl_oset_search_atleast): New inline function.
57514         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57515         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57516         (gl_array_oset_implementation): Update.
57517         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57518         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57519         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57520
57521 2006-10-04  Bruno Haible  <bruno@clisp.org>
57522
57523         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57524
57525 2006-10-03  Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57528         from gl_avltreehash_list_implementation.
57529
57530 2006-10-03  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/gl_oset.c (gl_oset_add): Fix return type.
57533
57534 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57535
57536         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57537
57538 2006-10-02  Eric Blake  <ebb9@byu.net>
57539
57540         * modules/strnlen (Depends-on): Add extensions.
57541
57542 2006-10-02  Eric Blake  <ebb9@byu.net>
57543
57544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57545         definition in 2.60+.
57546
57547 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57548
57549         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57550         checks.
57551
57552 2006-10-02  Bruno Haible  <bruno@clisp.org>
57553
57554         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57555         to the AUTOMAKE_OPTIONS.
57556         Reported by Jim Meyering.
57557
57558 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57559
57560         Work around bug in Solaris 10 /proc file system:
57561         /proc/self/fd/NNN/.. isn't the parent directory of
57562         the directory whose file descriptor is NNN.  This needs to
57563         be worked around at run time, not compile time, since a
57564         program might be built on Solaris 8, where things work, and
57565         run on Solaris 10.
57566         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57567         to use the following interface instead:
57568         (OPENAT_BUFFER_SIZE): New macro.
57569         (openat_proc_name): New function.
57570         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57571         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57572         Likewise.
57573         * lib/openat-proc.c: New file.
57574         * modules/openat (Files): Add lib/openat-proc.c.
57575         (Depends-on): Add same-inode, stdbool.
57576         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57577
57578 2006-09-29  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57581         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57582         argument. Set stdout_closed before testing for ferror, not after.
57583         (fwriteerror, fwriteerror_no_ebadf): New functions.
57584
57585 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57586
57587         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57588
57589 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57590
57591         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57592         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57593
57594 2006-09-28  Jim Meyering  <jim@meyering.net>
57595
57596         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57597         Include <unistd.h>.
57598
57599 2006-09-28  Bruno Haible  <bruno@clisp.org>
57600
57601         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57602         * modules/linkedhash-list (Depends-on): Likewise.
57603         * modules/rbtreehash-list (Depends-on): Likewise.
57604
57605 2006-09-28  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/strndup.h: Simplify the redefinition of strndup.
57608         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57610
57611 2006-09-28  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57614         * lib/gl_linkedhash_list.c: Likewise.
57615         * lib/gl_rbtreehash_list.c: Likewise.
57616
57617 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57618
57619         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57620         getaddrinfo.
57621
57622         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57623         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57624         it causes <stdio_ext.h> to cause a compile-time error.
57625         Problem reported by Nelson H. F. Beebe.
57626         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57627         of HAVE_DECL___PENDING.
57628
57629         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57630         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57631         declaration.
57632
57633 2006-09-27  Jim Meyering  <jim@meyering.net>
57634
57635         This file could end up with a definition for a function
57636         named __strndup, rather than rpl_strndup on a system with
57637         incomplete weak_alias support.
57638         * lib/strndup.c (strndup): Rename from __strndup.
57639         Remove #defines that used to map __strndup to strndup.
57640         Don't use K&R prototypes.
57641         Remove LIBC-related code, since this file is not sync'd with glibc.
57642         * lib/strndup.h: Revamp, accordingly.
57643         * m4/strndup.m4: Modernize.
57644
57645 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         * modules/savewd (Depends-on): Add 'raise'.
57648         * lib/savewd.c: Include <signal.h>, for 'raise'.
57649
57650 2006-09-26  Jim Meyering  <jim@meyering.net>
57651
57652         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57653         when we detect Darwin 8.7.0's acl_get_file bug.
57654         Rearrange to perform the new (below) run-test while $LIBS
57655         contains any acl-related library.  Set USE_ACL at the end.
57656         (gl_ACL_GET_FILE): New function.
57657
57658 2006-09-26  Eric Blake  <ebb9@byu.net>
57659
57660         * lib/verror.c: Include <config.h> unconditionally.
57661
57662 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57663
57664         * modules/clock-time (Maintainer): Add self.
57665         * modules/getlogin_r (Depends-on): Add extensions.
57666
57667 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57668
57669         * modules/clock-time: New module.
57670         * modules/nanosleep (Depends-on): Add clock-time.
57671         * modules/gethrxtime (Depends-on): Likewise.
57672         * modules/gettime (Depends-on): Likewise.
57673         * modules/settime (Depends-on): Likewise.
57674
57675         * modules/fts-lgpl: Depend on openat.
57676         * modules/mkancesdirs: Depend on savewd.
57677         * modules/mkdir-p: Likewise.
57678
57679 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57680
57681         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57682
57683         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57684         `gl_have_arbitrary_file_name_length_limit' to
57685         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57686         actually works between configure runs.
57687
57688 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57689             Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57692
57693 2006-09-25  Jim Meyering  <jim@meyering.net>
57694
57695         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57696         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57697
57698 2006-09-25  Eric Blake  <ebb9@byu.net>
57699
57700         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57701         exec's in 2006-09-18 patch when shuffling fds.
57702
57703 2006-09-25  Bruno Haible  <bruno@clisp.org>
57704
57705         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57706         Reported by Jim Meyering.
57707
57708 2006-09-24  Jim Meyering  <jim@meyering.net>
57709
57710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57711         compare a pointer against a literal "0".  That caused failures with
57712         at least HP-UX's hpcc.
57713
57714 2006-09-22  Simon Josefsson  <jas@extundo.com>
57715
57716         * modules/gc-sha1:
57717         * modules/gc-md4:
57718         * modules/gc-hmac-sha1:
57719         * modules/gc-hmac-md5:
57720         * modules/gc-des:
57721         * modules/gc-arcfour: Distribute more files.
57722
57723 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57724
57725         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57726         (gl_linked_iterator_from_to): Initialize struct completely.
57727         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57728         (gl_tree_iterator_from_to): Likewise
57729         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57730         * lib/gl_array_list.c [lint] (gl_array_iterator)
57731         (gl_array_iterator_from_to): Likewise.
57732         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57733         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57734         (gl_carray_iterator_from_to): Likewise.
57735
57736         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57737         * lib/md4.c (md4_process_block): Remove unused variable.
57738         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57739         parentheses for clarity.
57740
57741 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57742
57743         * modules/bison-i18n (Depends-on): Add gettext.
57744
57745 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57746
57747         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57748         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57749         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57750         also add missing comma that caused broken test.
57751         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57752         stdlib.h, for `abort'.
57753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57754         variables.
57755         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57756         include unistd.h if present, for `rmdir'.
57757         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57758         variables.
57759         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57760         in the process include standard headers for prototypes.
57761         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57762         gets declared on GNU/Linux.
57763         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57764         unistd.h, for `rmdir'.
57765         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57766
57767         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57768         always true.
57769         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57770
57771         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57772
57773 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57774
57775         * gnulib-tool (func_version): Create output all at once.  This
57776         may help avoid triggering unnecessary SIGPIPEs, and at any
57777         rate it doesn't hurt.
57778
57779 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57780             Bruno Haible  <bruno@clisp.org>
57781
57782         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57783         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57784         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57785
57786         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57787         (gl_FUNC_VASPRINTF): Invoke it.
57788
57789 2006-09-22  Bruno Haible  <bruno@clisp.org>
57790
57791         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57792         getloadavg.c as first argument.
57793
57794 2006-09-22  Bruno Haible  <bruno@clisp.org>
57795
57796         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57797         at the beginning of the gl_INIT macro.
57798         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57799         gl_GETLOADAVG.
57800
57801 2006-09-22  Bruno Haible  <bruno@clisp.org>
57802
57803         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57804         module.
57805         Suggested by Ralf Wildenhues.
57806
57807 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57808
57809         Import this patch from libc:
57810
57811         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57812
57813         * lib/regex_internal.c (re_string_reconstruct): Handle
57814         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57815         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57816         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57817         re_string_context_at.
57818
57819         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57820         now requires it.
57821         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57822         gl_REGEX now does it for us.
57823         (gl_REGEX): Add test taken from
57824         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57825
57826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57827         Check that large offsets work.  Modernize Autoconf usages.
57828         Prefer "yes" to mean a good thing rather than a bad.
57829         Don't put "#define mkstemp" in config.h, as this might interfere
57830         with standard system headers that "#define mkstemp mkstemp64".
57831
57832         * modules/mkstemp (Depends-on): Add extensions, so that
57833         mkstemp is visible on some platforms.
57834         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57835         (Include): Change to "mkstemp.h" from <stdlib.h>.
57836         (Files): Add mkstemp.h.
57837
57838         * lib/mkstemp.h: New file, since some standard headers
57839         #define mkstemp.
57840         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57841         Include "mkstemp.h".
57842         Make the _LIBC code resemble glibc original more,
57843         e.g., use K&R style.
57844         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57845         (mkstemp): Remove, since mkstemp.h does this for us.
57846         * lib/stdlib--.h: Include mkstemp.h.
57847
57848         Import this patch from libc:
57849
57850         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57851
57852         * lib/tempname.c (__gen_tempname): Change attempts_min
57853         into a macro.  Use preprocessor to decide how to initialize
57854         attempts [Coverity CID 67].
57855
57856 2006-09-20  Bruno Haible  <bruno@clisp.org>
57857
57858         * lib/mkdtemp.c: Import from libc.
57859         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57860                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57861                 attempts_min into a macro.  Use preprocessor to decide how to
57862                 initialize attempts [Coverity CID 67].
57863         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57864                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57865                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57866
57867 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57868
57869         * gnulib-tool (func_exit): New function, to allow to pass the
57870         exit status portably through the trap.  Use everywhere.
57871         (--help, --version): Signal a write error.
57872         (trap): catch SIGPIPE, for write errors.
57873         Exit at the end of the trap, with the correct exit status.
57874
57875 2006-09-19  Karl Berry  <karl@gnu.org>
57876
57877         * doc/gnulib.texi: note about the license texinfo files.
57878
57879 2006-09-19  Eric Blake  <ebb9@byu.net>
57880
57881         * gnulib-tool: Avoid space-tab.
57882
57883 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57886         that prevented coreutils 6.1 from building.  Problem reported
57887         by Petter Reinholdtsen.
57888
57889 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         * gnulib-tool (avoidlist): Fix typo that broke options like
57892         --avoid=lock that are used by coreutils bootstrap.
57893
57894 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57895
57896         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57897         more systematically.
57898
57899 2006-09-18  Jim Meyering  <jim@meyering.net>
57900
57901         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57902
57903 2006-09-18  Bruno Haible  <bruno@clisp.org>
57904
57905         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57906
57907 2006-09-18  Bruno Haible  <bruno@clisp.org>
57908
57909         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57910         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57911         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57912         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57913         * m4/gettext.m4: Require autoconf >= 2.52.
57914         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57915         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57916         of gl_cv_header_inttypes_h.
57917
57918 2006-09-18  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/javaversion.c: Include configmake.h.
57921
57922 2006-09-18  Bruno Haible  <bruno@clisp.org>
57923
57924         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57925         avoid that the while loops be executed in a subshell.
57926
57927 2006-09-18  Bruno Haible  <bruno@clisp.org>
57928
57929         * MODULES.html.sh (func_module): Break long lines.
57930         Suggested by Bruce Korb <bkorb@gnu.org>.
57931
57932 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57933
57934         Speed up by a factor of 1.12.
57935         * gnulib-tool (nl): New variable.
57936         (func_import): Rewrite include directive extraction to only read each
57937         directive once.
57938
57939 2006-09-17  Bruno Haible  <bruno@clisp.org>
57940
57941         * modules/javaversion (Makefile.am): Remove DEFS setting.
57942         (Depends-on): Add configmake, for PKGDATADIR definition.
57943
57944 2006-09-17  Bruno Haible  <bruno@clisp.org>
57945
57946         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57947
57948 2006-09-17  Bruno Haible  <bruno@clisp.org>
57949
57950         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57951         (func_modules_transitive_closure, func_modules_add_dummy,
57952         func_modules_to_filelist, func_import, func_create_testdir,
57953         func_create_megatestdir, ...): Use it wherever possible.
57954         Suggested by Ralf Wildenhues.
57955
57956 2006-09-16  Karl Berry  <karl@gnu.org>
57957
57958         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57959         to avoid sectioning errors.
57960         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57961         [ifinfo]: blank line after @center-ed titles.
57962         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57963         Spell FSF address consistently with others.
57964         (These changes approved by rms.)
57965
57966 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57967
57968         Speed up by a factor of 1.61.
57969         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57970         already checked module names again.
57971
57972 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57973
57974         Speed up by a factor of 1.13.
57975         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57976         for new_files, and the input to func_add_or_update.
57977
57978 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57979
57980         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57981         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57982
57983 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57984
57985         * modules/mkancesdirs (Depends-on): Add fcntl.
57986         * modules/savewd: New file.
57987         * MODULES.html.sh (File system functions): Add savewd.
57988
57989         * modules/configmake (Makefile.am): Add support for the
57990         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57991
57992 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * m4/savewd.m4: New file.
57995
57996 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57997
57998         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57999         (dirchownmod): New arg FD.  All callers changed.
58000         Use FD rather than opening the directory ourself, as opening is
58001         now the caller's responsibility.
58002         * lib/dirchownmod.h: Likewise.
58003         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58004         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58005         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58006         (test_dir): Remove.
58007         (mkancesdirs): Return length of prefix of FILE that has already
58008         been made, or -2 if there is a child doing the work.  Redo
58009         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58010         ".", and treat ".." specially since it might stray back into
58011         already-created areas.  Use a subprocess if necessary.  New arg
58012         WD; all users changed.  MAKE_DIR function should now return 1
58013         if it creates a directory that is not readable.  Return -2 if
58014         a child process is spun off.
58015         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58016         Adjust signature to match code.
58017         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58018         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58019         all users changed.
58020         * lib/savewd.c, lib/savewd.h: New files.
58021
58022 2006-09-15  Jim Meyering  <jim@meyering.net>
58023
58024         * modules/rename-dest-slash: New module.
58025         * MODULES.html.sh (posix_compat): Add it here.
58026
58027         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58028
58029 2006-09-15  Jim Meyering  <jim@meyering.net>
58030
58031         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58032         file.
58033
58034         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58035
58036 2006-09-15  Jim Meyering  <jim@meyering.net>
58037
58038         * lib/rename-dest-slash.c (has_trailing_slash): Use
58039         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58040         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58041         test before testing whether SRC is a directory.
58042         Suggestions from Bruno Haible.
58043
58044         Avoid a warning about an unused variable.
58045         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58046         into the #ifdef block where it's used.
58047
58048         * lib/rename-dest-slash.c: New file.
58049
58050 2006-09-14  Bruno Haible  <bruno@clisp.org>
58051
58052         * lib/allocsa.c: Include <config.h> unconditionally.
58053         * lib/asnprintf.c: Likewise.
58054         * lib/asprintf.c: Likewise.
58055         * lib/c-strcasecmp.c: Likewise.
58056         * lib/c-strcasestr.c: Likewise.
58057         * lib/c-strncasecmp.c: Likewise.
58058         * lib/c-strstr.c: Likewise.
58059         * lib/classpath.c: Likewise.
58060         * lib/clean-temp.c: Likewise.
58061         * lib/concatpath.c: Likewise.
58062         * lib/copy-file.c: Likewise.
58063         * lib/csharpcomp.c: Likewise.
58064         * lib/csharpexec.c: Likewise.
58065         * lib/execute.c: Likewise.
58066         * lib/fatal-signal.c: Likewise.
58067         * lib/findprog.c: Likewise.
58068         * lib/fwriteerror.c: Likewise.
58069         * lib/gl_array_list.c: Likewise.
58070         * lib/gl_array_oset.c: Likewise.
58071         * lib/gl_avltree_list.c: Likewise.
58072         * lib/gl_avltree_oset.c: Likewise.
58073         * lib/gl_avltreehash_list.c: Likewise.
58074         * lib/gl_carray_list.c: Likewise.
58075         * lib/gl_linked_list.c: Likewise.
58076         * lib/gl_linkedhash_list.c: Likewise.
58077         * lib/gl_list.c: Likewise.
58078         * lib/gl_oset.c: Likewise.
58079         * lib/gl_rbtree_list.c: Likewise.
58080         * lib/gl_rbtree_oset.c: Likewise.
58081         * lib/gl_rbtreehash_list.c: Likewise.
58082         * lib/imaxabs.c: Likewise.
58083         * lib/imaxdiv.c: Likewise.
58084         * lib/javacomp.c: Likewise.
58085         * lib/javaexec.c: Likewise.
58086         * lib/javaversion.c: Likewise.
58087         * lib/linebreak.c: Likewise.
58088         * lib/localcharset.c: Likewise.
58089         * lib/lock.c: Likewise.
58090         * lib/mbchar.c: Likewise.
58091         * lib/mbswidth.c: Likewise.
58092         * lib/mkdtemp.c: Likewise.
58093         * lib/pipe.c: Likewise.
58094         * lib/printf-args.c: Likewise.
58095         * lib/printf-parse.c: Likewise.
58096         * lib/progname.c: Likewise.
58097         * lib/progreloc.c: Likewise.
58098         * lib/readlink.c: Likewise.
58099         * lib/sh-quote.c: Likewise.
58100         * lib/stpcpy.c: Likewise.
58101         * lib/stpncpy.c: Likewise.
58102         * lib/strcasecmp.c: Likewise.
58103         * lib/strcasestr.c: Likewise.
58104         * lib/strcspn.c: Likewise.
58105         * lib/striconv.c: Likewise.
58106         * lib/strncasecmp.c: Likewise.
58107         * lib/strnlen1.c: Likewise.
58108         * lib/strstr.c: Likewise.
58109         * lib/strtok_r.c: Likewise.
58110         * lib/tls.c: Likewise.
58111         * lib/tmpdir.c: Likewise.
58112         * lib/unicodeio.c: Likewise.
58113         * lib/unsetenv.c: Likewise.
58114         * lib/vasnprintf.c: Likewise.
58115         * lib/vasprintf.c: Likewise.
58116         * lib/wait-process.c: Likewise.
58117         * lib/xallocsa.c: Likewise.
58118         * lib/xsetenv.c: Likewise.
58119         * lib/xstriconv.c: Likewise.
58120
58121 2006-09-13  Simon Josefsson  <jas@extundo.com>
58122
58123         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58124         that internally, suggested by Ralf Wildenhues
58125         <Ralf.Wildenhues@gmx.de>.
58126
58127 2006-09-13  Simon Josefsson  <jas@extundo.com>
58128
58129         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58130         @LIBOBJS@.
58131         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58132
58133 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58136         longer worry about uses that don't define HAVE_CONFIG_H.
58137         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58138         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58139         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58140         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58141         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58142         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58143         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58144         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58145         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58146         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58147         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58148         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58149         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58150         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58151         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58152         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58153         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58154         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58155         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58156         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58157         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58158         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58159         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58160         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58161         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58162         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58163         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58164         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58165         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58166         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58167         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58168         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58169         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58170         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58171         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58172         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58173         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58174         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58175         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58176         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58177         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58178         Likewise.
58179
58180 2006-09-13  Eric Blake  <ebb9@byu.net>
58181
58182         * lib/getopt.c: Fix typo in last commit.
58183
58184 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58185
58186         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58187         dgettext.
58188
58189 2006-09-12  Jim Meyering  <jim@meyering.net>
58190
58191         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58192         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58193         Reported by Nelson H. F. Beebe.
58194
58195 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58196
58197         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58198         program_invocation_name and program_invocation_short_name are
58199         initialized.
58200         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58201         and program_invocation_short_name to argp.h, so they are visible
58202         to user programs.
58203         * lib/argp.h: Likewise
58204
58205 2006-09-10  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58208         m4/inttypes_h.m4, m4/uintmax_t.m4.
58209
58210 2006-09-10  Bruno Haible  <bruno@clisp.org>
58211
58212         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58213         gl_AC_TYPE_UINTMAX_T.
58214
58215 2006-09-10  Bruno Haible  <bruno@clisp.org>
58216
58217         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58218
58219 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58220
58221         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58222         convention.  Text proposed by Bruno Haible.
58223         (struct argp_option): Document the use of N_() wrappers.
58224
58225         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58226         '\v', and translate the two parts separately, instead of feeding
58227         the whole string to gettext.  This allows to exclude
58228         '\v' from the strings visible to the translator by writing doc
58229         strings as N_("..") "\v" N_("..").
58230
58231 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * config/srclist.txt: Undo latest change; the bug was fixed.
58234
58235 2006-09-09  Bruno Haible  <bruno@clisp.org>
58236
58237         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58238         assignments if building a library without libtool.
58239         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58240         in func_emit_lib_Makefile_am.
58241         (func_import): When building a static library libfoo.a, arrange to
58242         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58243         (func_create_testdir): Likewise.
58244         * modules/gc (configure.ac, Makefile.am): If building statically,
58245         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58246         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58247         * modules/striconv (configure.ac, Makefile.am): Likewise.
58248         Based on a suggestion by Ralf Wildenhues.
58249
58250 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58251
58252         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58253         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58254         Also:
58255
58256         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58257         Add year_2050_test to catch glibc bug 2821
58258         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58259
58260         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58261         Prefer #ifdef to #if.
58262
58263         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58264         Return from 'main' instead of calling 'exit'.
58265
58266 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58269         returned the maximum time_t value rather than (time_t) -1.
58270         Problem originally reported by William Bardwell
58271         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58272
58273         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58274         Moved to here ...
58275         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58276         ... from here.
58277
58278 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58281         2821 is fixed.
58282
58283 2006-09-08  Jim Meyering  <jim@meyering.net>
58284
58285         Don't make generated files read-only.  That would bother too many
58286         people.  However, do retain the ability to work when targets are
58287         read-only: remove the destination and temporary files before writing
58288         them (when generated via sed or echo), or by using the -f option for
58289         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58290         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58291         * modules/byteswap, modules/configmake, modules/fcntl:
58292         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58293         * modules/localcharset, modules/netinet_in, modules/poll:
58294         * modules/stdbool, modules/stdint, modules/sys_select:
58295         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58296
58297 2006-09-08  Jim Meyering  <jim@meyering.net>
58298
58299         Avoid new build failure on FreeBSD 6.0.
58300         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58301         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58302         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58303
58304 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58305
58306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58307
58308 2006-09-07  Jim Meyering  <jim@meyering.net>
58309
58310         Fix global typo in last change: use chmod u-w, not chmod u-x.
58311         Spotted by Paul Eggert and Bruce Korb.
58312         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58313         * modules/byteswap, modules/configmake, modules/fcntl:
58314         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58315         * modules/localcharset, modules/netinet_in, modules/poll:
58316         * modules/stdbool, modules/stdint, modules/sys_select:
58317         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58318
58319 2006-09-06  Jim Meyering  <jim@meyering.net>
58320
58321         Make generated files be read-only.
58322         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58323         Ensure that each generated file is now read-only.
58324         * modules/argz: Likewise.
58325         * modules/arpa_inet: Likewise.
58326         * modules/byteswap: Likewise.
58327         * modules/configmake: Likewise.
58328         * modules/fcntl: Likewise.
58329         * modules/fnmatch: Likewise.
58330         * modules/getopt: Likewise.
58331         * modules/glob: Likewise.
58332         * modules/inttypes: Likewise.
58333         * modules/netinet_in: Likewise.
58334         * modules/poll: Likewise.
58335         * modules/stdbool: Likewise.
58336         * modules/stdint: Likewise.
58337         * modules/sys_select: Likewise.
58338         * modules/sys_socket: Likewise.
58339         * modules/sys_stat: Likewise.
58340         * modules/sysexits: Likewise.
58341         * modules/localcharset: Same as above, but continue using temporary
58342         file named "t-$@" (why different?) rather than the "$@-t" used
58343         everywhere else.
58344
58345         * modules/sysexits (Makefile.am): Replace literal occurrences
58346         of "sysexit.h" more readable, and more consistent, "$@".
58347
58348 2006-09-06  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/striconv: New file.
58351         * modules/xstriconv: New file.
58352         * MODULES.html.sh (Internationalization functions): Add striconv,
58353         xstriconv.
58354
58355 2006-09-06  Bruno Haible  <bruno@clisp.org>
58356
58357         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58358         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58359         not using libtool correctly.
58360
58361 2006-09-06  Bruno Haible  <bruno@clisp.org>
58362
58363         * lib/striconv.h: New file.
58364         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58365         iconvstring.c.
58366         * lib/xstriconv.h: New file.
58367         * lib/xstriconv.c: New file.
58368
58369 2006-09-06  Bruno Haible  <bruno@clisp.org>
58370
58371         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58372         lib_..._LDFLAGS.
58373
58374 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58375
58376         * lib/argz_.h: Sync from Libtool.
58377
58378         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58379                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58380
58381         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58382
58383 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58384
58385         * modules/trim: New file.
58386
58387 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58388
58389         * lib/trim.h: New file.
58390         * lib/trim.c: New file.
58391
58392 2006-09-05  Bruno Haible  <bruno@clisp.org>
58393
58394         * MODULES.html.sh (String handling): Add trim.
58395
58396 2006-09-04  Karl Berry  <karl@gnu.org>
58397
58398         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58399         until next release.
58400
58401 2006-09-03  Bruno Haible  <bruno@clisp.org>
58402
58403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58404         correctly.
58405
58406 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58409         not gl_GETLOADAVG.  Omit unneeded semicolons.
58410         Problems reported by Ralf Wildenhues in
58411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58412         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58413         at the end, which is the usual gnulib style.
58414
58415         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58416         of doing all the work ourselves.
58417         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58418         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58419
58420 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58421
58422         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58423         Problem reported by Ralf Wildenhues in
58424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58425
58426         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58427         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58428
58429 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58430
58431         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58432         yesterday's patch by changing test -n to test -z.
58433
58434 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58435
58436         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58437         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58438         the former is now obsolescent.
58439
58440         * modules/chdir-long (Depends-on): Add fcntl.
58441
58442 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58445         obsolescent, and programs should use gnulib instead.
58446         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58447         but with prefixes changed.
58448
58449 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58452         or stdbool.h, because they might not exist while configuring.
58453
58454         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58455         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58456         does that for us.
58457         (O_DIRECTORY): Remove.
58458
58459 2006-08-31  Eric Blake  <ebb9@byu.net>
58460
58461         * gnulib-tool: Don't let emacs change spaces to TAB.
58462
58463 2006-08-31  Bruno Haible  <bruno@clisp.org>
58464
58465         * gnulib-tool: When calling func_import more than once, do it in a
58466         subshell.
58467         Reported by Eric Blake <ebb9@byu.net>.
58468
58469 2006-08-31  Bruno Haible  <bruno@clisp.org>
58470
58471         * gnulib-tool (nl): Remove variable.
58472         (sed_transform_lib_file): Use more robust test for config-h module.
58473         (func_import): Fix typo in 2006-08-25 patch.
58474
58475 2006-08-31  Bruno Haible  <bruno@clisp.org>
58476
58477         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58478         specified, augment Makefile.am variables instead of assigning them.
58479
58480 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58481
58482         Work around a bug in both the Linux and SunOS 64-bit kernels:
58483         nanosleep mishandles sleeps for longer than 2**31 seconds.
58484         Problem reported by Frank v Waveren in
58485         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58487         Check for nanosleep bug.
58488         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58489
58490 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58491
58492         Work around a bug in both the Linux and SunOS 64-bit kernels:
58493         nanosleep mishandles sleeps for longer than 2**31 seconds.
58494         Problem reported by Frank v Waveren in
58495         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58496         * lib/nanosleep.c (BILLION): New constant.
58497         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58498         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58499         implementation.
58500
58501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * modules/nanosleep (Depends-on): Add gettime.
58504
58505 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58506         and Simon Josefsson  <jas@extundo.com>
58507         and Oskar Liljeblad  <oskar@osk.mine.nu>
58508
58509         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58510         * gnulib-tool (func_import): New license type 'unmodifiable license
58511         text'.
58512         * modules/fdl: Use it.  Longer description.
58513         * module/gpl, module/lgpl: New files.
58514
58515 2006-08-30  Jim Meyering  <jim@meyering.net>
58516
58517         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58518         shadowing the parameter.
58519
58520 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58521
58522         Sync from Libtool:
58523
58524         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58525
58526         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58527         sharing with gnulib.  Report by Eric Blake.
58528
58529 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * modules/isapipe: New file.
58532         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58533
58534 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58535
58536         * modules/configmake (Makefile.am): Add a comment, and omit
58537         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58538         by Bruno Haible.
58539
58540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         * m4/isapipe.m4: New file.
58543
58544 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58545
58546         * lib/isapipe.c, lib/isapipe.h: New files.
58547
58548 2006-08-29  Jim Meyering  <jim@meyering.net>
58549
58550         * modules/configmake (Makefile.am): Make configmake.h depend on
58551         Makefile.  Otherwise, a stale configmake.h could hang around.
58552
58553 2006-08-29  Eric Blake  <ebb9@byu.net>
58554
58555         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58556         resolution of upstream bug 3044.
58557
58558 2006-08-29  Bruno Haible  <bruno@clisp.org>
58559
58560         * modules/localcharset (Depends-on): Add configmake.
58561         (Makefile.am): Remove setting of LIBDIR through DEFS.
58562
58563 2006-08-29  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58566         defined.
58567
58568 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58569
58570         * modules/fcntl: New file.
58571         * modules/chdir-safer (Depends-on): Add fcntl.
58572         * modules/fts: Likewise.
58573         * modules/mkdir-p: Likewise.
58574
58575         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58576         This undoes the most recent change, since we're now addressing the
58577         problem in a different way.
58578
58579         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58580         into output, since the output might be called Makefile.am even
58581         if $makefile_name is something different.
58582         (func_import): Use $makefile_am rather than
58583         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58584         empty.
58585
58586         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58587
58588 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58591         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58592         recent change to stdint.m4, since we're now addressing the problem in a
58593         different way.
58594
58595 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * m4/fcntl_h.m4: New file.
58598
58599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58600
58601         * lib/fcntl_.h: New file.
58602         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58603         the fcntl module.
58604         * lib/dirchownmod.c: Likewise.
58605         * lib/fts.c: Likewise.
58606
58607         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58608         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58609         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58610         just before including <inttypes.h>, to avoid circular inclusion.
58611
58612 2006-08-28  Jim Meyering  <jim@meyering.net>
58613
58614         * doc/visibility.texi: Actually read and correct the grammar of the
58615         sentence affected by yesterday's change.
58616
58617 2006-08-28  Eric Blake  <ebb9@byu.net>
58618
58619         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58620         needs wrapper.
58621
58622 2006-08-28  Eric Blake  <ebb9@byu.net>
58623
58624         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58625
58626 2006-08-28  Eric Blake  <ebb9@byu.net>
58627
58628         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58629
58630 2006-08-28  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/c-strstr: New file, from GNU gettext.
58633         * MODULES.html.sh (String handling): Add c-strstr.
58634
58635 2006-08-28  Bruno Haible  <bruno@clisp.org>
58636
58637         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58638         macros.
58639         Reported by Eric Blake.
58640
58641 2006-08-28  Bruno Haible  <bruno@clisp.org>
58642
58643         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58644         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58645         * lib/vasprintf.c: Include errno.h, limits.h.
58646         (EOVERFLOW): New fallback definition.
58647         (vasprintf): Test here whether the string length is > INT_MAX.
58648         * lib/vsnprintf.c: Include errno.h, limits.h.
58649         (EOVERFLOW): New fallback definition.
58650         (vsnprintf): Fix bug when generated string was too long for the buffer.
58651         Test here whether the string length is > INT_MAX.
58652
58653 2006-08-28  Bruno Haible  <bruno@clisp.org>
58654
58655         * lib/inttypes_.h (SCNX*): Remove definitions.
58656         Reported by Eric Blake.
58657
58658 2006-08-28  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/c-strstr.h: New file, from GNU gettext.
58661         * lib/c-strstr.c: New file, from GNU gettext.
58662
58663 2006-08-28  Bruno Haible  <bruno@clisp.org>
58664
58665         * gnulib-tool: Reorder some statements.
58666
58667 2006-08-28  Bruno Haible  <bruno@clisp.org>
58668
58669         * gnulib-tool: New option --makefile-name.
58670         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58671         $makefile_name.
58672         (func_import): Write $makefile_name to the cache file, and read it from
58673         there unless explicitly specified. Use $makefile_name as file name
58674         instead of Makefile.am. Adjust the recommendations accordingly.
58675
58676 2006-08-28  Bruno Haible  <bruno@clisp.org>
58677
58678         * gnulib-tool (func_verify_module): Check against misapplying patch.
58679
58680 2006-08-28  Bruno Haible  <bruno@clisp.org>
58681
58682         * gnulib-tool (func_relativize, func_relconcat): New functions.
58683         Give an error if --local-dir is given with --update.
58684         Remove trailing slashes from $local_gnulib_dir.
58685         (func_import): Store the relativized $local_gnulib_dir in
58686         gnulib-cache.m4, and read it from there if not specified explicitly.
58687
58688 2006-08-28  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58691         is the current directory. Respect also $local_gnulib_dir.
58692
58693 2006-08-28  Bruno Haible  <bruno@clisp.org>
58694             Simon Josefsson  <jas@extundo.com>
58695
58696         BeOS portability.
58697         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58698
58699 2006-08-27  Jim Meyering  <jim@meyering.net>
58700
58701         * doc/visibility.texi: Remove duplicate word: "pointer".
58702
58703 2006-08-26  Bruno Haible  <bruno@clisp.org>
58704
58705         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58706         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58707         (Makefile.am): Create inttypes.h from inttypes_.h.
58708         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58709
58710         * modules/imaxabs: New file.
58711
58712         * modules/imaxdiv: New file.
58713
58714 2006-08-26  Bruno Haible  <bruno@clisp.org>
58715
58716         * m4/inttypes.m4: New file.
58717         * m4/_inttypes_h.m4: Remove file.
58718         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58719         PRI_MACROS_BROKEN.
58720         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58721
58722         * m4/imaxabs.m4: New file.
58723
58724         * m4/imaxdiv.m4: New file.
58725
58726 2006-08-26  Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/inttypes_.h: New file.
58729         * lib/inttypes.h: Remove file.
58730         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58731
58732         * lib/imaxabs.c: New file.
58733
58734         * lib/imaxdiv.c: New file.
58735
58736 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         New config-h module, so that "make" output needn't be cluttered
58739         by -DHAVE_CONFIG_H.
58740         * MODULES.html.sh (Support for building libraries and executables):
58741         Add config-h.
58742         * modules/config-h: New file.
58743         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58744         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58745         the config-h module is used.
58746
58747         New configmake module, so that "make" output needn't be cluttered
58748         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58749         * MODULES.html.sh (Support for building libraries and executables):
58750         Add configmake.
58751         * modules/configmake: New file.
58752
58753 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * m4/config-h.m4: New file.
58756
58757 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         * config/srclist.txt: Add elisp-comp.
58760
58761 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58762
58763         * MODULES.html.sh (Support for building libraries and executables):
58764         Add elisp-comp.
58765         * build-aux/elisp-comp: New file.
58766         * modules/elisp-comp: New file.
58767
58768 2006-08-24  Bruno Haible  <bruno@clisp.org>
58769
58770         * gnulib-tool (func_create_testdir): Use non-default values of
58771         sourcebase and m4base.
58772
58773 2006-08-24  Bruno Haible  <bruno@clisp.org>
58774
58775         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58776         HTML structure.
58777
58778 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58779
58780         * modules/openat (Depends-on): Add lchown.
58781
58782 2006-08-23  Bruno Haible  <bruno@clisp.org>
58783
58784         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58785         of gl_LOCK_EARLY instead of gl_LOCK.
58786
58787 2006-08-23  Bruno Haible  <bruno@clisp.org>
58788
58789         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58790         on OSF/1 to no.
58791         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58792
58793 2006-08-23  Bruno Haible  <bruno@clisp.org>
58794
58795         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58796         as unusable.
58797
58798         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58799         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58800         (gl_LOCK): New macro.
58801
58802 2006-08-22  Simon Josefsson  <jas@extundo.com>
58803
58804         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58805         to md5 module.
58806
58807 2006-08-22  Simon Josefsson  <jas@extundo.com>
58808
58809         * MODULES.html.sh: Add "Support for maintaining and release
58810         projects".
58811
58812         * build-aux/gnupload: New file, from coreutils.
58813
58814 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58815
58816         Avoid the need for AC_LIBSOURCES in m4 macros.
58817         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58818         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58819         * modules/check-version (EXTRA_DIST): Add check-version.h.
58820         * modules/crc (EXTRA_DIST): Add crc.h.
58821         * modules/des (EXTRA_DIST): Add des.h.
58822         * modules/gc (EXTRA_DIST): Add gc.h.
58823         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58824         * modules/getline (EXTRA_DIST): Add getline.h.
58825         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58826         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58827         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58828         * modules/md2 (EXTRA_DIST): Add md2.h.
58829         * modules/md4 (EXTRA_DIST): Add md4.h.
58830         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58831         * modules/read-file (EXTRA_DIST): Add read-file.h.
58832         * modules/readline (EXTRA_DIST): Add readline.h.
58833         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58834         rijndael-api-fst.h.
58835
58836 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * m4/rijndael.m4 (gl_ARCFOUR):
58839         * m4/arctwo.m4 (gl_ARCTWO):
58840         * m4/check-version.m4 (gl_CHECK_VERSION):
58841         * m4/crc.m4 (gl_CRC):
58842         * m4/des.m4 (gl_DES):
58843         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58844         * m4/gc.m4 (gl_GC):
58845         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58846         * m4/getline.m4 (gl_FUNC_GETLINE):
58847         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58848         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58849         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58850         * m4/md2.m4 (gl_MD2):
58851         * m4/md4.m4 (gl_MD4):
58852         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58853         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58854         * m4/readline.m4 (gl_FUNC_READLINE):
58855         * m4/rijndael.m4 (gl_RIJNDAEL):
58856         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58857         to get the necessary .h files and whatnot.
58858
58859 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58860
58861         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58862         gnulib rather than the other way around.
58863         * config/srclistvars.sh (COREUTILS): Remove.
58864
58865 2006-08-22  Jim Meyering  <jim@meyering.net>
58866
58867         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58868
58869         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58870
58871 2006-08-22  Eric Blake  <ebb9@byu.net>
58872
58873         * modules/regexprops-generic: New file.
58874         * MODULES.html.sh (Support for building documentation): List it.
58875
58876 2006-08-22  Eric Blake  <ebb9@byu.net>
58877
58878         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58879         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58880         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58881         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58882
58883 2006-08-22  Bruno Haible  <bruno@clisp.org>
58884
58885         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58886         and lib_LTLIBRARIES like the other lib_* variables.
58887
58888 2006-08-22  Bruno Haible  <bruno@clisp.org>
58889
58890         * build-aux/x-to-1.in: New file, from GNU gettext.
58891
58892 2006-08-22  Bruno Haible  <bruno@clisp.org>
58893
58894         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58895         <utmpx.h> exists.
58896
58897 2006-08-22  Bruno Haible  <bruno@clisp.org>
58898
58899         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58900         <utmpx.h> exists.
58901
58902 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58903
58904         BeOS portability.
58905         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58906         exist.
58907         Problem reported by Bruno Haible.
58908
58909 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58910
58911         Avoid the need for AC_LIBSOURCES in m4 macros.
58912         * modules/acl (EXTRA_DIST): Add acl.h.
58913         * modules/argmatch (Files): Add m4/argmatch.m4.
58914         (configure.ac): Add gl_ARGMATCH.
58915         (EXTRA_DIST): Renamed from lib_SOURCES, for
58916         consistency with the other modules.  Remove argmatch.c.
58917         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58918         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58919         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58920         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58921         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58922         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58923         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58924         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58925         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58926         * modules/closeout (EXTRA_DIST): Add closeout.h.
58927         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58928         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58929         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58930         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58931         dirname.h; remove basename.c and stripslash.c.
58932         * modules/exclude (EXTRA_DIST): Add exclude.h.
58933         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58934         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58935         * modules/file-type (EXTRA_DIST): Add file-type.h.
58936         * modules/filemode (EXTRA_DIST): Add filemode.h.
58937         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58938         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58939         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58940         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58941         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58942         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58943         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58944         * modules/getdate (EXTRA_DIST): Add getdate.c.
58945         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58946         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58947         * modules/getpass (EXTRA_DIST): Add getpass.h.
58948         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58949         * modules/group-member (EXTRA_DIST): Add group-member.h.
58950         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58951         * modules/hash (EXTRA_DIST): Add hash.h.
58952         * modules/human (EXTRA_DIST): Add human.h.
58953         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58954         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58955         * modules/lchown (EXTRA_DIST): Add lchown.h.
58956         * modules/long-options (EXTRA_DIST): Add long-options.h.
58957         * modules/lstat (EXTRA_DIST): Add lstat.h.
58958         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58959         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58960         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58961         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58962         * modules/memxor (EXTRA_DIST): Add memxor.h.
58963         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58964         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58965         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58966         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58967         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58968         * modules/physmem (EXTRA_DIST): Add physmem.h.
58969         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58970         * modules/posixver (EXTRA_DIST): Add posixver.h.
58971         * modules/quote (EXTRA_DIST): Add quote.h.
58972         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58973         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58974         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58975         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58976         regex_internal.h regexec.c.
58977         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58978         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58979         * modules/same (EXTRA_DIST): Add same.h.
58980         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58981         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58982         * modules/savedir (EXTRA_DIST): Add savedir.h.
58983         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58984         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58985         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58986         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58987         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58988         * modules/strdup (EXTRA_DIST): Add strdup.h.
58989         * modules/strftime (EXTRA_DIST): Add strftime.h.
58990         * modules/strndup (EXTRA_DIST): Add strndup.h.
58991         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58992         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58993         * modules/time_r (EXTRA_DIST): Add time_r.h.
58994         * modules/timespec (EXTRA_DIST): Add timespec.h.
58995         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58996         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58997         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58998         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58999         * modules/userspec (EXTRA_DIST): Add userspec.h.
59000         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59001         * modules/utimens (EXTRA_DIST): Add utimens.h.
59002         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59003         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59004         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59005         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59006         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59007         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59008         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59009         * modules/yesno (EXTRA_DIST): Add yesno.h.
59010
59011 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59014
59015         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59016         * m4/dev-ino.m4, same-inode.m4: Remove.
59017
59018         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59019         * m4/acl.m4 (AC_FUNC_ACL):
59020         * m4/backupfile.m4 (gl_BACKUPFILE):
59021         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59022         * m4/canon-host.m4 (gl_CANON_HOST):
59023         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59025         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59026         * m4/cloexec.m4 (gl_CLOEXEC):
59027         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59028         * m4/closeout.m4 (gl_CLOSEOUT):
59029         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59030         * m4/dirname.m4 (gl_DIRNAME):
59031         * m4/exclude.m4 (gl_EXCLUDE):
59032         * m4/exitfail.m4 (gl_EXITFAIL):
59033         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59034         * m4/file-type.m4 (gl_FILE_TYPE):
59035         * m4/filemode.m4 (gl_FILEMODE):
59036         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59037         * m4/fpending.m4 (gl_FUNC_FPENDING):
59038         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59039         * m4/fts.m4 (gl_FUNC_FTS):
59040         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59041         * m4/getdate.m4 (gl_GETDATE):
59042         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59043         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59044         * m4/getpass.m4 (gl_FUNC_GETPASS):
59045         * m4/gettime.m4 (gl_GETTIME):
59046         * m4/getugroups.m4 (gl_GETUGROUPS):
59047         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59048         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59049         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59050         * m4/hash.m4 (gl_HASH):
59051         * m4/idcache.m4 (gl_IDCACHE):
59052         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59053         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59054         * m4/long-options.m4 (gl_LONG_OPTIONS):
59055         * m4/lstat.m4 (gl_FUNC_LSTAT):
59056         * m4/md5.m4 (gl_MD5):
59057         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59058         * m4/memcoll.m4 (gl_MEMCOLL):
59059         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59060         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59061         * m4/memxor.m4 (gl_MEMXOR):
59062         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59063         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59064         * m4/modechange.m4 (gl_MODECHANGE):
59065         * m4/mountlist.m4 (gl_MOUNTLIST):
59066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59067         * m4/openat.m4 (gl_FUNC_OPENAT):
59068         * m4/pathmax.m4 (gl_PATHMAX):
59069         * m4/physmem.m4 (gl_PHYSMEM):
59070         * m4/posixtm.m4 (gl_POSIXTM):
59071         * m4/posixver.m4 (gl_POSIXVER):
59072         * m4/quote.m4 (gl_QUOTE):
59073         * m4/quotearg.m4 (gl_QUOTEARG):
59074         * m4/readtokens.m4 (gl_READTOKENS):
59075         * m4/readutmp.m4 (gl_READUTMP):
59076         * m4/regex.m4 (gl_REGEX):
59077         * m4/safe-read.m4 (gl_SAFE_READ):
59078         * m4/safe-write.m4 (gl_SAFE_WRITE):
59079         * m4/same.m4 (gl_SAME):
59080         * m4/save-cwd.m4 (gl_SAVE_CWD):
59081         * m4/savedir.m4 (gl_SAVEDIR):
59082         * m4/settime.m4 (gl_SETTIME):
59083         * m4/sha1.m4 (gl_SHA1):
59084         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59085         * m4/stat-macros.m4 (gl_STAT_MACROS):
59086         * m4/stat-time.m4 (gl_STAT_TIME):
59087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59088         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59089         * m4/strdup.m4 (gl_FUNC_STRDUP):
59090         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59091         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59092         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59093         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59094         * m4/time_r.m4 (gl_TIME_R):
59095         * m4/timespec.m4 (gl_TIMESPEC):
59096         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59097         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59098         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59099         * m4/userspec.m4 (gl_USERSPEC):
59100         * m4/utimecmp.m4 (gl_UTIMECMP):
59101         * m4/utimens.m4 (gl_UTIMENS):
59102         * m4/xalloc.m4 (gl_XALLOC):
59103         * m4/xgetcwd.m4 (gl_XGETCWD):
59104         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59105         * m4/xreadlink.m4 (gl_XREADLINK):
59106         * m4/xstrtod.m4 (gl_XSTRTOD):
59107         * m4/yesno.m4 (gl_YESNO):
59108         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59109         to get the necessary .h files and whatnot.
59110
59111 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59112             Bruno Haible  <bruno@clisp.org>
59113
59114         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59115         /bin/sh understanding of '!' conditional negation.
59116
59117 2006-08-21  Jim Meyering  <jim@meyering.net>
59118
59119         * modules/openat (Depends-on): Really alphabetize.
59120
59121         * modules/acl (Depends-on): Add error and quote.
59122
59123         * check-module (find_included_lib_files): Add at-func.c to the
59124         ok-to-include-more-than-once white list.
59125
59126         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59127
59128 2006-08-21  Bruno Haible  <bruno@clisp.org>
59129
59130         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59131         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59132         Reported by Martin Lambers <marlam@marlam.de>.
59133
59134 2006-08-21  Bruno Haible  <bruno@clisp.org>
59135
59136         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59137         specify an installation location, don't emit a noinst_LIBRARIES or
59138         noinst_LTLIBRARIES assignment.
59139
59140 2006-08-21  Bruno Haible  <bruno@clisp.org>
59141
59142         BeOS portability.
59143         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59144         BeOS has mbrtowc() but no <wctype.h>.
59145
59146 2006-08-21  Bruno Haible  <bruno@clisp.org>
59147
59148         BeOS portability.
59149         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59150         exist.
59151
59152 2006-08-21  Bruno Haible  <bruno@clisp.org>
59153
59154         BeOS portability.
59155         * lib/mbchar.h: Include <wctype.h> only if it exists.
59156
59157 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59158
59159         Remove files that are no longer needed by their respective modules.
59160         * m4/obstack.m4: Remove.
59161         * m4/strerror_r.m4: Remove.
59162         * m4/uint32_t.m4: Remove.
59163         * m4/uintptr_t.m4: Remove.
59164         * m4/ullong_max.m4: Remove.
59165         * m4/xstrtoimax.m4: Remove.
59166         * m4/xstrtoumax.m4: Remove.
59167
59168         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59169         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59170         dependencies now capture this.
59171
59172         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59173         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59174         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59175         * m4/human.m4 (gl_HUMAN): Likewise.
59176         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59177         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59178
59179         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59180
59181         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59182         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59183         stdint.
59184         * m4/human.m4 (gl_HUMAN): Likewise.
59185         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59186         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59187         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59188         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59189         * m4/xstrtol (gl_XSTRTOL): Likewise.
59190
59191         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59192         AC_TYPE_LONG_LONG_INT.
59193         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59194         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59195         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59196         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59197
59198         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59199         on stdbool.
59200
59201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59202         (gl_PREREQ_XSTRTOUL): Remove.
59203
59204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59205
59206         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59207         mode.
59208
59209 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59210
59211         Add and change modules to make it easier for coreutils to use
59212         gnulib-tool.
59213         * modules/backupfile (Files): Remove m4/d-ino.m4.
59214         (Depends-on): Add d-ino.
59215         * modules/cycle-check (Depends-on): Add stdint.
59216         (lib_SOURCES): Add cycle-check.h.
59217         * modules/d-ino: New module.
59218         * modules/d-type: New module.
59219         * modules/error (Files): Remove m4/strerror_r.m4.
59220         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59221         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59222         m4/inttypes_h.m4, m4/uintmax_t.m4.
59223         (Depends-on): Add stdint.
59224         (lib_SOURCES): Add fsusage.h.
59225         * modules/getcwd (Files): Remove d-ino.m4.
59226         (Depends-on): Add d-ino.
59227         * modules/getndelim2 (Depends-on): Add stdint.
59228         * modules/glob (Files): Remove m4/d-type.m4.
59229         (Depends-on): Add d-type.
59230         * modules/host-os: New module.
59231         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59232         m4/inttypes_h.m4, m4/uintmax_t.m4.
59233         * Depends-on: Add stdint.
59234         (lib_SOURCES): Add human.h.
59235         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59236         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59237         m4/uintmax_t.m4, m4/ulonglong.m4.
59238         (Depends-on): Add stdint.
59239         (EXTRA_DIST): Add inttostr.h.
59240         * modules/lchmod: New module.
59241         * modules/link-follow: New module.
59242         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59243         (Depends-on): Add lchmod.
59244         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59245         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59246         (Depends-on): Add stdint.
59247         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59248         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59249         (Depends-on): Add stdint.
59250         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59251         * modules/perl: New module.
59252         * modules/regex (Depends-on): Add stdint.
59253         * modules/rmdir-errno: New module.
59254         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59255         m4/intmax_t.m4.
59256         (Depends-on): Add stdint.
59257         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59258         m4/uintmax_t.m4.
59259         (Depends-on): Add stdint.
59260         * modules/unlink-busy: New module.
59261         * modules/utimecmp (Depends-on): Add stdint.
59262         * modules/uptime: New module.
59263         * modules/winsz-ioctl: New module.
59264         * modules/winsz-termios: New module.
59265         * modules/xnanosleep (Depends-on): Add nanosleep.
59266         * modules/ullong_max: Remove.
59267         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59268         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59269         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59270         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59271         (Depends-on): Add inttypes.
59272         (lib_SOURCES): Add xstrtol.h.
59273         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59274         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59275         * MODULES.html.sh: Move 'assert' into the assert section.
59276         Move 'dummy' into the linking section.
59277         Remove ullong_max.
59278         Add section for compatibility checks for POSIX:2001 functions,
59279         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59280         winsz-ioctl, and winsz-termios into it.
59281         Add lchmod.
59282         Add top-level Misc section and put host-os, perl, and uptime
59283         into it.
59284
59285 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59286
59287         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59288         now assume the stdint module.  Do not include inttypes.h.
59289         * lib/fsusage.h: Likewise.
59290         * lib/getndelim2.c: Likewise.
59291         * lib/human.h: Likewise.
59292         * lib/inttostr.h: Likewise.
59293         * lib/obstack.c: Likewise.
59294         * lib/regex_internal.h: Likewise.
59295         * lib/tempname.c: Likewise.
59296         * lib/utimecmp.c: Likewise.
59297         * lib/xstrtol.h: Likewise.
59298
59299         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59300
59301         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59302         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59303         * lib/xtime.h: Likewise.
59304
59305 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         * modules/openat (Files): Add lib/fchmodat.c.
59308         Fixes problem reported by Jay Youngman.
59309
59310 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59311
59312         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59313         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59314
59315 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59316             Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59319         and is a script that invokes bison. Tighten the code. Add comments.
59320
59321 2006-08-18  Jim Meyering  <jim@meyering.net>
59322
59323         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59324         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59325         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59326         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59327
59328 2006-08-18  Bruno Haible  <bruno@clisp.org>
59329
59330         * modules/bison-i18n: New file.
59331         * MODULES.html.sh (Internationalization functions): Add it.
59332
59333 2006-08-18  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59336         sys/statvfs.h. When getmntinfo was found, check its declaration and
59337         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59338
59339 2006-08-18  Bruno Haible  <bruno@clisp.org>
59340
59341         * m4/bison-i18n.m4: New file, from bison.
59342
59343 2006-08-18  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59346         (ME_DUMMY): Treat "kernfs" as a dummy.
59347         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59348
59349 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59350
59351         Update from coreutils.
59352
59353         2006-08-15  Jim Meyering  <jim@meyering.net>
59354
59355         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59356
59357         2006-01-17  Jim Meyering  <jim@meyering.net>
59358
59359         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59360
59361         2006-01-11  Jim Meyering  <jim@meyering.net>
59362
59363         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59364         Check for the lchmod function.
59365
59366 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         Update from coreutils.
59369
59370         * lib/__fpending.h: Add copyright notice.
59371         * lib/fprintftime.h: Likewise.
59372         * lib/savedir.c: Use (C) in copyright notice.
59373         * lib/savedir.h: Likewise.
59374
59375         2006-08-15  Jim Meyering  <jim@meyering.net>
59376
59377         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59378         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59379         in support of the EXPECTED_ERRNO macro.
59380         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59381         definitions.  Instead, define the appropriate symbols and include
59382         "at-func.c".
59383         * lib/mkdirat.c (mkdirat): Likewise.
59384         * lib/fchmodat.c (fchmodat): Likewise.
59385         (ENOSYS): Remove definition.
59386         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59387         it.  Don't include "unistd--.h" -- it wasn't ever used.
59388
59389         2006-01-17  Jim Meyering  <jim@meyering.net>
59390
59391         Rewrite fts.c not to change the current working directory,
59392         by using openat, fstatat, fdopendir, etc..
59393
59394         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59395         (HAVE_OPENAT_SUPPORT): Define.
59396         [_LIBC] (fchdir): Don't undef or define; no longer used.
59397         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59398         Now, this `function' always succeeds, and consumes its file descriptor
59399         parameter -- so callers must not close such FDs.  Update callers.
59400         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59401         (diropen): Add parameter, SP.  Adjust all callers.
59402         Implement using diropen_fd, rather than open.
59403         (fts_open): Initialize new member, fts_cwd_fd.
59404         Remove fts_rft-setting code.
59405         (fts_close): Close fts_cwd_fd, if necessary.
59406         (__opendir2): Define in terms of opendir or opendirat,
59407         depending on whether the FST_NOCHDIR flag is set.
59408         (fts_build): Since fts_safe_changedir consumes its FD, and since
59409         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59410         and close the dup'd file descriptor upon failure.
59411         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59412         (fts_safe_changedir): Tweak semantics to reflect that this function
59413         now calls cwd_advance_fd and hence consumes its FD argument.
59414         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59415         [struct FTS] (fts_rft): Remove now-unused member.
59416         [struct FTS] (fts_cycle.state): Improve comment.
59417
59418         * lib/openat.c (openat_needs_fchdir): New function.
59419         * lib/openat.h (openat_needs_fchdir): Declare it.
59420
59421 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59424         Problem and fix reported by Pádraig Brady in
59425         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59426
59427 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59430
59431 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * lib/memcoll.c (memcoll): Optimize for the common case where the
59434         arguments are bytewise equal.
59435
59436 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59437
59438         * doc/regexprops-generic.texi: Add a copyright notice.
59439
59440 2006-08-15  Bruno Haible  <bruno@clisp.org>
59441
59442         * modules/tmpdir (License): Change to LGPL.
59443
59444 2006-08-15  Bruno Haible  <bruno@clisp.org>
59445
59446         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59447         module.
59448
59449 2006-08-14  Simon Josefsson  <jas@extundo.com>
59450
59451         * config/srclist.txt: Add gnupload.
59452
59453 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59454
59455         Change copyright notice from LGPL 2 to GPL 2, since that's the
59456         standard form used in the gnulib repository.
59457         * tests/test-lock.c: Likewise.
59458         * tests/test-stdint.c: Likewise.
59459         * tests/test-tls.c: Likewise.
59460
59461         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59462         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59463         Add copyright notice.
59464
59465         * check-module: Add copyright notice.  Output a copyright
59466         notice if "--version" is specified.
59467         * modules/COPYING: New file.
59468         * tests/test-getaddrinfo.c: Add copyright notice.
59469         * tests/test-verify.c: Likewise.
59470
59471 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59472
59473         Change copyright notice from LGPL 2 to GPL 2, since that's the
59474         standard form used in the gnulib repository.
59475         * lib/lock.c: LGPL -> GPL.
59476         * lib/lock.h: Likewise.
59477         * lib/strnlen1.c: Likewise.
59478         * lib/strnlen1.h: Likewise.
59479         * lib/tls.c: Likewise.
59480         * lib/tls.h: Likewise.
59481         * lib/tmpdir.c: Likewise.
59482
59483         * lib/TODO: Remove; this belongs only in coreutils.
59484
59485 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59486
59487         Add copyright notices to long-enough files that lack them, since
59488         otherwise the files aren't clearly free.  Use the same notice that
59489         getdate.texi already uses.
59490         * doc/alloca-opt.texi: Add copyright notice.
59491         * doc/alloca.texi: Likewise.
59492         * doc/ctime.texi: Likewise.
59493         * doc/functions.texi: Likewise.
59494         * doc/gcd.texi: Likewise.
59495         * doc/gnulib-tool.texi: Likewise.
59496         * doc/inet_ntoa.texi: Likewise.
59497         * doc/visibility.texi: Likewise.
59498
59499         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59500         * doc/quote.texi: Add copyright notice.
59501
59502         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59503         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59504         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59505         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59506         is now obsolete, and give a pointer to the Sun list.
59507         Add copyright notice.
59508
59509 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * config/srclistvars.sh: Add copyright notice.
59512
59513 2006-08-14  Eric Blake  <ebb9@byu.net>
59514
59515         Import the following change from libc:
59516
59517         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59518
59519         Upstream bug 2997.
59520         * lib/misc/error.c: Add space between program name and message if file
59521         name is missing.
59522
59523 2006-08-12  Karl Berry  <karl@gnu.org>
59524
59525         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59526         remove, these originate in gnulib now.
59527
59528 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59529
59530         * doc/Makefile (standards.info standards.html standards.dvi):
59531         Also depend on make-stds.texi.
59532
59533 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59536         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59537
59538         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59539         in wchar_t.  Problem reported by Eric Blake.
59540
59541         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59542         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59543         Also, help the compiler to keep LEN in a register.
59544
59545 2006-08-11  Eric Blake  <ebb9@byu.net>
59546
59547         * users.txt: Sort.  Add tar.
59548
59549 2006-08-11  Bruno Haible  <bruno@clisp.org>
59550
59551         * users.txt: New file.
59552
59553 2006-08-11  Bruno Haible  <bruno@clisp.org>
59554
59555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59556         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59557
59558 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * modules/snprintf (Depends-on): Remove minmax.
59561         (Maintainer): Add self and Bruno.
59562
59563 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59566         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59567         (EOVERFLOW): Define if the system does not.
59568         Do not include "minmax.h"; it wasn't used.
59569         (snprintf): Don't assume size_t promotes to an unsigned type.
59570         Fix bug when generated string was too long for the buffer: the
59571         buffer's contents are supposed to be the initial prefix of the
59572         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59573         exceeds INT_MAX; do the check ourselves.
59574
59575         Import the following changes from libc:
59576
59577         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59578
59579         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59580         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59581         set wc to the byte which couldn't be converted.
59582         (re_string_reconstruct): Don't clear valid_raw_len before calling
59583         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59584         tip_context using re_string_context_at.
59585
59586         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59587
59588         * lib/posix/regex.h: g++ still cannot handled [restrict].
59589
59590         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59591
59592         * lib/posix/regex.h: Remove special handling for VMS.
59593
59594 2006-08-10  Jim Meyering  <jim@meyering.net>
59595
59596         * modules/same-inode: New module.
59597         * modules/dev-ino: New module.
59598         * modules/cycle-check: Depend on these modules, rather than simply
59599         including their .h files.
59600         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59601         required via m4/cycle-check.m4.
59602         * modules/same: Depend on new same-inode module, rather than
59603         including same-inode.h.
59604         * modules/chdir-safer: New file.
59605
59606         * modules/chown (Depends-on): Add stat-macros.
59607
59608 2006-08-10  Jim Meyering  <jim@meyering.net>
59609
59610         * m4/cycle-check.m4: New file.
59611         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59612         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59613
59614 2006-08-10  Eric Blake  <ebb9@byu.net>
59615
59616         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59617         in from original proposal.
59618
59619 2006-08-10  Eric Blake  <ebb9@byu.net>
59620         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59621
59622         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59623         namespace.
59624
59625 2006-08-10  Bruno Haible  <bruno@clisp.org>
59626
59627         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59628         as well.
59629
59630 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         Sync from coreutils.
59633
59634         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59635
59636         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59637         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59638
59639 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59640
59641         * modules/restrict: Remove; no longer needed now that we assume
59642         Autoconf 2.59 or later.
59643         * MODULES.html.sh: Remove 'restrict'.
59644         * modules/argp (Depends-on): Remove 'restrict'.
59645         * modules/base64 (Depends-on): Likewise.
59646         * modules/gc (Depends-on): Likewise.
59647         * modules/getaddrinfo (Depends-on): Likewise.
59648         * modules/glob (Depends-on): Likewise.
59649         * modules/inet_ntop (Depends-on): Likewise.
59650         * modules/inet_pton (Depends-on): Likewise.
59651         * modules/memxor (Depends-on): Likewise.
59652         * modules/regex (Depends-on): Likewise.
59653         * modules/strtok_r (Depends-on): Likewise.
59654         * modules/time_r (Depends-on): Likewise.
59655
59656 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59657
59658         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59659         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59660         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59661         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59662         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59663         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59664         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59665         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59666
59667         Merge from coreutils.
59668         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59669         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59671         * m4/time_r.m4 (gl_TIME_R): Likewise.
59672
59673 2006-08-09  Karl Berry  <karl@gnu.org>
59674
59675         * config/srclist.txt: no more gettext-tools, per Bruno.
59676
59677 2006-08-08  Eric Blake  <ebb9@byu.net>
59678
59679         * modules/verror: New module.
59680         * MODULES.html.sh: Document it.
59681
59682 2006-08-08  Eric Blake  <ebb9@byu.net>
59683
59684         * lib/verror.h, lib/verror.c: New files.
59685
59686 2006-08-08  Eric Blake  <ebb9@byu.net>
59687
59688         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59689         verror_at_line output complies with GNU Coding Standards even when
59690         file is NULL.
59691
59692 2006-08-07  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59695         versions of AIX.
59696         Reported by Ralf Wildenhues.
59697
59698 2006-08-07  Bruno Haible  <bruno@clisp.org>
59699
59700         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59701         in an AC_DEFUN. Needed so that the autoconf snippets can use
59702         AC_REQUIRE.
59703
59704 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59705
59706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59707         Initialize pkgdata_DATA.
59708         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59709         overriding it.
59710
59711 2006-08-06  Eric Blake  <ebb9@byu.net>
59712
59713         * lib/error.h: Fold in some upstream changes from glibc.
59714         * lib/error.c: Likewise.
59715
59716 2006-08-04  Bruno Haible  <bruno@clisp.org>
59717
59718         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59719         Make the mostlyclean-local rule depend on mostlyclean-generic.
59720         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59721
59722 2006-07-31  Bruno Haible  <bruno@clisp.org>
59723
59724         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59725         <stdlib.h>, <string.h>.
59726
59727 2006-07-30  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/readlink (License): Change to LGPL.
59730
59731 2006-07-30  Bruno Haible  <bruno@clisp.org>
59732
59733         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59734         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59735         set PKGDATADIR to point to it.
59736
59737 2006-07-30  Bruno Haible  <bruno@clisp.org>
59738
59739         * modules/csharpexec (configure.ac): Comment out macro invocation.
59740         * modules/javaexec (configure.ac): Likewise.
59741         * modules/javacomp-script (configure.ac): Likewise.
59742
59743         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59744
59745 2006-07-30  Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59748         linked-list.
59749
59750 2006-07-30  Bruno Haible  <bruno@clisp.org>
59751
59752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59753
59754 2006-07-30  Bruno Haible  <bruno@clisp.org>
59755
59756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59757         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59758         get removed.
59759
59760 2006-07-29  Bruno Haible  <bruno@clisp.org>
59761
59762         Make it possible for gnulib-tool to work with locally modified or
59763         augmented gnulib repositories.
59764         * gnulib-tool (func_usage): Document --local-dir option.
59765         (local_gnulib_dir): New variable.
59766         Handle --local-dir option.
59767         (func_lookup_file): New function.
59768         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59769         (func_get_description, func_get_filelist, func_get_description,
59770         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59771         func_get_automake_snippet, func_get_include_directive,
59772         func_get_license, func_get_maintainer): Use func_lookup_file.
59773         (func_import, func_create_testdir): Use func_lookup_file.
59774
59775 2006-07-29  Bruno Haible  <bruno@clisp.org>
59776
59777         * modules/setenv (Depends-on): Add unistd.
59778
59779 2006-07-29  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59782
59783 2006-07-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59786
59787 2006-07-29  Bruno Haible  <bruno@clisp.org>
59788
59789         * gnulib-tool (import, update): If there is no Makefile.am, look at
59790         aclocal.m4, instead of bailing out.
59791
59792 2006-07-29  Bruno Haible  <bruno@clisp.org>
59793
59794         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59795         Categorize the options by when they are useful.
59796
59797 2006-07-29  Bruno Haible  <bruno@clisp.org>
59798
59799         * gnulib-tool (func_usage): Document option --no-libtool.
59800         Handle option --no-libtool.
59801         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59802         for changed semantics of $libtool variable.
59803         (func_import): Likewise. If libtool is not used, show this through
59804         an option --no-libtool.
59805         (func_create_testdir): Update.
59806
59807 2006-07-29  Bruno Haible  <bruno@clisp.org>
59808
59809         * gnulib-tool (func_import): Extend error message about missing
59810         --doc-base.
59811
59812 2006-07-29  Bruno Haible  <bruno@clisp.org>
59813
59814         * gnulib-tool (func_import): Don't create the $docbase directory if
59815         there is no file to store there.
59816
59817 2006-07-29  Bruno Haible  <bruno@clisp.org>
59818
59819         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59820         relevant, look for configure.ac there, not in the current directory.
59821         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59822
59823 2006-07-29  Bruno Haible  <bruno@clisp.org>
59824
59825         * gnulib-tool (SORT): New variable.
59826         (func_usage): Undocument --assume-autoconf option.
59827         Remove --assume-autoconf option handling.
59828         (autoconf_minversion): Determine from the contents of configure.ac.
59829         (func_import): Remove autoconf_minversion handling.
59830         Suggested by Eric Blake.
59831
59832 2006-07-29  Bruno Haible  <bruno@clisp.org>
59833
59834         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59835
59836 2006-07-29  Bruno Haible  <bruno@clisp.org>
59837
59838         * config/srclist.txt (*setenv.[ch]): Remove rules.
59839
59840 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59841
59842         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59843
59844 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59845
59846         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59847         arpa/inet.h.
59848
59849 2006-07-28  Simon Josefsson  <jas@extundo.com>
59850
59851         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59852         * modules/inet_pton (Depends-on): Likewise.
59853
59854 2006-07-28  Simon Josefsson  <jas@extundo.com>
59855
59856         * m4/netinet_in_h.m4: New file.
59857
59858 2006-07-28  Simon Josefsson  <jas@extundo.com>
59859
59860         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59861         #include's.
59862
59863 2006-07-28  Simon Josefsson  <jas@extundo.com>
59864
59865         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59866         #include's.
59867
59868 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59871         setgid on directories only if they set these bits.
59872         * lib/modechange.h: Remove obsolete comment about masks.
59873
59874 2006-07-28  Eric Blake  <ebb9@byu.net>
59875
59876         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59877         macro expansion.
59878
59879 2006-07-28  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59882
59883 2006-07-28  Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59886
59887 2006-07-28  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59890         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59891         Define fallbacks.
59892         Avoids link error on FreeBSD 4.x.
59893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59894
59895         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59896         encoding.
59897         * lib/mbswidth.c (iswcntrl): Likewise.
59898
59899 2006-07-27  Bruno Haible  <bruno@clisp.org>
59900
59901         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59902         test.
59903
59904 2006-07-27  Bruno Haible  <bruno@clisp.org>
59905
59906         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59907         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59908         defined.
59909
59910 2006-07-26  Eric Blake  <ebb9@byu.net>
59911
59912         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59913
59914 2006-07-26  Eric Blake  <ebb9@byu.net>
59915
59916         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59917         like mingw that lack mkstemp.
59918         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59919         avoid compilation warning on mingw.
59920
59921 2006-07-26  Bruno Haible  <bruno@clisp.org>
59922
59923         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59924         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59925         INT_FAST*_MIN, INTPTR_MIN.
59926
59927 2006-07-25  Bruno Haible  <bruno@clisp.org>
59928
59929         * modules/version-etc (Depends-on): Add stdarg.
59930
59931 2006-07-25  Bruno Haible  <bruno@clisp.org>
59932
59933         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59934         complex commands.
59935
59936 2006-07-25  Bruno Haible  <bruno@clisp.org>
59937
59938         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59939         defined in <stdarg.h> or config.h.
59940
59941 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59942
59943         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59944         (gl_STDIO_SAFER): Remove.
59945
59946 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * MODULES.html.sh (File stream based Input/Output):
59949         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59950         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59951         * modules/fopen-safer, modules/tmpfile-safer: New files.
59952         * modules/stdio-safer: Remove.
59953
59954 2006-07-24  Bruno Haible  <bruno@clisp.org>
59955
59956         * modules/tmpdir: New file.
59957         * MODULES.html.sh (File system functions): Add it.
59958
59959 2006-07-24  Bruno Haible  <bruno@clisp.org>
59960
59961         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59962         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59963
59964 2006-07-24  Bruno Haible  <bruno@clisp.org>
59965
59966         * modules/clean-temp: New file.
59967
59968 2006-07-24  Bruno Haible  <bruno@clisp.org>
59969
59970         * m4/tmpdir.m4: New file, from GNU gettext.
59971
59972 2006-07-24  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/tmpdir.h: New file, from GNU gettext.
59975         * lib/tmpdir.c: New file, from GNU gettext.
59976
59977 2006-07-24  Bruno Haible  <bruno@clisp.org>
59978
59979         * lib/clean-temp.h: New file, from GNU gettext.
59980         * lib/clean-temp.c: New file, from GNU gettext.
59981
59982 2006-07-23  Eric Blake  <ebb9@byu.net>
59983
59984         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59985         (Depends-on): Add binary-io.
59986
59987 2006-07-23  Eric Blake  <ebb9@byu.net>
59988
59989         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59990
59991 2006-07-23  Eric Blake  <ebb9@byu.net>
59992
59993         * lib/tmpfile-safer.c: New file.
59994         * lib/stdio-safer.h (fopen_safer): Add prototype.
59995         * lib/stdio--.h (tmpfile): Make safer.
59996
59997 2006-07-23  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60000         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60001         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60002         gl_linked_remove_at): Use it.
60003
60004 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60005         and Simon Josefsson <jas@extundo.com>
60006
60007         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60008
60009         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60010
60011 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * modules/close-stream: New file.
60014         * modules/closeout (Description): Make it clear that it exits
60015         with a diagnostic on error.
60016         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60017         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60018
60019 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * m4/close-stream.m4: New file.
60022
60023 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * lib/close-stream.c, lib/close-stream.h: New files.
60026
60027 2006-07-22  Bruno Haible  <bruno@clisp.org>
60028
60029         Merge from GNU gettext 0.15.
60030
60031         2006-05-01  Bruno Haible  <bruno@clisp.org>
60032
60033                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60034
60035         2006-07-22  Bruno Haible  <bruno@clisp.org>
60036
60037                 * modules/javaversion: New file.
60038                 * MODULES.html.sh (Java): Add javaversion.
60039
60040         2006-03-12  Bruno Haible  <bruno@clisp.org>
60041
60042                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60043
60044         2005-12-04  Bruno Haible  <bruno@clisp.org>
60045
60046                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60047                 (untested).
60048
60049         2006-06-21  Bruno Haible  <bruno@clisp.org>
60050
60051                 Avoid warnings from recent versions of mcs.
60052                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60053                 -o, -L, -r any more. Use options documented since mcs-1.0
60054                 instead. Similarly for -g.
60055
60056         2005-12-04  Bruno Haible  <bruno@clisp.org>
60057
60058                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60059                 .resources, not .resource.
60060
60061         2005-07-09  Bruno Haible  <bruno@clisp.org>
60062
60063                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60064                 add a .dll suffix.
60065                 Reported by Mark Junker <mjscod@gmx.de>.
60066
60067         2006-07-22  Bruno Haible  <bruno@clisp.org>
60068
60069                 * modules/gettext: Upgrade to gettext-0.15.
60070                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60071                 m4/visibility.m4.
60072                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60073
60074 2006-07-22  Bruno Haible  <bruno@clisp.org>
60075
60076         Merge from GNU gettext 0.15.
60077
60078         2006-03-25  Bruno Haible  <bruno@clisp.org>
60079
60080                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60081
60082         2006-07-21  Bruno Haible  <bruno@clisp.org>
60083
60084                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60085                 "1.1".
60086
60087         2006-05-09  Bruno Haible  <bruno@clisp.org>
60088
60089                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60090                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60091                 for the conftestver execution.
60092
60093         2006-05-01  Bruno Haible  <bruno@clisp.org>
60094
60095                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60096                 optional target-version argument. Verify that the compiler
60097                 groks source of the specified source-version, or add -source
60098                 option as necessary. Verify that the compiler produces
60099                 bytecode in the specified target-version, or add -target and
60100                 -source options as necessary. Make the result of the test
60101                 available as variable CONF_JAVAC. Also log error output in
60102                 config.log.
60103
60104         2006-03-11  Bruno Haible  <bruno@clisp.org>
60105
60106                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60107
60108         2006-05-09  Bruno Haible  <bruno@clisp.org>
60109
60110                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60111                 CLASSPATH_SEPARATOR to a semicolon.
60112
60113         2006-03-12  Bruno Haible  <bruno@clisp.org>
60114
60115                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60116                 available as variable CONF_JAVA, for subsequent autoconf
60117                 tests. Also log error output in config.log.
60118
60119         2006-07-19  Bruno Haible  <bruno@clisp.org>
60120
60121                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60122                 that getline works on glibc2 systems. Needed to avoid trouble
60123                 in relocatable.c.
60124                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60125
60126         2005-12-04  Bruno Haible  <bruno@clisp.org>
60127
60128                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60129                 launcher (untested).
60130
60131         2005-12-04  Bruno Haible  <bruno@clisp.org>
60132
60133                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60134
60135         2006-07-22  Bruno Haible  <bruno@clisp.org>
60136
60137                 * gettext.m4: Update from GNU gettext-0.15.
60138                 * nls.m4: Likewise.
60139                 * po.m4: Likewise.
60140                 * inttypes-pri.m4: Likewise.
60141                 * inttypes-h.m4: Renamed from inttypes.m4.
60142                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60143
60144 2006-07-22  Bruno Haible  <bruno@clisp.org>
60145
60146         Merge from GNU gettext 0.15.
60147
60148         2005-07-05  Bruno Haible  <bruno@clisp.org>
60149
60150                 * printf-args.c (printf_fetchargs): Work around broken
60151                 definition of wint_t on mingw.
60152
60153         2005-02-12  Bruno Haible  <bruno@clisp.org>
60154
60155                 * xallocsa.h: Add extern "C" for C++.
60156
60157         2006-05-17  Bruno Haible  <bruno@clisp.org>
60158
60159                 Cygwin portability.
60160                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60161
60162         2006-04-30  Bruno Haible  <bruno@clisp.org>
60163
60164                 * progreloc.c: Include <mach-o/dyld.h> if available.
60165                 (find_executable): Use _NSGetExecutablePath when possible.
60166
60167         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60168
60169                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60170                 function.
60171
60172         2005-12-29  Bruno Haible  <bruno@clisp.org>
60173
60174                 * progreloc.c (set_program_name_and_installdir): Fix
60175                 compilation error.
60176
60177         2005-12-04  Bruno Haible  <bruno@clisp.org>
60178
60179                 Cygwin portability.
60180                 * progreloc.c: Include <windows.h> also on Cygwin.
60181                 (find_executable): Add support for Cygwin.
60182                 (set_program_name_and_installdir): Handle also platforms with
60183                 nonempty EXEEXT.
60184
60185         2006-07-11  Bruno Haible  <bruno@clisp.org>
60186
60187                 * javacomp.c: Fix a comment.
60188                 Reported by Jim Meyering.
60189
60190         2006-04-30  Bruno Haible  <bruno@clisp.org>
60191
60192                 * javacomp.h (compile_java_class): Add source_version,
60193                 target_version arguments.
60194                 * javacomp.c: Rewritten to choose only a compiler that
60195                 respects the specified source_version and target_version.
60196
60197         2006-06-27  Bruno Haible  <bruno@clisp.org>
60198
60199                 Assume correct S_ISDIR macro.
60200                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60201
60202         2006-07-22  Bruno Haible  <bruno@clisp.org>
60203
60204                 * javaversion.h: New file, from GNU gettext.
60205                 * javaversion.c: New file, from GNU gettext.
60206                 * javaversion.java: New file, from GNU gettext.
60207                 * javaversion.class: New file, from GNU gettext.
60208
60209         2006-05-17  Bruno Haible  <bruno@clisp.org>
60210
60211                 Cygwin portability.
60212                 * javaexec.c (execute_java_class): Test for jview program
60213                 also on Cygwin.
60214
60215         2006-04-09  Bruno Haible  <bruno@clisp.org>
60216
60217                 * fatal-signal.c: Don't include string.h.
60218                 (at_fatal_signal): Use a copying loop instead of memcpy.
60219
60220         2005-12-04  Bruno Haible  <bruno@clisp.org>
60221
60222                 * csharpexec.c: Add support for 'clix' launcher (untested).
60223                 (execute_csharp_using_sscli): New function.
60224                 (execute_csharp_program): Call it.
60225
60226         2006-06-21  Bruno Haible  <bruno@clisp.org>
60227
60228                 Avoid warnings from recent versions of mcs.
60229                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60230                 -o, -L, -r any more. Use options documented since mcs-1.0
60231                 instead. Similarly for -g.
60232
60233         2005-07-09  Bruno Haible  <bruno@clisp.org>
60234
60235                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60236                 add a .dll suffix.
60237                 Reported by Mark Junker <mjscod@gmx.de>.
60238
60239         2006-06-17  Bruno Haible  <bruno@clisp.org>
60240
60241                 * config.charset: Update for NetBSD 3.0.
60242
60243         2006-05-17  Bruno Haible  <bruno@clisp.org>
60244
60245                 Cygwin portability.
60246                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60247
60248         2006-05-16  Bruno Haible  <bruno@clisp.org>
60249
60250                 * localcharset.c [CYGWIN]: Include <windows.h>.
60251                 (get_charset_aliases): For Cygwin, return the same CPxxx
60252                 aliases list as under WIN32.
60253                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60254                 the environment variables. Fall back to GetACP().
60255
60256         2006-04-05  Bruno Haible  <bruno@clisp.org>
60257
60258                 * config.charset: Update Juan Manuel Guerrero's address.
60259
60260         2005-02-12  Bruno Haible  <bruno@clisp.org>
60261
60262                 * allocsa.h: Add extern "C" for C++.
60263
60264         2005-02-10  Bruno Haible  <bruno@clisp.org>
60265
60266                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60267                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60268
60269         2006-07-22  Bruno Haible  <bruno@clisp.org>
60270
60271                 * gettext.h: Update to GNU gettext-0.15.
60272
60273 2006-07-22  Bruno Haible  <bruno@clisp.org>
60274
60275         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60276         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60277         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60278
60279 2006-07-21  Eric Blake  <ebb9@byu.net>
60280
60281         * modules/stdlib-safer: New file.
60282         * MODULES.html.sh (File stream based Input/Output): Add
60283         stdlib-safer.
60284
60285 2006-07-21  Eric Blake  <ebb9@byu.net>
60286
60287         * lib/stdlib-safer.h: New file from coreutils, required by
60288         stdlib--.h.
60289
60290 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60293
60294 2006-07-20  Bruno Haible  <bruno@clisp.org>
60295
60296         * gnulib-tool: Recognize new option --assume-autoconf.
60297         (autoconf_minversion): New variable.
60298         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60299
60300 2006-07-20  Bruno Haible  <bruno@clisp.org>
60301
60302         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60303
60304 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60305
60306         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60307         Reindent and repaginate.
60308
60309 2006-07-19  Derek Price  <derek@ximbiot.com>
60310
60311         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60312         Correct grammar.
60313
60314 2006-07-17  Bruno Haible  <bruno@clisp.org>
60315
60316         * modules/list: New file.
60317         * modules/array-list: New file.
60318         * modules/carray-list, modules/carray-list-tests: New files.
60319         * modules/linked-list, modules/linked-list-tests: New files.
60320         * modules/avltree-list, modules/avltree-list-tests: New files.
60321         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60322         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60323         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60324         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60325         * modules/oset: New file.
60326         * modules/array-oset: New file.
60327         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60328         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60329         * tests/test-carray_list.c: New file.
60330         * tests/test-linked_list.c: New file.
60331         * tests/test-avltree_list.c: New file.
60332         * tests/test-rbtree_list.c: New file.
60333         * tests/test-linkedhash_list.c: New file.
60334         * tests/test-avltreehash_list.c: New file.
60335         * tests/test-rbtreehash_list.c: New file.
60336         * tests/test-avltree_oset.c: New file.
60337         * tests/test-rbtree_oset.c: New file.
60338         * MODULES.html.sh (Container data structures): New section.
60339
60340 2006-07-17  Bruno Haible  <bruno@clisp.org>
60341
60342         * m4/gl_list.m4: New file.
60343
60344 2006-07-17  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/gl_list.h: New file.
60347         * lib/gl_list.c: New file.
60348         * lib/gl_array_list.h: New file.
60349         * lib/gl_array_list.c: New file.
60350         * lib/gl_carray_list.h: New file.
60351         * lib/gl_carray_list.c: New file.
60352         * lib/gl_linked_list.h: New file.
60353         * lib/gl_linked_list.c: New file.
60354         * lib/gl_anylinked_list1.h: New file.
60355         * lib/gl_anylinked_list2.h: New file.
60356         * lib/gl_avltree_list.h: New file.
60357         * lib/gl_avltree_list.c: New file.
60358         * lib/gl_anyavltree_list1.h: New file.
60359         * lib/gl_anyavltree_list2.h: New file.
60360         * lib/gl_rbtree_list.h: New file.
60361         * lib/gl_rbtree_list.c: New file.
60362         * lib/gl_anyrbtree_list1.h: New file.
60363         * lib/gl_anyrbtree_list2.h: New file.
60364         * lib/gl_anytree_list1.h: New file.
60365         * lib/gl_anytree_list2.h: New file.
60366         * lib/gl_linkedhash_list.h: New file.
60367         * lib/gl_linkedhash_list.c: New file.
60368         * lib/gl_anyhash_list1.h: New file.
60369         * lib/gl_anyhash_list2.h: New file.
60370         * lib/gl_avltreehash_list.h: New file.
60371         * lib/gl_avltreehash_list.c: New file.
60372         * lib/gl_rbtreehash_list.h: New file.
60373         * lib/gl_rbtreehash_list.c: New file.
60374         * lib/gl_anytreehash_list1.h: New file.
60375         * lib/gl_anytreehash_list2.h: New file.
60376
60377         * lib/gl_oset.h: New file.
60378         * lib/gl_oset.c: New file.
60379         * lib/gl_array_oset.h: New file.
60380         * lib/gl_array_oset.c: New file.
60381         * lib/gl_avltree_oset.h: New file.
60382         * lib/gl_avltree_oset.c: New file.
60383         * lib/gl_rbtree_oset.h: New file.
60384         * lib/gl_rbtree_oset.c: New file.
60385         * lib/gl_anytree_oset.h: New file.
60386
60387 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60388
60389         * m4/mkancesdirs.m4: New file.
60390         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60391         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60392         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60393         it.
60394
60395 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60396
60397         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60398         * lib/mkancesdirs.h: New files.
60399         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60400         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60401         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60402         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60403         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60404         callers changed.  Revamp internals significantly, by not
60405         attempting to create directories that are temporarily more
60406         permissive than the final results.  Do not attempt to use
60407         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60408         This removes some race conditions, fixes some bugs, and simplifies
60409         things.  Use new dirchownmod function to do owner and mode changes.
60410         * lib/mkdir-p.h: Likewise.
60411         * lib/modechange.c (octal_to_mode): New function.
60412         (struct mode_change): New member mentioned.
60413         (make_node_op_equals): New arg mentioned.  All callers changed.
60414         (mode_compile): Keep track of which mode bits the user has explicitly
60415         mentioned.
60416         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60417         New arg PMODE_BITS, to keep track of which mode bits the user
60418         mentioned; it treats S_ISUID and S_ISGID speciall.
60419         All callers changed.
60420         * lib/modechange.h: Likewise.
60421
60422 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * MODULES.html.sh: Add mkancestors.
60425         * modules/mkancesdirs: New module.
60426         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60427         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60428         The chdir-safer and afs files are now orphans; I'll remove them
60429         unless someone speaks up.
60430         Add lib/dirchownmod.c, lib/dirchownmod.h.
60431         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60432         Add lchown, mkancesdirs.
60433         (Maintainer): Add self.
60434
60435 2006-07-15  Karl Berry  <karl@gnu.org>
60436
60437         * gnulib-tool: help message wording/arrangement.
60438
60439 2006-07-14  Simon Josefsson  <jas@extundo.com>
60440
60441         * doc/gnulib.texi (Libtool and Windows): New section.
60442
60443 2006-07-12  Simon Josefsson  <jas@extundo.com>
60444
60445         * modules/gendocs (License): Fix license, approved by Karl.
60446
60447 2006-07-12  Eric Blake  <ebb9@byu.net>
60448
60449         * MODULES.html.sh: Add gendocs.
60450
60451 2006-07-11  Eric Blake  <ebb9@byu.net>
60452
60453         * modules/fdl: New module, to install doc/fdl.texi.
60454         * MODULES.html.sh: Add new section for documentation modules.
60455         * gnulib-tool: Avoid space-tab.
60456         (--doc-base): New option, to manage files from doc.
60457
60458 2006-07-11  Eric Blake  <ebb9@byu.net>
60459
60460         * m4/absolute-header.m4: Fix comments to match recent change.
60461
60462 2006-07-11  Eric Blake  <ebb9@byu.net>
60463
60464         * gnulib-tool: List --doc-base before --tests-base.
60465
60466 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60467
60468         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60469
60470 2006-07-11  Bruno Haible  <bruno@clisp.org>
60471
60472         * README: Mention where to put documentation.
60473
60474 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60475
60476         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60477
60478 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60479
60480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60481         to stdint.m4.
60482
60483 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60486         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60487         "no/such/file/stdint.h" when there is no such file, so that
60488         the resulting C code can be parsed by dodgy compilers.
60489         Problems reported by Bob Proulx.
60490
60491 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60492
60493         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60494         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60495         macros into the GNU _D_EXACT_NAMLEN.
60496         * lib/savedir.c:  Likewise.
60497         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60498
60499 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60500         and Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60503         * m4/savedir.m4:
60504         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60505         macros into the GNU _D_EXACT_NAMLEN.
60506
60507 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60510         around the absolute name, to work around a problem with the HP-UX
60511         11.23 native C compiler, reported by Bob Proulx.
60512
60513 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * doc/maintain.texi, make-stds.texi: Sync from
60516         <http://savannah.gnu.org/projects/gnustandards>.
60517
60518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60521
60522 2006-07-09  Jim Meyering  <jim@meyering.net>
60523
60524         * m4/glob.m4: Remove a doubled word in a comment.
60525
60526 2006-07-09  Jim Meyering  <jim@meyering.net>
60527
60528         * lib/argp-pv.c: Remove a doubled word in a comment.
60529         * lib/check-version.c (check_version): Likewise.
60530         * lib/javacomp.c (compile_java_class): Likewise.
60531
60532 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60535         for the benefit of people using Autoconf 2.60.  If you want to
60536         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60537         (or m4/onceonly.m4, if pre-2.57) manually.
60538
60539 2006-07-08  Jim Meyering  <jim@meyering.net>
60540
60541         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60542         comment.
60543         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60544         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60545         comment.
60546
60547 2006-07-08  Jim Meyering  <jim@meyering.net>
60548
60549         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60550
60551 2006-07-07  Simon Josefsson  <jas@extundo.com>
60552
60553         * tests/test-crc.c: Change expected crc value, the test vector
60554         were probably computed using the old broken crc.c?
60555
60556 2006-07-06  Simon Josefsson  <jas@extundo.com>
60557
60558         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60559         now the canonical place for the M4 file).
60560
60561         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60562         from the sys_socket dependency now.
60563
60564         * modules/inet_pton (Files): Ditto.
60565
60566         * modules/inet_ntop (Files): Ditto.
60567
60568 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60569
60570         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60571         not gl_PREREQ_GETUSERSHELL.
60572
60573 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60574
60575         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60576         with only one argument, for Autoconf 2.60.
60577         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60578         expand to nothing, so add a shell command to avoid syntax error.
60579         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60580
60581 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60582
60583         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60584
60585 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60588         no longer needed.  Check for isblank decl.
60589         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60590         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60591         of existence.
60592
60593 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         * lib/getloadavg.c: Use __VMS, not VMS.
60596         * lib/getopt.c: Likewise.
60597         * lib/getpagesize.h: Likewise.
60598         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60599         and probably does not work.
60600
60601 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * lib/.cppi-disable: Add wcwidth.
60604         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60605         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60606         (ISGRAPH): Remove.  All uses changed to isgraph.
60607         (FOLD) [!defined _LIBC]: Remove special case.
60608         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60609         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60610         HAVE_ISBLANK.
60611         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60612         case.
60613
60614 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60615
60616         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60617         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60618         brackets.  Other minor changes to suppress some compiler
60619         warnings.
60620
60621 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60622         and Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60625         of invoking obsolescent AC_HEADER_DIRENT macro.
60626         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60627         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60629         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60630         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60631         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60632         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60633         * m4/readdir.m4: Remove; no longer needed.
60634
60635 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60636         and Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60639         Don't worry about this obsolete case any more.
60640         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60641         directories.
60642         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60643         worry about this obsolete case any more.
60644         * lib/fts.c: Likewise.
60645         * lib/getcwd.c: Likewise.
60646         * lib/glob.h: Likewise.
60647         * lib/savedir.c: Likewise.
60648
60649 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60650
60651         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60652         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60653         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60654         needed.
60655         All uses removed.
60656         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60657         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60658         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60659         needed.
60660         * m4/getdate.m4 (gl_GETDATE): Likewise.
60661         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60662         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60663         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60664         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60665         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60666         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60667         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60668         needed.
60669
60670 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60671
60672         * lib/memcasecmp.c: Include <limits.h>.
60673         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60674         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60675         Don't assume isdigit succeeds only on '0' through '9'.
60676
60677 2006-07-05  Eric Blake  <ebb9@byu.net>
60678
60679         * modules/getaddrinfo (Depends-on): Add snprintf.
60680
60681 2006-07-05  Eric Blake  <ebb9@byu.net>
60682
60683         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60684         to avoid 'header present but could not be compiled' on cygwin.
60685
60686 2006-07-05  Eric Blake  <ebb9@byu.net>
60687
60688         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60689         missing from netdb.h.
60690         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60691
60692 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60693
60694         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60695         no longer needed.
60696         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60697         * m4/getdate.m4 (gl_GETDATE): Likewise.
60698         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60699         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60700         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60701         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60702         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60703
60704 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60705
60706         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60707         All uses of is_space replaced by isspace.
60708         * lib/exit.h: Don't talk about STDC_HEADERS.
60709         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60710         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60711         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60712         replaced by isprint etc.
60713         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60714         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60715         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60716         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60717         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60718         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60719
60720 2006-07-05  Bruno Haible  <bruno@clisp.org>
60721
60722         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60723         the function exists, before testing against AIX.
60724         Reported by Martin Lambers <marlam@marlam.de>.
60725
60726 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60729         From Mark D. Baushke.
60730
60731 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60734         to the absolute name, not just one, to bypass Sun C 5.8's
60735         "warning: #include of /usr/include/... may be non-portable".
60736
60737 2006-07-04  Eric Blake  <ebb9@byu.net>
60738
60739         * modules/dirname-tests: New test module.
60740         * tests/test-dirname.c: New file, replacing dirname.c
60741         TEST_DIRNAME section that was recently deleted.
60742
60743 2006-07-04  Bruno Haible  <bruno@clisp.org>
60744
60745         Assume ANSI C header files and <ctype.h> functions.
60746         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60747         (mbsnwidth): Use isprint, iscntrl instead.
60748
60749 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60750
60751         Merge from coreutils.
60752         * MODULES.html.sh: Add xstrtold.
60753         * modules/xstrtold: New file.
60754         * modules/cycle-check (Files): Add lib/same-inode.h.
60755         * modules/dirname (Files): Add m4/double-slash-root.m4.
60756         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60757         * modules/mkdir-p (Files): Add lib/same-inode.h.
60758         * modules/same (Files): Add lib/same-inode.h.
60759
60760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60761
60762         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60763         This is to keep the terminology clean; POSIX talks about
60764         "absolute pathnames", not "full pathnames", but the GNU
60765         Coding Standards say to use "path" for something else;
60766         so use "absolute" to keep both sides happy.
60767         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60768         Set gl_absolute_header, not gl_full_header_path.
60769         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60770         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60771         All uses changed.
60772
60773         Merge from coreutils.
60774
60775         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60776
60777         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60778         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60779         want to require the building of c-strtod.o.
60780         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60781         needs -lm directly.
60782         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60783
60784         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60785
60786         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60787         --as-needed option if available.  Problem reported by Albert Chin in
60788         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60789         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60790         cc merely issues a bunch of annoying warnings for --as-needed
60791         (this problem was reported by Bob Proulx).  Also, try linking with
60792         -lm to detect a bug in binutils 2.16 (this problem was reported
60793         by Ralf Wildenhues).
60794
60795         2006-06-18  Jim Meyering  <jim@meyering.net>
60796
60797         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60798         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60799         macro.
60800         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60801         also check for glibc-2.4's abort-inducing bug.
60802
60803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60804         Low-probability clean-up should be to use rmdir to get rid of
60805         the just-created directory, not unlink.
60806
60807         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60808         configure fail, and request a bug report to inform us about it.
60809         Add a comment that, barring reports to the contrary, in 2007 we'll
60810         assume ftruncate is universally available.
60811
60812         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60815
60816         2006-03-12  Jim Meyering  <jim@meyering.net>
60817
60818         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60819         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60820         * m4/same.m4 (gl_SAME): Likewise.
60821         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60822
60823         2006-03-11  Eric Blake  <ebb9@byu.net>
60824
60825         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60826         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60827         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60828         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60829
60830 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60831
60832         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60833         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60834         reported by Mark D. Baushke, one in
60835         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60836
60837         Merge from coreutils.
60838
60839         * lib/.cppi-disable: Add stdint_.h.
60840         * lib/.cvsignore: Add stdint.h.
60841
60842         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60843
60844         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60845         both double and long double versions.
60846         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60847         * lib/xstrtold.c: New file.
60848         * lib/xstrtod.h (xstrtold): New decl.
60849
60850         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * lib/filemode.c (setst): Remove.
60853         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60854         (arguably) clearer, and the generated code is a bit smaller on my
60855         Debian GNU/Linux stable x86 host.
60856
60857         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60860         Assume that filemode.h includes sys/types.h and sys/stat.h.
60861         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60862         (ftypelet): Reorder to put common cases first, for efficiency.
60863         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60864         to do 'M'.
60865         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60866         of 10, for compatibility with FreeBSD.  All callers changed.
60867         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60868         types that can't be deduced solely from st_mode.  First arg is now a
60869         const pointer.
60870         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60871         (strmode): Renamed from mode_string.
60872         (filemodestring): New decl.
60873         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60874         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60875         needed.
60876         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60877
60878         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60879
60880         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60881         fsusage.h now does that.  Include fsusage.h first, to test interface.
60882         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60883         at most one method (the old code could have generated decls that
60884         didn't conform to C89, not that this was ever exercised).
60885         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60886
60887         2006-03-19  Jim Meyering  <jim@meyering.net>
60888
60889         Work even in a chroot where d_ino values for entries in "/"
60890         don't match the stat.st_ino values for the same names.
60891         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60892         number, iterate through all entries again, using lstat instead.
60893         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60894         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60895
60896         * lib/getcwd.c (__getcwd): Clarify a comment.
60897         Use memcpy in place of a call to strcpy.
60898
60899         2006-03-12  Jim Meyering  <jim@meyering.net>
60900
60901         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60902         matches that of the current directory (which we're about to chdir ".."
60903         out of), then save the dev-ino of the parent, instead.
60904
60905         * lib/same-inode.h (SAME_INODE): New file/macro.
60906         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60907         Include "same-inode.h", instead.
60908         * lib/same.c: Likewise.
60909         * lib/cycle-check.h: Include "same-inode.h".
60910         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60911         * lib/cycle-check.c (SAME_INODE): Remove definition.
60912         * lib/root-dev-ino.h: Include "same-inode.h".
60913
60914         2006-03-11  Eric Blake  <ebb9@byu.net>
60915
60916         * lib/same.c (same_name): s/base_name/last_component/
60917         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60918         * lib/filenamecat.c (file_name_concat): Likewise.
60919
60920         2006-03-11  Eric Blake  <ebb9@byu.net>,
60921                     Paul Eggert  <eggert@cs.ucla.edu>
60922
60923         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60924         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60925         drive prefix.
60926         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60927         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60928         (last_component): New method.
60929         * lib/dirname.c (dir_len): Determine when drive letters need a
60930         subsequent slash.  Preserve // when it is special.
60931         (dir_name): Don't append dot when drive letter is absolute.
60932         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60933         * lib/basename.c (base_name): New semantics - malloc the result.
60934         Preserve // when it is special.  Preserve relative files that look
60935         like drive letters.
60936         (base_len): Preserve // when it is special.
60937         (last_component): New method, similar to old base_name semantics.
60938         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60939         base_name.  Strip redundant slashes from ///.
60940
60941 2006-07-03  Jim Meyering  <jim@meyering.net>
60942
60943         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60944         macro is used before the first cycle_check call.
60945
60946 2006-07-03  Eric Blake  <ebb9@byu.net>
60947
60948         * modules/dirname (Depends-on): Add xstrndup.
60949
60950 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60953         test cases, so that config.log is a bit easier to follow.
60954
60955 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60958         both are 64 bits, since this seems to be the tradition, and this
60959         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60960         we ever run into a host that prefers long long to long in this
60961         case, we'll need another configure-time test.  Problem reported by
60962         Jim Meyering.
60963
60964 2006-07-02  Eric Blake  <ebb9@byu.net>
60965
60966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60967
60968 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * modules/inttypes (Depends-on): No longer depends on stdint.
60971         * modules/stdint (Description): Say more about assumptions.
60972         Say that the fast types might differ.  Say macros are used.
60973         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60974         (Makefile.am): Revise list of substituted symbols to match
60975         new stdint.m4.
60976         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60977         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60978         * tests/test-stdint.c (verify_same_types)
60979         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60980         the code conforms to C99/C89.
60981         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60982         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60983
60984 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60987         but fix a bug, by requiring at least 64 bits.
60988         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60989         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60990         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60991         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60992
60993         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60994         changes.  Make 2.59 a prerequisite.  Check and substitute for
60995         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60996         inttypes.h.  Do not use special include files; just use the
60997         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60998         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60999         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61000         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61001         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61002         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61003         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61004         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61005         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61006         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61007         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61008         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61009         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61010         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61011         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61012         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61013         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61014         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61015         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61016         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61017         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61018         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61019         not check for things that C99 does not require, e.g., int8_t.  If
61020         a test isn't needed unless <stdint.h> isn't working, and is
61021         unlikely to be needed for any other reason, then don't do it
61022         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61023         size_t, since we assume C89 freestanding at least.  Do not check
61024         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61025         the right thing even if the types are not defined.  Instead use:
61026         (gl_STDINT_TYPE_PROPERTIES): New macro.
61027         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61028         testing whether <sys/types.h> clashes, as Autoconf does this for
61029         us now.  All uses removed.
61030         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61031         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61032         (gl_CHECK_TYPE_SAME):
61033         Remove; no longer needed.
61034         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61035         exists, since we'll return 0 anyway in that case.
61036         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61037
61038 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61041         possible collision with system files.
61042         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61043         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61044         WCHAR_MIN and WCHAR_MAX in this case.
61045         (<stddef.h>): Do not include; no longer needed.
61046         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61047         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61048         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61049         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61050         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61051         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61052         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61053         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61054         !defined(__c99))]: Include in this case too, since it's harmless
61055         now.
61056         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61057         dangerous to do so.
61058         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61059         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61060         (_STDINT_MIN, _STDINT_MAX): New macros.
61061         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61062         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61063         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61064         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61065         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61066         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61067         macros, not typedefs; this simplifies things quite a bit.
61068         Use long int for all types narrower than int64_t.
61069         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61070         Define in terms of long long int or int64_t or long int,
61071         not int64_t or int32_t.  This saves some compile-time testing.
61072         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61073         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61074         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61075         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61076         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61077         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61078         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61079         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61080         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61081         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61082         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61083         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61084         undef any previous version and define our own version, for
61085         simplicity and consistency with the new macros for types.
61086         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61087         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61088         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61089         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61090         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61091         @WINT_T_SUFFIX@ to keep things simple here.
61092         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61093         Simplify by assuming typical 8/16/32/64 host, since we're
61094         already doing that elsewhere anyway.
61095         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61096         and assume long long int is 64 bits if available.  This
61097         speeds up 'configure'.
61098
61099 2006-07-01  Eric Blake  <ebb9@byu.net>
61100
61101         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61102         Reported by Andreas Buening.
61103
61104 2006-07-01  Eric Blake  <ebb9@byu.net>
61105
61106         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61107
61108 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61109
61110         * lib/getaddrinfo.c: fixed typo
61111
61112 2006-06-29  Jim Meyering  <jim@meyering.net>
61113
61114         * modules/strftime (Maintainer): Add my name, since with the
61115         FPRINTFTIME changes strftime.c has forked from glibc.
61116
61117 2006-06-29  Eric Blake  <ebb9@byu.net>
61118
61119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61120
61121 2006-06-29  Eric Blake  <ebb9@byu.net>
61122
61123         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61124
61125 2006-06-29  Eric Blake  <ebb9@byu.net>
61126
61127         * lib/stat_.h: New file.
61128
61129 2006-06-29  Eric Blake  <ebb9@byu.net>
61130
61131         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61132         unused static function.
61133
61134 2006-06-29  Eric Blake  <ebb9@byu.net>
61135
61136         * doc/functions.texi (Function Portability): Document missing lstat
61137         on mingw.
61138
61139 2006-06-29  Eric Blake  <ebb9@byu.net>
61140
61141         * MODULES.html.sh: Add sys_stat.
61142         * modules/sys_stat: New module.
61143         * modules/mkstemp (Depends-on): Add sys_stat.
61144
61145 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61146
61147         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61148
61149 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61150
61151         * m4/c-bs-a.m4: Removed.
61152
61153 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61154
61155         * lib/strftime.c: Assume strftime() exists.
61156
61157 2006-06-29  Derek Price  <derek@ximbiot.com>
61158
61159         * modules/c-bs-a: Removed - \a is C89.
61160         * MODULES.html.sh: Remove c-bs-a.
61161
61162 2006-06-29  Bruno Haible  <bruno@clisp.org>
61163
61164         * modules/wcwidth (License): Change to LGPL.
61165
61166 2006-06-28  Simon Josefsson  <jas@extundo.com>
61167
61168         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61169         on _WIN32.
61170
61171         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61172         getnameinfo.
61173
61174 2006-06-28  Simon Josefsson  <jas@extundo.com>
61175
61176         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61177
61178 2006-06-28  Simon Josefsson  <jas@extundo.com>
61179
61180         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61181         functions there.  It will succeed on Windows XP, but on Windows
61182         2000 and (presumably) earlier, it will fail, and use the internal
61183         re-implementation.
61184         (use_win32_p): New function.
61185         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61186         Support AI_NUMERICSERV to disable getservbyname.
61187         (getnameinfo): New function, only supports
61188         NI_NUMERICHOST|NI_NUMERICSERV for now.
61189
61190         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61191         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61192         getnameinfo.
61193
61194 2006-06-28  Eric Blake  <ebb9@byu.net>
61195
61196         * modules/wcwidth: New file.
61197         * modules/mbchar (Depends-on): Add wcwidth.
61198         * modules/mbswidth (Depends-on): Add wcwidth.
61199         * MODULES.html.sh: Add wcwidth.
61200
61201 2006-06-28  Eric Blake  <ebb9@byu.net>
61202
61203         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61205
61206 2006-06-28  Eric Blake  <ebb9@byu.net>
61207
61208         * lib/xvasprintf.h: Fix comments.
61209
61210 2006-06-28  Eric Blake  <ebb9@byu.net>
61211
61212         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61213         * lib/mbswidth.c (wcwidth): Move from here...
61214         * lib/wcwidth.h: ...to this new file.
61215
61216 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61217
61218         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61219
61220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61221         it's obsolete.
61222         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61223
61224 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61225
61226         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61227         Autoconf 2.60 says this stuff was obsolete.
61228
61229 2006-06-28  Bruno Haible  <bruno@clisp.org>
61230
61231         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61232
61233 2006-06-28  Bruno Haible  <bruno@clisp.org>
61234
61235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61236         gt_TYPE_WCHAR_T.
61237
61238 2006-06-28  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61241         declaration for wcwidth.
61242         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61243
61244 2006-06-28  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61247         (mkdir): Define using _mkdir.
61248
61249 2006-06-28  Bruno Haible  <bruno@clisp.org>
61250
61251         * lib/getaddrinfo.h: Fix POSIX URL.
61252         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61253         _WIN32.
61254         (use_win32_p): Make static.
61255         (getaddrinfo): Reject service name if it is empty or does not consist
61256         solely of decimal digits, or if its value is > 65535.
61257         (getnameinfo): Remove useless casts.
61258
61259 2006-06-27  Simon Josefsson  <jas@extundo.com>
61260
61261         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61262         Eggert and Martin Lambers.
61263
61264 2006-06-27  Simon Josefsson  <jas@extundo.com>
61265
61266         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61267         Eggert and Martin Lambers.
61268
61269 2006-06-27  Bruno Haible  <bruno@clisp.org>
61270
61271         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61272         result to 0, not to empty.
61273         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61274
61275 2006-06-27  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61278
61279 2006-06-26  Simon Josefsson  <jas@extundo.com>
61280
61281         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61282         present.
61283
61284 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61285
61286         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61287         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61289
61290 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61291
61292         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61293
61294 2006-06-26  Bruno Haible  <bruno@clisp.org>
61295
61296         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61297
61298 2006-06-26  Bruno Haible  <bruno@clisp.org>
61299
61300         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61301
61302 2006-06-26  Bruno Haible  <bruno@clisp.org>
61303
61304         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61305         SGI C compiler in pre-C99 mode.
61306         Suggested by Mark D. Baushke and Larry Jones.
61307
61308 2006-06-26  Bruno Haible  <bruno@clisp.org>
61309
61310         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61311         WCHAR_MAX.
61312         Reported by Mark D. Baushke and Larry Jones.
61313
61314 2006-06-26  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61317         in pre-C99 mode.
61318         Suggested by Mark D. Baushke and Larry Jones.
61319
61320 2006-06-23  Simon Josefsson  <jas@extundo.com>
61321             Bruno Haible  <bruno@clisp.org>
61322
61323         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61324         Emit mostlyclean-local rule.
61325         (func_emit_tests_Makefile_am): Likewise.
61326         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61327
61328 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61329
61330         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61331
61332 2006-06-23  Bruno Haible  <bruno@clisp.org>
61333
61334         * tests/test-stdint.c: Update to match ISO C 99 Technical
61335         Corrigendum 1.
61336
61337 2006-06-23  Bruno Haible  <bruno@clisp.org>
61338
61339         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61340
61341 2006-06-23  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/stdint_.h: Treat IRIX like OpenBSD.
61344
61345 2006-06-23  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61348         ISO C 99 Technical Corrigendum 1.
61349
61350 2006-06-22  Simon Josefsson  <jas@extundo.com>
61351
61352         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61353         MinGW.
61354
61355 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61358         needed.  Some compiler complained about some of them.  Problem reported
61359         by Larry Jones in
61360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61361
61362 2006-06-21  Simon Josefsson  <jas@extundo.com>
61363
61364         * tests/test-getaddrinfo.c: New file.
61365
61366         * modules/getaddrinfo-tests: New file.
61367
61368         * MODULES.html.sh: Add inet_pton.
61369
61370         * modules/inet_pton: New file.
61371
61372 2006-06-21  Simon Josefsson  <jas@extundo.com>
61373
61374         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61375         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61376         of using the (limited) gnulib implementation on Windows XP.
61377
61378         * m4/inet_pton.m4: New file.
61379
61380 2006-06-21  Simon Josefsson  <jas@extundo.com>
61381
61382         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61383         variable.
61384
61385         * lib/socket_.h: Don't define WINVER.
61386
61387         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61388         slightly modified to work in gnulib.
61389
61390 2006-06-21  Simon Josefsson  <jas@extundo.com>
61391
61392         * doc/gnulib.texi (Windows sockets): Add.
61393
61394 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * lib/read-file.c (fread_file): Start with buffer allocation of
61397         0 bytes rather than 1 byte; this simplifies the code.
61398         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61399         code to free buffer and save/restore errno.
61400         (internal_read_file): Remove unused local.
61401
61402 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61403
61404         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61405         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61406         Problem reported by Denis Excoffier in
61407         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61408
61409 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61410
61411         * modules/sys_socket, modules/socklen: Include sys/types since
61412         FreeBSD 4.x's sys/socket.h needs it.
61413
61414 2006-06-19  Simon Josefsson  <jas@extundo.com>
61415
61416         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61417
61418 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61421
61422 2006-06-19  Bruno Haible  <bruno@clisp.org>
61423
61424         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61425         and FULL_PATH_INTTYPES_H in angle brackets.
61426         Reported by Mark D. Baushke <mdb@gnu.org>.
61427
61428 2006-06-17  Eric Blake  <ebb9@byu.net>
61429
61430         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61431         errno.
61432
61433 2006-06-17  Bruno Haible  <bruno@clisp.org>
61434
61435         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61436         <sys/inttypes.h>.
61437
61438 2006-06-17  Bruno Haible  <bruno@clisp.org>
61439
61440         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61441         whether errno is declared. Assume <errno.h> declares errno.
61442
61443 2006-06-17  Bruno Haible  <bruno@clisp.org>
61444
61445         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61446
61447 2006-06-17  Bruno Haible  <bruno@clisp.org>
61448
61449         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61450         problem on Solaris 2.5.1.
61451
61452 2006-06-16  Eric Blake  <ebb9@byu.net>
61453
61454         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61455         * lib/unicodeio.c [!defined errno]: Likewise.
61456         * lib/strtol.c [!defined errno]: Likewise.
61457         * lib/strtod.c [!defined errno]: Likewise.
61458
61459 2006-06-15  Eric Blake  <ebb9@byu.net>
61460
61461         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61462
61463 2006-06-15  Eric Blake  <ebb9@byu.net>
61464
61465         * config/srclist.txt (ssize_t.m4): Lose sync.
61466
61467 2006-06-15  Bruno Haible  <bruno@clisp.org>
61468
61469         * modules/stdint (Files): Include m4/full-header-path.m4,
61470         m4/size_max.m4, m4/wchar_t.m4.
61471         (Makefile.am): Many more substitutions.
61472         * modules/stdint-tests: New file.
61473         * tests/test-stdint.c: New file.
61474
61475 2006-06-15  Bruno Haible  <bruno@clisp.org>
61476
61477         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61478         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61479         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61480         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61481         gl_CHECK_TYPE_SAME): New macros.
61482
61483 2006-06-15  Bruno Haible  <bruno@clisp.org>
61484
61485         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61486
61487 2006-06-15  Bruno Haible  <bruno@clisp.org>
61488
61489         * lib/stdint_.h: Rewritten to be fully auto-configured.
61490         Fixes bug on HP-UX/IA64.
61491
61492 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * lib/getdate.y (__attribute__): Don't define if already defined.
61495         Problem reported by Larry Jones.
61496         * lib/utimens.c (__attribute__): Likewise.
61497
61498 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61501         reported by Andreas Schwab.
61502
61503 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61504             Bruno Haible  <bruno@clisp.org>
61505
61506         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61507         check for the declaration of strnlen and a run test that exposes the
61508         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61509         rpl_strndup.
61510
61511 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61512             Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61515
61516 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61517
61518         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61519         compile test, for Tru64 4.0D.
61520
61521 2006-05-28  Karl Berry  <karl@gnu.org>
61522
61523         * config/srclist.txt (printf-args.c): lose sync.
61524
61525 2006-05-26  Martin Lambers  <marlam@marlam.de>
61526
61527         * lib/getpass.c: Updates the test for the native W32 API, and adds
61528         missing includes, thus fixing compilation warnings.
61529
61530 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61531
61532         * lib/exclude.c (exclude_fnmatch): New function.
61533         (excluded_file_name): Call exclude_fnmatch.
61534         * lib/exclude.h (excluded_file_name): New prototype
61535
61536 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * lib/tempname.c (small_open, large_open): New macros.
61539         (__open, __open64) [!_LIBC]: Remove.
61540         (__gen_tempname): Use small_open and large_open instead of __open
61541         and __open64.  This fixes a portability bug on HP-UX 11.11i
61542         reported by Simon Wing-Tang in
61543         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61544
61545 2006-05-24  Bruno Haible  <bruno@clisp.org>
61546
61547         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61548         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61549         Reported by Thorsten Maerz <torte@netztorte.de> via
61550         Aaron Stone <aaron@serendipity.cx>.
61551
61552 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61555         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61556         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61557         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61558         not really conditional on the cache.
61559         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61560
61561 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61562
61563         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61564         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61565         (my_usleep): Don't mishandle maximum value.
61566
61567 2006-05-19  Jim Meyering  <jim@meyering.net>
61568
61569         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61570
61571 2006-05-17  Bruno Haible  <bruno@clisp.org>
61572
61573         Cygwin portability.
61574         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61575
61576 2006-05-17  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/stdint_.h: Fix recognition of Cygwin.
61579
61580 2006-05-15  Bruno Haible  <bruno@clisp.org>
61581
61582         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61583         on libtool patch by Ralf Wildenhues.
61584
61585 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61588         test for C99 conformance; (bool) 0.5 is an integer constant
61589         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61590         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61591
61592 2006-05-11  Simon Josefsson  <jas@extundo.com>
61593
61594         * m4/xvasprintf.m4: Fix obvious typo.
61595
61596 2006-05-11  Jim Meyering  <jim@meyering.net>
61597
61598         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61599         James Lemley.
61600
61601 2006-05-10  Simon Josefsson  <jas@extundo.com>
61602
61603         * lib/md4.c: Typo fix, update copyright years.
61604         (K1, K2): Don't use L because it turn computations into 64-bit on
61605         64-bit platforms.
61606
61607 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61610         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61611         unwanted sign propagation, e.g., on hosts with 64-bit int.
61612         There still are some problems with reeelly weird theoretical hosts
61613         (e.g., 33-bit int) but it's not worth worrying about now.
61614         * lib/sha1.c (rol): Likewise.
61615         (K1, K2, K3, K4): Remove unnecessary L suffix.
61616
61617 2006-05-10  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/des.c: Cast to avoid warnings.
61620
61621 2006-05-09  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61624         (Depends-on): Depend also on xsize, stdarg.
61625         (configure.ac): Add gl_XVASPRINTF.
61626
61627 2006-05-09  Bruno Haible  <bruno@clisp.org>
61628
61629         * m4/xvasprintf.m4: New file.
61630
61631 2006-05-09  Bruno Haible  <bruno@clisp.org>
61632
61633         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61634         (EOVERFLOW): Define fallback value.
61635         (xstrcat): New function.
61636         (xvasprintf): Recognize the special case of a string concatenation.
61637
61638 2006-05-08  Eric Blake  <ebb9@byu.net>
61639
61640         * gnulib-tool (func_version): Base copyright year on CVS date.
61641         (func_emit_copyright_notice): New function.
61642         (func_emit_lib_Makefile_am): Use it.
61643         (func_emit_tests_Makefile_am): Likewise.
61644         (func_import): Likewise.
61645
61646 2006-05-08  Bruno Haible  <bruno@clisp.org>
61647
61648         * modules/stdarg: New file.
61649         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61650
61651 2006-05-08  Bruno Haible  <bruno@clisp.org>
61652
61653         * m4/stdarg.m4: New file, from GNU gettext.
61654
61655 2006-05-08  Bruno Haible  <bruno@clisp.org>
61656
61657         * config/srclist.txt (build-aux/config.rpath): different from latest
61658         release.
61659
61660 2006-05-08  Bruno Haible  <bruno@clisp.org>
61661
61662         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61663
61664 2006-05-05  Jim Meyering  <jim@meyering.net>
61665
61666         * m4/warning.m4: New file, derived from bison's file by the same name.
61667
61668 2006-05-03  Bruno Haible  <bruno@clisp.org>
61669
61670         * lib/stdint_.h: Shorter URL.
61671         * lib/inttypes.h: Likewise.
61672
61673 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61676
61677 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61678
61679         * lib/verify.h: Document the internals better.  Most of this change
61680         was written by Bruno Haible.
61681
61682 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * doc/verify.texi: New file, partly based on a proposal by
61685         Bruno Haible.
61686
61687 2006-05-02  Bruno Haible  <bruno@clisp.org>
61688
61689         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61690         test from here...
61691         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61692
61693 2006-04-29  Bruno Haible  <bruno@clisp.org>
61694
61695         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61696         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61697
61698 2006-04-29  Bruno Haible  <bruno@clisp.org>
61699
61700         * gnulib-tool: Make --update option actually work.
61701
61702 2006-04-29  Bruno Haible  <bruno@clisp.org>
61703
61704         * doc/gcd.texi: New file.
61705         * doc/gnulib.texi: Include it.
61706
61707 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * lib/getdate.y (get_date): When adding relative date, start with the
61710         initial time, not with the result of the first mktime call.
61711
61712 2006-04-25  Bruno Haible  <bruno@clisp.org>
61713
61714         * gnulib-tool (func_import): Output the include directives in three
61715         blocks, sorted separately.
61716         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61717
61718 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61719
61720         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61721         to define main with arguments, for C++.  Reported by Eric Blake.
61722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61723         Prefer 'int main ()' to 'int main (void)', for C++.
61724         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61726         for 'main', for C99 and C++.
61727
61728 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61729
61730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61731         Don't assume that exit status -1 is valid.
61732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61733         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61734         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61735         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61736         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61738         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61739         functions can be used without declaring them, or that you can
61740         exit with status -1.
61741         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61742
61743 2006-04-24  Karl Berry  <karl@gnu.org>
61744
61745         * config/srclist.txt (longdouble.m4): sync lost.
61746
61747 2006-04-24  Eric Blake  <ebb9@byu.net>
61748
61749         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61750
61751 2006-04-24  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61754         poll() implementation in AIX.
61755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61756
61757 2006-04-24  Bruno Haible  <bruno@clisp.org>
61758
61759         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61760         assigned exactly once.
61761
61762 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61763             Bruno Haible  <bruno@clisp.org>
61764
61765         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61766         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61767         for AM_CPPFLAGS.
61768
61769 2006-04-23  Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/copy-file: Depend on unistd.
61772         * modules/execute: Likewise.
61773         * modules/fatal-signal: Likewise.
61774         * modules/findprog: Likewise.
61775         * modules/mkdtemp : Likewise.
61776         * modules/pipe: Likewise.
61777         * modules/wait-process: Likewise.
61778
61779 2006-04-23  Bruno Haible  <bruno@clisp.org>
61780
61781         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61782         condition was already detected.
61783         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61784
61785 2006-04-23  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/copy-file.c: Include <unistd.h> unconditionally.
61788         * lib/execute.c: Likewise.
61789         * lib/fatal-signal.c: Likewise.
61790         * lib/findprog.c: Likewise.
61791         * lib/mkdtemp.c: Likewise.
61792         * lib/pipe.h: Likewise.
61793         * lib/pipe.c: Likewise.
61794         * lib/wait-process.h: Likewise.
61795
61796 2006-04-23  Bruno Haible  <bruno@clisp.org>
61797
61798         * gnulib-tool (func_usage): Fix --import description. Document
61799         --update.
61800         (func_import): Create temporary file in a temporary directory, if
61801         --dry-run is specified. Silence errors from 'grep' when there are no
61802         m4 files in $m4dir.
61803         (func_create_testdir): Silence errors from 'grep' when there are no
61804         m4 files in $m4dir.
61805         Reported by Karl Berry <karl@freefriends.org>.
61806
61807 2006-04-20  Bruno Haible  <bruno@clisp.org>
61808
61809         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61810         one argument, so that the code will be portable to Autoconf 2.60.
61811         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61812         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61813         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61814
61815 2006-04-19  Derek Price  <derek@ximbiot.com>
61816             Eric Blake  <ebb9@byu.net>
61817
61818         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61819         rather than "/full/path.h".  Update comment to match.  Shorten &
61820         generalize m4_translit call via AS_TR_CPP.
61821
61822 2006-04-19  Derek Price  <derek@ximbiot.com>
61823             Eric Blake  <ebb9@byu.net>
61824
61825         * lib/inttypes.h: Correct grammar in comment.
61826
61827 2006-04-18  Derek Price  <derek@ximbiot.com>
61828             Paul Eggert  <eggert@cs.ucla.edu>
61829
61830         * modules/inttypes: New file.
61831         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61832
61833 2006-04-18  Derek Price  <derek@ximbiot.com>
61834             Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61837         New files.
61838
61839 2006-04-18  Derek Price  <derek@ximbiot.com>
61840             Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * lib/inttypes.h: New file.
61843         * lib/strtoimax.c: Assume <inttypes.h>.
61844
61845 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61848         isn't mounted.  Problem reported by Kir Kolyshkin.
61849
61850 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61851
61852         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61853         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61854         Derek R. Price.
61855         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61856         implementation.
61857
61858 2006-04-12  Eric Blake  <ebb9@byu.net>
61859
61860         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61861         is now done automatically by the corresponding Autoconf macro.
61862
61863 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61866         time_r.h.
61867
61868 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61869
61870         Merge regex changes from libc, removing some of our
61871         POSIX-conformance changes that were rejected and redoing them in a
61872         less-intrusive way.
61873
61874         * lib/regcomp.c (re_compile_internal, init_dfa):
61875         Length arg is now size_t, not Idx.  All uses changed.
61876         (peek_token): Forward decl now says internal_function.
61877         (__re_error_msgid, __re_error_msgid_idx):
61878         Now static rather than extern with attribute_hidden.
61879         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61880         For some reason libc prefers K&R style defns for external functions.
61881         (regerror) [!defined _LIBC]: Likewise.
61882         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61883         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61884         (build_range_exp, build_collating_symbol):
61885         Use K&R-style defn.
61886         (re_compile_fastmap): Use '\0' to memset, not 0.
61887         (utf8_sb_map): Make the calculations more obvious.
61888         (init_dfa, parse_bracket_exp, build_charclass_op):
61889         Call calloc and cast result, as glibc does.
61890         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61891         (build_range_exp, build_collating_symbol):
61892         Now internal functions.
61893
61894         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61895
61896         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61897         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61898         Don't depend on VMS; depend on __VMS instead, for POSIX
61899         namespace cleanness.
61900         (regoff_t): Define to ssize_t, not long int.
61901
61902         Remove the REG_ macros named below.  Instead, make the old names
61903         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61904         __USE_GNU_REGEX.
61905         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61906         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61907         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61908         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61909         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61910         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61911         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61912         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61913         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61914         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61915         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61916         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61917         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61918         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61919         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61920         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61921         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61922         (REG_NREGS):
61923         Remove.  All uses replaced by the old RE_* names.
61924         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61925         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61926         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61927         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61928         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61929         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61930         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61931         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61932         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61933         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61934         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61935         Don't bother having these macros be independent of each others'
61936         values, since they no longer exist in the POSIX name space.
61937
61938         Rename the following member names back to their old names,
61939         unless !__USE_GNU_REGEX.  All uses changed back.
61940         (buffer): Renamed from re_buffer.
61941         (allocated): Renamed from re_allocated.
61942         (used): Renamed from re_used.
61943         (syntax): Renamed from re_syntax.
61944         (fastmap): Renamed from re_fastmap.
61945         (translate): Renamed from re_translate.
61946         (can_be_null): Renamed from re_can_be_null.
61947         (regs_allocated): Renamed from re_regs_allocated.
61948         (fastmap_accurate): Renamed from re_fastmap_accurate.
61949         (no_sub): Renamed from re_no_sub.
61950         (not_bol): Renamed from re_not_bol.
61951         (not_eol): Renamed from re_not_eol.
61952         (newline_anchor): Renamed from re_newline_anchor.
61953         (num_regs): Renamed from rm_num_regs.
61954         (start): Renamed from rm_start.
61955         (end): Renamed from rm_end.
61956
61957         (free_state): Move up a bit.
61958
61959         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61960         #define to be empty.
61961         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61962         when that is what is intended.
61963         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61964         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61965         (MAX): New macro.
61966         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61967         All uses changed back to re_malloc, etc.  It's now the caller's
61968         responsibility to check for overflow; all callers changed.
61969         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61970         (re_x2nrealloc): Remove.
61971         (free_state): Remove decl.
61972
61973         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61974         (re_set_registers, re_exec):
61975         Use K&R-style defn.
61976
61977         2006-01-31  Roland McGrath  <roland@redhat.com>
61978
61979         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61980         Reported by Mike Frysinger <vapier@gentoo.org>.
61981
61982         2006-01-15  Andreas Jaeger  <aj@suse.de>
61983
61984         [BZ #1950]
61985         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61986         build_wcs_upper_buffer change.
61987         (build_wcs_upper_buffer): Change return type.
61988
61989         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61990
61991         * lib/regex_internal.h: Include <stdint.h> if available.
61992
61993         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61994
61995         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61996
61997         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61998
61999         * lib/regcomp.c: Adjust for changed secondary hash function.
62000
62001         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62002
62003         * lib/regex.h: Pretty printing.
62004         Clean up namespace a bit.
62005
62006         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62007
62008         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62009         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62010
62011         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62012                     Ulrich Drepper  <drepper@redhat.com>
62013
62014         [BZ #1302]
62015         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62016         changed.
62017         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62018
62019         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62020
62021         [BZ #281]
62022         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62023         * lib/regcomp.c: Remove unnecessary uses of
62024         unsigned RE_TRANSLATE_TYPE.
62025         * lib/regex_internal.h: Likewise.
62026         * lib/regex_internal.c: Likewise.
62027         * lib/regexec.c: Likewise.
62028         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62029
62030         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62031
62032         * lib/regexec.c (find_recover_state): Remove unnecessary
62033         initialization.
62034         (transit_state_bkref): Make DFA a const pointer.
62035         (get_subexp): Likewise.
62036         (check_arrival): Likewise.
62037         (update_cur_sifted_state): Likewise.
62038         (re_search_internal): Likewise.
62039         (prune_impossible_nodes): Likewise.
62040         (acquire_init_state_context): Likewise.
62041         (proceed_next_node): Likewise.
62042         (set_regs): Likewise.
62043         (free_fail_stack_return): Likewise.
62044         (check_arrival_expand_ecl): Mark DFA parameter as const.
62045         (check_arrival_expand_ecl_sub): Likewise.
62046         (check_subexp_limits): Likewise.
62047         (sub_epsilon_src_nodes):  Likewise.
62048         (add_epsilon_src_nodes):  Likewise.
62049         (merge_state_array): Likewise.
62050         (update_regs): Likewise.
62051         (build_trtable): Likewise.
62052         (sift_states_backward): Mark MCTX parameter as const.
62053         (build_sifted_states): Likewise.
62054         (update_cur_sifted_state): Likewise.
62055         (sift_states_mkref): Likewise.
62056         (check_arrival_expand_ecl): Mark eclosure as const.
62057         (check_dst_limits_calc_pos_1): Likewise.
62058         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62059         pointer.
62060
62061         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62062
62063         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62064         (transit_state_sb): Likewise.
62065         (transit_state_mb): Likewise.
62066         (sift_states_iter_mb): Likewise.
62067         (check_arrival_add_next_nodes): Likewise.
62068         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62069         [_LIBC] (re_search_2_stub): Use mempcpy.
62070
62071         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62072         mbrtowc for very simple UTF-8 case.
62073
62074         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62075         a pointer-to-const.
62076         (re_acquire_state_context): Likewise.
62077         * lib/regex_internal.h: Adjust prototypes.
62078
62079         * lib/regex.c: Prevent using C++ compilers.
62080
62081         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62082         (re_acquire_state_context): Likewise.
62083
62084 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62085
62086         * modules/regex (Depends-on): Add ssize_t.
62087
62088 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62091         translation table.
62092
62093 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62096
62097 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62098             Bruno Haible  <bruno@clisp.org>
62099
62100         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62101         <sys/types.h> and <inttypes.h>.
62102
62103 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62104
62105         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62106         `__error_t_defined', so argp.h will not typedef the former.
62107
62108 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62111         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62112         glibc names.  Even if glibc is changed to conform to POSIX, the
62113         traditional names will be available anyway, since regex depends on
62114         the extensions module.  Also, fix a longstanding typo in the
62115         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62116         reported by Emanuele Giaquinta.  Also, change sense of cached
62117         variable, so that the message makes sense.
62118
62119 2006-03-24  Simon Josefsson  <jas@extundo.com>
62120
62121         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62122         including some doc fixes.
62123         (base64_encode_alloc): Fix +1 bug on allocation failures.
62124
62125 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62126
62127         * lib/base64.c (base64_encode): Do not read past end of array with
62128         unsanitized input on systems with CHAR_BIT > 8.
62129
62130 2006-03-24  Eric Blake  <ebb9@byu.net>
62131
62132         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62133
62134 2006-03-22  Karl Berry  <karl@gnu.org>
62135
62136         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62137         * config/srclistvars.sh (COREUTILS): new var.
62138
62139 2006-03-17  Jim Meyering  <jim@meyering.net>
62140
62141         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62142         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62143
62144 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62147         no longer needs it.  Instead, check that regoff_t is as least
62148         as wide as ptrdiff_t.
62149
62150         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62151         so that our regex.h stays compatible with the installed regex.
62152         This is helpful for installers who configure --without-included-regex.
62153         Problem reported by Emanuele Giaquinta.
62154
62155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62158         Typedef to long int, not to off_, as POSIX will likely change
62159         in that direction.
62160
62161 2006-03-15  Eric Blake  <ebb9@byu.net>
62162
62163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62164
62165 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62166
62167         * lib/argp-help.c (validate_uparams): Fix typo
62168         * lib/argp-parse.c (argp_default_options): Consistently begin help
62169         messages with a lowercase letter.
62170
62171 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62172
62173         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62174         overrun buffers and shouldn't be used (much as gets shouldn't be
62175         used).
62176         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62177
62178 2006-03-08  Simon Josefsson  <jas@extundo.com>
62179
62180         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62181         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62182
62183 2006-03-08  Simon Josefsson  <jas@extundo.com>
62184
62185         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62186         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62187
62188 2006-03-08  Simon Josefsson  <jas@extundo.com>
62189
62190         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62191         signal that configure disabled the device.
62192
62193 2006-03-08  Simon Josefsson  <jas@extundo.com>
62194
62195         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62196         languages.
62197
62198 2006-03-07  Simon Josefsson  <jas@extundo.com>
62199
62200         * modules/getopt (Depends-on): Add unistd.
62201
62202         * modules/unistd: New file.
62203
62204 2006-03-07  Simon Josefsson  <jas@extundo.com>
62205
62206         * modules/gc-random: New file.
62207
62208 2006-03-07  Simon Josefsson  <jas@extundo.com>
62209
62210         * m4/unistd_h.m4: New file.
62211
62212 2006-03-07  Simon Josefsson  <jas@extundo.com>
62213
62214         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62215         test to be side-effect free by storing the result in the cache
62216         variable gl_cv_lib_readline, and moving the assignment of
62217         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62218         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62219
62220 2006-03-07  Simon Josefsson  <jas@extundo.com>
62221
62222         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62223         error on missing devices (the functions will return an error).
62224
62225         * m4/gc.m4: Move random stuff to gc-random.m4
62226
62227 2006-03-07  Simon Josefsson  <jas@extundo.com>
62228
62229         * lib/unistd_.h: New file.
62230
62231 2006-03-07  Simon Josefsson  <jas@extundo.com>
62232
62233         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62234
62235 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62238         Problem reported by Juan Manuel Guerrero.
62239
62240 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62243         the unistd module.
62244         * lib/getlogin_r.c: Likewise.
62245         * lib/getlogin_r.h: Likewise.
62246         * lib/glob.c: Likewise.
62247         * lib/pagealign_alloc.c: Likewise.
62248         * lib/unistd_.h: Remove; no longer needed.
62249
62250 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62253         Add unistd.
62254         * modules/c-stack (Depends-on): Add unistd.
62255         * modules/getlogin_r: Likewise.
62256         * modules/glob: Likewise.
62257         * modules/pagealign_alloc: Likewise.
62258         * modules/unistd (Files): Remove lib/unistd_.h.
62259         (EXTRA_DIST): Remove.
62260         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62261         need unistd_.h.
62262         (MOSTLYCLEANFILES): Remove unistd.h-t.
62263
62264 2006-03-03  Simon Josefsson  <jas@extundo.com>
62265
62266         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62267
62268 2006-03-03  Simon Josefsson  <jas@extundo.com>
62269
62270         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62271         libidn and bison.
62272
62273 2006-03-03  Simon Josefsson  <jas@extundo.com>
62274
62275         * build-aux/maint.mk: Add indent target.
62276
62277 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62278
62279         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62280         our replacement poll.h in any case, to avoid a differing
62281         declaration from a system header.  Seen on AIX.
62282
62283 2006-03-01  Simon Josefsson  <jas@extundo.com>
62284
62285         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62286         <kasal@ucw.cz>.
62287
62288 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * modules/gettime (Depends-on): Add extensions module.
62291         * modules/nanosleep (Depends-on): Likewise.
62292         * modules/settime (Depends-on): Likewise.
62293
62294 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62295
62296         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62297         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62298         pedantically.
62299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62300         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62301
62302         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62303         not "==".  Reported by Ralf Wildenhues.
62304
62305 2006-03-01  Karl Berry  <karl@gnu.org>
62306
62307         * doc/Copyright/request-*: new files, synced from gnuorg.
62308
62309 2006-03-01  Karl Berry  <karl@gnu.org>
62310
62311         * config/srclist.txt (Copyright/*): new entries.
62312
62313 2006-02-28  Simon Josefsson  <jas@extundo.com>
62314
62315         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62316
62317 2006-02-27  Simon Josefsson  <jas@extundo.com>
62318
62319         * lib/base64.h: Indent #define's.  From Jim Meyering
62320         <jim@meyering.net>.
62321
62322 2006-02-27  Jim Meyering  <jim@meyering.net>
62323
62324         Revert the change of 2006-02-24, so these files can continue
62325         to be sync'd from gettext.
62326         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62327         of `config.h'.
62328
62329 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * modules/intprops: New file.
62332         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62333         Add intprops.
62334         * modules/getloadavg (Files): Remove lib/intprops.h.
62335         (Depends-on): Add intprops.
62336         * modules/human: Likewise.
62337         * modules/inttostr: Likewise.
62338         * modules/openat: Likewise.
62339         * modules/sig2str: Likewise.
62340         * modules/userspec: Likewise.
62341         * modules/utimecmp: Likewise.
62342         * modules/xnanosleep: Likewise.
62343         * modules/xstrtol: Likewise.
62344
62345 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62346
62347         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62348         * modules/lock-tests (TESTS): Use $(EXEEXT).
62349         * modules/tls-tests: Likewise.
62350         * modules/argp-tests: Likewise.
62351         (check_PROGRAMS): New var, replacing...
62352         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62353
62354 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62355
62356         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62357         `config.h'.
62358
62359 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62362
62363 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62364
62365         Sync from coreutils.
62366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62367         gl_CHDIR_SAFER.
62368
62369 2006-02-22  Jim Meyering  <jim@meyering.net>
62370
62371         Sync from coreutils.
62372         * m4/chdir-safer.m4: New file.
62373
62374 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62375
62376         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62377         AT_FDCWD exceeds INT_MAX.
62378         * lib/openat.h (AT_FDCWD): Likewise.
62379
62380 2006-02-17  Eric Blake  <address@hidden>
62381
62382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62383
62384 2006-02-16  Simon Josefsson  <jas@extundo.com>
62385
62386         * modules/getaddrinfo (Depends-on): Add sys_socket.
62387
62388 2006-02-15  Simon Josefsson  <jas@extundo.com>
62389
62390         * build-aux/maint.mk: Add dsyntax-check rule.
62391
62392 2006-02-15  Eric Blake  <ebb9@byu.net>
62393
62394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62395         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62396         'present but cannot compile' warnings on cygwin.
62397         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62398         use ws2tcpip.h if sys/socket.h works.
62399         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62400         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62401
62402 2006-02-14  Simon Josefsson  <jas@extundo.com>
62403
62404         * modules/maintainer-makefile (Files): Rename.
62405
62406         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62407         and (the local) Makefile.cfg to maint-cfg.mk.
62408
62409         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62410         to the latter.
62411
62412         * modules/maintainer-makefile: New module.
62413
62414         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62415         severaly stripped to make it possible to build it up from scratch
62416         with reliable tests.
62417
62418         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62419         fixes to permit overriding the default actions when configure and
62420         makefile are not available.
62421
62422 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         Sync from coreutils.
62425         * modules/lstat (Depends-on): Don't depend on xalloc.
62426         (License): Change from GPL to LGPL, since this is now simply a
62427         replacement for a libc function.
62428
62429 2006-02-14  Jim Meyering  <jim@meyering.net>
62430
62431         Sync from coreutils.
62432
62433         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62434         failure on deficient systems, and simplify gnulib lgpl dependencies.
62435         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62436         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62437
62438         * lib/xalloc-die.c: Remove unused definition of N_.
62439
62440 2006-02-14  Jim Meyering  <jim@meyering.net>
62441
62442         Sync from coreutils.
62443         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62444         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62445         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62446         double-quote uses of that variable, to accommodate the rare case in
62447         which getmntent is available in none of the libraries checked.  This
62448         happens at least on FreeBSD 5.0.
62449
62450 2006-02-13  Simon Josefsson  <jas@extundo.com>
62451
62452         * gnulib-tool (Usage): Fix --import, from
62453         karl@freefriends.org (Karl Berry).
62454
62455 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62456
62457         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62458
62459 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62460
62461         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62462         "autoupdate" on 2005-12-12.
62463
62464 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62465
62466         * modules/closeout (Depends-on): Remove atexit.
62467
62468 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62469
62470         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62471         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62472
62473 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62476         __EXTENSIONS__ if this causes compilation to fail.  Problem
62477         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62478         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62479
62480 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62481
62482         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62483         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62485         All uses changed.
62486
62487 2006-01-26  Simon Josefsson  <jas@extundo.com>
62488
62489         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62490         prototype is visible on mingw32.
62491
62492         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62493         for mingw32.
62494
62495         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62496         mingw32).
62497
62498 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62501         attempt to open for write; this always fails, at least on POSIX
62502         hosts.  This reinstates the 2006-01-09 change, which was
62503         inadvertently removed.
62504
62505 2006-01-26  Bruno Haible  <bruno@clisp.org>
62506
62507         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62508         Reported by Paul Eggert.
62509
62510 2006-01-26  Bruno Haible  <bruno@clisp.org>
62511             Paul Eggert  <eggert@cs.ucla.edu>
62512
62513         * lib/stdbool_.h (_Bool)
62514         [(! (defined __cplusplus || defined __BEOS__)
62515           && !defined __GNUC__
62516           && !(defined __HP_cc || defined __xlc__
62517                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62518                || defined __sgi))]:
62519         #define to signed char in these cases too; this simplifies
62520         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62521         etc., separately) and makes it more conservative.
62522
62523 2006-01-25  Simon Josefsson  <jas@extundo.com>
62524
62525         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62526         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62527         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62528
62529 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62530
62531         * lib/argp-namefrob.h: Bugfix. Remove stray #
62532
62533 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62536         so that we test the test.
62537         Check for yet another HP-UX cc bug involving *bool |= bool.
62538
62539 2006-01-25  Karl Berry  <karl@gnu.org>
62540
62541         * config/srclist.txt (vasnprintf.c): sync lost.
62542
62543 2006-01-25  Jim Meyering  <jim@meyering.net>
62544
62545         Sync from the stable (b5) branch of coreutils:
62546
62547         * lib/fts.c (fts_children): Don't let close() clobber errno from
62548         failed fchdir().
62549
62550         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62551         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62552         a dangling symlink.  That can also happen at least for ELOOP.
62553         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62554         FYI, this bug predates the inclusion of fts.c in coreutils.
62555
62556         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62557         in their own block, so pre-c99 compilers don't object.
62558
62559         Avoid the double-free (first in fts_read, second in fts_close) that
62560         would occur when an `active' directory is made inaccessible (e.g.,
62561         via chmod a-x) during a traversal.
62562         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62563         before returning.  Reproduce this failure by
62564         mkdir -p a/b; cd a; chmod a-x . b
62565         Reported by Stavros Passas.
62566
62567 2006-01-25  Jim Meyering  <jim@meyering.net>
62568
62569         * lib/fileblocks.c: Remove more useless parentheses.
62570         * lib/readutmp.h: Likewise.
62571
62572 2006-01-25  Bruno Haible  <bruno@clisp.org>
62573
62574         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62575         warnings.
62576         Reported by Paul Eggert.
62577
62578 2006-01-25  Bruno Haible  <bruno@clisp.org>
62579
62580         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62581         rid of a trap command. For Solaris sh.
62582         Reported by Mark D. Baushke <mdb@gnu.org>.
62583
62584 2006-01-24  Simon Josefsson  <jas@extundo.com>
62585
62586         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62587         Bruno.
62588
62589 2006-01-24  Karl Berry  <karl@gnu.org>
62590
62591         * config/srclist.txt (argp-namefrob.h): sync lost.
62592
62593 2006-01-24  Jim Meyering  <jim@meyering.net>
62594
62595         * modules/openat (Files): Add lib/intprops.h.
62596         From Mark D. Baushke.
62597
62598 2006-01-24  Jim Meyering  <jim@meyering.net>
62599
62600         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62601         Reported by Mark D. Baushke.
62602
62603 2006-01-24  Jim Meyering  <jim@meyering.net>
62604
62605         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62606
62607 2006-01-24  Bruno Haible  <bruno@clisp.org>
62608
62609         * modules/strnlen (Maintainer): Change from glibc to all.
62610
62611 2006-01-24  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62614         Patch by Paul Eggert.
62615
62616 2006-01-24  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62619         already has it.
62620         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62621         2005-11-26.
62622
62623         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62624         'signed char' to avoid problems with the built-in _Bool type.
62625         Reported by Paul Eggert on 2005-11-26.
62626
62627 2006-01-24  Bruno Haible  <bruno@clisp.org>
62628
62629         * gnulib-tool (func_import): Avoid constructing complicated sed
62630         expressions inside backquote.
62631         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62632
62633 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62634
62635         These changes imported from libc.
62636         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62637         test and two separate function calls.
62638         * lib/strndup.c (__strndup): Add libc_hidden_def.
62639
62640 2006-01-23  Simon Josefsson  <jas@extundo.com>
62641
62642         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62643         Remove the test_*_SOURCES variable: automake infers it by default.
62644         * modules/tls-tests: Likewise.
62645
62646 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         Work around porting bugs reported by Dieter in
62649         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62650         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62651         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62652         Include "getopt.h" first, to check interface.
62653         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62654         !HAVE_DECL_GETENV.
62655         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62656         (__strndup): Revert to K&R-style function dfns, the glibc style.
62657         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62658         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62659         Include strnlen.h first, to get prototype properly.
62660         (strnlen): Renamed from __strnlen.
62661         Remove weak alias.
62662
62663 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62664
62665         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62666
62667 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62668
62669         * config/srclist.txt: Adjust to reflect glibc reorganization.
62670         This affects only comments.
62671
62672 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62673
62674          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62675          Reported by Bruce Korb <bkorb@gnu.org>.
62676
62677 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62678
62679         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62680         to pacify gcc -Wswitch-default.
62681
62682 2006-01-22  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62685         temporary buffer for sprintf, take into account the precision also
62686         for 'd', 'i', 'u', 'o', 'x', 'X'.
62687
62688 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62689
62690         * modules/argp-tests: New module
62691         * tests/test-argp.c: New file
62692         * tests/test-argp-2.sh: New file
62693
62694 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62695
62696         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62697         (__argp_base_name): Removed
62698         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62699         typo.
62700         (__argp_base_name): Provide macro definition or extern declaration
62701         depending on the configuration
62702
62703 2006-01-20  Simon Josefsson  <jas@extundo.com>
62704
62705         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62706
62707 2006-01-20  Simon Josefsson  <jas@extundo.com>
62708
62709         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62710
62711 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62714         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62715         Suggested by Bruno Haible.
62716
62717 2006-01-20  Karl Berry  <karl@gnu.org>
62718
62719         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62720         until changes propagate, I guess.
62721
62722 2006-01-19  Simon Josefsson  <jas@extundo.com>
62723
62724         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62725
62726 2006-01-19  Simon Josefsson  <jas@extundo.com>
62727
62728         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62729
62730 2006-01-19  Simon Josefsson  <jas@extundo.com>
62731
62732         * gnulib-tool: Set check_PROGRAMS.
62733
62734         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62735         modules/des-tests, modules/gc-arcfour-tests,
62736         modules/gc-arctwo-tests, modules/gc-des-tests,
62737         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62738         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62739         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62740         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62741         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62742         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62743         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62744         test_*_SOURCES.
62745
62746 2006-01-18  Simon Josefsson  <jas@extundo.com>
62747
62748         * modules/socklen (Depends-on): Depend on sys_socket.
62749
62750 2006-01-18  Simon Josefsson  <jas@extundo.com>
62751
62752         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62753         modules/des-tests, modules/gc-arcfour-tests,
62754         modules/gc-arctwo-tests, modules/gc-des-tests,
62755         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62756         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62757         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62758         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62759         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62760         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62761         $(EXEEXT) to automake TESTS variable, for mingw32.
62762
62763 2006-01-17  Simon Josefsson  <jas@extundo.com>
62764
62765         * modules/socklen (Include): Need sys/socket.h.
62766
62767 2006-01-17  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/ssize_t (Include): Add <sys/types.h>.
62770
62771 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62772
62773         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62774         it's not portable and it doesn't work with cross-compiles.
62775         Problem reported by Bruno Haible.  Fix missing-$ typo in
62776         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62777         -zignore from being used with Sun's C compiler.
62778
62779 2006-01-12  Simon Josefsson  <jas@extundo.com>
62780
62781         * lib/base64.c: Fix warning, reported by Bruno Haible
62782         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62783
62784 2006-01-12  Bruno Haible  <bruno@clisp.org>
62785
62786         * modules/ldd: New file.
62787         * build-aux/ldd.sh.in: New file.
62788         * MODULES.html.sh (Support for building libraries and executables): Add
62789         ldd.
62790
62791 2006-01-12  Bruno Haible  <bruno@clisp.org>
62792
62793         * m4/ldd.m4: New file.
62794
62795 2006-01-12  Bruno Haible  <bruno@clisp.org>
62796
62797         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62798         endless loop while replacing $auxdir with build-aux.
62799
62800 2006-01-11  Simon Josefsson  <jas@extundo.com>
62801
62802         * lib/stdint_.h (SIZE_MAX): Add missing (.
62803
62804 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         Sync from coreutils.
62807         * lib/md5.c: Fix commentary typos.
62808         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62809         * lib/md5.h (__attribute__): Remove; unused.
62810         * lib/sha1.c: Fix commentary to match md5 better.
62811         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62812         so that we don't need to worry about alignment.  All uses changed.
62813         This merges the 2005-10-28 md5 change into sha1.
62814
62815 2006-01-11  Jim Meyering  <jim@meyering.net>
62816
62817         Sync from coreutils.
62818         * lib/md5.c (OP): Fix spacing.
62819
62820 2006-01-11  Bruno Haible  <bruno@clisp.org>
62821
62822         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62823         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62824         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62825
62826 2006-01-11  Bruno Haible  <bruno@clisp.org>
62827
62828         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62829         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62830         the "early" section as well.
62831
62832 2006-01-11  Bruno Haible  <bruno@clisp.org>
62833
62834         Avoid "ar: no archive members specified" error on MacOS X.
62835         * gnulib-tool (func_modules_add_dummy): New function.
62836         (func_import, func_create_testdir): Invoke it.
62837
62838 2006-01-11  Bruno Haible  <bruno@clisp.org>
62839
62840         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62841         with $auxdir in AC_CONFIG_FILES statements.
62842
62843 2006-01-11  Bruno Haible  <bruno@clisp.org>
62844
62845         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62846         Initialize also noinst_HEADERS to empty.
62847
62848 2006-01-11  Bruno Haible  <bruno@clisp.org>
62849
62850         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62851         variables.
62852         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62853         autoreconf.
62854
62855 2006-01-11  Bruno Haible  <bruno@clisp.org>
62856
62857         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62858         overridable by the user.
62859         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62860
62861 2006-01-10  Simon Josefsson  <jas@extundo.com>
62862
62863         * modules/sys_socket: New file.
62864
62865 2006-01-10  Simon Josefsson  <jas@extundo.com>
62866
62867         * m4/sys_socket_h.m4: New file.
62868
62869 2006-01-10  Simon Josefsson  <jas@extundo.com>
62870
62871         * lib/socket_.h: New file.
62872
62873 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62874
62875         * modules/readutmp (Maintainer): Add myself.
62876
62877 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62878
62879         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62880         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62881         People who are still concerned with buggy memcmp implementations
62882         can invoke gl_FUNC_MEMCMP themselves.
62883
62884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         * lib/regex_internal.h (BITSET_WORD_BITS):
62887         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62888         preprocessor mishandles large unsigned values as if they were signed.
62889         Problem reported by Claudio Fontana in
62890         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62891
62892 2006-01-10  Jim Meyering  <jim@meyering.net>
62893
62894         Avoid the double-free (first in fts_read, second in fts_close) that
62895         would occur when an `active' directory is made inaccessible (e.g.,
62896         via chmod a-x) during a traversal.
62897         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62898         before returning.  Reproduce this failure by
62899         mkdir -p a/b; cd a; chmod a-x . b
62900         Reported by Stavros Passas.
62901
62902         Sync from coreutils.
62903         * lib/sha1.c: Tweak grammar in a comment.
62904
62905 2006-01-10  Jim Meyering  <jim@meyering.net>
62906
62907         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62908         Patch by Joerg Sonnenberger.
62909
62910 2006-01-10  Bruno Haible  <bruno@clisp.org>
62911
62912         * modules/readutmp: Depend on module free.
62913         * modules/strtok_r: Depend on module restrict.
62914
62915 2006-01-10  Bruno Haible  <bruno@clisp.org>
62916
62917         * modules/gettext (configure.ac): Add an invocation of
62918         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62919
62920 2006-01-10  Bruno Haible  <bruno@clisp.org>
62921
62922         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62923         Reported by Werner Lemberg <wl@gnu.org>.
62924
62925 2006-01-10  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/localcharset.c: Update from GNU gettext.
62928
62929 2006-01-10  Bruno Haible  <bruno@clisp.org>
62930
62931         * lib/argp.h (__const): Remove macro. Use const instead.
62932         * lib/argp-fmtstream.h (__const): Likewise.
62933         * lib/glob_.h (__const): Remove macro.
62934         * lib/glob-libc.h: Use const instead of __const.
62935
62936 2006-01-10  Bruno Haible  <bruno@clisp.org>
62937
62938         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62939         variable.
62940         Needed to avoid an automake error regarding the 'gettext' module.
62941
62942 2006-01-09  Simon Josefsson  <jas@extundo.com>
62943
62944         * modules/inet_ntop (Depends-on): Add restrict.
62945
62946 2006-01-09  Simon Josefsson  <jas@extundo.com>
62947
62948         * modules/gc-rijndael-tests (License): Put under LGPL.
62949
62950         * modules/gc-des-tests (License): Likewise.
62951
62952         * modules/gc-arcfour-tests (License): Likewise.
62953
62954         * modules/gc-arctwo-tests (License): Likewise.
62955
62956         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62957
62958         * modules/gc-hmac-sha1-tests (Files): Likewise.
62959
62960         * modules/gc-hmac-md5-tests (License): Likewise.
62961
62962         * modules/gc-sha1-tests (License): Likewise.
62963
62964         * modules/gc-md5-tests (License): Likewise.
62965
62966         * modules/gc-md4-tests (License): Likewise.
62967
62968         * modules/gc-md2-tests (License): Likewise.
62969
62970         * modules/gc-tests (License): Likewise.
62971
62972         * modules/des-tests (License): Likewise.
62973
62974         * modules/md4-tests (License): Likewise.
62975
62976         * modules/md2-tests (License): Likewise.
62977
62978 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         Sync from coreutils:
62981
62982         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62983         * modules/lib-ignore: New file.
62984         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62985         chdir-safer.m4, lchmod.m4.
62986         * modules/openat: Add mkdirat.c, openat-priv.h.
62987
62988 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62989
62990         Sync from coreutils.
62991         * m4/lib-ignore.m4: New file.
62992         * m4/lchmod.m4: New file.
62993
62994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         Sync from coreutils.
62997         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62998         for write access: POSIX says that must fail.
62999         * lib/fts.c (diropen): Likewise.
63000         * lib/save-cwd.c (save_cwd): Likewise.
63001         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63002         well, for minor improvements on hosts that lack O_DIRECTORY.
63003         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63004         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63005         Fall back on chown if open failed with EACCES.
63006
63007         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63008         Report an error at compile-time if only a 1-second nominal clock
63009         resolution is found.
63010
63011         * lib/lchmod.h: New file.
63012         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63013         (make_dir_parents): Use lchown rather than chown, and
63014         lchmod rather than chmod.
63015
63016         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63017         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63018         "proc" reported by n0dalus.
63019
63020         * lib/mountlist.c: Include <limits.h>.
63021         (dev_from_mount_options)
63022         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63023         New function.  It no longer assumes "dev=" has the System V meaning
63024         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63025         (read_file_system_list)
63026         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63027         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63028         dev= in that case.
63029
63030         * lib/posixtm.h (PDS_PRE_2000): New macro.
63031         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63032         allow_century.  All usages changed.  Reject dates outside the range
63033         1969-1999 if PDS_PRE_2000 is used.
63034
63035 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         Sync from coreutils.
63038         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63039         (Time of day items): Mention the possibility of leap seconds.
63040         Problem reported by Dr. David Alan Gilbert.
63041
63042 2006-01-09  Jim Meyering  <jim@meyering.net>
63043
63044         Sync from coreutils.
63045
63046         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63047
63048         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63049
63050         * lib/modechange.c (mode_compile): Reject an invalid mode string
63051         that starts with an octal digit.  From Andreas Gruenbacher.
63052
63053         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63054         and dup to open_safer and dup_safer, respectively.
63055         (openat_permissive): Fix typo in comment.
63056
63057         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63058         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63059         (_): Remove; no longer needed.
63060         (openat): Renamed from rpl_openat; no need for rpl_openat
63061         since openat.h renames openat for us.
63062         Replace most of the body with a call to openat_permissive,
63063         to avoid duplicate code.
63064         Port to (probably hypothetical) environments were mode_t is
63065         wider than int.
63066         (openat_permissive): Require mode arg, so that we can check
63067         types better.  Put it just after flags.  Change cwd failure
63068         indicator from pointer-to-bool to pointer-to-errno-value.
63069         All callers changed.
63070         Invoke openat_save_fail and/or openat_restore_fail if
63071         cwd_errno is null, so that openat can call us.
63072         (openat_permissive, fdopendir, fstatat, unlinkat):
63073         Simplify errno handling to avoid some duplicate code,
63074         as it's OK to set errno on success.
63075         * lib/openat.h: Revamp code so that function macros depend on
63076         __OPENAT_PREFIX only, not also on AT_FDCWD.
63077         (openat_ro): Remove.  Caller changed to use openat_permissive.
63078         (openat_permissive): Now a macro, if not a function.
63079         (openat_restore_fail, openat_save_fail): Now always functions,
63080         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63081
63082         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63083         and openat.c.
63084         * lib/mkdirat.c: Include openat-priv.h.
63085         Remove definitions of macros defined therein.
63086         * lib/openat.c: Likewise.
63087
63088         * lib/mkdirat.c (mkdirat): New file and function.
63089         * lib/openat.h (mkdirat): Declare.
63090
63091         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63092
63093         * lib/openat.h (openat_permissive): Declare.
63094         (openat_ro): Define.
63095
63096         * lib/openat.c (EXPECTED_ERRNO): New macro.
63097         (openat_permissive): New function -- used in remove.c rewrite.
63098         (all functions): Set errno just before returning, only if there
63099         was an actual failure.
63100         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63101
63102         Emulate openat-family functions using Linux's procfs, if possible.
63103         Idea and some code based on Ulrich Drepper's glibc changes.
63104
63105         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63106         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63107         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63108         before falling back on save_cwd and restore_cwd.
63109         (fdopendir, fstatat, unlinkat): Likewise.
63110
63111         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63112         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63113
63114         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63115         as second argument to va_arg.  Otherwise, some versions of gcc
63116         warn that `if this code is reached, the program will abort'.
63117
63118 2006-01-09  Jim Meyering  <jim@meyering.net>
63119
63120         Sync from coreutils.
63121         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63122         Require openat-priv.h.
63123
63124 2006-01-09  Bruno Haible  <bruno@clisp.org>
63125
63126         * modules/strnlen (Include): Use strnlen.h.
63127
63128 2006-01-09  Bruno Haible  <bruno@clisp.org>
63129
63130         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63131
63132 2006-01-09  Bruno Haible  <bruno@clisp.org>
63133
63134         * lib/sysexit_.h (EX_OK): New macro.
63135         Suggested by Martin Lambers <marlam@marlam.de>.
63136
63137 2006-01-09  Bruno Haible  <bruno@clisp.org>
63138
63139         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63140         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63141
63142 2006-01-09  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63145         numbers.
63146
63147 2006-01-09  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63150         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63151         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63152         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63153
63154 2006-01-09  Bruno Haible  <bruno@clisp.org>
63155
63156         * build-aux/javacomp.sh.in: New file, moved from lib/.
63157         * modules/javacomp-script (Files): Update.
63158         (configure.ac): Add AC_CONFIG_FILES invocation.
63159         (EXTRA_DIST): Remove variable.
63160
63161         * build-aux/javaexec.sh.in: New file, moved from lib/.
63162         * modules/javaexec (Files): Update.
63163         (configure.ac): Add AC_CONFIG_FILES invocation.
63164         (EXTRA_DIST): Remove javaexec.sh.in.
63165
63166         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63167         * modules/csharpcomp-script (Files): Update.
63168         (configure.ac): Add AC_CONFIG_FILES invocation.
63169         (EXTRA_DIST): Remove variable.
63170
63171         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63172         * modules/csharpexec (Files): Update.
63173         (configure.ac): Add AC_CONFIG_FILES invocation.
63174         (EXTRA_DIST): Remove csharpexec.sh.in.
63175
63176 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63177
63178         Sync from coreutils.
63179
63180         Add POSIX ACL support
63181         * lib/acl.h (copy_acl, set_acl): Add declarations.
63182         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63183         systems other than Linux.
63184         (chmod_or_fchmod): New function: use fchmod when possible,
63185         and chmod otherwise.
63186         (file_has_acl): Add a POSIX ACL implementation, with a
63187         Linux-specific subcase.
63188         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63189         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63190         acls are unsupported.
63191         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63192         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63193         are unsupported.
63194
63195 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63196
63197         Sync from coreutils.
63198         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63199
63200 2006-01-07  Bruno Haible  <bruno@clisp.org>
63201
63202         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63203         gl_EARLY.
63204
63205 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63208         Problem reported for Mingw by Mark Junker.
63209
63210 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63211
63212         * README: Gnulib normally doesn't generate a tarball.
63213
63214 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63217         long int, not int, for nanosecond counts, so that people who are
63218         used to POSIX struct timespec won't be surprised.  Reported by Jim
63219         Meyering.
63220
63221 2005-12-28  Bruno Haible  <bruno@clisp.org>
63222
63223         * build-aux/config.rpath: Update from GNU gettext.
63224
63225 2005-12-16  Jim Meyering  <jim@meyering.net>
63226
63227         * modules/fprintftime: New module.
63228         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63229
63230 2005-12-16  Jim Meyering  <jim@meyering.net>
63231
63232         * m4/fprintftime.m4: New file.
63233
63234 2005-12-16  Jim Meyering  <jim@meyering.net>
63235
63236         * lib/fprintftime.c, lib/fprintftime.h: New files.
63237
63238 2005-12-15  Simon Josefsson  <jas@extundo.com>
63239
63240         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63241         new m4/socklen.m4.
63242
63243 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63244
63245         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63246         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63247
63248 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63249
63250         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63251         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63252         struct uparams is valid. Fall back to the default values if it is
63253         not.
63254
63255 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63256
63257         * modules/argp (Files): Add argp-pin.c
63258         (Depends-on): dirname
63259         (lib_SOURCES): Add argp-pin.c
63260
63261 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63262
63263         * m4/argp.m4:  Check if program_invocation_name and
63264         program_invocation_short_name are declared and define appropriate
63265         macros if they are not.
63266
63267 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63268
63269         * lib/argp-help.c (__argp_base_name): New function
63270         (__argp_short_program_name): Rewrite using __argp_base_name
63271         * lib/argp-namefrob.h: Define program_invocation_name and
63272         program_invocation_short_name if requested
63273         (__argp_base_name): Add prototype
63274         * lib/argp-parse.c (argp_def): Use gettext wrappers
63275         (argp_default_parser): Use __argp_base_name
63276         * lib/argp-pin.c: New file. Defines program_invocation_name and
63277         program_invocation_short_name on systems that lack them.
63278
63279 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63280
63281         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63282         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63283         porting problem reported by Georg Schwarz in
63284         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63285
63286 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63289         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63290         porting problem reported by Georg Schwarz in
63291         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63292
63293 2005-12-05  Bruno Haible  <bruno@clisp.org>
63294
63295         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63296         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63297         Reported by Mark Junker <mjscod@gmx.de>.
63298
63299 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63302         Use implementation from Albert Chin, with some
63303         comments/corrections by Stepan Kasal and myself.
63304
63305 2005-12-02  Bruno Haible  <bruno@clisp.org>
63306
63307         * gnulib-tool (func_import): Accept GPLed build tool modules when
63308         --lgpl is given.
63309         * modules/csharpcomp-script: New file.
63310         * modules/csharpcomp: Depend on it.
63311         * modules/javacomp-script: New file.
63312         * modules/javacomp: Depend on it.
63313         Suggested by Simon Josefsson.
63314
63315 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63318         statement, to work around an HP-UX 10.20 compiler bug reported by
63319         Peter O'Gorman.
63320
63321 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * modules/savedir (Depends-on): Add openat.
63324
63325 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63328         (uintmax_t) [defined uintmax_t]: Do not declare.
63329         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63330         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63331         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63332         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63333         sake of portability to weird hosts that C allows (though we don't
63334         know of any practical examples).
63335
63336         * lib/savedir.h (fdsavedir): New decl.
63337         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63338         contains most of the former guts of savedir.
63339         (savedir): Use savedirstream.
63340         Include "openat.h".
63341
63342 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         * modules/obstack (Files): Add m4/ulonglong.m4.
63345         Problem reported by Davide Angelocola.
63346
63347 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63350         coreutils no longer futzes with rounding modes.
63351
63352 2005-11-14  Jim Meyering  <jim@meyering.net>
63353
63354         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63355         replacement of mkstemp.
63356
63357 2005-11-10  Simon Josefsson  <jas@extundo.com>
63358
63359         * lib/readline.c: Remove EOL.
63360
63361 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63362
63363         * modules/gethrxtime (Depends-on): Add gettime.
63364
63365 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63366
63367         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63368         or gettimeofday; no longer needed.
63369
63370 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63373         time business.
63374         (gethrxtime) [! (HAVE_NANOUPTIME
63375         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63376         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63377         our own approximation.
63378
63379 2005-11-08  Eric Blake  <ebb9@byu.net>
63380
63381         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63382
63383 2005-11-08  Eric Blake  <ebb9@byu.net>
63384
63385         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63386
63387 2005-11-04  Bruno Haible  <bruno@clisp.org>
63388
63389         * gnulib-tool: Implement --update mode.
63390
63391 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         Fix porting problem reported by Theodoros V. Kalamatianos.
63394         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63395         Don't assume that futimes failing means we must fail.
63396
63397 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63400         variables to suggest the intended function of the PATH_MAX check.
63401
63402 2005-10-30  Kean Johnston  <jkj@sco.com>
63403
63404         Trivial changes to support SCO systems.
63405         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63406         as PATH_MAX.
63407         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63408         where __ptr is null when no I/O is pending.
63409
63410 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63411
63412         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63413         leave errno alone.  Problem reported by Dmitry V. Levin.
63414
63415 2005-10-28  Simon Josefsson  <jas@extundo.com>
63416
63417         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63418         Test more.
63419
63420         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63421
63422         * modules/md2, modules/md2-tests: New files.
63423
63424 2005-10-28  Simon Josefsson  <jas@extundo.com>
63425
63426         * m4/inet_ntop.m4: More tests.
63427
63428         * m4/gc-md2.m4, md2.m4: New file.
63429
63430 2005-10-28  Simon Josefsson  <jas@extundo.com>
63431
63432         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63433         "restrict" keywords, as per POSIX.  Protect the function
63434         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63435         Don't use K&R prototypes.  Check the sprintf return values.
63436         Re-define EAFNOSUPPORT if not present.  Indent.
63437
63438         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63439         suggested by Bruno Haible <bruno@clisp.org>.
63440
63441         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63442
63443         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63444
63445         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63446         libgcrypt).
63447
63448         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63449
63450         * lib/md2.h, lib/md2.c: New files.
63451
63452 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63455         errno alone.  Problem reported by Frederic Jolliton.
63456
63457 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63458
63459         * modules/verify (License): Change from GPL to LGPL.  This is a
63460         tiny module and there are apparently near-equivalents that are
63461         under the BSD license.
63462
63463 2005-10-24  Simon Josefsson  <jas@extundo.com>
63464
63465         * modules/sha1: Relicense to LGPL.
63466
63467 2005-10-24  Simon Josefsson  <jas@extundo.com>
63468
63469         * lib/md4.h: Shrink buffer size, now that we changed the type.
63470
63471 2005-10-23  Simon Josefsson  <jas@extundo.com>
63472
63473         * gnulib-tool (func_import): Fix --tests-base.
63474
63475 2005-10-22  Simon Josefsson  <jas@extundo.com>
63476
63477         * modules/arcfour (Depends-on): Need stdint.
63478
63479 2005-10-22  Simon Josefsson  <jas@extundo.com>
63480
63481         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63482         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63483
63484 2005-10-22  Simon Josefsson  <jas@extundo.com>
63485
63486         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63487         suggested by Bruno Haible <bruno@clisp.org>.
63488
63489 2005-10-22  Simon Josefsson  <jas@extundo.com>
63490
63491         * lib/crc.h: Include stddef.h, for size_t.
63492
63493 2005-10-22  Simon Josefsson  <jas@extundo.com>
63494
63495         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63496         arcfour_context struct (simplify test vector testing in GNU
63497         Shishi).
63498
63499 2005-10-21  Simon Josefsson  <jas@extundo.com>
63500
63501         * modules/des, modules/des-tests: New files.
63502
63503         * modules/gc-des, modules/gc-des-tests: New files.
63504
63505         * tests/test-des.c, tests/test-gc-des.c: New file.
63506
63507 2005-10-21  Simon Josefsson  <jas@extundo.com>
63508
63509         * modules/arctwo, modules/arctwo-tests: New files.
63510
63511         * tests/test-arctwo.c: New file.
63512
63513         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63514
63515         * tests/test-gc-arctwo.c: New file.
63516
63517 2005-10-21  Simon Josefsson  <jas@extundo.com>
63518
63519         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63520         Bruno Haible <bruno@clisp.org>.
63521
63522         * m4/gc-des.m4: New file.
63523
63524 2005-10-21  Simon Josefsson  <jas@extundo.com>
63525
63526         * m4/arctwo.m4: New file.
63527
63528         * m4/gc-arctwo.m4: New file.
63529
63530 2005-10-21  Simon Josefsson  <jas@extundo.com>
63531
63532         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63533         block.
63534
63535 2005-10-21  Simon Josefsson  <jas@extundo.com>
63536
63537         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63538         <bruno@clisp.org>.
63539
63540         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63541
63542         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63543         Bruno Haible <bruno@clisp.org>.
63544
63545         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63546         <bruno@clisp.org>.
63547
63548 2005-10-21  Simon Josefsson  <jas@extundo.com>
63549
63550         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63551
63552 2005-10-21  Simon Josefsson  <jas@extundo.com>
63553
63554         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63555
63556 2005-10-21  Simon Josefsson  <jas@extundo.com>
63557
63558         * lib/des.h, lib/des.c: New files.
63559
63560         * lib/gc-gnulib.c: Support DES.c
63561
63562 2005-10-21  Simon Josefsson  <jas@extundo.com>
63563
63564         * lib/arctwo.h, lib/arctwo.c: New files.
63565
63566         * lib/gc-gnulib.c: Support ARCTWO.
63567
63568 2005-10-21  Simon Josefsson  <jas@extundo.com>
63569
63570         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63571         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63572
63573 2005-10-21  Simon Josefsson  <jas@extundo.com>
63574
63575         * gnulib-tool (func_import, func_create_testdir): Define automake
63576         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63577         Makefile.am snippet),
63578         suggested by Bruno Haible <bruno@clisp.org>.
63579
63580         * modules/gc (Makefile.am): Use it.
63581
63582 2005-10-21  Bruno Haible  <bruno@clisp.org>
63583
63584         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63585         patch.
63586
63587 2005-10-19  Simon Josefsson  <jas@extundo.com>
63588
63589         * tests/test-gc-rijndael.c: New file.
63590
63591         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63592
63593 2005-10-19  Simon Josefsson  <jas@extundo.com>
63594
63595         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63596         interface too.
63597
63598 2005-10-19  Simon Josefsson  <jas@extundo.com>
63599
63600         * tests/test-gc-arcfour.c: New file.
63601
63602         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63603
63604 2005-10-19  Simon Josefsson  <jas@extundo.com>
63605
63606         * modules/gc-md4, modules/gc-md4-tests: New file.
63607
63608         * tests/test-gc-md4.c: New file.
63609
63610 2005-10-19  Simon Josefsson  <jas@extundo.com>
63611
63612         * m4/gc-md4.m4: New file.
63613
63614 2005-10-19  Simon Josefsson  <jas@extundo.com>
63615
63616         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63617         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63618         <kasal@ucw.cz>.
63619
63620 2005-10-19  Simon Josefsson  <jas@extundo.com>
63621
63622         * m4/gc-arcfour.m4: New file.
63623
63624         * m4/gc-rijndael.m4: New file.
63625
63626 2005-10-19  Simon Josefsson  <jas@extundo.com>
63627
63628         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63629
63630 2005-10-19  Simon Josefsson  <jas@extundo.com>
63631
63632         * lib/gc-gnulib.c: Support ARCFOUR.
63633
63634 2005-10-19  Simon Josefsson  <jas@extundo.com>
63635
63636         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63637         support.
63638
63639         * lib/gc.h: Add ECB enum type.
63640
63641         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63642
63643 2005-10-18  Simon Josefsson  <jas@extundo.com>
63644
63645         * tests/test-md5.c: New file.
63646
63647         * modules/md5-tests: New file.
63648
63649 2005-10-18  Simon Josefsson  <jas@extundo.com>
63650
63651         * tests/test-md4.c: New file.
63652
63653         * modules/md4, modules/md4-tests: New files.
63654
63655 2005-10-18  Simon Josefsson  <jas@extundo.com>
63656
63657         * m4/md4.m4: New file.
63658
63659 2005-10-18  Simon Josefsson  <jas@extundo.com>
63660
63661         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63662
63663 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63664
63665         * gnulib-tool (func_create_testdir): Omit the second check whether
63666         BUILT_SOURCES in nonempty.
63667
63668 2005-10-17  Simon Josefsson  <jas@extundo.com>
63669
63670         * tests/test-rijndael.c: New file.
63671
63672 2005-10-17  Simon Josefsson  <jas@extundo.com>
63673
63674         * modules/sha1: Depend on stdint instead of md5.
63675
63676         * modules/md5: Depend on stdint, remove uint32_t.
63677
63678 2005-10-17  Simon Josefsson  <jas@extundo.com>
63679
63680         * modules/gc-sha1-tests: New file.
63681
63682         * tests/test-gc-sha1.c: New file.
63683
63684 2005-10-17  Simon Josefsson  <jas@extundo.com>
63685
63686         * m4/md5.m4: Remove call to uint32_t.m4.
63687
63688 2005-10-17  Simon Josefsson  <jas@extundo.com>
63689
63690         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63691
63692         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63693         md5.h.
63694
63695         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63696
63697         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63698
63699 2005-10-17  Simon Josefsson  <jas@extundo.com>
63700
63701         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63702
63703 2005-10-17  Simon Josefsson  <jas@extundo.com>
63704
63705         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63706
63707 2005-10-17  Simon Josefsson  <jas@extundo.com>
63708
63709         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63710
63711         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63712
63713 2005-10-17  Bruno Haible  <bruno@clisp.org>
63714
63715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63716         that it can also be used in a test.
63717
63718 2005-10-16  Bruno Haible  <bruno@clisp.org>
63719
63720         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63721         TESTS_ENVIRONMENT, so that individual tests can augment it.
63722
63723         * gnulib-tool (func_create_testdir): Use an intermediate target for
63724         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63725         macros, like $(ALLOCA_H), which cannot be passed through the command
63726         line.
63727
63728 2005-10-15  Simon Josefsson  <jas@extundo.com>
63729
63730         * modules/rijndael-tests: New file.
63731
63732         * modules/rijndael: New file.
63733
63734 2005-10-15  Simon Josefsson  <jas@extundo.com>
63735
63736         * m4/rijndael.m4: New file.
63737
63738 2005-10-15  Simon Josefsson  <jas@extundo.com>
63739
63740         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63741
63742         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63743
63744 2005-10-14  Simon Josefsson  <jas@extundo.com>
63745
63746         * tests/test-arcfour.c: New file.
63747
63748         * modules/arcfour, modules/arcfour-tests: New files.
63749
63750 2005-10-14  Simon Josefsson  <jas@extundo.com>
63751
63752         * m4/arcfour.m4: New file.
63753
63754 2005-10-14  Simon Josefsson  <jas@extundo.com>
63755
63756         * lib/arcfour.h, lib/arcfour.c: New files.
63757
63758 2005-10-14  Roland McGrath  <roland@redhat.com>
63759
63760         Import from libc.  [BZ #1331]
63761         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63762         macro argument.
63763         Reported by Matej Vela <vela@debian.org>.
63764
63765 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63768         include <wchar.h>; no longer needed.
63769
63770 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63771
63772         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63773
63774 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63775         and  Ulrich Drepper  <drepper@redhat.com>
63776
63777         Import from libc.
63778         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63779         instead of inline stream orientation test and two separate
63780         function calls.  Pay no attention to USE_IN_LIBIO.
63781
63782 2005-10-13  Simon Josefsson  <jas@extundo.com>
63783
63784         * modules/gc-hmac-md5-tests: New file.
63785
63786         * tests/test-gc-hmac-sha1.c: New file.
63787
63788         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63789
63790         * modules/gc-hmac-md5-tests: New file.
63791
63792         * tests/test-gc-md5.c: New file.
63793
63794         * modules/gc-md5-tests: New file.
63795
63796 2005-10-13  Simon Josefsson  <jas@extundo.com>
63797
63798         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63799         Move memory allocation outside of loop.
63800
63801 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63804         intermediate directory is in a read-only file system.  Problem
63805         reported by Eric Blake.
63806
63807 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63808
63809         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63810
63811 2005-10-12  Simon Josefsson  <jas@extundo.com>
63812
63813         * tests/test-hmac-sha1.c: New file.
63814
63815         * modules/hmac-sha1-tests: New file.
63816
63817         * modules/hmac-sha1: New file.
63818
63819 2005-10-12  Simon Josefsson  <jas@extundo.com>
63820
63821         * modules/gc-sha1: New file.
63822
63823 2005-10-12  Simon Josefsson  <jas@extundo.com>
63824
63825         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63826
63827         * tests/test-gc-pbkdf2-sha1.c: New file.
63828
63829 2005-10-12  Simon Josefsson  <jas@extundo.com>
63830
63831         * modules/gc-md5, modules/gc-hmac-md5: New files.
63832
63833         * modules/gc (Files): Remove md5, memxor and hmac files.
63834
63835 2005-10-12  Simon Josefsson  <jas@extundo.com>
63836
63837         * m4/gc-pbkdf2-sha1.m4: New file.
63838
63839         * m4/gc-hmac-sha1.m4: New file.
63840
63841         * m4/gc-sha1: New file.
63842
63843         * m4/hmac-sha1.m4: New file.
63844
63845 2005-10-12  Simon Josefsson  <jas@extundo.com>
63846
63847         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63848
63849         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63850
63851 2005-10-12  Simon Josefsson  <jas@extundo.com>
63852
63853         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63854         suggested by Bruno Haible <bruno@clisp.org>.
63855
63856 2005-10-12  Simon Josefsson  <jas@extundo.com>
63857
63858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63859
63860 2005-10-12  Simon Josefsson  <jas@extundo.com>
63861
63862         * lib/gc-pbkdf2-sha1.c: New file.
63863
63864         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63865
63866 2005-10-12  Simon Josefsson  <jas@extundo.com>
63867
63868         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63869
63870         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63871
63872 2005-10-12  Simon Josefsson  <jas@extundo.com>
63873
63874         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63875         GC_USE_HMAC_MD5, respectively.
63876
63877         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63878         (gc_md5): Fix typo.
63879
63880         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63881
63882         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63883
63884         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63885
63886 2005-10-12  Bruno Haible  <bruno@clisp.org>
63887
63888         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63889         Reported by Stepan Kasal <kasal@ucw.cz>.
63890
63891 2005-10-11  Simon Josefsson  <jas@extundo.com>
63892
63893         * tests/test-crc.c: New file.
63894
63895         * modules/crc, modules/crc-tests: New files.
63896
63897 2005-10-11  Simon Josefsson  <jas@extundo.com>
63898
63899         * m4/crc.m4: New file.
63900
63901 2005-10-11  Simon Josefsson  <jas@extundo.com>
63902
63903         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63904
63905         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63906
63907         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63908
63909 2005-10-11  Simon Josefsson  <jas@extundo.com>
63910
63911         * lib/crc.h, lib/crc.c: New files.
63912
63913         * lib/gc.h (gc_hash_buffer): Add doc.
63914
63915 2005-10-11  Bruno Haible  <bruno@clisp.org>
63916
63917         * modules/c-strcasestr: New file.
63918         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63919
63920 2005-10-11  Bruno Haible  <bruno@clisp.org>
63921
63922         * modules/c-strcase: New file.
63923         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63924
63925 2005-10-11  Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/strcasecmp.c: Include limits.h.
63928         (strcasecmp): Avoid integer overflow on exotic platforms.
63929         * lib/strncasecmp.c: Include limits.h.
63930         (strncasecmp): Avoid integer overflow on exotic platforms.
63931         Reported by Paul Eggert.
63932
63933 2005-10-11  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/c-strcasestr.h: New file, from GNU gettext.
63936         * lib/c-strcasestr.c: New file, from GNU gettext.
63937
63938 2005-10-11  Bruno Haible  <bruno@clisp.org>
63939
63940         * lib/c-strcase.h: New file, from GNU gettext.
63941         * lib/c-strcasecmp.c: New file, from GNU gettext.
63942         * lib/c-strncasecmp.c: New file, from GNU gettext.
63943
63944 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         * modules/mempcpy (License): GPL -> LGPL.
63947         * modules/strchrnul (License): Likewise.
63948         * modules/sysexits (License): Likewise.
63949
63950 2005-10-08  Simon Josefsson  <jas@extundo.com>
63951
63952         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63953
63954 2005-10-07  Simon Josefsson  <jas@extundo.com>
63955
63956         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63957
63958 2005-10-06  Simon Josefsson  <jas@extundo.com>
63959
63960         * tests/test-hmac-md5.c: New file.
63961
63962         * modules/hmac-md5-tests: New file.
63963
63964         * modules/hmac-md5: New file.
63965
63966 2005-10-06  Simon Josefsson  <jas@extundo.com>
63967
63968         * m4/hmac-md5.m4: New file.
63969
63970         * m4/memxor.m4: Require gl_C_RESTRICT.
63971
63972 2005-10-06  Simon Josefsson  <jas@extundo.com>
63973
63974         * lib/memxor.c (memxor): Avoid casts and warnings.
63975
63976 2005-10-06  Simon Josefsson  <jas@extundo.com>
63977
63978         * lib/hmac-md5.c: New file.
63979
63980         * lib/hmac.h: New file.
63981
63982 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63985         promotes to int, not unsigned int, to catch the AIX 5.3
63986         compiler bug.
63987
63988 2005-10-05  Simon Josefsson  <jas@extundo.com>
63989
63990         * modules/memxor: New file.
63991
63992         * modules/iconv (Files): Move config.rpath to havelib, it is used
63993         there.
63994
63995         * modules/havelib (Files): Add config.rpath.
63996
63997 2005-10-05  Simon Josefsson  <jas@extundo.com>
63998
63999         * m4/memxor.m4: New file.
64000
64001 2005-10-05  Simon Josefsson  <jas@extundo.com>
64002
64003         * lib/memxor.c (memxor): Fix compiler error.
64004
64005         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64006         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64007
64008         * lib/memxor.h, lib/memxor.c: New files.
64009
64010         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64011         we assume all systems have it, suggested by Jim Meyering
64012         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64013         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64014         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64015         same reasons.
64016
64017 2005-10-05  Simon Josefsson  <jas@extundo.com>
64018
64019         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64020
64021 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64024         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64025         needed, since the source code now assumes these .h files.
64026
64027 2005-10-05  Derek Price  <derek@ximbiot.com>
64028
64029         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64030
64031 2005-10-05  Bruno Haible  <bruno@clisp.org>
64032
64033         * modules/stdint (License): Change to LGPL.
64034
64035 2005-10-04  Simon Josefsson  <jas@extundo.com>
64036
64037         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64038         D. Baushke" <mdb@gnu.org>.
64039
64040 2005-10-04  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/verify.h (verify_true): Provide alternative definition for C++.
64043
64044 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64047         (SSIZE_MAX): New macro, if not already defined.
64048         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64049         than 2 GiB.
64050
64051 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         Sync from coreutils.
64054         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64055         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64056         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64057         ULLONG_MAX doesn't work with 2.7.2.1.
64058
64059 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64062         From Ben Pfaff.
64063
64064         * modules/exclude (Depends-on): Depend on verify.
64065         * modules/strtoimax (Depends-on): Likewise.
64066         * modules/utimecmp (Depends-on): Likewise.
64067
64068 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64069
64070         * lib/exclude.c: Include verify.h.
64071         (verify): Remove.  All callers changed to use verify.h's version.
64072         * lib/strtoimax.c: Likewise.
64073         * lib/utimecmp.c: Likewis.e
64074
64075         Sync from coreutils.
64076         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64077         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64078         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64079         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64080         bother returning ENOSYS if settimeofday or stime fails; just let
64081         them return whatever errno they want to return.
64082         * lib/utimens.c: Include unistd.h, for dup2.
64083         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64084         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64085
64086 2005-10-02  Jim Meyering  <jim@meyering.net>
64087
64088         Sync from coreutils.
64089         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64090         from glibc-2.2.5 that fails for read-only files.
64091
64092 2005-10-02  Jim Meyering  <jim@meyering.net>
64093
64094         Sync from coreutils.
64095         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64096         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64097         `#if HAVE_CONFIG_H'.
64098         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64099         Remove AT_FDCWD test.
64100         Do not consume the fd unless successful.
64101         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64102         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64103         block, so that we don't even try to compile it if settimeofday is
64104         available.  This works around a compilation failure on OSF1 V5.1,
64105         due to stime requiring a `long int*' while tv_sec is `int'.
64106
64107 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64108
64109         Sync from coreutils.
64110         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64111         against `yes', rather than just testing for nonempty.
64112
64113 2005-10-01  Simon Josefsson  <jas@extundo.com>
64114
64115         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64116         and Darwin.
64117
64118         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64119         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64120         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64121         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64122         Check if struct addrinfo is declared.
64123
64124 2005-10-01  Simon Josefsson  <jas@extundo.com>
64125
64126         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64127         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64128         AI_* and EAI_* definitions.  Protect function declarations.
64129
64130 2005-10-01  Jim Meyering  <jim@meyering.net>
64131
64132         Sync from coreutils.
64133
64134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64135         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64136         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64138         in the inet and nsl libraries.  Required on Solaris 5.7.
64139
64140 2005-10-01  Jim Meyering  <jim@meyering.net>
64141
64142         Sync from coreutils.
64143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64144         in the inet and nsl libraries.  Required on Solaris 5.7.
64145
64146 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64147
64148         * lib/getdelim.c (getdelim): Remove unused variables.
64149
64150 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64153         so that the code works even with ancient cpp.  Portability problem
64154         with GCC 2.7.2.1 reported by Thomas M.Ott.
64155
64156 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * modules/regex (Depends-on): Add strcase.
64159
64160         * modules/gethostname (Licence): Change from GPL to LGPL, since
64161         gethostname.c is a trivial implementation of a standard library
64162         function.
64163         * modules/poll (License): Change from GPL to LGPL, since it's
64164         derived from LGPL code.
64165
64166 2005-09-27  Jim Meyering  <jim@meyering.net>
64167
64168         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64169         HAVE_CONFIG_H.
64170
64171         * lib/intprops.h (signed_type_or_expr__): Define.
64172         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64173         for unsigned types.
64174
64175 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64176
64177         * lib/verify.h (verify_expr): Remove, replacing with:
64178         (verify_true): New macro that returns true instead of void.
64179         (verify_type__): Remove.
64180         (verify): Use verify_true rather than verify_type__.
64181
64182 2005-09-26  Bruno Haible  <bruno@clisp.org>
64183
64184         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64185         is necessary.
64186         (lib_SOURCES): Remove mbchar.c.
64187         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64188         (Files): Add m4/mbrtowc.m4.
64189         * modules/mbiter: Likewise.
64190         * modules/mbuiter: Likewise.
64191
64192 2005-09-26  Bruno Haible  <bruno@clisp.org>
64193
64194         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64195         compile mbchar.c if they are not both present.
64196         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64197         * m4/mbiter.m4 (gl_MBITER): Likewise.
64198         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64199         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64200         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64201
64202 2005-09-25  Jim Meyering  <jim@meyering.net>
64203
64204         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64205         also uses socklen_t.
64206
64207 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64208
64209         * lib/utimens.c (ENOSYS): Define if not already defined.
64210         (futimens): Support having a null PATH if the file descriptor
64211         is nonnegative.
64212
64213         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64214         Remove.
64215         (__attribute): Define to empty unless GCC 3.1 or later.
64216         This works around a core dump on OpenBSD 3.4, which has GCC
64217         2.95.3, which dumps core when given __attribute__(()).  It also
64218         simplifies other tests, since we really don't want to bother with
64219         worrying about which ancient version of GCC supported what.
64220         Original problem reported by Yoann Vandoorselaere, with part of
64221         the fix suggested by Derek Price.
64222
64223 2005-09-24  Jim Meyering  <jim@meyering.net>
64224
64225         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64226         so we can once again use a positive bitfield width of 1 -- now we
64227         don't have to explain why we were using a bitfield width of 2.
64228
64229 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64232         and similarly for the other external symbols.  Problem reported
64233         by James Gallager.
64234
64235         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64236         bug reported by Jim Meyering.
64237
64238         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64239         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64240         not needed, since socklen is a prerequisite module.
64241
64242 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64245         Problem reported by Eric Blake.
64246         (getaddrinfo): Initialize se so that it's not garbage.
64247         Redo internal storage allocation so that it doesn't make unportable
64248         assumptions about alignment.
64249         Fix a memory leak.
64250
64251         * lib/utimens.c (futimens): Use futimesat if available.
64252         Prefer it to futimes since it doesn't have the futimes bug.
64253
64254         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64255         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64256         Instead, declare a function that returns a pointer to an array,
64257         and use verify_type__ to declare the size of the array.
64258         Problem and germ of a solution reported by Bruno Haible.
64259         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64260         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64261
64262 2005-09-23  Jim Meyering  <jim@meyering.net>
64263
64264         Sync from coreutils.
64265         Correct build failure (socklen_t not defined) on at least
64266         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64268
64269 2005-09-23  Jim Meyering  <jim@meyering.net>
64270
64271         * modules/getaddrinfo (Depends-on): Add socklen.
64272
64273 2005-09-23  Bruno Haible  <bruno@clisp.org>
64274
64275         * tests/test-verify.c: New file.
64276
64277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         Sync from coreutils.
64280
64281         * modules/argmatch (Depends-on): Add verify.
64282         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64283         unistd-safer.
64284         * modules/save-cwd (Depends-on): Likewise.
64285
64286         * modules/openat (Files): Add lib/openat-die.c.
64287         (Depends-on): Remove error, exitfail.
64288         Add dirname.
64289
64290         * modules/verify: New file.
64291         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64292         with "verify" module.
64293
64294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         Sync from coreutils.
64297
64298         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64299         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64300         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64301         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64302         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64303         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64304         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64305         Don't bother checking for string.h, stdlib.h, unistd.h.
64306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64307         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64308         module's job.
64309         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64310         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64311
64312         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64313         (gl_GETDATE): Use it.
64314
64315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64316
64317 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         Sync from coreutils.
64320
64321         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64322         stat-time.h.
64323         * lib/argmatch.h: Include verify.h
64324         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64325         (ARGMATCH_ASSERT): Remove; unused.
64326         * lib/canonicalize.c: Assume STDC_HEADERS.
64327         * lib/exclude.c: Include "strcase.h".
64328         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64329         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64330         and stdio-safer.h.
64331         (getusershell): Call fopen, not fopen_safer.
64332         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64333         Do not include unistd-safer.h.
64334         (save_cwd): Don't call fd_safer; no longer needed
64335         now that we include fcntl--.h.
64336
64337         * lib/getdate.y (relative_time): New type.
64338         (RELATIVE_TIME_0): New constant.
64339         (parser_control): Use relative_time instead of doing it ourselves.
64340         (%union): Add new relative_time rel member.
64341         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64342         Now typeless.
64343         (relunit, relunit_snumber): Now of type rel.
64344         (zone, rel, relunit, get_date): Adjust to above changes.
64345
64346         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64347         Do not include unistd-safer.h.
64348         (getloadavg): Don't call fd_safer; no longer needed
64349         now that we include fcntl--.h.
64350
64351         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64352         (make_dir_parents): Treat ENOSYS like EEXIST.
64353
64354         Improve quality of diagnostics on restore_cwd failure.
64355         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64356         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64357         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64358         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64359         each time through the loop.  Do not diagnose restore_cwd failure;
64360         that is the caller's job (and perhaps the caller does not care).
64361
64362         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64363         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64364         If the file already exists but is not a directory, don't bother
64365         to try to make its parents.
64366         Close potential file descriptor leak if we can't chdir("/") (!).
64367         Don't always return true if chdir($PWD) fails; return true only
64368         if the requested action was done successfully (except for the
64369         chdir($PWD)).
64370         Don't log final directory unless we actually made it.
64371         Refactor to avoid duplicate code to fix up permissions.
64372         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64373
64374         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64375         to make it a bit faster and (I hope) clearer.
64376         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64377         Fix bug in formats like %2N.
64378
64379         * lib/verify.h: New file.
64380
64381 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         Sync from coreutils.
64384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64385
64386 2005-09-22  Jim Meyering  <jim@meyering.net>
64387
64388         Sync from coreutils.
64389
64390         * m4/lstat.m4 (gl_FUNC_LSTAT):
64391         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64392         Remove obsolete comment.
64393         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64394         * m4/xstrtod.m4: Likewise.
64395
64396         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64397
64398 2005-09-22  Jim Meyering  <jim@meyering.net>
64399
64400         Sync from coreutils.
64401
64402         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64403
64404         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64405         the .tm_year member, since otherwise gcc-4.0 would now warn about
64406         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64407
64408         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64409         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64410
64411         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64412         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64413         when run in a time zone for which daylight savings time is in effect
64414         for the starting date.
64415
64416         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64417         stop us from restricting permissions of just-created absolute-named
64418         directories.
64419         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64420         to restore initial working directory.
64421         * lib/mkdir-p.c (make_dir_parents): New parameter:
64422         different_working_dir, to tell caller if/when we change the working
64423         directory and are unable to return to the initial one.
64424         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64425         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64426         `return false'.  This fixes a bug introduced on 2004-07-30.
64427
64428         * lib/openat.c (fdopendir): Be sure to close the supplied
64429         file descriptor before returning.  This makes our replacement
64430         implementation a little closer to Solaris's, where fdopendir
64431         ties the file descriptor to the returned DIR* pointer.
64432         * lib/openat.c (unlinkat): New function.
64433         * lib/openat.h (unlinkat): Add prototype.
64434         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64435         (openat_restore_fail): Rename from openat_restore_die.
64436         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64437
64438         Provide an alternative to exiting immediately upon save_cwd or
64439         restore_cwd failure.  Now, an application can arrange e.g.,
64440         to perform a longjump in that case.
64441         * lib/openat.c: Include dirname.h.
64442         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64443         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64444         and openat_restore_die rather than calling error directly.
64445         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64446
64447         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64448         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64449         define.
64450
64451         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64452         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64453                             int utc, int nanoseconds);
64454         Background:
64455         date should not have to allocate a megabyte of virtual memory to
64456         handle a format argument like +%1048575T.  When implemented with
64457         strftime, it must allocate such a buffer, use strftime to fill it
64458         in, print it, then free it.
64459         With fprintftime, it simply prints everything and exits.
64460         With no need for memory allocation, that's one fewer way to fail.
64461         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64462         optional field width, not before, so we accept %9:z, not %:9z.
64463         (my_strftime): Be sure to use L_('x') for literals.
64464
64465         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64466         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64467         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64468         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64469         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64470         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64471         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64472         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64473         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64474         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64475         * lib/xgethostname.c, lib/xreadlink.c:
64476         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64477
64478         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64479         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64480         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64481         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64482         and don't include <sys/file.h>).
64483
64484 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64485
64486         Sync from coreutils.
64487
64488         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64489         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64490         [!LDAV_DONE]: Avoid unused variable warning.
64491
64492 2005-09-21  Bruno Haible  <bruno@clisp.org>
64493
64494         * lib/unicodeio.h (unicode_to_mb): New declaration.
64495
64496 2005-09-20  Derek Price  <derek@ximbiot.com>
64497
64498         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64499         getaddrinfo.h.
64500
64501 2005-09-20  Bruno Haible  <bruno@clisp.org>
64502
64503         * gnulib-tool: Remove trailing slashes from the values specified for
64504         --source-base, --m4-base, --tests-base, --aux-dir.
64505         Suggested by Simon Josefsson <jas@extundo.com>.
64506
64507 2005-09-20  Bruno Haible  <bruno@clisp.org>
64508
64509         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64510         func_modules_to_filelist, func_import, func_create_testdir): Make all
64511         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64512         change when gnulib-tool is invoked in a different locale.
64513
64514 2005-09-19  Simon Josefsson  <jas@extundo.com>
64515
64516         * m4/socklen.m4: Fix typo.
64517
64518 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64519
64520         Use a consistent style for including <config.h>.
64521         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64522         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64523         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64524         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64525         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64526         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64527         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64528         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64529         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64530         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64531         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64532         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64533         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64534         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64535         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64536         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64537         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64538         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64539         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64540         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64541         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64542         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64543         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64544         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64545         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64546         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64547         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64548         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64549         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64550         lib/xstrtoumax.c, lib/yesno.c:
64551         Standardize inclusion of config.h.
64552         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64553         lib/inttostr.h:  Removed inclusion of config.h from header files.
64554         * lib/inttostr.c:  Adjusted in-tree users.
64555         * lib/timespec.h: Remove superfluous warning to include config.h.
64556         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64557         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64558         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64559         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64560         config.h with HAVE_CONFIG_H.
64561
64562 2005-09-19  Jim Meyering  <jim@meyering.net>
64563
64564         * modules/pathmax (License): Change to LGPL.
64565
64566 2005-09-19  Derek Price  <derek@ximbiot.com>
64567
64568         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64569
64570 2005-09-19  Bruno Haible  <bruno@clisp.org>
64571
64572         * gnulib-tool (import): Provide default for --tests-base.
64573
64574 2005-09-19  Bruno Haible  <bruno@clisp.org>
64575
64576         * doc/quote.texi: New file, extracted from gnulib.texi.
64577         * doc/ctime.texi: New file, extracted from gnulib.texi.
64578         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64579         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64580         * doc/gnulib.texi: Include them.
64581
64582 2005-09-18  Bruno Haible  <bruno@clisp.org>
64583
64584         Portability fix.
64585         * gnulib-tool (func_readlink): New function.
64586         (func_ln_if_changed): Use it.
64587
64588 2005-09-18  Bruno Haible  <bruno@clisp.org>
64589
64590         * gnulib-tool: Support --with-tests also with --import.
64591         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64592         (func_import): Use variables $testsbase and $inctests. Emit a
64593         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64594         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64595         SUBDIRS += $testsdir.
64596         (func_create_testdir): Update.
64597
64598 2005-09-18  Bruno Haible  <bruno@clisp.org>
64599
64600         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64601         instead of $dry_run.
64602         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64603         (func_ln_if_changed): Don't handle dry-run here.
64604         (func_import): In dry-run mode, detect more precisely which actions
64605         would be performed, and don't use "...ing" verbs.
64606
64607 2005-09-18  Bruno Haible  <bruno@clisp.org>
64608
64609         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64610         (func_import): Use join on two temporary files instead of three nested
64611         loops, in order to determine which files are new or old.
64612
64613 2005-09-18  Bruno Haible  <bruno@clisp.org>
64614
64615         * gnulib-tool (func_import): Comment out code that spits out the
64616         new files with --dry-run.
64617
64618 2005-09-18  Bruno Haible  <bruno@clisp.org>
64619
64620         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64621
64622 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * lib/stat-time.h: New file.
64625         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64626         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64627         in a different way.
64628         (timespec_cmp): New function.
64629         * lib/utimecmp.c: Include stat-time.h.
64630         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64631         members exist, not on the obsolescent ST_MTIM_NSEC.
64632         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64633
64634 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64635
64636         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64637
64638 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * MODULES.html.sh (File system functions): Add stat-time.
64641         * modules/stat-time: New file.
64642         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64643         is now done in a different way, by the stat-time module.
64644         * modules/utimecmp (Depends-on): Add stat-time.
64645
64646 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * m4/st_mtim.m4: Remove.  Superseded by...
64649         * m4/stat-time.m4: New file.
64650         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64651         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64652
64653 2005-09-15  Derek Price  <derek@ximbiot.com>
64654
64655         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64656
64657 2005-09-15  Derek Price  <derek@ximbiot.com>
64658
64659         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64660         * lib/regex_internal.c: Ditto, using this...
64661         (__GNUC_PREREQ): ...new macro.
64662         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64663         using...
64664         (__GNUC_PREREQ): ...this new macro.
64665
64666         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64667
64668 2005-09-15  Derek Price  <derek@ximbiot.com>
64669             Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64672         changes, consolidating in...
64673         * lib/regex_internal.h: ...this file.
64674
64675 2005-09-13  Jim Meyering  <jim@meyering.net>
64676
64677         * lib/canon-host.c: Filter through gnu indent and reword comments
64678         slightly.
64679         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64680
64681 2005-09-13  Derek Price  <derek@ximbiot.com>
64682
64683         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64684         failure.
64685         Reported by Jim Meyering  <jim@meyering.net>.
64686
64687 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64688
64689         * lib/base64.c: Typo.
64690         (base64_encode): Put b64str in initialized data section.
64691
64692 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         Merge glibc and coreutils changes into gnulib, plus a few
64695         extra fixes.
64696         * lib/md5.c: Use #error rather than a string.
64697         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64698         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64699         (__attribute__): Define to empty for non recent-GCC.
64700         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64701         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64702         Renamed from their non-__ counterparts, with new macros replacing
64703         them if not _LIBC.  Add __THROW attribute.
64704         (rol): Remove.
64705         (struct md5_ctx): Align buffer if using GCC.
64706         * lib/sha1.h (struct sha1_ctx): Likewise.
64707         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64708         The old name was backwards.
64709         (NOTSWAP): Remove; not used.
64710         (rol): New macro, moved here from md5.h.
64711         (sha1_process_block): Remove a FIXME that doesn't make sense.
64712
64713 2005-09-12  Derek Price  <derek@ximbiot.com>
64714
64715         Return usable errors from canon-host.
64716         * lib/canon-host.h: New file.
64717         * lib/canon-host.c (canon_host): Wrap...
64718         (canon_host_r): ...this new function, which now relies exclusively on
64719         getaddrinfo.
64720         (ch_strerror): New function.
64721         (last_cherror): New global.
64722         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64723         interface.
64724         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64725         void *.
64726         (freeaddrinfo): Free ai->ai_canonname when set.
64727
64728 2005-09-12  Derek Price  <derek@ximbiot.com>
64729
64730         Make canon-host require getaddrinfo.
64731         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64732         AC_LIBSOURCE canon-host.h.  Call...
64733         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64734         gl_GETADDRINFO.
64735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64736
64737 2005-09-12  Derek Price  <derek@ximbiot.com>
64738
64739         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64740         LGPL.
64741         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64742
64743 2005-09-12  Derek Price  <derek@ximbiot.com>
64744
64745         * lib/gai_strerror.c: Include config.h when available.  Include
64746         getaddrinfo.h before other headers to test interface.
64747         Reported by Larry Jones <lawrence.jones@ugs.com>.
64748
64749 2005-09-12  Derek Price  <derek@ximbiot.com>
64750             Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * modules/glob (Files): Add glob-libc.h.
64753
64754 2005-09-12  Derek Price  <derek@ximbiot.com>
64755             Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64758         glob_.h, glob-libc.h.
64759         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64760
64761 2005-09-12  Derek Price  <derek@ximbiot.com>
64762             Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64765         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64766         protecting things that should be done only in gnulib contexts.
64767         * lib/glob_.h: New file, containing only the glob things needed for
64768         gnulib.
64769         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64770         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64771         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64772         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64773         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64774         and to respect the namespace rules better.
64775
64776 2005-09-08  Simon Josefsson  <jas@extundo.com>
64777
64778         * modules/socklen: New file.
64779
64780 2005-09-08  Simon Josefsson  <jas@extundo.com>
64781
64782         * m4/socklen.m4: New file.
64783
64784 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * modules/utimens (Files): Add m4/utimbuf.m4, since
64787         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64788         Reported by Sergey Poznyakoff.
64789
64790 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64793         definitions, since that's the preferred style in glibc.
64794         Fix a minor spacing issue, and update copyright notice to match
64795         glibc's.
64796
64797 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64798
64799         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64800
64801 2005-09-06  Simon Josefsson  <jas@extundo.com>
64802
64803         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64804         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64805
64806 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64809         warning.
64810
64811 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * config/srclist.txt: Add glibc bug 1302.
64814
64815 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         Change bitset word type from unsigned int to unsigned long int,
64818         as this has better performance on typical 64-bit hosts.
64819         Port bitset code to hosts with unusual word sizes.
64820         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64821         (build_collating_symbol):
64822         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64823         argument is a bitset.  This is merely a style issue, but it makes
64824         it clearer that an entire array is expected.
64825         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64826         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64827         Port to the case where bitset_word is not the same as unsigned int.
64828         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64829         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64830         Likewise.
64831         * lib/regexec.c (check_dst_limits_calc_pos_1,
64832         check_subexp_matching_top):
64833         (build_trtable, group_nodes_into_DFAstates):
64834         Likewise.
64835         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64836         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64837         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64838         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64839         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64840         * lib/regcomp.c (optimize_subexps, lower_subexp):
64841         Work even if bitset_word has holes in its bitwise representation.
64842         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64843         * lib/regexec.c (check_dst_limits_calc_pos_1,
64844         check_subexp_matching_top):
64845         Likewise.
64846         * lib/regex_internal.c (re_string_reconstruct):
64847         Don't assume UCHAR_MAX == 255.
64848         * lib/regex_internal.h (bitset_set_all): Likewise.
64849         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64850         All uses changed.
64851         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64852         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64853         All uses changed.
64854         (BITSET_WORD_MAX): New macro.
64855         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64856         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64857         (bitset_empty, bitset_copy):
64858         Prefer sizeof (bitset) to multiplying it out ourselves.
64859         (bitset_not_merge): Remove; unused.
64860         (bitset_contain): Return bool, not unsigned int with one bit on.
64861         All callers changed.
64862         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64863         alignment than re_node_set; do this by defining a new internal
64864         type struct dests_alloc and using it to allocate memory.
64865
64866 2005-09-05  Bruno Haible  <bruno@clisp.org>
64867
64868         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64869         links.
64870
64871 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64872
64873         * modules/size_max (Makefile.am): Add size_max.h
64874
64875 2005-09-04  Derek Price  <derek@ximbiot.com>
64876
64877         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64878
64879 2005-09-03  Simon Josefsson  <jas@extundo.com>
64880
64881         * gnulib-tool: Fix typo.
64882
64883 2005-09-03  Simon Josefsson  <jas@extundo.com>
64884
64885         * config/srclist.txt: Add glibc bug 1293.
64886
64887 2005-09-03  Derek Price  <derek@ximbiot.com>
64888
64889         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64890         From Larry Jones <lawrence.jones@ugs.com>.
64891
64892 2005-09-02  Simon Josefsson  <jas@extundo.com>
64893
64894         * modules/socklen: New file.
64895
64896 2005-09-02  Simon Josefsson  <jas@extundo.com>
64897
64898         * modules/havelib: New module.
64899
64900         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64901         Use havelib.
64902
64903 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         Check for arithmetic overflow when calculating sizes, to prevent
64906         some buffer-overflow issues.  These patches are conservative, in the
64907         sense that when I couldn't determine whether an overflow was possible,
64908         I inserted a run-time check.
64909         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64910         macros.
64911         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64912         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64913         (re_xnrealloc, re_x2nrealloc): New inline functions.
64914         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64915         parse_bracket_exp):
64916         (build_equiv_class, build_charclass): Check for arithmetic overflow
64917         in size expression calculations.
64918         * lib/regex_internal.c (re_string_realloc_buffers):
64919         (build_wcs_upper_buffer, re_node_set_add_intersect):
64920         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64921         (re_dfa_add_node, register_state): Likewise.
64922         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64923         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64924         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64925         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64926
64927 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64930         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64931
64932 2005-09-02  Bruno Haible  <bruno@clisp.org>
64933
64934         Support for lib vs. lib64 distinction on biarch platforms.
64935         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64936         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64938
64939 2005-09-02  Bruno Haible  <bruno@clisp.org>
64940
64941         * gnulib-tool (import): In the other first-use case, provide defaults
64942         as well.
64943
64944 2005-09-02  Bruno Haible  <bruno@clisp.org>
64945
64946         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64947         patches not yet found in the latest gettext release.
64948
64949 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64952         to avoid a collision with bits/local_lim.h in glibc.
64953         All uses changed.  Problem reported by Dmitry V. Levin in
64954         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64955
64956         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64957         bugs in int versus size_t comparisons.
64958         (re_string_context_at): Fix bug where the code assumed that
64959         Idx is signed.
64960
64961         Use bool where appropriate.
64962         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64963         All callers changed.
64964         (calc_eclosure_iter): Likewise, for ROOT arg.
64965         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64966         (build_charclass_op): Likewise, for NON_MATCH arg.
64967         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64968         (re_string_construct_common): Likewise, for ICASE arg.
64969         * lib/regexec.c (re_search_2_stub, re_search_stub):
64970         Likewise, for RET_LEN arg.
64971         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64972         (set_regs): Likewise, for FL_BACKTRACK arg.
64973         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64974         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64975         (calc_eclosure_iter, parse_bracket_exp):
64976         Use bool for internal variables that are booleans.
64977         * lib/regexec.c (re_search_internal, check_matching,
64978         proceed_next_node):
64979         (set_regs, build_sifted_states, sift_states_bkref):
64980         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64981         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64982         (find_collation_sequence_value):
64983         Likewise.
64984         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64985         (re_node_set_compare):
64986         Return bool, not int. All callers changed.
64987         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64988         (build_trtable, check_node_accept): Likewise.
64989         * lib/regex_internal.h: Include stdbool.h.
64990
64991         Fix bugs uncovered when converting to bool.
64992         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64993         failure instead of charging ahead blindly.
64994         * lib/regex_internal.c (register_state): Likewise.
64995         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64996         for freeing internal storage.
64997         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64998         bitset pieces used as boolean, to avoid undefined behavior
64999         on hosts that do int overflow checking.
65000
65001 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * config/srclist.txt: Add glibc bugs 1285-1287.
65004
65005 2005-09-01  Jim Meyering  <jim@meyering.net>
65006
65007         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65008         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65009         Require gl_STAT_MACROS, too.
65010
65011 2005-09-01  Bruno Haible  <bruno@clisp.org>
65012
65013         * gnulib-tool (import): In the first-use case, provide defaults.
65014
65015 2005-09-01  Bruno Haible  <bruno@clisp.org>
65016
65017         * gnulib-tool (func_import): Remove the .tmp files.
65018
65019 2005-09-01  Bruno Haible  <bruno@clisp.org>
65020
65021         * gnulib-tool (func_import): Fix handling of symbolic links.
65022
65023 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65026         old glibc regex code mishandles strings longer than 2**31 bytes.
65027         This patch fixes this when the regex code is used in gnulib
65028         (i.e., outside glibc).
65029
65030         This patch should not affect the use of the regex code inside
65031         glibc.  No doubt this problem also needs to be handled for glibc
65032         as well, but the result will be an incompatible change to the
65033         glibc ABI, and the old ABI will have to be supported too.  That
65034         can be the the subject for another patch.
65035
65036         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65037         governing whether the rest of this patch is active.  By default,
65038         the macro is disabled and the patch has no effect.
65039         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65040         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65041         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65042         (re_match_2, re_set_registers): Use the new types.
65043         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65044         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65045         New macros.
65046         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65047         (re_string_context_at, bin_tree_t, re_dfastate_t):
65048         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65049         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65050         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65051         (re_string_char_size_at, re_string_wchar_at):
65052         (re_string_elem_size_at):
65053         Use the new types and macros to port to 64-bit hosts.
65054         Use unsigned types for internal values, so that the code
65055         mostly works even for arrays larger than SSIZE_MAX.
65056         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65057         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65058         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65059         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65060         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65061         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65062         (calc_inveclosure, parse_dup_op, build_range_exp):
65063         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65064         (fetch_number, create_token_tree, mark_opt_subexp):
65065         Likewise.
65066         * lib/regex_internal.c (re_string_construct_common,
65067         create_ci_newstate):
65068         (create_cd_newstate, re_string_allocate, re_string_construct):
65069         (re_string_realloc_buffers, build_wcs_upper_buffer):
65070         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65071         (re_string_reconstruct, re_string_peek_byte_case):
65072         (re_string_fetch_byte_case, re_string_context_at):
65073         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65074         (re_node_set_init_copy, re_node_set_add_intersect):
65075         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65076         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65077         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65078         (re_acquire_state, re_acquire_state_context, register_state):
65079         Likewise.
65080         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65081         search_cur_bkref_entry):
65082         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65083         (re_search_internal, re_search_2_stub, re_search_stub)
65084         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65085         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65086         (update_cur_sifted_state, check_dst_limits):
65087         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65088         (check_subexp_limits, sift_states_bkref, merge_state_array):
65089         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65090         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65091         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65092         (expand_bkref_cache, check_node_accept_bytes):
65093         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65094         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65095         (acquire_init_state_context, check_halt_node_context):
65096         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65097         (sift_states_backward, clean_state_log_if_needed):
65098         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65099         (find_recover_state, transit_state_sb, transit_state_mb):
65100         (transit_state_bkref, build_trtable, match_ctx_clean):
65101         Likewise.
65102         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65103         to work around an assumption that REG_MISSING is negative.
65104
65105         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65106         (seek_collating_symbol_entry) [defined _LIBC]:
65107         (lookup_collation_sequence_value) [defined _LIBC]:
65108         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65109         Use prototypes rather than old-style function definitions.
65110         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65111         (transit_state_sb) [0]:
65112         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65113
65114         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65115         rm_eo.
65116
65117         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65118         (optimize_subexps, lower_subexp):
65119         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65120         since the signed shift might overflow.  Use 1u<<31 instead.
65121         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65122         Likewise.
65123         * lib/regexec.c (check_dst_limits_calc_pos_1,
65124         check_subexp_matching_top): Likewise.
65125
65126         * lib/regcomp.c (optimize_subexps, lower_subexp):
65127         Use CHAR_BIT rather than 8, for clarity.
65128         * lib/regexec.c (check_dst_limits_calc_pos_1):
65129         (check_subexp_matching_top): Likewise.
65130         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65131         have to worry about portability issues when shifting it left.
65132         Remove no-longer-needed test for table_size > 0.
65133         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65134         in a word, as the resulting behavior is undefined.
65135         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65136         in one case, a <= should have been an <, and in another case the
65137         whole test was missing.
65138         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65139         the standard name CHAR_BIT.
65140         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65141         this is not true on one's complement and signed-magnitude hosts.
65142
65143         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65144         next_last_offset.
65145         (struct re_dfa_t): Remove unused member states_alloc.
65146         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65147
65148 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65149
65150         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65151         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65152         and large-file glibc and in 32-bit large-file Solaris.
65153
65154 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65155
65156         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65157         lengths fit in regoff_t; this isn't true if regoff_t is the same
65158         width as size_t.
65159         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65160         (= START + RANGE) instead of RANGE.  This avoids overflow
65161         problems when regoff_t is the same width as size_t.
65162         All callers changed.
65163         (re_search_2_stub): Check for overflow when adding the
65164         sizes of the two strings.
65165         (re_search_stub): Check for overflow when adding START
65166         to RANGE; if it occurs, substitute the extreme value.
65167
65168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65171
65172 2005-08-31  Jim Meyering  <jim@meyering.net>
65173
65174         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65175         a pointer-to-const.
65176         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65177         (register_state): Likewise.
65178         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65179         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65180         (group_nodes_into_DFAstates): Likewise.
65181
65182 2005-08-31  Jim Meyering  <jim@meyering.net>
65183
65184         * check-module: Add a FIXME comment.
65185
65186 2005-08-31  Eric Blake  <ebb9@byu.net>
65187
65188         * modules/unistd-safer (Files): Add unistd--.h.
65189         * modules/stdio-safer (Files): Add stdio--.h.
65190
65191 2005-08-31  Derek Price  <derek@ximbiot.com>
65192
65193         * lib/getdelim.c (getdelim): Return EOF on EOF.
65194         Reported by Larry Jones <lawrence.jones@ugs.com>.
65195
65196 2005-08-31  Bruno Haible  <bruno@clisp.org>
65197
65198         Avoid unnecessary diffs in the generated lib/Makefile.am.
65199         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65200         the generated files.
65201         (func_import): Don't set cmd.
65202
65203 2005-08-31  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/strstr.c: Include <stddef.h>, for NULL.
65206         * lib/strcasestr.c: Likewise.
65207         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65208
65209 2005-08-31  Bruno Haible  <bruno@clisp.org>
65210
65211         * gnulib-tool: New option --macro-prefix.
65212         (func_import): Use macro_prefix.
65213         (import): Handle option --macro-prefix.
65214
65215 2005-08-31  Bruno Haible  <bruno@clisp.org>
65216
65217         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65218         Also use new variables cached_lgpl, cached_libtool.
65219
65220 2005-08-31  Bruno Haible  <bruno@clisp.org>
65221
65222         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65223         always instantiating them.
65224
65225 2005-08-31  Bruno Haible  <bruno@clisp.org>
65226
65227         * gnulib-tool (func_import): Read the previous cached settings
65228         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65229         earlier added by gnulib but are now dropped. Warn when a gnulib file
65230         overwrites a non-gnulib file.
65231
65232 2005-08-31  Bruno Haible  <bruno@clisp.org>
65233
65234         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65235         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65236         projects that don't keep autogenerated files in CVS. Put into
65237         actioncmd only the specified modules, not the transitive closure.
65238
65239 2005-08-31  Bruno Haible  <bruno@clisp.org>
65240
65241         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65242         Create directories that shall be filled.
65243         (import): Don't look for gl_* macros in configure.ac. Recurse across
65244         all directories containing a gnulib-cache.m4 files, if meaningful.
65245
65246 2005-08-31  Bruno Haible  <bruno@clisp.org>
65247
65248         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65249         (import): Set seen_libtool when we see gl_LIBTOOL.
65250
65251 2005-08-31  Bruno Haible  <bruno@clisp.org>
65252
65253         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65254         declaration macro definitions from generated gnulib.m4.
65255
65256 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65257
65258         * lib/iconvme.h: Add prototype for iconv_alloc.
65259
65260 2005-08-29  Simon Josefsson  <jas@extundo.com>
65261
65262         * lib/iconvme.c: Fix errno.
65263
65264 2005-08-29  Bruno Haible  <bruno@clisp.org>
65265
65266         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65267         that it works when the directory contains spaces.
65268
65269 2005-08-29  Bruno Haible  <bruno@clisp.org>
65270
65271         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65272
65273 2005-08-29  Bruno Haible  <bruno@clisp.org>
65274
65275         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65276         Emit more advice.
65277
65278 2005-08-29  Bruno Haible  <bruno@clisp.org>
65279         and Stepan Kasal  <kasal@ucw.cz>
65280
65281         * check-module: If more parameters are given, check each of them
65282         separately; add more exceptions, as noted by Jim Meyering.
65283         (check_module): New procedure.
65284         (%exempt_header): Now contains all exceptions.
65285
65286 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65287
65288         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65289
65290 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65291
65292         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65293
65294 2005-08-28  Bruno Haible  <bruno@clisp.org>
65295
65296         * m4/gnulib-tool.m4: New file.
65297
65298 2005-08-27  Jim Meyering  <jim@meyering.net>
65299
65300         * modules/unistd-safer (Files): Add pipe-safer.c.
65301         * modules/fcntl-safer (Files): Add creat-safer.c.
65302
65303 2005-08-27  Jim Meyering  <jim@meyering.net>
65304
65305         * m4/stdlib-safer.m4: New file.  From coreutils.
65306         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65307         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65308         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65309         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65310         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65311
65312 2005-08-27  Jim Meyering  <jim@meyering.net>
65313
65314         * lib/fopen-safer.c: Merge minor changes from coreutils.
65315         * lib/dup-safer.c: Likewise.
65316         * lib/fd-safer.c: Likewise.
65317
65318         Merge from coreutils.
65319         * lib/stdio--.h: New file.
65320         * lib/stdlib--.h: New file.
65321         * lib/mkstemp-safer.c: New file.
65322
65323         GNU tar needs these.
65324         * lib/pipe-safer.c: New file.
65325         * lib/creat-safer.c: New file.
65326         * lib/fcntl--.h (creat): Define to creat_safer.
65327         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65328         * lib/unistd--.h (pipe): Define to pipe_safer.
65329         * lib/unistd-safer.h: Declare pipe_safer.
65330
65331 2005-08-26  Simon Josefsson  <jas@extundo.com>
65332
65333         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65334         Haible <bruno@clisp.org>.
65335
65336 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         * lib/regex_internal.h: Remove all references to
65339         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65340         or better.
65341         (bitset_not, bitset_merge, bitset_not_merge):
65342         (bitset_mask, re_string_allocate, re_string_construct):
65343         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65344         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65345         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65346         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65347         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65348         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65349         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65350         (re_acquire_state_context):
65351         Remove unnecessary forward decls.
65352         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65353         Put __attribute at function definition,
65354         now that the function decl has been removed.
65355         * lib/regex_internal.c (re_string_peek_byte_case):
65356         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65357         Likewise.
65358
65359 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65360
65361         * m4/regex.m4: Add AC_PREREQ(2.50).
65362         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65363
65364 2005-08-25  Simon Josefsson  <jas@extundo.com>
65365
65366         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65367         __fsetlocking.
65368
65369 2005-08-25  Simon Josefsson  <jas@extundo.com>
65370
65371         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65372         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65373         GLIBC specific code.
65374
65375 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65376
65377         Make regex safe for g++.  This fixes one real bug (an "err"
65378         that should have been "*err").  g++ problem reported by
65379         Sam Steingold.
65380         * lib/regex_internal.h (re_calloc): New macro, consistent with
65381         re_malloc etc.  All callers of calloc changed to use re_calloc.
65382         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65383         not int.  All callers changed.
65384         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65385         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65386         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65387         (find_recover_state): Change "err" to "*err"; this fixes what
65388         appears to be a real bug.
65389         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65390         versus int.
65391
65392 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65393
65394         * modules/regex (Depends-on): Add malloc, since the code
65395         assumes that !malloc(0) means failure.
65396
65397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65400
65401         alloca modernization/simplification for regex.
65402         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65403         needs to be at the start of the file, and can be moved into
65404         regex_internal.h and simplified.
65405         * lib/regex_internal.h: Include <alloca.h>.
65406         (__libc_use_alloca) [!defined _LIBC]: New macro.
65407         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65408         now works outside glibc.
65409
65410 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65411
65412         * config/srclist.txt: Add glibc bugs 1241, 1245.
65413
65414 2005-08-25  Jim Meyering  <jim@meyering.net>
65415
65416         * lib/open-safer.c: Include <config.h>.
65417         Otherwise, we'd lose LARGEFILE support in any file using
65418         e.g. "fcntl--.h"
65419
65420 2005-08-25  Bruno Haible  <bruno@clisp.org>
65421
65422         * m4/minmax.m4: Require autoconf 2.52.
65423         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65424         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65425         alternatives of translit over the alphabet.
65426         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65427
65428 2005-08-24  Simon Josefsson  <jas@extundo.com>
65429
65430         * tests/test-getpass.c: New file.
65431
65432 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65435         for GNU regex features.
65436
65437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65440         * lib/regex.h (regerror): Likewise.
65441
65442         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65443         requires this.  (The code never needed it.)
65444
65445         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65446         All uses of recently-renamed identifiers changed to use the new,
65447         POSIX-compliant names.  The code will build and run just fine
65448         without these changes, but it's better to eat our own dog food
65449         and use the standard-conforming names.
65450
65451         * lib/regex.h: Fix a multitude of POSIX name space violations.
65452         These changes have an effect only for programs that define
65453         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65454         do not change anything for programs compiled in the normal way.
65455         Also, there is no effect on the ABI.
65456
65457         (_REGEX_SOURCE): New macro.
65458         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65459         defined and _GNU_SOURCE is not; this fixes a name space violation.
65460
65461         Rename the following macros to obey POSIX requirements.
65462         The old names are still visible as macros if _REGEX_SOURCE is defined.
65463         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65464         RE_BACKSLASH_ESCAPE_IN_LISTS.
65465         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65466         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65467         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65468         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65469         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65470         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65471         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65472         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65473         (REG_INTERVALS): renamed from RE_INTERVALS.
65474         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65475         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65476         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65477         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65478         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65479         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65480         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65481         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65482         RE_UNMATCHED_RIGHT_PAREN_ORD.
65483         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65484         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65485         (REG_DEBUG): renamed from RE_DEBUG.
65486         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65487         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65488         unusual, since we can't clash with the POSIX REG_ICASE.
65489         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65490         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65491         (REG_NO_SUB): renamed from RE_NO_SUB.
65492         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65493         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65494         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65495         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65496         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65497         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65498         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65499         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65500         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65501         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65502         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65503         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65504         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65505         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65506         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65507         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65508         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65509         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65510         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65511         (REG_FIXED): Renamed from REGS_FIXED.
65512         (REG_NREGS): Renamed from RE_NREGS.
65513
65514         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65515         of other REG_* macros, since POSIX says the user is allowed to
65516         #undef these macros selectively.
65517
65518         (reg_errcode_t): Update comment stating what other tables need
65519         to be consistent.
65520
65521         Rename the following enum values to obey POSIX requirements.
65522         The old names are still visible as macros.
65523         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65524         is not defined, since GNU is supposed to be a superset of POSIX as
65525         much as possible, and since we want reg_errcode_t to be a signed
65526         type for implementation consistency.
65527         (_REG_NOERROR): Renamed from REG_NOERROR.
65528         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65529         (_REG_BADPAT): Renamed from REG_BADPAT.
65530         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65531         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65532         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65533         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65534         (_REG_EBRACK): Renamed from REG_EBRACK.
65535         (_REG_EPAREN): Renamed from REG_EPAREN.
65536         (_REG_EBRACE): Renamed from REG_EBRACE.
65537         (_REG_BADBR): Renamed from REG_BADBR.
65538         (_REG_ERANGE): Renamed from REG_ERANGE.
65539         (_REG_ESPACE): Renamed from REG_ESPACE.
65540         (_REG_BADRPT): Renamed from REG_BADRPT.
65541         (_REG_EEND): Renamed from REG_EEND.
65542         (_REG_ESIZE): Renamed from REG_ESIZE.
65543         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65544         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65545         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65546         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65547         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65548
65549         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65550         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65551         changed.  But support the old name if the new one is not defined
65552         and if _REGEX_SOURCE.
65553
65554         Change the following member names in struct re_pattern_buffer.
65555         The old names are still supported if !_REGEX_SOURCE.
65556         The new names are always supported, regardless of _REGEX_SOURCE.
65557         (re_buffer): Renamed from buffer.
65558         (re_allocated): Renamed from allocated.
65559         (re_used): Renamed from used.
65560         (re_syntax): Renamed from syntax.
65561         (re_fastmap): Renamed from fastmap.
65562         (re_translate): Renamed from translate.
65563         (re_can_be_null): Renamed from can_be_null.
65564         (re_regs_allocated): Renamed from regs_allocated.
65565         (re_fastmap_accurate): Renamed from fastmap_accurate.
65566         (re_no_sub): Renamed from no_sub.
65567         (re_not_bol): Renamed from not_bol.
65568         (re_not_eol): Renamed from not_eol.
65569         (re_newline_anchor): Renamed from newline_anchor.
65570
65571         Change the following member names in struct re_registers.
65572         The old names are still supported if !_REGEX_SOURCE.
65573         The new names are always supported, regardless of _REGEX_SOURCE.
65574         (rm_num_regs): Renamed from num_regs.
65575         (rm_start): Renamed from start.
65576         (rm_end): Renamed from end.
65577
65578         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65579         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65580         Prepend __ to parameter names.
65581
65582         Undo yesterday's changes.
65583
65584 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65585
65586         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65587         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65588         lib/regex.c.
65589
65590 2005-08-24  Jim Meyering  <jim@meyering.net>
65591
65592         Sync from coreutils.
65593         * m4/fcntl-safer.m4: New file.
65594
65595         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65596         and object files for this module.
65597
65598 2005-08-24  Jim Meyering  <jim@meyering.net>
65599
65600         Sync from coreutils.
65601         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65602
65603 2005-08-24  Jim Meyering  <jim@meyering.net>
65604
65605         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65606         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65607
65608 2005-08-24  Jim Meyering  <jim@meyering.net>
65609
65610         * modules/fcntl-safer: New module.
65611         * modules/fts (Depends-on): Add fcntl-safer.
65612         * MODULES.html.sh (File descriptor based Input/Output):
65613         Add fcntl-safer.
65614
65615 2005-08-24  Bruno Haible  <bruno@clisp.org>
65616
65617         Support for unit test modules.
65618         * modules/README: Mention tests modules.
65619         * modules/TEMPLATE-TESTS: New file.
65620         * gnulib-tool: New options --extract-tests-module, --with-tests and
65621         --tests-base (unused for the moment).
65622         (testsbase, inctests): New variables.
65623         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65624         (func_verify_module): Exclude TEMPLATE-TESTS.
65625         (func_verify_nontests_module, func_verify_tests_module): New functions.
65626         (func_get_dependencies): Add implicit dependency for tests modules.
65627         (func_get_tests_module): New function.
65628         (func_modules_transitive_closure): When --with-tests was specified,
65629         include the unit tests as well, unless explicitly avoided.
65630         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65631         (func_emit_tests_Makefile_am): New function.
65632         (func_create_testdir): When --with-tests was specified, emit a
65633         tests/ directory.
65634         * MODULES.html.sh (Future developments): Update.
65635
65636 2005-08-24  Bruno Haible  <bruno@clisp.org>
65637
65638         * modules/tls-tests: New file.
65639         * tests/test-tls.c: New file, from GNU gettext.
65640
65641 2005-08-24  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/lock-tests: New file.
65644         * tests/test-lock.c: New file, from GNU gettext.
65645
65646 2005-08-24  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/lock.h: Add multiple inclusion guard.
65649         * lib/tls.h: Add multiple inclusion guard.
65650
65651 2005-08-24  Bruno Haible  <bruno@clisp.org>
65652
65653         * gnulib-tool: Add support for the --aux-dir option to
65654         --create-testdir, --create-megatestdir, --test, --megatest.
65655         (func_create_testdir, func_create_megatestdir): Optionally emit a
65656         AC_CONFIG_AUX_DIR directive.
65657         (create-testdir, create-megatestdir, test, megatest): Provide a
65658         default value for $auxdir.
65659
65660 2005-08-24  Bruno Haible  <bruno@clisp.org>
65661
65662         * gnulib-tool (import): Use compound statement instead of subshell
65663         where possible.
65664
65665 2005-08-24  Bruno Haible  <bruno@clisp.org>
65666
65667         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65668
65669 2005-08-24  Bruno Haible  <bruno@clisp.org>
65670
65671         * gnulib-tool (func_version): Update.
65672
65673 2005-08-24  Bruno Haible  <bruno@clisp.org>
65674
65675         * gnulib-tool (func_import, func_create_testdir,
65676         func_create_megatestdir): Quote all autoconf macro arguments.
65677
65678 2005-08-24  Bruno Haible  <bruno@clisp.org>
65679
65680         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65681         option --force, because --force causes the aclocal.m4 of each
65682         subdirectory to be newer than the corresponding config.h.in.
65683
65684 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65687         All contents moved to gl_REGEX.
65688         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65689         assume that it does.
65690
65691 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65692
65693         * lib/regex.h (REG_NOSYS)
65694         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65695         Define, since POSIX requires it as of 2001.
65696         (_REG_ENOSYS)
65697         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65698         New private symbol, used to keep the enum signed in all cases.
65699         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65700         Youngman in
65701         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65702
65703         * lib/regex_internal.c (re_string_skip_chars, register_state):
65704         (calc_state_hash):
65705         Remove forward decls; no longer needed now that we use prototypes.
65706         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65707         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65708         (clean_state_log_if_needed): Likewise.
65709
65710 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65711
65712         * config/srclist.txt: Add glibc bugs 1231-1233.
65713
65714 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         Fix problems reported by Sam Steingold in
65717         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65718         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65719         assumed that reg_errcode_t is a signed type, which is not
65720         necessarily true if _XOPEN_SOURCE is not defined.
65721         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65722         since some compilers warn about it otherwise.
65723
65724 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65727         (init_word_char, create_initial_state, duplicate_node_closure):
65728         (fetch_token, peek_token_bracket, build_range_exp):
65729         (build_collating_symbol): Remove forward decls; no longer needed
65730         now that we use prototypes.
65731
65732         * lib/regcomp.c:
65733         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65734         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65735         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65736         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65737         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65738         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65739         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65740         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65741         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65742         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65743         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65744         (build_charclass, build_charclass_op, fetch_number, create_tree):
65745         (create_token_tree, mark_opt_subexp, duplicate_tree):
65746         Use prototypes rather than old-style definitions.
65747
65748         * lib/regex_internal.c:
65749         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65750         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65751         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65752         (re_string_reconstruct, re_string_peek_byte_case):
65753         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65754         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65755         (re_node_set_init_copy, re_node_set_add_intersect):
65756         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65757         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65758         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65759         (re_acquire_state, re_acquire_state_context, register_state):
65760         (create_ci_newstate, create_cd_newstate, free_state):
65761         Likewise.
65762         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65763         re_search_2):
65764         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65765         (re_search_internal, prune_impossible_nodes):
65766         (acquire_init_state_context, check_matching, static):
65767         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65768         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65769         (update_regs, sift_states_backward, build_sifted_states):
65770         (clean_state_log_if_needed, merge_state_array):
65771         (update_cur_sifted_state, add_epsilon_src_nodes):
65772         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65773         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65774         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65775         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65776         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65777         (check_arrival, check_arrival_add_next_nodes):
65778         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65779         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65780         (check_node_accept_bytes, check_node_accept, extend_buffers):
65781         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65782         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65783         (sift_ctx_init):
65784         Likewise.
65785
65786         * lib/regex_internal.h:
65787         (re_string_allocate, re_string_construct, re_string_reconstruct):
65788         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65789         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65790         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65791         (re_string_context_at, re_string_peek_byte_case):
65792         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65793         is defined, since we now use prototypes always.
65794
65795         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65796         C89 or better.  All uses removed.
65797
65798 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65799
65800         * config/srclist.txt: Add glibc bugs 1220-1227.
65801
65802 2005-08-20  Jim Meyering  <jim@meyering.net>
65803
65804         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65805         of unused local, dfa.
65806
65807 2005-08-20  Bruno Haible  <bruno@clisp.org>
65808
65809         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65810
65811 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65814         (re_node_set_insert_last, re_dfa_add_node):
65815         Rename local variables to avoid GCC shadowing warnings.
65816
65817 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65820         [defined lint]: Suppress bogus uninitialized-variable warnings.
65821
65822         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65823         and let the caller return REG_ESPACE if out of space.  This
65824         removes an uninitialied-variable warning with GCC 4.0.1, and also
65825         avoids taking the address of a local variable.  All callers
65826         changed.
65827
65828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65831         $LIBCSRC/posix/regexec.c.
65832         Add glibc bug 1217 for regcomp.c.
65833
65834 2005-08-19  Jim Meyering  <jim@meyering.net>
65835
65836         * lib/regexec.c (proceed_next_node): Redo local variables to
65837         avoid GCC shadowing warnings.
65838
65839 2005-08-18  Bruno Haible  <bruno@clisp.org>
65840
65841         * lib/strstr.c (strstr): Fix return value in multibyte case.
65842         * lib/strcasestr.c (strcasestr): Likewise.
65843
65844 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65845
65846         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65847
65848 2005-08-17  Jim Meyering  <jim@meyering.net>
65849
65850         Make the %s format (seconds since the epoch) work for a negative
65851         number and when used with a zero-padded field width, e.g. %015s.
65852
65853         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65854         label so that it precedes the code to set `digits'.  Otherwise,
65855         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65856         print `00-22'.  Now, it prints `-0022', as it should.
65857
65858 2005-08-17  Bruno Haible  <bruno@clisp.org>
65859
65860         * modules/strstr (Files): Add m4/mbrtowc.m4.
65861         (Depends-on): Add mbuiter.
65862
65863 2005-08-17  Bruno Haible  <bruno@clisp.org>
65864
65865         * modules/strcasestr: New file.
65866         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65867         strcasestr.
65868
65869 2005-08-17  Bruno Haible  <bruno@clisp.org>
65870
65871         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65872
65873 2005-08-17  Bruno Haible  <bruno@clisp.org>
65874
65875         * modules/mbuiter: New file.
65876         * MODULES.html.sh (Extended multibyte and wide character utilities):
65877         Add mbuiter.
65878
65879 2005-08-17  Bruno Haible  <bruno@clisp.org>
65880
65881         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65882         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65883
65884 2005-08-17  Bruno Haible  <bruno@clisp.org>
65885
65886         * m4/strcasestr.m4: New file.
65887
65888 2005-08-17  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65891         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65892
65893 2005-08-17  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/strcasestr.h: New file.
65896         * lib/strcasestr.c: New file.
65897
65898 2005-08-17  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/strcasecmp.c: Use mbuiter.h.
65901
65902 2005-08-17  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/mbuiter.h: New file.
65905
65906 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65907
65908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65909         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65910         and gl_GETOPT are both invoked via different paths (as happens
65911         with GNU tar CVS because it uses both argp and getopt), the former
65912         wins.
65913
65914 2005-08-16  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/tls: New file.
65917         * MODULES.html.sh (Multithreading): Add tls.
65918
65919 2005-08-16  Bruno Haible  <bruno@clisp.org>
65920
65921         * modules/strnlen1: New file.
65922         * MODULES.html.sh (String handling): Add strnlen1.
65923
65924 2005-08-16  Bruno Haible  <bruno@clisp.org>
65925
65926         * modules/strcase (Files): Add m4/mbrtowc.m4.
65927         (Depends-on): Add strnlen1, mbchar.
65928
65929 2005-08-16  Bruno Haible  <bruno@clisp.org>
65930
65931         * modules/mbiter: New file.
65932         * MODULES.html.sh (Extended multibyte and wide character utilities):
65933         Add mbiter.
65934
65935 2005-08-16  Bruno Haible  <bruno@clisp.org>
65936
65937         * modules/mbfile: New file.
65938         * MODULES.html.sh (Extended multibyte and wide character utilities):
65939         Add mbfile.
65940
65941 2005-08-16  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/mbchar: New file.
65944         * MODULES.html.sh (Extended multibyte and wide character utilities):
65945         New section.
65946
65947 2005-08-16  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/tls.m4: New file, from GNU gettext.
65950
65951 2005-08-16  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65954         always.
65955         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65956
65957 2005-08-16  Bruno Haible  <bruno@clisp.org>
65958
65959         * m4/mbiter.m4: New file.
65960
65961 2005-08-16  Bruno Haible  <bruno@clisp.org>
65962
65963         * m4/mbfile.m4: New file.
65964
65965 2005-08-16  Bruno Haible  <bruno@clisp.org>
65966
65967         * m4/mbchar.m4: New file.
65968
65969 2005-08-16  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/tls.h: New file, from GNU gettext.
65972         * lib/tls.c: New file, from GNU gettext.
65973
65974 2005-08-16  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/strnlen1.h: New file.
65977         * lib/strnlen1.c: New file.
65978
65979 2005-08-16  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65982         (mbi_init): Update.
65983         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65984         NUL byte, not after it.
65985
65986 2005-08-16  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/strcase.h (strcasecmp): Add note in comments.
65989         * lib/strncasecmp.c: Use code from strcasecmp.c.
65990         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65991         (strcasecmp): Work correctly in multibyte locales.
65992
65993 2005-08-16  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/mbiter.h: New file.
65996
65997 2005-08-16  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/mbfile.h: New file.
66000
66001 2005-08-16  Bruno Haible  <bruno@clisp.org>
66002
66003         * lib/mbchar.h: New file.
66004         * lib/mbchar.c: New file.
66005
66006 2005-08-16  Bruno Haible  <bruno@clisp.org>
66007
66008         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66009         the valid ones. Makes the comparison operations transitive:
66010         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66011         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66012
66013 2005-08-15  Simon Josefsson  <jas@extundo.com>
66014
66015         * modules/ssize_t (License): Change to 'unlimited'.
66016
66017         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66018
66019 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66022         Add comments for each pending glibc patch.
66023
66024 2005-08-15  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66027         __cplusplus is defined.
66028
66029 2005-08-14  Jim Meyering  <jim@meyering.net>
66030
66031         Sync from coreutils.
66032
66033         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66034         Use the hash-table-based cycle-detection code not just when
66035         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66036         Reported by James Youngman in
66037         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66038         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66039         FTS_TIGHT_CYCLE_CHECK.
66040         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66041         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66042         once again.
66043         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66044         * lib/fts.c (fd_safer): Remove decl.
66045         Include fcntl--.h rather than unistd-safer.h
66046         (fts_safe_changedir): Don't call fd_safer; no longer needed
66047         now that we include fcntl--.h.
66048
66049 2005-08-12  Simon Josefsson  <jas@extundo.com>
66050
66051         * modules/getndelim2: Use ssize_t module.
66052         * modules/getnline: Likewise.
66053         * modules/safe-read: Likewise.
66054         * modules/xreadlink: Likewise.
66055
66056         * modules/ssize_t: New file.
66057
66058 2005-08-12  Simon Josefsson  <jas@extundo.com>
66059
66060         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66061
66062 2005-08-12  Simon Josefsson  <jas@extundo.com>
66063
66064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66065         ssize_t.
66066
66067 2005-08-12  Simon Josefsson  <jas@extundo.com>
66068
66069         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66070         readline, getdelim and check_version.
66071         (Support for systems lacking ISO C 99: Sizes of integer types):
66072         Add size_max.
66073
66074 2005-08-12  Bruno Haible  <bruno@clisp.org>
66075
66076         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66077
66078 2005-08-11  Simon Josefsson  <jas@extundo.com>
66079
66080         * modules/readline: New file.
66081
66082         * modules/strnlen (Files): Add strnlen.h.
66083
66084 2005-08-11  Simon Josefsson  <jas@extundo.com>
66085
66086         * m4/readline.m4: New file.
66087
66088 2005-08-11  Simon Josefsson  <jas@extundo.com>
66089
66090         * lib/readline.h, readline.c: New file.
66091
66092 2005-08-11  Simon Josefsson  <jas@extundo.com>
66093
66094         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66095         gl_AVOID.
66096
66097 2005-08-11  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66100
66101 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66102
66103         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66104
66105 2005-08-10  Simon Josefsson  <jas@extundo.com>
66106
66107         * tests/test-iconvme.c: New file.
66108
66109 2005-08-10  Simon Josefsson  <jas@extundo.com>
66110
66111         * m4/strnlen.m4: New file.
66112
66113         * m4/strndup.m4: Don't check for strnlen declaration, done in
66114         strnlen.m4.
66115
66116 2005-08-10  Simon Josefsson  <jas@extundo.com>
66117
66118         * lib/strndup.c: Use strnlen.h.
66119
66120         * lib/strnlen.h: New file.
66121
66122 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66123
66124         * README: Typos.
66125
66126 2005-08-02  Simon Josefsson  <jas@extundo.com>
66127
66128         * modules/readline: New file.
66129
66130 2005-08-02  Simon Josefsson  <jas@extundo.com>
66131
66132         * modules/getdelim: New file.
66133
66134         * modules/getline: Rewrite, don't use getndelim2.
66135
66136 2005-08-02  Simon Josefsson  <jas@extundo.com>
66137
66138         * m4/getline.m4: Separate out getdelim stuff into separate module.
66139
66140         * m4/getdelim.m4: New file.
66141
66142 2005-08-02  Simon Josefsson  <jas@extundo.com>
66143
66144         * lib/getline.h, getline.c: Rewrite.
66145
66146         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66147
66148 2005-07-31  Bruno Haible  <bruno@clisp.org>
66149
66150         * lib/lock.h (gl_lock_initializer): New macro.
66151         (gl_lock_define_initialized): Use it.
66152         (gl_rwlock_initializer): New macro.
66153         (gl_rwlock_define_initialized): Use it.
66154         (gl_recursive_lock_initializer): New macro.
66155         (gl_recursive_lock_define_initialized): Use it.
66156
66157 2005-07-30  Karl Berry  <karl@gnu.org>
66158
66159         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66160         Report from Ben Pfaff, regarding getopt.
66161
66162 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66165         normal way.
66166         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66167         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66168         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66169         (gl_GETOPT): Use the new macros.  Most of the implementation
66170         is moved to the new macros.  This is for programs like Emacs
66171         that don't want all the functionality of gl_GETOPT.
66172
66173 2005-07-26  Bruno Haible  <bruno@clisp.org>
66174
66175         * m4/lock.m4: Update from GNU gettext.
66176
66177 2005-07-26  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/lock.h: Update from GNU gettext.
66180         * lib/lock.c: Update from GNU gettext.
66181
66182 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66185         obsolescent AC_TRY_RUN.  Include the default includes files, for
66186         'exit'.
66187
66188 2005-07-24  Bruno Haible  <bruno@clisp.org>
66189
66190         * modules/visibility: New file.
66191         * MODULES.html.sh (Misc): Add visibility.
66192
66193 2005-07-24  Bruno Haible  <bruno@clisp.org>
66194
66195         * m4/visibility.m4: New file.
66196
66197 2005-07-24  Bruno Haible  <bruno@clisp.org>
66198
66199         * doc/visibility.texi: New file.
66200
66201 2005-07-22  Bruno Haible  <bruno@clisp.org>
66202
66203         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66204         $(ALLOCA_H), redundant through BUILT_SOURCES.
66205         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66206         redundant through BUILT_SOURCES.
66207         * modules/byteswap (Makefile.am): Remove explicit dependency on
66208         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66209         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66210         $(FNMATCH_H), redundant through BUILT_SOURCES.
66211         * modules/getopt (Makefile.am): Remove explicit dependency on
66212         $(GETOPT_H), redundant through BUILT_SOURCES.
66213         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66214         redundant through BUILT_SOURCES.
66215         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66216         redundant through BUILT_SOURCES.
66217         * modules/stdbool (Makefile.am): Remove explicit dependency on
66218         $(STDBOOL_H), redundant through BUILT_SOURCES.
66219         * modules/stdint (Makefile.am): Remove explicit dependency on
66220         $(STDINT_H), redundant through BUILT_SOURCES.
66221         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66222         Remove explicit dependency on $(SYSEXITS_H).
66223         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66224
66225 2005-07-18  Simon Josefsson  <jas@extundo.com>
66226
66227         * lib/check-version.c (check_version): Accept identical versions too.
66228
66229 2005-07-18  Bruno Haible  <bruno@clisp.org>
66230
66231         * modules/lock: New file.
66232         * MODULES.html.sh (Multithreading): New section.
66233
66234 2005-07-18  Bruno Haible  <bruno@clisp.org>
66235
66236         * m4/lock.m4: New file, from GNU gettext.
66237
66238 2005-07-18  Bruno Haible  <bruno@clisp.org>
66239
66240         * lib/lock.h: New file, from GNU gettext.
66241         * lib/lock.c: New file, from GNU gettext.
66242
66243 2005-07-18  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/lock.h (gl_once_t): New type.
66246         (gl_once_define, gl_once): New macros.
66247         * lib/lock.c (fresh_once): New variable.
66248         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66249         functions.
66250
66251 2005-07-16  Simon Josefsson  <jas@extundo.com>
66252
66253         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66254         workaround, suggested by Bruno.
66255
66256 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66257
66258         * modules/xalloc (Depends-on): Add xalloc-die.
66259         * modules/xvasprintf (Depends-on): Add xalloc-die.
66260
66261 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66264         with a minor change.
66265
66266 2005-07-15  Bruno Haible  <bruno@clisp.org>
66267
66268         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66269         When using lib/poll.c, define poll as rpl_poll.
66270
66271 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66272
66273         * modules/argp (Depends-on): Remove unlocked-io.
66274
66275 2005-07-14  Derek Price  <derek@ximbiot.com>
66276
66277         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66278         for glob symlink bug.
66279
66280 2005-07-14  Bruno Haible  <bruno@clisp.org>
66281
66282         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66283         Instead, test for *_unlocked function declarations directly.
66284
66285 2005-07-11  Simon Josefsson  <jas@extundo.com>
66286
66287         * modules/size_max: New file.
66288
66289         * modules/xsize: Depend on size_max module for size_max.m4.
66290
66291 2005-07-11  Simon Josefsson  <jas@extundo.com>
66292
66293         * lib/size_max.h: New file.
66294
66295 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66298         copyright symbol and the year.
66299         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66300         (version_etc_va): Use parameterized copyright notice.
66301         Reword to conform to the current GNU coding standards.
66302
66303 2005-07-11  Karl Berry  <karl@gnu.org>
66304
66305         * doc/gnulib.texi (Quoting): new node.
66306         (Initial import): more info, from Patrice.
66307
66308 2005-07-11  Bruno Haible  <bruno@clisp.org>
66309
66310         * gnulib-tool (func_usage): Document option --avoid.
66311         (Command line options): Handle --avoid.
66312         (func_acceptable): New function.
66313         (func_modules_transitive_closure): Use it.
66314
66315 2005-07-11  Bruno Haible  <bruno@clisp.org>
66316
66317         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66318         Reported by Jim Meyering.
66319
66320 2005-07-10  Bruno Haible  <bruno@clisp.org>
66321
66322         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66323         Needed when size_t is smaller than 'unsigned int'.
66324         Reported by Paul Eggert.
66325
66326 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66327
66328         * modules/argp (Depends-on): Add unlocked-io
66329
66330 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66331
66332         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66333         block of defines.
66334
66335 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66338         fix now.
66339
66340 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66341         and Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66344         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66345
66346 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * modules/regex (Files): Add lib/regex_internal.c,
66349         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66350         (Depends-on): Add extensions.
66351         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66352
66353 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66356         pathconf.
66357         * m4/same.m4 (gl_SAME): Likewise.
66358         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66359
66360         * m4/regex.m4: Adjust to new libc regex implementation.
66361         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66362         all the .c and .h parts of (the new) regex.
66363         Quote the m4 stuff better.
66364         Check for RE_ICASE bug of old gnulib.
66365         Check for REG_STARTEND of recent libc.
66366         Rename local variables from jm_* to gl_*.
66367         Quote operand of "test -f".
66368         Say "recent enough" version of libc, not "version 2".
66369         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66370         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66371         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66372         Remove check for btowc, isascii.
66373         Require AM_LANGINFO_CODESET.
66374
66375 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66376
66377         * lib/regex.c, regex.h: Sync from libc.
66378         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66379         * lib/regexec.c:
66380         New files, synced from libc, except that regex_internal.h
66381         currently has a small porting fix.
66382
66383 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66384
66385         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66386         regex_internal.c, regexec.c.
66387         Add regex_internal.h too, but as a comment, since the libc version
66388         is currently broken in gnulib mode.
66389
66390 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         Support programs like Emacs that use gnulib but not gettext.
66393         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66394         * modules/gettext-h: New file.
66395         * modules/gettext (Files): Remove lib/gettext.h.
66396         (Depends-on): Add gettext-h.
66397         (Makefile.am): Remove lib_SOURCES.
66398         * modules/argmatch, modules/c-stack, modules/closeout:
66399         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66400         * modules/execute, modules/file-type, modules/getaddrinfo:
66401         * modules/getopt, modules/human, modules/javacomp:
66402         * modules/javaexec, modules/mkdir-p, modules/obstack:
66403         * modules/openat, modules/pagealign_alloc, modules/pipe:
66404         * modules/quotearg, modules/regex, modules/rpmatch:
66405         * modules/unicodeio, modules/userspec, modules/version-etc:
66406         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66407         * modules/xsetenv:
66408         Depend on gettext-h, not gettext.
66409
66410 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * gnulib-tool (func_import): Add support for 'public domain' license.
66413         * modules/alloca, modules/atexit, modules/memmove:
66414         Now public domain, not GPL.
66415         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66416         * modules/realloc, modules/strerror, modules/strtod:
66417         Now LGPL, not GPL.
66418
66419 2005-07-05  Bruno Haible  <bruno@clisp.org>
66420
66421         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66422         autoconf CVS. Needed for mingw.
66423
66424 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         Remove the dependency of the strftime module on the tzset module.
66427         * modules/strftime (Depends-on): Remove dependency on tzset.
66428
66429 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         Remove the dependency of the strftime module on the tzset module.
66432         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66433         gl_FUNC_TZSET_CLOBBER.
66434
66435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         Remove the dependency of the strftime module on the tzset module.
66438         * lib/strftime.c (my_strftime)
66439         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66440         Copy the input structure, to work around some of the bug with
66441         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66442         Solaris releases, you should also use the tzset module, but we won't
66443         require it as a dependency any more since we don't want LGPLed code
66444         to depend on GPLed code.
66445
66446 2005-07-02  Jim Meyering  <jim@meyering.net>
66447
66448         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66449         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66450         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66451         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66452
66453 2005-07-02  Jim Meyering  <jim@meyering.net>
66454
66455         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66456
66457 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66460         declares only 'struct timespec;' (!).
66461
66462 2005-07-01  Jim Meyering  <jim@meyering.net>
66463
66464         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66465         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66466         * lib/save-cwd.c, tempname.c:
66467         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66468         and don't include <sys/file.h>).
66469
66470 2005-06-29  Jim Meyering  <jim@meyering.net>
66471
66472         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66473         type name.  Use the variable name instead.
66474         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66475         Likewise.
66476
66477 2005-06-28  Simon Josefsson  <jas@extundo.com>
66478
66479         * modules/check-version (Files): Add check-version.m4.
66480
66481 2005-06-28  Simon Josefsson  <jas@extundo.com>
66482
66483         * m4/check-version.m4: New file, suggested by Jim Meyering
66484         <jim@meyering.net>.
66485
66486 2005-06-28  Simon Josefsson  <jas@extundo.com>
66487
66488         * lib/check-version.h, lib/check-version.c: New files.
66489
66490 2005-06-28  Simon Josefsson  <jas@extundo.com>
66491
66492         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66493         collision with global variable.  Better indentation.  Don't
66494         increment buffer pointer beyond buffer end.  Based on comments
66495         from Paul Eggert <eggert@cs.ucla.edu>.
66496
66497         * lib/base64.h: Indent.
66498
66499 2005-06-28  Simon Josefsson  <jas@extundo.com>
66500
66501         * doc/gnulib.texi (Library version handling): New section.
66502
66503 2005-06-28  Jim Meyering  <jim@meyering.net>
66504
66505         * check-module (find_included_lib_files): Hard-code another
66506         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66507         but modules/fts-lgpl (correctly) does not list those files.
66508
66509         * modules/canonicalize (Files): Add lib/pathmax.h.
66510
66511 2005-06-25  Simon Josefsson  <jas@extundo.com>
66512
66513         * modules/check-version: New file.
66514
66515 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66516
66517         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66518         initializer of struct addrinfo, as an indication that we don't
66519         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66526         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66527         * m4/stat.m4: Remove this file.
66528
66529 2005-06-24  Derek Price  <derek@ximbiot.com>
66530         and Bruno Haible  <bruno@clisp.org>
66531
66532         Remove stat module & update lstat.
66533         * lib/stat.c: Remove this file...
66534         (slash_aware_lstat): ...moving this content and its support...
66535         * lib/lstat.c (rpl_lstat): ...into here.
66536         * lib/lstat.h: New file.
66537
66538 2005-06-24  Derek Price  <derek@ximbiot.com>
66539         and Bruno Haible  <bruno@clisp.org>
66540
66541         Remove stat module & update lstat.
66542         * config/srclist.txt (libc sources): Remove stat.
66543
66544 2005-06-24  Derek Price  <derek@ximbiot.com>
66545         and Bruno Haible  <bruno@clisp.org>
66546
66547         Remove stat module & update lstat.
66548         * MODULES.html.sh (stat): Remove.
66549         * MODULES.html: Regenerated.
66550         * modules/lstat (Description): Correct function name.
66551         (Files): Add "lstat.h".
66552         (Depends-on): Remove stat, add xalloc, stat-macros.
66553         * modules/stat: Remove this file.
66554         (Include): Add "lstat.h", remove <sys/stat.h>.
66555
66556 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66557
66558         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66559         (ranged_convert): Don't save conversion in a temporary struct.
66560         This causes a warning with GCC 4.0.0, and anyway in the typical
66561         case it's not worth the extra 100 bytes or so of code.
66562         (ranged_convert, __mktime_internal): When calling a function via a
66563         pointer P, use P () rather than (*P) (), as we now assume C89 or
66564         better.
66565
66566 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66569         "who -r" failed to give output.  Problem reported by Tim Waugh.
66570
66571         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66572         (xcalloc): Use it to avoid needless tests.
66573         Problem reported by Jim Meyering.
66574
66575 2005-06-20  Derek Price  <derek@ximbiot.com>
66576
66577         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66578         unnecessary for Autoconfs > 2.59c.
66579
66580 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66581
66582         * lib/argp.h (__option_is_short): Check upper limit of
66583         __key. Isprint() requires its argument to have the value
66584         of an unsigned char or EOF.
66585
66586 2005-06-16  Jim Meyering  <jim@meyering.net>
66587
66588         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66589         when either N or S is zero.
66590
66591 2005-06-16  Derek Price  <derek@ximbiot.com>
66592
66593         * m4/bison.m4: Declare YACC & YFLAGS precious.
66594
66595 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66596
66597         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66598         multibyte string or pattern, fall back on unibyte matching.
66599         Problem reported by James Youngman.
66600
66601 2005-06-08  Bruno Haible  <bruno@clisp.org>
66602
66603         * modules/csharpcomp: New file.
66604         * MODULES.html.sh (C#): Add csharpcomp.
66605
66606 2005-06-08  Bruno Haible  <bruno@clisp.org>
66607
66608         * m4/csharpcomp.m4: New file, from GNU gettext.
66609
66610 2005-06-08  Bruno Haible  <bruno@clisp.org>
66611
66612         * lib/csharpcomp.h: New file, from GNU gettext.
66613         * lib/csharpcomp.c: New file, from GNU gettext.
66614         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66615
66616 2005-06-08  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66619         warning on mingw.
66620
66621 2005-06-07  Derek Price  <derek@ximbiot.com>
66622
66623         Sync from CVS.
66624         * lib/glob_.h: Indent nested #ifdef.
66625
66626 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         Sync from coreutils.
66629         Use "file name" when talking about file names, instead of "filename"
66630         or "path", as per the GNU coding standards.
66631         * lib/mkdir-p.c: Renamed from makepath.c.
66632         (make_dir_parents): Renamed from make_path.  All callers changed.
66633         * lib/mkdir-p.h: Likewise.  All includers changed.
66634         * lib/filenamecat.c: Renamed from path-concat.c.
66635         (file_name_concat): Renamed from path_concat.  All callers changed.
66636         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66637         * lib/filenamecat.h: Likewise.  All includers changed.
66638         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66639         in comments or local variable names.
66640         * lib/basename.c: Likewise.
66641         * lib/canonicalize.c, canonicalize.h: Likewise.
66642         * lib/dirname.c, dirname.h: Likewise.
66643         * lib/euidaccess.c: Likewise.
66644         * lib/exclude.c: Likewise
66645         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66646         * lib/fsusage.c, fsuage.h: Likewise.
66647         * lib/fts.c, fts_.h: Likewise.
66648         * lib/getcwd.c: Likewise.
66649         * lib/getloadavg.c: Likewise.
66650         * lib/mkstemp.c: Likewise.
66651         * lib/mountlist.c, mountlist.h: Likewise.
66652         * lib/openat.c, openat.h: Likewise.
66653         * lib/readlink-stub.c: Likewise.
66654         * lib/readutmp.c, readutmp.h: Likewise.
66655         * lib/rename.c: Likewise.
66656         * lib/rmdir.c: Likewise.
66657         * lib/same.c: Likewise.
66658         * lib/savedir.c: Likewise.
66659         * lib/stripslash.c: Likewise.
66660         * lib/tempname.c: Likewise.
66661         * lib/xreadlink.c: Likewise.
66662         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66663         All uses changed.
66664         * lib/exclude.h: Likewise.
66665
66666         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66667         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66668         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66669         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66670         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66671         files have been getting away with it for years (MORE/BSD 4.3
66672         is extinct now).
66673         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66674         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66675
66676         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66677         Define to 256, not 255, as per modern POSIX.
66678
66679 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66680
66681         Sync from coreutils.
66682         Use "file name" when talking about file names, instead of "filename"
66683         or "path", as per the GNU coding standards.
66684         * MODULES.html.sh: mkdir-p renamed from makepath.
66685         filenamecat renamed from path-concat.
66686         * modules/filenamecat: Renamed from modules/path-concat.
66687         (Files): filenamecat.h and filenamecat.c renamed from
66688         path-concat.h and path-concat.c.
66689         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66690         (Include): filenamecat.h, not path-concat.h.
66691         * modules/mkdir-p: Renamed from modules/makepath.
66692         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66693         makepath.c.
66694         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66695         (Include): mkdir-p.h, not makepath.h.
66696
66697 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         Sync from coreutils.
66700         * m4/mkdir-p.m4: Renamed from makepath.m4.
66701         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66702         Rename files from makepath.c to mkdir-p.c, and from
66703         makepath.h to mkdir-p.h.
66704         * m4/filenamecat.m4: Renamed from path-concat.m4.
66705         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66706         Rename files from path-concat.c to filenamecat.c,
66707         and from path-concat.h to filenamecat.h.
66708         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66709         "file name" in local variables or comments.
66710         * m4/rename.m4: Likewise.
66711
66712 2005-06-01  Bruno Haible  <bruno@clisp.org>
66713
66714         * modules/csharpexec: New file.
66715         * MODULES.html.sh (C#): New section.
66716
66717 2005-06-01  Bruno Haible  <bruno@clisp.org>
66718
66719         * m4/csharp.m4: New file, from GNU gettext.
66720         * m4/csharpexec.m4: New file, from GNU gettext.
66721
66722 2005-06-01  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/csharpexec.h: New file, from GNU gettext.
66725         * lib/csharpexec.c: New file, from GNU gettext.
66726         * lib/csharpexec.sh.in: New file, from GNU gettext.
66727
66728 2005-05-31  Derek Price  <derek@ximbiot.com>
66729             Paul Eggert  <eggert@cs.ucla.edu>
66730
66731         Sync from cvs.
66732         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66733
66734 2005-05-31  Derek Price  <derek@ximbiot.com>
66735             Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         Sync from cvs.
66738         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66739
66740 2005-05-29  Derek Price  <derek@ximbiot.com>
66741
66742         * config/srclist.txt (glob_.h, glob.c): Add these files.
66743
66744 2005-05-29  Derek Price  <derek@ximbiot.com>
66745
66746         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66747         * modules/glob: New file.
66748         * modules/getlogin_r: Add link to POSIX spec in description.
66749
66750 2005-05-29  Derek Price  <derek@ximbiot.com>
66751             Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         * m4/glob.m4: New file.
66754
66755 2005-05-29  Derek Price  <derek@ximbiot.com>
66756             Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * lib/glob_.h, lib/glob.c: New files.
66759
66760 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66763         * modules/fts-lgpl (Depends-on): Remove gettext.
66764
66765 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66766
66767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66768         and don't require gt_INTTYPES_PRI.
66769
66770 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66773
66774         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66775         the configuration hassle isn't worth it.
66776         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66777         (LONGEST_MODIFIER, PRIuMAX): Remove.
66778
66779 2005-05-27  Bruno Haible  <bruno@clisp.org>
66780
66781         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66782
66783 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66786         _POSIX_PTHREAD_SEMANTICS for Solaris.
66787
66788 2005-05-25  Derek Price  <derek@ximbiot.com>
66789
66790         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66791
66792 2005-05-25  Derek Price  <derek@ximbiot.com>
66793             Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66796         * lib/getlogin_r.c, getlogin_r.h: New files.
66797
66798 2005-05-25  Bruno Haible  <bruno@clisp.org>
66799             Derek Price  <derek@ximbiot.com>
66800
66801         * lib/getlogin_r.h: Simplify API documentation.
66802
66803 2005-05-23  Derek Price  <derek@ximbiot.com>
66804
66805         * modules/minmax (Files): Add m4/minmax.m4.
66806         (configure.ac): Add gl_MINMAX.
66807
66808 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66809
66810         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66811         so that unistd-safer.h (GPL'ed code) need not be included.
66812
66813 2005-05-22  Bruno Haible  <bruno@clisp.org>
66814
66815         * m4/minmax.m4: New file.
66816         Based on a patch by Derek Price <derek@ximbiot.com>.
66817
66818 2005-05-22  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66821         (INT64_MIN): Fix definition.
66822         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66823
66824         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66825         NEED_SIGNED_INT_TYPES.
66826
66827         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66828         HAVE_SYSTEM_INTTYPES.
66829
66830 2005-05-22  Bruno Haible  <bruno@clisp.org>
66831
66832         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66833         Also include <sys/param.h> if it defines MIN, MAX.
66834         Based on a patch by Derek Price <derek@ximbiot.com>.
66835
66836 2005-05-21  Jim Meyering  <jim@meyering.net>
66837
66838         * modules/fts (Files): Add m4/inttypes-pri.m4.
66839         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66840
66841 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66842
66843         New fts module.
66844         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66845         (setup_dir, free_dir): New functions.
66846         (enter_dir, leave_dir): Define trivial
66847         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66848         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66849         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66850         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66851         Move to fts-cycle.c.
66852         (fts_open): Use setup_dir.
66853         (fts_close): Use free_dir.
66854         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66855         This adds a label and some gotos, but the alternatives were messier.
66856         Check for memory allocation failure when entering a dir.
66857         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66858         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66859         (FTS): New member fts_cycle, that is a union that contains the
66860         old active_dir_ht and cycle_state.  All uses changed to mention
66861         fts_cycle.ht and fts_cycle.state.
66862         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66863         fts.c, with the following changes:
66864         (setup_dir, free_dir): New functions.
66865         (enter_dir): Now returns bool.  Return true if successful, false
66866         if memory exhausted.  All callers changed.
66867         Do not bother partly cleaning up on
66868         memory allocation failure; that is free_dir's job.
66869         However, free ad if hash_insert fails, to avoid memory leak.
66870         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66871         fts->fts_options to see which union member to use.
66872
66873 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66876         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66877
66878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66881
66882 2005-05-20  Jim Meyering  <jim@meyering.net>
66883
66884         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66885         Now a macro, to pacify GCC.
66886
66887 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66888
66889         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66890         of -1.
66891
66892 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66893
66894         * lib/chown.c (rpl_chown): Return -1 on failure.
66895
66896 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66897
66898         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66899         Don't check for stddef.h.
66900         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66901         don't use its results.
66902         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66903         since we include them unconditionally.  Don't require
66904         AM_STDBOOL_H, since stdbool is a prerequisite.
66905         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66906         since we assume C89 or better.
66907         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66908         as we don't use their results.
66909         Don't check for fchdir, memmove, memset, strrchr, as we use
66910         them unconditionally.
66911         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66912         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66913
66914 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66915
66916         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66917         Include <stddef.h> unconditionally, since we assume C89 now.
66918         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66919         * lib/fts.c: Include fts_.h first, to check interface.
66920         Do not include intprops.h; no longer needed.
66921         Include cycle-check.h and hash.h, since fts_.h no longer does.
66922         Remove unnecessary casts of closedir to void.
66923         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66924         decide whether to decrement nlinks.
66925         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66926         (FTS): Use struct hash_table * instead of Hash_table, so that
66927         we no longer need to include hash.h here.
66928
66929 2005-05-18  Jim Meyering  <jim@meyering.net>
66930
66931         * modules/dirfd (License): Change to LGPL.  Most of the code
66932         is already in the public domain.
66933
66934 2005-05-18  Jim Meyering  <jim@meyering.net>
66935
66936         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66937         Reported by Yoann Vandoorselaere.
66938
66939 2005-05-17  Jim Meyering  <jim@meyering.net>
66940
66941         * m4/fts.m4: New file, from coreutils.
66942
66943 2005-05-17  Jim Meyering  <jim@meyering.net>
66944
66945         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66946
66947 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66948
66949         Sync from coreutils.
66950         * m4/unlinkdir.m4: New file.
66951
66952 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         Sync from coreutils.
66955         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66956         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66957         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66958         White space changes only.
66959         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66960         special.
66961         * lib/yesno.c: Include getline.h, not ctype.h.
66962         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66963         Use getline to remove arbitrary restriction on response length.
66964
66965 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         * config/srclist-update: Spell out "Street" in FSF postal
66968         mail address; this is the style the FSF seems to prefer.
66969
66970         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66971         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66972         this updates FSF postal mail address.
66973
66974         Sync from coreutils.
66975         * modules/unlinkdir: New file.
66976         * modules/yesno (Depends-on): Add getline.
66977         * MODULES.html.sh (File system functions): Add unlinkdir.
66978
66979 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66982         lib/strsep.h:
66983         Change the initial comment to refer to GPL, not LGPL.
66984         gnulib-tool will change it to LGPL as needed.
66985
66986         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66987         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66988         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66989         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66990         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66991         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66992         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66993         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66994         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66995         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66996         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66997         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66998         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66999         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67000         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67001         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67002         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67003         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67004         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67005         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67006         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67007         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67008         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67009         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67010         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67011         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67012         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67013         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67014         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67015         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67016         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67017         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67018         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67019         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67020         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67021         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67022         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67023         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67024         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67025         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67026         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67027         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67028         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67029         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67030         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67031         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67032         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67033         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67034         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67035         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67036         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67037         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67038         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67039         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67040         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67041         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67042         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67043         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67044         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67045         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67046         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67047         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67048         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67049         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67050         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67051         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67052         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67053         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67054         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67055         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67056         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67057         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67058         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67059         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67060         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67061         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67062         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67063         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67064         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67065         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67066         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67067         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67068         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67069         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67070         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67071         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67072         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67073         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67074         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67075         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67076         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67077         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67078         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67079         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67080         lib/yesno.c, lib/yesno.h:
67081         Update FSF postal mail address.
67082
67083 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67086         tests/test-memmem.c, tests/test-stpncpy.c:
67087         Update FSF postal mail address.
67088
67089 2005-05-13  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67092         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67093         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67094         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67095         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67096         Add support for 64-bit integers in the MSVC compiler.
67097
67098 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67099
67100         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67101
67102 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67103
67104         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67105
67106 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * doc/getdate.texi (General date syntax): Don't say that date
67109         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67110         Problem reported by Nic Ferrier.
67111
67112 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67113
67114         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67115         specified in ai_socktype. Fix invalid ai_protocol
67116         check. ai_protocol is usually set to 0 or depending on
67117         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67118         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67119         ai_socktype / ai_protocol in the returned addrinfo structure.
67120
67121 2005-05-10  Simon Josefsson  <jas@extundo.com>
67122
67123         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67124         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67125
67126 2005-05-10  Karl Berry  <karl@gnu.org>
67127
67128         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67129         (from http://www.gnu.org/licenses).
67130         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67131         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67132         fdl.texi suffices.
67133
67134 2005-05-10  Karl Berry  <karl@gnu.org>
67135
67136         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67137         (COPYING.DOC): remove.
67138
67139         * config/srclist-update: new FSF address.
67140
67141 2005-05-10  Derek Price  <derek@ximbiot.com>
67142
67143         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67144         possible.
67145
67146 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67147             Bruno Haible  <bruno@clisp.org>
67148
67149         * modules/inet_ntop: New file.
67150         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67151         inet_ntop.
67152
67153 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67154             Bruno Haible  <bruno@clisp.org>
67155
67156         * m4/inet_ntop.m4: New file.
67157
67158 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67159             Bruno Haible  <bruno@clisp.org>
67160
67161         * lib/inet_ntop.h: New file.
67162         * lib/inet_ntop.c: New file, from glibc with modifications.
67163
67164 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67165
67166         * modules/time_r (License): Change to LGPL.
67167         * modules/extensions (License): Change to LGPL.  Actually,
67168         the license is more permissive than that, but currently gnulib-tool
67169         doesn't know how to handle more-permissive licenses.
67170
67171         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67172         Problem reported by Dave Love.
67173
67174 2005-05-08  Jim Meyering  <jim@meyering.net>
67175
67176         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67177         blank.
67178
67179 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         * modules/argmatch (Depends-on): Add stdbool.
67182         * modules/backupfile (Depends-on): Likewise.
67183         * modules/chdir-long (Depends-on): Likewise.
67184         * modules/closeout (Depends-on): Likewise.
67185         * modules/cycle-check (Depends-on): Likewise.
67186         * modules/dirname (Depends-on): Likewise.
67187         * modules/fnmatch (Depends-on): Likewise.
67188         * modules/fsusage (Depends-on): Likewise.
67189         * modules/fwriteerror (Depends-on): Likewise.
67190         * modules/getcwd (Depends-on): Likewise.
67191         * modules/getloadavg (Depends-on): Likewise.
67192         * modules/hard-locale (Depends-on): Likewise.
67193         * modules/makepath (Depends-on): Likewise.
67194         * modules/mountlist (Depends-on): Likewise.
67195         * modules/nanosleep (Depends-on): Likewise.
67196         * modules/posixtm (Depends-on): Likewise.
67197         * modules/quotearg (Depends-on): Likewise.
67198         * modules/readtokens (Depends-on): Likewise.
67199         * modules/readtokens0 (Depends-on): Likewise.
67200         * modules/readutmp (Depends-on): Likewise.
67201         * modules/save-cwd (Depends-on): Likewise.
67202         * modules/strftime (Depends-on): Likewise.
67203         * modules/userspec (Depends-on): Likewise.
67204         * modules/utimecmp (Depends-on): Likewise.
67205         * modules/xgetcwd (Depends-on): Likewise.
67206         * modules/xnanosleep (Depends-on): Likewise.
67207         * modules/xstrtod (Depends-on): Likewise.
67208         * modules/yesno (Depends-on): Likewise.
67209
67210 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67213         needless checks.
67214
67215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67216
67217         Merge from coreutils.  Among other things,
67218         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67219         * lib/fd-safer.c: New file.
67220         * lib/fcntl-safer.h, open-safer.c: Remove.
67221         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67222         * lib/dup-safer.c: Include unistd-safer.h first.
67223         Don't include errno.h.
67224         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67225         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67226         * lib/file-type.c: Rely on file-type.h change.
67227         * lib/getloadavg.c: Include unistd-safer.h.
67228         (getloadavg): Use safer open.
67229         * lib/getusershell.c: Include "stdio-safer.h".
67230         (getusershell): Use safer fopen.
67231         * lib/long-options.c (long_options): Use NULL rather than 0.
67232         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67233         'free'.
67234         * lib/modechange.c: Likewise.
67235         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67236         (MODE_DONE): New constant.
67237         (struct mode_change): Remove 'next' member.
67238         (make_node_op_equals): New function; like the old one of the
67239         same name, except it allocates an array.
67240         (mode_compile, mode_create_from_ref): Use it.
67241         (mode_compile): Allocate result as an array, not a linked list.
67242         Parse octal string ourself, so that we catch mistakes like "+0".
67243         (mode_adjust): Arg is an array, not a linked list.
67244         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67245         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67246         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67247         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67248         Remove.  This is now stat-macros.h's job.
67249         (talloc): Remove.  All callers replaced by xalloc, so that
67250         our invokers don't have to worry about reporting memory failures.
67251         (make_node_op_equals): Remove.
67252         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67253         New constants.
67254         (struct mode_change): Moved here from modechange.h.
67255         (mode_append_entry): Remove.
67256         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67257         apps to have incorrect behavior.  Use simpler algorithm for head
67258         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67259         Detect more invalid usages rather than having somewhat-random behavior.
67260         Don't insert an "a=" action, as that leads to incorrect behavior.
67261         (mode_compile, mode_create_from_ref): Return NULL on error instead
67262         of an enum, since now there's only one way to have an error.  All
67263         callers changed.
67264         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67265         at the correct time.  Simplify calculation of "+u" and its ilk.
67266         Don't mishandle "+X".
67267         (mode_free): Remove "register" and localize decls.
67268         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67269         (struct mode_change): Move to modechange.c; callers don't
67270         need to see this stuff.
67271         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67272         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67273         (mode_change, mode_adjust): Reflect the new signatures noted above.
67274         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67275         that might redefine system include files.
67276         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67277         (my_usleep): Use NULL rather than (void *) 0.
67278         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67279         Use siginterrupt to specify that system calls should be interrupted.
67280         (rpl_nanosleep): Move initialization of suspended closer to call of
67281         my_usleep.
67282         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67283         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67284         (desirable_utmp_entry): New function.
67285         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67286         using x2nrealloc, to simplify logic.
67287         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67288         size calculation.  Do not assume utmp file is a regular file.
67289         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67290         (READ_UTMP_CHECK_PIDS): New constant.
67291         * lib/save-cwd.c: Include unistd-safer.h.
67292         (save_cwd): Use fd_safer.
67293         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67294         [!_LIBC] Include "stat-macros.h" instead.
67295         * lib/unistd-safer.h (fd_safer): New decl.
67296
67297 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67298
67299         * modules/getloadavg (Depends-on): Add unistd-safer.
67300         * modules/getusershell (Depends-on): Add stdio-safer.
67301         * modules/lstat (Depends-on): Remove xalloc.
67302         * modules/mkstemp (Depends-on): Add stat-macros.
67303         * modules/modechange (Depends-on): Remove xstrtol.
67304         Add stat-macros, xalloc.
67305         * modules/save-cwd (Depends-on): Add unistd-safer.
67306         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67307         * modules/unistd-safer (Files): Add lib/fd-safer.c
67308         (Makefile.am): Remove lib_SOURCES.
67309
67310         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67311         Remove fcntl-safer; unistd-safer supersedes it.
67312
67313 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67316         AC_HEADER_STAT.
67317         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67318         (gl_PREREQ_CHOWN): Remove.
67319         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67320         it.  Don't require AC_HEADER_STAT.
67321         (gl_PREREQ_LSTAT): Remove.
67322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67323         Don't require AC_HEADER_STAT.
67324         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67325         (gl_PREREQ_RMDIR): Remove.
67326         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67327         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67328         the stat-macros module a prerequisite.
67329         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67330         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67331         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67332         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67333         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67334         variable names.
67335         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67336         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67337         variable prefixes.
67338         * m4/fcntl-safer.m4: Remove.
67339         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67340         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67341         Invoke gl_PREREQ_FD_SAFER.
67342         (gl_PREREQ_FD_SAFER): New macro.
67343         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67344         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67345         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67346         Remove duplicate call to AC_LIBOBJ(readutmp).
67347         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67348
67349         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67350         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67351
67352 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * MODULES.html.sh (Misc): Add byteswap.
67355
67356 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67357
67358         * modules/getcwd (Depends-on): Add extensions.
67359         * modules/openat (Depends-on): Likewise.
67360
67361 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67362
67363         * modules/byteswap: New file.
67364
67365 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67366
67367         * m4/byteswap.m4: New file.
67368
67369 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67370
67371         * lib/byteswap_.h: New file.
67372
67373 2005-04-25  Karl Berry  <karl@gnu.org>
67374
67375         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67376
67377 2005-04-25  Albert Chin  <china@thewrittenword.com>
67378
67379         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67380         Toolkit C bug.
67381
67382 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67383
67384         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67385         (func_ln_if_changed): Remove forcibly for no error message
67386         in case file does not exist.
67387
67388 2005-04-19  Simon Josefsson  <jas@extundo.com>
67389
67390         * gnulib-tool (Options): Make --symlink mean --symbolic.
67391
67392 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67393
67394         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67395
67396 2005-04-16  Simon Josefsson  <jas@extundo.com>
67397
67398         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67399
67400 2005-04-15  Simon Josefsson  <jas@extundo.com>
67401
67402         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67403
67404 2005-04-15  Simon Josefsson  <jas@extundo.com>
67405
67406         * gnulib-tool: Rename --symlink to --symbolic.
67407
67408 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67409
67410         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67411         symbolic links to files instead of copying/moving.  Add --aux-dir,
67412         specifying directory relative --dir where auxiliary build tools
67413         are placed.
67414
67415 2005-04-14  Bruno Haible  <bruno@clisp.org>
67416
67417         * modules/allocsa (License): Change to LGPL.
67418         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67419
67420 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67421
67422         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67423         that "UTC +1 second" continues to work.  Problem reported
67424         by Dmitry V. Levin.
67425         (relunit_snumber): New rule.
67426         (relunit): Use it.
67427
67428 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * lib/getdate.y (universal_time_zone_table): New constant.
67431         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67432         universal_time_zone_table.
67433         (lookup_zone): Prefer universal_time_zone_table to
67434         local_time_zone_table, so that "GMT" time stamps are allowed in
67435         London during the summer.  Problem reported by Ian Abbott.
67436
67437 2005-04-12  Jim Meyering  <jim@meyering.net>
67438
67439         * lib/human.c (humblock): Set *options even when returning due to
67440         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67441         warning from gcc-4.
67442
67443 2005-04-09  Jim Meyering  <jim@meyering.net>
67444
67445         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67446         -Wuninitialized: initialize tm0.tm_year.
67447
67448 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67451         count, since there's no maximum.  All uses changed.
67452         Add member dsts_seen.
67453         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67454         not being INT_MAX.
67455         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67456         Use pc_rels_seen to decide whther a date is absolute.
67457
67458         * lib/getdate.y (number): Don't overwrite year.
67459         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67460         check.
67461
67462 2005-04-02  Simon Josefsson  <jas@extundo.com>
67463
67464         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67465         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67466
67467 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67468
67469         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67470         where no absolute path name can be longer than PATH_MAX.
67471
67472 2005-03-27  Jim Meyering  <jim@meyering.net>
67473
67474         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67475
67476 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67479         "one's complement" -> "ones' complement" in comment, as per Knuth.
67480         "value of type" -> "type or expression" in comment.
67481         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67482
67483 2005-03-26  Jim Meyering  <jim@meyering.net>
67484
67485         Comment nits.
67486         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67487         Correct typos: s/or/of/.
67488
67489 2005-03-26  Jim Meyering  <jim@meyering.net>
67490
67491         * modules/check-include-files: Move to ../ and rename to...
67492         * check-module: ...this.
67493
67494 2005-03-25  Jim Meyering  <jim@meyering.net>
67495
67496         * modules/xvasprintf (Files): Add xalloc.h.
67497
67498 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67499
67500         * modules/gettext (Files): config/config.rpath ->
67501         build-aux/config.rpath
67502         * modules/iconv (Files): Likewise.
67503         Problem reported by Oskar Liljeblad.
67504
67505 2005-03-23  Jim Meyering  <jim@meyering.net>
67506
67507         * modules/check-include-files: New script to check for
67508         missing dependencies, multiple includes, etc.
67509
67510         * modules/c-strtold (Depends-on): Add xalloc.
67511         * modules/c-strtod (Depends-on): Add xalloc.
67512         * modules/hash (Depends-on): Add xalloc.
67513         (Files): Remove lib/xalloc.h.
67514
67515         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67516         * modules/userspec (Files): Add lib/inttostr.h.
67517
67518 2005-03-23  Jim Meyering  <jim@meyering.net>
67519
67520         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67521
67522 2005-03-22  Jim Meyering  <jim@meyering.net>
67523
67524         * modules/stat-macros: New module.
67525         * modules/canonicalize, modules/euidaccess, modules/file-type,
67526         * modules/filemode, modules/lchown, modules/makepath,
67527         * modules/rmdir, modules/stat: Depend on new stat-macros module
67528         rather than listing lib/stat-macros.h manually.
67529         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67530
67531 2005-03-22  Jim Meyering  <jim@meyering.net>
67532
67533         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67534
67535 2005-03-22  Bruno Haible  <bruno@clisp.org>
67536
67537         * config/srclist.txt: Replace target directory 'config' with
67538         'build-aux'.
67539         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67540         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67541         ../build-aux/.
67542
67543 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67544
67545         * modules/chdir-long (Depends-on): Add mempcpy.
67546
67547         * modules/acl, modules/backupfile, modules/c-strtod,
67548         modules/c-strtold, modules/canon-host, modules/canonicalize,
67549         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67550         modules/exclude, modules/exitfail, modules/file-type,
67551         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67552         modules/getdate, modules/getline, modules/getpagesize,
67553         modules/getpass, modules/getugroups, modules/group-member,
67554         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67555         modules/inttostr, modules/long-options, modules/makepath,
67556         modules/md5, modules/memcasecmp, modules/memcoll,
67557         modules/modechange, modules/mountlist, modules/path-concat,
67558         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67559         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67560         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67561         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67562         modules/strftime, modules/strndup, modules/strverscmp,
67563         modules/timespec, modules/unlocked-io, modules/userspec,
67564         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67565         modules/yesno:
67566         Remove lib_SOURCES line from Makefile.am section, as this is now
67567         done automatically by the corresponding Autoconf macro.
67568
67569 2005-03-21  Jim Meyering  <jim@meyering.net>
67570
67571         Changes imported from coreutils.
67572
67573         * lib/cycle-check.c: Don't include xalloc.h.
67574
67575         * lib/path-concat.c: Don't include assert.h.
67576         (path_concat): Remove assertion that would have triggered
67577         for ABASE starting with more than one slash.
67578         Reported by Andreas Schwab.
67579
67580         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67581         properly when ABASE is an absolute file name.
67582         Correct the description of this function.
67583         Include <assert.h>.
67584         Add an assertion and a test driver.
67585         This fixes a bug introduced on 2004-07-02.
67586         Andreas Schwab reported the resulting failure of cp --parents:
67587         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67588
67589 2005-03-21  Jim Meyering  <jim@meyering.net>
67590
67591         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67592         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67593
67594 2005-03-21  Jim Meyering  <jim@meyering.net>
67595         and  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67598         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67599         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67600         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67601         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67602         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67603         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67604         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67605         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67606         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67607         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67608         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67609         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67610         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67611         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67612         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67613         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67614         for these modules.
67615
67616 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67619         (which shouldn't happen), generate nothing instead of returning 0
67620         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67621
67622 2005-03-16  Bruno Haible  <bruno@clisp.org>
67623
67624         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67625         HAVE_LONGLONG_64BIT.
67626
67627 2005-03-16  Bruno Haible  <bruno@clisp.org>
67628
67629         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67630         HAVE_LONGLONG_64BIT.
67631
67632 2005-03-16  Bruno Haible  <bruno@clisp.org>
67633
67634         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67635         HAVE_LONGLONG_64BIT.
67636
67637 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67640         reliably distinguish strftime failure from empty output on POSIX
67641         hosts.
67642
67643 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67646         (iconv_string): Don't guess a size-zero buffer, as that might cause
67647         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67648         result would be 'too large', where 'too large' is (heuristically)
67649         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67650         overflow concerns.  This will prevent some unwanted malloc failures
67651         when the inputs are very large.
67652
67653 2005-03-15  Karl Berry  <karl@gnu.org>
67654
67655         * config/srclist.txt (config.rpath): from gettext.
67656         * config/config.rpath: update.
67657
67658 2005-03-15  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67661         to 'negate'.
67662
67663         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67664         variable.
67665
67666         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67667         results.
67668
67669 2005-03-14  Simon Josefsson  <jas@extundo.com>
67670
67671         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67672         <fx@gnu.org>.
67673
67674 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67675
67676         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67677         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67678         intprops.h.
67679         * lib/strtol.c: Likewise.
67680
67681 2005-03-14  Jim Meyering  <jim@meyering.net>
67682
67683         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67684         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67685         to be nonzero so that we (and caller) can detect the difference
67686         between a valid zero-length expansion and an error return, even
67687         when the underlying strftime fails before writing anything into
67688         that location.
67689
67690 2005-03-14  Bruno Haible  <bruno@clisp.org>
67691
67692         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67693         Update from GNU gettext 0.14.3.
67694
67695 2005-03-10  Jim Meyering  <jim@meyering.net>
67696
67697         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67698
67699 2005-03-10  Jim Meyering  <jim@meyering.net>
67700
67701         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67702         so that this module works on systems without fchdir.
67703
67704 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         Factor int-properties macros into a single file, except for
67707         glibc-related files.
67708         * lib/intprops.h: New file.
67709         * lib/getloadavg.c: Include it instead of limits.h.
67710         (INT_STRLEN_BOUND): Remove.
67711         * lib/human.c: Include intprops.h.
67712         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67713         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67714         302/1000.
67715         * lib/inttostr.h: Include intprops.h instead of limits.h.
67716         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67717         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67718         for consistency with intprops.h.
67719         (time_t_is_integer, twos_complement_arithmetic): Use them.
67720         * lib/sig2str.h: Include <signal.h>, intprops.h.
67721         (INT_STRLEN_BOUND): Remove.
67722         * lib/strftime.c (TYPE_SIGNED): Remove.
67723         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67724         * lib/strtol.c: Adjust comments to match intprops.h.
67725         * lib/userspec.c: Include intprops.h.
67726         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67727         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67728         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67729         instead of rolling our own expressions.
67730         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67731
67732         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67733         instead of int.
67734         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67735         the right thing even if adding 1900 would overflow.  Similarly
67736         for tm_mon + 1 and tm_yday + 1.
67737         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67738         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67739         (DO_SIGNED_NUMBER): New macro.
67740         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67741
67742 2005-03-07  Bruno Haible  <bruno@clisp.org>
67743
67744         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67745
67746 2005-03-07  Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67749
67750 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67751
67752         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67753         (func_import): Only replace files via --import when they have actually
67754         changed.
67755
67756 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67757
67758         * m4/mmap-anon.m4: New file.
67759         * m4/pagealign_alloc.m4: New file.
67760
67761 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67762             Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/pagealign_alloc: New file.
67765         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67766
67767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67768             Bruno Haible  <bruno@clisp.org>
67769
67770         * lib/pagealign_alloc.h: New file.
67771         * lib/pagealign_alloc.c: New file.
67772
67773 2005-03-03  Bruno Haible  <bruno@clisp.org>
67774
67775         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67776         Use an all-permissive copyright notice, recommended by RMS.
67777
67778 2005-03-02  Bruno Haible  <bruno@clisp.org>
67779
67780         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67781         of AIX, the replacement has to be done only after <string.h> is
67782         included, therefore not in config.h. stpncpy.h does the replacement,
67783         and stpncpy.c uses it.
67784
67785 2005-03-02  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67788         stpncpy.c uses it.
67789
67790 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67793         The workaround isn't strictly needed for POSIX conformance, and
67794         it's too much of a pain to configure and maintain.  We'll ask
67795         people to fix their kernels instead.
67796         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67797         (NANOSLEEP_BUG_WORKAROUND): Remove.
67798         (xnanosleep): Remove the workaround.
67799
67800 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67803         Reported by Derek Price.
67804         (Include): Add "timespec.h".
67805
67806         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67807
67808 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67809
67810         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67811         to detect nanosleep bug.
67812
67813 2005-03-01  Bruno Haible  <bruno@clisp.org>
67814
67815         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67816
67817 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         * modules/gethrxtime: New file.
67820         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67821         (Depends-on): Add gethrxtime.
67822         (configure.ac): Add gl_XNANOSLEEP.
67823         (Makefile.am): Remove lib_SOURCES line.
67824
67825 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67828         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67829
67830 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67833         * lib/timespec.h (gettime): Return void, since it always
67834         succeeds now.  All uses changed.
67835         * lib/gettime.c (gettime): Likewise.
67836         [HAVE_NANOTIME]: Prefer nanotime.
67837         Assume gettimeofday succeeds, as POSIX requires.
67838         Assime time () succeeds, since other code already does.
67839         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67840         (timespec_subtract): Remove.
67841         (NANOSLEEP_BUG_WORKAROUND): New constant.
67842         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67843         things considerably.  Use it only on GNU/Linux hosts, since the
67844         workaround shouldn't be needed elsewhere.
67845
67846 2005-02-24  Bruno Haible  <bruno@clisp.org>
67847
67848         * modules/gettext (Files): Add m4/glibc2.m4.
67849
67850 2005-02-24  Bruno Haible  <bruno@clisp.org>
67851
67852         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67853         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67854         * m4/progtest.m4:
67855         Update from GNU gettext 0.14.2.
67856         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67857
67858 2005-02-24  Bruno Haible  <bruno@clisp.org>
67859
67860         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67861         * lib/config.charset: Update from GNU gettext 0.14.2.
67862
67863 2005-02-24  Bruno Haible  <bruno@clisp.org>
67864
67865         * lib/gettext.h: Update from GNU gettext 0.14.2.
67866
67867 2005-02-23  Simon Josefsson  <jas@extundo.com>
67868
67869         * m4/iconvme.m4: New file.
67870
67871 2005-02-23  Jim Meyering  <jim@meyering.net>
67872
67873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67874         change.
67875         Thanks to Bruno Haible for catching it.
67876
67877 2005-02-22  Simon Josefsson  <jas@extundo.com>
67878
67879         * modules/iconvme: New file.
67880
67881         * MODULES.html.sh: Add iconvme.
67882
67883 2005-02-22  Simon Josefsson  <jas@extundo.com>
67884
67885         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67886
67887 2005-02-22  Simon Josefsson  <jas@extundo.com>
67888
67889         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67890
67891 2005-02-22  Jim Meyering  <jim@meyering.net>
67892
67893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67894         s/ifndef/ifdef/.
67895
67896 2005-02-20  Neil Conway  <neilc@samurai.com>
67897
67898         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67899         returned by OSX/Darwin if the specified buffer is not large
67900         enough for the hostname.
67901
67902 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67903
67904         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67905         pass it to _help, otherwise the latter coredumps trying to
67906         dereference state.root_argp.
67907
67908 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * modules/chdir-long (Depends-on): Add memrchr.
67911         * modules/memrchr (Files): Add lib/memrchr.h.
67912         (Include): "memrchr.h".
67913
67914 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67915
67916         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67917
67918 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         * lib/memrchr.h: New file.
67921         * lib/chdir-long.c: Include it.
67922         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67923         Don't bother including stddef.h.
67924
67925 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67926
67927         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67928         inclusion.
67929         Include <sys/types.h>, for dev_t.
67930         (ME_DUMMY, ME_REMOTE): Move from here....
67931         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67932         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67933         Dmitry V. Levin.
67934         Include mountlist.h first, to test the interface.
67935
67936 2005-01-29  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/progname.c (program_name): Initialize.
67939         Needed when linking statically on MacOS X.
67940
67941 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         Sync from coreutils.
67944         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67945         (Depends-on): Add c-strtod.
67946         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67947
67948 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         Sync from coreutils.
67951         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67952
67953         Remove files that are specific to coreutils.
67954         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67955
67956 2005-01-28  Bruno Haible  <bruno@clisp.org>
67957
67958         * modules/javacomp: New file.
67959         * MODULES.html.sh (Java): Add javacomp.
67960
67961 2005-01-28  Bruno Haible  <bruno@clisp.org>
67962
67963         * m4/javacomp.m4: New file, from GNU gettext.
67964
67965 2005-01-28  Bruno Haible  <bruno@clisp.org>
67966
67967         * lib/javacomp.sh.in: New file, from GNU gettext.
67968         * lib/javacomp.h: New file, from GNU gettext.
67969         * lib/javacomp.c: New file, from GNU gettext.
67970
67971 2005-01-26  Simon Josefsson  <jas@extundo.com>
67972
67973         * lib/gai_strerror.c: Use GPL in header.
67974
67975 2005-01-26  Bruno Haible  <bruno@clisp.org>
67976
67977         * modules/javaexec: New file.
67978         * MODULES.html.sh (Java): Add javaexec.
67979
67980 2005-01-26  Bruno Haible  <bruno@clisp.org>
67981
67982         * m4/javaexec.m4: New file, from GNU gettext.
67983
67984 2005-01-26  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/javaexec.sh.in: New file, from GNU gettext.
67987         * lib/javaexec.h: New file, from GNU gettext.
67988         * lib/javaexec.c: New file, from GNU gettext.
67989
67990 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67991
67992         * modules/lchown (Depends-on): Remove lchown.h
67993
67994 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67995
67996         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67997         must be defined if the header file was not found, in order
67998         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67999
68000 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68001
68002         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68003         initializers for struct pentry_state.
68004         (__argp_error): Check return value of __asprintf
68005         (__argp_failure): Translate error message
68006
68007         * lib/argp-parse.c: Removed braces around the expansion of N_()
68008
68009 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68012         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68013         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68014         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68015         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68016         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68017         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68018         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68019         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68020         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68021         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68022         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68023         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68024         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68025         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68026         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68027         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68028         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68029         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68030         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68031         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68032         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68033         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68034         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68035         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68036         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68037         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68038         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68039         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68040         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68041         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68042         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68043         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68044         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68045         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68046         Use an all-permissive copyright notice, recommended by RMS.
68047
68048 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * modules/chdir-long (Depends-on): Remove mempcpy.
68051
68052 2005-01-21  Jim Meyering  <jim@meyering.net>
68053
68054         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68055         same value as for Solaris 9.
68056
68057         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68058         component length.  This included changing the parameter to be
68059         of type `char *' rather than `char const *'.
68060         * lib/chdir-long.h (chdir_long): Update prototype.
68061
68062         * lib/openat.c (fdopendir, fstatat): New functions.
68063         * lib/openat.h: Include headers required for use of DIR and struct
68064         stat.
68065         [AT_SYMLINK_NOFOLLOW]: Define.
68066         (fdopendir, fstatat): Add prototypes.
68067
68068 2005-01-21  Bruno Haible  <bruno@clisp.org>
68069
68070         * modules/classpath: New file.
68071         * MODULES.html.sh (Java): Add classpath.
68072
68073 2005-01-21  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/classpath.h: New file, from GNU gettext.
68076         * lib/classpath.c: New file, from GNU gettext.
68077
68078 2005-01-20  Simon Josefsson  <jas@extundo.com>
68079
68080         * modules/version-etc-fsf: New file.
68081
68082 2005-01-20  Simon Josefsson  <jas@extundo.com>
68083
68084         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68085         * lib/version-etc.c: Remove version_etc_copyright.
68086         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68087         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68088
68089 2005-01-20  Simon Josefsson  <jas@extundo.com>
68090
68091         * lib/base64.h (isbase64): Add.
68092
68093         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68094         using a unsigned prototype, don't inline.
68095         (base64_decode): Use it.
68096
68097 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68100         it.
68101
68102 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * lib/save-cwd.c (save_cwd): Remove code to support the case
68105         where fchdir is missing or flaky.
68106
68107 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68108
68109         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68110
68111 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68114         AC_LIBSOURCES now does this.
68115         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68116         with new ullong_max module.
68117
68118 2005-01-19  Bruno Haible  <bruno@clisp.org>
68119
68120         * modules/sh-quote: New file.
68121         * MODULES.html.sh (Executing programs): Add sh-quote.
68122
68123 2005-01-19  Bruno Haible  <bruno@clisp.org>
68124
68125         * lib/sh-quote.h: New file, from GNU gettext.
68126         * lib/sh-quote.c: New file, from GNU gettext.
68127
68128 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         Merge from coreutils.
68131         * m4/ullong_max.m4: New file.
68132         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68133         (gl_MACROS): Assume localeconv exists.
68134
68135 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         Merge changes from coreutils, as described below in several
68138         changelogs dated today.
68139
68140         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68141         (O_DIRECTORY): Remove; not needed here, since "." must be
68142         a directory.  All uses removed.
68143         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68144         universal on Suns, and we also need to test for IRIX.
68145         Revamp code to use 'if' rather than '#if'.
68146         Avoid unnecessary comparison of cwd->desc to 0.
68147
68148         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68149         for known valid error numbers rather than observed invalid ones.
68150
68151 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * modules/ullong_max: New file.
68154
68155         * modules/chdir-long, modules/openat: New files.
68156         * modules/save-cwd (Depends-on): Depend on chdir-long.
68157         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68158
68159 2005-01-18  Jim Meyering  <jim@meyering.net>
68160
68161         Merge from coreutils.
68162         * m4/chdir-long.m4, m4/openat.m4: New files.
68163         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68164         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68165         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68166         is sane and DOES follow symlinks.  Besides, testing 20 different
68167         systems found no broken chown implementations.
68168         Prompted by a change in rsync's copy of this macro.
68169         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68170
68171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68172
68173         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68174         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68175         NULL-means-set-to-current-time semantics.
68176         Remove temporary file immediately, rather than waiting
68177         for configure's at-exit trap code to do it.
68178
68179 2005-01-18  Jim Meyering  <jim@meyering.net>
68180
68181         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68182
68183         * lib/utimens.c (futimens): Account for the fact that futimes
68184         can also fail with errno == ENOSYS or errno == ENOENT.
68185         Patch from Dmitry V. Levin.
68186
68187         Change the name of the robust chdir function from chdir to chdir_long.
68188         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68189         (restore_cwd): Use chdir_long, not chdir.
68190         * lib/chdir-long.c: Renamed from chdir.c.
68191         * lib/chdir-long.h: Renamed from chdir.h.
68192         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68193         Hurd.
68194
68195 2005-01-18  Bruno Haible  <bruno@clisp.org>
68196
68197         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68198         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68199         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68200         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68201         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68202         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68203         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68204         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68205         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68206         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68207         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68208         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68209         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68210         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68211         Use an all-permissive copyright notice, recommended by RMS.
68212
68213 2005-01-18  Bob Proulx  <bob@proulx.com>
68214
68215         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68216         simplify offsetof() macro construct to avoid compile failure with
68217         native HP-UX 11.0 ANSI C compiler.
68218
68219 2005-01-17  Bruno Haible  <bruno@clisp.org>
68220
68221         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68222         redundant because stpncpy.m4 takes care of it.
68223
68224 2005-01-17  Bruno Haible  <bruno@clisp.org>
68225
68226         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68227
68228 2005-01-17  Bruno Haible  <bruno@clisp.org>
68229
68230         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68231         used.
68232
68233 2005-01-17  Bruno Haible  <bruno@clisp.org>
68234
68235         * lib/fwriteerror.h (fwriteerror): Change specification to include
68236         fclose.
68237         * lib/fwriteerror.c: Include <stdbool.h>.
68238         (fwriteerror): At the end, close the file stream. Record whether
68239         stdout was already closed.
68240
68241 2005-01-17  Bruno Haible  <bruno@clisp.org>
68242
68243         * lib/execute.c (environ): Declare if needed.
68244         * lib/pipe.c (environ): Likewise.
68245         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68246
68247 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68248
68249         * modules/argp: Depend on vsnprintf
68250
68251 2005-01-10  Jim Meyering  <jim@meyering.net>
68252
68253         * modules/closeout (Depends-on): Add atexit.
68254
68255 2005-01-06  Bruno Haible  <bruno@clisp.org>
68256
68257         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68258
68259 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68260
68261         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68262         definitions to be after all include files, to avoid collisions.
68263         Problem reported by Bob Proulx.
68264
68265 2005-01-04  Jim Meyering  <jim@meyering.net>
68266
68267         Changes imported from coreutils.
68268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68269         as the mkstemp template, use a temporary directory and an
68270         8.3-friendly template to avoid trouble on systems like DJGPP.
68271         Reported by Juan M. Guerrero via Stepan Kasal.
68272         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68273         close. Remove the temporary directory right away, rather than waiting
68274         for configure's at-exit trap code to do it.
68275         Suggestion from Stepan Kasal.
68276
68277 2005-01-01  Simon Josefsson  <jas@extundo.com>
68278
68279         * gnulib-tool: Print #include directives when --import'ing.
68280
68281 2004-12-28  Simon Josefsson  <jas@extundo.com>
68282
68283         * tests/test-base64.c: Include required header files.  Remove
68284         unused variables.
68285
68286 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68287
68288         * modules/error (Depends-on): Remove gettext.
68289
68290 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68293         not needed.  This removes a dependency on the gettext module.
68294         [defined _LIBC]: Do not include <libintl.h>; not needed.
68295
68296 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68299         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68300
68301 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68304         HAVE_DECL_STRTOLD.
68305
68306 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * modules/getdate (Depends-on): Remove alloca-opt.
68309
68310 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68313
68314 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/argp-parse.c: Include <stddef.h>.
68317         (alignof, alignto): New macros.
68318         (parser_init): Don't assume that void * is aligned sufficiently
68319         for struct option.
68320
68321         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68322         need to extend the stack.
68323         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68324         large.
68325
68326 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68327
68328         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68329
68330 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68333         (2004-10-24) change.  Apparently this was a false alarm.
68334
68335         * modules/getdate: Depend on alloca-opt, not alloca.
68336
68337 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68340         Remove now-obsolete comment about AIX.
68341         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68342         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68343         (YYMAXDEPTH): New macro.
68344
68345 2004-12-18  Simon Josefsson  <jas@extundo.com>
68346
68347         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68348
68349 2004-12-18  Bruno Haible  <bruno@clisp.org>
68350
68351         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68352
68353 2004-12-18  Bruno Haible  <bruno@clisp.org>
68354
68355         * lib/fatal-signal.c (fatal_signals): Make non-const.
68356         (init_fatal_signals): New function.
68357         (uninstall_handlers, install_handlers): Ignore signals that were set to
68358         SIG_IGN.
68359         (at_fatal_signal): Call init_fatal_signals.
68360         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68361         SIG_IGN.
68362         Reported by Paul Eggert.
68363
68364 2004-12-18  Bruno Haible  <bruno@clisp.org>
68365
68366         * doc/alloca.texi: New file.
68367         * doc/alloca-opt.texi: New file.
68368
68369 2004-12-17  Jim Meyering  <jim@meyering.net>
68370
68371         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68372         Otherwise, install-sh could exit with improper exit status when
68373         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68374
68375 2004-12-16  Simon Josefsson  <jas@extundo.com>
68376
68377         * tests/test-base64.c: Add license.
68378
68379 2004-12-15  Stepan Kasal  <address@hidden>
68380
68381         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68382
68383 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68384
68385         * modules/getcwd (Files): Add m4/d-ino.m4.
68386         Suggested by Mark D. Baushke.
68387
68388 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/getdate.y (textint): New member "negative".
68391         (time_zone_hhmm): New function.
68392         Expect 14 shift-reduce conflicts, not 13.
68393         (o_colon_minutes): New rule.
68394         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68395         (yylex): Set the "negative" member of signed numbers.
68396
68397 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * doc/getdate.texi (Time of day items, Time zone items):
68400         Describe new formats +00:00, UTC+00:00.
68401
68402 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68405         spurious "-l"s.  Problem reported by Stepan Kasal.
68406
68407 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68410         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68411
68412 2004-12-04  Simon Josefsson  <jas@extundo.com>
68413
68414         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68415         Vandoorselaere <yoann@prelude-ids.org>.
68416
68417 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         Changes imported from coreutils.
68420         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68421         exist.
68422         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68423
68424 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         Changes imported from coreutils.
68427         * lib/hard-locale.c: Assume <locale.h> exists.
68428         Include "strdup.h".
68429         (GLIBC_VERSION): New macro.
68430         (hard_locale): Assume setlocale exists.
68431         Rewrite to avoid #ifdef.
68432         Use strdup rather than malloc + strcpy.
68433         * lib/human.c: Assume <locale.h> exists.
68434         (human_readable): Assume localeconv exists.
68435
68436 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * modules/hard-locale (Depends-on): Add strdup.
68439
68440 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68441
68442         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68443         convert T2, not T.  (Imported from libc.)
68444
68445 2004-11-30  Simon Josefsson  <jas@extundo.com>
68446
68447         * modules/restrict (License): Change to LGPL.
68448
68449 2004-11-30  Simon Josefsson  <jas@extundo.com>
68450
68451         * m4/restrict.m4: Add copyright and copying conditions.
68452
68453 2004-11-30  Simon Josefsson  <jas@extundo.com>
68454
68455         * m4/base64.m4: New file.
68456
68457 2004-11-30  Simon Josefsson  <jas@extundo.com>
68458
68459         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68460         base64.
68461
68462         * tests/test-base64.c: New file.
68463
68464         * modules/base64: New file.
68465
68466 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68469         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68470
68471         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68472
68473 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68476         (__getcwd.c): Don't restore errno; glibc doesn't.
68477         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68478         first, falling back to our code only if its results look suspicious.
68479         Ensure that the resulting buffer is only as large as necessary.
68480
68481         * lib/readutmp.c: Include readutmp.h first.
68482         Include <errno.h>, since readutmp.h no longer does that.
68483         * lib/readutmp.h: Don't include <errno.h>,
68484         <sys/param.h>, <time.h>; not needed to establish interface.
68485         (errno): Remove decl.
68486         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68487         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68488         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68489
68490 2004-11-28  Simon Josefsson  <jas@extundo.com>
68491
68492         * lib/base64.h, base64.c: New file.
68493
68494 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68495
68496         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68497
68498 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68501         (Depends-on): Remove pathmax, same.  Add mempcpy.
68502         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68503         (Makefile.am): Append getcwd.h to lib_SOURCES.
68504         (Include): Add getcwd.h.
68505         (Maintainer): Change from Jim Meyering to "all, glibc",
68506         since getdate now uses intended-for-glibc code.
68507         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68508         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68509
68510 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68513         HP's ANSI C compiler.
68514         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68515         Declaring int functions causes warnings on some modern systems and
68516         shouldn't be needed to compile on ancient ones.
68517         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68518         defined.
68519
68520         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68521         with the following changes.
68522         (__set_errno): Parenthesize properly.
68523         Include <stdbool.h>.
68524         (MIN, MAX, MATCHING_INO): New macros.
68525         (__getcwd): Define with prototype, not K&R form.
68526         Use heuristics to allocate default buffer on stack if possible.
68527         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68528         behavior, and to avoid the PATH_MAX limit when computing
68529         ../../../../...
68530         Use MATCHING_INO to compare inode number to file.
68531         Check for arithmetic overflow in size calculations.
68532         Fix bug in reallocation of dot array that caused getcwd to fail
68533         on directories nested deeper than 75.
68534         Be more careful about saving errno on error.
68535         Do not use realloc; use only free+malloc, as this is a bit
68536         more flexible and avoids a needless copy operation.
68537         Do not inspect st_dev and st_ino for symbolic links; POSIX
68538         doesn't specify the latter.
68539         Check for closedir errors.
68540         Avoid needless casts.
68541         Use "#ifdef weak_alias" around weak_alias, to be like other
68542         glibc code.
68543         The following changes to getcwd.c have effect only when used in
68544         gnulib; they have no effect inside glibc proper.
68545         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68546         as alloca isn't used.
68547         (alloca, __alloca): Likewise.
68548         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68549         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68550         unconditionally, as gnulib assumes C89 or better.
68551         Do not include <sys/param.h>.
68552         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68553         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68554         better.
68555         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68556         Include <dirent.h> in a way that is compatible with modern Autoconf.
68557         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68558         New macros, if not already defined.
68559         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68560         Use "_LIBC", not "defined _LIBC", for consistency.
68561         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68562         a mempcpy module.
68563         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68564         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68565         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68566         credit only to Jim Meyering and adjust the copyright dates.
68567         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68568         <stdlib.h>, <unistd.h>, "pathmax.h".
68569         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68570         (INITIAL_BUFFER_SIZE): Remove.
68571         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68572
68573 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68576         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68577         Use the _ONCE methods, for efficiency.
68578         Check for fcntl.h.  In test program, include <errno.h>
68579         and <fcntl.h> if available.  Remove old K&R cruft from
68580         test program.  Check for common errors in GNU/Linux,
68581         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68582         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68583         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68584         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68585         name accordingly.
68586         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68587         accommodate new getcwd.c.
68588         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68589         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68590         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68591         that's all we need now.
68592
68593 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68594
68595         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68596         argp-parse.c depends on getopt internals, that means we should
68597         always use our getopt, to be on the safe side.
68598         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68599         order not to spoil the result of an eventual previous invocation
68600         of gl_GETOPT_SUBSTITUTE.
68601
68602 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68603
68604         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68605         redefinition warnings. To avoid them, include the defines
68606         in `#if !defined __need_getopt ... #endif'. The only place
68607         where __getopt_argv_const is used is in definitions
68608         of getopt_long and getopt_long_only below, which are as well
68609         protected by `#ifndef __need_getopt'.
68610         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68611         __need_getopt after including <stdio.h> and <unistd.h> These
68612         headers might have defined it.
68613
68614 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68617
68618 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68621         (futimens): New function, which uses futimes if available.
68622         (futimens, utimens): Support timespec==NULL, with same semantics
68623         as utime and utimens.
68624         * lib/utimens.h (futimens): New decl.
68625
68626 2004-11-23  Jim Meyering  <jim@meyering.net>
68627
68628         * lib/getopt_.h: Remove trailing blanks.
68629
68630 2004-11-23  Jim Meyering  <jim@meyering.net>
68631
68632         * lib/__fpending.c: Add comment.
68633
68634 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * modules/canonicalize (Depends-on): Add xreadlink.
68637         Problem reported by James Youngman.
68638
68639 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68642         New macros.
68643         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68644         optopt): Use them instead of invoking ## directly; otherwise, the
68645         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68646
68647 2004-11-19  Bruno Haible  <bruno@clisp.org>
68648
68649         * lib/strtok_r.c: Move comments from here...
68650         * lib/strtok_r.h: ... to here.
68651
68652 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68655         implementations that mishandle size_t overflow.
68656
68657 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68660         might fail.  Problem reported by Yoann Vandoorselaere.
68661         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68662         implementations that mishandle size_t overflow.
68663
68664 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * modules/canon-host (Depends-on): Add strdup.
68667
68668 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68671
68672 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * lib/canon-host.c: Include "strdup.h".
68675         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68676         Use strdup instead of malloc/strcpy to duplicate strings.
68677
68678         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68679         (human_space_before_unit): New constant.
68680         * lib/human.c (human_readable): Support it.
68681
68682         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68683         (xgetcwd): Set errno correctly when failing.
68684         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68685         the failure is actually due to a PATH_MAX problem.
68686
68687         Further getopt changes to make it more likely that glibc will
68688         buy the changes back.
68689         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68690         (getopt): Use it, so to preserve glibc semantic
68691         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68692         when compiling for libc.
68693         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68694         (getopt_long, getopt_long_only): Use it.
68695
68696         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68697         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68698         (getopt): Argv is now char * const *, as per standard.
68699         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68700         not char *__getopt_argv_const *.
68701         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68702         _getopt_long_only_r): Likewise.
68703         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68704         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68705         _getopt_long_r, _getopt_long_only_r): Likewise.
68706         * lib/getopt_.h (__getopt_argv_const): Remove.
68707         (getopt): Argv is now char * const *, as per standard.
68708
68709         * lib/getdate.y (tORDINAL): New token.
68710         (day, relunit): Allow it for relative times.
68711         (relative_time_table): Use tORDINAL for ordinals.
68712
68713 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68716         Document that "second" isn't allowed as an ordinal number.
68717
68718 2004-11-16  Jim Meyering  <jim@meyering.net>
68719
68720         * modules/closeout (Depends-on): Add fpending.
68721
68722 2004-11-15  Jim Meyering  <jim@meyering.net>
68723
68724         * lib/closeout.c: Include "__fpending.h" once again.
68725         Include <stdbool.h>.
68726         (close_stdout): Don't fail just because stdout was closed initially,
68727         since some programs don't write to stdout in the normal course of
68728         operation (other than --version and --help), and we don't want this
68729         function to make e.g. `touch file >&-' fail.
68730         But do fail if it was closed and someone has tried to write to it.
68731         E.g., `printf foo >&-' must fail.
68732
68733 2004-11-13  Jim Meyering  <jim@meyering.net>
68734
68735         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68736
68737 2004-11-12  Simon Josefsson  <jas@extundo.com>
68738
68739         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68740         small doc fix is still pending.
68741
68742 2004-11-11  Simon Josefsson  <jas@extundo.com>
68743
68744         * modules/strtok_r: New file.
68745
68746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68747         strtok_r.
68748
68749 2004-11-11  Simon Josefsson  <jas@extundo.com>
68750
68751         * m4/strtok_r.m4: New file.
68752
68753         * m4/getopt.m4: Replace opterr.
68754
68755 2004-11-11  Simon Josefsson  <jas@extundo.com>
68756
68757         * lib/strtok_r.h, strtok_r.c: New file.
68758
68759 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68762         of replacing opterr, getopt, etc.  This should handle the
68763         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68764
68765 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68768         we can stop lying to compilers about the constness of argv when we
68769         are compiled outside glibc.
68770         (getopt, getopt_long, getopt_long_only): Use it.
68771         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68772         _getopt_internal, getopt): Likewise.
68773         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68774         _getopt_long_only_r): Likewise.
68775         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68776         _getopt_long_r, _getopt_long_only_r): Likewise.
68777
68778         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68779         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68780         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68781         the other external symbols.
68782         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68783         declaration, since the above renaming now works around collisions.
68784
68785 2004-11-11  Jim Meyering  <jim@meyering.net>
68786
68787         * lib/linebreak.c: Remove trailing blanks.
68788         * lib/alloca_.h: Likewise.
68789         * lib/acosl.c: Likewise.
68790         * lib/euidaccess.c: Likewise.
68791         * lib/allocsa.h: Likewise.
68792
68793 2004-11-10  Simon Josefsson  <jas@extundo.com>
68794
68795         * m4/getaddrinfo.m4: New file.
68796
68797 2004-11-10  Simon Josefsson  <jas@extundo.com>
68798
68799         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68800
68801 2004-11-10  Simon Josefsson  <jas@extundo.com>
68802
68803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68804         getaddrinfo.
68805
68806         * modules/getaddrinfo: New file.
68807
68808 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68811
68812 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * lib/mktime.c (SHR): New macro, which is a portable
68815         substitute for >> that should work even on Crays.
68816         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68817         Problem reported by Mark D. Baushke in
68818         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68819         * lib/getdate.y (SHR): Likewise.
68820         (tm_diff): Use it.
68821         * lib/strftime.c (SHR): Likewise.
68822         (tm_diff): Use it.
68823         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68824         quote_these_too, so that right shifts are well defined.  All uses
68825         changed.
68826
68827 2004-11-10  Jim Meyering  <jim@meyering.net>
68828
68829         Ensure that no close failure goes unreported.
68830         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68831         return early when it seems there's nothing to flush.
68832         Don't include __fpending.h.
68833
68834 2004-11-10  Jim Meyering  <jim@meyering.net>
68835
68836         * modules/closeout (Depends-on): Remove fpending.
68837
68838 2004-11-10  Jim Meyering  <jim@meyering.net>
68839
68840         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68841
68842 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68845         gl_FUNC_STRFTIME.
68846         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68847         and AC_REQUIRE when possible, to avoid duplicate checks.
68848         Check for <wchar.h>.
68849
68850 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68853
68854 2004-11-09  Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/sockpfaf.m4: New file.
68857
68858 2004-11-05  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68861         Reported by Mark D. Baushke <mdb@cvshome.org>.
68862
68863 2004-11-04  Bruno Haible  <bruno@clisp.org>
68864
68865         2004-09-11  Bruno Haible  <bruno@clisp.org>
68866                 * allocsa.valgrind: New file.
68867         2004-02-06  Bruno Haible  <bruno@clisp.org>
68868                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68869                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68870                 Reported by Christopher Seip <chris.seip@hp.com>.
68871
68872 2004-11-04  Bruno Haible  <bruno@clisp.org>
68873
68874         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68875         (Makefile.am): Distribute it.
68876
68877 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68880         with errno == ERANGE if the buffer is too small.
68881         Problem reported by Mark D. Baushke.
68882
68883 2004-11-03  Albert Chin  <china@thewrittenword.com>
68884             Paul Eggert  <eggert@cs.ucla.edu>
68885
68886         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68887         equivalent, substitute $ac_type for equivalent type rather than
68888         blindly using uint32_t *always* which won't work if uint32_t is not
68889         available.  Define _UINT32_T to work around typedef of uint32_t if
68890         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68891         2.5.1.
68892
68893 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         * m4/jm-macros.m4: Sync from coreutils.
68896         (gl_MACROS): Check for mbrlen, for pathchk.
68897         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68898
68899 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         * lib/xreadlink.c (MAXSIZE): New macro.
68902         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68903         size does not exceed MAXSIZE.  Avoid cast.
68904         As suggested by Mark D. Baushke in
68905         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68906         if readlink fails with buffer size just under MAXSIZE, try again
68907         with MAXSIZE.
68908
68909 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68912
68913 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68914         and  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68917         (get_date): Overparenthesize to avoid GCC warning.
68918
68919 2004-11-02  Bruno Haible  <bruno@clisp.org>
68920
68921         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68922         returns void.
68923
68924 2004-11-02  Bruno Haible  <bruno@clisp.org>
68925
68926         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68927         function returns void.
68928
68929 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68932         fflush_unlocked, flockfile, funlockfile, funlockfile,
68933         fputs_unlocked, putc_unlocked.
68934
68935 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68938         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68939         already declared.
68940
68941 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * modules/getdate (Files): Add doc/getdate.texi.
68944         (Depends-on): Add setenv, xalloc.
68945
68946 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         * lib/getdate.y: Add support for TZ="foo" within a date string.
68949         Fix some bugs near time_t boundaries.  Reject dates with
68950         out-of-range components, e.g., "Sept 31".
68951         Include <stdlib.h>, "setenv.h", "xalloc.h".
68952         (ISDIGIT_LOCALE): Remove; unused.
68953         Note that the TZ and time functions used here are not reentrant.
68954         (mktime_ok, get_tz): New functions.
68955         (TZBUFSIZE): New constant.
68956         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68957         This requires that we sometimes generate our own TZ="XXX..." setting.
68958
68959 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * doc/getdate.texi: New file, from coreutils with modifications for
68962         the new TZ parsing.
68963
68964 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68965
68966         * lib/mktime.c (not_equal_tm): Remove redundant check.
68967
68968 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68969
68970         * modules/regex (lib_SOURCES): Add regex.c.
68971         Reported by James Youngman in
68972         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68973
68974 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * lib/getdate.y: Use Bison 1.875 features, and some minor
68977         code cleanups.  This change does not affect semantics.
68978         Don't include <stdlib.h>; no longer needed.
68979         Don't include unlocked-io.h; only the "#if TEST" code uses
68980         stdio, and performance isn't crucial there.
68981         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68982         Bison 1.875 features as described below.
68983         All uses of "PC." replaced by "pc->".
68984         (YYSTYPE): Add a forward declaration.
68985         (yylex, yyerror): Use full prototypes in forward decls.
68986         Use "%pure-parser" rather than obsolescent "%pure_parser".
68987         Use %parse-param and %lex-param instead of obsolescent
68988         YYPARSE_PARAM and YYLEX_PARAM.
68989         (meridian_table, month_and_day_table, time_units_table,
68990         relative_time_table, time_zone_table, military_table,
68991         lookup_zone, lookup_word, get_date):
68992         Use NULL instead of 0 where appropriate.
68993         (to_hour): Avoid abort (), to avoid a dependency on
68994         stdlib.h.
68995         (yyerror, yylex): Now accepts parser_control * arg.
68996         (main) [TEST]: Use '\0' rather than 0 for char.
68997
68998 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69001
69002 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69005         It's now the caller's responsibility to handle the case where
69006         !HAVE_GETPAGESIZE && !defined getpagesize.
69007
69008         * lib/mktime.c (leapyear): Arg is long int, not int.
69009
69010 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69013
69014 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69017         missing.  Problem reported by James Youngman.
69018
69019 2004-10-16  Simon Josefsson  <jas@extundo.com>
69020
69021         * gnulib-tool: Fix comments.  Fix parse problem.
69022         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69023
69024 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69025
69026         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69027         implementation of getopt_long.  Problem reported by Alexander Taler in:
69028         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69029
69030 2004-10-15  Bruno Haible  <bruno@clisp.org>
69031
69032         * gnulib-tool: Untabify. Initialize supplied_libname.
69033         (func_usage): More homogenous output.
69034         (func_modules_transitive_closure, func_modules_to_filelist,
69035         func_emit_lib_Makefile_am): New functions.
69036         (func_import): New function, extracted from big case statement. Use
69037         func_get_license, func_modules_transitive_closure,
69038         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69039         opt_lgpl. Don't use test -a, as it's not portable.
69040         (func_create_testdir): Use func_modules_transitive_closure,
69041         func_modules_to_filelist, func_emit_lib_Makefile_am.
69042
69043 2004-10-15  Bruno Haible  <bruno@clisp.org>
69044
69045         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69046
69047 2004-10-15  Bruno Haible  <bruno@clisp.org>
69048
69049         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69050         the portions belonging to each module.
69051         Suggested by Derek Robert Price <derek@ximbiot.com>.
69052
69053 2004-10-12  Simon Josefsson  <jas@extundo.com>
69054
69055         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69056         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69057         to real functions.
69058
69059 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69060
69061         * modules/vsnprintf: New file.
69062
69063 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69064
69065         * m4/vsnprintf.m4: New file.
69066
69067 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69068
69069         * lib/vsnprintf.h: New file.
69070         * lib/vsnprintf.c: New file.
69071
69072 2004-10-11  Bruno Haible  <bruno@clisp.org>
69073
69074         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69075         vsnprintf.
69076
69077 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69080
69081 2004-10-07  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69084         fits into the provided buffer.
69085
69086 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69087
69088         * lib/diacrit.c, diacrit.h: Add GPL notice.
69089
69090         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69091         notice.
69092         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69093         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69094         This avoids a potential constant-folding bug.
69095
69096 2004-10-05  Bruno Haible  <bruno@clisp.org>
69097
69098         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69099         for the declaration of strsep.
69100
69101 2004-10-05  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69104
69105 2004-10-04  Simon Josefsson  <jas@extundo.com>
69106
69107         * modules/memmem: New file.
69108         * tests/test-memmem.c: New file.
69109         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69110
69111 2004-10-04  Simon Josefsson  <jas@extundo.com>
69112
69113         * m4/memmem.m4: New file.
69114
69115 2004-10-04  Simon Josefsson  <jas@extundo.com>
69116
69117         * lib/memmem.h: New file.
69118         * lib/memmem.c: New file, taken from glibc.
69119
69120 2004-10-04  Simon Josefsson  <jas@extundo.com>
69121
69122         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69123         '#ifdef USE_UNLOCKED_IO'.
69124
69125 2004-10-04  Simon Josefsson  <jas@extundo.com>
69126
69127         * config/srclist.txt: Add memmem from glibc.
69128
69129 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69130
69131         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69132
69133         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69134         modules/exclude, modules/getdate, modules/getline,
69135         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69136         modules/getusershell, modules/linebuffer, modules/md5,
69137         modules/mountlist, modules/posixtm, modules/readtokens,
69138         modules/readutmp, modules/regex, modules/sha1,
69139         modules/version-etc, modules/yesno:
69140         Remove dependency on unlocked-io.
69141
69142 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69145
69146         * m4/unlocked-io.m4: Add copyright notice.
69147         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69148
69149 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69152         * lib/xmalloc.c (xmemdup): Likewise.
69153         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69154         XFREE): Remove these long-obsolescent macros.
69155         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69156         * lib/xstrdup.c: Remove.
69157
69158         * lib/regex.c (re_comp): Cast gettext return value to char *,
69159         Problem reported by Martin Neitzel via Mark D. Baushke.
69160
69161 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69162
69163         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69164         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69165         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69166         regex.c, sha1.c, version-etc.c, yesno.c:
69167         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69168         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69169         the includer's responsibility.
69170
69171         Sync from coreutils.
69172
69173         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69174         points to the start of a string, as the C Standard says the
69175         resulting behavior is undefined.
69176
69177         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69178         simple -> simple_backups, numbered_existing ->
69179         numbered_existing_backups, numbered -> numbered_backups
69180         to avoid shadowing problems.  All uses changed.
69181         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69182         * lib/backupfile.c (check_extension, numbered_backup):
69183         Rename locals to avoid shadowing 'basename'.
69184         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69185         once.
69186
69187         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69188         * lib/.cvsignore: Add getopt.h.
69189
69190 2004-10-04  Bruno Haible  <bruno@clisp.org>
69191
69192         * modules/README: New file.
69193         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69194         not a module.
69195
69196 2004-10-02  Jim Meyering  <jim@meyering.net>
69197
69198         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69199
69200 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69201
69202         * modules/strsep: New file.
69203
69204 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69205
69206         * m4/strsep.m4: New file.
69207
69208 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69209
69210         * lib/strsep.h: New file.
69211         * lib/strsep.c: New file.
69212
69213 2004-10-01  Simon Josefsson  <jas@extundo.com>
69214
69215         * lib/snprintf.c (snprintf): Handle size==0.
69216
69217 2004-10-01  Simon Josefsson  <jas@extundo.com>
69218             Bruno Haible  <bruno@clisp.org>
69219
69220         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69221         (snprintf): Declare 'args'.
69222
69223 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * lib/snprintf.c: Remove comments as to why each header is needed.
69226
69227 2004-10-01  Bruno Haible  <bruno@clisp.org>
69228
69229         * MODULES.html.sh: Add strsep.
69230
69231 2004-09-30  Simon Josefsson  <jas@extundo.com>
69232
69233         * modules/snprintf: New file.
69234
69235 2004-09-30  Simon Josefsson  <jas@extundo.com>
69236
69237         * m4/snprintf.m4: New file.
69238
69239 2004-09-30  Simon Josefsson  <jas@extundo.com>
69240
69241         * lib/snprintf.h, lib/snprintf.c: New files.
69242
69243 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69244
69245         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69246         (hol_entry_help): Never translate an empty string.
69247         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69248         * lib/argp.h (OPTION_NO_TRANS): New option.
69249
69250 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * modules/argp (Maintainer): Replace Simon Josefsson
69253         by Sergey Poznyakoff.
69254
69255 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69258         changes merged back into glibc.
69259
69260 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69261
69262         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69263
69264 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69265
69266         * lib/xvasprintf.c: Include xalloc.h.
69267         (xvasprintf): Use xalloc_die, not xmalloc_die.
69268
69269 2004-09-29  Bruno Haible  <bruno@clisp.org>
69270
69271         * modules/alloca-opt: New file, derived from modules/alloca.
69272         * modules/allocsa: Depend on alloca-opt instead of alloca.
69273         * modules/setenv: Likewise.
69274         * modules/vasnprintf: Likewise.
69275         * MODULES.html.sh: Add alloca-opt.
69276
69277 2004-09-28  Simon Josefsson  <jas@extundo.com>
69278
69279         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69280         LGPL, and to replace license template from GPL to LGPL.
69281
69282 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * modules/dummy: Change license to LGPL.
69285
69286 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69289
69290 2004-09-24  Simon Josefsson  <jas@extundo.com>
69291
69292         * modules/minmax (License): Change from GPL to LGPL.
69293
69294 2004-09-23  Simon Josefsson  <jas@extundo.com>
69295
69296         * gnulib-tool (--import): Typo.
69297
69298 2004-09-23  Simon Josefsson  <jas@extundo.com>
69299
69300         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69301
69302 2004-09-22  Bruno Haible  <bruno@clisp.org>
69303
69304         * modules/*: Add 'License' field.
69305         * gnulib-tool: Accept --extract-license option.
69306         (func_get_license): New function.
69307
69308 2004-09-21  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69311         Reported by Simon Josefsson.
69312
69313 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69316         gl_AC_TYPE_LONG_LONG.
69317
69318 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69321
69322 2004-09-18  Simon Josefsson  <jas@extundo.com>
69323         and  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69326         calls with autoreconf.  Define GL_LIB.
69327
69328 2004-09-14  Karl Berry  <karl@gnu.org>
69329
69330         * config/srclist.txt: unsync setenv.c, sigh.
69331
69332 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69335         Problem reported by Bruno Haible in:
69336         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69337
69338 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * config/srclist.txt: Comment out argp-pvh.c.
69341
69342 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69345         in case some system header has #define'd it.  Problem reported by
69346         Soeren D. Schulze in
69347         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69348
69349 2004-09-09  Karl Berry  <karl@gnu.org>
69350
69351         * regex.[ch]: delete from the root.  These were supposed to be
69352                 synced with emacs cvs, but this has not happened for about
69353                 a year, and anyway nothing else uses emacs regex.[ch].
69354                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69355                 lib/regex[.ch] is untouched.
69356
69357 2004-09-09  Bruno Haible  <bruno@clisp.org>
69358
69359         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69360
69361 2004-09-09  Bruno Haible  <bruno@clisp.org>
69362
69363         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69364         modifications.
69365         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69366
69367 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69368
69369         * modules/xvasprintf: New file.
69370         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69371
69372 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69373
69374         * lib/xvasprintf.h: New file.
69375         * lib/xvasprintf.c: New file.
69376         * lib/xasprintf.c: New file.
69377
69378 2004-09-08  Bruno Haible  <bruno@clisp.org>
69379
69380         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69381
69382 2004-09-08  Bruno Haible  <bruno@clisp.org>
69383
69384         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69385         length is > INT_MAX.
69386         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69387         more.
69388
69389 2004-09-08  Bruno Haible  <bruno@clisp.org>
69390
69391         * lib/stdint_.h: New file, taken from GNU clisp.
69392
69393 2004-09-08  Bruno Haible  <bruno@clisp.org>
69394             Oskar Liljeblad  <oskar@osk.mine.nu>
69395
69396         * modules/stdint: New file.
69397         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69398
69399 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69400
69401         Import from coreutils.
69402         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69403         strings on unbounded length.  alloca's performance benefits aren't
69404         that important here.
69405         (V_STRDUP): Remove.
69406         (parse_with_separator): New function, with most of the internals
69407         of the old parse_user_spec.  Allow user to omit both user and group,
69408         for compatibility with FreeBSD.
69409         Clone only the user name, not the entire spec.
69410         Do not set *uid, *gid unless entirely successful.
69411         Avoid memory leak in some failing cases.
69412         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69413         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69414         (parse_user_spec): Rewrite to use parse_with_separator.
69415
69416 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * modules/userspec: Don't depend on alloca.
69419
69420 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69421
69422         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69423
69424 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69427         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69428         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69429
69430 2004-08-16  Simon Josefsson  <jas@extundo.com>
69431
69432         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69433         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69434         Add --dry-run for --import.
69435         Let user provided command line parameters override configure.ac
69436         settings.
69437
69438 2004-08-12  Simon Josefsson  <jas@extundo.com>
69439
69440         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69441         as discussed with Paul Eggert in threads rooted at
69442         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69443         and
69444         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69445         Before, the test was empty, and relied on ELIDE_CODE in source
69446         code.)
69447         (gl_PREREQ_GETOPT): New macro.
69448         (gl_GETOPT): Use them.
69449
69450 2004-08-12  Simon Josefsson  <jas@extundo.com>
69451
69452         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69453         * lib/getopt_.h: Renamed from getopt.h.
69454
69455 2004-08-12  Simon Josefsson  <jas@extundo.com>
69456
69457         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69458         Change default library name from libfoo to libgnu.
69459         Now, if you have a configure.ac that says:
69460                 gl_SOURCE_BASE(gl)
69461                 gl_M4_BASE(gl/m4)
69462                 gl_MODULES(error getopt etcetera)
69463                 gl_INIT
69464         you can import all you need by running:
69465                 ../gnulib/gnulib-tool --import
69466
69467         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69468         (Makefile.am): Rewrite, use logic from argz.
69469         (Include): Use <getopt.h> instead of "getopt.h".
69470
69471 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * modules/argp (Files): Add m4/unlocked-io.m4.
69474         (Depends-on): Add extensions.
69475
69476 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69479         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69480         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69481         Check for program_invocation_name, program_invocation_short_name,
69482         flockfile, funlockfile, features.h, _getopt_long_only_r.
69483
69484 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69487         its complicated substitute.
69488         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69489         and program_invocation_name.
69490         (__argp_basename) [!_LIBC]: Remove; the only use was
69491         replaced by its body.
69492         (__argp_short_program_name): Change condition from
69493         !defined __argp_short_program_name to
69494         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69495         to match argp-namefrob.h.
69496         (__argp_failure): Don't assume strerror_r returns char *.
69497         * lib/argp-parse.c (N_): Define unconditionally.
69498         (argp_default_options): Fill out initializers with 0 to avoid
69499         gcc warnings.
69500
69501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69502
69503         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69504         getopt1.c.
69505
69506 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         Merge from coreutils.
69509
69510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69511
69512         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69513         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69514
69515 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         Merge from coreutils.
69518
69519         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69520         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69521         for Reliant Unix 5.43.
69522
69523         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69524         (union fooround): Use uintmax_t, not long int.
69525         The rest is a merge from libc:
69526         [defined _LIBC]: Include <shlib-compat.h>.
69527         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69528
69529         * lib/settime.c (settime): Recode to avoid warning with
69530         Sun Forte C 6U2.
69531
69532         * lib/strverscmp.c: Convert to UTF-8.
69533
69534 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69537         m4/uintmax_t.m4.
69538
69539 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * modules/xalloc-die: New file.
69542         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69543
69544         * modules/md5 (Files): Add m4/uint32_t.m4.
69545         * modules/sha1: Renamed from modules/sha.
69546         (Files):
69547         Rename lib/sha.h to lib/sha1.h.
69548         Rename lib/sha.c to lib/sha1.c.
69549         Rename m4/sha.m4 to m4/sha1.m4.
69550         (lib_SOURCES): Likewise.
69551         (configure.ac): Rename gl_SHA to gl_SHA1.
69552         (Include): sha.h -> sha1.h.
69553
69554 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69557         * m4/sha1.m4: Renamed from sha.m4.
69558         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69559
69560 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * lib/obstack.h (obstack_empty_p):
69563         Don't assume that chunk->contents is suitably aligned.
69564         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69565         Likewise. Problem reported by Benno in
69566         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69567
69568         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69569         readable.  This could be improved further but it'd take some work.
69570
69571 2004-08-08  Simon Josefsson  <jas@extundo.com>
69572
69573         * modules/xgethostname (Depends-on): Remove exit and error (not
69574         used).
69575
69576         * modules/getpass-gnu: Add getpass.h.
69577         (Depends-on): Add stdbool.
69578         * modules/getpass: Add getpass.h.
69579
69580 2004-08-08  Simon Josefsson  <jas@extundo.com>
69581
69582         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69583         Check getpass declaration.
69584
69585 2004-08-08  Simon Josefsson  <jas@extundo.com>
69586
69587         * lib/xgethostname.c: Don't include error.h (not used).
69588
69589         * lib/getpass.h: Add.
69590         * lib/getpass.c: Include getpass.h first.
69591
69592 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * lib/xalloc-die.c: New file.
69595         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69596         All uses removed.
69597         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69598         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69599         xalloc-die.c.
69600         (_, N_, xalloc_die): Move to xalloc-die.c.
69601         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69602         so that we needn't mess with xalloc_msg_memory_exhausted.
69603
69604         * lib/sha1.h: Renamed from sha.h.
69605         (SHA1_H): Renamed from _SHA_H.
69606         (sha1_ctx): Renamed from sha_ctx.
69607         (sha1_init_ctx): Renamed from sha_init_ctx.
69608         (sha1_process_block): Renamed from sha_process_block.
69609         (sha1_process_bytes): Renamed from sha_process_bytes.
69610         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69611         (sha1_read_ctx): Renamed from sha_read_ctx.
69612         (sha1_stream): Renamed from sha_stream.
69613         (sha1_buffer): Renamed from sha_buffer.
69614         * lib/sha1.c: Likewise; renamed from sha.c.
69615         Do not include <sys/types.h>.
69616         Include <stddef.h> rather than <stdlib.h>.
69617
69618 2004-08-08  Bruno Haible  <bruno@clisp.org>
69619
69620         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69621         FILESYSTEM_PREFIX_LEN.
69622         * lib/progreloc.c: Likewise.
69623         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69624
69625 2004-08-06  Simon Josefsson  <jas@extundo.com>
69626
69627         * modules/progname (Depends-on): Don't depend on stdbool.
69628
69629 2004-08-06  Simon Josefsson  <jas@extundo.com>
69630
69631         * modules/getsubopt: New file.
69632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69633         getsubopt.
69634
69635 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         More merge from coreutils.
69638
69639         * m4/utimens.m4, m4/utimecmp.m4: New files.
69640         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69641         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69642         prereq.m4, sha.m4: Import changes from coreutils.
69643
69644 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69645
69646         More merge from coreutils.
69647         * modules/raise, modules/readtokens0, modules/utimens:
69648         * modules/utimecmp, module/xnanosleep: New files.
69649         * modules/strftime: Add lib/strftime.h.
69650         Change include from <time.h> to "strftime.h".
69651         * modules/yesno: Add lib/yesno.h.
69652         * modules/backupfile: Remove lib/addext.c.
69653         * modules/euidaccess: Add stat-macros.h.
69654         * modules/canonicalize, modules/euidaccess,
69655         modules/filemode, modules/lchown, modules/makepath,
69656         modules/rmdir, modules/stat: Likewise.
69657
69658 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69659
69660         Merge from tar.
69661         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69662         SIZE_MAX is a valid preprocessor constant.
69663         (__argp_basename): Change from "#ifndef _LIBC"
69664         to "#ifndef __argp_short_program_name", so that
69665         we don't compile these functions for tar.
69666
69667         More merges from coreutils.
69668         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69669         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69670         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69671         * lib/addext.c: Remove; no longer needed.
69672         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69673         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69674         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69675         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69676         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69677         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69678         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69679         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69680         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69681         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69682         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69683         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69684         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69685         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69686         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69687         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69688         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69689         Import changes from coreutils.
69690
69691 2004-08-05  Simon Josefsson  <jas@extundo.com>
69692
69693         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69694
69695 2004-08-05  Simon Josefsson  <jas@extundo.com>
69696
69697         * m4/getsubopt.m4: New file.
69698
69699 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69700
69701         Merge from coreutils.
69702
69703         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69704         * m4/getcwd-path-max.m4: New files.
69705
69706         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69707         FILESYSTEM_PREFIX_LEN ->
69708         FILE_SYSTEM_PREFIX_LEN.
69709         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69710         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69711         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69712         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69713
69714         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69715         prerequisite modules now handle the DOS stuff.
69716         Don't check for unistd.h.
69717
69718 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         Merge from coreutils.
69721
69722         * lib/.gdb-history: Remove; this doesn't belong here.
69723
69724         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69725         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69726         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69727         * lib/getcwd.c: New files.
69728
69729         * lib/dirname.h: Include <stdbool.h>.
69730         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69731         for consistency with POSIX terminology.  All uses changed.
69732         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69733         (strip_trailing_slashes): Use bool for booleans.
69734         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69735
69736         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69737         sometimes returns a positive errno value even when it succeeds.
69738         (print_errno_message) [!LIBC]: Fall back on strerror if
69739         __strerror_r fails.
69740
69741         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69742         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69743         (longest_relative_suffix): New function.
69744         (path_concat): Use it.  Assume first argument is not NULL.
69745         Port to DOS.  Omit redundant separators.
69746         Report an error instead of returning NULL.
69747         Use mempcpy instead of memcpy.
69748         (xpath_concat): Remove: not declared or used.
69749
69750         * lib/same.h: Include <stdbool.h>
69751         (same_name): Return bool, not int.
69752         * lib/same.c (same_name): Likewise.
69753         (errno): Don't declare; we assume C89 or better now.
69754
69755         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69756         if not already defined.
69757
69758         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69759         * lib/dup-safer.c (errno): Likewise.
69760
69761 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         Merge from coreutils.
69764         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69765         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69766         * modules/path-concat: Don't depend on strdup.
69767
69768 2004-08-03  Simon Josefsson  <jas@extundo.com>
69769
69770         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69771         * lib/progname.h: Don't include stdbool.h.
69772
69773 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69776         * MODULES.html.sh (func_all_modules): Remove fatal.
69777
69778 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69781
69782 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69785         working.
69786
69787 2004-08-02  Simon Josefsson  <jas@extundo.com>
69788
69789         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69790         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69791         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69792
69793 2004-08-01  Simon Josefsson  <jas@extundo.com>
69794
69795         * lib/xgetdomainname.c: Include stdlib.h, for free().
69796
69797 2004-07-19  Bruno Haible  <bruno@clisp.org>
69798
69799         * MODULES.html.sh (func_all_modules): Add dummy.
69800
69801 2004-07-16  Simon Josefsson  <jas@extundo.com>
69802
69803         * modules/dummy: New file.
69804
69805 2004-07-16  Simon Josefsson  <jas@extundo.com>
69806
69807         * lib/dummy.c: New file.
69808
69809 2004-07-16  Bruno Haible  <bruno@clisp.org>
69810
69811         * lib/backupfile.h: Add extern "C" for C++.
69812         * lib/closeout.h: Likewise.
69813         * lib/copy-file.h: Likewise.
69814         * lib/findprog.h: Likewise.
69815         * lib/full-write.h: Likewise.
69816         * lib/pathname.h: Likewise.
69817         * lib/progname.h: Likewise.
69818         * lib/stpcpy.h: Likewise.
69819         * lib/stpncpy.h: Likewise.
69820         * lib/strcase.h: Likewise.
69821         * lib/strstr.h: Likewise.
69822         * lib/xalloc.h: Likewise.
69823
69824         * lib/mbswidth.h: Add extern "C" for C++.
69825         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69826
69827 2004-07-13  Robert Millan  <robertmh@gnu.org>
69828
69829         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69830
69831 2004-07-09  Simon Josefsson  <jas@extundo.com>
69832
69833         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69834         failed without this.)
69835
69836 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * modules/chown (Files): Add lib/fchown-stub.c, since
69839         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69840
69841 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * lib/fchown-stub.c: New file.
69844
69845 2004-06-24  Jim Meyering  <jim@meyering.net>
69846
69847         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69848
69849 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * modules/argz: Omit "#include".
69852
69853         * MODULES.html.sh (func_all_modules): Add calloc, to match
69854         2004-06-01 addition of calloc module.
69855
69856 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * m4/argz.m4: New file, which is autoupdated from libtool.
69859
69860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69863         libtool.
69864
69865 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         * config/srclist-update: Don't insist on "USA." before the
69868         close-comment, as libtool omits the period and puts the */ on a
69869         separate line.
69870         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69871         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69872
69873 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69874
69875         * modules/argz: New file.
69876         * MODULES.html.sh (func_all_modules): Add argz.
69877
69878 2004-06-12  Jim Meyering  <jim@meyering.net>
69879         and  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         * modules/hash (Files): Add lib/xalloc.h.
69882         * modules/pipe (Depends-on): Add wait-process.
69883         * modules/stat (Depends-on): Add xalloc.
69884         * modules/userspec (Files): Add lib/userspec.h.
69885         * modules/xstrto
69886
69887         Upgrade from gettext-0.13.
69888         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69889         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69890         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69891
69892 2004-06-10  Jim Meyering  <jim@meyering.net>
69893
69894         * lib/calloc.c: New file.
69895
69896 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * lib/getdate.y (yylex): Allow space between sign and number.
69899         Problem reported by Dan Jacobson.
69900
69901 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         Merge from coreutils CVS.
69904
69905         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69906         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69907         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69908         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69909         xstrtol.m4: Fix copyright date and/or serial number.
69910
69911         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69912         See if we need an fchown replacement.
69913         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69914         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69915         and use the replacement function if we detect either defect.
69916
69917         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69918         gl_UTIMECMP.
69919
69920 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69921         and  Jim Meyering  <jim@meyering.net>
69922
69923         Merge from coreutils CVS.
69924
69925         * lib/stat-macros.h: New file, with contents from file-type.h
69926         and coreutils' system.h.
69927         * lib/file-type.c: Include "stat-macros.h".
69928         * lib/file-type.h (file_type): Move all macro definitions to new file,
69929         stat-macros.h.
69930
69931         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69932         Wrap old code with this conditional.
69933         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69934         function that does not dereference symlinks.
69935         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69936
69937         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69938         dependency problems.
69939         (xreadlink): Accept new arg SIZE, for efficiency.
69940         All decls and uses changed.
69941         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69942
69943         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69944         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69945
69946         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69947         sysexits.h.
69948
69949 2004-06-01  Jim Meyering  <jim@meyering.net>
69950
69951         * m4/calloc.m4: New file.
69952
69953 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69956         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69957         Also, fix a typo in a diagnostic.
69958
69959 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69962         or AC_FUNC_REALLOC.
69963
69964 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69967         macros to be defined.
69968         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69969         the allocator returns NULL because the requested size is zero.
69970
69971 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69974         var.  Add comment explaining why libc still defines it.  This
69975         merges the following patch from glibc:
69976         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69977
69978 2004-05-20  Andreas Schwab  <schwab@suse.de>
69979
69980         * m4/free.m4: Replace free if it not known to work, not the other
69981         way round.
69982
69983 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69986         present in glibc since revision 1.1 of this file.
69987         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69988         obstack_alignment_mask, obstack_alloc, obstack_base,
69989         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69990         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69991         obstack_grow0, obstack_init, obstack_int_grow,
69992         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69993         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69994         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69995         nonexistent functions.
69996
69997 2004-05-18  Karl Berry  <karl@gnu.org>
69998
69999         * config/srclist.txt: break link for vasnprintf.c.
70000
70001 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70002
70003         Port obstack to the AS/400, where pointers are 16 bytes wide and
70004         you cannot cast an integer to a valid pointer.  This patch is
70005         currently waiting to be integrated into glibc; see
70006         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70007
70008         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70009         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70010         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70011         (struct obstack): temp member is now a union of a pointer and
70012         an integer, instead of an integer.  All integer uses changed.
70013         This does not affect the physical layout of struct obstack,
70014         except on hosts (like the AS/400) where the size or alignment of
70015         void * is greater than that of ptrdiff_t.
70016         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70017         __STDC__)]: Store temporary in pointer member of union, not
70018         integer member.
70019         * lib/obstack.c: Include <stddef.h>, for offsetof.
70020         (struct fooalign): Remove; it doesn't need a name.
70021         (union fooround): Change double to long double, and add void *.
70022         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70023         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70024         not a macro.  Hence the values are always int; so remove all
70025         casts-to-int in uses.
70026
70027 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70030         we can get this patch merged into glibc.
70031
70032 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70033             Paul Eggert  <eggert@cs.ucla.edu>
70034
70035         * m4/argp: Depend on alloca.
70036
70037 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70038             Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70041         freecoding.
70042
70043 2004-05-17  Bruno Haible  <bruno@clisp.org>
70044
70045         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70046         precision that consists of a '.' followed by an empty digit string.
70047         Patch by Tor Lillqvist <tml@iki.fi>.
70048
70049 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70052         for backward compatibility with older code.  We need our own
70053         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70054         it under some other name, and our alloca.h will define it.
70055
70056 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70057             Derek Price  <derek@ximbiot.com>
70058
70059         * lib/alloca.c: Include <alloca.h>, to get our interface.
70060         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70061         include <alloca.h> first.  Use C89 prototype for alloca; this
70062         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70063         Use #elif for simplicity, since we can assume C89 now.
70064         Don't try to source the system alloca.h since it will not be found
70065         and to prevent recursively including its replacement.
70066         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70067         * lib/regex.c: Likewise.
70068
70069 2004-05-16  Derek Price  <derek@ximbiot.com>
70070             Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         getline cleanup.  This changes the getndelim2 API: both order of
70073         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70074         no delimiter).
70075
70076         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70077         interface does that.
70078         (getline): Always use getdelim, so that we don't have two
70079         copies of this code.
70080         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70081         if available.
70082         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70083         (GETNDELIM2_MAXIMUM): New macro.
70084         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70085         instead of the old practice of delim2==0.  All callers changed.
70086         Return -1 on overflow, instead of returning junk.
70087         Do not set *linesize unless allocation succeeds.
70088         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70089         that we include sys/types.h.
70090         * lib/getnline.h: Likewise.
70091         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70092         (getndelim2): Reorder arguments.
70093         * lib/getnline.c (getnline, getndelim):
70094         Don't discard the NMAX argument.
70095         (getnline): Invoke getndelim, to avoid code duplication.
70096         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70097         of (size_t) -1 by callers of the getnline family.
70098
70099 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70102         Check for gettimeofday.
70103         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70104         Check for settimeofday, stime.
70105
70106 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * lib/nanosleep.c (suspended): Change its type from int to
70109         sig_atomic_t volatile.
70110         (first_call): Make it private to rpl_nanosleep, and have it
70111         be zero initially as that's a bit faster.
70112         (my_usleep): Round up fractional times instead of truncating them,
70113         as this is the usual meaning for 'sleep'.
70114
70115         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70116         doesn't work.
70117         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70118         (ENOSYS): Define if not defined.
70119         (settime): Fall back on stime if it exists and settimeofday fails.
70120         But don't bother with fallbacks if a method fails with errno == EPERM.
70121
70122 2004-05-11  Jim Meyering  <jim@meyering.net>
70123
70124         Prior to this change, the save_cwd caller required read access to the
70125         current directory on most systems (ones with the fchdir function).
70126
70127         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70128         fails, try write-only, and finally, resort to using xgetcwd.
70129
70130 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * lib/obstack.c, obstack.h: Import changes from libc.
70133
70134 2004-04-28  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70137         also implicitly appends .exe to executables.
70138         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70139         accepts Windows pathnames.
70140         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70141         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70142         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70143         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70144         Reported by Derek Robert Price <derek@ximbiot.com>.
70145
70146 2004-04-21  Karl Berry  <karl@gnu.org>
70147
70148         * config/srclist.txt (localcharset.c): break sync.
70149
70150 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70151
70152         * m4/host-os.m4: Add a copyright notice.
70153
70154 2004-04-20  Jim Meyering  <jim@meyering.net>
70155
70156         Change UTILS_ to gl_ in AC_DEFINE'd names.
70157         Change utils_- and jm_-prefixed variables, too.
70158         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70159         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70161
70162         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70163         Don't emit trailing blanks.
70164         Also rename jm_-prefixed variables to have gl_ prefix.
70165
70166         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70167         Also rename jm_-prefixed variables to have gl_ prefix.
70168
70169         * m4/jm-macros.m4: Reflect the renamings.
70170         * m4/prereq.m4: Likewise.
70171
70172 2004-04-20  Jim Meyering  <jim@meyering.net>
70173
70174         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70175         memory.
70176
70177 2004-04-20  Jim Meyering  <jim@meyering.net>
70178             Bruno Haible  <bruno@clisp.org>
70179
70180         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70181         memory when realloc fails.
70182
70183 2004-04-19  Jim Meyering  <jim@meyering.net>
70184
70185         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70186         now that readutmp.c may call `free (0)'.
70187
70188 2004-04-19  Bruno Haible  <bruno@clisp.org>
70189
70190         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70191         * m4/inttypes_h.m4: Likewise.
70192         * m4/stdint_h.m4: Likewise.
70193         * m4/intmax_t.m4: Likewise.
70194         * m4/uintmax_t.m4: Likewise.
70195
70196 2004-04-18  Jim Meyering  <jim@meyering.net>
70197
70198         * m4/prereq.m4: Don't forbid jm_ prefix.
70199
70200         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70201         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70202         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70203         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70204         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70205         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70206         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70207         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70208         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70209         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70210         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70211         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70212         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70213         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70214         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70215         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70216         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70217         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70218         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70219
70220 2004-04-18  Jim Meyering  <jim@meyering.net>
70221
70222         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70223         failure, don't leak memory and do call END_UTMP_ENT.
70224
70225 2004-04-16  Jim Meyering  <jim@meyering.net>
70226
70227         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70228         coreutils' stat program.
70229         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70230
70231 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70232
70233         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70234         C89.
70235         (CHAR_BIT): Remove, since we assume C89.
70236         Include <stdint.h> if available, as per current Autoconf CVS advice.
70237
70238 2004-03-31  Jim Meyering  <jim@meyering.net>
70239
70240         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70241         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70242         * m4/xalloc.m4: Likewise.
70243
70244 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70245
70246         Merge from coreutils.
70247
70248         * m4/inttostr.m4: New file.
70249         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70250         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70251         Require gl_CLOCK_TIME.
70252         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70253
70254 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70255
70256         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70257         not bool, to be more consistent with Unix conventions.
70258         Suggested by Bruno Haible.
70259
70260         Merge from coreutils.
70261
70262         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70263         * lib/umaxtostr.c: New files.
70264
70265         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70266         the usual <time.h> dance.
70267         (get_date): Change signature to support fractional time stamps.
70268         All callers changed.
70269         * lib/getdate.y: Include "getdate.h" first, as we can now
70270         assume C89 and don't need to worry about 'const'.
70271         Similarly, include "unlocked-io.h" near start, not in middle.
70272         Include <limits.h>.
70273         (textint.value): Use long int rather than int.
70274         (textint.digits): Use size_t rather than int.
70275         (BILLION, LOG10_BILLION): New constants.
70276         (parser_control): New member rel_ns.  Members day_ordinal,
70277         time_zone, month, day, hour, minutes, rel_year, rel_month,
70278         rel_day, rel_hour, rel_minutes, rel_seconds
70279         are now long int, not int.  Member seconds is now struct timespec,
70280         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70281         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70282         not int.
70283         (%union.intval): Now long int, not int.
70284         New member timespec.
70285         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70286         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70287         (spec): Now is a timespec or an item list.
70288         (timespec, items): New nonterminals.
70289         (time, rel, relunit, number, get_date):
70290         Add support for fractional seconds.
70291         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70292         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70293         (to_hour): First arg is now long int, not int.
70294         (to_year): Returns long int, not int.
70295         Don't treat year -70 like 70.
70296         (tm_diff): Returns long int, not int.
70297         (lookup_word): Use bool instead of int when appropriate.
70298         (yylex): Use size_t for count, not int.
70299         Detect overflow when parsing large integer constants.
70300         Add support for fractions.
70301         (get_date): Make pointers 'const' if possible.
70302         Use more-portable code to detect integer overflow.
70303         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70304         Don't use ctime; it's not reliable if the year has >4 digits.
70305
70306         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70307         This is for compatibility with BSD.
70308
70309         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70310         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70311         From coreutils' system.h.
70312
70313         * lib/userspec.c: Don't include "posixver.h".
70314         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70315         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70316         compatible extension.  Simplify code by removing a boolean int
70317         that was always nonzero if a string was nonnull.
70318
70319 2004-03-30  Jim Meyering  <jim@meyering.net>
70320
70321         Merge from coreutils.
70322
70323         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70324         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70325         on some systems one must include <grp.h> before it.
70326         Reported by Christian Krackowizer.
70327
70328 2004-03-30  Jim Meyering  <jim@meyering.net>
70329
70330         Merge from coreutils.
70331
70332         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70333
70334         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70335         an empty input stream.
70336
70337         * lib/readtokens.c: Include <stdbool.h>.
70338         (readtoken): Use `size_t' rather than int/long.
70339         All callers adjusted.
70340         Use `bool' rather than `int' where appropriate.
70341         Use memset rather than an explicit loop.
70342         Use x2nrealloc rather than xrealloc.
70343         Allow the use of `\0' as a delimiter.
70344         (readtokens): Likewise.
70345         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70346
70347 2004-03-30  Jim Meyering  <jim@meyering.net>
70348
70349         * m4/realloc.m4: Remove file, since now it does no more than
70350         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70351         the `configure.ac' section of module/realloc.
70352         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70353
70354 2004-03-30  Bruno Haible  <bruno@clisp.org>
70355
70356         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70357         nonnull.
70358
70359 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70360
70361         Merge changes to getloadavg.c from coreutils and Emacs.
70362
70363         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70364         Define to an expression, not to the empty string.
70365         Include cloexec.h and xalloc.h.
70366         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70367         Use set_cloexec_flag rather than rolling our own.
70368         * lib/cloexec.c, lib/cloexec.h: New files.
70369
70370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70371
70372         * m4/cloexec.m4: New file.
70373
70374 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70375
70376         * lib/getopt.h: Sync with libc CVS.
70377
70378 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70379             Bruno Haible  <bruno@clisp.org>
70380
70381         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70382         mbswidth.
70383
70384 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70385             Bruno Haible  <bruno@clisp.org>
70386
70387         * lib/mbswidth.h: Include <wchar.h> only if
70388         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70389         <wchar.h>.
70390         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70391
70392 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70393
70394         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70395         Sync with libc CVS.
70396         * lib/getopt_int.h: New file, also synced from libc.
70397
70398 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70399
70400         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70401         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70402         Bring back getopt.c, getopt.h, getopt1.c.
70403
70404 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70405
70406         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70407         All uses changed.  Check for sa_sigaction member; this fixes
70408         a bug first reported by Jason Andrade in
70409         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70410
70411 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70412
70413         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70414         '#if' expressions.  Unlike the code it replaces, it does not
70415         depend on (defined _SC_PAGESIZE).  However, it does depend on
70416         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70417         first reported by Jason Andrade in
70418         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70419
70420 2004-02-25  Simon Josefsson  <jas@extundo.com>
70421
70422         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70423
70424 2004-02-25  Simon Josefsson  <jas@extundo.com>
70425
70426         * lib/strdup.h: New file.
70427         * lib/strdup.c: Include it.
70428         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70429         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70430
70431 2004-02-23  Karl Berry  <karl@gnu.org>
70432
70433         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70434         (from fencepost.gnu.org:/gd/gnuorg).
70435
70436 2004-02-23  Karl Berry  <karl@gnu.org>
70437
70438         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70439         * config/srclist.txt: add maintain/standards documents.
70440
70441 2004-02-18  Bruno Haible  <bruno@clisp.org>
70442
70443         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70444         Reported by Derek Robert Price <derek@ximbiot.com>.
70445
70446 2004-02-16  Karl Berry  <karl@gnu.org>
70447
70448         * config/mkinstalldirs, install-sh: update from automake.
70449
70450 2004-02-06  Karl Berry  <karl@gnu.org>
70451
70452         * m4/po.m4: update from gettext 0.14.1.
70453
70454 2004-02-06  Karl Berry  <karl@gnu.org>
70455
70456         * lib/config.charset: update from gettext 0.14.1.
70457
70458 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70459
70460         Add comments and code, prompted by suggestions from Bruno Haible
70461         for sh-quote.
70462         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70463         describing the enum quoting_style values.
70464         * lib/quotearg.c (quotearg_alloc): New function.
70465         (quotearg_buffer_restyled): Treat lone { and } as special.
70466         Treat = as special.  Work around bug with older shells
70467         that "see" a '\' that is really the 2nd byte of a multibyte char.
70468         Quote empty string with shell_quoting_style.
70469
70470 2004-02-03  Bruno Haible  <bruno@clisp.org>
70471
70472         * m4/pipe.m4: New file, from GNU gettext.
70473
70474 2004-02-03  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/pipe.h: New file, from GNU gettext.
70477         * lib/pipe.c: New file, from GNU gettext.
70478
70479 2004-01-27  Bruno Haible  <bruno@clisp.org>
70480
70481         * m4/execute.m4: New file, from GNU gettext.
70482
70483 2004-01-27  Bruno Haible  <bruno@clisp.org>
70484
70485         * lib/execute.h: New file, from GNU gettext.
70486         * lib/execute.c: New file, from GNU gettext.
70487         * lib/w32spawn.h: New file, from GNU gettext.
70488
70489 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70490
70491         Merge from diffutils.
70492
70493         * lib/file-type.c (file_type): Add typed memory objects.
70494         * lib/file-type.h (S_TYPEISTMO): New macro.
70495
70496         * lib/c-stack.h (c_stack_action): Remove argv argument.
70497         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70498         (die): Don't calculate message unless segv_action returns.
70499         (get_stack_location, min_address_from_argv, max_address_from_argv,
70500         volatile stack_base, volatile_stack_size): Remove.
70501         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70502         that every segmentation violation is a stack overflow.  (Ouch!)
70503         See Debian bug 136249 (still outstanding) for more info about why
70504         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70505
70506 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70507
70508         Exit-status fix from coreutils.
70509
70510         Use exit_failure consistently in place of EXIT_FAILURE,
70511         so that program exit statuses are consistent on failure.
70512
70513         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70514         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70515         * lib/argmatch.h: Comment fix to match the above.
70516         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70517         Now a macro referring to exit_failure, instead of a separate
70518         variable.  Include "exitfail.h" to get it.
70519         * lib/xstrtol.h: Include "exitfail.h".
70520         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70521
70522         * lib/long-options.c (parse_long_options): Use prototype
70523         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70524         for clarity.
70525
70526 2004-01-21  Jim Meyering  <jim@meyering.net>
70527
70528         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70529         so as not to conflict with a different-sized __mktime_internal
70530         function in GNU libc.
70531         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70532         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70533
70534 2004-01-20  Karl Berry  <karl@gnu.org>
70535
70536         * config/config.guess: update from config.
70537
70538         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70539
70540 2004-01-20  Bruno Haible  <bruno@clisp.org>
70541
70542         Safer stack allocation.
70543         * lib/setenv.c: Include allocsa.h.
70544         (alloca): Remove fallback definition.
70545         (freea): Remove macro.
70546         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70547         instead of freea.
70548
70549 2004-01-20  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/eealloc.m4: New file, from GNU gettext.
70552
70553 2004-01-20  Bruno Haible  <bruno@clisp.org>
70554
70555         * m4/allocsa.m4: New file, from GNU gettext.
70556
70557 2004-01-20  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/xallocsa.h: New file, from GNU gettext.
70560         * lib/xallocsa.c: New file, from GNU gettext.
70561
70562 2004-01-20  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70565
70566 2004-01-20  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70569         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70570         specially.
70571
70572 2004-01-20  Bruno Haible  <bruno@clisp.org>
70573
70574         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70575         patch.
70576
70577 2004-01-20  Bruno Haible  <bruno@clisp.org>
70578
70579         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70580
70581 2004-01-20  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/eealloc.h: New file.
70584
70585 2004-01-20  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/binary-io.h: Avoid warnings on Cygwin.
70588
70589 2004-01-20  Bruno Haible  <bruno@clisp.org>
70590
70591         * lib/allocsa.h: New file, from GNU gettext.
70592         * lib/allocsa.c: New file, from GNU gettext.
70593
70594 2004-01-18  Karl Berry  <karl@gnu.org>
70595
70596         * doc/gpl.texi, doc/lgpl.texi: new files.
70597
70598 2004-01-18  Karl Berry  <karl@gnu.org>
70599
70600         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70601         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70602
70603 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70604
70605         Merge from coreutils.
70606
70607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70608         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70609         (gl_DEFAULT_POSIX2_VERSION): Move
70610         the documentation from 'configure' into 'config.hin',
70611         so that 'configure --help' isn't burdened by it and
70612         we don't have to worry about its formatting there.
70613         Reword the documentation so that it's more succinct
70614         and can be run together into a single paragraph.
70615         * m4/same.m4 (gl_SAME): Check for pathconf.
70616
70617 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70618
70619         Merge from coreutils.
70620
70621         * lib/posixver.c: Include posixver.h.
70622
70623         * lib/same.c: Include <stdbool.h>, <limits.h>.
70624         (_POSIX_NAME_MAX): Define if not defined.
70625         (MIN): New macro.
70626         (same_name): If file names are silently truncated, report
70627         that the file names are the same if they are the same after
70628         the silent truncation.
70629
70630         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70631         conversion function.
70632         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70633         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70634         longer needed.
70635
70636 2004-01-15  Jim Meyering  <jim@meyering.net>
70637
70638         Merge from coreutils.
70639
70640         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70641         if no library is required.
70642         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70643         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70644         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70645         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70646         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70647         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70648         value, $ac_cv_search_crypt, if it's "none required".
70649         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70650         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70651         not gl_FUNC_GETLOADAVG.
70652         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70653         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70654
70655 2004-01-15  Jim Meyering  <jim@meyering.net>
70656
70657         Merge from coreutils.
70658
70659         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70660         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70661         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70662
70663         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70664         optional configure-time default.
70665
70666         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70667
70668         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70669
70670 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70671
70672         Merge from coreutils.
70673
70674         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70675         value, $ac_cv_search_nanosleep, if it's "none required".
70676
70677 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70678
70679         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70680         with like-named macro in fnmatch.c.
70681         (EXT): Use an internal constant instead.
70682
70683         Merge fnmatch patches from glibc.
70684         * lib/fnmatch.c (mbsinit): Remove define.
70685         Add libc_hidden_ver (__fnmatch, fnmatch).
70686         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70687         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70688
70689 2004-01-14  Karl Berry  <karl@gnu.org>
70690
70691         * config/install-sh: update from automake.
70692
70693 2004-01-13  Karl Berry  <karl@gnu.org>
70694
70695         * config/install-sh: update from automake.
70696
70697 2004-01-09  Karl Berry  <karl@gnu.org>
70698
70699         * config/install-sh: update from automake.
70700
70701 2004-01-05  Karl Berry  <karl@gnu.org>
70702
70703         * config/config.{sub,guess}: update from config.
70704
70705 2003-12-31  Karl Berry  <karl@gnu.org>
70706
70707         * config/depcomp: update from automake.
70708
70709 2003-12-14  Karl Berry  <karl@gnu.org>
70710
70711         * lib/config.charset: update from gettext-runtime.
70712
70713 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70714
70715         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70716         Bug reported by Alfred M. Szmidt.
70717
70718 2003-12-03  Bruno Haible  <bruno@clisp.org>
70719
70720         * m4/gettext.m4: Upgrade from gettext-0.13.
70721         * m4/po.m4: Upgrade from gettext-0.13.
70722         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70723         * m4/intmax.m4: New file, from gettext-0.13.
70724         * m4/printf-posix.m4: New file, from gettext-0.13.
70725
70726 2003-11-29  Karl Berry  <karl@gnu.org>
70727
70728         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70729
70730 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70731             Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/printf-parse.h: Don't include sys/types.h.
70734         (ARG_NONE): New macro.
70735         (char_directive): Change type of *arg_index fields to size_t.
70736         * lib/printf-parse.c: Don't include sys/types.h.
70737         (SSIZE_MAX): Remove macro.
70738         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70739         Remove unnecessary overflow check.
70740         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70741         fields.
70742
70743 2003-11-25  Bruno Haible  <bruno@clisp.org>
70744
70745         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70746
70747 2003-11-25  Bruno Haible  <bruno@clisp.org>
70748
70749         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70750         gt_TYPE_SSIZE_T.
70751
70752 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70753
70754         * modules/alloca: Remove dependency on xalloc.
70755
70756 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70757
70758         * lib/alloca.c: Remove dependency on xalloc module.
70759         (xalloc_die): Remove.
70760         (memory_full) [!defined emacs]: New macro.
70761         [!defined emacs]: Don't include xalloc.h.
70762         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70763         address arithmetic overflows.  Change datatypes a bit to avoid
70764         unnecessary casts.
70765
70766 2003-11-22  Jim Meyering  <jim@meyering.net>
70767
70768         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70769         s/size/size_t/.
70770
70771 2003-11-21  Karl Berry  <karl@gnu.org>
70772
70773         * config/config.{sub,guess}: update from config.
70774
70775 2003-11-18  Karl Berry  <karl@gnu.org>
70776
70777         * config/config.{sub,guess}: update from config.
70778
70779         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70780
70781 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70782
70783         * README: Mention that S+T cannot overflow if S is the size of
70784         an existing object and T is sufficiently small.
70785
70786 2003-11-17  Jim Meyering  <jim@meyering.net>
70787
70788         On systems without utime and without a utimes function capable of
70789         dealing with a NULL struct utimbuf* argument, this utime replacement
70790         could -- in unusual circumstances -- leak a file descriptor.
70791         * lib/utime.c: Include <unistd.h> and <errno.h>.
70792         (utime_null): Be sure to close `fd' and to preserve errno.
70793         Reported by Geoff Collyer via Arnold Robbins.
70794
70795 2003-11-17  Bruno Haible  <bruno@clisp.org>
70796
70797         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70798         (Depends-on): Add xsize.
70799
70800 2003-11-17  Bruno Haible  <bruno@clisp.org>
70801
70802         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70803
70804 2003-11-17  Bruno Haible  <bruno@clisp.org>
70805
70806         * lib/vasnprintf.c (alloca): Remove fallback definition.
70807         (freea): Remove definition.
70808         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70809         Reported by Paul Eggert.
70810
70811 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70812             Bruno Haible  <bruno@clisp.org>
70813
70814         Protect against address arithmetic overflow.
70815         * lib/printf-args.h: Include stddef.h.
70816         (arguments): Change type of field 'count' to size_t.
70817         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70818         'unsigned int' where appropriate.
70819         * lib/printf-parse.h: Include sys/types.h.
70820         (char_directive): Change type of *arg_index fields to ssize_t.
70821         (char_directives): Change type of fields 'count', max_*_length to
70822         size_t.
70823         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70824         (SSIZE_MAX): Define fallback value.
70825         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70826         instead of 'int' where appropriate. Check a_allocated, d_allocated
70827         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70828         * lib/vasnprintf.c: Include xsize.h.
70829         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70830         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70831         overflow. Avoid wraparound when converting a width or precision from
70832         decimal to binary.
70833
70834 2003-11-16  Bruno Haible  <bruno@clisp.org>
70835
70836         Update from GNU gettext.
70837         * lib/printf-parse.c: Generalize to it can be compiled for wide
70838         strings.
70839         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70840         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70841         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70842         SNPRINTF): New macros.
70843         Don't include <alloca.h> if the file is used inside libintl.
70844         (local_wcslen): New function, for Solaris 2.5.1.
70845         (VASNPRINTF): Use it instead of wcslen.
70846
70847 2003-11-16  Bruno Haible  <bruno@clisp.org>
70848
70849         * lib/xsize.h (xmax): New function.
70850         (xsum, xsum3, xsum4): Declare as "pure" functions.
70851
70852 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70853
70854         * modules/xalloc (Files): Undo latest change, since xalloc.h
70855         no longer needs SIZE_MAX or PTRDIFF_MAX.
70856
70857 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70858
70859         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70860         gl_PTRDIFF_MAX.
70861
70862 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70863
70864         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70865         "return", to pacify some unknown compiler.  Problem reported
70866         by Joerg Schilling.
70867
70868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70869
70870         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70871         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70872         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70873         heuristic is just as accurate as far as we know, and it removes a
70874         dependency on size_max.m4 and ptrdiff_max.m4.
70875
70876 2003-11-11  Bruno Haible  <bruno@clisp.org>
70877
70878         * modules/xsize (Files): Add m4/size_max.m4.
70879         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70880
70881 2003-11-11  Bruno Haible  <bruno@clisp.org>
70882
70883         * m4/size_max.m4: New file.
70884         * m4/ptrdiff_max.m4: New file.
70885         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70886         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70887         (gl_XALLOC): Invoke it.
70888
70889 2003-11-11  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70892         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70893         defined.
70894
70895 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70896
70897         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70898         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70899         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70900         From Bruno Haible.
70901         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70902         not (size_t) -1, since it's defined here.
70903
70904 2003-11-09  Karl Berry  <karl@gnu.org>
70905
70906         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70907
70908 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70909
70910         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70911         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70912         Reject sizes of exactly SIZE_MAX bytes.
70913         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70914         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70915
70916 2003-11-05  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70919         SIZE_MAX defined in <limits.h> on Solaris.
70920
70921 2003-11-04  Jim Meyering  <jim@meyering.net>
70922
70923         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70924         variable names, rather than @VAR@.
70925         * modules/poll: Likewise.
70926
70927 2003-11-04  Bruno Haible  <bruno@clisp.org>
70928
70929         * modules/xsize: New file.
70930         * modules/linebreak: Depend on xsize.
70931         * MODULES.html.sh (func_all_modules): Add xsize.
70932
70933 2003-11-04  Bruno Haible  <bruno@clisp.org>
70934
70935         * m4/xsize.m4: New file.
70936
70937 2003-11-04  Bruno Haible  <bruno@clisp.org>
70938
70939         * lib/xsize.h: New file.
70940         * lib/linebreak.c: Include xsize.h.
70941         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70942         argument for overflow.
70943         Suggested by Paul Eggert.
70944
70945 2003-11-03  Karl Berry  <karl@gnu.org>
70946
70947         * config/config.{guess,sub}: update from config.
70948
70949 2003-11-03  Jim Meyering  <jim@meyering.net>
70950
70951         * modules/userspec (lib_SOURCES): Add userspec.h.
70952         (Include): Add "userspec.h".
70953         Improve description.
70954
70955 2003-11-03  Jim Meyering  <jim@meyering.net>
70956
70957         * lib/userspec.c: Include "userspec.h".
70958         * lib/userspec.h: New file.
70959
70960 2003-11-03  Bruno Haible  <bruno@clisp.org>
70961
70962         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70963
70964 2003-11-03  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70967         available, to avoid (extremely rare) race condition.
70968         Suggested by Paul Eggert.
70969
70970 2003-11-02  Karl Berry  <karl@gnu.org>
70971
70972         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70973
70974 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70975
70976         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70977         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70978         (read_filesystem_list): Set and use me_type_malloced.
70979         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70980         whatever the type happens to be), for brevity and consistency.
70981         Check for size calculation overflow on Alphas running OSF/1.
70982
70983 2003-10-31  Jim Meyering  <jim@meyering.net>
70984
70985         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70986
70987         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70988
70989 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70990             Bruno Haible  <bruno@clisp.org>
70991
70992         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70993         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70994
70995 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70998         netbsd*-gnu*.  Suggested by Robert Millan.
70999
71000 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71001
71002         * modules/group-member: Depend on stdbool.
71003
71004 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71005
71006         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71007
71008 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71009
71010         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71011         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71012         after the 'gnu' in these cases.  This fixes some bugs in the
71013         previous change, and is based on suggestions by Robert Millan.
71014
71015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71016
71017         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71018         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71019         no longer needed.
71020         * lib/quotearg.c (quotearg_n_options): Use it.
71021         * lib/group-member.c: Include <stdbool.h>.
71022         (free_group_info): Arg is now const *; don't free arg.
71023         (get_group_info): Now returns bool and accepts struct group_info *,
71024         rather than returning a malloc'ed struct group_info *.
71025         All uses changed.  Check for overflow in internal size calculation.
71026
71027         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71028         rather than xmalloc/xrealloc.
71029         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71030         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71031         conformance bug: the old code used a pointer after freeing the
71032         storage that it addressed.
71033         * lib/hash.c (hash_initialize): Simplify the code by using
71034         xalloc_oversized rather than doing it by hand.
71035         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71036         the buffer preserved.  Use free and xmalloc instead.
71037         * lib/quotearg.c (quotearg_n_options): Likewise.
71038         Use a simpler test for size overflow.  Don't use xalloc_oversized
71039         because unsigned int might be wider than size_t (!); this suggests
71040         that we should switch from unsigned int to size_t for slot numbers.
71041
71042 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71043
71044         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71045         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71046         NetBSD kernels.  Requested by Richard Stallman.
71047
71048 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71049
71050         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71051         to allocate the returned structure.  Do not allocate a subarray,
71052         as x2nrealloc will do that.
71053         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71054         instead of xnrealloc.
71055         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71056
71057 2003-10-27  Bruno Haible  <bruno@clisp.org>
71058
71059         * lib/stdbool_.h: Better support for BeOS.
71060
71061 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71062
71063         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71064         now uses inline.
71065
71066 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71067
71068         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71069         callers that want to do their own size-overflow checking.  Include
71070         <stdbool.h>, since xalloc_oversized returns bool.
71071         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71072         to use xalloc_oversized.
71073
71074         Add two functions x2realloc, x2nrealloc, for programs that grow
71075         arrays dynamically by doubling their sizes.
71076         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71077         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71078         New functions.
71079
71080         Port to C99 semantics for 'inline' of external functions.
71081         Bug reported by Bruno Haible.
71082         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71083         with the old contents of xnmalloc.
71084         (xnmalloc, xmalloc): Use it.
71085         (xnrealloc_inline): New static inline function,
71086         with the old contents of xnrealloc.
71087         (xnrealloc, xrealloc): Use it.
71088
71089         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71090         that.
71091
71092 2003-10-26  Karl Berry  <karl@gnu.org>
71093
71094         * config/srclist.txt (COPYING.DOC): no longer available from
71095         /gd/gnuorg; don't know where the ultimate source is.
71096
71097 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71098
71099         Fix several address-calculation bugs in the hash modules,
71100         plus some minor code cleanup.
71101
71102         * lib/hash.h: Include <stdbool.h>, for bool.
71103         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71104         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71105         hash_get_n_entries, hash_get_max_bucket_length,
71106         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71107         hash_rehash): Use size_t rather than unsigned.
71108         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71109         hash_get_n_buckets_used, hash_get_n_entries,
71110         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71111         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71112         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71113         Likewise.
71114         (SIZE_MAX): Define if not defined.
71115         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71116         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71117         hash_print):
71118         Use const * when possible.
71119         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71120         (check_tuning): Fix bug: if tuning parameters were very close to
71121         0 or 1, rounding errors could have caused subscript violations.
71122         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71123         (hash_initialize): Add 'fail:' label
71124         to free table and return NULL, and use it to simplify code.
71125         Use calloc rather than clearing the storage ourself.
71126         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71127         buffer size calculations.
71128         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71129         Include <stddef.h>, for size_t.
71130         * lib/hash-pjw.c (hash_pjw): Likewise.
71131         Switch to method described by Bruno Haible.
71132         Include <limits.h>, for CHAR_BIT.
71133         (SIZE_BITS): New macro.
71134
71135 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71136
71137         * m4/getline.m4 (AM_FUNC_GETLINE):
71138         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71139         hosts.  Problem reported by Derek Robert Price in
71140         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71141         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71142         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71143
71144 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71145
71146         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71147         ceiling the allocation at NMAX bytes rather than silently
71148         discarding input bytes before NMAX is reached.  This makes
71149         a difference only if NMAX exceeds SIZE_MAX / 2.
71150
71151         * lib/obstack.c: Merge from glibc.
71152         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71153         Add libc_hidden_def (_obstack_newchunk).
71154         (_obstack_free) [! defined _LIBC]: Remove.
71155         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71156         a clone of the function body.
71157         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71158         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71159
71160         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71161         glibc.
71162         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71163         arg to memcpy.
71164
71165         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71166         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71167         Don't use lvalue casts, as GCC plans to remove support for them
71168         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71169         was also present in the non-GCC version, indicating that this
71170         code had always been buggy and had never been widely used.
71171         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71172         Use the fast variant of each macro, rather than copying the
71173         definiens of the fast variant; that way, we'll be more likely to
71174         catch future bugs in the fast variants.
71175
71176 2003-10-20  Bruno Haible  <bruno@clisp.org>
71177
71178         * modules/wait-process: New file.
71179         * MODULES.html.sh (func_all_modules): Add wait-process.
71180
71181 2003-10-20  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/wait-process.m4: New file.
71184
71185 2003-10-20  Bruno Haible  <bruno@clisp.org>
71186
71187         * lib/wait-process.h: New file, from GNU gettext.
71188         * lib/wait-process.c: New file, from GNU gettext.
71189
71190 2003-10-19  Jim Meyering  <jim@meyering.net>
71191
71192         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71193         HPUX 10.20.
71194
71195 2003-10-18  Karl Berry  <karl@gnu.org>
71196
71197         * config/config.guess: update from config.
71198
71199 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71200
71201         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71202         (getgroups): First arg is int, not size_t.
71203         Don't let 'free' mangle errno.
71204
71205 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71206
71207         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71208
71209 2003-10-16  Karl Berry  <karl@gnu.org>
71210
71211         * config/config.{guess,sub}: update from config.
71212
71213 2003-10-16  Jim Meyering  <jim@meyering.net>
71214
71215         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71216         memcpy.
71217
71218 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71219
71220         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71221         (SIZE_MAX): Remove.
71222         (new_exclude, add_exclude_file): Initial size no longer needs to
71223         be a power of 2.
71224         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71225         our own address arithmetic overflow checking.
71226
71227         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71228         (fnmatch): Do not alloca more than 2000 wide characters;
71229         instead, use malloc for large buffers.
71230         Check for address arithmetic overflow, and return -1
71231         with errno set to ENOMEM in that case.
71232         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71233         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71234         instead, return -1.  Check for address arithmetic overflow.
71235
71236 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71237
71238         Handle invalid suffixes and overflow independently, so that
71239         callers can treat them independently as needed.  Fix some bugs in
71240         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71241         suffix for a human-readable blocksize.  The major caller-visible
71242         change is the addition of a new
71243         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71244         that both overflow and suffix chars were found.
71245
71246         * lib/human.c (humblock): Don't check separately for invalid suffix
71247         char; that is xstrtoumax's job (now that its bug is fixed).
71248         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71249         INTMAX_MAX]: New macros.
71250         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71251         TYPE_MAXIMUM): New macros.
71252         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71253         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71254         if overflow occurs, as it's what __strtol does and it's more useful
71255         in practice.
71256         (__xstrtol): If __strtol reports some error other than ERANGE,
71257         reflect it to the caller as LONGINT_INVALID.  If it reports
71258         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71259         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71260         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71261         value.
71262         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71263         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71264         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71265         [defined UINTMAX_MAX]: New macros.
71266
71267 2003-10-14  Bruno Haible  <bruno@clisp.org>
71268
71269         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71270
71271 2003-10-14  Bruno Haible  <bruno@clisp.org>
71272
71273         * m4/sig_atomic_t: New file, from GNU gettext.
71274         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71275
71276 2003-10-14  Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71279         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71280         Also use volatile where needed.
71281
71282 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71283
71284         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71285         Change maintainer from Bruno Haible to 'all'.
71286
71287 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71288
71289         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71290
71291 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71292
71293         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71294         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71295         and define in terms of the other primitives.
71296         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71297         (SIZE_MAX): Define if not already defined.
71298         (array_size_overflow): New function.
71299         (xalloc_die): Abort instead of exiting if 'error' returns.
71300         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71301         (xmalloc, xrealloc): Use them.
71302         (xcalloc): Check for address arithmetic overflow.
71303         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71304         a bit faster than strcpy.
71305
71306 2003-10-10  Simon Josefsson  <jas@extundo.com>
71307
71308         * modules/argp (Depends-on): Add restrict and strcase.
71309
71310 2003-10-10  Simon Josefsson  <jas@extundo.com>
71311
71312         * m4/argp.m4: Add AC_C_INLINE.
71313
71314 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71315
71316         Merge getpass from libc, plus a few fixes.
71317
71318         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71319         Include <stdbool.h>.
71320         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71321         __fsetlocking to empty.
71322         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71323         do include <bits/libc-lock.h>.
71324         Do not include <fcntl.h>; not needed.
71325         [_LIBC]: Include <wchar.h>.
71326         (NOTCANCEL_MODE): New macro.
71327         (flockfile, funlockfile) [_LIBC]: New macros.
71328         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71329         [!_LIBC]: New macros.
71330         (call_fclose): New function.
71331         (getpass): Use it.  Save tty stream separately; this simplifies the
71332         code and makes it more reliable if stdin happens to equal stdout.
71333         Invoke __fsetlocking on tty.
71334         Handle thread cancellation if needed.
71335         Namespace cleanup (use __tcgetattr, __getline).
71336         Use bool for Booleans.
71337         [USE_IN_LIBIO]: Handle wide streams.
71338         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71339         stream might go where.
71340
71341         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71342         doesn't have to include <stdio.h> before us.
71343         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71344         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71345         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71346         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71347         if not declared, so that we can use getpass.c code from libc without
71348         rewriting it.
71349         (flockfile, ftrylockfile, funlockfile): New macros.
71350
71351 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71352
71353         * modules/getpass: Depend on stdbool.
71354
71355 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71356
71357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71358
71359 2003-10-07  Karl Berry  <karl@gnu.org>
71360
71361         * config/config.{guess,sub}: update from config.
71362
71363 2003-10-06  Jim Meyering  <jim@meyering.net>
71364             Bruno Haible  <bruno@clisp.org>
71365
71366         This lets translators provide better translations for the
71367         "Written by ..." part of --version output.
71368         * lib/version-etc.h: Include stdarg.h.
71369         (version_etc_copyright): Declare as readonly.
71370         (version_etc): Make this function variadic with a NULL-terminated list
71371         of author name strings.
71372         (version_etc_va): New declaration.
71373         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71374         (version_etc_copyright): Declare as readonly.
71375         (version_etc_va): New function. Provide a different translatable string
71376         for each possible number of authors < 10. Abbreviate when there are 10
71377         authors or more.
71378         (version_etc): Make this function variadic. Call version_etc_va.
71379         Suggestion from Gary V. Vaughan.
71380
71381         * lib/long-options.h (parse_long_options): Change prototype: the
71382         authors string is moved to the end and becomes variadic.
71383         * lib/long-options.c: Include stdarg.h.
71384         (parse_long_options): Make this function variadic, too.
71385         Call version_etc_va, not version_etc.
71386
71387 2003-10-06  Bruno Haible  <bruno@clisp.org>
71388
71389         * modules/version-etc-2: Remove file.
71390         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71391
71392 2003-10-06  Bruno Haible  <bruno@clisp.org>
71393
71394         * modules/fatal-signal: New file.
71395         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71396
71397 2003-10-06  Bruno Haible  <bruno@clisp.org>
71398
71399         * m4/fatal-signal.m4: New file.
71400         * m4/signalblocking.m4: New file, from GNU gettext.
71401
71402 2003-10-06  Bruno Haible  <bruno@clisp.org>
71403
71404         * lib/version-etc-2.h: Remove file.
71405         * lib/version-etc-2.c: Remove file.
71406
71407 2003-10-06  Bruno Haible  <bruno@clisp.org>
71408
71409         * lib/fatal-signal.h: New file, from GNU gettext.
71410         * lib/fatal-signal.c: New file, from GNU gettext.
71411
71412 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71413
71414         * README: Rework advice for preventing empty .o files.
71415         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71416         not <sys/types.h>.
71417
71418 2003-10-04  Karl Berry  <karl@gnu.org>
71419
71420         * lib/argp*: update from libc.
71421
71422 2003-10-04  Karl Berry  <karl@gnu.org>
71423
71424         * config/config.{guess,sub}: update from config.
71425
71426 2003-10-02  Bruno Haible  <bruno@clisp.org>
71427
71428         * modules/lchown (Include): Add lchown.h.
71429         * modules/time_r (Include): Use "..." syntax.
71430         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71431
71432 2003-10-01  Simon Josefsson  <jas@extundo.com>
71433
71434         * MODULES.html.sh (func_all_modules): Move gethostname from section
71435         'based on' to section 'lacking' POSIX:2001.
71436
71437 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71438
71439         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71440         to output mode on the same stream.
71441
71442 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71443
71444         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71445         Fix arg typo in previous patch.
71446
71447 2003-09-28  Jim Meyering  <jim@meyering.net>
71448
71449         * lib/error.c: Correct cpp indentation.
71450
71451 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71452
71453         * modules/free: New file.
71454
71455 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71456
71457         * m4/free.m4: New file.
71458
71459 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71460
71461         * lib/minmax.h (MIN, MAX)
71462         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71463         Omit the special code that used __typeof__, since we worry that
71464         it could be more trouble than it's worth.  See:
71465         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71466         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71467
71468         * lib/free.c: New file.
71469
71470 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71471
71472         Trivial fixes to Makefile.am parts of module listings.
71473         * modules/strstr: Append strstr.h to lib_SOURCES.
71474         * modules/strcase: Likewise, for strcase.h.
71475
71476 2003-09-27  Karl Berry  <karl@gnu.org>
71477
71478         * config/mkinstalldirs: update from automake.
71479
71480 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71481
71482         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71483         (error_tail): Do not loop, reallocating temporary buffer, since
71484         the output cannot contain more wide characters than the input
71485         contains bytes, the size must be big enough already.  This avoids
71486         one potential size overflow calculation.  Check for size overflow
71487         when calculating temporary buffer size.  Free temporary buffer
71488         when done, if it was allocated with malloc; this plugs a memory
71489         leak.  Remove casts from void * to pointers, that are no longer
71490         needed now that we're assuming C89 or better.
71491
71492         Merge error changes from glibc.
71493
71494         * lib/error.c, error.h: Update copyright notice header to match glibc.
71495         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71496         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71497         Disable cancellation while printing error.
71498         * lib/error.h: Prepend __ to parameter names.
71499
71500 2003-09-26  Jim Meyering  <jim@meyering.net>
71501
71502         * lib/error.c (error_tail): Move some declarations
71503         into inner scope where the local variables are used.
71504
71505 2003-09-26  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71508         stpncpy().
71509         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71510
71511 2003-09-26  Bruno Haible  <bruno@clisp.org>
71512
71513         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71514         (stpncpy): Define as alias for gnu_stpncpy.
71515         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71516
71517 2003-09-25  Simon Josefsson  <jas@extundo.com>
71518
71519         * lib/xgetdomainname.h: New file.
71520         * lib/xgetdomainname.c: New file.
71521
71522 2003-09-25  Simon Josefsson  <jas@extundo.com>
71523             Bruno Haible  <bruno@clisp.org>
71524
71525         * modules/getdomainname: New file.
71526         * modules/xgetdomainname: New file.
71527         * MODULES.html.sh (func_all_modules): Add getdomainname,
71528         xgetdomainname.
71529
71530 2003-09-25  Simon Josefsson  <jas@extundo.com>
71531             Bruno Haible  <bruno@clisp.org>
71532
71533         * m4/getdomainname.m4: New file.
71534
71535 2003-09-25  Simon Josefsson  <jas@extundo.com>
71536             Bruno Haible  <bruno@clisp.org>
71537
71538         * lib/getdomainname.h: New file.
71539         * lib/getdomainname.c: New file.
71540
71541 2003-09-25  Karl Berry  <karl@gnu.org>
71542
71543         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71544
71545 2003-09-25  Karl Berry  <karl@gnu.org>
71546
71547         * config/install-sh: update from automake.
71548
71549 2003-09-25  Bruno Haible  <bruno@clisp.org>
71550
71551         * modules/version-etc-2: New file, from modules/version-etc with
71552         modifications.
71553         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71554
71555 2003-09-25  Bruno Haible  <bruno@clisp.org>
71556
71557         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71558         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71559
71560 2003-09-24  Simon Josefsson  <jas@extundo.com>
71561
71562         * modules/xgethostname: Add xgethostname.h.
71563
71564 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71565
71566         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71567         the buffer associated with the argument.  Bug reported by
71568         Simon Josefsson.
71569
71570 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71571
71572         * README: Document assumptions that 'int' is at least 32 bits
71573         wide, that integer arithmetic is 2's complement without overflow,
71574         that there are no holes in integer values, that adding sizes of
71575         two nonoverlapping objects can't overflow, and that all-bits-zero
71576         yields scalar zero.  Fix spelling and capitalization typos.
71577
71578 2003-09-19  Karl Berry  <karl@gnu.org>
71579
71580         * lib/argp.h: update from libc.
71581
71582 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71583
71584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71585         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71586         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71587
71588 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71589
71590         * gnulib-tool: Use "test -h", not "test -L", for portability
71591         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71592         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71593         (sed_extract_prog): Issue s commands one-by-one, rather than
71594         using \| in one s command.
71595
71596 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71597
71598         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71599         input error, instead of returning NULL the next time we are called
71600         (and therefore losing track of errno).
71601
71602 2003-09-16  Bruno Haible  <bruno@clisp.org>
71603
71604         * gnulib-tool (func_create_testdir): Warn about duplicated
71605         dependencies.
71606
71607 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71608
71609         * modules/argmatch, modules/fatal, modules/obstack,
71610         modules/xalloc, modules/xgethostname: Sort dependencies by
71611         importance, not alphabetically.
71612
71613 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71614
71615         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71616         fails, so that the caller gets the proper errno.
71617
71618         * lib/readutmp.c (read_utmp): Likewise.
71619         Check for fstat error.  Close stream and free storage
71620         when failing.
71621
71622 2003-09-14  Karl Berry  <karl@gnu.org>
71623
71624         * config/srclist.txt (strdup.c): disable for c89 changes.
71625
71626 2003-09-14  Jim Meyering  <jim@meyering.net>
71627
71628         * lib/getloadavg.c: Correct cpp indentation.
71629         * lib/strdup.c: Likewise.
71630         * lib/vasnprintf.c: Likewise.
71631
71632 2003-09-14  Bruno Haible  <bruno@clisp.org>
71633
71634         * modules/fwriteerror: New file.
71635         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71636
71637 2003-09-14  Bruno Haible  <bruno@clisp.org>
71638
71639         * lib/fwriteerror.h: New file.
71640         * lib/fwriteerror.c: New file.
71641
71642 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71643
71644         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71645         modules/xgethostname, modules/xalloc: Depend on exit.
71646
71647 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71648
71649         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71650
71651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71652         and AC_MINIX, too, so that their extensions are available.
71653
71654         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71655         This macro has been superseded by gl_BACKUPFILE.
71656
71657         More patches to assume C89 or better.
71658
71659         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71660
71661         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71662         unconditionally.
71663         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71664         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71665         Include <string.h>, <stdlib.h> unconditionally.
71666         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71667         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71668         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71669         headers or for string.h.
71670         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71671         or strtoul.
71672
71673         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71674         headers.
71675         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71676         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71677         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71678         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71679         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71680         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71681         memcpy, memset.
71682         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71683         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71684         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71685         strtol.
71686         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71687         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71689         strtoul.
71690
71691 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71692
71693         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71694         * lib/obstack.c [!defined _LIBC]: Likewise.
71695         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71696         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71697         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71698
71699         More changes to assume C89 or better.
71700
71701         * lib/error.c (error_tail): Assume vprintf.
71702
71703         * lib/argmatch.c (getenv): Remove decl.
71704         * lib/progreloc.c (get_full_program_name): Define via prototype.
71705         * lib/setenv.c (clearenv): Likewise.
71706         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71707         needed.
71708         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71709         (malloc, memcpy): Remove decls.
71710         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71711         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71712         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71713         (memcpy): Remove macro.
71714         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71715         (__P): Remove.  All uses removed.
71716         (PTR): Remove.  All uses changed to void *.
71717         (CHAR_BIT, NULL): Remove.
71718         (spaces, zeros, memset_space, memset_zero)
71719         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71720         Remove.
71721         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71722         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71723         Define with prototype.
71724         Remove now-unnecessary prototype decl.
71725         (extra_args_spec): Assume ANSI C.  All uses changed.
71726         (extra_args_spec_iso): Remove.
71727         (my_strftime, emacs_strftimeu): Define via prototype.
71728         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71729         unconditionally.
71730         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71731         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71732         (strtoul, strtol): Remove decls.
71733         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71734         LONG_MAX): Remove.
71735         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71736         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71737         (LOCALE_PARAM_PROTO): New macro.
71738         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71739         (INTERNAL (strtol), strtol): Define with a prototype.
71740         (PARAMS): Remove.  All uses removed.
71741         * lib/tempname.c: Include <string.h> unconditionally.
71742         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71743         * lib/xgethostname.c (main): Define with a prototype.
71744         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71745         Include <stdlib.h> unconditionally.
71746         (calloc, malloc, realloc, free): Remove decls.
71747         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71748         Include <stdlib.h> unconditionally.  Sort include file names.
71749         (strtod): Remove.
71750         (xstrtod): Define with a prototype.
71751         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71752         (strtol, strtoul): Remove decls.
71753
71754 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71755
71756         More patches to assume C89 or better.
71757         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71758         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71759         string.h, memchr, STDC_HEADERS.
71760
71761 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71762
71763         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71764         Include <stdlib.h>, <string.h> unconditionally.
71765         Remove now-unnecessary cast to char *.
71766         * lib/strnlen.c: Include <string.h> unconditionally.
71767         * lib/yesno.c (yesno): Define with a prototype.
71768
71769 2003-09-11  Bruno Haible  <bruno@clisp.org>
71770
71771         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71772
71773 2003-09-10  Jim Meyering  <jim@meyering.net>
71774
71775         * lib/error.c: Correct indentation of cpp directives.
71776
71777 2003-09-10  Bruno Haible  <bruno@clisp.org>
71778
71779         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71780         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71781         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71782         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71783         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71784         <stdlib.h> and <string.h> checks.
71785         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71786         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71787
71788 2003-09-10  Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/strcspn.c: Include <string.h> unconditionally.
71791         * lib/strpbrk.c: Include <string.h> unconditionally.
71792         * lib/strstr.c: Include <string.h> unconditionally.
71793         * lib/unicodeio.c: Include <string.h> unconditionally.
71794         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71795         * lib/unsetenv.c: Likewise.
71796         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71797         * lib/yesno.c: Include <stdlib.h> unconditionally.
71798         (rpmatch): Add prototype.
71799
71800 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71801
71802         More patches to assume C89 or better.
71803         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71804         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71805         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71806         or for string.h.
71807         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71808         stdlib.h.
71809         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71810         C headers.
71811         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71812         string.h.
71813         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71814         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71815         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71816         or for string.h.
71817         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71818         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71819         C headers.
71820         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71821         memcpy.
71822         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71823         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71824         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71825         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71826         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71827         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71828         string.h, free.
71829         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71830         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71831         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71832         C headers, or for string.h.
71833         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71834         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71835         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71836         headers, memory.h, stdlib.h, string.h, strings.h.
71837         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71838         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71839         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71840         strchr.
71841         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71842         headers, memory.h, string.h.
71843         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71844         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71845         free.
71846         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71847         headers.
71848         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71849         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71850         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71851         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71852         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71853
71854 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71855
71856         More K&R removal.
71857
71858         * lib/acosl.c (main): Use a prototype.
71859         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71860         tanl.c: Likewise.
71861
71862         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71863
71864         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71865         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71866         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71867         with a prototype.
71868         * lib/getopt.c (const): Remove macro.
71869         Include <string.h> unconditionally.
71870         (my_index): Remove; all uses changed to strchr.
71871         (strlen): Remove decl.
71872         (exchange): Remove forward decl; no longer needed.
71873         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71874         Define with prototype.
71875         * lib/getopt1.c (const): Remove macro.
71876         (getopt_long, getopt_long_only, main): Define with prototype.
71877
71878         * lib/getugroups.c: Include <string.h> unconditionally.
71879
71880         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71881         (getusershell, setusershell, endusershell, readname, main):
71882         Define with prototypes.
71883
71884         * lib/group-member.c: Include group-member.h first.
71885         Include <stdlib.h> unconditionally.
71886
71887         * lib/hard-locale.c: Include hard-locale.h first.
71888         Include <stdlib.h>, <string.h> unconditionally.
71889
71890         * lib/hash.c (free, malloc): Remove decls.
71891         Include <stdlib.h> unconditionally.
71892
71893         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71894         (getenv): Do not declare.
71895
71896         * lib/idcache.c: Include <string.h> unconditionally.
71897
71898         * lib/long-options.c: Include long-options.h first, to test interface.
71899         Include <stdlib.h> unconditionally.
71900
71901         * lib/makepath.c: Include makepath.h first, to test interface.
71902         Include <stdlib.h> and <string.h> unconditionally.
71903
71904         * lib/linebuffer.c: Include <stdlib.h>.
71905         (free): Remove decl.
71906
71907         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71908         stddef.h. rpl_malloc returns void *, not char *.
71909         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71910         prototype.
71911
71912         * lib/md5.h: Include <limits.h> unconditionally.
71913         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71914         (__P): Remove; all uses removed.
71915         * lib/md5.c: Include "md5.h" first.
71916         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71917         md5_buffer, md5_process_bytes, md5_process_block):
71918         Define with prototypes.
71919         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71920         * lib/sha.c: Include "sha.h" first.
71921         Include <stdlib.h>, <string.h> unconditionally.
71922
71923         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71924         * lib/memcmp.c (__ptr_t): Likewise.
71925         * lib/memrchr.c (__ptr_t): Likewise.
71926         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71927         Include <string.h> unconditionally.
71928         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71929         * lib/memchr.c: Include <stdlib.h> unconditionally.
71930         * lib/memchr.c (LONG_MAX): Remove.
71931         * lib/memrchr.c (LONG_MAX): Likewise.
71932         * lib/memchr.c (__memchr): Define via a prototype.
71933         * lib/memrchr.c (__memrchr): Likewise.
71934         * lib/memcmp.c (__P): Remove, and remove all uses.
71935         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71936         Remove forward decls; no longer needed.
71937         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71938         Use types required by C89 in prototype.
71939
71940         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71941         * lib/savedir.c: Likewise.
71942         * lib/mkdir.c (free): Remove decl.
71943         * lib/rmdir.c (rmdir): Define with a prototype.
71944         * lib/savedir.c: Include savedir.h first, to test interface.
71945
71946         * lib/mktime.c (STDC_HEADERS): Remove.
71947         Include <stdlib.h>, <string.h> unconditionally.
71948
71949         * lib/modechange.c: Include <stdlib.h> unconditionally.
71950         (malloc): Remove decl.
71951
71952         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71953         (free): Remove decl.
71954
71955         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71956         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71957         (This type really should be intptr_t, but that's a C99ism.)
71958         (_obstack_memcpy): Remove: all uses changed to memcpy.
71959         Include <string.h> unconditionally.
71960         (struct obstack): Assume __STDC__ for types of members
71961         chunkfun, freefun, extra_arg.
71962         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71963         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71964         obstack_begin, obstack_specify_allocation,
71965         obstack_specify_allocation_with_arg, obstack_chunkfun,
71966         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71967         Remove unprototyped decls and the macros that use them.
71968         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71969         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71970         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71971         (defined __STDC__ && __STDC__)]:
71972         Remove nonprototyped code.
71973         Include <stdlib.h> unconditionally.
71974         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71975         _obstack_allocated_p, _obstack_free, obstack_free,
71976         _obstack_memory_used, print_and_abort):
71977         Define using prototypes.
71978         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71979         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71980         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71981         obstack_next_free, obstack_object_size, obstack_room) [0]:
71982         Remove unused, unprototyped code.
71983
71984         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71985
71986         * lib/physmem.c (physmem_total, physmem_available, main): Define
71987         with prototypes.
71988
71989         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71990         (main): Define with a prototype.
71991
71992         * lib/posixver.c (getenv): Remove decl.
71993
71994         * lib/putenv.c (malloc): Returns void *, not char *.
71995         Include <string.h> unconditionally.
71996         (strchr, memcpy, NULL): Do not define.
71997
71998         * lib/readtokens.c: Include readtokens.h first, to test interface.
71999         Include <stdlib.h>, <string.h> unconditionally.
72000         (init_tokenbuffer): Define with a prototype.
72001
72002         * lib/regex.c (PARAMS): Remove.  All uses removed.
72003         All uses of _RE_ARGS removed, too.
72004         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72005         unconditionally.
72006         (bzero): Assume memset exists.
72007         (memcmp, memcpy, NULL): Remove.
72008         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72009         char, or assignments to local vars of type signed char.
72010         (init_syntax_once, PREFIX(extract_number_and_incr),
72011         PREFIX(print_partial_compiled_pattern),
72012         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72013         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72014         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72015         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72016         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72017         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72018         wcs_compile_range, byte_compile_range, truncate_wchar,
72019         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72020         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72021         count_mbs_length, wcs_re_match_2_internal,
72022         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72023         PREFIX(alt_match_null_string_p),
72024         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72025         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72026         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72027         now-unnecessary declaration, if any.
72028         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72029         regcomp, regexec):
72030         Remove now-unnecessary casts among pointer types.
72031         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72032
72033         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72034         (free): Remove decl.
72035
72036         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72037
72038         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72039         (free): Remove decl.
72040
72041         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72042         * lib/xgetcwd.c: Likewise.
72043
72044         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72045         (free): Remove decl.
72046
72047         * lib/strchrnul.c (strchrnul): Define with a prototype.
72048         Fix bug: c_in was not converted to char before searching.
72049
72050         The following changes are not K&R related:
72051
72052         * lib/group-member.h: Include <sys/types.h>, so that this file is
72053         self-contained.
72054         * lib/makepath.h: Likewise.
72055
72056         * lib/getusershell.c (readname, default_index, line_size, readname):
72057         Use size_t, not int, for sizes.
72058         (readname): If the size overflows, report an error instead of
72059         looping forever.
72060
72061 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72062
72063         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72064         libc.
72065
72066 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72067
72068         * README: New section: portability guidelines.
72069
72070 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72071
72072         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72073         C89 spec.
72074
72075 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72076
72077         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72078
72079 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72080
72081         Assume C89 or better; remove K&R cruft.
72082         A few of these changes were first proposed by Derek Robert Price
72083         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72084
72085         * lib/addext.c: Include <string.h> unconditionally.
72086         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72087         Don't declare getenv or malloc.
72088
72089         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72090         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72091         (NULL): Remove.
72092         (find_stack_direction, alloca): Use prototypes.
72093
72094         * lib/atexit.c (atexit): Define using a prototype.
72095
72096         * lib/basename.c, dirname.c, stripslash.c:
72097         Include <string.h> unconditionally.
72098
72099         * lib/bcopy.c: Include <stddef.h>.
72100         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72101
72102         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72103
72104         * lib/error.h (error, error_at_line, error_print_progname)
72105         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72106         * lib/error.c: Include error.h first, to check interface.
72107         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72108         (VA_START): Remove; all uses changeed to va_start.
72109         (exit, strerror): Remove decls.
72110         (error_print_progname): Prototype uncondionally.
72111         Don't include <errno.h>; no longer needed.
72112         (private_strerror): Remove.
72113         (error_tail): Always define.
72114         (error, error_at_line): Assume C89 or better; always use prototypes.
72115         * lib/fatal.c: Include "fatal.h" first, to test interface.
72116         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72117         (VA_START): Remove; all uses changed to va_start.
72118         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72119         this case.
72120         (exit): Remove decl.
72121         (fatal): Prototype unconditionally.  Assume va_start works.
72122         Abort at end, to pacify gcc.
72123
72124         * lib/euidaccess.c (main): Define with a prototype.
72125
72126         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72127
72128         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72129
72130         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72131         prototypes.
72132         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72133         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72134         (getenv): Remove decl.
72135         (fnmatch): Define using a prototype.
72136         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72137         (FCT): Define using a prototype.
72138
72139         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72140
72141         * lib/gethostname.c: Include <stddef.h>.
72142         (gethostname): Define with prototype.  Length is size_t, not int.
72143
72144 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72145
72146         Assume C89 or better; remove K&R cruft.
72147         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72148         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72149         string.h, getenv, malloc.
72150         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72151         headers.
72152         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72153         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72154         do not check for strerror.
72155         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72156         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72157         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72158         do not check for doprnt or vprintf.
72159         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72160         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72161
72162 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72163
72164         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72165         getversion.c should have been removed then, but was accidentally
72166         preserved.
72167
72168         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72169         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72170
72171 2003-09-08  Karl Berry  <karl@gnu.org>
72172
72173         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72174                 config, forget about prep.
72175
72176         * config/depcomp, missing: update from automake.
72177
72178 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72179
72180         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72181         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72182
72183 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72184
72185         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72186         copy_tm_result.  Bug reported by Simon Josefsson in
72187         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72188
72189 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72190
72191         * m4/time_r.m4: New file.
72192         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72194         is. Check for timegm declaration.
72195         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72196         Do not check for gmtime_r.
72197         Replace mktime if __mktime_internal does not exist and if mktime
72198         hasn't been replaced already.
72199
72200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72201
72202         * lib/time_r.c, lib/time_r.h: New files.
72203
72204         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72205         __localtime_r.
72206         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72207         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72208
72209         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72210         __gmtime_r.
72211         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72212         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72213         Include <time_r.h>.
72214
72215         * lib/timegm.c: Switch to glibc implementation, with the following
72216         changes:
72217         [defined HAVE_CONFIG_H]: Include <config.h>.
72218         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72219         (__mktime_internal) [!defined _LIBC]: New decl.
72220         (__gmtime_r) [!defined _LIBC]: New macro and function.
72221         (timegm): Use a prototype, since gnulib assumes C89.
72222         Do not bother declaring tmp to be const, as it's not really usefu.
72223         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72224         (timegm): Declare only if HAVE_DECL_TIMEGM.
72225
72226 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72227
72228         * MODULES.html.sh (func_all_modules): Add time_r.
72229         * modules/time_r: New file.
72230         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72231         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72232
72233 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72234
72235         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72236         Bug reported by Lute Kamstra in
72237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72238
72239         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72240         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72241         course with correspondingly smaller numbers for tomorrow and
72242         yesterday.  From Tadayoshi Funaba.  Originally installed into
72243         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72244         coreutils merge?).
72245
72246 2003-08-31  Simon Josefsson  <jas@extundo.com>
72247
72248         * modules/timegm: New file.
72249         * MODULES.html.sh (func_all_modules): Add timegm.
72250
72251 2003-08-31  Simon Josefsson  <jas@extundo.com>
72252
72253         * m4/timegm.m4: New file.
72254
72255 2003-08-31  Simon Josefsson  <jas@extundo.com>
72256
72257         * lib/timegm.h: New file.
72258         * lib/timegm.c: New file.  Based on
72259         wget-1.8.2/src/http.c:mktime_from_utc.
72260
72261 2003-08-31  Karl Berry  <karl@gnu.org>
72262
72263         * lib/argp.h: update from libc.
72264
72265 2003-08-28  Bruno Haible  <bruno@clisp.org>
72266
72267         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72268         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72269         followed by '#define fnmatch fnmatch_posix' gives an error.
72270
72271 2003-08-28  Bruno Haible  <bruno@clisp.org>
72272
72273         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72274         warning on QNX, which defines O_BINARY to 000000.
72275
72276 2003-08-27  Jim Meyering  <jim@meyering.net>
72277
72278         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72279         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72280         would fail after 32.  Reported by Danny Levinson.  Details here:
72281         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72282
72283 2003-08-24  Bruno Haible  <bruno@clisp.org>
72284
72285         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72286         MSVC7 <stdio.h> is included later.
72287
72288 2003-08-22  Simon Josefsson  <jas@extundo.com>
72289
72290         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72291
72292 2003-08-20  Karl Berry  <karl@gnu.org>
72293
72294         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72295
72296 2003-08-20  Bruno Haible  <bruno@clisp.org>
72297
72298         * modules/progname: New file.
72299         * MODULES.html.sh (func_all_modules): Add progname.
72300
72301 2003-08-20  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/progname.h: New file, from GNU gettext.
72304         * lib/progname.c: New file, from GNU gettext.
72305         * lib/progreloc.c: New file, from GNU gettext.
72306
72307 2003-08-19  Jim Meyering  <jim@meyering.net>
72308
72309         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72310         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72311
72312 2003-08-19  Bruno Haible  <bruno@clisp.org>
72313
72314         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72315         more.
72316
72317 2003-08-19  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/xstrdup.c: Assume <string.h> exists.
72320
72321 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72322
72323         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72324         in makefile rules.
72325
72326 2003-08-18  Jim Meyering  <jim@meyering.net>
72327
72328         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72329         * m4/lib-ld.m4: Likewise.
72330
72331 2003-08-18  Jim Meyering  <jim@meyering.net>
72332
72333         * lib/setenv.h: Indent nested cpp directive.
72334         * lib/vasnprintf.c: Remove trailing blanks.
72335
72336 2003-08-17  Simon Josefsson  <jas@extundo.com>
72337
72338         * modules/xstrndup: New file.
72339         * MODULES.html.sh (func_all_modules): Add xstrndup.
72340
72341 2003-08-17  Simon Josefsson  <jas@extundo.com>
72342
72343         * modules/argp: Fix autoconf macro name. Add more dependencies.
72344
72345 2003-08-17  Simon Josefsson  <jas@extundo.com>
72346
72347         * m4/xstrndup.m4: New file.
72348
72349 2003-08-17  Simon Josefsson  <jas@extundo.com>
72350
72351         * m4/argp.m4: New file.
72352
72353 2003-08-17  Simon Josefsson  <jas@extundo.com>
72354             Bruno Haible  <bruno@clisp.org>
72355
72356         * lib/xstrndup.h: New file.
72357         * lib/xstrndup.c: New file.
72358
72359 2003-08-17  Bruno Haible  <bruno@clisp.org>
72360
72361         * modules/strndup (Files, Include): Add lib/strndup.h.
72362
72363 2003-08-17  Bruno Haible  <bruno@clisp.org>
72364
72365         * modules/euidaccess (Files): Add lib/euidaccess.h.
72366
72367 2003-08-17  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/strndup.h: New file.
72370
72371 2003-08-17  Bruno Haible  <bruno@clisp.org>
72372
72373         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72374         like AC_GNU_SOURCE.
72375         * modules/extensions (configure.ac): Comment out the invocation of
72376         gl_USE_SYSTEM_EXTENSIONS.
72377
72378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72379
72380         Merges from coreutils, etc.
72381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72382         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72383         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72384         fixing a typo.
72385         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72386         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72387
72388 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72389
72390         Document merge from coreutils.
72391         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72392         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72393         * modules/utime: Add m4/utimes-null.m4.
72394
72395 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72396
72397         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72398         space, undoing this 2003-08-12 change:
72399         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72400
72401 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72402
72403         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72404         strtoul.c from libc, undoing this 2003-08-12 change:
72405         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72406
72407 2003-08-16  Jim Meyering  <jim@meyering.net>
72408
72409         Merges from coreutils.
72410         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72411         prefix.  Adjust cache variables similarly.  Create 500 rather than
72412         just 300 files, to exercise bug on Darwin6.5, too.
72413         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72414         $missing_dir.
72415         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72416         AM_SYS_POSIX_TERMIOS.
72417         Reported by mkc@mathdogs.com.
72418         Also change use of $am_cv_sys_posix_termios
72419         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72420         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72421         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72422         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72423         in /proc/mounts until it finds one with matching device number.  This
72424         is unnecessary when the FILE argument *is* a mount point.  No stat call
72425         is necessary in that case.  So, disable the statvfs-testing code on
72426         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72427         as RedHat bug# 84846.
72428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72429         to 1MB, so as not to render systems with no stack size limit (e.g.,
72430         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72431         Include <unistd.h>.  On some systems,
72432         it is required for the definition of _SC_PAGESIZE.
72433
72434 2003-08-16  Jim Meyering  <jim@meyering.net>
72435
72436         Merge from coreutils.
72437         * lib/xstrtoimax.c: #else #if -> #elif.
72438         * lib/xstrtoumax.c: Likewise.
72439
72440 2003-08-16  Jim Meyering  <jim@meyering.net>
72441
72442         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72443         * m4/utimes.m4: Removed.
72444         * m4/utimes-null.m4: Renamed from utimes.m4.
72445
72446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72447         to 1MB, so as not to render systems with no stack size limit (e.g.,
72448         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72449         Include <unistd.h>.  On some systems,
72450         it is required for the definition of _SC_PAGESIZE.
72451
72452 2003-08-16  Jim Meyering  <jim@meyering.net>
72453         and Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         Merges from coreutils, etc.
72456
72457         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72458         using the latest version from cvs.  This avoids problems with #line
72459         directives using a vendor (Sun) compiler.
72460         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72461         Don't set GETGROUPS_LIB here; now it's
72462         done via getgroups.m4's wrapper function.
72463         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72464         rather than just in sh-util/configure.in, so that the
72465         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72466         same.
72467         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72468         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72469         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72470         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72471         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72472         Remove code that is now done by the newly-required macros.
72473         Append $(EXEEXT) to DF_PROG.
72474         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72475         Do not invoke or require the following here,
72476         since prereq.m4 or some gnulib .m4 now does this for us:
72477         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72478         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72479         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72480         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72481         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72482         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72483         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72484         AC_FUNC_OBSTACK.
72485         Do not replace the following functions, as this is now the job
72486         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72487         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72488         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72489         atexit getpass, strdup, getpagesize.
72490         Replace 'raise'.
72491         Do not check for the following functions, as this is now the job
72492         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72493         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72494         setregid.
72495         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72496         Check for sys/sysctl.h.
72497         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72498         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72499         of checking for ssize_t ourselves.
72500
72501         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72502         Require every macro that gnulib/modules/* suggests for us.
72503         (jm_PREREQ_ADDEXT): New macro.
72504         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72505         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72506
72507         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72508         (gl_PHYSMEM): Use it.
72509         Also check for `table' function.
72510         Check for new headers and functions.
72511         Add check for sys/sysmp.h.
72512         With suggestions from Kaveh Ghazi.
72513         Ignore headers that are present but cannot be compiled.  This
72514         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72515         C 5.4.
72516
72517 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72518
72519         Document merge from coreutils.
72520         * modules/userspec: Depend on posixver.
72521         * modules/strftime: Depend on tzset.
72522
72523 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72524
72525         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72526         rather than tab, after '#' in shell-script copyright notices.
72527         Suggested by Bruno Haible.
72528
72529 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72530
72531         * config/srclist-update: Use three spaces, rather than tab, after '#'
72532         in shell-script copyright notices.  Suggested by Bruno Haible.
72533         Remove unnecessary parenthesization in regular expression.
72534
72535 2003-08-15  Jim Meyering  <jim@meyering.net>
72536
72537         Merge from coreutils.
72538         * lib/xgethostname.c: Include <stdlib.h>.
72539         (xghostname): Don't exit for anything other than memory-related
72540         failure; just return NULL.
72541         * lib/userspec.c: Include "posixver.h".
72542         (parse_user_spec): Accept `.' as a separator only
72543         in pre-POSIX-200112 mode.
72544         * lib/strtoimax.c: Use #elif rather than #else #if.
72545         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72546         Remove function, now that we can rely on a working tzset function.
72547         [!_LIBC]: Ensure that the required autoconf test has been run.
72548         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72549         Use underlying_strftime for %r.
72550         * lib/sha.c: Merge in some clean-up and optimization changes from
72551         glibc.
72552         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72553         Ensure that it is a multiple of 64.
72554         Rearrange loop exit tests so as to avoid performing an
72555         additional fread after encountering an error or EOF.
72556         * lib/realloc.c: Update copyright date.
72557
72558 2003-08-15  Jim Meyering  <jim@meyering.net>
72559         and Paul Eggert  <eggert@twinsun.com>
72560
72561         Merge from coreutils.
72562         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72563         member but strut utmpx does not.  Needed for AIX 4.3.3.
72564         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72565
72566 2003-08-15  Jim Meyering  <jim@meyering.net>
72567         and Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         Merges from coreutils, etc.
72570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72571         Require gl_FUNC_TZSET_CLOBBER.
72572         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72573         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72574         members.
72575
72576 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72577
72578         Help the merge from coreutils.
72579         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72580         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72581         * m4/tzset.m4: Use it too.
72582
72583 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72584
72585         * modules/tzset: New file.
72586
72587 2003-08-14  Jim Meyering  <jim@meyering.net>
72588
72589         Merges from coreutils.
72590         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72591         variable names, rather than @FNMATCH_H@.
72592         * modules/alloca: Likewise for $(ALLOCA_H).
72593
72594         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72595         the three copies of the literal target, `fnmatch.h'.
72596         * modules/alloca (alloca.h): Likewise.
72597
72598 2003-08-14  Jim Meyering  <jim@meyering.net>
72599
72600         Merge from coreutils.
72601         * m4/tzset.m4: New file.
72602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72603         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72604         otherwise, AIX 5.1 systems would end up using the latter.
72605         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72606         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72607         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72608         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72609
72610 2003-08-14  Jim Meyering  <jim@meyering.net>
72611
72612         Merge from coreutils.
72613         * lib/obstack.h: Whitespace changes.
72614         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72615         and xcalloc return values.
72616         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72617         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72618         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72619         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72620         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72621         error from mntctl.
72622         Use mntctl's return value to drive the entry-processing loop, since
72623         we can't rely on the value of the vmt_length member in the last
72624         entry.  On some systems doing so could result in exhausting
72625         virtual memory.  Based in part on a patch from Mike Jetzer.
72626
72627 2003-08-14  Jim Meyering  <jim@meyering.net>
72628         and Paul Eggert  <eggert@twinsun.com>
72629
72630         Merges from coreutils, plus other fixes.
72631         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72632         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72633         for credits and details.  Thanks to Kaveh Ghazi for helping
72634         to keep these files in sync.
72635         (ARRAY_SIZE): Define it.
72636         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72637         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72638         (memcasecmp): Don't assume size_t fits in unsigned int.
72639         Remove casts and duplicate code.
72640         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72641         (memcpy): Remove definition.
72642         Merge in some clean-up and optimization changes from glibc.
72643         [BLOCKSIZE]: Move definition to top of file.
72644         Ensure that it is a multiple of 64.
72645         Rearrange loop exit tests so as to avoid performing an
72646         additional fread after encountering an error or EOF.
72647         * lib/md5.h (md5_uintptr): Define.
72648         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72649         return to the initial working directory.  Preserve errno
72650         for caller.
72651         * lib/idcache.c: Include "xalloc.h".
72652         (xmalloc, xrealloc): Remove decls.
72653         (getuser): Remove casts no longer required in C89.
72654         * lib/human.c: Include stdio.h, for sprintf.
72655         * lib/group-member.c: Include "xalloc.h".
72656         (xmalloc, xrealloc): Remove decls.
72657         (get_group_info): Remove casts no longer required in C89.
72658         * lib/getusershell.c (readname): Remove casts no longer required in
72659         C89.
72660         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72661         * lib/getline.c: Whitespace fix, from coreutils.
72662
72663 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72664
72665         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72666         Check for isascii.
72667
72668         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72669         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72670         Undo previous (whitespace-only) change.
72671
72672 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72673
72674         * lib/exclude.c: Include <ctype.h>
72675         (IN_CTYPE_DOMAIN): New macro.
72676         (is_space): New fn.
72677         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72678         and empty lines.
72679
72680         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72681         Undo previous (whitespace-only) change.
72682
72683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72684
72685         * config/srclist-update: Change update back to the old behavior,
72686         leaving whitespace alone.  Use one 'sed' command rather than a
72687         pipeline.
72688         (fixlicense): Now a variable, not a function.
72689         (remove_trailing_blanks): Remove.
72690         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72691         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72692         Undo previous (whitespace-only) change.
72693
72694 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72695
72696         Merge from coreutils.
72697         * modules/euidaccess: Add lib_SOURCES, include for new
72698         file euidaccess.h
72699
72700 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72701
72702         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72703         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72704         Normalize leading white space and remove trailing white space.
72705
72706         Merge from coreutils
72707         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72708
72709         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72710         0.12.1.  These files are now being upgraded automatically by
72711         ../config/srclist-update.
72712
72713 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72714
72715         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72716         Normalize leading white space and remove trailing white space.
72717         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72718         notice, as per ../config/srclist-update.
72719
72720         Merge from coreutils.
72721         * lib/euidaccess.h: New file.
72722         * lib/euidaccess.c: Include it.
72723         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72724         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72725         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72726
72727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72728
72729         * config/srclist-update: Add copyright notice.
72730         (remove_id_lines, remove_trailing_blanks): New constants.
72731         (fixfile): Use them to normalize spacing a bit in copied files.
72732         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72733         Normalize leading white space and remove trailing white space.
72734
72735         * config/texinfo.tex: Sync with texinfo.
72736
72737         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72738         strtoul.c from libc, to merge coreutils whitespace changes.
72739
72740         * config/srclist.txt: Get the following m4 files from gettext:
72741         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72742         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72743         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72744         wint_t.m4.
72745
72746 2003-08-12  Karl Berry  <karl@gnu.org>
72747
72748         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72749         been made.
72750
72751 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72752
72753         * modules/gnu-source, m4/gnu-source.m4:
72754         Remove; we're assuming Autoconf 2.54 or later now.
72755         Suggested by Bruno Haible.
72756         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72757
72758 2003-08-11  Bruno Haible  <bruno@clisp.org>
72759
72760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72761
72762 2003-08-11  Bruno Haible  <bruno@clisp.org>
72763
72764         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72765         (vasnprintf): Use it instead of wcslen.
72766
72767 2003-08-11  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72770         value to ensure that _Bool promotes to int. Use #define for _Bool when
72771         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72772
72773 2003-08-10  Karl Berry  <karl@gnu.org>
72774
72775         * lib/regex.h: update from libc (whitespace fix).
72776
72777 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72778
72779         Merge some files from coreutils.  These changes were
72780         originally made by Jim Meyering.
72781         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72782         many older Unixes require this.
72783         * lib/alloca.c (alloca): Remove cast to argument of free;
72784         no longer needed in C89.
72785         * lib/alloca_.h, regex.h: Fix white space to match
72786         what GNU indent does.
72787
72788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72789
72790         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72791         apparently Emacs's Unicode mode got confused before my 2003-08-05
72792         checkin.
72793
72794 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72795
72796         * m4/extensions.m4: New file.
72797         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72798         Require gl_USE_SYSTEM_EXTENSIONS.
72799         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72800         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72801
72802 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72803
72804         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72805         * modules/extensions, modules/gnu-source: New files.
72806         * modules/timespec, modules/unlocked-io: Depend on extensions.
72807
72808 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72809
72810         * modules/restrict: New file.
72811         * MODULES.html.sh (func_all_modules): Add restrict.
72812         * modules/regex: Depend on restrict.
72813
72814 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72815
72816         * m4/restrict.m4: New file.
72817         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72818
72819 2003-08-07  Bruno Haible  <bruno@clisp.org>
72820
72821         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72822         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72823
72824 2003-08-07  Bruno Haible  <bruno@clisp.org>
72825
72826         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72827         makes the module 'getndelim2' compatible with the module 'getline'.
72828
72829 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72830
72831         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72832         byte with "\201" to avoid glitches when editing that source file
72833         with multi-gnome-terminal.
72834
72835 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72836
72837         * lib/bumpalloc.h: Remove.
72838
72839 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72840
72841         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72842         * modules/bumpalloc: Remove.
72843
72844 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72845
72846         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72847         GNU coding style.
72848
72849         Merge from coreutils.
72850         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72851         1. From glibc.
72852         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72853         from Karl Berry, implemented by Jim Meyering.
72854         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72855         from Dmitry V. Levin.
72856         Remove anachronistic cast of xrealloc.
72857         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72858         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72859         type. Otherwise, it wouldn't compile with at least /bin/cc on
72860         ymp-cray-unicos9.0.2.X.
72861         Combine two mostly-identical uses of alloca into one.
72862         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72863
72864 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72865
72866         [From Emacs.]
72867
72868         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72869         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72870         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72871         obsolete NLIST_NAME_UNION.
72872         [__GNU__]: Undef BSD and FSCALE.
72873         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72874
72875 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72876
72877         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72878         an enum type, so that it's guaranteed to promote to int.  See:
72879         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72880
72881 2003-08-03  Karl Berry  <karl@gnu.org>
72882
72883         * config/depcomp: update from automake.
72884
72885 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72886
72887         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72888         (strerror): Don't assume that a printable int fits in 14 bytes.
72889
72890 2003-07-31  Bruno Haible  <bruno@clisp.org>
72891
72892         * modules/getpass-gnu: New file.
72893         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72894
72895 2003-07-31  Bruno Haible  <bruno@clisp.org>
72896
72897         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72898
72899 2003-07-24  Karl Berry  <karl@gnu.org>
72900
72901         * config/missing: update from automake.
72902
72903 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72904             Bruno Haible  <bruno@clisp.org>
72905
72906         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72907         * lib/getline.c (getline, getdelim): Likewise.
72908         Remove _GNU_SOURCE define; now it's defined in config.h through
72909         m4/getline.m4.
72910
72911 2003-07-23  Karl Berry  <karl@gnu.org>
72912
72913         * config/config.sub: update from prep.
72914
72915 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72916
72917         * modules/xalloc (Depends-on): Add exitfail.
72918         * modules/xmemcoll: Likewise.
72919
72920 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72921
72922         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72923         over-parenthesization in macros.
72924
72925         Sync with coreutils.
72926
72927         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72928         required by C99.
72929
72930         Use `exit_failure' for xalloc and xmemcoll instead of their own
72931         private exit-failure variables.
72932         * lib/xalloc.h (xalloc_exit_failure): Remove.
72933         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72934         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72935         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72936         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72937         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72938
72939 2003-07-20  Jim Meyering  <jim@meyering.net>
72940
72941         * modules/closeout (Depends-on): Add exitfail.
72942         Suggestion from Bruno Haible.
72943
72944 2003-07-19  Karl Berry  <karl@gnu.org>
72945
72946         * config/config.sub: update from prep.
72947
72948 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72949
72950         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72951         Remove.
72952         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72953         to test that it can stand by itself.  Include "exitfail.h".
72954         Clients should set exit_failure instead.
72955         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72956
72957 2003-07-18  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/getndelim2: New file.
72960         * modules/getline: Share files with module getndelim2.
72961         * modules/getnline: Depend on getndelim2 instead of sharing files with
72962         it. Add getnline.c to lib_SOURCES.
72963         * MODULES.html.sh (func_all_modules): Add getndelim2.
72964
72965 2003-07-18  Bruno Haible  <bruno@clisp.org>
72966
72967         * m4/getndelim2.m4: New file.
72968         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72969         invoke gl_PREREQ_GETNDELIM2.
72970         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72971         gl_PREREQ_GETNDELIM2.
72972         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72973         gl_GETNDELIM2.
72974
72975 2003-07-18  Bruno Haible  <bruno@clisp.org>
72976
72977         * lib/getndelim2.h: New file.
72978         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72979         getndelim2.h.
72980         (getndelim2): Make non-static. Change return type to ssize_t.
72981         * lib/getline.h: Change argument names.
72982         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72983         * lib/getnline.c: Include getndelim2.h.
72984
72985 2003-07-18  Andreas Schwab  <schwab@suse.de>
72986
72987         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72988
72989 2003-07-17  Karl Berry  <karl@gnu.org>
72990
72991         * config/config.sub: update from prep.
72992
72993 2003-07-17  Bruno Haible  <bruno@clisp.org>
72994
72995         * modules/getnline: New file.
72996         * modules/getline: Add lib/getndelim2.c to source file list.
72997         * MODULES.html.sh (func_all_modules): Add getnline.
72998
72999 2003-07-17  Bruno Haible  <bruno@clisp.org>
73000
73001         * m4/getnline.m4: New file.
73002
73003 2003-07-17  Bruno Haible  <bruno@clisp.org>
73004
73005         * m4/Makefile.am.in: Remove file.
73006         * m4/Makefile.am: Remove file.
73007         * m4/Makefile.in: Remove file.
73008
73009 2003-07-17  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/getnline.h: New file.
73012         * lib/getnline.c: New file.
73013         * lib/getndelim2.c: New file, extracted from getline.c.
73014         (getndelim2): Renamed from getdelim2, with added nmax argument.
73015         * lib/getline.c: Include getndelim2.c.
73016         (getdelim2): Moved out to getndelim2.c.
73017         (getline, getdelim): Update.
73018
73019 2003-07-17  Bruno Haible  <bruno@clisp.org>
73020
73021         * lib/Makefile.am: Remove file.
73022         * lib/Makefile.in: Remove file.
73023
73024 2003-07-17  Bruno Haible  <bruno@clisp.org>
73025
73026         * configure.in: Remove file.
73027         * Makefile.in: Remove file.
73028
73029 2003-07-17  Bruno Haible  <bruno@clisp.org>
73030
73031         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73032
73033 2003-07-16  Karl Berry  <karl@gnu.org>
73034
73035         * config/srclist-update: was running fixlicense twice, which caused
73036                 texinfo.tex to be nullified for some reason.  Simplify,
73037                 $gplsrc is no longer needed as far as I can see?
73038
73039 2003-07-16  Jim Meyering  <jim@meyering.net>
73040
73041         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73042
73043 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73044
73045         * config/srclist.txt: Get the following files from gettext-runtime/intl
73046         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73047         ref-del.sin.  From Bruno Haible.
73048         * config/srclist-update (fixfile): Change grep pattern again, since the
73049         previous fix didn't work (there was another trailing $).  Use
73050         '[$]' to escape the $s.
73051
73052 2003-07-15  Karl Berry  <karl@gnu.org>
73053
73054         * lib/vasnprintf.c: update from gettext.
73055
73056 2003-07-15  Karl Berry  <karl@gnu.org>
73057
73058         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73059         gets expanded when surrounded by '$'.
73060
73061 2003-07-15  Jim Meyering  <jim@meyering.net>
73062
73063         * modules/save-cwd: Don't depend on error.  From Derek Price.
73064
73065 2003-07-15  Jim Meyering  <jim@meyering.net>
73066
73067         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73068
73069 2003-07-14  Simon Josefsson  <jas@extundo.com>
73070
73071         * modules/mempcpy: New file.
73072         * MODULES.html.sh (func_all_modules): Add mempcpy.
73073
73074 2003-07-14  Simon Josefsson  <jas@extundo.com>
73075
73076         * m4/mempcpy.m4: New file.
73077
73078 2003-07-14  Simon Josefsson  <jas@extundo.com>
73079
73080         * lib/mempcpy.h: New file.
73081         * lib/mempcpy.c: New file.
73082
73083 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73084
73085         * modules/getdate, modules/posixtm: Depend on mktime.
73086
73087 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73088
73089         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73090         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73091         unicodeio.c, unicodeio.h, unlocked-io.h:
73092         Switch from LGPL to GPL.
73093
73094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73095
73096         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73097         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73098         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73099         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73100         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73101         updated automatically by ../config/srclist-update.  This changes
73102         their license from LPGL to GPL.
73103
73104 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73105
73106         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73107         assumed to refer to the root of the most recent stable gettext version.
73108         * config/srclistvars.sh: Add defaults for eggert.
73109         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73110         Match "This program" as well as "The program".  This is needed
73111         for gettext.
73112
73113 2003-07-14  Jim Meyering  <jim@meyering.net>
73114
73115         Don't emit diagnostics.  Let callers do that.
73116         * lib/save-cwd.c: Don't include "error.h".
73117         (save_cwd): Don't call error.  Ensure that errno is valid
73118         when returning nonzero.
73119
73120         * lib/save-cwd.h (restore_cwd): Update prototype.
73121         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73122         Simplify.  Don't call error upon failure.  Let callers do that.
73123         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73124         when auditing is enabled.  But don't bother updating the #if.
73125
73126 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73127
73128         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73129         it breaks C++ compilation.
73130         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73131
73132 2003-07-10  Simon Josefsson  <jas@extundo.com>
73133
73134         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73135
73136 2003-07-10  Jim Meyering  <jim@meyering.net>
73137
73138         * m4/clock_time.m4: Remove trailing blank.
73139         * m4/intmax_t.m4: Likewise.
73140
73141 2003-07-10  Jim Meyering  <jim@meyering.net>
73142
73143         * lib/vasnprintf.c: Remove trailing blanks.
73144         Make cpp indentation consistent.
73145
73146 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73147
73148         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73149         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73150         Switch from LGPL to GPL.
73151
73152 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73153
73154         * config/srclist.txt: Sort sublists.  Add
73155         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73156         that differ from gnulib for one reason or another; we'd like this list
73157         to be smaller but for now let's document what we have.
73158
73159 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73160
73161         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73162         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73163         and sweeter "eval x=$x".
73164         * config/srclist.txt: Get lib/argp* from glibc.
73165
73166 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73167
73168         * lib/mktime.c: Fix some boundary cases and remove need for floating
73169         point.
73170
73171         Issue a compile-time diagnostic if time_t is floating point, or if
73172         two's complement arithmetic is not in effect, or if arithmetic
73173         right shift does not propagate the sign.  These assumptions were
73174         all in the original code but they weren't checked.
73175
73176         (TIME_T_MIDPOINT, verify): New macros.
73177         (__isleap): Remove; it has integer overflow problems.
73178         (leapyear): New function, without those problems.
73179         (ydhms_tm_diff): Remove; splitting into two parts.
73180         (ydhms_diff): New function, containing the arithmetic part of
73181         the old ydhms_tm_diff function.  Issue a compile-time
73182         diagnostic if we are not using C99 integer division.
73183         Avoid casts when possible.
73184         (guess_time_tm): New function, containing the checking part of
73185         the old ydhms_tm_diff function.  Return the new value, rather than
73186         the difference between it and the old.  Accept a new argument T
73187         so that *T specifies the old value.  Check for overflow in the result.
73188
73189         (__mktime_internal): Use a time_t offset, not a long int offset.
73190         This undoes the 2003-06-04 change, which is no longer needed now
73191         that we have better overflow checking.
73192         (localtime_offset): Likewise.
73193
73194         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73195         and long are 64-bit but int is only 32-bit.
73196         (ydhms_diff): Use long int to store year1 and yday1.
73197         Issue a compile-time diagnostic if long int is not wide enough.
73198
73199         (__mktime_internal): Use long int to store adjusted year and yday.
73200         Use plain C rather than preprocessor commands, if that doesn't
73201         affect efficiency.
73202         Check for overflow (and try to repair) after each probe
73203         rather than checking only at the very end.  This avoids some bugs
73204         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73205         does not equal GMT offset at maximum time).
73206         Use integer to check for overflow rather than floating point; this
73207         is more portable to non-IEEE hosts, and is a tad faster.
73208         When we detect that we are oscillating between two values,
73209         don't check whether tm_isdst has the requested value, since
73210         we already know the answer.  When tm_isdst has the wrong value,
73211         use a different heuristic to find the right one, based on the
73212         extreme values actually observed in practice in tz2003a,
73213         rather than the (overly optimistic) "previous 3 calendar quarters".
73214
73215         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73216         "T const" to accommodate glibc style.
73217         (check_result): Use less-confusing report format.  "long" -> "long int.
73218         (main): Likewise.
73219         Don't loop if the iteration overflows time_t.
73220         Allow a negative step in the iteration.
73221
73222 2003-07-06  Karl Berry  <karl@gnu.org>
73223
73224         * config/depcomp: update from automake.
73225         * config/config.sub: update from prep.
73226
73227 2003-07-03  Karl Berry  <karl@gnu.org>
73228
73229         * config/config.guess: update from prep.
73230
73231 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73232
73233         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73234         xreadlink.c now includes it unconditionally.
73235
73236 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73237
73238         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73239         having it depend on HAVE_SYS_TYPES_H.
73240
73241 2003-07-01  Bruno Haible  <bruno@clisp.org>
73242
73243         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73244         <sys/types.h> should be sufficient.
73245         Reported by Paul Eggert.
73246
73247 2003-06-26  Karl Berry  <karl@gnu.org>
73248
73249         * config/depcomp: update from automake.
73250
73251 2003-06-26  Bruno Haible  <bruno@clisp.org>
73252
73253         * modules/human: Depend on module stdbool.
73254
73255 2003-06-25  Bruno Haible  <bruno@clisp.org>
73256
73257         * modules/readlink: New file.
73258         * modules/xreadlink: Depend on it.
73259         * MODULES.html.sh (func_all_modules): Add readlink.
73260
73261 2003-06-25  Bruno Haible  <bruno@clisp.org>
73262
73263         * m4/readlink.m4: New file.
73264
73265 2003-06-25  Bruno Haible  <bruno@clisp.org>
73266
73267         * lib/readlink.c: New file.
73268
73269 2003-06-22  Karl Berry  <karl@gnu.org>
73270
73271         * config/srclist.txt: update mkinstalldirs from automake.
73272         * config/mkinstalldirs: update.
73273
73274 2003-06-22  Bruno Haible  <bruno@clisp.org>
73275
73276         Portability to mingw32.
73277         * m4/ssize_t.m4: New file, from GNU gettext.
73278         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73279         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73280
73281 2003-06-22  Bruno Haible  <bruno@clisp.org>
73282
73283         * modules/safe-read: Add m4/ssize_t.m4.
73284         * modules/xreadlink: Add m4/ssize_t.m4.
73285
73286 2003-06-20  Bruno Haible  <bruno@clisp.org>
73287
73288         Assume C89, so PARAMS isn't needed.
73289         * lib/unicodeio.h (PARAMS): Remove.
73290         * lib/unicodeio.c: Don't use PARAMS.
73291
73292 2003-06-18  Karl Berry  <karl@gnu.org>
73293
73294         * config/config.{guess,sub}: update from prep.
73295
73296 2003-06-18  Jim Meyering  <jim@meyering.net>
73297
73298         Merge changes from coreutils.
73299         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73300         Remove explicit declarations of xmalloc and realloc.
73301         Include xalloc.h.
73302         (read_utmp): Remove anachronistic cast of xmalloc.
73303
73304 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73305
73306         Assume C89, so PARAMS isn't needed.
73307         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73308         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73309         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73310         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73311         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73312         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73313         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73314         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73315         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73316         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73317         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73318         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73319         no longer needed. Anyway, config.h should always be included before any
73320         other file.
73321
73322 2003-06-11  Simon Josefsson  <jas@extundo.com>
73323
73324         * modules/sysexits: New file.
73325         * MODULES.html.sh (func_all_modules): Add sysexits.
73326
73327 2003-06-11  Simon Josefsson  <jas@extundo.com>
73328
73329         * lib/sysexit_.h: New file.
73330
73331 2003-06-11  Derek Price  <derek@ximbiot.com>
73332
73333         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73334         necessary.
73335
73336 2003-06-11  Bruno Haible  <bruno@clisp.org>
73337
73338         * m4/sysexits.m4: New file.
73339
73340 2003-06-10  Simon Josefsson  <jas@extundo.com>
73341
73342         * lib/argp.h: New file, from glibc.
73343         * lib/argp-ba.c: New file, from glibc.
73344         * lib/argp-eexst.c: New file, from glibc.
73345         * lib/argp-fmtstream.c: New file, from glibc.
73346         * lib/argp-fmtstream.h: New file, from glibc.
73347         * lib/argp-fs-xinl.c: New file, from glibc.
73348         * lib/argp-help.c: New file, from glibc.
73349         * lib/argp-namefrob.h: New file, from glibc.
73350         * lib/argp-parse.c: New file, from glibc.
73351         * lib/argp-pv.c: New file, from glibc.
73352         * lib/argp-pvh.c: New file, from glibc.
73353         * lib/argp-xinl.c: New file, from glibc.
73354
73355 2003-06-10  Simon Josefsson  <jas@extundo.com>
73356
73357         * modules/strchrnul: New file.
73358
73359 2003-06-10  Simon Josefsson  <jas@extundo.com>
73360
73361         * modules/argp: New file.
73362
73363 2003-06-10  Simon Josefsson  <jas@extundo.com>
73364
73365         * m4/strchrnul.m4: New file.
73366
73367 2003-06-10  Simon Josefsson  <jas@extundo.com>
73368
73369         * lib/strchrnul.h: New file.
73370         * lib/strchrnul.c: New file.
73371
73372 2003-06-10  Bruno Haible  <bruno@clisp.org>
73373
73374         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73375
73376 2003-06-07  Karl Berry  <karl@gnu.org>
73377
73378         * config/config.{guess,sub}: update from prep.
73379
73380 2003-06-07  Jim Meyering  <jim@meyering.net>
73381
73382         * modules/strtod: Use $(...) notation, not @...@ for
73383         AC_REPLACE'd variables.
73384         * modules/localcharset: Likewise.
73385
73386 2003-06-07  Jim Meyering  <jim@meyering.net>
73387
73388         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73389         in place of my name in the copyright comment.
73390         Remove definition and uses of __P.
73391
73392         From coreutils.
73393         * lib/stat.c: Don't declare xmalloc explicitly.
73394         Instead, include "xalloc.h".
73395         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73396         xrealloc, and xcalloc return values.
73397         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73398         Improve comment.
73399         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73400
73401 2003-06-07  Bruno Haible  <bruno@clisp.org>
73402
73403         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73404         avoid AC_CONFIG_LINKS.
73405         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73406         fnmatch.h, to avoid AC_CONFIG_LINKS.
73407         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73408
73409 2003-06-07  Bruno Haible  <bruno@clisp.org>
73410
73411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73412         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73413         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73414         directory.
73415         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73416         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73417         directory.
73418
73419 2003-06-06  Jim Meyering  <jim@meyering.net>
73420
73421         Merge from coreutils.
73422         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73423         Consolidate declarations and initializations of *_base* locals.
73424
73425         Merge from coreutils.
73426         This avoids a core dump on systems without GNU putenv,
73427         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73428         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73429         (unsetenv): New static function, from GNU libc.
73430         (rpl_putenv): Use it.
73431
73432         * lib/modechange.c: Remove trailing blanks.
73433
73434         Merge from coreutils.
73435         * lib/fsusage.c: Remove declaration of statfs.
73436         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73437
73438         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73439
73440 2003-06-06  Jim Meyering  <jim@meyering.net>
73441
73442         * lib/stdbool_.h: Renamed from stdbool.h.in.
73443
73444 2003-06-06  Jim Meyering  <jim@meyering.net>
73445             Bruno Haible  <bruno@clisp.org>
73446
73447         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73448         Adjust Makefile.am snippet not to redirect directly to target.
73449         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73450
73451 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73452
73453         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73454         mismatch, look in future quarters as well as past.  This fixes a
73455         bug when processing fall-backwards gaps immediately after a long
73456         period of daylight-saving time.
73457
73458         * lib/mktime.c: Assume freestanding C89 or better.
73459         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73460         (__P): Remove; not used.
73461         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73462         (mktime, not_equal_tm, print_tm, check_result,
73463         main): Use prototypes.  Use const * where appropriate.
73464         (main): Fix typo in testing code that uncovered by above changes.
73465         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73466
73467 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73468
73469         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73470         locale.h, localeconv.  This merges changes from coreutils.
73471
73472         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73473         It can be removed after the next Autoconf is released.
73474         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73475         needed.
73476
73477 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73478
73479         * lib/mktime.c: Fix Debian bug 177940
73480         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73481         (localtime_offset): Now long int, not time_t, because we want it
73482         to be guaranteed to be signed.  All uses changed.
73483         (__mktime_internal): If overflow would occur when adding offset,
73484         don't add it.
73485
73486         Merge 'human' changes from coreutils.  Rewrite to support
73487         locale-specific notations like thousands separators.
73488         * lib/human.c: Simplify authorship notice.
73489         Include human.h immediately after config.h.
73490         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73491         <limits.h>: Do not include, since human.h does.
73492         (SIZE_MAX, UINTMAX_MAX): New macros.
73493         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73494         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73495         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73496         (power_letter): Renamed from suffixes.
73497         (generate_suffix_backwards): Remove.
73498         (adjust_value): Now takes int style (because of human.h changes)
73499         and long double value (for greater precision on some platforms).
73500         (group_number): New function.
73501         (human_readable): Use it.  Use integer options, not enum.
73502         Put the options before the sizes in the arg list.
73503         Support all the new options.
73504         The old human_readable function has been removed;
73505         use inttostr.h instead.
73506         (human_readable, default_block_size, humblock):
73507         Use uintmax_t, not int, for block sizes.
73508         (human_readable_inexact, block_size_types): Remove.
73509         (block_size_opts): New constant.
73510         (human_options): Renamed from human_block_size, with new signature
73511         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73512         * lib/human.h: Add copyright and authorship notice.
73513         Include <limits.h> and <stdbool.h> unconditionally.
73514         (PARAMS): Remove.  All uses removed.
73515         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73516         (enum human_inexact_style): Remove tag; now a nameless enum.
73517         (human_floor, human_ceiling, human_round_to_even): Now have
73518         values 2, 0, 1 rather than -1, 1, 0.
73519         (human_group_digits, human_suppress_point_zero, human_autoscale,
73520         human_base_1024, human_SI, human_B): New constants.
73521         (human_readable_inexact, human_block_size): Remove.
73522         (human_readable): Size args are now uintmax_t, not int.
73523         (human_options): New decl.
73524
73525         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73526         unnecessary now that we assume C89 or better.  This change
73527         imported from coreutils.
73528
73529         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73530         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73531         in the 2003-05-30 sync from glibc.
73532
73533         .h files should stand alone, but we shouldn't include <sys/types.h>
73534         if we can get away with just <stddef.h>.
73535
73536         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73537         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73538         rather than <sys/types.h>, as we merely need size_t.
73539         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73540         to get size_t.
73541         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73542         Include <stdio.h>, to get FILE.
73543         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73544         memcasecmp.h has included <stddef.h> and all we need is size_t.
73545         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73546         our interface, instead of including <sys/types.h>
73547
73548 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73549
73550         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73551         now, as glibc mktime is buggy on non-glibc systems.
73552
73553 2003-06-03  Karl Berry  <karl@gnu.org>
73554
73555         * config/config.sub: update from prep.
73556
73557 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73558
73559         [from coreutils]
73560         Fix some minor time-related bugs with POSIX time arguments.
73561         Some valid time stamps were being rejected (notably -1, and
73562         time stamps before 1900 on 64-bit hosts).  And some invalid
73563         time stamps were being accepted, e.g. September 31.
73564
73565         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73566         that we can return (time_t) -1 successfully.
73567         * lib/posixtm.c: Likewise.
73568         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73569         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73570         (t): Remove static var.
73571         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73572         of static var.  All uses changed.
73573         (year): Do not reject years before 1900; they can occur with
73574         64-bit time_t.
73575         (posix_time_parse): Do not check for out-of-range components;
73576         that is now the caller's responsibility, since our checks were
73577         only approximations.
73578         (posixtime): Use mktime to check for out-of-range components,
73579         since it knows them exactly.
73580         If mktime returns (time_t) -1, check whether an error actually occurred
73581         by invoking localtime on -1.
73582         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73583         posixtime failures better.
73584         Improve the test data (in comments only).
73585
73586 2003-06-02  Karl Berry  <karl@gnu.org>
73587
73588         * config/mkinstalldirs (version): new variable.
73589         (--version): new option.
73590         (usage): improve message.
73591
73592 2003-05-30  Karl Berry  <karl@gnu.org>
73593
73594         * lib/mktime.c: update from libc.
73595
73596 2003-05-30  Bruno Haible  <bruno@clisp.org>
73597
73598         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73599         * config/config.rpath: Upgrade to gettext-0.12.1.
73600
73601 2003-05-30  Bruno Haible  <bruno@clisp.org>
73602
73603         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73604         * m4/nls.m4: New file, from gettext-0.12.1.
73605         * m4/po.m4: New file, from gettext-0.12.1.
73606         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73607
73608 2003-05-30  Bruno Haible  <bruno@clisp.org>
73609
73610         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73611         * lib/localcharset.h: Likewise.
73612         * lib/localcharset.c: Likewise.
73613
73614 2003-05-29  Karl Berry  <karl@gnu.org>
73615
73616         * config/config.rpath: update from gettext.
73617
73618 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73619
73620         Assume the headers required for C89 freestanding compilers.
73621         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73622         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73623         * m4/human.m4 (gl_HUMAN): Likewise.
73624         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73625         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73626         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73627         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73628         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73629         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73630
73631 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73632
73633         Assume the headers required for C89 freestanding compilers.
73634         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73635         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73636         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73637         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73638         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73639         define, since <limits.h> is guaranteed to do that.
73640         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73641         * lib/exclude.c: Include <stdbool.h> unconditionally.
73642         * lib/tempname.c: Include <stddef.h> unconditionally.
73643         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73644         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73645         <stddef.h> does that.
73646         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73647         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73648         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73649         needed.
73650         * lib/xstrtol.c: Likewise.
73651         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73652         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73653
73654         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73655         warnings on some platforms.
73656
73657         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73658         arbitrarily.
73659
73660 2003-05-26  Jim Meyering  <jim@meyering.net>
73661
73662         Merge in a change from coreutils:
73663         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73664         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73665         that condition, rather than `-1' which is slightly misleading.
73666         Change the name of the cache variable to have the gl_ prefix.
73667         Prompted by a patch from Richard Dawe for DJGPP.
73668
73669 2003-05-24  Karl Berry  <karl@gnu.org>
73670
73671         * config/config.guess: update from prep.
73672
73673 2003-05-22  Karl Berry  <karl@gnu.org>
73674
73675         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73676
73677 2003-05-20  Karl Berry  <karl@gnu.org>
73678
73679         * config/config.guess: update from prep.
73680
73681 2003-05-18  Karl Berry  <karl@gnu.org>
73682
73683         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73684         might actually be set by the user.
73685
73686         * config/depcomp, install-sh, mdate-sh: update from automake.
73687
73688 2003-05-17  Bruno Haible  <bruno@clisp.org>
73689
73690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73691         invalid expansion for AC_EGREP_CPP.
73692         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73693         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73694         Suggested by Akim Demaille <akim@epita.fr> in
73695         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73696
73697 2003-05-12  Jim Meyering  <jim@meyering.net>
73698
73699         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73700         the space-padded-by-default conversion specifiers, %e, %k, %l.
73701
73702 2003-05-12  Bruno Haible  <bruno@clisp.org>
73703
73704         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73705         the string is longer than 4 KB.
73706
73707 2003-05-11  Karl Berry  <karl@gnu.org>
73708
73709         * config/config.{guess,sub}: update from prep.
73710
73711 2003-05-09  Bruno Haible  <bruno@clisp.org>
73712
73713         * modules/error: Add m4/strerror_r.m4 to file list.
73714
73715 2003-05-03  Bruno Haible  <bruno@clisp.org>
73716
73717         Upgrade to Unicode-4.0.
73718         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73719         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73720         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73721         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73722         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73723         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73724         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73725         Change width of U+E0100..U+E01EF from 1 to 0.
73726
73727 2003-04-25  Jim Meyering  <jim@meyering.net>
73728
73729         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73730         of type size_t, not int.
73731
73732 2003-04-25  Bruno Haible  <bruno@clisp.org>
73733
73734         * lib/copy-file.c: Include <stddef.h>, for size_t.
73735
73736 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73737
73738         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73739         code which expansion is under static control.  Patch imported from
73740         Akim Demaille's patch to Bison; see
73741         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73742
73743 2003-04-14  Bruno Haible  <bruno@clisp.org>
73744
73745         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73746
73747 2003-04-11  Jim Meyering  <jim@meyering.net>
73748
73749         Merge changes from Coreutils.
73750
73751         2003-03-22  Jim Meyering  <jim@meyering.net>
73752
73753         * lib/strftime.c (widen): Cast alloca return value to proper type.
73754
73755         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73756
73757         From GNU libc.
73758         * lib/strftime.c (my_strftime): Handle very large width
73759         specifications for numeric values correctly.  Improve checks for
73760         overflow.
73761
73762         2003-01-19  Jim Meyering  <jim@meyering.net>
73763
73764         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73765         definitions.
73766         (nl_get_alt_digit) [! defined my_strftime]: Define.
73767         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73768         _nl_get_alt_digit and _nl_get_walt_digit.
73769
73770         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73771         libc. These changes have no effect outside of _LIBC.
73772
73773 2003-04-10  Bruno Haible  <bruno@clisp.org>
73774
73775         * modules/findprog: New file.
73776         * MODULES.html.sh (func_all_modules): Add it.
73777
73778 2003-04-10  Bruno Haible  <bruno@clisp.org>
73779
73780         * m4/findprog.m4: New file.
73781         * m4/eaccess.m4: New file.
73782
73783 2003-04-10  Bruno Haible  <bruno@clisp.org>
73784
73785         * lib/findprog.h: New file, from GNU gettext.
73786         * lib/findprog.c: New file, from GNU gettext.
73787
73788 2003-04-05  Jim Meyering  <jim@meyering.net>
73789
73790         Merge changes from Coreutils.
73791
73792         * lib/exclude.h (PARAMS): Remove definition and uses.
73793         * lib/exclude.c: Remove uses of `PARAMS'.
73794
73795         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73796         Add test-cases for DOS filenames. Declare program_name.
73797         (main): Set up program_name.  Patch by Rich Dawe.
73798
73799         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73800         error from mntctl.
73801         Use mntctl's return value to drive the entry-processing loop, since
73802         we can't rely on the value of the vmt_length member in the last
73803         entry.  On some systems doing so could result in exhausting
73804         virtual memory.  Based in part on a patch from Mike Jetzer.
73805
73806 2003-04-04  Bruno Haible  <bruno@clisp.org>
73807
73808         * modules/linebreak: New file.
73809         * MODULES.html.sh (func_all_modules): Add it.
73810
73811 2003-04-04  Bruno Haible  <bruno@clisp.org>
73812
73813         * m4/linebreak.m4: New file.
73814
73815 2003-04-04  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/linebreak.h: New file, from GNU gettext.
73818         * lib/linebreak.c: New file, from GNU gettext with slight
73819         modifications.
73820         * lib/lbrkprop.h: New file, from GNU gettext.
73821
73822 2003-04-03  Bruno Haible  <bruno@clisp.org>
73823
73824         * modules/utf8-ucs4: New file.
73825         * modules/utf16-ucs4: New file.
73826         * modules/ucs4-utf8: New file.
73827         * modules/ucs4-utf16: New file.
73828         * MODULES.html.sh (func_all_modules): Add them.
73829
73830 2003-04-03  Bruno Haible  <bruno@clisp.org>
73831
73832         * m4/utf-ucs4.m4: New file.
73833         * m4/ucs4-utf.m4: New file.
73834
73835 2003-04-03  Bruno Haible  <bruno@clisp.org>
73836
73837         * lib/utf8-ucs4.h: New file, from GNU gettext.
73838         * lib/utf16-ucs4.h: New file, from GNU gettext.
73839         * lib/ucs4-utf8.h: New file, from GNU gettext.
73840         * lib/ucs4-utf16.h: New file, from GNU gettext.
73841
73842 2003-04-02  Bruno Haible  <bruno@clisp.org>
73843
73844         * modules/binary-io: New file.
73845         * MODULES.html.sh (func_all_modules): Add it.
73846
73847 2003-04-02  Bruno Haible  <bruno@clisp.org>
73848
73849         * lib/binary-io.h: New file, from GNU gettext.
73850
73851 2003-04-01  Bruno Haible  <bruno@clisp.org>
73852
73853         * modules/pathname: New file.
73854         * MODULES.html.sh (func_all_modules): Add it.
73855
73856 2003-04-01  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/pathname.h: New file, from GNU gettext.
73859         * lib/concatpath.c: New file, from GNU gettext.
73860
73861 2003-03-30  Bruno Haible  <bruno@clisp.org>
73862
73863         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73864
73865 2003-03-30  Bruno Haible  <bruno@clisp.org>
73866
73867         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73868         function chown() doesn't exist.
73869
73870 2003-03-28  Bruno Haible  <bruno@clisp.org>
73871
73872         * modules/copy-file: New file.
73873         * MODULES.html.sh (func_all_modules): Add it.
73874
73875 2003-03-28  Bruno Haible  <bruno@clisp.org>
73876
73877         * m4/copy-file.m4: New file.
73878
73879 2003-03-28  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/copy-file.h: New file, from GNU gettext.
73882         * lib/copy-file.c: New file, from GNU gettext.
73883
73884 2003-03-18  Jim Meyering  <jim@meyering.net>
73885
73886         * lib/quote.c (quote_n): Fix typo in comment.
73887
73888 2003-03-18  Bruno Haible  <bruno@clisp.org>
73889
73890         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73891         checking.
73892         * m4/onceonly_2_57.m4: Likewise.
73893
73894 2003-03-17  Bruno Haible  <bruno@clisp.org>
73895
73896         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73897         (m4_quote): Remove macro.
73898         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73899
73900 2003-03-14  Jim Meyering  <jim@meyering.net>
73901
73902         Merge changes from Coreutils.
73903         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73904         to be const, in order to avoid warnings.
73905         (obstack_room): Likewise.
73906         (obstack_empty_p): Likewise.
73907
73908 2003-03-14  Bruno Haible  <bruno@clisp.org>
73909
73910         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73911         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73912
73913 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73914
73915         Merge changes from Bison.
73916         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73917         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73918         when compiling Bison 1.875's `bitset bset = obstack_alloc
73919         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73920         * lib/hash.c: Include <stdbool.h> unconditionally.
73921
73922 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73923
73924         * m4/onceonly.m4 (m4_quote): New macro.
73925         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73926         Quote AC_FOREACH variable-expansions properly.
73927
73928 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73929
73930         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73931
73932 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73933
73934         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73935         Reported by Bruce Becker; see:
73936         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73937
73938 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73939             Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73942         Reported by John Hughes, see
73943         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73944
73945 2003-02-20  Bruno Haible  <bruno@clisp.org>
73946
73947         * MODULES.html.sh (func_all_modules): Add poll.
73948
73949 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73950
73951         * modules/poll: New file.
73952
73953 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73954
73955         * lib/poll_.h: New file.
73956         * lib/poll.c: New file.
73957
73958 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73959
73960         * m4/poll.m4: New file.
73961
73962 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73963
73964         * modules/mathl: New file.
73965
73966 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73967
73968         * lib/mathl.h: New file.
73969         * lib/acosl.c: New file.
73970         * lib/asinl.c: New file.
73971         * lib/atanl.c: New file.
73972         * lib/ceill.c: New file.
73973         * lib/cosl.c: New file.
73974         * lib/expl.c: New file.
73975         * lib/floorl.c: New file.
73976         * lib/frexpl.c: New file.
73977         * lib/ldexpl.c: New file.
73978         * lib/logl.c: New file.
73979         * lib/sincosl.c: New file.
73980         * lib/sinl.c: New file.
73981         * lib/sqrtl.c: New file.
73982         * lib/tanl.c: New file.
73983         * lib/trigl.c: New file.
73984         * lib/trigl.h: New file.
73985
73986 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73987
73988         * m4/mathl.m4: New file.
73989
73990 2003-02-18  Bruno Haible  <bruno@clisp.org>
73991
73992         * MODULES.html.sh (func_all_modules): Add mathl.
73993
73994 2003-02-17  Bruno Haible  <bruno@clisp.org>
73995
73996         * modules/mkdtemp: New module.
73997         * MODULES.html.sh (func_all_modules): Add it.
73998
73999 2003-02-17  Bruno Haible  <bruno@clisp.org>
74000
74001         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74002
74003 2003-02-17  Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/mkdtemp.h: New file, from GNU gettext.
74006         * lib/mkdtemp.c: New file, from GNU gettext.
74007
74008 2003-02-02  Jim Meyering  <jim@meyering.net>
74009
74010         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74011         e.g. glibc-2.2.93.
74012
74013 2003-01-31  Bruno Haible  <bruno@clisp.org>
74014
74015         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74016         'rpl_rename'.
74017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74018         'rpl_strnlen'.
74019         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74020         'rpl_strtod'.
74021         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74022         'rpl_utime'.
74023
74024 2003-01-31  Bruno Haible  <bruno@clisp.org>
74025
74026         * lib/rename.c: #undef rename before defining rpl_rename.
74027         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74028
74029 2003-01-30  Bruno Haible  <bruno@clisp.org>
74030
74031         * modules/vasnprintf, modules/vasprintf: New modules.
74032         * MODULES.html.sh (func_all_modules): Add them.
74033
74034 2003-01-30  Bruno Haible  <bruno@clisp.org>
74035
74036         * m4/signed.m4: New file, from GNU gettext.
74037         * m4/longdouble.m4: New file, from GNU gettext.
74038         * m4/wchar_t.m4: New file, from GNU gettext.
74039         * m4/wint_t.m4: New file, from GNU gettext.
74040         * m4/vasnprintf.m4: New file.
74041         * m4/vasprintf.m4: New file.
74042
74043 2003-01-30  Bruno Haible  <bruno@clisp.org>
74044
74045         * lib/printf-args.h: New file, from GNU gettext.
74046         * lib/printf-args.c: New file, from GNU gettext.
74047         * lib/printf-parse.h: New file, from GNU gettext.
74048         * lib/printf-parse.c: New file, from GNU gettext.
74049         * lib/vasnprintf.h: New file, from GNU gettext.
74050         * lib/vasnprintf.c: New file, from GNU gettext.
74051         * lib/asnprintf.c: New file, from GNU gettext.
74052         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74053         * lib/vasprintf.c: New file, from GNU gettext.
74054         * lib/asprintf.c: New file, from GNU gettext.
74055
74056 2003-01-29  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/stpncpy: New module.
74059         * MODULES.html.sh (func_all_modules): Add it.
74060
74061 2003-01-29  Bruno Haible  <bruno@clisp.org>
74062
74063         * m4/stpncpy.m4: New file.
74064
74065 2003-01-29  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74068         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74069
74070 2003-01-28  Bruno Haible  <bruno@clisp.org>
74071
74072         * modules/c-ctype: New module.
74073         * MODULES.html.sh (func_all_modules): Add it.
74074
74075 2003-01-28  Bruno Haible  <bruno@clisp.org>
74076
74077         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74078         Paul Eggert.
74079         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74080         Paul Eggert.
74081
74082 2003-01-27  Bruno Haible  <bruno@clisp.org>
74083
74084         * modules/xsetenv: New module.
74085         * MODULES.html.sh (func_all_modules): Add it.
74086
74087 2003-01-27  Bruno Haible  <bruno@clisp.org>
74088
74089         * lib/xsetenv.h: New file, from GNU gettext.
74090         * lib/xsetenv.c: New file, from GNU gettext.
74091
74092 2003-01-23  Jim Meyering  <jim@meyering.net>
74093
74094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74095         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74096
74097 2003-01-23  Bruno Haible  <bruno@clisp.org>
74098
74099         * modules/minmax: New module.
74100         * MODULES.html.sh (func_all_modules): Add it.
74101
74102 2003-01-23  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74105         Eggert.
74106
74107 2003-01-22  Bruno Haible  <bruno@clisp.org>
74108
74109         * modules/exit: New module.
74110         * MODULES.html.sh (func_all_modules): Add it.
74111
74112 2003-01-22  Bruno Haible  <bruno@clisp.org>
74113
74114         * lib/exit.h: New file, from GNU gettext.
74115
74116 2003-01-19  Bruno Haible  <bruno@clisp.org>
74117
74118         * gnulib-tool: Recognize option --extract-maintainer.
74119         (func_get_maintainer): New function.
74120         * modules/*: Add Maintainer entry.
74121
74122 2003-01-16  Jim Meyering  <jim@meyering.net>
74123
74124         * m4/regex.m4: The `regex' struct is both input and output.
74125         Initialize it before each use.  Patch by Tim Waugh.
74126
74127 2003-01-16  Bruno Haible  <bruno@clisp.org>
74128
74129         * MODULES.html.sh: Add a table of contents. Add the module name as
74130         leftmost column. Add hyperlinks.
74131
74132 2003-01-15  Bruno Haible  <bruno@clisp.org>
74133
74134         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74135
74136 2003-01-15  Bruno Haible  <bruno@clisp.org>
74137
74138         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74139         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74140         suffix.
74141
74142 2003-01-15  Bruno Haible  <bruno@clisp.org>
74143
74144         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74145
74146 2003-01-15  Bruno Haible  <bruno@clisp.org>
74147
74148         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74149         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74150
74151 2003-01-14  Jim Meyering  <jim@meyering.net>
74152
74153         * lib/same.c (same_name): Tweak a comment.
74154
74155 2003-01-14  Bruno Haible  <bruno@clisp.org>
74156
74157         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74158         when a string comparison is sufficient.
74159
74160 2003-01-14  Bruno Haible  <bruno@clisp.org>
74161
74162         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74163         'unsigned int'.
74164
74165 2003-01-14  Bruno Haible  <bruno@clisp.org>
74166
74167         * lib/hash-pjw.c: Add comment about low quality of this function.
74168
74169 2003-01-13  Bruno Haible  <bruno@clisp.org>
74170
74171         * modules/stpcpy: Distribute lib/stpcpy.h.
74172         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74173
74174 2003-01-13  Bruno Haible  <bruno@clisp.org>
74175
74176         * modules/*: Add a description.
74177         * modules/strpbrk: Fix Makefile.am snippet.
74178         * modules/strtoimax: Fix dependencies.
74179         * modules/strtoumax: Likewise.
74180
74181 2003-01-13  Bruno Haible  <bruno@clisp.org>
74182
74183         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74184         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74185         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74186
74187 2003-01-13  Bruno Haible  <bruno@clisp.org>
74188
74189         * gnulib-tool (func_create_testdir): Store config/* files in the main
74190         directory.
74191         * config.rpath: Move to ...
74192         * config/config.rpath: ... here.
74193         * modules/gettext: Contains config/config.rpath, not config.rpath.
74194         * modules/iconv: Likewise.
74195
74196 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74197
74198         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74199         to avoid collisions with libcurses and libreadline.
74200
74201         * m4/getstr.m4: Remove.
74202         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74203
74204 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74205
74206         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74207         to avoid collisions with libcurses and libreadline.
74208
74209         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74210         * lib/getstr.h, getstr.c: Remove.
74211         * lib/getline.c: Include "getline.h", to check interface.
74212         Move body of old getstr.c here: this defines MIN_CHUNK and
74213         declares getdelim2, which is renamed from getstr.
74214         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74215
74216         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74217         All uses changed.
74218         * lib/linebuffer.h: Likewise.
74219         (readline): Remove backward-compatibility macro.
74220
74221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74222
74223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74224         to avoid collisions with libcurses and libreadline.
74225         * getstr: Remove.
74226         * MODULES.html.sh: Remove getstr.
74227         * modules/getline: Depend on unlocked-io, not getstr.
74228
74229 2003-01-12  Jim Meyering  <jim@meyering.net>
74230
74231         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74232
74233 2003-01-10  Bruno Haible  <bruno@clisp.org>
74234
74235         * modules/alloca: Change Makefile.am requirements. Simplify Include
74236         requirements. Add lib/alloca_.h to file list.
74237
74238 2003-01-10  Bruno Haible  <bruno@clisp.org>
74239
74240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74241
74242 2003-01-10  Bruno Haible  <bruno@clisp.org>
74243
74244         * lib/alloca_.h: New file.
74245         * lib/getdate.y: Unconditionally include alloca.h.
74246         * lib/makepath.c: Likewise.
74247         * lib/setenv.c: Likewise.
74248         * lib/userspec.c: Likewise.
74249
74250 2003-01-09  Karl Berry  <karl@gnu.org>
74251
74252         * MODULES.html.sh: include `dirname $0` in PATH, to find
74253         gnulib-tool.
74254
74255 2003-01-09  Bruno Haible  <bruno@clisp.org>
74256
74257         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74258         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74259
74260 2003-01-09  Bruno Haible  <bruno@clisp.org>
74261
74262         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74263
74264 2003-01-09  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/stdbool.h.in: New file.
74267
74268 2003-01-09  Bruno Haible  <bruno@clisp.org>
74269
74270         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74271         * MODULES.html.sh: Likewise.
74272
74273 2003-01-08  Jim Meyering  <jim@meyering.net>
74274
74275         * lib/full-write.c: Undefine and define-away `const' after inclusion
74276         of errno.h, not before.  Suggestion from Bruno Haible.
74277
74278 2003-01-08  Bruno Haible  <bruno@clisp.org>
74279
74280         * modules/full-read: Depend on full-write.
74281
74282 2003-01-08  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/safe-read.c: Include specification header first, to ensure its
74285         selfcontainedness.
74286         * lib/full-write.c: Likewise.
74287
74288 2003-01-07  Jim Meyering  <jim@meyering.net>
74289
74290         * lib/full-write.c: Rework so that it may serve to define full_read,
74291         too.
74292         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74293
74294 2003-01-07  Bruno Haible  <bruno@clisp.org>
74295
74296         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74297         <inttypes.h>.
74298         * lib/xstrtol.h: Likewise.
74299         * lib/xstrtoimax.c: Likewise.
74300         * lib/xstrtoumax.c: Likewise.
74301         * lib/human.h: Likewise.
74302
74303         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74304         on systems that have <inttypes.h> but not <stdint.h>.
74305
74306 2003-01-07  Bruno Haible  <bruno@clisp.org>
74307
74308         * MODULES.html.sh: Add copyright notice.
74309         (missed_files): Omit CVS directory entries.
74310         (func_module): Make it work with sed-3.02.
74311         * MODULES.txt: Remove file.
74312
74313 2003-01-06  Jim Meyering  <jim@meyering.net>
74314
74315         * lib/version-etc.c: Update year in translatable copyright string.
74316
74317 2003-01-03  Karl Berry  <karl@gnu.org>
74318
74319         * config/config.{guess,sub}: update from prep.
74320
74321 2003-01-02  Karl Berry  <karl@gnu.org>
74322
74323         * doc/COPYING.DOC: belatedly updated to 1.2.
74324
74325 2003-01-01  Karl Berry  <karl@gnu.org>
74326
74327         * gnulib-tool (func_verify_module): report module name $module in
74328         error message, not $1.
74329         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74330         be created, only if it doesn't exist.
74331         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74332
74333 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74334
74335         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74336
74337 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74338
74339         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74340         memcmp if strcoll doesn't work.
74341
74342 2002-12-31  Bruno Haible  <bruno@clisp.org>
74343
74344         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74345         nonempty.
74346
74347 2002-12-31  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/memcoll.c (STRCOLL): New macro.
74350         (memcoll): Use it.
74351
74352 2002-12-31  Bruno Haible  <bruno@clisp.org>
74353
74354         * lib/localcharset.h: New file.
74355         * lib/localcharset.c: Include it.
74356         * lib/unicodeio.c: Likewise.
74357
74358 2002-12-31  Bruno Haible  <bruno@clisp.org>
74359
74360         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74361         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74362
74363 2002-12-31  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/getline.h: Include <stddef.h>, for size_t.
74366
74367         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74368         * lib/unicodeio.c: Don't include <stddef.h>.
74369
74370 2002-12-31  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74373         HAVE_TM_ZONE.
74374
74375 2002-12-24  Karl Berry  <karl@gnu.org>
74376
74377         * config/config.guess: update from prep.
74378
74379 2002-12-24  Bruno Haible  <bruno@clisp.org>
74380
74381         General infrasructure.
74382         * m4/README: Rewritten.
74383         * m4/onceonly.m4: New file.
74384         * m4/onceonly_2_57.m4: New file.
74385
74386         Module atexit.
74387         * m4/atexit.m4: New file.
74388
74389         Module strtod.
74390         * m4/strtod.m4: New file.
74391
74392         Module strtol.
74393         * m4/strtol.m4: New file.
74394
74395         Module strtoul.
74396         * m4/strtoul.m4: New file.
74397
74398         Module memchr.
74399         * m4/memchr.m4: New file.
74400
74401         Module memcmp.
74402         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74403         (jm_FUNC_MEMCMP): Invoke it.
74404
74405         Module memcpy.
74406         * m4/memcpy.m4: New file.
74407
74408         Module memmove.
74409         * m4/memmove.m4: New file.
74410
74411         Module memset.
74412         * m4/memset.m4: New file.
74413
74414         Module strcspn.
74415         * m4/strcspn.m4: New file.
74416
74417         Module strpbrk.
74418         * m4/strpbrk.m4: New file.
74419
74420         Module strstr.
74421         * m4/strstr.m4: New file.
74422
74423         Module strerror.
74424         * m4/strerror.m4: New file.
74425
74426         Module mktime.
74427         * m4/mktime.m4: Renamed from jm-mktime.m4.
74428         (gl_PREREQ_MKTIME): New macro.
74429         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74430
74431         Module malloc.
74432         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74433         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74434         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74435
74436         Module realloc.
74437         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74438         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74439         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74440
74441         Module strftime.
74442         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74443         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74444         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74445         gl_TM_GMTOFF.
74446         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74447
74448         Module xalloc.
74449         * m4/xalloc.m4: New file.
74450
74451         Module alloca.
74452         * m4/alloca.m4: New file.
74453
74454         Module putenv.
74455         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74456         (jm_FUNC_PUTENV): Invoke it.
74457
74458         Module setenv.
74459         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74460         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74461         when invoked twice.
74462         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74463         gt_FUNC_SETENV.
74464
74465         Module memrchr.
74466         * m4/memrchr.m4: New file.
74467
74468         Module stpcpy.
74469         * m4/stpcpy.m4: New file.
74470
74471         Module strcase.
74472         * m4/strcase.m4: New file.
74473
74474         Module strdup.
74475         * m4/strdup.m4: New file.
74476
74477         Module strnlen.
74478         * m4/strnlen.m4: New file.
74479
74480         Module strndup.
74481         * m4/strndup.m4: New file.
74482
74483         Module xstrtod.
74484         * m4/xstrtod.m4: New file.
74485
74486         Module xstrtol.
74487         * m4/xstrtol.m4: New file.
74488
74489         Module getdate.
74490         * m4/getdate.m4: New file.
74491
74492         Module unlocked-io.
74493         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74494         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74495         * m4/jm-glibc-io.m4n: Remove file.
74496
74497         Module long-options.
74498         * m4/long-options.m4: New file.
74499
74500         Module md5.
74501         * m4/md5.m4: New file.
74502
74503         Module sha.
74504         * m4/sha.m4: New file.
74505
74506         Module getstr.
74507         * m4/getstr.m4: New file.
74508
74509         Module getline.
74510         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74511         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74512         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74513         simply getline. Infoke gl_PREREQ_GETLINE.
74514
74515         Module obstack.
74516         * m4/obstack.m4: New file.
74517
74518         Module hash.
74519         * m4/hash.m4: New file.
74520
74521         Module readtokens.
74522         * m4/readtokens.m4: New file.
74523
74524         Module strverscmp.
74525         * m4/strverscmp.m4: New file.
74526
74527         Module stdbool.
74528         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74529         OSF/1.
74530
74531         Module strtoll.
74532         * m4/strtoll.m4: New file.
74533
74534         Module strtoull.
74535         * m4/strtoull.m4: New file.
74536
74537         Module strtoimax.
74538         * m4/strtoimax.m4: New file.
74539
74540         Module strtoumax.
74541         * m4/strtoumax.m4: New file.
74542
74543         Module xstrtoimax.
74544         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74545         jm_AC_PREREQ_XSTRTOIMAX.
74546         Moved the strtol prerequisites to strtol.m4.
74547         Moved the strtoll prerequisites to strtoll.m4.
74548         Moved the strtoimax prerequisites to strtoimax.m4.
74549
74550         Module xstrtoumax.
74551         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74552         jm_AC_PREREQ_XSTRTOUMAX.
74553         Moved the strtoul prerequisites to strtoul.m4.
74554         Moved the strtoull prerequisites to strtoull.m4.
74555         Moved the strtoumax prerequisites to strtoumax.m4.
74556
74557         Module chown.
74558         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74559         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74560
74561         Module dup2.
74562         * m4/dup2.m4: New file.
74563
74564         Module ftruncate.
74565         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74566         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74567
74568         Module getgroups.
74569         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74570         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74571
74572         Module gettimeofday.
74573         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74574         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74575         gl_PREREQ_GETTIMEOFDAY.
74576
74577         Module mkdir.
74578         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74579         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74580
74581         Module mkstemp.
74582         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74583         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74584         jm_AC_TYPE_UINTMAX_T.
74585         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74586
74587         Module stat.
74588         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74589         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74590
74591         Module lstat.
74592         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74593         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74594
74595         Module timespec.
74596         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74597         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74598         * m4/st_mtim.m4: Indentation.
74599
74600         Module nanosleep.
74601         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74602         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74603         gl_PREREQ_NANOSLEEP.
74604
74605         Module regex.
74606         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74607         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74608         (gl_REGEX): New macro.
74609
74610         Module rename.
74611         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74612         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74613
74614         Module rmdir.
74615         * m4/rmdir.m4: New file.
74616
74617         Module utime.
74618         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74619         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74620         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74621
74622         Module dirname.
74623         * m4/dirname.m4: New file.
74624
74625         Module getopt.
74626         * m4/getopt.m4: New file.
74627
74628         Module unistd-safer.
74629         * m4/unistd-safer.m4: New file.
74630
74631         Module fnmatch.
74632         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74633         declaration.
74634         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74635         (gl_FUNC_FNMATCH_POSIX): New macro.
74636         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74637         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74638         simply fnmatch.
74639
74640         Module exclude.
74641         * m4/exclude.m4: New file.
74642
74643         Module human.
74644         * m4/human.m4: New file.
74645
74646         Module acl.
74647         * m4/acl.m4: Nop.
74648
74649         Module backupfile.
74650         * m4/backupfile.m4: New file.
74651         * m4/d-ino.m4: Indentation.
74652
74653         Module fsusage.
74654         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74655         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74656         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74657
74658         Module dirfd.
74659         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74660         requirements.
74661
74662         Module euidaccess.
74663         * m4/euidaccess.m4: New file.
74664
74665         Module file-type.
74666         * m4/file-type.m4: New file.
74667
74668         Module fileblocks.
74669         * m4/fileblocks.m4: New file.
74670
74671         Module filemode.
74672         * m4/filemode.m4: New file.
74673
74674         Module isdir.
74675         * m4/isdir.m4: New file.
74676
74677         Module lchown.
74678         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74679         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74680
74681         Module makepath.
74682         * m4/makepath.m4: New file.
74683
74684         Module modechange.
74685         * m4/modechange.m4: New file.
74686
74687         Module mountlist.
74688         * m4/mountlist.m4: New file.
74689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74690         Indentation.
74691
74692         Module path-concat.
74693         * m4/path-concat.m4: New file.
74694
74695         Module pathmax.
74696         * m4/pathmax.m4: New file.
74697
74698         Module same.
74699         * m4/same.m4: New file.
74700
74701         Module save-cwd.
74702         * m4/save-cwd.m4: New file.
74703
74704         Module savedir.
74705         * m4/savedir.m4: New file.
74706
74707         Module xgetcwd.
74708         * m4/xgetcwd.m4: New file.
74709         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74710
74711         Module xreadlink.
74712         * m4/xreadlink.m4: New file.
74713
74714         Module safe-read.
74715         * m4/safe-read.m4: New file.
74716
74717         Module safe-write.
74718         * m4/safe-write.m4: New file.
74719
74720         Module closeout.
74721         * m4/closeout.m4: New file.
74722
74723         Module stdio-safer.
74724         * m4/stdio-safer.m4: New file.
74725
74726         Module getpass.
74727         * m4/getpass.m4: New file.
74728
74729         Module getugroups.
74730         * m4/getugroups.m4: New file.
74731
74732         Module group-member.
74733         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74734         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74735
74736         Module idcache.
74737         * m4/idcache.m4: New file.
74738
74739         Module userspec.
74740         * m4/userspec.m4: New file.
74741
74742         Module gettime.
74743         * m4/clock_time.m4: New file.
74744         * m4/gettime.m4: New file.
74745
74746         Module settime.
74747         * m4/settime.m4: New file.
74748
74749         Module posixtm.
74750         * m4/posixtm.m4: New file.
74751
74752         Module gethostname.
74753         * m4/gethostname.m4: New file.
74754
74755         Module canon-host.
74756         * m4/canon-host.m4: New file.
74757
74758         Module gettext.
74759         * m4/codeset.m4: New file, from gettext-0.11.5.
74760         * m4/gettext.m4: New file, from gettext-0.11.5.
74761         * m4/glibc21.m4: New file, from gettext-0.11.5.
74762         * m4/iconv.m4: New file, from gettext-0.11.5.
74763         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74764         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74765         * m4/inttypes.m4: New file, from gettext-0.11.5.
74766         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74767         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74768         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74769         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74770         * m4/lib-link.m4: New file, from gettext-0.11.5.
74771         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74772         * m4/progtest.m4: New file, from gettext-0.11.5.
74773         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74774         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74775         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74776
74777         Module localcharset.
74778         * m4/localcharset.m4: New file.
74779
74780         Module hard-locale.
74781         * m4/hard-locale.m4: New file.
74782
74783         Module mbswidth.
74784         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74785         onceonly macros.
74786         * m4/mbrtowc.m4: Add comment.
74787
74788         Module memcasecmp.
74789         * m4/memcasecmp.m4: New file.
74790
74791         Module memcoll.
74792         * m4/memcoll.m4: New file.
74793
74794         Module unicodeio.
74795         * m4/unicodeio.m4: New file.
74796
74797         Module rpmatch.
74798         * m4/rpmatch.m4: New file.
74799
74800         Module yesno.
74801         * m4/yesno.m4: New file.
74802
74803         Module exitfail.
74804         * m4/exitfail.m4: New file.
74805
74806         Module c-stack.
74807         * m4/c-stack.m4 (gl_C_STACK): New macro.
74808         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74809
74810         Module error.
74811         * m4/error.m4 (gl_ERROR): New macro.
74812         (jm_PREREQ_ERROR): Use onceonly macros.
74813
74814         Module fatal.
74815         * m4/fatal.m4: New file.
74816
74817         Module getloadavg.
74818         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74819         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74820
74821         Module getpagesize.
74822         * m4/getpagesize.m4: New file.
74823
74824         Module getusershell.
74825         * m4/getusershell.m4: New file.
74826
74827         Module physmem.
74828         * m4/physmem.m4: New file.
74829
74830         Module posixver.
74831         * m4/posixver.m4: New file.
74832
74833         Module quotearg.
74834         * m4/quotearg.m4: New file.
74835
74836         Module quote.
74837         * m4/quote.m4: New file.
74838
74839         Module readutmp.
74840         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74841
74842         Module sig2str.
74843         * m4/sig2str.m4: New file.
74844
74845         Other.
74846         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74847         ulonglong.m4.
74848         * m4/intmax_t.m4: New file.
74849         * m4/d-type.m4: Indentation.
74850         * m4/jm-macros.m4: Update.
74851         * m4/prereq.m4 (jm_PREREQ): Update.
74852         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74853         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74854         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74855         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74856         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74857         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74858         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74859         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74860         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74861         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74862         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74863         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74864         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74865         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74866         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74867         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74868         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74869         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74870         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74871
74872 2002-12-24  Bruno Haible  <bruno@clisp.org>
74873
74874         * MODULES.txt: Update according to m4/ changes.
74875
74876         Module gettext.
74877         * config.rpath: New file, from gettext-0.11.5.
74878
74879         * modules/*: New module descriptions.
74880         * gnulib-tool: New file.
74881         * MODULES.html.sh: New file.
74882
74883 2002-12-21  Karl Berry  <karl@gnu.org>
74884
74885         * doc/fdl.texi: update to version 1.2.
74886
74887 2002-12-19  Karl Berry  <karl@gnu.org>
74888
74889         * config/config.guess: update from prep.
74890
74891 2002-12-18  Bruno Haible  <bruno@clisp.org>
74892
74893         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74894         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74895
74896 2002-12-17  Bruno Haible  <bruno@clisp.org>
74897
74898         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74899         stdlib.h, string.h.
74900
74901 2002-12-17  Bruno Haible  <bruno@clisp.org>
74902
74903         * lib/canon-host.c (strdup): Remove unused declaration.
74904
74905         * lib/fsusage.c: Include full_read.h.
74906         (get_fs_usage): Use full_read instead of safe_read.
74907
74908         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74909
74910 2002-12-12  Karl Berry  <karl@gnu.org>
74911
74912         * config/config.guess: update from prep.
74913
74914 2002-12-11  Bruno Haible  <bruno@clisp.org>
74915
74916         * m4/setenv.m4: New file, from gettext-0.11.5.
74917
74918 2002-12-11  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74921         not unsetenv().
74922         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74923         modifications:
74924
74925         2002-12-11  Bruno Haible  <bruno@clisp.org>
74926
74927                 * setenv.c (alloca): Fall back to malloc.
74928                 (freea): New macro.
74929                 (setenv): Use freea() to free memory allocated with alloca().
74930
74931         2002-11-13  Bruno Haible  <bruno@clisp.org>
74932
74933                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74934                 function declarations.
74935                 * unsetenv.c (unsetenv): Likewise.
74936
74937         2002-03-04  Bruno Haible  <bruno@clisp.org>
74938
74939                 Portability to AIX 4.3.3.
74940                 * unsetenv.c: New file, extracted from setenv.c.
74941                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74942
74943         2001-12-20  Bruno Haible  <bruno@clisp.org>
74944
74945                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74946                 use malloc instead. For SunOS 4.
74947
74948         2001-12-11  Bruno Haible  <bruno@clisp.org>
74949
74950                 * setenv.c: Declare alloca.
74951                 (compar_fn_t): New typedef.
74952                 (KNOWN_VALUE, STORE_VALUE): Use it.
74953
74954         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74955         setenv.h.
74956
74957 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74958
74959         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74960         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74961         Choose values that are less likely to collide with system fnmatch
74962         options.
74963         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74964         defined (e.g., a pure POSIX system).
74965         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74966         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74967
74968 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74969
74970         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74971         a pain in practice to deal with generated m4 files.  This change
74972         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74973
74974         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74975         and jm-glibc-io.m4, as they are no longer a special case.
74976         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74977         kludge and the auto-generation stuff.  Check only whether the
74978         functions are declared, not whether they exist, since older hosts
74979         that don't declare the functions can't use the optimization anyway.
74980
74981 2002-12-06  Jim Meyering  <jim@meyering.net>
74982
74983         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74984
74985         Merge in changes from libc's misc/error.c, in preparation
74986         for the merge of gnulib's changes back into libc.
74987
74988         * lib/error.c (_): Define only if not already defined.
74989         Move definition to follow all #include directives.
74990         Include unlocked-io.h only if !_LIBC.
74991         [_LIBC]: Include <libio/libioP.h>.
74992         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74993         (fflush): Tweak definition to use INTUSE.
74994         (putc): Define.
74995
74996 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74997
74998         * lib/alloca.c [defined emacs]: Include "lisp.h".
74999         (xalloc_die) [defined emacs]: New macro.
75000         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75001         [! defined emacs]: Include <xalloc.h>.
75002         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75003         (pointer): Typedef to POINTER_TYPE *.
75004         (malloc): Remove decl; we now always use xmalloc.
75005         (alloca): Use old-style definition, since Emacs needs this.
75006         Check for arithmetic overflow when computing combined size.
75007
75008 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75009
75010         Do not generate unlocked-io.h automatically, since it's easier to
75011         maintain it by hand.
75012
75013         * lib/unlocked-io.h: New file, from GNU diffutils,
75014         but with proper copyright notice and attribution.
75015         * lib/gen-uio: Remove.
75016         * lib/Makefile.am: Add copyright notice.
75017         (libfetish_a_SOURCES): Add unlocked-io.h.
75018         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75019         (DISTCLEANFILES, io_functions): Remove macros.
75020         (EXTRA_DIST): Remove gen_uio.
75021         (unlocked-io.h): Remove rule.
75022
75023 2002-12-04  Jim Meyering  <jim@meyering.net>
75024
75025         Reflect the fact that stat.c and lstat.c are no longer generated.
75026         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75027         (DISTCLEANFILES): Likewise.
75028         (EXTRA_DIST): Likewise.
75029         (all_local): Don't depend on stat.c or lstat.c.
75030         (stat.c, lstat.c): Remove rules.
75031         (EXTRA_DIST): Remove xstat.in.
75032
75033         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75034         * lib/stat.c: New file.  Contents mostly from xstat.in.
75035         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75036         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75037
75038         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75039         too.
75040         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75041
75042 2002-12-03  Jim Meyering  <jim@meyering.net>
75043
75044         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75045         but not semantics, to minimize the differences between these two files.
75046         (safe_read): Change comment to mention SAFE_READ_ERROR.
75047
75048         * lib/safe-read.c (IS_EINTR): Define.
75049         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75050
75051 2002-12-02  Jim Meyering  <jim@meyering.net>
75052
75053         * lib/safe-read.c (EINTR): Define.
75054         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75055         (INT_MAX): Provide fallback.
75056         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75057
75058         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75059
75060 2002-12-02  Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75063         Define, taken from safe-read.c.
75064         (INT_MAX): Provide fallback.
75065         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75066         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75067
75068         * lib/safe-read.c (EINTR): Remove definition.
75069         (safe_read): Don't use EINTR if it is absent.
75070
75071 2002-12-01  Jim Meyering  <jim@meyering.net>
75072
75073         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75074         zero.
75075         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75076
75077 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75078
75079         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75080         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75081         with `if (! (value < limit)) abort ();', for readability.
75082
75083 2002-11-26  Karl Berry  <karl@gnu.org>
75084
75085         * lib/strdup.c: copy from libc again, with jim's ok.
75086         * lib/.cppi-disable: re-add strdup.c
75087
75088 2002-11-25  Karl Berry  <karl@gnu.org>
75089
75090         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75091         instead of "strtol.c".
75092
75093 2002-11-25  Karl Berry  <karl@gnu.org>
75094
75095         * config/install-sh: update from automake for variable quoting, $0 in
75096         error msgs, etc.
75097
75098         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75099         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75100         entry.
75101
75102 2002-11-25  Jim Meyering  <jim@meyering.net>
75103
75104         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75105
75106 2002-11-24  Karl Berry  <karl@gnu.org>
75107
75108         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75109         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75110
75111 2002-11-24  Jim Meyering  <jim@meyering.net>
75112
75113         Update from coreutils:
75114
75115         * lib/mktime.c: Merge in changes from libc.
75116
75117         Avoid a link-time failure on some Linux systems.
75118         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75119         (otherwise).
75120         (__mon_yday): Declare with the STATIC attribute.
75121         (__mktime_internal): Likewise.
75122         Based on a report from Greg Schafer.
75123
75124 2002-11-23  Jim Meyering  <jim@meyering.net>
75125
75126         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75127         Use `unsigned', not `int', as type of index.
75128
75129         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75130
75131         * lib/fsusage.c: Remove unneeded parentheses around operands of
75132         `defined'.
75133
75134 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75135
75136         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75137         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75138         so that we can be included first.
75139         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75140         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75141         No need to include stddef.h or sys/types.h any more.
75142         Surround local include files with "", not "<>".
75143         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75144         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75145         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75146         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75147         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75148         (ISPRINT): Remove; no longer needed now that we assume C89.
75149
75150         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75151         Preserve errno.
75152
75153         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75154         quotearg_char): Use SIZE_MAX rather than
75155         (size_t) -1 when we are talking about "infinity".
75156
75157         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75158
75159 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75160
75161         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75162         hint that one should use `if (! x) abort ();' rather than `assert
75163         (x);', and anyway it's one less thing to worry about configuring.
75164         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75165         hash_rehash, hash_insert): Use abort rather than assert.
75166
75167 2002-11-22  Bruno Haible  <bruno@clisp.org>
75168
75169         * lib/safe-read.h: Assume C89. Add comments.
75170         (safe_read): Change return type to size_t.
75171         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75172         byte counts > SSIZE_MAX correctly.
75173         * lib/safe-write.h: New file.
75174         * lib/safe-write.c: New file.
75175         * lib/full-read.h: New file.
75176         * lib/full-read.c: New file.
75177         * lib/full-write.h: Assume C89. Add comments.
75178         * lib/full-write.c: Include safe-write.h.
75179         (full_write): Rewritten to use safe_write.
75180         Suggested by Jim Meyering and Paul Eggert.
75181
75182 2002-11-21  Jim Meyering  <jim@meyering.net>
75183
75184         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75185
75186         Merge in changes from the coreutils.
75187
75188         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75189         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75190         <stdint.h>.
75191         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75192         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75193         int.  Work more efficiently if X is the same width as uintmax_t.
75194         Do not compare X to -1, to avoid bogus compiler warning.
75195         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75196         Don't assume that f_frsize and f_bsize are the same type.
75197
75198         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75199         warning on FreeBSD.
75200
75201         * lib/makepath.c (make_path): Restore umask *before* creating the final
75202         component.
75203         (make_path): Minor reformatting.
75204
75205         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75206         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75207         HAVE_MALLOC/HAVE_REALLOC.
75208
75209         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75210         dummy ones.  At least on GNU/Linux systems, `auto' means something
75211         else.
75212         From Michael Stone.
75213
75214 2002-11-21  Bruno Haible  <bruno@clisp.org>
75215
75216         Remove case insensitive option matching.
75217         * lib/argmatch.h (argcasematch): Remove declaration.
75218         (ARGCASEMATCH): Remove macro.
75219         (__xargmatch_internal): Remove case_sensitive argument.
75220         (XARGMATCH): Update.
75221         (XARGCASEMATCH): Remove macro.
75222         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75223         case_sensitive argument.
75224         (argcasematch): Remove function.
75225         (__xargmatch_internal): Remove case_sensitive argument.
75226         (main): Use XARGMATCH instead of XARGCASEMATCH.
75227
75228         * lib/xmalloc.c: Change compile-time error message. Add comment about
75229         required autoconf version.
75230
75231 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75232
75233         Merge argmatch cleanups from Bison.  Assume C89.
75234
75235         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75236         Include stdlib.h, for EXIT_FAILURE.
75237         Always include <string.h>, since we assume C89.
75238         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75239         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75240         Include <stddef.h> instead, since it's all we need for size_t.
75241         (PARAMS): Remove.  All uses removed.
75242         (ARRAY_CARDINALITY): Do not bother to #undef.
75243         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75244         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75245         Remove unnecessary parentheses.
75246         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75247         Insert necessary parentheses.
75248         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75249         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75250
75251 2002-11-19  Bruno Haible  <bruno@clisp.org>
75252
75253         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75254         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75255
75256         * lib/mbswidth.h (PARAMS): Remove macro.
75257         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75258         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75259
75260         * lib/gcd.h (PARAMS): Remove macro.
75261         (gcd): Use ANSI C function declarations.
75262         * lib/gcd.c (gcd): Likewise.
75263
75264 2002-11-15  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/strcspn.c: Include <stddef.h>.
75267         (strcspn): Use ANSI C function declaration. Change return type to
75268         size_t. Use NULL.
75269         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75270         (strpbrk): Use NULL.
75271         * lib/strpbrk.h (PARAMS): Remove macro.
75272         (strpbrk): Use ANSI C function declaration.
75273         * lib/strstr.c: Don't include <sys/types.h>.
75274         * lib/strstr.h (PARAMS): Remove macro.
75275         (strstr): Use ANSI C function declarations.
75276
75277 2002-11-14  Karl Berry  <karl@gnu.org>
75278
75279         * config/mkinstalldirs: `do' on separate line, instead of
75280         `for var; do'.
75281
75282 2002-11-06  Bruno Haible  <bruno@clisp.org>
75283
75284         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75285         * lib/gcd.c (gcd): Likewise.
75286
75287 2002-11-05  Bruno Haible  <bruno@clisp.org>
75288
75289         * lib/gcd.h: New file, from gettext-0.11.5.
75290         * lib/gcd.c: New file, from gettext-0.11.5.
75291
75292 2002-11-05  Bruno Haible  <bruno@clisp.org>
75293
75294         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75295         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75296         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75297         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75298
75299         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75300         <libintl.h>.
75301         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75302         <libintl.h>.
75303
75304         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75305         * lib/human.c: Include gettext.h instead of <libintl.h>.
75306         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75307         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75308         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75309         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75310         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75311         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75312         (textdomain): Remove definition.
75313         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75314
75315         * lib/long-options.c: Remove include of <libintl.h> and definition of
75316         _.
75317         * lib/same.c: Remove include of <libintl.h> and definition of _.
75318
75319 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75320
75321         * lib/config.charset: A few additions for Solaris.
75322
75323 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75324
75325         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75326         * lib/localcharset.c (locale_charset): Declare as extern "C".
75327
75328 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75329
75330         * lib/config.charset: msdos in uk_UA uses CP1125.
75331
75332 2002-11-04  Bruno Haible  <bruno@clisp.org>
75333
75334         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75335         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75336         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75337         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75338         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75339
75340 2002-11-04  Bruno Haible  <bruno@clisp.org>
75341
75342         * lib/localcharset.c (locale_charset): Don't return an empty string.
75343
75344 2002-11-04  Bruno Haible  <bruno@clisp.org>
75345
75346         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75347         aliases.
75348
75349 2002-11-04  Bruno Haible  <bruno@clisp.org>
75350
75351         * lib/config.charset: Update for newest glibc. Add canonical names
75352         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75353
75354 2002-11-04  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/config.charset: Add support for NetBSD.
75357
75358 2002-11-04  Bruno Haible  <bruno@clisp.org>
75359
75360         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75361
75362 2002-11-01  Bruno Haible  <bruno@clisp.org>
75363
75364         * configure.in: Add AC_CONFIG_AUX_DIR call.
75365         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75366         test/Makefile.
75367         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75368
75369 2002-09-28  Karl Berry  <karl@gnu.org>
75370
75371         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75372         installed automake until the next release, since changes have been
75373         made.
75374
75375 2002-09-25  Karl Berry  <karl@gnu.org>
75376
75377         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75378         * lib/getopt*: copy from libc/posix.
75379         * lib/gettext.h: copy from gettext.
75380         * lib/.cppi-disable: add strdup.c, gettext.h.
75381
75382 2002-09-25  Karl Berry  <karl@gnu.org>
75383
75384         * config/srclist.txt: enable gettext.h check.
75385         * config/config.{guess,sub}: update from prep.
75386         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75387                 from automake 1.6.3.
75388         See srclist*.
75389
75390 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75391
75392         * regex.c (PATFETCH): Remove the translating fetch.
75393         (PATFETCH_RAW): Rename to PATFETCH.
75394         (set_image_of_range): New fun.
75395         (SET_RANGE_TABLE_WORK_AREA): Use it.
75396         (regex_compile): Don't translate the pattern chars so eagerly.
75397         Only do it when inserting an `exactn' bytecode or when handling
75398         a char-range.
75399         (mutually_exclusive_p): Avoid empty statement.
75400
75401 2002-07-06  Jim Meyering  <meyering@lucent.com>
75402
75403         * m4/README: Don't mention Makefile.am.in.
75404         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75405
75406 2002-07-01  Jim Meyering  <meyering@lucent.com>
75407
75408         * lib/c-stack.c: Include sys/time.h.
75409         From Volker Borchert.
75410
75411 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75412
75413         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75414
75415 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75416
75417         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75418         New macro.  Use it uniformly instead of
75419         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75420         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75421         reported by Vin Shelton.
75422
75423 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75424
75425         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75426         Do not assume SA_SIGINFO behavior.
75427         Bug reported by Jim Meyering on NetBSD 1.5.2.
75428
75429 2002-06-22  Jim Meyering  <meyering@lucent.com>
75430
75431         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75432         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75433
75434         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75435         now that configure.ac uses AC_GNU_SOURCE.
75436         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75437         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75438
75439         Update to latest tools.  Suggestions from Paul Eggert.
75440         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75441         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75442         * m4/fnmatch.m4: Likewise.
75443         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75444         to AC_HEADER_STDBOOL
75445
75446 2002-06-22  Jim Meyering  <meyering@lucent.com>
75447
75448         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75449         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75450
75451 2002-06-22  Jim Meyering  <meyering@lucent.com>
75452
75453         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75454
75455         * lib/exitfail.c, exitfail.h: Likewise.
75456         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75457
75458         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75459         of fnmatch.h.
75460         (EXTRA_DIST): Add fnmatch_loop.c.
75461         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75462
75463         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75464         * lib/fnmatch.c: Update from diffutils-2.8.2.
75465         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75466         * lib/fnmatch.h: Remove file.
75467
75468 2002-06-21  Jim Meyering  <meyering@lucent.com>
75469
75470         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75471         * m4/mbrtowc.m4: Likewise.
75472
75473         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75474         * m4/mbswidth.m4: Reflect name change:
75475         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75477
75478         * m4/lib-link.m4: Update from gettext-0.11.2.
75479         * m4/gettext.m4: Likewise.
75480
75481         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75482         From Alfred M. Szmidt.
75483
75484 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75485
75486         * lib/file-type.h: Report an error if neither S_ISREG nor
75487         S_IFREG is defined, instead of using a test specific to glibc
75488         2.2.  This should be safe, since POSIX requires S_ISREG and
75489         Unix Version 7 had S_IFREG.  We don't need to check for
75490         <sys/types.h> since we don't use any symbols that it defines.
75491
75492 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75493
75494         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75495         $@-t, so that each temporary file name is unique and valid in the first
75496         8 characters, for operation under DOS.
75497
75498 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75499
75500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75501
75502 2002-06-15  Jim Meyering  <meyering@lucent.com>
75503
75504         Work even with DJGPP 2.03, which lacks support for symlinks.
75505         From Richard Dawe.
75506         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75507         is defined.
75508         * lib/lchown.c (S_ISLNK): Likewise.
75509
75510 2002-06-15  Jim Meyering  <meyering@lucent.com>
75511
75512         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75513         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75514         have been included before this file.
75515
75516 2002-06-14  Jim Meyering  <meyering@lucent.com>
75517
75518         * lib/file-type.h: Use the version from diffutils-2.8.2.
75519         * lib/file-type.c: Likewise.
75520
75521 2002-06-07  Jim Meyering  <meyering@lucent.com>
75522
75523         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75524         They're needed at least for NetBSD 1.5.2.
75525         ($statxfs_includes): Include those same headers.
75526         ($statxfs_includes): Include sys/vfs.h if available.
75527         ($statxfs_includes): Likewise for sys/statvfs.h.
75528         Check for the following members in both structs statfs and statvfs:
75529         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75530
75531 2002-06-01  Jim Meyering  <meyering@lucent.com>
75532
75533         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75534         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75535
75536 2002-05-28  Jim Meyering  <meyering@lucent.com>
75537
75538         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75539         Reported by Volker Borchert.
75540
75541 2002-05-27  Jim Meyering  <meyering@lucent.com>
75542
75543         Fix a problem seen only on nonconforming systems whereby ls.c's
75544         use of localtime, and then of gettimeofday would cause trouble:
75545         the localtime call used to initialize rpl_gettimeofday's save
75546         mechanism would clobber ls's current local time information so
75547         that in any long listing the first file would always be listed
75548         with date 1970-01-01.  Analysis by Volker Borchert.
75549
75550         * lib/gettimeofday.c (localtime): Undefine.
75551         (rpl_localtime): New function.
75552
75553 2002-05-27  Jim Meyering  <meyering@lucent.com>
75554
75555         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75556         localtime.
75557
75558         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75559         use the replacement function; it wouldn't resolve at link time.
75560         Reported by Volker Borchert.
75561
75562 2002-05-22  Jim Meyering  <meyering@lucent.com>
75563
75564         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75565         file-type.h.
75566         * lib/file-type.h: New file.
75567         * lib/file-type.c (file_type): New file/function.  Extracted from
75568         diffutils.
75569
75570 2002-04-30  Jim Meyering  <meyering@lucent.com>
75571
75572         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75573
75574 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75575
75576         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75577
75578 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75579
75580         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75581         Do not check for alloca.h (no longer used) or stdbool.h (was never
75582         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75583
75584 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75585
75586         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75587
75588 2002-04-29  Jim Meyering  <meyering@lucent.com>
75589
75590         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75591         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75592         Use AC_FUNC_STRNLEN here instead.
75593
75594         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75595         With autoconf-2.53a, it's part of AC_PROG_CC.
75596
75597 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75598
75599         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75600         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75601
75602 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75603
75604         * lib/sig2str.h, lib/sig2str.c: New files.
75605         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75606
75607 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75608
75609         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75610         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75611         of 127, since 64 is the largest conceivable number for ancient
75612         nonstandard hosts.
75613         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75614
75615 2002-04-28  Jim Meyering  <meyering@lucent.com>
75616
75617         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75618
75619 2002-04-24  Jim Meyering  <meyering@lucent.com>
75620
75621         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75622         (jm_PREREQ): Use it.
75623
75624         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75625         mach/mach.h fcntl.h.
75626         Check for this function: setlocale.
75627
75628 2002-04-24  Jim Meyering  <meyering@lucent.com>
75629
75630         * lib/gettext.h: New file, from Gettext.
75631         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75632         (libfetish_a_SOURCES): Add gettext.h.
75633
75634 2002-04-16  Jim Meyering  <meyering@lucent.com>
75635
75636         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75637         ut_pid, ut_id, ut_exit.
75638
75639 2002-04-16  Jim Meyering  <meyering@lucent.com>
75640
75641         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75642         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75643         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75644
75645 2002-04-12  Jim Meyering  <meyering@lucent.com>
75646
75647         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75648         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75649         existence of the getmntinfo function.  Needed for Darwin 5.3.
75650
75651         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75652         This is necessary at least on Darwin 5.3.
75653
75654         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75655         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75656         strnlen.o in the library, and that makes some versions of ranlib
75657         object.
75658
75659 2002-04-12  Jim Meyering  <meyering@lucent.com>
75660
75661         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75662
75663 2002-04-09  Jim Meyering  <meyering@lucent.com>
75664
75665         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75666         to be more precise.  Rather than saying we're checking whether the
75667         function `works', say what we're testing.
75668         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75669         Reported by Bruno Haible.
75670
75671 2002-03-10  Jim Meyering  <meyering@lucent.com>
75672
75673         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75674         Suggestion from Santiago Vila.
75675
75676 2002-03-08  Jim Meyering  <meyering@lucent.com>
75677
75678         * lib/rename.c: Mention that this wrapper is needed also on
75679         mips-dec-ultrix4.4 systems.
75680
75681 2002-03-02  Jim Meyering  <meyering@lucent.com>
75682
75683         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75684         not HAVE_CLOCK_SETTIME.
75685
75686 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75687
75688         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75689         Check for clock_settime.
75690
75691 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75692
75693         * lib/nanosleep.h: Rename to....
75694         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75695
75696         * lib/gettime.c: New file.
75697         * lib/settime.c: New file.
75698         * lib/stime.c: Remove.
75699
75700         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75701         timespec.h.  Remove nanosleep.h.
75702
75703 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75704
75705         * m4/acl.m4: New file.
75706         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75707         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75708
75709 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75710
75711         * lib/acl.c, lib/acl.h: New files.
75712         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75713
75714 2002-02-24  Jim Meyering  <meyering@lucent.com>
75715
75716         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75717         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75718         cause trouble.  Reported by Nelson Beebe.
75719
75720 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75721
75722         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75723         compilers that don't know that xalloc_die never returns.
75724
75725 2002-02-20  Jim Meyering  <meyering@lucent.com>
75726
75727         * lib/getdate.c: Regenerate using bison-1.33.
75728
75729 2002-02-17  Jim Meyering  <meyering@lucent.com>
75730
75731         * config/config.guess (main): Don't use `head -1'; it's no longer
75732         portable. Use `sed 1q' instead.
75733
75734 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75735
75736         * m4/codeset.m4: Upgrade to gettext-0.11.
75737         * m4/gettext.m4: Upgrade to gettext-0.11.
75738         * m4/glibc21.m4: Upgrade to gettext-0.11.
75739         * m4/iconv.m4: Upgrade to gettext-0.11.
75740         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75741         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75742         * m4/lib-ld.m4: New file, from gettext-0.11.
75743         * m4/lib-link.m4: New file, from gettext-0.11.
75744         * m4/lib-prefix.m4: New file, from gettext-0.11.
75745         * m4/progtest.m4: Upgrade to gettext-0.11.
75746
75747 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75748
75749         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75750         (jm_PREREQ): Use it.
75751
75752 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75753
75754         * lib/posixver.c, lib/posixver.h: New files.
75755         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75756
75757 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75758             Bruno Haible  <bruno@clisp.org>
75759
75760         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75761         (fwrite_success_callback): New declaration.
75762         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75763         print_unicode_char. Call failure callback instead of error.
75764         (fwrite_success_callback): New function.
75765         (exit_failure_callback): New function.
75766         (fallback_failure_callback): New function.
75767         (print_unicode_char): Call unicode_to_mb.
75768
75769 2002-01-26  Jim Meyering  <meyering@lucent.com>
75770
75771         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75772         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75773
75774 2002-01-26  Jim Meyering  <meyering@lucent.com>
75775
75776         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75777
75778 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75779
75780         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75781
75782 2002-01-22  Jim Meyering  <meyering@lucent.com>
75783
75784         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75785         Otherwise, some versions of automake would omit the rule that makes
75786         Makefile from Makefile.in.
75787
75788 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75789
75790         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75791         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75792         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75793         (memcoll): Set errno to zero if there is no error.
75794
75795         * lib/quotearg.c (quotearg_buffer_restyled):
75796         Fix bug with quoting buffers containing NUL when backslashing escapes.
75797         This bug was exposed by the other changes in this patch.
75798         (quotearg_n_options): New arg ARGSIZE.
75799         All callers changed.
75800         (quoting_options_from_style): New function.
75801         (quotearg_n_style): Use it.
75802         (quotearg_n_style_mem): New function.
75803
75804         * lib/quotearg.h (quotearg_n_style_mem): New function.
75805
75806 2002-01-19  Jim Meyering  <meyering@lucent.com>
75807
75808         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75809         Remove useless quotes: DF_PROG="df".
75810         * m4/strnlen.m4: New file.
75811
75812 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75813
75814         * lib/backupfile.c (ISDIGIT): Comment fix.
75815         * lib/getdate.y (ISDIGIT): Likewise.
75816         * lib/posixtm.c (ISDIGIT, year): Likewise.
75817         * lib/strverscmp.c (ISDIGIT): Likewise.
75818         * lib/userspec.c (ISDIGIT): Likewise.
75819
75820 2002-01-16  Jim Meyering  <meyering@lucent.com>
75821
75822         * lib/getdate.y: Add three semicolons, each just before a closing
75823         brace. Bison (as of version 1.31) no longer papers over that mistake.
75824
75825 2002-01-05  Jim Meyering  <meyering@lucent.com>
75826
75827         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75828
75829 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75830
75831         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75832         not silently exit merely because the output buffer happens to
75833         have nothing pending.
75834
75835 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75836
75837         See the big note in ../ChangeLog.
75838         * lib/human.c (suffixes): Prefer K to k for 1024.
75839         (generate_suffix_backwards): New function.
75840         (human_readable_inexact): Use it.
75841         * lib/xstrtol.c (__xstrtol): If there is no number but there
75842         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75843         Accept 'K' as well as 'k'.
75844
75845 2001-12-15  Jim Meyering  <meyering@lucent.com>
75846
75847         * lib/regex.h (__restrict_arr): Update from libc.
75848
75849         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75850         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75851         (STREQ): Define.
75852
75853 2001-12-14  Jim Meyering  <meyering@lucent.com>
75854
75855         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75856         Suggestion from Bruno Haible.
75857
75858 2001-12-10  Jim Meyering  <meyering@lucent.com>
75859
75860         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75861         xrealloc, Instead, include "xalloc.h".
75862         (initbuffer): Don't cast xmalloc return value to char*.
75863         (readline): Reword comment.
75864         Don't cast xrealloc return value to char*
75865         Return NULL, not 0.
75866
75867 2001-12-09  Jim Meyering  <meyering@lucent.com>
75868
75869         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75870         about `signed and unsigned type in conditional expression'.
75871         * lib/posixtm.c (posix_time_parse): Likewise.
75872
75873         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75874
75875         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75876         to avoid a pedantic warning.
75877
75878         * lib/getstr.c: Don't include assert.h.
75879         (getstr): Remove warning-evoking assertions.
75880         Return -1 if offset parameter is out of bounds.
75881         Change the type of a local from int to size_t.
75882
75883         * lib/strftime.c (my_strftime_localtime_r): Include this function
75884         definition in the `#if ! HAVE_TM_GMTOFF' block.
75885
75886         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75887         Include xalloc.h instead.
75888
75889 2001-12-02  Jim Meyering  <meyering@lucent.com>
75890
75891         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75892         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75893         included.
75894
75895         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75896         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75897
75898 2001-11-30  Akim Demaille  <akim@epita.fr>
75899
75900         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75901         before being defined.
75902
75903 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75904
75905         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75906         First arg is int, not unsigned.
75907         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75908         (SIZE_MAX, UINT_MAX): New macros.
75909         (quotearg_n_options): Abort if N is negative.
75910         Avoid overflow check on hosts where size_t is 64 bits and int
75911         is 32 bits, as overflow is impossible there.
75912         Fix off-by-one typo that caused unnecessary reallocation.
75913
75914 2001-11-27  Jim Meyering  <meyering@lucent.com>
75915
75916         * lib/tempname.c: Merge with version from libc.
75917         * lib/regex.c: Likewise.
75918
75919         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75920         systems for which STDC_HEADERS is 0, it was not included, resulting in
75921         a warning about an integer-to-pointer conversion problem with getenv.
75922         Reported by Volker Borchert.
75923
75924 2001-11-26  Jim Meyering  <meyering@lucent.com>
75925
75926         * lib/gtod.h: Remove file.
75927         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75928         * lib/gettimeofday.c: Don't include gtod.h.
75929         (GTOD_init): Remove function.
75930         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75931         Suggestion from Volker Borchert.
75932
75933 2001-11-23  Jim Meyering  <meyering@lucent.com>
75934
75935         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75936         it.
75937         * lib/hash.c (struct hash_table): Define it here instead.
75938
75939 2001-11-22  Jim Meyering  <meyering@lucent.com>
75940
75941         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75942
75943 2001-11-20  Jim Meyering  <meyering@lucent.com>
75944
75945         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75946         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75947
75948 2001-11-19  Jim Meyering  <meyering@lucent.com>
75949
75950         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75951         directory.  Use "conftestXXXXXX" as the template.
75952         Suggestion from Paul Eggert.
75953
75954         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75955         immediately, so the test doesn't mistakenly hit the max-open-files
75956         limit.
75957
75958 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75959
75960         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75961         (TEMPORARIES): New macro.
75962         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75963         removes an artificial limitation (e.g. HP-UX 10.20, where
75964         TMP_MAX is 17576).
75965
75966 2001-11-18  Jim Meyering  <meyering@lucent.com>
75967
75968         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75969
75970 2001-11-18  Jim Meyering  <meyering@lucent.com>
75971
75972         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75973         on SunOS 4.
75974
75975         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75976         files will be created before anything else.
75977
75978 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75979
75980         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75981         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75982
75983 2001-11-17  Jim Meyering  <meyering@lucent.com>
75984
75985         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75986         Prompted by a report from Bob Proulx.
75987
75988         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75989         Instead, require UTILS_FUNC_MKSTEMP.
75990
75991 2001-11-17  Jim Meyering  <meyering@lucent.com>
75992
75993         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75994         Now, that's done as part of AC_FUNC_STRTOD.
75995
75996 2001-11-17  Jim Meyering  <meyering@lucent.com>
75997
75998         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75999         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76000         rather than group writable.  Patch by Juan F. Codagnone.
76001
76002         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76003         xrealloc, Instead, include "xalloc.h".
76004
76005         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76006         Remove explicit declarations of xmalloc, xrealloc,
76007         and xstrdup.  Instead, include "xalloc.h".
76008
76009         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76010         unlocked-io.h.
76011         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76012         Likewise.
76013         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76014
76015         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76016         Reported by Padraig Brady.
76017
76018         * lib/mkstemp.c: #undef mkstemp.
76019         Include config.h.
76020         (rpl_mkstemp): Rename from mkstemp.
76021         Protoize.
76022
76023 2001-11-16  Jim Meyering  <meyering@lucent.com>
76024
76025         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76026         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76027         determine the amount of total physical memory, use pstat_getstatic.
76028         HPUX-11 doesn't define _SC_PHYS_PAGES.
76029         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76030         If sysconf couldn't be used to determine the amount of available
76031         physical memory, use both pstat_getstatic and pstat_getdynamic.
76032         Based on a patch from Bob Proulx.
76033
76034 2001-11-10  Jim Meyering  <meyering@lucent.com>
76035
76036         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76037         (jm_PREREQ): Use it.
76038
76039 2001-11-09  Jim Meyering  <meyering@lucent.com>
76040
76041         * m4/jm-macros.m4: Require autoconf-2.52f.
76042         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76043         Use these AC_-prefixed names, not the AM_-prefixed ones.
76044
76045         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76046
76047 2001-11-05  Jim Meyering  <meyering@lucent.com>
76048
76049         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76050
76051 2001-11-04  Jim Meyering  <meyering@lucent.com>
76052
76053         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76054         $DEFS.
76055
76056 2001-11-03  Jim Meyering  <meyering@lucent.com>
76057
76058         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76059         of AC_DEFUN.
76060
76061         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76062         know the name of the variable in the macro definition.
76063
76064 2001-11-03  Jim Meyering  <meyering@lucent.com>
76065
76066         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76067         in argmatch_to_argument call.
76068
76069         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76070         argument.
76071
76072         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76073         e.g., a fault due to an attempt to free a NULL pointer.
76074
76075 2001-11-01  Jim Meyering  <meyering@lucent.com>
76076
76077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76078         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76079
76080 2001-11-01  Jim Meyering  <meyering@lucent.com>
76081
76082         * lib/dirfd.c, lib/dirfd.h: New files.
76083         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76084
76085         * lib/hash.c (hash_print) [TESTING]: Clean up.
76086
76087 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76088
76089         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76090         to avoid a warning if -Wall.
76091
76092 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76093
76094         * README: New file
76095         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76096         (per RMS's instructions, this is now the canonical source)
76097         * lgpl/, gpl/: New directories.
76098
76099 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76100
76101         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76102
76103 2001-10-21  Jim Meyering  <meyering@lucent.com>
76104
76105         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76106         this code would end up calling gettext even in packages built
76107         with --disable-nls.
76108         * lib/getopt.c (_): Likewise.
76109         * lib/regex.c (_): Likewise.
76110
76111 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76112
76113         * m4/error.m4 (jm_PREREQ_ERROR):
76114         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76115         AC_FUNC_STRERROR_R does that.
76116         Check for strerror declaration.
76117
76118         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76119         are supposed to have them these days.
76120         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76121         Merge changes from latest Autoconf CVS.
76122         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76123         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76124         POSIX decided to standardize on the int flavor of strerror_r.
76125
76126 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76127
76128         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76129         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76130         Use strerror_r that is only a macro, even if it is not a function.
76131         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76132         (private_strerror): Use prototypes, not old-style function definition.
76133         (print_errno_message): New function.
76134         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76135         char*-flavored one.
76136         (error_tail, error, error_at_line): Use it.
76137
76138 2001-10-11  Jim Meyering  <meyering@lucent.com>
76139
76140         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76141         and quote_n (1, ... to avoid clobbering a buffer.
76142
76143 2001-10-05  Jim Meyering  <meyering@lucent.com>
76144
76145         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76146         hash-pjw.h.
76147         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76148         * lib/hash-pjw.h: New file.
76149
76150 2001-09-30  Jim Meyering  <meyering@lucent.com>
76151
76152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76153         `struct fsstat' has the `f_fstypename' member.
76154         Use that to define FS_TYPE, which is now used to make
76155         the getfsstat link test tighter.
76156
76157 2001-09-30  Jim Meyering  <meyering@lucent.com>
76158
76159         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76160         Include <sys/ucred.h>, for Apple Darwin.
76161         Include sys/mount.h and sys/fs_types.h only if available.
76162         (FS_TYPE): Define.
76163         (read_filesystem_list): Use FS_TYPE.
76164
76165 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76166
76167         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76168         a boolean context.
76169
76170 2001-09-29  Jim Meyering  <meyering@lucent.com>
76171
76172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76173         [one-argument getmntent function]): Include stdio.h before mntent.h.
76174         SunOS 4.1.x needs it for the declaration of `FILE'.
76175         Patch by Volker Borchert.
76176
76177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76178         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76179         sys/fs_types.h, and make the link-test for getfsstat guard #include
76180         directives with appropriate #if HAVE_*_H tests so that we can
76181         detect getfsstat on Apple Darwin1.3.7 systems.
76182         Reported by Nelson Beebe.
76183         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76184
76185 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76186
76187         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76188         #defines strtoimax.  Also treat the other strto* functions
76189         like strtoimax.
76190
76191         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76192         Check for strtoul and strtoumax,
76193         as those declarations are made even in the signed case.
76194         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76195         Likewise, for strtol and strtoimax.
76196
76197 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76198
76199         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76200         #defines strtoimax.  Also treat the other strto* functions
76201         like strtoimax.
76202
76203         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76204         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76205         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76206
76207 2001-09-26  Jim Meyering  <meyering@lucent.com>
76208
76209         Most macros in unlocked-io.h had the wrong number of arguments.
76210         * lib/gen-uio: New script.
76211         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76212         * lib/unlocked-io.hin: Remove file.
76213         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76214         rather than trying to embed it here.
76215         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76216         Reported by Padraig Brady.
76217
76218 2001-09-25  Volker Borchert  <bt@teknon.de>
76219
76220         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76221         `result'.
76222
76223 2001-09-24  Jim Meyering  <meyering@lucent.com>
76224
76225         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76226
76227 2001-09-23  Jim Meyering  <meyering@lucent.com>
76228
76229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76230         instead of the mere test for existence of mntent.h.  The latter
76231         would get a false-positive on AIX 3.4 systems.
76232         In the outer getmntent if-block, don't die if neither of the getmntent
76233         tests succeeds.  Instead, just fall through and continue with the
76234         remaining tests.
76235
76236 2001-09-23  Jim Meyering  <meyering@lucent.com>
76237
76238         * lib/mountlist.c: Remove useless parentheses in #if directives.
76239         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76240         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76241
76242 2001-09-22  Jim Meyering  <meyering@lucent.com>
76243
76244         * m4/gettext.m4: New file.  From gettext.
76245         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76246         * m4/progtest.m4: Likewise
76247         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76248         * m4/glibc21.m4: Likewise.
76249
76250         * m4/libintl.m4: Remove.  No longer used.
76251
76252 2001-09-22  Jim Meyering  <meyering@lucent.com>
76253
76254         * lib/localcharset.c: Update from latest gettext.
76255         * lib/config.charset: Likewise.
76256
76257 2001-09-20  Jim Meyering  <meyering@lucent.com>
76258
76259         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76260         strtoimax.
76261         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76262         strtoumax.
76263
76264 2001-09-20  Jim Meyering  <meyering@lucent.com>
76265
76266         * lib/xstrtol.c (strtoimax): Guard declaration with
76267         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76268         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76269         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76270         (strtoumax): Likewise, for completeness (it wasn't necessary).
76271
76272 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76273
76274         * lib/strtoimax.c (HAVE_LONG_LONG):
76275         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76276         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76277         to work around bug in IBM C compiler.
76278
76279 2001-09-17  Jim Meyering  <meyering@lucent.com>
76280
76281         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76282         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76283         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76284         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76285         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76286         whenever the right hand side need not be expanded by the shell.
76287
76288 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76289
76290         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76291         library.  It's not correct, as some older glibcs are buggy.
76292         fnmatch wasn't fixed until glibc 2.2.
76293
76294         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76295         special shell magic here.
76296
76297 2001-09-16  Jim Meyering  <meyering@lucent.com>
76298
76299         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76300         * m4/jm-macros.m4: Require it.
76301
76302 2001-09-16  Jim Meyering  <meyering@lucent.com>
76303
76304         * lib/mkdir.c: New file.
76305
76306 2001-09-15  Jim Meyering  <meyering@lucent.com>
76307
76308         * m4/jm-macros.m4: Check for help2man.
76309
76310 2001-09-11  Jim Meyering  <meyering@lucent.com>
76311
76312         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76313         The body, by Paul Eggert, was moved here from configure.in.
76314         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76315
76316 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76317
76318         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76319         (jm_PREREQ): Use it.
76320
76321 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76322
76323         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76324         Use ssize_t, not int, to store result of readlink.
76325         Check for ssize_t overflow as well as size_t overflow,
76326         as POSIX says the result of readlink is implementation-defined
76327         when ssize_t overflows.
76328         Remove unnecessary cast to char*.
76329         Use free+malloc instead of realloc, as the storage doesn't need
76330         to be preserved and it's clearer and can be more efficient that way.
76331         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76332         * lib/xreadlink.h (xreadlink): Update prototype.
76333
76334 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76335
76336         * lib/xgetcwd.c: Revert some of the previous change; intead,
76337         fix the HAVE_GETCWD_NULL code to behave more like the
76338         !HAVE_GETCWD_NULL code used to.
76339
76340         Include "xalloc.h".
76341         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76342         invoke xalloc_die.
76343
76344 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76345
76346         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76347         sys/param.h, as pathmax.h includes them.
76348
76349 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76350
76351         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76352         (jm_PREREQ_XGETCWD): New macro.
76353
76354         * m4/getcwd.m4: New file.
76355
76356 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76357
76358         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76359         like the HAVE_GETCWD_NULL code.
76360         Include pathmax.h if not HAVE_GETCWD.
76361         Do not include xalloc.h.
76362         (INITIAL_BUFFER_SIZE): New symbol.
76363         Do not use xmalloc / xrealloc, since the caller is responsible for
76364         handling errors.  Preserve errno around `free' during failure.
76365         Do not overrun buffer when using getwd.
76366
76367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76368
76369         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76370         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76371         getcwd (NULL, 0).
76372
76373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76374
76375         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76376         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76377         spotted by Jim Meyering.
76378
76379 2001-09-03  Jim Meyering  <meyering@lucent.com>
76380
76381         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76382         failure.
76383
76384 2001-09-02  Jim Meyering  <meyering@lucent.com>
76385
76386         * lib/error.c: Update from GNU libc.
76387
76388 2001-09-01  Jim Meyering  <meyering@lucent.com>
76389
76390         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76391         Used by df.
76392
76393 2001-09-01  Jim Meyering  <meyering@lucent.com>
76394
76395         * lib/xreadlink.c: New file.
76396         * lib/xreadlink.h: New file.
76397         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76398         xreadlink.h.
76399
76400         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76401         doesn't conflict with sparc Solaris 7's definition in
76402         /usr/include/sys/int_types.h.
76403
76404         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76405         files.
76406         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76407         and strncasecmp as r-values.  Unixware didn't have declarations.
76408
76409 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76410
76411         * lib/xstrtol.h: Add copyright notice.
76412         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76413         LONGINT_INVALID_SUFFIX_CHAR.
76414
76415 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76416
76417         * lib/xstrtol.c (strtoimax): New decl.
76418
76419 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76420
76421         * lib/xgetcwd.c: Don't include pathmax.h.
76422         Include stdlib.h and unistd.h if available.
76423         Include xalloc.h.
76424         (xmalloc, xstrdup, free): Remove decls.
76425         (xgetcwd): Don't assume sizes fit in unsigned.
76426         Check for overflow when computing sizes.
76427         Simplify reallocation code.
76428
76429 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76430
76431         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76432         a directory's st_size can have an arbitrary value, so the old
76433         usage could waste an arbitrary amount of memory.  All uses
76434         changed.
76435         * lib/savedir.h: Update prototype.
76436
76437 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76438
76439         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76440
76441         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76442         old strtoimax.c.
76443
76444         Also, make the following further changes to make this file's
76445         configuration more similar to that of strtol.c:
76446         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76447         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76448         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76449         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76450         changed to signed values.
76451
76452         And make the following changes as well:
76453         Fix copyright notice, as 1999 was missing.
76454         (verify): New macro.
76455         (strtoimax): Check sizes at compile-time, not run-time.
76456         Prefer strtol to strtoll if both work.
76457         (main): Remove; it was not that useful and was a pain to maintain.
76458
76459         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76460
76461 2001-08-31  Jim Meyering  <meyering@lucent.com>
76462
76463         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76464         Use an initial, malloc'd, buffer of length 128 rather than
76465         a statically allocated one of length 1024.
76466
76467 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76468
76469         Simplify code, partly by assuming autoconf 2.52 semantics.
76470
76471         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76472
76473         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76474         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76475         All uses removed.
76476         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76477         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76478         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76479         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76480         jm_AC_HEADER_INTTYPES_H.
76481         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76482
76483         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76484
76485         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76486         Quote first arg of AC_DEFUN.
76487         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76488         since they are needed to parse the include file even if we need
76489         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76490         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76491         but with opposite signedness.
76492
76493 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76494
76495         Merge 'exclude' changes from tar 1.13.22.
76496         This fixes one or two unlikely storage allocation overflow bugs,
76497         but doesn't change user-visible behavior otherwise.
76498
76499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76500
76501         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76502         (jm_PREREQ_EXCLUDE): New macro.
76503
76504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76505
76506         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76507         tm to be declared.
76508
76509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76510
76511         * lib/hash.c: Remove '2001' from copyright notice.
76512
76513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76514
76515         * lib/full-write.h: New file.
76516         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76517         * lib/full-write.c: Correct credits, as cccp.c no longer
76518         exists and anyway it was so heavily changed from the old cccp
76519         code as to be unrecognizable.  Include full-write.h.
76520         (full_write): Return size_t, with short writes meaning failure.
76521         All callers changed.  This fixes a bug with large buffers
76522         on 64-bit hosts.
76523         * lib/utime.c: Include full-write.h.
76524
76525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76526
76527         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76528         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76529         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76530         Include if available.
76531         (<xalloc.h>): Include
76532         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76533         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76534         collide with FNM macros.
76535         (struct patopts): New struct.
76536         (struct exclude): Use it, as exclude patterns now come with options.
76537         (new_exclude): Support above changes.
76538         (new_exclude, add_exclude_file):
76539         Initial size must now be a power of two to simplify overflow checking.
76540         (free_exclude, fnmatch_no_wildcards): New function.
76541         (excluded_filename): No longer requires options arg, as the options
76542         are determined by add_exclude.  Now returns bool, not int.
76543         (excluded_filename, add_exclude):
76544         Add support for the fancy new exclusion options.
76545         (add_exclude, add_exclude_file): Now takes int options arg.
76546         Check for arithmetic overflow when computing sizes.
76547         (add_exclude_file): xrealloc might modify errno, so don't
76548         realloc until after errno might be used.
76549
76550         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76551         New macros.
76552         (free_exclude): New decl.
76553         (add_exclude, add_exclude_file): Now takes int options arg.
76554         (excluded_filename): No longer requires options arg, as the options
76555         are determined by add_exclude.  Now returns bool, not int.
76556
76557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76558
76559         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76560
76561 2001-08-27  Jim Meyering  <meyering@lucent.com>
76562
76563         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76564
76565         * lib/version-etc.c (N_): Remove definition.
76566         Revert most of last change.
76567         Instead, simply don't mark the `Copyright...' string for translation.
76568         Based on advice from Paul Eggert.
76569
76570         * lib/strtoxmax.c: Tweak comment.
76571
76572 2001-08-26  Jim Meyering  <meyering@lucent.com>
76573
76574         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76575
76576         * m4/xstrtoimax.m4: New file.
76577         * m4/xstrtoumax.m4: Add comments explaining why we
76578         AC_REPLACE_FUNCS(strtol).
76579
76580 2001-08-26  Jim Meyering  <meyering@lucent.com>
76581
76582         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76583         of copyright with `%s' so translators don't get an untranslated
76584         message in 2002.
76585         (COPYRIGHT_YEAR): Define.
76586         (version_etc): Use fprintf rather than fputs.
76587         Suggestion from Ulrich Drepper.
76588
76589         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76590
76591         * lib/strtoll.c: New file, from GNU libc.
76592         * lib/xstrtoimax.c: New file.
76593
76594         * lib/xstrtol.h: Add xstrtoimax.
76595         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76596         * lib/strtoimax.c: New file.  Likewise, but first define
76597         STRTOUXMAX_SIGNED.
76598
76599         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76600         ...
76601         * lib/strtoxmax.c: ... then renamed to this.
76602
76603 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76604
76605         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76606         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76607         (jm_AC_TYPE_INTMAX_T): New macro.
76608         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76609
76610         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76611
76612         * m4/longlong.m4: Renamed from ulonglong.m4.
76613         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76614         * m4/uintmax_t.m4: Removed.
76615
76616 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76617
76618         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76619         Port to Solaris 8, where 'sed' requires a space after the 'r'
76620         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76621         Redirect output to $tmp just once.
76622
76623 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76624
76625         * lib/addext.c (<errno.h>): Include.
76626         (errno): Declare if not defined.
76627         (addext): Work correctly when pathconf returns -1 and leaves
76628         errno alone because there is no limit.  Also, work even if
76629         pathconf returns a value greater than SIZE_MAX.
76630
76631 2001-08-12  Jim Meyering  <meyering@lucent.com>
76632
76633         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76634         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76635         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76636         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76637         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76638         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76639         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76640         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76641         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76642         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76643         utime.m4, utimes.m4, xstrtoumax.m4:
76644         Quote the first argument in each use of AC_DEFUN.
76645
76646 2001-08-12  Jim Meyering  <meyering@lucent.com>
76647
76648         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76649         Simply `return getcwd (NULL, 0);'.
76650         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76651         Use 1300 as initial value for length, not PATH_MAX.
76652
76653         * lib/pathmax.h: Clean up cpp syntax.
76654
76655 2001-08-12  Jim Meyering  <meyering@lucent.com>
76656
76657         * lib/gettimeofday.c: New file.
76658         * lib/gtod.h: New file.
76659         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76660
76661 2001-08-05  Jim Meyering  <meyering@lucent.com>
76662
76663         * m4/jm-macros.m4: Require autoconf-2.52.
76664
76665 2001-08-04  Jim Meyering  <meyering@lucent.com>
76666
76667         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76668         stmt, to get in sync with glibc.
76669
76670 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76671
76672         The following changes are from gettext 0.10.39 as maintained by
76673         Bruno Haible.
76674
76675         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76676         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76677         with inverted sense.  All uses changed.
76678
76679         * lib/mbswidth.c: Don't include <limits.h>.
76680         Include <stdlib.h> and <string.h> unconditionally.
76681         (iswcntrl, mbsinit, ISCNTRL): New macros.
76682         (mbsnwidth): Use K&R style function declarations.
76683         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76684         can optimize it when MB_CUR_MAX == 1.
76685         The width of control characters is zero, not 1.
76686
76687 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76688
76689         The following changes are from gettext 0.10.39 as maintained by
76690         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76691
76692         * m4/codeset.m4: Upgrade to serial AM1.
76693         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76694         all uses changed.  Quote first arg of AC_DEFUN.
76695         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76696
76697         * m4/iconv.m4: Upgrade to serial AM2.
76698         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76699         Add --with-libconv-prefix.
76700         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76701         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76702         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76703         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76704         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76705
76706         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76707         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76708         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76709         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76710         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76711         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76712         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76713         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76714         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76715
76716         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76717         string.h any more.
76718
76719         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76720         not the default value.
76721
76722         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76723         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76724         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76725         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76726         Also check for iswcntrl, used for wcwidth fallback.
76727         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76728         to Autoconf 2.13.
76729
76730 2001-08-03  Jim Meyering  <meyering@lucent.com>
76731
76732         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76733         as it was in the original.  Reported by Paul Eggert.
76734
76735 2001-07-16  Jim Meyering  <meyering@lucent.com>
76736
76737         * m4/gettimeofday.m4: New file.
76738         Prompted by a report from Bernhard Baehr.
76739
76740 2001-07-15  Jim Meyering  <meyering@lucent.com>
76741
76742         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76743         stuff. Now it's in ../Makefile.cfg.
76744
76745 2001-07-15  Jim Meyering  <meyering@lucent.com>
76746
76747         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76748         (BUILT_SOURCES): Add unlocked-io.h.
76749         (io_functions): Define.
76750         (unlocked-io.h): New rule.
76751         (DISTCLEANFILES): Add unlocked-io.h.
76752         (all-local): Depend on unlocked-io.h, to ensure it is created.
76753
76754         * lib/unlocked-io.hin: New file
76755
76756         * lib/regex.c: Update from glibc.
76757
76758 2001-07-05  Jim Meyering  <meyering@lucent.com>
76759
76760         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76761         recommendation.
76762         (libfetish_a_SOURCES): Put all .h files here instead.
76763         Remove a thus-exposed (better checks in automake) duplicate and
76764         two unnecessary .h files.
76765
76766 2001-07-04  Jim Meyering  <meyering@lucent.com>
76767
76768         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76769         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76770         distcheck failure.
76771
76772 2001-07-02  Jim Meyering  <meyering@lucent.com>
76773
76774         The following changes were prompted by suggestions from Bruno Haible.
76775
76776         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76777         is now generated.
76778         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76779         definition of EXTRA_DIST.
76780         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76781         ensure that the generated file is created/updated whenever the list
76782         of $(unlocked_functions) is changed.
76783         (jm-glibc-io.m4): New rule.
76784         (unlocked-io.h): New rule -- currently unused.
76785
76786 2001-06-24  Jim Meyering  <meyering@lucent.com>
76787
76788         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76789         unmatched right bracket, rather than kludging it with an extra,
76790         falsely-matching quote in a comment.  Patch by Akim Demaille.
76791
76792 2001-06-11  Jim Meyering  <meyering@lucent.com>
76793
76794         * lib/regex.c: Update from GNU libc.
76795
76796 2001-05-27  Jim Meyering  <meyering@lucent.com>
76797
76798         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76799         Check for ut_type in struct utmp.
76800
76801 2001-05-27  Jim Meyering  <meyering@lucent.com>
76802
76803         * lib/readutmp.h (UT_TYPE): Define.
76804
76805 2001-05-24  Jim Meyering  <meyering@lucent.com>
76806
76807         * lib/argmatch.c: Include "quote.h".
76808         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76809         quote function.  Reported by Göran Uddeborg.
76810
76811 2001-05-22  Jim Meyering  <meyering@lucent.com>
76812
76813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76814         now that we use the package-supplied version unconditionally.
76815         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76816
76817 2001-05-21  Jim Meyering  <meyering@lucent.com>
76818
76819         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76820         shell syntax errors.
76821
76822 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76823
76824         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76825
76826 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76827
76828         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76829         Don't bother to check library strftime, since
76830         we'll be using our own my_strftime function anyway.
76831         Define my_strftime instead of strftime.
76832
76833 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76834
76835         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76836         which is not yet declared.
76837
76838 2001-05-15  Jim Meyering  <meyering@lucent.com>
76839
76840         * m4/regex.m4: Use proper quoting so brackets appear in the test
76841         program.
76842         Reported by, and with help from, Bruno Haible.
76843
76844 2001-05-13  Jim Meyering  <meyering@lucent.com>
76845
76846         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76847         undefined.
76848
76849 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76850
76851         dirname code cleanup.  base_name now behaves more compatibly
76852         with POSIX basename when given file names that have trailing
76853         slashes, and similarly for dir_name.  Add new primitives
76854         base_len and dir_len.  Put the directory-name-related decls
76855         into dirname.h.
76856
76857         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76858         * lib/backupfile.c (base_name): Likewise.
76859         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76860         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76861         * lib/makepath.c (strip_trailing_slashes): Likewise.
76862         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76863         ISSLASH): Likewise.
76864         * lib/rename.c (strip_trailing_slashes): Likewise.
76865         * lib/same.c (base_name): Likewise.
76866         * lib/stripslash.c (ISSLASH): Likewise.
76867
76868         * lib/addext.c: Include <dirname.h> after size_t is defined.
76869         * lib/backupfile.c: Likewise.
76870
76871         * lib/addext.c (addext): Use base_len to trim redundant
76872         trailing slashes instead of doing it ourselves.
76873         But do not trim the last slash if it is not redundant.
76874
76875         * lib/backupfile.c (find_backup_file_name,
76876         max_backup_version): Use base_len instead of rolling it ourselves.
76877         Handle the case of "" and (on DOS) "C:" correctly.
76878
76879         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76880         needed. Include <string.h>, <dirname.h>.
76881         (base_name): Allow file names ending in slashes, other than names
76882         that are all slashes.  In this case, return the basename followed
76883         by the slashes.  This is more general, and can be used in places
76884         where the original base_name purposely had an assertion failure.
76885         (base_len): New function.
76886
76887         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76888         Do not include <assert.h>; no longer needed.
76889         Include xalloc.h.
76890         (memrchr): Remove decl.
76891         (dir_name_r): Remove.
76892         (dir_len): Renamed from dirlen.  All callers changed.
76893         Rewrite in terms of base_name, for simplicity and consistency.
76894         (dir_name): Never return NULL.  All callers changed.
76895         Do not include <stdlib.h> in test program; no longer needed.
76896         return 0; is fine for test program.
76897
76898         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76899         New macros.
76900         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76901
76902         * lib/path-concat.c (path_concat): Use base_len to compute
76903         base length, not strlen; this means we cannot rely on memcpy
76904         to null-terminate.
76905
76906         * lib/same.c (STREQ): Remove.
76907         (same_name): Handle the case where the basename ends in trailing '/'.
76908
76909         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76910         a slash was stripped.  Do not strip the last slash after a
76911         file system prefix.
76912
76913 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76914
76915         * lib/Makefile.am (libfetish_a_SOURCES):
76916         Add strftime.c, since we now compile it on all hosts.
76917
76918         * lib/strftime.c (my_strftime):
76919         Define to nstrftime if emacs, but only if my_strftime is not defined.
76920         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76921         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76922         Add one more extra argument: a nanoseconds value.
76923         All uses changed.
76924         (ns): New macro.
76925         (my_strftime function): Add %N format.
76926         (emacs_strftimeu): Renamed from emacs_strftime,
76927         with extra ut argument.
76928
76929 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76930
76931         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76932
76933 2001-04-21  Jim Meyering  <meyering@lucent.com>
76934
76935         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76936         doesn't interfere.
76937
76938 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76939
76940         * m4/ftruncate.m4: Check for chsize.
76941         Link with ftruncate.o unconditionally if ftruncate is missing.
76942         This was required when cross-compiling to i586-mingw32msvc.
76943
76944 2001-04-08  Jim Meyering  <meyering@lucent.com>
76945
76946         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76947         recomputed; that's necessary when the offset spans a DST transition.
76948         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76949
76950 2001-04-02  Jim Meyering  <meyering@lucent.com>
76951
76952         * lib/regex.h, regex.c: Update from GNU libc.
76953
76954 2001-03-24  Jim Meyering  <meyering@lucent.com>
76955
76956         * m4/jm-macros.m4: Require autoconf-2.49d.
76957
76958 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76959
76960         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76961
76962 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76963
76964         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76965
76966 2001-03-17  Jim Meyering  <meyering@lucent.com>
76967
76968         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76969         now that the version in autoconf is equivalent.
76970         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76971
76972         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76973         Suggestion from Akim Demaille.
76974
76975         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76976         (jm_PREREQ_TEMPNAME): New function.
76977
76978 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76979
76980         * lib/tempname.c (uint64_t): Define to uintmax_t if
76981         not defined, and if UINT64_MAX is not defined.
76982         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76983         Reported by John David Anglin.
76984
76985 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76986
76987         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76988         resolve alias if codeset is empty.
76989         * lib/config.charset (BeOS): Use wildcard syntax.
76990
76991 2001-03-13  Jim Meyering  <meyering@lucent.com>
76992
76993         * lib/path-concat.c (path_concat)
76994         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76995         concatenating e.g., `C:' and `foo'.
76996         From Bruno Haible.
76997
76998 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76999
77000         * lib/localcharset.c (locale_charset): Don't use
77001         setlocale(LC_CTYPE,NULL). Don't return NULL.
77002         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77003
77004 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77005
77006         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77007         support for DOS/DJGPP.
77008
77009 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77010
77011         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77012         lacks mkstemp.  Compile our own tempname.c if we compile our own
77013         mkstemp.c, as mkstemp relies on tempname.
77014
77015 2001-03-01  Jim Meyering  <meyering@lucent.com>
77016
77017         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77018         AH_VERBATIM really does output its argument verbatim.
77019
77020 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77021
77022         * lib/Makefile.am (libfetish_a_SOURCES):
77023         Add dup-safer.c, fopen-safer.c.
77024         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77025
77026         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77027         * lib/unistd-safer.h: New files.
77028
77029 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77030
77031         The mkstemp replacement is taken from glibc 2.2.2, with some
77032         portability fixes for use outside glibc, as follows:
77033
77034         * lib/tempname.c (struct_stat64): New macro.
77035         (direxists, __gen_tempname): Use it.
77036         This avoids a portability problem with Solaris 8.
77037
77038         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77039         (<stddef.h>, <stdint.h>, <string.h>):
77040         Include only if STDC_HEADERS || _LIBC.
77041         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77042         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77043         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77044         (__set_errno): Define this macro if <errno.h> doesn't.
77045         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77046         Define these macros if <stdio.h> doesn't.
77047         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77048         Define these macros if <sys/stat.h>
77049         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77050         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77051         __xstat64): Define if not _LIBC.
77052         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77053         (__gen_tempname): Invoke gettimeofday only if
77054         HAVE_GETTIMEOFDAY || _LIBC;
77055         otherwise, fall back on plain "time".
77056         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77057
77058         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77059
77060         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77061
77062 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77063
77064         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77065
77066 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77067
77068         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77069         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77070         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77072
77073 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77074
77075         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77076         Remove workaround macros for hosts that have mbrtowc but not
77077         mbstate_t, as we now insist on proper declarations for both
77078         before using mbrtowc.
77079
77080 2001-02-17  Jim Meyering  <meyering@lucent.com>
77081
77082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77083         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77084         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77085         UnixWare 7.1.1.
77086
77087         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77088         rather than AC_CACHE_VAL.
77089
77090 2001-02-17  Jim Meyering  <meyering@lucent.com>
77091
77092         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77093         around included file name.
77094
77095         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77096
77097         * lib/strftime.c: Update from GNU libc (the only changes were to
77098         comments).
77099
77100 2001-02-17  Jim Meyering  <meyering@lucent.com>
77101
77102         * lib/regex.c: Update from libc.
77103
77104 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77105
77106         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77107         clash.
77108
77109 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77110
77111         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77112         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77113         Reported by Mark Hounschell via Paul Eggert.
77114
77115 2001-02-07  Jim Meyering  <meyering@lucent.com>
77116
77117         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77118
77119 2001-02-05  Jim Meyering  <meyering@lucent.com>
77120
77121         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77122         it includes the patch required for `large file' support with at least
77123         HP-UX's 10.20 /bin/cc.
77124
77125 2001-02-03  Jim Meyering  <meyering@lucent.com>
77126
77127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77128         AS_IF, now that it works once again (mysteriously).
77129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77130
77131 2001-01-30  Jim Meyering  <meyering@lucent.com>
77132
77133         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77134         * m4/chown.m4: Rename conftestchown to conftest.chown.
77135         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77136         s/conftestdir2/conftest.d2/.
77137         * m4/utimes.m4: s/conftestdata/conftest.data/
77138         Inspired by Pavel Roskin's change in autoconf.
77139
77140 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77141
77142         * lib/config.charset: Update for FreeBSD 4.2.
77143
77144 2001-01-27  Jim Meyering  <meyering@lucent.com>
77145
77146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77147         a use of AS_IF.
77148         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77149
77150 2001-01-26  Jim Meyering  <meyering@lucent.com>
77151
77152         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77153         quotearg.c includes it.
77154
77155 2001-01-26  Jim Meyering  <meyering@lucent.com>
77156
77157         * lib/quotearg.c: Include stddef.h.
77158         * lib/quote.c: Include stddef.h.
77159         Reported by Axel Kittenberger.
77160
77161         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77162         line in double quotes so that it evokes a better diagnostic.
77163         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77164         Reported by Axel Kittenberger.
77165
77166 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77167
77168         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77169         as if it was a `charset'.
77170
77171 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77172
77173         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77174         has const.
77175
77176 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77177
77178         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77179         to avoid a warning.  Add back 'const' to inptr.
77180
77181 2001-01-20  Jim Meyering  <meyering@lucent.com>
77182
77183         Be sure that headers are checked before used in code compiled
77184         for the type checks.
77185         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77186         In place of that, invoke jm_CHECK_ALL_TYPES.
77187         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77188         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77189         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77190         The check for ssize_t was mistakenly run before the test for unistd.h.
77191
77192         The configure-time check for stdbool.h was missing.
77193         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77194         (jm_PREREQ_HASH): New function.
77195
77196 2001-01-17  Jim Meyering  <meyering@lucent.com>
77197
77198         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77199         for autoconf-2.49c.
77200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77201
77202 2001-01-16  Jim Meyering  <meyering@lucent.com>
77203
77204         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77205         From Bruno Haible.
77206
77207 2001-01-14  Jim Meyering  <meyering@lucent.com>
77208
77209         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77210         foo and bar.  Create conftestdir/ in the script, not in the C code.
77211         Remove directories in the script, not in the C code.
77212         Remove conftestdir{,2} before trying to create the directory.
77213         Make the entire configure script fail if the mkdir fails.
77214
77215 2001-01-14  Jim Meyering  <meyering@lucent.com>
77216
77217         * lib/rename.c: New file.  From Volker Borchert.
77218         Include stdlib.h, string.h or strings.h, and xalloc.h.
77219         Use strip_trailing_slashes rather than open-coding it.
77220
77221 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77222
77223         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77224
77225 2001-01-03  Jim Meyering  <meyering@lucent.com>
77226
77227         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77228         of local `inptr' to avoid warning with some system declarations of
77229         iconv.
77230
77231 2001-01-02  Volker Borchert  <bt@teknon.de>
77232
77233         * m4/rename.m4: New file.
77234         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77235
77236 2001-01-01  Jim Meyering  <meyering@lucent.com>
77237
77238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77239         even on systems with utmpx.h.  It's necessary for the declaration of
77240         utmp's ut_user member.  Reported by Andreas Jaeger.
77241
77242         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77243         available. They are required for the declarations of getgrgid and
77244         getpwuid resp.
77245         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77246         Reported by Andreas Jaeger.
77247
77248 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77249
77250         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77251         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77252         so `make install' also works in VPATH builds.
77253
77254 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77255
77256         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77257         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77258         can be used in subdirectories.
77259
77260 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77261
77262         * lib/modechange.c: Do not assume that mode_t uses the
77263         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77264         the other-execute bit of FOO even if S_IXOTH != 1.
77265
77266         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77267         WOTH, XOTH, ALLM): New macros.
77268         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77269          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77270         Use them.
77271         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77272         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77273         (mode_compile):
77274         No need to use uintmax_t; unsigned long is long enough.
77275         Don't bother to get suffix since we don't use it.
77276
77277 2000-12-26  Jim Meyering  <meyering@lucent.com>
77278
77279         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77280         better with autoheader.
77281
77282 2000-12-24  Jim Meyering  <meyering@lucent.com>
77283
77284         * lib/hash.c (is_prime): Return explicit boolean values.
77285         (hash_get_first): Return NULL to appease Irix5.6's 89.
77286         Reported by Nelson Beebe.
77287
77288 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77289
77290         * lib/localcharset.c (locale_charset): Add support for Win32.
77291
77292 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77293
77294         * lib/physmem.h, lib/physmem.c: New files.
77295
77296         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77297         (noinst_HEADERS): Add physmem.h.
77298
77299         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77300         't' for compatibility with Solaris 8 sort.
77301
77302 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77303
77304         * lib/config.charset: Add support for BeOS.
77305
77306 2000-12-17  Jim Meyering  <meyering@lucent.com>
77307
77308         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77309         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77310
77311 2000-12-16  Jim Meyering  <meyering@lucent.com>
77312
77313         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77314         N and M) would have treated it like `chown N:N FILE'.
77315
77316         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77317
77318 2000-12-16  Jim Meyering  <meyering@lucent.com>
77319
77320         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77321         SHELLS_FILE to a file name that's useful on djgpp systems.
77322         Include stdlib.h.
77323         (ADDITIONAL_DEFAULT_SHELLS): Define.
77324         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77325         Based mostly on a patch from Prashant TR.
77326
77327 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77328
77329         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77330         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77331         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77332
77333 2000-12-08  Andreas Schwab  <schwab@suse.de>
77334
77335         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77336         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77337
77338 2000-12-07  Jim Meyering  <meyering@lucent.com>
77339
77340         * lib/stripslash.c (ISSLASH): Define.
77341         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77342         `/'.
77343         From Prashant TR.
77344
77345         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77346         (dir_name_r): Declare this function as static.
77347         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77348         manifest itself on a name containing a mix of slashes and
77349         backslashes.
77350         Make this function work with names starting with a DOS-style
77351         drive letter and colon prefix.
77352         (dir_name): Append `.' if necessary.
77353         Based mostly on patches from Prashant TR and Eli Zaretskii.
77354
77355         * lib/dirname.h (dir_name_r): Remove prototype.
77356
77357 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77358
77359         * m4/off_t-format.m4: Remove this file.
77360         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77361
77362 2000-12-06  Jim Meyering  <meyering@lucent.com>
77363
77364         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77365         replacement strtoull, we may well need the replacement strtoul, too.
77366         Check for declarations of strtoul and strtoull.
77367         Check for strtol.  Mainly as a cue to cause automake to include
77368         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77369         Check for limits.h -- strtol.c needs it.
77370
77371 2000-12-05  Jim Meyering  <meyering@lucent.com>
77372
77373         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77374
77375 2000-12-04  Jim Meyering  <meyering@lucent.com>
77376
77377         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77378         Also include memory.h, stdlib.h, unistd.h if appropriate.
77379         Reported by Andreas Jaeger (conflicting declaration of malloc).
77380
77381 2000-12-02  Jim Meyering  <meyering@lucent.com>
77382
77383         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77384         * m4/jm-macros.m4 (jm_MACROS): require it.
77385
77386 2000-12-02  Jim Meyering  <meyering@lucent.com>
77387
77388         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77389
77390 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77391
77392         * lib/memrchr.c: Include <config.h> before any system include file.
77393
77394 2000-11-30  Jim Meyering  <meyering@lucent.com>
77395
77396         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77397
77398 2000-11-30  Jim Meyering  <meyering@lucent.com>
77399
77400         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77401
77402 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77403
77404         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77405
77406 2000-11-26  Jim Meyering  <meyering@lucent.com>
77407
77408         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77409
77410 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77411
77412         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77413         size of (size_t) -1; it's not portable.
77414
77415 2000-11-17  Jim Meyering  <meyering@lucent.com>
77416
77417         * lib/strstr.c: Update from GNU libc.
77418
77419 2000-11-17  Akim Demaille  <akim@epita.fr>
77420
77421         * lib/obstack.h: Formatting changes.
77422         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77423         prevent type checking.
77424         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77425         cast the value to (void *): assigning a `foo *' to a `void *'
77426         variable is valid.
77427         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77428
77429 2000-11-16  Jim Meyering  <meyering@lucent.com>
77430
77431         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77432
77433 2000-11-11  Jim Meyering  <meyering@lucent.com>
77434
77435         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77436
77437 2000-11-10  Jim Meyering  <meyering@lucent.com>
77438
77439         * lib/obstack.h: Update from GNU libc.
77440         * lib/obstack.c: Likewise.
77441
77442 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77443
77444         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77445
77446 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77447
77448         * lib/getusershell.c (setusershell): Use rewind rather than
77449         fseek/fseeko, to avoid configuration hassles with fseeko.
77450         Don't bother opening SHELLS_FILE if shellstream is NULL;
77451         it's not necessary.
77452
77453 2000-11-05  Jim Meyering  <meyering@lucent.com>
77454
77455         * lib/makepath.h (make_dir): Declare.
77456         * lib/makepath.c (make_dir): Remove `static' attribute.
77457         Tweak a comment.
77458
77459 2000-11-04  Jim Meyering  <meyering@lucent.com>
77460
77461         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77462
77463 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77464
77465         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77466         last one in a bucket, advance to the next bucket.
77467
77468 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77469
77470         * lib/fnmatch.c: Do not comment out all the code if we are using
77471         the GNU C library, because in some cases we are replacing buggy
77472         code in the GNU C library itself.
77473
77474 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77475
77476         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77477         (regex_compile): Catch bogus \(\1\).
77478
77479 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77480
77481         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77482         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77483         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77484
77485 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77486
77487         * lib/error.h, getline.h, modechange.h:
77488         Remove "2000" from Copyright line, as the file hasn't been
77489         changed this year other than in the copyright notice.
77490
77491         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77492         was changed this year.
77493
77494 2000-10-29  Jim Meyering  <meyering@lucent.com>
77495
77496         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77497         renaming.
77498         * m4/ls-mntd-fs.m4: Likewise
77499
77500 2000-10-29  Jim Meyering  <meyering@lucent.com>
77501
77502         * lib/xstat.in: Fix grammar in comment.
77503
77504 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77505
77506         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77507         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77508         doesn't define __restrict_arr.
77509
77510 2000-10-28  Jim Meyering  <meyering@lucent.com>
77511
77512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77513         (jm_PREREQ_MEMCHR): New function.
77514
77515 2000-10-28  Jim Meyering  <meyering@lucent.com>
77516
77517         * lib/memchr.c: Update from libc.
77518         Adjust for portability:
77519         [HAVE_STDLIB_H]: Include stdlib.h.
77520         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77521         Undef __memchr, too.
77522         [!weak_alias]: Define __memchr to memchr.
77523
77524         * lib/regex.c: Update from libc.
77525         * lib/regex.h: Likewise.
77526         * lib/getopt1.c: Likewise.
77527         * lib/memcmp.c: Likewise.
77528
77529         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77530         Avoid using fseek, when possible -- it's broken by design.
77531         Patch by Ulrich Drepper.
77532
77533 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77534
77535         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77536         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77537         Giving in to popular pressure to shut up the compiler with casts.
77538
77539 2000-10-26  Jim Meyering  <meyering@lucent.com>
77540
77541         * lib/strftime.c: Update from libc.
77542
77543 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77544
77545         * regex.c: More `unsigned char' -> `re_char' changes.
77546         Also change several `int' into `re_wchar_t'.
77547         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77548         (PUSH_FAILURE_POINTER): Don't cast any more.
77549         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77550         We want GCC to complain, since this piece of code makes
77551         re_match non-reentrant, which *should* be fixed.
77552         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77553         (EXTEND_BUFFER): Use RETALLOC.
77554         (SET_LIST_BIT): Don't cast.
77555         (re_wchar_t): New type.
77556         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77557         that those two functions will always properly return.
77558         (IMMEDIATE_QUIT_CHECK): Cast to void.
77559         (analyse_first): Use recursion rather than an explicit stack.
77560         (re_compile_fastmap): Can't fail anymore.
77561         (re_search_2): Don't check re_compile_fastmap for failure.
77562         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77563         Now also sets the new value (passed in a new argument).
77564         (re_match_2_internal): Use it.
77565         Also, use a new var `reg' of type size_t when looping through regs
77566         rather than reuse the inappropriate `mcnt'.
77567
77568 2000-10-25  Jim Meyering  <meyering@lucent.com>
77569
77570         * lib/obstack.c: Update from libc.
77571
77572 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77573
77574         * regex.c (regex_compile): Change the way of handling a range from
77575         a char less than 256 to a char not less than 256.
77576
77577 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77578
77579         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77580         NT-Emacs only.
77581         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77582         so that re_search functions only quit when callers expect them to.
77583
77584 2000-10-23  Jim Meyering  <meyering@lucent.com>
77585
77586         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77587         wrong.  That set_locale call must not have any side effects.
77588         From Paul Eggert.
77589
77590 2000-10-22  Jim Meyering  <meyering@lucent.com>
77591
77592         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77593         [CYCLIC]: Remove now-unused definition.
77594
77595         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77596         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77597         Suggestion from Ulrich Drepper.
77598
77599 2000-10-21  Jim Meyering  <meyering@lucent.com>
77600
77601         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77602         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77603         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77604
77605 2000-10-21  Jim Meyering  <meyering@lucent.com>
77606
77607         * lib/dirname.c (memrchr): Declare if necessary.
77608         (dir_name): Remove the restriction that there be no
77609         trailing slashes.  Now, this code skips past them, effectively
77610         ignoring them.
77611         [TEST_DIRNAME] (main): New unit tests.
77612
77613         * lib/memrchr.c: New file from GNU libc.
77614         Undef __memrchr, too.
77615         [!weak_alias]: Define __memrchr to memrchr.
77616         Guard weak_alias use with `#ifdef weak_alias'.
77617
77618 2000-10-21  Jim Meyering  <meyering@lucent.com>
77619
77620         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77621         (dir_name): Use dir_name_r.
77622         * lib/dirname.h (dir_name_r): Declare it.
77623
77624 2000-10-17  Jim Meyering  <meyering@lucent.com>
77625
77626         * lib/quote.h (PARAMS): Define and use.
77627         Reported by Akim Demaille.
77628
77629         * lib/getopt.c: Update from libc.
77630
77631 2000-10-16  Jim Meyering  <meyering@lucent.com>
77632
77633         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77634         setlocale.
77635         From Jan Fedak.
77636
77637 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77638
77639         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77640
77641 2000-09-25  Jim Meyering  <meyering@lucent.com>
77642
77643         * lib/md5.h (rol): Define (from GnuPG).
77644
77645         * lib/sha.c: Give credit (GnuPG) where due.
77646         (M): Use rol rather than open-coding it.
77647         Add a FIXME comment.
77648
77649 2000-09-21  Jim Meyering  <meyering@lucent.com>
77650
77651         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77652         Reported by Michael Stone.
77653
77654 2000-09-20  Jim Meyering  <meyering@lucent.com>
77655
77656         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77657         (noinst_HEADERS): Add sha.h.
77658         Based on code from Scott G. Miller and from GnuPG.
77659
77660 2000-09-18  Jim Meyering  <meyering@lucent.com>
77661
77662         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77663         LIBS. Otherwise, everyone ends up linking with -lelf for some
77664         configurations.
77665         Reported by Mike Stone.
77666
77667 2000-09-15  Jim Meyering  <meyering@lucent.com>
77668
77669         * lib/regex.c: Update from libc.
77670
77671 2000-09-10  Jim Meyering  <meyering@lucent.com>
77672
77673         * lib/getopt.c (_getopt_internal): Update from glibc.
77674
77675 2000-09-09  Jim Meyering  <meyering@lucent.com>
77676
77677         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77678         think it should be used as a general replacement for isascii.
77679         * lib/fnmatch.c: Likewise.
77680         * lib/mbswidth.c: Likewise
77681         * lib/regex.c: Likewise.
77682
77683         Don't use atoi.
77684         * lib/userspec.c: Include sys/param.h and limits.h.
77685         Include xstrtol.h.
77686         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77687         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77688         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77689         UID, GID.  Check range.
77690
77691 2000-09-06  Jim Meyering  <meyering@lucent.com>
77692
77693         * lib/getopt.c (_getopt_internal): Update from glibc.
77694
77695 2000-08-30  Jim Meyering  <meyering@lucent.com>
77696
77697         * lib/strftime.c: Merge in changes from GNU libc.
77698
77699 2000-08-26  Jim Meyering  <meyering@lucent.com>
77700
77701         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77702         * m4/fpending.m4: New file.
77703
77704 2000-08-26  Jim Meyering  <meyering@lucent.com>
77705
77706         * lib/closeout.c: Include "__fpending.h".
77707         (close_stdout_status): Return right away if there's nothing to flush.
77708
77709         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77710         * lib/__fpending.c: New file.
77711         * lib/__fpending.h: New file.
77712
77713 2000-08-20  Jim Meyering  <meyering@lucent.com>
77714
77715         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77716         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77717         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77718
77719 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77720
77721         Improve fileutils installation on systems where running
77722         programs (like install) can't be unlinked.
77723         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77724         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77725
77726 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77727
77728         Standardize on "memory exhausted" instead of "Memory exhausted"
77729         or "virtual memory exhausted".
77730         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77731         "virtual memory exhausted".
77732         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77733         our own message.
77734         * lib/userspec.c (parse_user_spec): Likewise.
77735         * lib/bumpalloc.h: comment fix
77736         * lib/same.c, userspec.c: Include xalloc.h.
77737
77738         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77739         not char *const and pointing to a constant array.
77740         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77741         (xrealloc): Comment fix.
77742
77743         * lib/userspec.c (parse_user_spec):
77744         Don't translate a message until just before returning,
77745         to avoid unnecessary translation.
77746
77747 2000-08-07  Jim Meyering  <meyering@lucent.com>
77748
77749         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77750         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77751         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77752         getgroups.c, gethostname.c, getopt.h, group-member.c,
77753         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77754         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77755         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77756         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77757         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77758         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77759         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77760         yesno.c: Back out Copyright date changes for each file with no change
77761         this year.  This eases coordination with other programs using the same
77762         source code modules.  From Paul Eggert.
77763
77764 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77765
77766         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77767         not char, for compatibility with glibc 2.1.3 strftime.c.
77768
77769 2000-08-03  Greg McGary  <greg@mcgary.org>
77770
77771         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77772         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77773         (EXTEND_BUFFER): Use them.
77774
77775 2000-08-01  Jim Meyering  <meyering@lucent.com>
77776
77777         * lib/dirname.c (ISSLASH): Define.
77778         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77779         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77780         both `\' and `/' may be use as path separators.
77781         Based on a patch from Prashant TR.
77782
77783 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77784
77785         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77786         slot vector a constant, since it might get modified.
77787
77788 2000-07-31  Jim Meyering  <meyering@lucent.com>
77789
77790         * lib/xmalloc.c: Use `virtual memory exhausted', not
77791         `Memory exhausted'.
77792         * lib/obstack.c (print_and_abort): Likewise.
77793
77794 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77795
77796         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77797         buffer, so that the caller can always quote one small
77798         component of a "memory exhausted" message in slot 0.
77799         From a suggestion by Jim Meyering.
77800
77801 2000-07-30  Jim Meyering  <meyering@lucent.com>
77802
77803         * lib/makepath.c (make_path): Quote the other instance, too.
77804
77805         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77806         (STATIC_BUF_SIZE): Define.
77807         (quotearg_n_options): Use only statically allocated storage when
77808         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77809         than STATIC_BUF_SIZE.
77810
77811 2000-07-29  Jim Meyering  <meyering@lucent.com>
77812
77813         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77814         * lib/dirname.c (dir_name): Likewise.
77815
77816         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77817         `/'.
77818
77819         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77820         (dir_name): Assert that there are no trailing slashes.
77821
77822 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77823
77824         * lib/mbswidth.h (mbswidth): Add a flags argument.
77825         (mbswidth): New declaration.
77826         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77827         * lib/mbswidth.c (mbswidth): Add a flags argument.
77828         (mbsnwidth): New function.
77829
77830 2000-07-24  Jim Meyering  <meyering@lucent.com>
77831
77832         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77833
77834 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77835
77836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77837
77838 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77839
77840         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77841         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77842         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77843         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77844         invoke multibyte primitives.
77845
77846 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77847
77848         * lib/quotearg.c:
77849         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77850         so that mbstate_t is always defined.
77851
77852         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77853         be 1 in at least one GCC installation, and this configuration
77854         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77855         performance on hosts that have mbrtowc but have only unibyte
77856         locales, but I assume these hosts are rare.
77857
77858 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77859
77860         * lib/mbswidth.c (_XOPEN_SOURCE):
77861         Don't define; this causes problems on Solaris 7.
77862         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77863
77864 2000-07-23  Jim Meyering  <meyering@lucent.com>
77865
77866         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77867         too: getgrgid, getpwuid, getuid.
77868
77869 2000-07-23  Jim Meyering  <meyering@lucent.com>
77870
77871         * lib/basename.c (base_name): Add an assertion.
77872
77873 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77874
77875         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77876         shadow its mbsinit function.
77877
77878 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77879
77880         * lib/mbswidth.h: New file.
77881         * lib/mbswidth.c: New file.
77882         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77883         (noinst_HEADERS): Add mbswidth.h.
77884
77885 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77886
77887         * lib/config.charset: Add support for FreeBSD. Improve support for
77888         HP-UX and IRIX 6.
77889
77890 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77891
77892         * m4/mbswidth.m4: New file.
77893         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77894
77895 2000-07-15  Jim Meyering  <meyering@lucent.com>
77896
77897         * lib/makepath.c: Include quote.h.
77898         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77899         corresponding argument in a `quote (...)' call.
77900         Give better diagnostics.
77901
77902         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77903         (noinst_HEADERS): Add quote.h.
77904
77905         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77906         from tar's src/misc.c.
77907         * lib/quote.h: New file.  Prototypes for same.
77908
77909 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77910
77911         From a suggestion by Bruno Haible.
77912         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77913         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77914         to decide whether to define the BeOS workaround macro;
77915         this adjusts to the change to AC_MBSTATE_T.
77916
77917 2000-07-14  Jim Meyering  <meyering@lucent.com>
77918
77919         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77920         jm_AC_TYPE_UINTMAX_T.
77921
77922 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77923
77924         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77925
77926         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77927         quotearg_buffer_restyled): Add support for
77928         clocale_quoting_style.  Undo previous change to
77929         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77930         and "{RIGHT QUOTATION MARK}" msgids.
77931
77932 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77933
77934         From a suggestion by Bruno Haible.
77935         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77936         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77937         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77938         and mbstate_t, to a single-part test that simply defines mbstate_t.
77939         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77940         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77941
77942 2000-07-10  Jim Meyering  <meyering@lucent.com>
77943
77944         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77945
77946         * m4/gnu-source.m4: Output to confdefs.h directly.
77947         Suggestion from Akim Demaille.
77948
77949 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77950
77951         The old behavior of quoting `like this' doesn't look good with
77952         newer, ISO-style fonts.  See:
77953         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77954
77955         Instead, quote "like this" by default.  Let the translator
77956         tailor the locale-specific quoting behavior by providing
77957         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77958
77959         * lib/quotearg.c (N_): New macro.
77960         (gettext_default): New function.
77961         (quotearg_buffer_restyled): Use
77962         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77963         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77964
77965 2000-07-09  Jim Meyering  <meyering@lucent.com>
77966
77967         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77968         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77969
77970         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77972
77973 2000-07-09  Jim Meyering  <meyering@lucent.com>
77974
77975         * lib/Most files: Update copyright dates to include 2000.
77976
77977 2000-07-08  Jim Meyering  <meyering@lucent.com>
77978
77979         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77980         if not defined.
77981         (xgethostname): Remove now-unnecessary #ifdef.
77982         Move declaration of `err' into loop where it's used.
77983
77984 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77985         and Bruno Haible  <haible@clisp.cons.org>
77986
77987         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77988         only if the test for an object-type mbstate_t fails.  This
77989         prevents us from mistakenly reporting that mbstate_t is a
77990         system object type after we "#define mbstate_t int" to work
77991         around its lack.
77992
77993 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77994         and Bruno Haible  <haible@clisp.cons.org>
77995
77996         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77997
77998 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77999
78000         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78001         to strerror_r.
78002         Include <ctype.h> for use of isalpha.
78003
78004 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78005
78006         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78007         by allocating a larger buffer. Test the gethostname return value for
78008         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78009         returns an error and ENAMETOOLONG isn't defined.
78010
78011 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78012
78013         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78014         dimension.
78015
78016 2000-07-04  Jim Meyering  <meyering@lucent.com>
78017
78018         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78019         of the deprecated AC_CHECKING.
78020
78021 2000-07-04  Jim Meyering  <meyering@lucent.com>
78022
78023         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78024         Reported by Bruno Haible.
78025
78026 2000-07-04  Jim Meyering  <meyering@lucent.com>
78027
78028         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78029         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78030         lacks mbrtowc.
78031
78032 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78033
78034         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78035         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78036
78037 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78038         and Bruno Haible  <haible@clisp.cons.org>
78039
78040         * lib/quotearg.c (mbrtowc):
78041         Assign to *pwc, and return 1 only if result is nonzero.
78042         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78043
78044 2000-07-03  Jim Meyering  <meyering@lucent.com>
78045
78046         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78047
78048 2000-07-03  Jim Meyering  <meyering@lucent.com>
78049
78050         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78051         This is necessary to get a definition of e.g., UTMP_FILE on
78052         HP-UX 10.20.
78053         From Bob Proulx.
78054
78055 2000-07-02  Jim Meyering  <meyering@lucent.com>
78056
78057         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78058
78059         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78060         AC_LIBOBJ(function_name).
78061         * m4/chown.m4: Likewise.
78062         * m4/fnmatch.m4: Likewise.
78063         * m4/ftruncate.m4: Likewise.
78064         * m4/getgroups.m4: Likewise.
78065         * m4/getline.m4: Likewise.
78066         * m4/group-member.m4: Likewise.
78067         * m4/jm-macros.m4: Likewise.
78068         * m4/lstat.m4: Likewise.
78069         * m4/malloc.m4: Likewise.
78070         * m4/memcmp.m4: Likewise.
78071         * m4/nanosleep.m4: Likewise.
78072         * m4/putenv.m4: Likewise.
78073         * m4/realloc.m4: Likewise.
78074         * m4/regex.m4: Likewise.
78075         * m4/stat.m4: Likewise.
78076         * m4/strftime.m4: Likewise.
78077
78078 2000-07-02  Jim Meyering  <meyering@lucent.com>
78079
78080         * lib/quotearg.c (mbstate_t): Don't define here.
78081
78082 2000-07-02  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78085
78086 2000-07-01  Jim Meyering  <meyering@lucent.com>
78087
78088         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78089
78090 2000-07-01  Jim Meyering  <meyering@lucent.com>
78091
78092         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78093         problem.
78094
78095 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78096
78097         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78098         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78099
78100 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78101
78102         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78103         per change in ../m4/ls-mntd-fs.m4.
78104         (read_filesystem_list): Ignore symbolic links.
78105
78106 2000-06-29  Jim Meyering  <meyering@lucent.com>
78107
78108         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78109         for declaration of strcmp.
78110
78111         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78112
78113         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78114         Avoid warning by casting result to `char *' to remove `const'.
78115
78116 2000-06-28  Jim Meyering  <meyering@lucent.com>
78117
78118         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78119         included by quotearg.c, for which we perform this test.  From
78120         Bruno Haible.
78121
78122 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78123
78124         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78125         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78126         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78127
78128 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78129
78130         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78131
78132 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78133
78134         savedir now sets errno on failure and invokes xmalloc to get memory.
78135         Fix a couple of other minor bugs while we're at it.
78136
78137         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78138         (NAMLEN): Remove macro.
78139         (malloc, realloc): Remove decls.
78140         (stpcpy): Likewise.
78141         ("xalloc.h"): Include.
78142         (NAME_SIZE_DEFAULT): New macro.
78143         (savedir): Use xmalloc / xrealloc to allocate memory.
78144         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78145         Skip "" directory entries.
78146         Use strlen to calculate directory entry length, since the old method
78147         is rarely used these days and isn't worth supporting.
78148         Don't use a pointer after freeing it.
78149         Check for integer overflow when calculating allocation size.
78150         Use memcpy to copy entries, instead of stpcpy.
78151         Set errno properly when returning NULL.
78152         Check for readdir error.
78153
78154 2000-06-26  Jim Meyering  <meyering@lucent.com>
78155
78156         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78157
78158 2000-06-25  Jim Meyering  <meyering@lucent.com>
78159
78160         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78161         Linux header bug when _XOPEN_SOURCE is defined to 500.
78162
78163 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78164
78165         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78166         deficiency.
78167
78168 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78169
78170         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78171         Include xalloc.h.
78172         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78173
78174 2000-06-24  Jim Meyering  <meyering@lucent.com>
78175
78176         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78177         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78178         for which strerror does return char*, but which lacks a conveniently
78179         accessible declaration of the function.  If the compile-test says
78180         strerror_r doesn't work, then resort to a `run'-test that works on
78181         BeOS and segfaults on DEC Unix.
78182
78183 2000-06-24  Jim Meyering  <meyering@lucent.com>
78184
78185         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78186
78187 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78188
78189         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78190         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78191
78192 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78193
78194         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78195         (mbrtowc, mbstate_t): Define substitutes if
78196         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78197         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78198         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78199
78200 2000-06-23  Jim Meyering  <meyering@lucent.com>
78201
78202         * m4/afs.m4: Add missing AC_MSG_RESULT.
78203         Reported by Bruno Haible.
78204
78205         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78206         Suggestion from Bruno Haible.
78207
78208 2000-06-23  Jim Meyering  <meyering@lucent.com>
78209
78210         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78211
78212 2000-06-21  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78215
78216 2000-06-21  Jim Meyering  <meyering@lucent.com>
78217
78218         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78219         (noinst_HEADERS): Add getstr.h.
78220
78221         * lib/getline.c (getstr): Move into a separate file.
78222         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78223         the following changes: new parameter, delim2; both delim[12]
78224         parameters have type `int', not `char'.  The latter would lose
78225         with 8-bit delimiters.
78226         * lib/getstr.h: New file.
78227
78228 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78229
78230         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78231         than 1024, return a memory chunk of least possible size, instead
78232         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78233         Use free/xmalloc instead of xrealloc to avoid copying for very long
78234         paths.
78235
78236 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78237
78238         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78239         the empty string.
78240
78241 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78242
78243         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78244         address, not strdup.  Include <stdlib.h> and don't declare free().
78245
78246 2000-06-19  Jim Meyering  <meyering@lucent.com>
78247
78248         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78249
78250 2000-06-18  Jim Meyering  <meyering@lucent.com>
78251
78252         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78253
78254         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78255         `checking whether...' message to be consistent with that of the
78256         lstat test.
78257
78258 2000-06-18  Jim Meyering  <meyering@lucent.com>
78259
78260         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78261         Besides, these days every porting target provides a mkdir function.
78262
78263         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78264         needed. (this snippet comes from src/system.h).
78265
78266 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78267
78268         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78269
78270 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78271
78272         * lib/human.c (adjust_value): New function.
78273         (human_readable_inexact): Apply rounding style even when
78274         printing approximate values.
78275
78276 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78277
78278         * lib/human.c (human_readable_inexact): Allow an input block
78279         size that is not a multiple of the output block size, and vice versa.
78280         Reported by Piergiorgio Sartor.
78281
78282 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78283
78284         * lib/getdate.y (get_date): Apply relative times after time
78285         zone indicator, not before.  Reported by Todd A. Jacobs.
78286
78287 2000-06-13  Jim Meyering  <meyering@lucent.com>
78288
78289         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78290
78291         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78292
78293 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78294
78295         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78296
78297 2000-06-12  Jim Meyering  <meyering@lucent.com>
78298
78299         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78300         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78301         optional argument.
78302         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78303         the optional argument, `lib'.
78304
78305 2000-06-08  Jim Meyering  <meyering@lucent.com>
78306
78307         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78308
78309 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78310
78311         Rewrite largefile configuration so that we don't need to run
78312         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78313         AC_CANONICAL_HOST in configure.in -- jmm]
78314
78315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78316         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78317         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78318         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78319         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78320         All uses changed.
78321         Instead of inspecting the output of getconf, try to compile the
78322         test program without and with the macro definition.
78323         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78324         for getconf.  Instead, check for the needed flags by compiling
78325         test programs.
78326
78327 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78328
78329         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78330
78331 2000-06-04  Jim Meyering  <meyering@lucent.com>
78332
78333         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78334         SunOS 4.1.4 for which gid_t is an unsigned type.
78335
78336 2000-06-03  Jim Meyering  <meyering@lucent.com>
78337
78338         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78339         now that autoconf requires that.
78340
78341         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78342         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78343         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78344
78345 2000-06-03  Jim Meyering  <meyering@lucent.com>
78346
78347         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78348
78349 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78350
78351         * m4/glibc21.m4: New file.
78352         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78353
78354 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78355
78356         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78357         newer, don't install charset.alias.
78358         * lib/config.charset: Change the Linux/glibc rules so they become empty
78359         on glibc-2.1 or newer.
78360
78361 2000-06-02  Jim Meyering  <meyering@lucent.com>
78362
78363         * lib/mountlist.c: Back out last change.  Instead, do this...
78364         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78365         me_dummy member using the same `ignore'-testing code.
78366         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78367         fs_type strings.
78368         From Mark D. Roth.
78369
78370 2000-05-29  Jim Meyering  <meyering@lucent.com>
78371
78372         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78373         mounts with the `ignore' attribute.  Based on a patch from
78374         Mark D. Roth.
78375
78376 2000-05-28  Jim Meyering  <meyering@lucent.com>
78377
78378         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78379         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78380         * m4/stat.m4: Likewise.
78381         * m4/lstat.m4: Likewise.
78382         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78383
78384         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78385         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78386
78387 2000-05-26  Jim Meyering  <meyering@lucent.com>
78388
78389         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78390
78391 2000-05-24  Jim Meyering  <meyering@lucent.com>
78392
78393         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78394         autoconf requires that.
78395         * m4/lib-check.m4: Likewise.
78396         * m4/jm-macros.m4: Likewise.
78397         * m4/strftime.m4: Likewise.
78398
78399         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78400         AC_CHECK_DECLS, now that autoconf requires that.
78401
78402 2000-05-22  Jim Meyering  <meyering@lucent.com>
78403
78404         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78405         * m4/lstat.m4: Likewise.
78406
78407 2000-05-22  Jim Meyering  <meyering@lucent.com>
78408
78409         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78410
78411 2000-05-20  Jim Meyering  <meyering@lucent.com>
78412
78413         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78414         (jm_PREREQ): Use it.
78415
78416 2000-05-18  Jim Meyering  <meyering@lucent.com>
78417
78418         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78419         back, too, since it may have been modified by allocate_entry.
78420         (hash_delete): Rewrite to use neither the assignment operator
78421         nor the comma operator in an if-expression.
78422
78423 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78424
78425         * lib/closeout.c:
78426         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78427         Remove; no longer needed.
78428         "quotearg.h": Add include.
78429         (file_name): Do not bother to explicitly initialize to NULL; it's less
78430         efficient on some hosts.
78431         (close_stdout_status): Remove test as to whether stdout was already
78432         closed; it breaks for the case "echo x | sort >&-".
78433         Quote file name colons.
78434         Do not assume that _("write error") lacks format strings.
78435
78436 2000-05-15  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/version-etc.c (version_etc_copyright): Update the copyright
78439         string used in all --version output.
78440
78441 2000-05-14  Jim Meyering  <meyering@lucent.com>
78442
78443         * lib/closeout.c (close_stdout_set_file_name): New function.
78444         (close_stdout_status): Use new file-scoped global.
78445         Return right away if fstat says the stdout file descriptor is invalid.
78446         * lib/closeout.h (close_stdout_set_file_name): Declare.
78447
78448 2000-05-10  Jim Meyering  <meyering@lucent.com>
78449
78450         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78451         (close_stdout_set_status): New function.
78452         * lib/closeout.h (close_stdout_set_status): Declare.
78453
78454 2000-05-09  Jim Meyering  <meyering@lucent.com>
78455
78456         * m4/gettext.m4: Rename this...
78457         * m4/libintl.m4: ...to this.
78458
78459 2000-05-08  Jim Meyering  <meyering@lucent.com>
78460
78461         * lib/long-options.c: Don't include closeout.h.
78462         (parse_long_options): Don't call close_stdout for --version.
78463
78464 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78465
78466         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78467         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78468         2.1.3 bug.  This avoids a clash when files like regex.c define
78469         _GNU_SOURCE.
78470
78471 2000-05-06  Jim Meyering  <meyering@lucent.com>
78472
78473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78474         (AC_REPLACE_FUNCS): Add strnlen.
78475
78476         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78477         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78478
78479         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78480         AC_SEARCH_LIBS call for nanosleep.
78481         (LIB_NANOSLEEP): Set and AC_SUBST.
78482
78483 2000-05-06  Jim Meyering  <meyering@lucent.com>
78484
78485         * lib/strnlen.c: Undefine __strnlen and strnlen.
78486         [!weak_alias]: Define __strnlen to strnlen.
78487
78488         * lib/atexit.c: New file, from libiberty.
78489
78490 2000-05-06  Jim Meyering  <meyering@lucent.com>
78491
78492         * lib/closeout.c (close_stdout_status): Also check for errors on the
78493         stderr stream.
78494
78495 2000-05-05  Jim Meyering  <meyering@lucent.com>
78496
78497         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78498         AC_SEARCH_LIBS call for clock_gettime.
78499         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78500
78501         * m4/search-libs.m4: Update from autoconf.
78502
78503         su doesn't work on Solaris 2.6.
78504         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78505         <shadow.h>.  Reported by Dragos Harabor.
78506
78507 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78508
78509         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78510         memcpy instead of xmalloc, xrealloc, path_concat.
78511         (locale_charset): Treat empty environment variables as absent.
78512         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78513
78514 2000-05-04  Jim Meyering  <meyering@lucent.com>
78515
78516         * lib/getopt.c: Update from glibc.
78517         * lib/obstack.c: Likewise.
78518         * lib/obstack.h: Likewise.
78519         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78520         file
78521
78522         * lib/regex.h: Likewise.
78523         * lib/strndup.c: Likewise.
78524         * lib/strnlen.c: New file, from glibc.
78525
78526 2000-05-03  Jim Meyering  <meyering@lucent.com>
78527
78528         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78529
78530 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78531
78532         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78533         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78534         compile-time test, rather than inspecting host and OS, to
78535         decide whether to define _LARGEFILE_SOURCE.
78536
78537 2000-05-01  Jim Meyering  <meyering@lucent.com>
78538
78539         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78540
78541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78542         Based on a patch from Bruno Haible.
78543
78544 2000-05-01  Jim Meyering  <meyering@lucent.com>
78545
78546         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78547
78548 2000-04-29  Jim Meyering  <meyering@lucent.com>
78549
78550         * lib/path-concat.c: Declare strdup only if it's not defined.
78551         * lib/canon-host.c: Likewise.
78552
78553 2000-04-28  Jim Meyering  <meyering@lucent.com>
78554
78555         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78556         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78557         is included first, then limits.h is included by locale.h by libintl.h.
78558         From John David Anglin.
78559
78560 2000-04-25  Jim Meyering  <meyering@lucent.com>
78561
78562         * lib/makepath.c (S_IRWXUGO): Define.
78563         (make_path): Always perform explicit chmod if MODE specifies any
78564         of the `special' permission bits.  Prompted by a bug report against
78565         install from Mate Wierdl and Joost van Baal.
78566
78567 2000-04-18  Jim Meyering  <meyering@lucent.com>
78568
78569         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78570         (jm_PREREQ): Use it.
78571
78572 2000-04-18  Jim Meyering  <meyering@lucent.com>
78573
78574         * lib/README: New file.
78575
78576         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78577         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78578
78579 2000-04-17  Jim Meyering  <meyering@lucent.com>
78580
78581         Get it right :-)
78582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78583         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78584         Suggestion from Akim Demaille.
78585
78586 2000-04-17  Jim Meyering  <meyering@lucent.com>
78587
78588         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78589         the definition of it to rpl_strftime also defined-away the system's
78590         declaration.
78591
78592 2000-04-15  Jim Meyering  <meyering@lucent.com>
78593
78594         Use `C' to denote so-called `contiguous' files, the same way
78595         that tar does.
78596         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78597         (ftypelet): Use S_ISCTG.
78598         From Michael Deutschmann.
78599
78600 2000-04-14  Jim Meyering  <meyering@lucent.com>
78601
78602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78603         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78604         clobbered.
78605
78606 2000-04-14  Jim Meyering  <meyering@lucent.com>
78607
78608         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78609
78610 2000-04-13  Jim Meyering  <meyering@lucent.com>
78611
78612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78613         AH_VERBATIM to insert required #ifndef into config.h.in.
78614         Suggestion from Akim Demaille.
78615
78616 2000-04-12  Jim Meyering  <meyering@lucent.com>
78617
78618         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78619         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78620         Christian Krackowizer.
78621
78622         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78623         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78624         (AC_SYS_LARGEFILE): Require.
78625         (AM_C_PROTOTYPES): Require.
78626
78627 2000-04-08  Jim Meyering  <meyering@lucent.com>
78628
78629         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78630         names don't conflict.  Reported by Eli Zaretskii.
78631
78632 2000-04-07  Jim Meyering  <meyering@lucent.com>
78633
78634         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78635         sys/types.h, to work around system header problems on AIX 3.2.5.
78636         From Bruno Haible.
78637
78638 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78639
78640         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78641         bug.  Deal with the different error behavior of Irix iconv.
78642
78643 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78644
78645         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78646         IRIX if the installer said otherwise.
78647
78648 2000-04-05  Jim Meyering  <meyering@lucent.com>
78649
78650         Portability tweaks required for ultrix4.3.
78651         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78652         (jm_CHECK_DECLS): Add getutent to the list of functions.
78653         (_jm_DECL_HEADERS): Add utmpx.h.
78654         From John David Anglin.
78655
78656         * m4/strftime.m4: Back out the 2000-04-02 change.
78657         Instead of that change, simply undefine putenv in the test program.
78658
78659 2000-04-05  Jim Meyering  <meyering@lucent.com>
78660
78661         Portability tweaks required for ultrix4.3.
78662         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78663         getutent.
78664         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78665         * lib/canon-host.c: Declare strdup.
78666         * lib/path-concat.c: Likewise.
78667         From John David Anglin.
78668
78669 2000-04-04  Jim Meyering  <meyering@lucent.com>
78670
78671         Be more DOS 8.3-friendly.
78672         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78673         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78674         * lib/Makefile.am: Reflect renaming.
78675         Reported by Eli Zaretskii.
78676
78677         Use a temporary file name that won't clash with `charset.alias'
78678         in the DOS 8.3 name space.
78679         * lib/Makefile.am (charset_tmp): Define.
78680         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78681         (uninstall-local): Likewise.
78682         Reported by Eli Zaretskii.
78683
78684 2000-04-03  Jim Meyering  <meyering@lucent.com>
78685
78686         * m4/gettext.m4: Fix typo in comment.
78687
78688         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78689         textutils/configure.in).  Suggestion from Paul Eggert.
78690         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78691
78692 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78693
78694         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78695         variable in the shell rather than using putenv, which isn't
78696         portable.  This avoids the configure-time inter-test dependency
78697         on the potentially-renamed putenv function.
78698
78699 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78700
78701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78702         before checking struct stat.st_blksize, so that
78703         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78704
78705 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78706
78707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78708         since strftime.c uses HAVE_STRFTIME to decide whether to use
78709         the underlying strftime.
78710
78711 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78712
78713         * lib/time/strftime.c (my_strftime): Make sure we call the system
78714         strftime, not ourselves, when invoking the underlying strftime.
78715
78716 2000-03-24  Jim Meyering  <meyering@lucent.com>
78717
78718         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78719         (charset_alias): Define.
78720         (install-exec-local): Factor out common code.
78721         (uninstall-local): Split lines longer than 80.
78722         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78723         (SUFFIXES): Define.
78724         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78725         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78726
78727 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78728
78729         * lib/config.charset: Output a line containing "Packages using this
78730         file".
78731         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78732         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78733         ref-del.sed): New rules.
78734
78735 2000-03-17  Jim Meyering  <meyering@lucent.com>
78736
78737         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78738         Otherwise, include <strings.h>
78739
78740 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78741
78742         * lib/unicodeio.c (utf8_wctomb): New function.
78743         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78744         format instead of in UCS-4 with platform dependent endianness.
78745
78746 2000-03-10  Jim Meyering  <meyering@lucent.com>
78747
78748         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78749         From Marco Franzen.
78750
78751 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78752
78753         * lib/savedir.c (savedir): Work even if directory size is
78754         negative; this can happen with some screwy NFS configurations.
78755
78756 2000-03-06  Jim Meyering  <meyering@lucent.com>
78757
78758         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78759         if it's NULL (because we ran out of memory).  From Bruno Haible.
78760
78761 2000-03-05  Jim Meyering  <meyering@lucent.com>
78762
78763         * lib/localcharset.c ("path-concat.h"): Include.
78764         (get_charset_aliases): Use path_concat instead of ANSI string
78765         concatenation.
78766
78767         * lib/unicodeio.h (PARAMS): Define.
78768         Use it to guard prototype.
78769
78770 2000-03-04  Jim Meyering  <meyering@lucent.com>
78771
78772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78773         for lib/localcharset.c.
78774
78775 2000-03-04  Jim Meyering  <meyering@lucent.com>
78776
78777         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78778         installing into it.
78779         (uninstall-local): Uncomment this rule so `make distcheck' works
78780         once again.
78781
78782         * lib/unicodeio.c (<errno.h>): Include it.
78783         (errno): Declare if not defined.
78784
78785         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78786
78787         * lib/config.charset: New version, incorporating remarks from a linux
78788         i18n mailing list.  From Bruno Haible.
78789
78790 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78791
78792         * m4/codeset.m4: New file.
78793         * m4/iconv.m4: New file.
78794         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78795
78796 2000-03-03  Jim Meyering  <meyering@lucent.com>
78797
78798         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78799
78800 2000-03-02  Jim Meyering  <meyering@lucent.com>
78801
78802         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78803         the messages come out on separate lines.
78804
78805         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78806         rather than jm_CHECK_DECLARATIONS.
78807         * m4/decl.m4: Remove now-unused file.
78808
78809         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78810         geteuid.
78811
78812 2000-03-02  Jim Meyering  <meyering@lucent.com>
78813
78814         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78815
78816 2000-03-01  Jim Meyering  <meyering@lucent.com>
78817
78818         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78819         * lib/unicodeio.c: Likewise.
78820
78821 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78822
78823         * lib/config.charset: New file.
78824         * lib/localcharset.c: New file.
78825         * lib/unicodeio.h, lib/unicodeio.c: New files.
78826         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78827         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78828         (noinst_HEADERS): Add unicodeio.h.
78829         (all-local, install-exec-local, charset.alias): New targets.
78830
78831 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78832
78833         * lib/quotearg.c (ALERT_CHAR): New macro.
78834         (quotearg_buffer_restyled): Use it.
78835
78836 2000-02-27  Jim Meyering  <meyering@lucent.com>
78837
78838         * m4/check-decl.m4: Add getenv to the list.
78839
78840 2000-02-27  Jim Meyering  <meyering@lucent.com>
78841
78842         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78843         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78844
78845         * lib/backupfile.c: Guard inclusion of stdlib.h with
78846         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78847         Declare malloc if needed.
78848
78849         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78850         `#ifndef HAVE_DECL..'
78851         now that autoconf always defines the HAVE_DECL_ symbols.
78852         * lib/human.c: Likewise.
78853         * lib/same.c: Likewise.
78854         * lib/strtoumax.c: Likewise.
78855
78856         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78857         declaration check was not run.
78858         * lib/hash.c: Likewise.
78859         * lib/human.c: Likewise.
78860         * lib/same.c: Likewise.
78861         * lib/strtoumax.c: Likewise.
78862
78863         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78864         `.', then first look up the entire `.'-containing string as a login
78865         name.
78866
78867 2000-02-23  Jim Meyering  <meyering@lucent.com>
78868
78869         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78870         in place of my hack.
78871
78872 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78873
78874         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78875         (textint): New typedef.
78876         (parser_control): Member year changed from int to textint.
78877         All uses changed.
78878         (YYSTYPE): Removed; replaced by %union with int and textint members.
78879         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78880         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78881         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78882         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78883         (date, number, to_year): Use width of number in digits, not its value,
78884         to determine whether it's a 2-digit year, or a 2-digit time.
78885         (yylex): Store number of digits of numeric tokens.
78886         Reported by John Kendall.
78887
78888         (parser_control): Changed from struct parser_control to typedef (for
78889         consistency).  All uses changed.
78890
78891         (tID): Removed; not used.
78892         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78893
78894 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78895
78896         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78897         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78898
78899 2000-02-12  Jim Meyering  <meyering@lucent.com>
78900
78901         * lib/userspec.c (ISDIGIT): Define it.
78902         (isdigit): Remove definition.
78903         (is_number): Use ISDIGIT, not isdigit.
78904         <libintl.h>: Include.
78905         (_ and N_): Define.
78906         (parse_user_spec): Mark translatable strings.
78907
78908 2000-02-10  Jim Meyering  <meyering@lucent.com>
78909
78910         With these changes, nanosleep.[ch] are finally enough like the other
78911         lib/* replacement files to compile on a few more losing systems.
78912
78913         * lib/nanosleep.h: Don't include config.h.
78914         Remove prototype from declaration of nanosleep.
78915         (PARAMS): Remove now-unneeded definition.
78916         * lib/nanosleep.c: #undef nanosleep.
78917         (rpl_nanosleep): Rename from nanosleep.
78918
78919 2000-02-10  Jim Meyering  <meyering@lucent.com>
78920
78921         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78922         gnu_nanosleep to rpl_nanosleep.
78923
78924 2000-02-09  Jim Meyering  <meyering@lucent.com>
78925
78926         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78927         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78928
78929 2000-02-08  Akim Demaille  <akim@epita.fr>
78930
78931         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78932         `[' and `]' and remove uses of `changequote'.
78933         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78934         (AC_SYS_LARGEFILE): Likewise.
78935         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78936         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78937         of changequote.
78938         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78939         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78940         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78941         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78942
78943 2000-02-05  Jim Meyering  <meyering@lucent.com>
78944
78945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78946         Remove explicit use of AC_HEADER_TIME.  It is required by
78947         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78948         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78949         in autoconf whereby the expansion of the latter ended up preceding
78950         the expansion of its prerequisite, AC_HEADER_TIME.
78951         Reported by Volker Borchert.
78952
78953 2000-02-03  Jim Meyering  <meyering@lucent.com>
78954
78955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78956
78957 2000-02-03  Jim Meyering  <meyering@lucent.com>
78958
78959         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78960         rather than with `#if HAVE_UTMPNAME'.
78961
78962 2000-02-02  Jim Meyering  <meyering@lucent.com>
78963
78964         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78965         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78966         Reported by Eli Zaretskii.
78967
78968 2000-02-01  Jim Meyering  <meyering@lucent.com>
78969
78970         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78971
78972 2000-01-31  Jim Meyering  <meyering@lucent.com>
78973
78974         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78975         functions.  Add the time.h and sys/time.h headers along with the
78976         AC_REQUIRE'ment of AC_HEADER_TIME.
78977
78978 2000-01-31  Jim Meyering  <meyering@lucent.com>
78979
78980         * lib/nanosleep.h (nanosleep): Guard declaration with
78981         `#if ! HAVE_DECL_NANOSLEEP'.
78982         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78983         the declaration in that vendor's sys/timers.h.
78984         Reported by Christian Krackowizer.
78985
78986         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78987         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78988         (ISPRINT): Likewise.
78989         Reported by Tom Tromey.
78990
78991 2000-01-30  Jim Meyering  <meyering@lucent.com>
78992
78993         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78994
78995         * m4/prereq.m4 (utmp_includes): Define.
78996         Check for ut_user and ut_name members in both struct utmpx
78997         and struct utmp.
78998
78999 2000-01-30  Jim Meyering  <meyering@lucent.com>
79000
79001         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79002         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79003         header files where only utmpx.ut_user is declared.
79004
79005         * lib/readutmp.h (UT_USER): Define.
79006
79007 2000-01-29  Jim Meyering  <meyering@lucent.com>
79008
79009         * m4/lib-check.m4: New file containing library-related checks from
79010         fileutils and sh-utils (textutils had none).
79011
79012 2000-01-28  Jim Meyering  <meyering@lucent.com>
79013
79014         * m4/perl.m4: Change format of warning message to look more like that
79015         from the missing script.  Suggestion from François Pinard.
79016
79017 2000-01-25  Jim Meyering  <meyering@lucent.com>
79018
79019         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79020         well as time.h in the compile check.
79021         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79022         Fix typo in cross-compiling case: s/yes/no/.
79023
79024 2000-01-23  Jim Meyering  <meyering@lucent.com>
79025
79026         * m4/jm-macros.m4: Move df-related tests here from
79027         fileutils/configure.in
79028
79029         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79030         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79031
79032         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79033         s/space/ac_fsusage_space/.
79034         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79035
79036         * m4/ftruncate.m4: New file (derived from part of
79037         fileutils/configure.in).
79038         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79039         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79040
79041         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79042         AC_SUBST these here, rather than just in sh-util/configure.in, so
79043         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79044         all the same.
79045         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79046         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79047         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79048         (AC_SUBST(POW_LIBM)): Likewise.
79049         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79050
79051 2000-01-23  Jim Meyering  <meyering@lucent.com>
79052
79053         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79054         obstack.c.
79055
79056 2000-01-22  Jim Meyering  <meyering@lucent.com>
79057
79058         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79059
79060         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79061
79062         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79063         configure.in
79064         (AC_CHECK_HEADERS): Likewise for sh-utils.
79065         (AC_CHECK_HEADERS): Likewise for textutils.
79066         Merge the three lists of headers.
79067
79068         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79069         from fileutils' configure.in.
79070
79071         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79072         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79073         check-decl.m4.
79074
79075         * m4/check-decl.m4: Use #if rather than #ifdef.
79076         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79077         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79078         (_jm_DECL_HEADERS): Define new function.
79079         (jm_CHECK_DECLARATIONS): Require it.
79080
79081 2000-01-22  Jim Meyering  <meyering@lucent.com>
79082
79083         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79084         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79085         Required for some AIX systems.  Reported by Christian Krackowizer.
79086         [TESTING] (main): New function.
79087
79088         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79089         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79090         letters.
79091
79092         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79093         iswprint.
79094
79095         * lib/strverscmp.c (ISDIGIT): Define.
79096         (strverscmp): Use ISDIGIT, not isdigit.
79097
79098 2000-01-19  Jim Meyering  <meyering@lucent.com>
79099
79100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79101         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79102         defines `struct timespec' in <sys/time.h>
79103
79104         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79105         Thanks to Akim for explaining.
79106
79107 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79108
79109         * lib/nanosleep.c (nanosleep):
79110         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79111         POSIX.1 doesn't require SA_INTERRUPT and some systems
79112         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79113         it's been part of POSIX.1 since day 1 (in 1988).
79114
79115 2000-01-17  Jim Meyering  <meyering@lucent.com>
79116
79117         * lib/interlock: Remove unused file.  Reported by François Pinard.
79118
79119 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79120
79121         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79122         alert, backslash, formfeed, and vertical tab unnecessarily in
79123         shell quoting style.
79124
79125 2000-01-16  Jim Meyering  <meyering@lucent.com>
79126
79127         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79128         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79129         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79130         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79131
79132 2000-01-16  Jim Meyering  <meyering@lucent.com>
79133
79134         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79135         because the latter didn't work.
79136
79137 2000-01-15  Jim Meyering  <meyering@lucent.com>
79138
79139         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79140         (AC_REPLACE_FUNCS): Add memcpy and memset.
79141         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79142         Add strpbrk.
79143         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79144
79145 2000-01-12  Jim Meyering  <meyering@lucent.com>
79146
79147         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79148         (jm_PREREQ): Use it.
79149         (jm_PREREQ_READUTMP): New macro.
79150         (jm_PREREQ): Use it.
79151
79152 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79153
79154         Quote multibyte characters correctly.
79155         * m4/c-bs-a.m4: New file.
79156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79157         (jm_PREREQ): Use it.
79158
79159 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79160
79161         * m4/uintmax_t.m4: Port to autoconf 2.13.
79162
79163 2000-01-08  Jim Meyering  <meyering@ascend.com>
79164
79165         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79166         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79167
79168 2000-01-04  Jim Meyering  <meyering@ascend.com>
79169
79170         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79171         jm_STRUCT_DIRENT_D_TYPE.
79172         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79173         jm_STRUCT_DIRENT_D_INO.
79174         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79175         jm_STRUCT_UTIMBUF.
79176         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79177         renamings.
79178         * m4/utime.m4: Likewise.
79179
79180         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79181         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79182
79183 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79184
79185         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79186         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79187
79188 2000-01-02  Jim Meyering  <meyering@ascend.com>
79189
79190         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79191         remember if this is necessary.
79192
79193 1999-12-26  Jim Meyering  <meyering@ascend.com>
79194
79195         * m4/jm-macros.m4: Use it here.
79196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79197
79198 1999-12-23  Jim Meyering  <meyering@ascend.com>
79199
79200         * m4/jm-macros.m4: Check for clock_gettime (moved from
79201         fileutils/configure.in)
79202         Check for gettimeofday.
79203
79204 1999-12-20  Jim Meyering  <meyering@ascend.com>
79205
79206         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79207         autoconf-2.14a-1999-12-20.
79208
79209 1999-12-19  Jim Meyering  <meyering@ascend.com>
79210
79211         * m4/lstat-slash.m4: New file.
79212         * m4/jm-macros.m4: Use the new macro:
79213         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79214
79215 1999-12-07  Jim Meyering  <meyering@ascend.com>
79216
79217         * m4/perl.m4: Require that File::Compare be available, too.
79218         Too many systems seem to lack it.
79219
79220         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79221         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79222
79223 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79224
79225         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79226         problem with the QNX 4.25 shell, which doesn't propagate exit
79227         status of failed commands inside shell assignments.
79228
79229 1999-11-17  Jim Meyering  <meyering@ascend.com>
79230
79231         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79232
79233 1999-11-07  Jim Meyering  <meyering@ascend.com>
79234
79235         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79236
79237 1999-11-06  Jim Meyering  <meyering@ascend.com>
79238
79239         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79240         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79241
79242 1999-11-05  Jim Meyering  <meyering@ascend.com>
79243
79244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79245         configure.in of textutils, fileutils, and sh-utils into this one
79246         (shared between those packages) file.
79247         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79248         AC_STRUCT_ST_BLKSIZE.
79249
79250 1999-11-03  Jim Meyering  <meyering@ascend.com>
79251
79252         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79253         of AC_CHECK_TYPE checks includes unistd.h.
79254         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79255         Suggestion from Akim Demaille.
79256
79257 1999-10-30  Jim Meyering  <meyering@ascend.com>
79258
79259         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79260         m4-quoted string.
79261         * m4/ls-mntd-fs.m4: Likewise.
79262         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79263         * m4/jm-winsz1.m4: Likewise.
79264
79265         * m4/const.m4: Remove file, since the fix made it into the experimental
79266         version of autoconf.
79267         * m4/mktime.m4: Likewise.
79268
79269         * m4/check-type.m4: Remove file, now that the latest version of
79270         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79271
79272         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79273         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79274         AC_CHECK_TYPE.
79275
79276 1999-10-04  Jim Meyering  <meyering@ascend.com>
79277
79278         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79279
79280 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79281
79282         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79283         2.95.1 bug with HP-UX 10.20.
79284
79285 1999-09-17  Jim Meyering  <meyering@ascend.com>
79286
79287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79288         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79289         due to missing strdup (against sh-utils-2.0).
79290
79291 1999-08-29  Jim Meyering  <meyering@ascend.com>
79292
79293         * m4/jm-macros.m4: Require jm_BISON.
79294         * m4/bison.m4: New file.
79295
79296 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79297
79298         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79299         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79300
79301 1999-08-05  Jim Meyering  <meyering@ascend.com>
79302
79303         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79304         to avoid conflicts with `conftest' on 8+3 filesystems.
79305         Suggestion from Eli Zaretskii.
79306
79307 1999-08-04  Jim Meyering  <meyering@ascend.com>
79308
79309         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79310         fileutils and sh-utils (textutils's getline test was inadequate).
79311         (AM_FUNC_GETLINE): Run this test.
79312         (AC_CHECK_FUNCS): Check for getdelim.
79313         Reported by Bob Proulx.
79314
79315 1999-08-02  Jim Meyering  <meyering@ascend.com>
79316
79317         * m4/jm-macros.m4: Add a comment.
79318
79319 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79320
79321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79322         <inttypes.h> defines strtoumax as a macro (and not as a
79323         function).
79324
79325 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79326
79327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79328         that we can shift, multiply and divide unsigned long long
79329         values; Ultrix cc can't do it.
79330
79331 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79332
79333         * m4/mktime.m4: New file, which is a preview of what should appear
79334         in the next public autoconf release.
79335
79336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79337
79338         * m4/lfs.m4: Remove this file.
79339         * m4/largefile.m4: New file.  It contains the old contents of
79340         lfs.m4, except that all names with prefix AC_LFS have been
79341         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79342         compatible with future autoconf versions.  Also, some minor m4
79343         quoting problems have been fixed.
79344
79345 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79346
79347         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79348         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79349         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79350         and simplify the shell code.
79351
79352 1999-08-01  Jim Meyering  <meyering@ascend.com>
79353
79354         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79355         m4.
79356
79357 1999-07-20  Jim Meyering  <meyering@ascend.com>
79358
79359         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79360
79361 1999-07-15  Jim Meyering  <meyering@ascend.com>
79362
79363         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79364
79365 1999-05-22  Jim Meyering  <meyering@ascend.com>
79366
79367         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79368
79369 1999-05-20  Jim Meyering  <meyering@ascend.com>
79370
79371         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79372         Add a colon after each `then' in case $4 is empty.
79373
79374 1999-05-16  Jim Meyering  <meyering@ascend.com>
79375
79376         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79377
79378 1999-05-10  Jim Meyering  <meyering@ascend.com>
79379
79380         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79381
79382         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79383         AC_FUNC_MKTIME.
79384
79385 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79386
79387         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79388
79389 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79390
79391         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79392         not CPPFLAGS, so that linking works correctly in IRIX.
79393
79394 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79395
79396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79397
79398 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79399
79400         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79401         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79403         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79404         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79405
79406         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79407
79408 1999-04-20  Jim Meyering  <meyering@ascend.com>
79409
79410         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79411         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79412         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79413
79414 1999-04-18  Jim Meyering  <meyering@ascend.com>
79415
79416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79417         * m4/jm-macros.m4: Use it.
79418
79419 1999-04-06  Jim Meyering  <meyering@ascend.com>
79420
79421         * m4/strftime.m4: Remove test for %f.
79422
79423 1999-03-29  Jim Meyering  <meyering@ascend.com>
79424
79425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79426         superset of the AC_TYPE_* checks in the textutils, fileutils,
79427         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79428         AC_TYPE_PID_T.
79429
79430 1999-03-28  Jim Meyering  <meyering@ascend.com>
79431
79432         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79433         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79434         replaced e.g., in the *.sh files of the sh-utils.
79435
79436 1999-03-20  Jim Meyering  <meyering@ascend.com>
79437
79438         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79439         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79440         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79441
79442 1999-03-19  Jim Meyering  <meyering@ascend.com>
79443
79444         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79445
79446 1999-03-12  Jim Meyering  <meyering@ascend.com>
79447
79448         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79449
79450 1999-03-07  Jim Meyering  <meyering@ascend.com>
79451
79452         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79453         declared.
79454
79455 1999-02-17  Jim Meyering  <meyering@ascend.com>
79456
79457         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79458         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79459
79460 1999-02-07  Jim Meyering  <meyering@ascend.com>
79461
79462         * m4/group-member.m4: New file -- extracted from sh-utils'
79463         configure.in.
79464
79465         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79466         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79467
79468 1999-02-06  Jim Meyering  <meyering@ascend.com>
79469
79470         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79471         * m4/fnmatch.m4: Likewise.
79472         * m4/getgroups.m4: Likewise.
79473         * m4/lstat.m4: Likewise.
79474         * m4/malloc.m4: Likewise.
79475         * m4/putenv.m4: Likewise.
79476         * m4/realloc.m4: Likewise.
79477         * m4/regex.m4: Likewise.
79478         * m4/stat.m4: Likewise.
79479         * m4/strftime.m4: Likewise.
79480         Suggestion from Alain Magloire.
79481
79482         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79483         * m4/fnmatch.m4: Likewise.
79484         * m4/getgroups.m4: Likewise.
79485         * m4/getline.m4: Likewise.
79486         * m4/lstat.m4: Likewise.
79487         * m4/malloc.m4: Likewise.
79488         * m4/memcmp.m4: Likewise.
79489         * m4/putenv.m4: Likewise.
79490         * m4/realloc.m4: Likewise.
79491         * m4/regex.m4: Likewise.
79492         * m4/stat.m4: Likewise.
79493         * m4/strftime.m4: Likewise.
79494         Suggestion from Alain Magloire.
79495
79496         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79497         an argument.
79498
79499         * m4/regex.m4: Add a run-time Test for proper operation of
79500         re_compile_pattern.
79501
79502 1999-01-31  Jim Meyering  <meyering@ascend.com>
79503
79504         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79505
79506 1999-01-30  Jim Meyering  <meyering@ascend.com>
79507
79508         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79509
79510         * m4/jm-mktime.m4: Make this a wrapper around the official
79511         AM_FUNC_MKTIME rather than my private copy, now that the official one
79512         is up to date.
79513         * m4/mktime.m4: Remove file.
79514
79515         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79516         * m4/uptime.m4: Likewise.
79517         * m4/uintmax_t.m4: Likewise.
79518
79519 1999-01-28  Jim Meyering  <meyering@ascend.com>
79520
79521         * m4/jm-macros.m4: Use jm_AFS.
79522         * m4/afs.m4: New file (from fileutils' configure.in).
79523
79524         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79525         * m4/chown.m4: Likewise.
79526         * m4/d-ino.m4: Likewise.
79527         * m4/d-type.m4: Likewise.
79528         * m4/fnmatch.m4: Likewise.
79529         * m4/getgroups.m4: Likewise.
79530         * m4/gettext.m4: Likewise.
79531         * m4/jm-mktime.m4: Likewise.
79532         * m4/jm-winsz2.m4: Likewise.
79533         * m4/lcmessage.m4: Likewise.
79534         * m4/ls-mntd-fs.m4: Likewise.
79535         * m4/malloc.m4: Likewise.
79536         * m4/memcmp.m4: Likewise.
79537         * m4/putenv.m4: Likewise.
79538         * m4/realloc.m4: Likewise.
79539         * m4/st_mtim.m4: Likewise.
79540         * m4/strftime.m4: Likewise.
79541
79542 1999-01-16  Jim Meyering  <meyering@ascend.com>
79543
79544         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79545         (ARGMATCH_DIE_DECL): Define.
79546
79547 1999-01-12  Jim Meyering  <meyering@ascend.com>
79548
79549         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79550         Reported by Lars Hecking.
79551
79552 1999-01-10  Jim Meyering  <meyering@ascend.com>
79553
79554         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79555         gross kludge.
79556         * m4/inttypes_h.m4: Likewise.
79557         * m4/lstat.m4: Likewise.
79558         * m4/malloc.m4: Likewise.
79559         * m4/readdir.m4: Likewise.
79560         * m4/realloc.m4: Likewise.
79561         * m4/st_dm_mode.m4: Likewise.
79562         * m4/stat.m4: Likewise.
79563         * m4/utimbuf.m4: Likewise.
79564         * m4/utimes.m4: Likewise.
79565
79566         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79567         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79568         comments in config.h.in are meaningful.
79569
79570         * m4/jm-macros.m4: Require autoconf-2.13 here.
79571
79572         * m4/regex.m4: By default, don't use the included regex.c on systems
79573         with glibc 2.  Suggestion from Uli Drepper.
79574
79575 1999-01-02  Jim Meyering  <meyering@ascend.com>
79576
79577         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79578
79579 1998-12-18  Jim Meyering  <meyering@ascend.com>
79580
79581         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79582         Based on a suggestion from Lars Hecking.
79583
79584 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79585
79586         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79587
79588 1998-11-16  Jim Meyering  <meyering@ascend.com>
79589
79590         * m4/lfs.m4: Double-quote the `uname...` expression.
79591
79592 1998-11-14  Jim Meyering  <meyering@ascend.com>
79593
79594         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79595         * m4/stat.m4: Likewise.
79596
79597 1998-11-03  Jim Meyering  <meyering@ascend.com>
79598
79599         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79600         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79601
79602 1998-10-18  Jim Meyering  <meyering@ascend.com>
79603
79604         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79605
79606 1998-10-17  Jim Meyering  <meyering@ascend.com>
79607
79608         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79609         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79610         calls for those previously hard-coded headers.  Instead, take a new
79611         parameter.
79612         (jm_CHECK_DECLARATIONS): Reflect interface change.
79613         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79614         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79615
79616         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79617
79618 1998-10-14  Jim Meyering  <meyering@ascend.com>
79619
79620         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79621         instead of "TZ=America/Vancouver".  From Paul Eggert.
79622
79623 1998-10-11  Jim Meyering  <meyering@ascend.com>
79624
79625         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79626         This adds a test for a recently added compatibility fix for mktime.c.
79627         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79628
79629 1998-09-27  Jim Meyering  <meyering@ascend.com>
79630
79631         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79632
79633         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79634         ../configure.in, including a change from Gordon Matzigkeit to allow
79635         cross-compiling for the Hurd.
79636
79637         * m4/glibc.m4: New file/macro to test for the GNU C Library
79638         versions 1 and 2.  From Gordon Matzigkeit.
79639         Indent.
79640
79641 1998-09-21  Jim Meyering  <meyering@ascend.com>
79642
79643         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79644
79645 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79646
79647         Port nanosecond-resolution times to UnixWare 2.1.2 and
79648         pedantic Solaris 2.6.
79649
79650         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79651         AC_STRUCT_ST_MTIM.
79652         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79653         Generate name of ns member, instead of just 1 or undef.
79654         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79655
79656 1998-08-15  Jim Meyering  <meyering@ascend.com>
79657
79658         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79659         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79660         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79661         instead of jm_TYPE_SSIZE_T.
79662
79663 1998-08-12  Jim Meyering  <meyering@ascend.com>
79664
79665         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79666
79667 1998-08-02  Jim Meyering  <meyering@ascend.com>
79668
79669         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79670         in acconfig.h manually.
79671
79672 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79673
79674         * m4/st_mtim.m4: New file.
79675
79676 1998-07-28  Jim Meyering  <meyering@ascend.com>
79677
79678         * m4/utimes.m4: Undef stat.
79679
79680 1998-07-25  Jim Meyering  <meyering@ascend.com>
79681
79682         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79683         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79684
79685 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79686
79687         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79688         uid and gid actually remain unchanged.
79689
79690 1998-07-07  Jim Meyering  <meyering@ascend.com>
79691
79692         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79693
79694 1998-07-04  Jim Meyering  <meyering@ascend.com>
79695
79696         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79697         to prove that this macro can be used in packages without regex.c.
79698
79699 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79700
79701         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79702         is to be used.
79703
79704 1998-07-03  Jim Meyering  <meyering@ascend.com>
79705
79706         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79707
79708         * m4/gettext.m4: New file -- from gettext-0.10.35.
79709         * m4/lcmessage.m4: Likewise.
79710         * m4/progtest.m4: Likewise.
79711
79712         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79713         * m4/jm-macros.m4: Require the new macro.
79714
79715 1998-06-29  Jim Meyering  <meyering@ascend.com>
79716
79717         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79718         for the definition of NGROUPS (used in a system header included
79719         by sys/mount.h).
79720
79721 1998-06-28  Jim Meyering  <meyering@ascend.com>
79722
79723         * m4/ls-mntd-fs.m4: New file.
79724         * m4/fstypename.m4: New file.
79725
79726         * m4/jm-macros.m4: Require the new macro.
79727         * m4/jm-glibc-io.m4: New file.
79728
79729 1998-05-19  Jim Meyering  <meyering@ascend.com>
79730
79731         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79732         * m4/lchown.m4: New file.
79733
79734         * m4/Makefile.am.in: New file.
79735         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79736
79737 1998-05-14  Jim Meyering  <meyering@ascend.com>
79738
79739         * m4/Makefile.am (EXTRA_DIST): Add them.
79740         * m4/jm-macros.m4: New file.
79741         * m4/utimbuf.m4: New file.
79742
79743 1998-05-12  Jim Meyering  <meyering@ascend.com>
79744
79745         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79746
79747 1998-05-11  Jim Meyering  <meyering@ascend.com>
79748
79749         * m4/isc-posix.m4: New file.
79750
79751 1998-05-10  Jim Meyering  <meyering@ascend.com>
79752
79753         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79754
79755 1998-05-09  Jim Meyering  <meyering@ascend.com>
79756
79757         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79758         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79759         with automake.
79760
79761         * m4/ssize_t.m4: New file.
79762         * m4/mktime.m4: Remove file -- the new automake has this now.
79763
79764 1998-04-26  Jim Meyering  <meyering@ascend.com>
79765
79766         * m4/assert.m4: New file.
79767         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79768
79769 1998-04-05  Jim Meyering  <meyering@ascend.com>
79770
79771         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79772         (jm_PREREQ): Use it here.
79773
79774 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79775
79776         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79777         in acconfig.h.
79778
79779 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79780
79781         * m4/prereq.m4: New file.
79782         * m4/error.m4: New file.
79783         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79784
79785 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79786
79787         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79788         cache-check for the same variable -- that defeated the purpose of
79789         the test; the test program was never run.  This was a problem only
79790         on systems with losing getline functions -- HP-UX 10.20 is one.
79791         Reported by Bjorn Helgaas.
79792
79793 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79794
79795         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79796
79797 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79798
79799         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79800
79801         * m4/const.m4: New file.  Use an initializer in this declaration
79802         typedef int charset[2]; const charset x;
79803         Reported by Bob Glickstein.
79804
79805 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79806
79807         * m4/chown.m4: Fix reversed types on -1 args to chown.
79808         From Kaveh Ghazi.
79809
79810 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79811
79812         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79813         Add lseek and memchr.
79814
79815         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79816         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79817         have a 20-character limit on names.
79818
79819 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79820
79821         * m4/inttypes_h.m4: New file.
79822         * m4/uintmax_t.m4: New file.
79823         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79824
79825
79826         -----
79827
79828         Local Variables:
79829         coding: utf-8
79830         End:
79831
79832         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79833
79834         Copying and distribution of this file, with or without
79835         modification, are permitted provided the copyright notice
79836         and this notice are preserved.